diff options
| -rw-r--r-- | Makefile.in | 1933 | ||||
| -rw-r--r-- | aclocal.m4 | 1373 | ||||
| -rwxr-xr-x | build-aux/ar-lib | 270 | ||||
| -rwxr-xr-x | build-aux/compile | 347 | ||||
| -rwxr-xr-x | build-aux/depcomp | 791 | ||||
| -rwxr-xr-x | build-aux/install-sh | 508 | ||||
| -rwxr-xr-x | build-aux/missing | 215 | ||||
| -rw-r--r-- | client/wallet-rekey.1 | 286 | ||||
| -rw-r--r-- | client/wallet.1 | 574 | ||||
| -rw-r--r-- | config.h.in | 258 | ||||
| -rwxr-xr-x | configure | 16146 | ||||
| -rw-r--r-- | contrib/wallet-rekey-periodic.8 | 213 | ||||
| -rw-r--r-- | contrib/wallet-summary.8 | 208 | ||||
| -rw-r--r-- | contrib/wallet-unknown-hosts.8 | 221 | ||||
| -rw-r--r-- | server/keytab-backend.8 | 214 | ||||
| -rw-r--r-- | server/wallet-admin.8 | 226 | ||||
| -rw-r--r-- | server/wallet-backend.8 | 429 | ||||
| -rw-r--r-- | server/wallet-report.8 | 349 | 
18 files changed, 24561 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..3820705 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,1933 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# Automake makefile for wallet. +# +# Written by Russ Allbery <eagle@eyrie.org> +# Copyright 2016, 2018 Russ Allbery <eagle@eyrie.org> +# Copyright 2006-2008, 2010, 2013-2014 +#     The Board of Trustees of the Leland Stanford Junior University +# +# SPDX-License-Identifier: MIT + + + + +VPATH = @srcdir@ +am__is_gnu_make = { \ +  if test -z '$(MAKELEVEL)'; then \ +    false; \ +  elif test -n '$(MAKE_HOST)'; then \ +    true; \ +  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ +    true; \ +  else \ +    false; \ +  fi; \ +} +am__make_running_with_option = \ +  case $${target_option-} in \ +      ?) ;; \ +      *) echo "am__make_running_with_option: internal error: invalid" \ +              "target option '$${target_option-}' specified" >&2; \ +         exit 1;; \ +  esac; \ +  has_opt=no; \ +  sane_makeflags=$$MAKEFLAGS; \ +  if $(am__is_gnu_make); then \ +    sane_makeflags=$$MFLAGS; \ +  else \ +    case $$MAKEFLAGS in \ +      *\\[\ \	]*) \ +        bs=\\; \ +        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ +          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \ +    esac; \ +  fi; \ +  skip_next=no; \ +  strip_trailopt () \ +  { \ +    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ +  }; \ +  for flg in $$sane_makeflags; do \ +    test $$skip_next = yes && { skip_next=no; continue; }; \ +    case $$flg in \ +      *=*|--*) continue;; \ +        -*I) strip_trailopt 'I'; skip_next=yes;; \ +      -*I?*) strip_trailopt 'I';; \ +        -*O) strip_trailopt 'O'; skip_next=yes;; \ +      -*O?*) strip_trailopt 'O';; \ +        -*l) strip_trailopt 'l'; skip_next=yes;; \ +      -*l?*) strip_trailopt 'l';; \ +      -[dEDm]) skip_next=yes;; \ +      -[JT]) skip_next=yes;; \ +    esac; \ +    case $$flg in \ +      *$$target_option*) has_opt=yes; break;; \ +    esac; \ +  done; \ +  test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +bin_PROGRAMS = client/wallet$(EXEEXT) client/wallet-rekey$(EXEEXT) +check_PROGRAMS = tests/runtests$(EXEEXT) \ +	tests/portable/asprintf-t$(EXEEXT) \ +	tests/portable/mkstemp-t$(EXEEXT) \ +	tests/portable/setenv-t$(EXEEXT) \ +	tests/portable/snprintf-t$(EXEEXT) \ +	tests/util/messages-krb5-t$(EXEEXT) \ +	tests/util/messages-t$(EXEEXT) tests/util/xmalloc$(EXEEXT) +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/cc-flags.m4 \ +	$(top_srcdir)/m4/clang.m4 $(top_srcdir)/m4/gssapi.m4 \ +	$(top_srcdir)/m4/krb5-config.m4 $(top_srcdir)/m4/krb5.m4 \ +	$(top_srcdir)/m4/lib-depends.m4 \ +	$(top_srcdir)/m4/lib-pathname.m4 $(top_srcdir)/m4/perl.m4 \ +	$(top_srcdir)/m4/remctl.m4 $(top_srcdir)/m4/snprintf.m4 \ +	$(top_srcdir)/m4/vamacros.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ +	$(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ +	$(am__configure_deps) $(dist_pkgdata_DATA) $(am__DIST_COMMON) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = tests/client/basic-t tests/client/full-t \ +	tests/client/prompt-t tests/client/rekey-t +CONFIG_CLEAN_VPATH_FILES = +LIBRARIES = $(noinst_LIBRARIES) +ARFLAGS = cru +AM_V_AR = $(am__v_AR_@AM_V@) +am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) +am__v_AR_0 = @echo "  AR      " $@; +am__v_AR_1 =  +client_libwallet_a_AR = $(AR) $(ARFLAGS) +client_libwallet_a_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am_client_libwallet_a_OBJECTS =  \ +	client/client_libwallet_a-file.$(OBJEXT) \ +	client/client_libwallet_a-keytab.$(OBJEXT) \ +	client/client_libwallet_a-krb5.$(OBJEXT) \ +	client/client_libwallet_a-options.$(OBJEXT) \ +	client/client_libwallet_a-remctl.$(OBJEXT) \ +	client/client_libwallet_a-srvtab.$(OBJEXT) +client_libwallet_a_OBJECTS = $(am_client_libwallet_a_OBJECTS) +portable_libportable_a_AR = $(AR) $(ARFLAGS) +LIBOBJDIR = portable/ +portable_libportable_a_DEPENDENCIES = $(LIBOBJS) +am_portable_libportable_a_OBJECTS =  \ +	portable/portable_libportable_a-dummy.$(OBJEXT) +portable_libportable_a_OBJECTS = $(am_portable_libportable_a_OBJECTS) +tests_tap_libtap_a_AR = $(AR) $(ARFLAGS) +tests_tap_libtap_a_LIBADD = +am_tests_tap_libtap_a_OBJECTS =  \ +	tests/tap/tests_tap_libtap_a-basic.$(OBJEXT) \ +	tests/tap/tests_tap_libtap_a-kerberos.$(OBJEXT) \ +	tests/tap/tests_tap_libtap_a-messages.$(OBJEXT) \ +	tests/tap/tests_tap_libtap_a-process.$(OBJEXT) \ +	tests/tap/tests_tap_libtap_a-string.$(OBJEXT) +tests_tap_libtap_a_OBJECTS = $(am_tests_tap_libtap_a_OBJECTS) +util_libutil_a_AR = $(AR) $(ARFLAGS) +util_libutil_a_LIBADD = +am_util_libutil_a_OBJECTS =  \ +	util/util_libutil_a-messages-krb5.$(OBJEXT) \ +	util/util_libutil_a-messages.$(OBJEXT) \ +	util/util_libutil_a-xmalloc.$(OBJEXT) +util_libutil_a_OBJECTS = $(am_util_libutil_a_OBJECTS) +am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" \ +	"$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man8dir)" \ +	"$(DESTDIR)$(pkgdatadir)" +PROGRAMS = $(bin_PROGRAMS) +client_wallet_SOURCES = client/wallet.c +client_wallet_OBJECTS = client/client_wallet-wallet.$(OBJEXT) +am__DEPENDENCIES_1 = +client_wallet_DEPENDENCIES = client/libwallet.a util/libutil.a \ +	portable/libportable.a $(am__DEPENDENCIES_1) \ +	$(am__DEPENDENCIES_1) +client_wallet_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +	$(client_wallet_LDFLAGS) $(LDFLAGS) -o $@ +client_wallet_rekey_SOURCES = client/wallet-rekey.c +client_wallet_rekey_OBJECTS =  \ +	client/client_wallet_rekey-wallet-rekey.$(OBJEXT) +client_wallet_rekey_DEPENDENCIES = client/libwallet.a util/libutil.a \ +	portable/libportable.a $(am__DEPENDENCIES_1) \ +	$(am__DEPENDENCIES_1) +client_wallet_rekey_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +	$(client_wallet_rekey_LDFLAGS) $(LDFLAGS) -o $@ +am_tests_portable_asprintf_t_OBJECTS =  \ +	tests/portable/asprintf-t.$(OBJEXT) \ +	tests/portable/asprintf.$(OBJEXT) +tests_portable_asprintf_t_OBJECTS =  \ +	$(am_tests_portable_asprintf_t_OBJECTS) +tests_portable_asprintf_t_DEPENDENCIES = tests/tap/libtap.a \ +	portable/libportable.a +am_tests_portable_mkstemp_t_OBJECTS =  \ +	tests/portable/mkstemp-t.$(OBJEXT) \ +	tests/portable/mkstemp.$(OBJEXT) +tests_portable_mkstemp_t_OBJECTS =  \ +	$(am_tests_portable_mkstemp_t_OBJECTS) +tests_portable_mkstemp_t_DEPENDENCIES = tests/tap/libtap.a \ +	portable/libportable.a +am_tests_portable_setenv_t_OBJECTS =  \ +	tests/portable/setenv-t.$(OBJEXT) \ +	tests/portable/setenv.$(OBJEXT) +tests_portable_setenv_t_OBJECTS =  \ +	$(am_tests_portable_setenv_t_OBJECTS) +tests_portable_setenv_t_DEPENDENCIES = tests/tap/libtap.a \ +	portable/libportable.a +am_tests_portable_snprintf_t_OBJECTS =  \ +	tests/portable/snprintf-t.$(OBJEXT) \ +	tests/portable/snprintf.$(OBJEXT) +tests_portable_snprintf_t_OBJECTS =  \ +	$(am_tests_portable_snprintf_t_OBJECTS) +tests_portable_snprintf_t_DEPENDENCIES = tests/tap/libtap.a \ +	portable/libportable.a +tests_runtests_SOURCES = tests/runtests.c +tests_runtests_OBJECTS = tests/tests_runtests-runtests.$(OBJEXT) +tests_runtests_LDADD = $(LDADD) +tests_util_messages_krb5_t_SOURCES = tests/util/messages-krb5-t.c +tests_util_messages_krb5_t_OBJECTS = tests/util/tests_util_messages_krb5_t-messages-krb5-t.$(OBJEXT) +tests_util_messages_krb5_t_DEPENDENCIES = tests/tap/libtap.a \ +	util/libutil.a portable/libportable.a $(am__DEPENDENCIES_1) +tests_util_messages_krb5_t_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +	$(tests_util_messages_krb5_t_LDFLAGS) $(LDFLAGS) -o $@ +tests_util_messages_t_SOURCES = tests/util/messages-t.c +tests_util_messages_t_OBJECTS = tests/util/messages-t.$(OBJEXT) +tests_util_messages_t_DEPENDENCIES = tests/tap/libtap.a util/libutil.a \ +	portable/libportable.a +tests_util_xmalloc_SOURCES = tests/util/xmalloc.c +tests_util_xmalloc_OBJECTS = tests/util/xmalloc.$(OBJEXT) +tests_util_xmalloc_DEPENDENCIES = util/libutil.a \ +	portable/libportable.a +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ +    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ +    *) f=$$p;; \ +  esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ +  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ +  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ +  for p in $$list; do echo "$$p $$p"; done | \ +  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ +  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ +    if (++n[$$2] == $(am__install_max)) \ +      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ +    END { for (dir in files) print dir, files[dir] }' +am__base_list = \ +  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ +  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ +  test -z "$$files" \ +    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ +    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ +         $(am__cd) "$$dir" && rm -f $$files; }; \ +  } +SCRIPTS = $(sbin_SCRIPTS) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo "  GEN     " $@; +am__v_GEN_1 =  +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 =  +DEFAULT_INCLUDES = -I.@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 =  +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo "  CC      " $@; +am__v_CC_1 =  +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo "  CCLD    " $@; +am__v_CCLD_1 =  +SOURCES = $(client_libwallet_a_SOURCES) \ +	$(portable_libportable_a_SOURCES) \ +	$(tests_tap_libtap_a_SOURCES) $(util_libutil_a_SOURCES) \ +	client/wallet.c client/wallet-rekey.c \ +	$(tests_portable_asprintf_t_SOURCES) \ +	$(tests_portable_mkstemp_t_SOURCES) \ +	$(tests_portable_setenv_t_SOURCES) \ +	$(tests_portable_snprintf_t_SOURCES) tests/runtests.c \ +	tests/util/messages-krb5-t.c tests/util/messages-t.c \ +	tests/util/xmalloc.c +DIST_SOURCES = $(client_libwallet_a_SOURCES) \ +	$(portable_libportable_a_SOURCES) \ +	$(tests_tap_libtap_a_SOURCES) $(util_libutil_a_SOURCES) \ +	client/wallet.c client/wallet-rekey.c \ +	$(tests_portable_asprintf_t_SOURCES) \ +	$(tests_portable_mkstemp_t_SOURCES) \ +	$(tests_portable_setenv_t_SOURCES) \ +	$(tests_portable_snprintf_t_SOURCES) tests/runtests.c \ +	tests/util/messages-krb5-t.c tests/util/messages-t.c \ +	tests/util/xmalloc.c +am__can_run_installinfo = \ +  case $$AM_UPDATE_INFO_DIR in \ +    n|no|NO) false;; \ +    *) (install-info --version) >/dev/null 2>&1;; \ +  esac +man1dir = $(mandir)/man1 +man8dir = $(mandir)/man8 +NROFF = nroff +MANS = $(dist_man_MANS) +DATA = $(dist_pkgdata_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ +	$(LISP)config.h.in +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates.  Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ +  BEGIN { nonempty = 0; } \ +  { items[$$0] = 1; nonempty = 1; } \ +  END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique.  This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ +  list='$(am__tagged_files)'; \ +  unique=`for i in $$list; do \ +    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ +  done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +CSCOPE = cscope +AM_RECURSIVE_TARGETS = cscope +am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.in \ +	$(srcdir)/config.h.in $(top_srcdir)/build-aux/ar-lib \ +	$(top_srcdir)/build-aux/compile \ +	$(top_srcdir)/build-aux/depcomp \ +	$(top_srcdir)/build-aux/install-sh \ +	$(top_srcdir)/build-aux/missing \ +	$(top_srcdir)/portable/asprintf.c \ +	$(top_srcdir)/portable/krb5-extra.c \ +	$(top_srcdir)/portable/krb5-profile.c \ +	$(top_srcdir)/portable/mkstemp.c \ +	$(top_srcdir)/portable/reallocarray.c \ +	$(top_srcdir)/portable/setenv.c \ +	$(top_srcdir)/portable/snprintf.c \ +	$(top_srcdir)/tests/client/basic-t.in \ +	$(top_srcdir)/tests/client/full-t.in \ +	$(top_srcdir)/tests/client/prompt-t.in \ +	$(top_srcdir)/tests/client/rekey-t.in NEWS README THANKS TODO \ +	build-aux/ar-lib build-aux/compile build-aux/depcomp \ +	build-aux/install-sh build-aux/missing +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ +  if test -d "$(distdir)"; then \ +    find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ +      && rm -rf "$(distdir)" \ +      || { sleep 5 && rm -rf "$(distdir)"; }; \ +  else :; fi +am__post_remove_distdir = $(am__remove_distdir) +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz +GZIP_ENV = --best +DIST_TARGETS = dist-xz dist-gzip +distuninstallcheck_listfiles = find . -type f -print +am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ +  | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GREP = @GREP@ +GSSAPI_CPPFLAGS = @GSSAPI_CPPFLAGS@ +GSSAPI_LDFLAGS = @GSSAPI_LDFLAGS@ +GSSAPI_LIBS = @GSSAPI_LIBS@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +KRB5_CPPFLAGS = @KRB5_CPPFLAGS@ +KRB5_CPPFLAGS_GCC = @KRB5_CPPFLAGS_GCC@ +KRB5_LDFLAGS = @KRB5_LDFLAGS@ +KRB5_LIBS = @KRB5_LIBS@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_KRB5_CONFIG = @PATH_KRB5_CONFIG@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +RANLIB = @RANLIB@ +REMCTLD = @REMCTLD@ +REMCTL_CPPFLAGS = @REMCTL_CPPFLAGS@ +REMCTL_LDFLAGS = @REMCTL_LDFLAGS@ +REMCTL_LIBS = @REMCTL_LIBS@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +WARNINGS_CFLAGS = @WARNINGS_CFLAGS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build_alias = @build_alias@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ + +# These two lists of files are needed for Perl builds and for the test suite +# and are not generated or touched by configure.  They're listed here to be +# added to EXTRA_DIST and so that they can be copied over properly for +# builddir != srcdir builds. +PERL_FILES = perl/Build.PL perl/MANIFEST perl/MANIFEST.SKIP perl/create-ddl \ +	perl/lib/Wallet/ACL.pm perl/lib/Wallet/ACL/Base.pm		    \ +	perl/lib/Wallet/ACL/External.pm perl/lib/Wallet/ACL/Krb5.pm	    \ +	perl/lib/Wallet/ACL/Krb5/Regex.pm				    \ +	perl/lib/Wallet/ACL/LDAP/Attribute.pm				    \ +	perl/lib/Wallet/ACL/LDAP/Attribute/Root.pm			    \ +	perl/lib/Wallet/ACL/NetDB.pm perl/lib/Wallet/ACL/Nested.pm	    \ +	perl/lib/Wallet/ACL/NetDB/Root.pm perl/lib/Wallet/Admin.pm	    \ +	perl/lib/Wallet/Config.pm perl/lib/Wallet/Database.pm		    \ +	perl/lib/Wallet/Kadmin.pm perl/lib/Wallet/Kadmin/AD.pm		    \ +	perl/lib/Wallet/Kadmin/Heimdal.pm perl/lib/Wallet/Kadmin/MIT.pm	    \ +	perl/lib/Wallet/Object/Base.pm perl/lib/Wallet/Object/Duo.pm	    \ +	perl/lib/Wallet/Object/File.pm perl/lib/Wallet/Object/Keytab.pm	    \ +	perl/lib/Wallet/Object/Password.pm				    \ +	perl/lib/Wallet/Object/WAKeyring.pm				    \ +	perl/lib/Wallet/Policy/Stanford.pm perl/lib/Wallet/Report.pm	    \ +	perl/lib/Wallet/Schema.pm perl/lib/Wallet/Server.pm		    \ +	perl/lib/Wallet/Schema/Result/Acl.pm				    \ +	perl/lib/Wallet/Schema/Result/AclEntry.pm			    \ +	perl/lib/Wallet/Schema/Result/AclHistory.pm			    \ +	perl/lib/Wallet/Schema/Result/AclScheme.pm			    \ +	perl/lib/Wallet/Schema/Result/Duo.pm				    \ +	perl/lib/Wallet/Schema/Result/Enctype.pm			    \ +	perl/lib/Wallet/Schema/Result/Flag.pm				    \ +	perl/lib/Wallet/Schema/Result/KeytabEnctype.pm			    \ +	perl/lib/Wallet/Schema/Result/KeytabSync.pm			    \ +	perl/lib/Wallet/Schema/Result/Object.pm				    \ +	perl/lib/Wallet/Schema/Result/ObjectHistory.pm			    \ +	perl/lib/Wallet/Schema/Result/SyncTarget.pm			    \ +	perl/lib/Wallet/Schema/Result/Type.pm				    \ +	perl/sql/Wallet-Schema-0.07-0.08-MySQL.sql			    \ +	perl/sql/Wallet-Schema-0.07-0.08-SQLite.sql			    \ +	perl/sql/Wallet-Schema-0.07-MySQL.sql				    \ +	perl/sql/Wallet-Schema-0.07-SQLite.sql				    \ +	perl/sql/Wallet-Schema-0.08-0.09-MySQL.sql			    \ +	perl/sql/Wallet-Schema-0.08-0.09-PostgreSQL.sql			    \ +	perl/sql/Wallet-Schema-0.08-0.09-SQLite.sql			    \ +	perl/sql/Wallet-Schema-0.08-MySQL.sql				    \ +	perl/sql/Wallet-Schema-0.08-PostgreSQL.sql			    \ +	perl/sql/Wallet-Schema-0.08-SQLite.sql				    \ +	perl/sql/Wallet-Schema-0.09-MySQL.sql				    \ +	perl/sql/Wallet-Schema-0.09-PostgreSQL.sql			    \ +	perl/sql/Wallet-Schema-0.09-SQLite.sql				    \ +	perl/sql/Wallet-Schema-0.09-0.10-MySQL.sql			    \ +	perl/sql/Wallet-Schema-0.09-0.10-PostgreSQL.sql			    \ +	perl/sql/Wallet-Schema-0.09-0.10-SQLite.sql			    \ +	perl/sql/Wallet-Schema-0.10-MySQL.sql				    \ +	perl/sql/Wallet-Schema-0.10-PostgreSQL.sql			    \ +	perl/sql/Wallet-Schema-0.10-SQLite.sql				    \ +	perl/sql/wallet-1.3-update-duo.sql perl/t/data/README		    \ +	perl/t/data/acl-command perl/t/data/duo/integration.json	    \ +	perl/t/data/duo/integration-ldap.json				    \ +	perl/t/data/duo/integration-radius.json				    \ +	perl/t/data/duo/integration-rdp.json perl/t/data/duo/keys.json	    \ +	perl/t/data/keytab-fake perl/t/data/keytab.conf			    \ +	perl/t/data/netdb-fake perl/t/data/netdb.conf perl/t/data/perl.conf \ +	perl/t/docs/pod-spelling.t perl/t/docs/pod.t perl/t/general/acl.t   \ +	perl/t/general/admin.t perl/t/general/config.t			    \ +	perl/t/general/init.t perl/t/general/report.t			    \ +	perl/t/general/server.t perl/t/lib/Util.pm perl/t/object/base.t	    \ +	perl/t/object/duo.t perl/t/object/duo-ldap.t			    \ +	perl/t/object/duo-pam.t perl/t/object/duo-radius.t		    \ +	perl/t/object/duo-rdp.t perl/t/object/file.t perl/t/object/keytab.t \ +	perl/t/object/password.t perl/t/object/wa-keyring.t		    \ +	perl/t/policy/stanford.t perl/t/style/minimum-version.t		    \ +	perl/t/style/strict.t perl/t/util/kadmin.t perl/t/verifier/basic.t  \ +	perl/t/verifier/external.t perl/t/verifier/ldap-attr.t		    \ +	perl/t/verifier/nested.t perl/t/verifier/netdb.t + + +# Directories that have to be created in builddir != srcdir builds before +# copying PERL_FILES over. +PERL_DIRECTORIES = perl perl/lib perl/lib/Wallet perl/lib/Wallet/ACL	    \ +	perl/lib/Wallet/ACL/Krb5 perl/lib/Wallet/ACL/LDAP		    \ +	perl/lib/Wallet/ACL/LDAP/Attribute perl/lib/Wallet/ACL/NetDB	    \ +	perl/lib/Wallet/Kadmin perl/lib/Wallet/Object			    \ +	perl/lib/Wallet/Policy perl/lib/Wallet/Schema			    \ +	perl/lib/Wallet/Schema/Result perl/sql perl/t perl/t/data	    \ +	perl/t/data/duo perl/t/docs perl/t/general perl/t/lib perl/t/object \ +	perl/t/policy perl/t/style perl/t/util perl/t/verifier + +ACLOCAL_AMFLAGS = -I m4 +EXTRA_DIST = .gitignore .travis.yml LICENSE README.md bootstrap		    \ +	client/wallet.pod client/wallet-rekey.pod config/allow-extract	    \ +	config/keytab config/keytab.acl config/wallet			    \ +	config/wallet-report.acl docs/design contrib/README		    \ +	contrib/ad-keytab contrib/commerzbank/wallet-history		    \ +	contrib/convert-srvtab-db contrib/used-principals		    \ +	contrib/wallet-contacts contrib/wallet-rekey-periodic		    \ +	contrib/wallet-rekey-periodic.8 contrib/wallet-summary		    \ +	contrib/wallet-summary.8 contrib/wallet-unknown-hosts		    \ +	contrib/wallet-unknown-hosts.8 docs/design-acl docs/design-api	    \ +	docs/metadata docs/netdb-role-api docs/notes			    \ +	docs/objects-and-schemes docs/setup docs/stanford-naming	    \ +	examples/stanford.conf server/keytab-backend.in			    \ +	server/wallet-admin.in server/wallet-backend.in			    \ +	server/wallet-report.in tests/README tests/TESTS		    \ +	tests/config/README tests/data/allow-extract tests/data/basic.conf  \ +	tests/data/cmd-fake tests/data/cmd-wrapper tests/data/cppcheck.supp \ +	tests/data/fake-data tests/data/fake-kadmin tests/data/fake-keytab  \ +	tests/data/fake-keytab-2 tests/data/fake-keytab-foreign		    \ +	tests/data/fake-keytab-merge tests/data/fake-keytab-old		    \ +	tests/data/fake-keytab-partial					    \ +	tests/data/fake-keytab-partial-result tests/data/fake-keytab-rekey  \ +	tests/data/fake-keytab-unknown tests/data/fake-srvtab		    \ +	tests/data/full.conf tests/data/perl.conf tests/data/wallet.conf    \ +	tests/docs/pod-spelling-t tests/docs/pod-t			    \ +	tests/docs/spdx-license-t tests/perl/minimum-version-t		    \ +	tests/perl/module-version-t tests/perl/strict-t			    \ +	tests/server/admin-t tests/server/backend-t tests/server/keytab-t   \ +	tests/server/report-t tests/style/obsolete-strings-t		    \ +	tests/tap/kerberos.sh tests/tap/libtap.sh			    \ +	tests/tap/perl/Test/RRA.pm tests/tap/perl/Test/RRA/Automake.pm	    \ +	tests/tap/perl/Test/RRA/Config.pm				    \ +	tests/tap/perl/Test/RRA/ModuleVersion.pm tests/tap/remctl.sh	    \ +	tests/util/xmalloc-t $(PERL_FILES) + + +# Supporting convenience libraries used by other targets. + +# The private library used by both wallet and wallet-rekey. +noinst_LIBRARIES = portable/libportable.a util/libutil.a \ +	client/libwallet.a +portable_libportable_a_SOURCES = portable/dummy.c portable/krb5.h	\ +	portable/macros.h portable/stdbool.h portable/system.h		\ +	portable/uio.h + +portable_libportable_a_CPPFLAGS = $(KRB5_CPPFLAGS) +portable_libportable_a_LIBADD = $(LIBOBJS) +util_libutil_a_SOURCES = util/macros.h util/messages-krb5.c		    \ +	util/messages-krb5.h util/messages.c util/messages.h util/xmalloc.c \ +	util/xmalloc.h + +util_libutil_a_CPPFLAGS = $(KRB5_CPPFLAGS) +client_libwallet_a_SOURCES = client/file.c client/internal.h client/keytab.c \ +	client/krb5.c client/options.c client/remctl.c client/srvtab.c + +client_libwallet_a_CPPFLAGS = $(REMCTL_CPPFLAGS) $(KRB5_CPPFLAGS) +sbin_SCRIPTS = server/keytab-backend server/wallet-admin \ +	server/wallet-backend server/wallet-report + +client_wallet_CPPFLAGS = $(REMCTL_CPPFLAGS) $(KRB5_CPPFLAGS) +client_wallet_LDFLAGS = $(REMCTL_LDFLAGS) $(KRB5_LDFLAGS) +client_wallet_LDADD = client/libwallet.a util/libutil.a \ +	portable/libportable.a $(REMCTL_LIBS) $(KRB5_LIBS) + +client_wallet_rekey_CPPFLAGS = $(REMCTL_CPPFLAGS) $(KRB5_CPPFLAGS) +client_wallet_rekey_LDFLAGS = $(REMCTL_LDFLAGS) $(KRB5_LDFLAGS) +client_wallet_rekey_LDADD = client/libwallet.a util/libutil.a \ +	portable/libportable.a $(REMCTL_LIBS) $(KRB5_LIBS) + + +# The manual pages. +dist_man_MANS = client/wallet.1 client/wallet-rekey.1 server/keytab-backend.8 \ +	server/wallet-admin.8 server/wallet-backend.8 server/wallet-report.8 + + +# Install the SQL files that are used by the server code to do upgrades. +dist_pkgdata_DATA = perl/sql/Wallet-Schema-0.07-0.08-MySQL.sql	\ +	perl/sql/Wallet-Schema-0.07-0.08-SQLite.sql		\ +	perl/sql/Wallet-Schema-0.07-MySQL.sql			\ +	perl/sql/Wallet-Schema-0.07-SQLite.sql			\ +	perl/sql/Wallet-Schema-0.08-0.09-MySQL.sql		\ +	perl/sql/Wallet-Schema-0.08-0.09-PostgreSQL.sql		\ +	perl/sql/Wallet-Schema-0.08-0.09-SQLite.sql		\ +	perl/sql/Wallet-Schema-0.08-MySQL.sql			\ +	perl/sql/Wallet-Schema-0.08-PostgreSQL.sql		\ +	perl/sql/Wallet-Schema-0.08-SQLite.sql			\ +	perl/sql/Wallet-Schema-0.09-MySQL.sql			\ +	perl/sql/Wallet-Schema-0.09-PostgreSQL.sql		\ +	perl/sql/Wallet-Schema-0.09-SQLite.sql + + +# Remove some additional files. +CLEANFILES = perl/t/lib/Test/RRA.pm perl/t/lib/Test/RRA/Automake.pm	\ +	perl/t/lib/Test/RRA/Config.pm server/keytab-backend		\ +	server/wallet-admin server/wallet-backend server/wallet-report + +MAINTAINERCLEANFILES = Makefile.in aclocal.m4 build-aux/compile		     \ +	build-aux/depcomp build-aux/install-sh build-aux/missing	     \ +	client/wallet.1 config.h.in config.h.in~ configure		     \ +	contrib/wallet-report.8 server/keytab-backend.8			     \ +	server/wallet-admin.8 server/wallet-backend.8 server/wallet-report.8 + +tests_runtests_CPPFLAGS = -DC_TAP_SOURCE='"$(abs_top_srcdir)/tests"' \ +	-DC_TAP_BUILD='"$(abs_top_builddir)/tests"' + +check_LIBRARIES = tests/tap/libtap.a +tests_tap_libtap_a_CPPFLAGS = -I$(abs_top_srcdir)/tests $(KRB5_CPPFLAGS) +tests_tap_libtap_a_SOURCES = tests/tap/basic.c tests/tap/basic.h	\ +	tests/tap/kerberos.c tests/tap/kerberos.h tests/tap/macros.h	\ +	tests/tap/messages.c tests/tap/messages.h tests/tap/process.c	\ +	tests/tap/process.h tests/tap/string.c tests/tap/string.h + + +# All of the test programs. +tests_portable_asprintf_t_SOURCES = tests/portable/asprintf-t.c \ +	tests/portable/asprintf.c + +tests_portable_asprintf_t_LDADD = tests/tap/libtap.a portable/libportable.a +tests_portable_mkstemp_t_SOURCES = tests/portable/mkstemp-t.c \ +	tests/portable/mkstemp.c + +tests_portable_mkstemp_t_LDADD = tests/tap/libtap.a portable/libportable.a +tests_portable_setenv_t_SOURCES = tests/portable/setenv-t.c \ +	tests/portable/setenv.c + +tests_portable_setenv_t_LDADD = tests/tap/libtap.a portable/libportable.a +tests_portable_snprintf_t_SOURCES = tests/portable/snprintf-t.c \ +	tests/portable/snprintf.c + +tests_portable_snprintf_t_LDADD = tests/tap/libtap.a portable/libportable.a +tests_util_messages_krb5_t_CPPFLAGS = $(KRB5_CPPFLAGS) +tests_util_messages_krb5_t_LDFLAGS = $(KRB5_LDFLAGS) +tests_util_messages_krb5_t_LDADD = tests/tap/libtap.a util/libutil.a \ +	portable/libportable.a $(KRB5_LIBS) + +tests_util_messages_t_LDADD = tests/tap/libtap.a util/libutil.a \ +	portable/libportable.a + +tests_util_xmalloc_LDADD = util/libutil.a portable/libportable.a +all: config.h +	$(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +am--refresh: Makefile +	@: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps) +	@for dep in $?; do \ +	  case '$(am__configure_deps)' in \ +	    *$$dep*) \ +	      echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ +	      $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ +		&& exit 0; \ +	      exit 1;; \ +	  esac; \ +	done; \ +	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ +	$(am__cd) $(top_srcdir) && \ +	  $(AUTOMAKE) --foreign Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status +	@case '$?' in \ +	  *config.status*) \ +	    echo ' $(SHELL) ./config.status'; \ +	    $(SHELL) ./config.status;; \ +	  *) \ +	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ +	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ +	esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) +	$(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) +	$(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) +	$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 +	@test -f $@ || rm -f stamp-h1 +	@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status +	@rm -f stamp-h1 +	cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)  +	($(am__cd) $(top_srcdir) && $(AUTOHEADER)) +	rm -f stamp-h1 +	touch $@ + +distclean-hdr: +	-rm -f config.h stamp-h1 +tests/client/basic-t: $(top_builddir)/config.status $(top_srcdir)/tests/client/basic-t.in +	cd $(top_builddir) && $(SHELL) ./config.status $@ +tests/client/full-t: $(top_builddir)/config.status $(top_srcdir)/tests/client/full-t.in +	cd $(top_builddir) && $(SHELL) ./config.status $@ +tests/client/prompt-t: $(top_builddir)/config.status $(top_srcdir)/tests/client/prompt-t.in +	cd $(top_builddir) && $(SHELL) ./config.status $@ +tests/client/rekey-t: $(top_builddir)/config.status $(top_srcdir)/tests/client/rekey-t.in +	cd $(top_builddir) && $(SHELL) ./config.status $@ + +clean-checkLIBRARIES: +	-test -z "$(check_LIBRARIES)" || rm -f $(check_LIBRARIES) + +clean-noinstLIBRARIES: +	-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) +client/$(am__dirstamp): +	@$(MKDIR_P) client +	@: > client/$(am__dirstamp) +client/$(DEPDIR)/$(am__dirstamp): +	@$(MKDIR_P) client/$(DEPDIR) +	@: > client/$(DEPDIR)/$(am__dirstamp) +client/client_libwallet_a-file.$(OBJEXT): client/$(am__dirstamp) \ +	client/$(DEPDIR)/$(am__dirstamp) +client/client_libwallet_a-keytab.$(OBJEXT): client/$(am__dirstamp) \ +	client/$(DEPDIR)/$(am__dirstamp) +client/client_libwallet_a-krb5.$(OBJEXT): client/$(am__dirstamp) \ +	client/$(DEPDIR)/$(am__dirstamp) +client/client_libwallet_a-options.$(OBJEXT): client/$(am__dirstamp) \ +	client/$(DEPDIR)/$(am__dirstamp) +client/client_libwallet_a-remctl.$(OBJEXT): client/$(am__dirstamp) \ +	client/$(DEPDIR)/$(am__dirstamp) +client/client_libwallet_a-srvtab.$(OBJEXT): client/$(am__dirstamp) \ +	client/$(DEPDIR)/$(am__dirstamp) + +client/libwallet.a: $(client_libwallet_a_OBJECTS) $(client_libwallet_a_DEPENDENCIES) $(EXTRA_client_libwallet_a_DEPENDENCIES) client/$(am__dirstamp) +	$(AM_V_at)-rm -f client/libwallet.a +	$(AM_V_AR)$(client_libwallet_a_AR) client/libwallet.a $(client_libwallet_a_OBJECTS) $(client_libwallet_a_LIBADD) +	$(AM_V_at)$(RANLIB) client/libwallet.a +portable/$(am__dirstamp): +	@$(MKDIR_P) portable +	@: > portable/$(am__dirstamp) +portable/$(DEPDIR)/$(am__dirstamp): +	@$(MKDIR_P) portable/$(DEPDIR) +	@: > portable/$(DEPDIR)/$(am__dirstamp) +portable/portable_libportable_a-dummy.$(OBJEXT):  \ +	portable/$(am__dirstamp) portable/$(DEPDIR)/$(am__dirstamp) + +portable/libportable.a: $(portable_libportable_a_OBJECTS) $(portable_libportable_a_DEPENDENCIES) $(EXTRA_portable_libportable_a_DEPENDENCIES) portable/$(am__dirstamp) +	$(AM_V_at)-rm -f portable/libportable.a +	$(AM_V_AR)$(portable_libportable_a_AR) portable/libportable.a $(portable_libportable_a_OBJECTS) $(portable_libportable_a_LIBADD) +	$(AM_V_at)$(RANLIB) portable/libportable.a +tests/tap/$(am__dirstamp): +	@$(MKDIR_P) tests/tap +	@: > tests/tap/$(am__dirstamp) +tests/tap/$(DEPDIR)/$(am__dirstamp): +	@$(MKDIR_P) tests/tap/$(DEPDIR) +	@: > tests/tap/$(DEPDIR)/$(am__dirstamp) +tests/tap/tests_tap_libtap_a-basic.$(OBJEXT):  \ +	tests/tap/$(am__dirstamp) tests/tap/$(DEPDIR)/$(am__dirstamp) +tests/tap/tests_tap_libtap_a-kerberos.$(OBJEXT):  \ +	tests/tap/$(am__dirstamp) tests/tap/$(DEPDIR)/$(am__dirstamp) +tests/tap/tests_tap_libtap_a-messages.$(OBJEXT):  \ +	tests/tap/$(am__dirstamp) tests/tap/$(DEPDIR)/$(am__dirstamp) +tests/tap/tests_tap_libtap_a-process.$(OBJEXT):  \ +	tests/tap/$(am__dirstamp) tests/tap/$(DEPDIR)/$(am__dirstamp) +tests/tap/tests_tap_libtap_a-string.$(OBJEXT):  \ +	tests/tap/$(am__dirstamp) tests/tap/$(DEPDIR)/$(am__dirstamp) + +tests/tap/libtap.a: $(tests_tap_libtap_a_OBJECTS) $(tests_tap_libtap_a_DEPENDENCIES) $(EXTRA_tests_tap_libtap_a_DEPENDENCIES) tests/tap/$(am__dirstamp) +	$(AM_V_at)-rm -f tests/tap/libtap.a +	$(AM_V_AR)$(tests_tap_libtap_a_AR) tests/tap/libtap.a $(tests_tap_libtap_a_OBJECTS) $(tests_tap_libtap_a_LIBADD) +	$(AM_V_at)$(RANLIB) tests/tap/libtap.a +util/$(am__dirstamp): +	@$(MKDIR_P) util +	@: > util/$(am__dirstamp) +util/$(DEPDIR)/$(am__dirstamp): +	@$(MKDIR_P) util/$(DEPDIR) +	@: > util/$(DEPDIR)/$(am__dirstamp) +util/util_libutil_a-messages-krb5.$(OBJEXT): util/$(am__dirstamp) \ +	util/$(DEPDIR)/$(am__dirstamp) +util/util_libutil_a-messages.$(OBJEXT): util/$(am__dirstamp) \ +	util/$(DEPDIR)/$(am__dirstamp) +util/util_libutil_a-xmalloc.$(OBJEXT): util/$(am__dirstamp) \ +	util/$(DEPDIR)/$(am__dirstamp) + +util/libutil.a: $(util_libutil_a_OBJECTS) $(util_libutil_a_DEPENDENCIES) $(EXTRA_util_libutil_a_DEPENDENCIES) util/$(am__dirstamp) +	$(AM_V_at)-rm -f util/libutil.a +	$(AM_V_AR)$(util_libutil_a_AR) util/libutil.a $(util_libutil_a_OBJECTS) $(util_libutil_a_LIBADD) +	$(AM_V_at)$(RANLIB) util/libutil.a +install-binPROGRAMS: $(bin_PROGRAMS) +	@$(NORMAL_INSTALL) +	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ +	if test -n "$$list"; then \ +	  echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ +	  $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ +	fi; \ +	for p in $$list; do echo "$$p $$p"; done | \ +	sed 's/$(EXEEXT)$$//' | \ +	while read p p1; do if test -f $$p \ +	  ; then echo "$$p"; echo "$$p"; else :; fi; \ +	done | \ +	sed -e 'p;s,.*/,,;n;h' \ +	    -e 's|.*|.|' \ +	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ +	sed 'N;N;N;s,\n, ,g' | \ +	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ +	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ +	    if ($$2 == $$4) files[d] = files[d] " " $$1; \ +	    else { print "f", $$3 "/" $$4, $$1; } } \ +	  END { for (d in files) print "f", d, files[d] }' | \ +	while read type dir files; do \ +	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ +	    test -z "$$files" || { \ +	      echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ +	      $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ +	    } \ +	; done + +uninstall-binPROGRAMS: +	@$(NORMAL_UNINSTALL) +	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ +	files=`for p in $$list; do echo "$$p"; done | \ +	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ +	      -e 's/$$/$(EXEEXT)/' \ +	`; \ +	test -n "$$list" || exit 0; \ +	echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ +	cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: +	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) + +clean-checkPROGRAMS: +	-test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +client/client_wallet-wallet.$(OBJEXT): client/$(am__dirstamp) \ +	client/$(DEPDIR)/$(am__dirstamp) + +client/wallet$(EXEEXT): $(client_wallet_OBJECTS) $(client_wallet_DEPENDENCIES) $(EXTRA_client_wallet_DEPENDENCIES) client/$(am__dirstamp) +	@rm -f client/wallet$(EXEEXT) +	$(AM_V_CCLD)$(client_wallet_LINK) $(client_wallet_OBJECTS) $(client_wallet_LDADD) $(LIBS) +client/client_wallet_rekey-wallet-rekey.$(OBJEXT):  \ +	client/$(am__dirstamp) client/$(DEPDIR)/$(am__dirstamp) + +client/wallet-rekey$(EXEEXT): $(client_wallet_rekey_OBJECTS) $(client_wallet_rekey_DEPENDENCIES) $(EXTRA_client_wallet_rekey_DEPENDENCIES) client/$(am__dirstamp) +	@rm -f client/wallet-rekey$(EXEEXT) +	$(AM_V_CCLD)$(client_wallet_rekey_LINK) $(client_wallet_rekey_OBJECTS) $(client_wallet_rekey_LDADD) $(LIBS) +tests/portable/$(am__dirstamp): +	@$(MKDIR_P) tests/portable +	@: > tests/portable/$(am__dirstamp) +tests/portable/$(DEPDIR)/$(am__dirstamp): +	@$(MKDIR_P) tests/portable/$(DEPDIR) +	@: > tests/portable/$(DEPDIR)/$(am__dirstamp) +tests/portable/asprintf-t.$(OBJEXT): tests/portable/$(am__dirstamp) \ +	tests/portable/$(DEPDIR)/$(am__dirstamp) +tests/portable/asprintf.$(OBJEXT): tests/portable/$(am__dirstamp) \ +	tests/portable/$(DEPDIR)/$(am__dirstamp) + +tests/portable/asprintf-t$(EXEEXT): $(tests_portable_asprintf_t_OBJECTS) $(tests_portable_asprintf_t_DEPENDENCIES) $(EXTRA_tests_portable_asprintf_t_DEPENDENCIES) tests/portable/$(am__dirstamp) +	@rm -f tests/portable/asprintf-t$(EXEEXT) +	$(AM_V_CCLD)$(LINK) $(tests_portable_asprintf_t_OBJECTS) $(tests_portable_asprintf_t_LDADD) $(LIBS) +tests/portable/mkstemp-t.$(OBJEXT): tests/portable/$(am__dirstamp) \ +	tests/portable/$(DEPDIR)/$(am__dirstamp) +tests/portable/mkstemp.$(OBJEXT): tests/portable/$(am__dirstamp) \ +	tests/portable/$(DEPDIR)/$(am__dirstamp) + +tests/portable/mkstemp-t$(EXEEXT): $(tests_portable_mkstemp_t_OBJECTS) $(tests_portable_mkstemp_t_DEPENDENCIES) $(EXTRA_tests_portable_mkstemp_t_DEPENDENCIES) tests/portable/$(am__dirstamp) +	@rm -f tests/portable/mkstemp-t$(EXEEXT) +	$(AM_V_CCLD)$(LINK) $(tests_portable_mkstemp_t_OBJECTS) $(tests_portable_mkstemp_t_LDADD) $(LIBS) +tests/portable/setenv-t.$(OBJEXT): tests/portable/$(am__dirstamp) \ +	tests/portable/$(DEPDIR)/$(am__dirstamp) +tests/portable/setenv.$(OBJEXT): tests/portable/$(am__dirstamp) \ +	tests/portable/$(DEPDIR)/$(am__dirstamp) + +tests/portable/setenv-t$(EXEEXT): $(tests_portable_setenv_t_OBJECTS) $(tests_portable_setenv_t_DEPENDENCIES) $(EXTRA_tests_portable_setenv_t_DEPENDENCIES) tests/portable/$(am__dirstamp) +	@rm -f tests/portable/setenv-t$(EXEEXT) +	$(AM_V_CCLD)$(LINK) $(tests_portable_setenv_t_OBJECTS) $(tests_portable_setenv_t_LDADD) $(LIBS) +tests/portable/snprintf-t.$(OBJEXT): tests/portable/$(am__dirstamp) \ +	tests/portable/$(DEPDIR)/$(am__dirstamp) +tests/portable/snprintf.$(OBJEXT): tests/portable/$(am__dirstamp) \ +	tests/portable/$(DEPDIR)/$(am__dirstamp) + +tests/portable/snprintf-t$(EXEEXT): $(tests_portable_snprintf_t_OBJECTS) $(tests_portable_snprintf_t_DEPENDENCIES) $(EXTRA_tests_portable_snprintf_t_DEPENDENCIES) tests/portable/$(am__dirstamp) +	@rm -f tests/portable/snprintf-t$(EXEEXT) +	$(AM_V_CCLD)$(LINK) $(tests_portable_snprintf_t_OBJECTS) $(tests_portable_snprintf_t_LDADD) $(LIBS) +tests/$(am__dirstamp): +	@$(MKDIR_P) tests +	@: > tests/$(am__dirstamp) +tests/$(DEPDIR)/$(am__dirstamp): +	@$(MKDIR_P) tests/$(DEPDIR) +	@: > tests/$(DEPDIR)/$(am__dirstamp) +tests/tests_runtests-runtests.$(OBJEXT): tests/$(am__dirstamp) \ +	tests/$(DEPDIR)/$(am__dirstamp) + +tests/runtests$(EXEEXT): $(tests_runtests_OBJECTS) $(tests_runtests_DEPENDENCIES) $(EXTRA_tests_runtests_DEPENDENCIES) tests/$(am__dirstamp) +	@rm -f tests/runtests$(EXEEXT) +	$(AM_V_CCLD)$(LINK) $(tests_runtests_OBJECTS) $(tests_runtests_LDADD) $(LIBS) +tests/util/$(am__dirstamp): +	@$(MKDIR_P) tests/util +	@: > tests/util/$(am__dirstamp) +tests/util/$(DEPDIR)/$(am__dirstamp): +	@$(MKDIR_P) tests/util/$(DEPDIR) +	@: > tests/util/$(DEPDIR)/$(am__dirstamp) +tests/util/tests_util_messages_krb5_t-messages-krb5-t.$(OBJEXT):  \ +	tests/util/$(am__dirstamp) \ +	tests/util/$(DEPDIR)/$(am__dirstamp) + +tests/util/messages-krb5-t$(EXEEXT): $(tests_util_messages_krb5_t_OBJECTS) $(tests_util_messages_krb5_t_DEPENDENCIES) $(EXTRA_tests_util_messages_krb5_t_DEPENDENCIES) tests/util/$(am__dirstamp) +	@rm -f tests/util/messages-krb5-t$(EXEEXT) +	$(AM_V_CCLD)$(tests_util_messages_krb5_t_LINK) $(tests_util_messages_krb5_t_OBJECTS) $(tests_util_messages_krb5_t_LDADD) $(LIBS) +tests/util/messages-t.$(OBJEXT): tests/util/$(am__dirstamp) \ +	tests/util/$(DEPDIR)/$(am__dirstamp) + +tests/util/messages-t$(EXEEXT): $(tests_util_messages_t_OBJECTS) $(tests_util_messages_t_DEPENDENCIES) $(EXTRA_tests_util_messages_t_DEPENDENCIES) tests/util/$(am__dirstamp) +	@rm -f tests/util/messages-t$(EXEEXT) +	$(AM_V_CCLD)$(LINK) $(tests_util_messages_t_OBJECTS) $(tests_util_messages_t_LDADD) $(LIBS) +tests/util/xmalloc.$(OBJEXT): tests/util/$(am__dirstamp) \ +	tests/util/$(DEPDIR)/$(am__dirstamp) + +tests/util/xmalloc$(EXEEXT): $(tests_util_xmalloc_OBJECTS) $(tests_util_xmalloc_DEPENDENCIES) $(EXTRA_tests_util_xmalloc_DEPENDENCIES) tests/util/$(am__dirstamp) +	@rm -f tests/util/xmalloc$(EXEEXT) +	$(AM_V_CCLD)$(LINK) $(tests_util_xmalloc_OBJECTS) $(tests_util_xmalloc_LDADD) $(LIBS) +install-sbinSCRIPTS: $(sbin_SCRIPTS) +	@$(NORMAL_INSTALL) +	@list='$(sbin_SCRIPTS)'; test -n "$(sbindir)" || list=; \ +	if test -n "$$list"; then \ +	  echo " $(MKDIR_P) '$(DESTDIR)$(sbindir)'"; \ +	  $(MKDIR_P) "$(DESTDIR)$(sbindir)" || exit 1; \ +	fi; \ +	for p in $$list; do \ +	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ +	  if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ +	done | \ +	sed -e 'p;s,.*/,,;n' \ +	    -e 'h;s|.*|.|' \ +	    -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ +	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ +	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ +	    if ($$2 == $$4) { files[d] = files[d] " " $$1; \ +	      if (++n[d] == $(am__install_max)) { \ +		print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ +	    else { print "f", d "/" $$4, $$1 } } \ +	  END { for (d in files) print "f", d, files[d] }' | \ +	while read type dir files; do \ +	     if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ +	     test -z "$$files" || { \ +	       echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(sbindir)$$dir'"; \ +	       $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \ +	     } \ +	; done + +uninstall-sbinSCRIPTS: +	@$(NORMAL_UNINSTALL) +	@list='$(sbin_SCRIPTS)'; test -n "$(sbindir)" || exit 0; \ +	files=`for p in $$list; do echo "$$p"; done | \ +	       sed -e 's,.*/,,;$(transform)'`; \ +	dir='$(DESTDIR)$(sbindir)'; $(am__uninstall_files_from_dir) + +mostlyclean-compile: +	-rm -f *.$(OBJEXT) +	-rm -f client/*.$(OBJEXT) +	-rm -f portable/*.$(OBJEXT) +	-rm -f tests/*.$(OBJEXT) +	-rm -f tests/portable/*.$(OBJEXT) +	-rm -f tests/tap/*.$(OBJEXT) +	-rm -f tests/util/*.$(OBJEXT) +	-rm -f util/*.$(OBJEXT) + +distclean-compile: +	-rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@client/$(DEPDIR)/client_libwallet_a-file.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@client/$(DEPDIR)/client_libwallet_a-keytab.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@client/$(DEPDIR)/client_libwallet_a-krb5.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@client/$(DEPDIR)/client_libwallet_a-options.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@client/$(DEPDIR)/client_libwallet_a-remctl.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@client/$(DEPDIR)/client_libwallet_a-srvtab.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@client/$(DEPDIR)/client_wallet-wallet.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@client/$(DEPDIR)/client_wallet_rekey-wallet-rekey.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@portable/$(DEPDIR)/asprintf.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@portable/$(DEPDIR)/krb5-extra.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@portable/$(DEPDIR)/krb5-profile.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@portable/$(DEPDIR)/mkstemp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@portable/$(DEPDIR)/portable_libportable_a-dummy.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@portable/$(DEPDIR)/reallocarray.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@portable/$(DEPDIR)/setenv.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@portable/$(DEPDIR)/snprintf.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/$(DEPDIR)/tests_runtests-runtests.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/portable/$(DEPDIR)/asprintf-t.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/portable/$(DEPDIR)/asprintf.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/portable/$(DEPDIR)/mkstemp-t.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/portable/$(DEPDIR)/mkstemp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/portable/$(DEPDIR)/setenv-t.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/portable/$(DEPDIR)/setenv.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/portable/$(DEPDIR)/snprintf-t.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/portable/$(DEPDIR)/snprintf.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/tap/$(DEPDIR)/tests_tap_libtap_a-basic.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/tap/$(DEPDIR)/tests_tap_libtap_a-kerberos.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/tap/$(DEPDIR)/tests_tap_libtap_a-messages.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/tap/$(DEPDIR)/tests_tap_libtap_a-process.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/tap/$(DEPDIR)/tests_tap_libtap_a-string.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/util/$(DEPDIR)/messages-t.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/util/$(DEPDIR)/tests_util_messages_krb5_t-messages-krb5-t.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@tests/util/$(DEPDIR)/xmalloc.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@util/$(DEPDIR)/util_libutil_a-messages-krb5.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@util/$(DEPDIR)/util_libutil_a-messages.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@util/$(DEPDIR)/util_libutil_a-xmalloc.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@	$(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@	$(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@	$(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@	$(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +client/client_libwallet_a-file.o: client/file.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-file.o -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-file.Tpo -c -o client/client_libwallet_a-file.o `test -f 'client/file.c' || echo '$(srcdir)/'`client/file.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-file.Tpo client/$(DEPDIR)/client_libwallet_a-file.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/file.c' object='client/client_libwallet_a-file.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-file.o `test -f 'client/file.c' || echo '$(srcdir)/'`client/file.c + +client/client_libwallet_a-file.obj: client/file.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-file.obj -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-file.Tpo -c -o client/client_libwallet_a-file.obj `if test -f 'client/file.c'; then $(CYGPATH_W) 'client/file.c'; else $(CYGPATH_W) '$(srcdir)/client/file.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-file.Tpo client/$(DEPDIR)/client_libwallet_a-file.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/file.c' object='client/client_libwallet_a-file.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-file.obj `if test -f 'client/file.c'; then $(CYGPATH_W) 'client/file.c'; else $(CYGPATH_W) '$(srcdir)/client/file.c'; fi` + +client/client_libwallet_a-keytab.o: client/keytab.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-keytab.o -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-keytab.Tpo -c -o client/client_libwallet_a-keytab.o `test -f 'client/keytab.c' || echo '$(srcdir)/'`client/keytab.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-keytab.Tpo client/$(DEPDIR)/client_libwallet_a-keytab.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/keytab.c' object='client/client_libwallet_a-keytab.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-keytab.o `test -f 'client/keytab.c' || echo '$(srcdir)/'`client/keytab.c + +client/client_libwallet_a-keytab.obj: client/keytab.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-keytab.obj -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-keytab.Tpo -c -o client/client_libwallet_a-keytab.obj `if test -f 'client/keytab.c'; then $(CYGPATH_W) 'client/keytab.c'; else $(CYGPATH_W) '$(srcdir)/client/keytab.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-keytab.Tpo client/$(DEPDIR)/client_libwallet_a-keytab.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/keytab.c' object='client/client_libwallet_a-keytab.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-keytab.obj `if test -f 'client/keytab.c'; then $(CYGPATH_W) 'client/keytab.c'; else $(CYGPATH_W) '$(srcdir)/client/keytab.c'; fi` + +client/client_libwallet_a-krb5.o: client/krb5.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-krb5.o -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-krb5.Tpo -c -o client/client_libwallet_a-krb5.o `test -f 'client/krb5.c' || echo '$(srcdir)/'`client/krb5.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-krb5.Tpo client/$(DEPDIR)/client_libwallet_a-krb5.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/krb5.c' object='client/client_libwallet_a-krb5.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-krb5.o `test -f 'client/krb5.c' || echo '$(srcdir)/'`client/krb5.c + +client/client_libwallet_a-krb5.obj: client/krb5.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-krb5.obj -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-krb5.Tpo -c -o client/client_libwallet_a-krb5.obj `if test -f 'client/krb5.c'; then $(CYGPATH_W) 'client/krb5.c'; else $(CYGPATH_W) '$(srcdir)/client/krb5.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-krb5.Tpo client/$(DEPDIR)/client_libwallet_a-krb5.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/krb5.c' object='client/client_libwallet_a-krb5.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-krb5.obj `if test -f 'client/krb5.c'; then $(CYGPATH_W) 'client/krb5.c'; else $(CYGPATH_W) '$(srcdir)/client/krb5.c'; fi` + +client/client_libwallet_a-options.o: client/options.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-options.o -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-options.Tpo -c -o client/client_libwallet_a-options.o `test -f 'client/options.c' || echo '$(srcdir)/'`client/options.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-options.Tpo client/$(DEPDIR)/client_libwallet_a-options.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/options.c' object='client/client_libwallet_a-options.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-options.o `test -f 'client/options.c' || echo '$(srcdir)/'`client/options.c + +client/client_libwallet_a-options.obj: client/options.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-options.obj -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-options.Tpo -c -o client/client_libwallet_a-options.obj `if test -f 'client/options.c'; then $(CYGPATH_W) 'client/options.c'; else $(CYGPATH_W) '$(srcdir)/client/options.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-options.Tpo client/$(DEPDIR)/client_libwallet_a-options.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/options.c' object='client/client_libwallet_a-options.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-options.obj `if test -f 'client/options.c'; then $(CYGPATH_W) 'client/options.c'; else $(CYGPATH_W) '$(srcdir)/client/options.c'; fi` + +client/client_libwallet_a-remctl.o: client/remctl.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-remctl.o -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-remctl.Tpo -c -o client/client_libwallet_a-remctl.o `test -f 'client/remctl.c' || echo '$(srcdir)/'`client/remctl.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-remctl.Tpo client/$(DEPDIR)/client_libwallet_a-remctl.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/remctl.c' object='client/client_libwallet_a-remctl.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-remctl.o `test -f 'client/remctl.c' || echo '$(srcdir)/'`client/remctl.c + +client/client_libwallet_a-remctl.obj: client/remctl.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-remctl.obj -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-remctl.Tpo -c -o client/client_libwallet_a-remctl.obj `if test -f 'client/remctl.c'; then $(CYGPATH_W) 'client/remctl.c'; else $(CYGPATH_W) '$(srcdir)/client/remctl.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-remctl.Tpo client/$(DEPDIR)/client_libwallet_a-remctl.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/remctl.c' object='client/client_libwallet_a-remctl.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-remctl.obj `if test -f 'client/remctl.c'; then $(CYGPATH_W) 'client/remctl.c'; else $(CYGPATH_W) '$(srcdir)/client/remctl.c'; fi` + +client/client_libwallet_a-srvtab.o: client/srvtab.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-srvtab.o -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-srvtab.Tpo -c -o client/client_libwallet_a-srvtab.o `test -f 'client/srvtab.c' || echo '$(srcdir)/'`client/srvtab.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-srvtab.Tpo client/$(DEPDIR)/client_libwallet_a-srvtab.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/srvtab.c' object='client/client_libwallet_a-srvtab.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-srvtab.o `test -f 'client/srvtab.c' || echo '$(srcdir)/'`client/srvtab.c + +client/client_libwallet_a-srvtab.obj: client/srvtab.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_libwallet_a-srvtab.obj -MD -MP -MF client/$(DEPDIR)/client_libwallet_a-srvtab.Tpo -c -o client/client_libwallet_a-srvtab.obj `if test -f 'client/srvtab.c'; then $(CYGPATH_W) 'client/srvtab.c'; else $(CYGPATH_W) '$(srcdir)/client/srvtab.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_libwallet_a-srvtab.Tpo client/$(DEPDIR)/client_libwallet_a-srvtab.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/srvtab.c' object='client/client_libwallet_a-srvtab.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_libwallet_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_libwallet_a-srvtab.obj `if test -f 'client/srvtab.c'; then $(CYGPATH_W) 'client/srvtab.c'; else $(CYGPATH_W) '$(srcdir)/client/srvtab.c'; fi` + +portable/portable_libportable_a-dummy.o: portable/dummy.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(portable_libportable_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT portable/portable_libportable_a-dummy.o -MD -MP -MF portable/$(DEPDIR)/portable_libportable_a-dummy.Tpo -c -o portable/portable_libportable_a-dummy.o `test -f 'portable/dummy.c' || echo '$(srcdir)/'`portable/dummy.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) portable/$(DEPDIR)/portable_libportable_a-dummy.Tpo portable/$(DEPDIR)/portable_libportable_a-dummy.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='portable/dummy.c' object='portable/portable_libportable_a-dummy.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(portable_libportable_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o portable/portable_libportable_a-dummy.o `test -f 'portable/dummy.c' || echo '$(srcdir)/'`portable/dummy.c + +portable/portable_libportable_a-dummy.obj: portable/dummy.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(portable_libportable_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT portable/portable_libportable_a-dummy.obj -MD -MP -MF portable/$(DEPDIR)/portable_libportable_a-dummy.Tpo -c -o portable/portable_libportable_a-dummy.obj `if test -f 'portable/dummy.c'; then $(CYGPATH_W) 'portable/dummy.c'; else $(CYGPATH_W) '$(srcdir)/portable/dummy.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) portable/$(DEPDIR)/portable_libportable_a-dummy.Tpo portable/$(DEPDIR)/portable_libportable_a-dummy.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='portable/dummy.c' object='portable/portable_libportable_a-dummy.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(portable_libportable_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o portable/portable_libportable_a-dummy.obj `if test -f 'portable/dummy.c'; then $(CYGPATH_W) 'portable/dummy.c'; else $(CYGPATH_W) '$(srcdir)/portable/dummy.c'; fi` + +tests/tap/tests_tap_libtap_a-basic.o: tests/tap/basic.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-basic.o -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-basic.Tpo -c -o tests/tap/tests_tap_libtap_a-basic.o `test -f 'tests/tap/basic.c' || echo '$(srcdir)/'`tests/tap/basic.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-basic.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-basic.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/basic.c' object='tests/tap/tests_tap_libtap_a-basic.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-basic.o `test -f 'tests/tap/basic.c' || echo '$(srcdir)/'`tests/tap/basic.c + +tests/tap/tests_tap_libtap_a-basic.obj: tests/tap/basic.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-basic.obj -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-basic.Tpo -c -o tests/tap/tests_tap_libtap_a-basic.obj `if test -f 'tests/tap/basic.c'; then $(CYGPATH_W) 'tests/tap/basic.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/basic.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-basic.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-basic.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/basic.c' object='tests/tap/tests_tap_libtap_a-basic.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-basic.obj `if test -f 'tests/tap/basic.c'; then $(CYGPATH_W) 'tests/tap/basic.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/basic.c'; fi` + +tests/tap/tests_tap_libtap_a-kerberos.o: tests/tap/kerberos.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-kerberos.o -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-kerberos.Tpo -c -o tests/tap/tests_tap_libtap_a-kerberos.o `test -f 'tests/tap/kerberos.c' || echo '$(srcdir)/'`tests/tap/kerberos.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-kerberos.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-kerberos.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/kerberos.c' object='tests/tap/tests_tap_libtap_a-kerberos.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-kerberos.o `test -f 'tests/tap/kerberos.c' || echo '$(srcdir)/'`tests/tap/kerberos.c + +tests/tap/tests_tap_libtap_a-kerberos.obj: tests/tap/kerberos.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-kerberos.obj -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-kerberos.Tpo -c -o tests/tap/tests_tap_libtap_a-kerberos.obj `if test -f 'tests/tap/kerberos.c'; then $(CYGPATH_W) 'tests/tap/kerberos.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/kerberos.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-kerberos.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-kerberos.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/kerberos.c' object='tests/tap/tests_tap_libtap_a-kerberos.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-kerberos.obj `if test -f 'tests/tap/kerberos.c'; then $(CYGPATH_W) 'tests/tap/kerberos.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/kerberos.c'; fi` + +tests/tap/tests_tap_libtap_a-messages.o: tests/tap/messages.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-messages.o -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-messages.Tpo -c -o tests/tap/tests_tap_libtap_a-messages.o `test -f 'tests/tap/messages.c' || echo '$(srcdir)/'`tests/tap/messages.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-messages.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-messages.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/messages.c' object='tests/tap/tests_tap_libtap_a-messages.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-messages.o `test -f 'tests/tap/messages.c' || echo '$(srcdir)/'`tests/tap/messages.c + +tests/tap/tests_tap_libtap_a-messages.obj: tests/tap/messages.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-messages.obj -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-messages.Tpo -c -o tests/tap/tests_tap_libtap_a-messages.obj `if test -f 'tests/tap/messages.c'; then $(CYGPATH_W) 'tests/tap/messages.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/messages.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-messages.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-messages.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/messages.c' object='tests/tap/tests_tap_libtap_a-messages.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-messages.obj `if test -f 'tests/tap/messages.c'; then $(CYGPATH_W) 'tests/tap/messages.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/messages.c'; fi` + +tests/tap/tests_tap_libtap_a-process.o: tests/tap/process.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-process.o -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-process.Tpo -c -o tests/tap/tests_tap_libtap_a-process.o `test -f 'tests/tap/process.c' || echo '$(srcdir)/'`tests/tap/process.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-process.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-process.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/process.c' object='tests/tap/tests_tap_libtap_a-process.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-process.o `test -f 'tests/tap/process.c' || echo '$(srcdir)/'`tests/tap/process.c + +tests/tap/tests_tap_libtap_a-process.obj: tests/tap/process.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-process.obj -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-process.Tpo -c -o tests/tap/tests_tap_libtap_a-process.obj `if test -f 'tests/tap/process.c'; then $(CYGPATH_W) 'tests/tap/process.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/process.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-process.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-process.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/process.c' object='tests/tap/tests_tap_libtap_a-process.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-process.obj `if test -f 'tests/tap/process.c'; then $(CYGPATH_W) 'tests/tap/process.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/process.c'; fi` + +tests/tap/tests_tap_libtap_a-string.o: tests/tap/string.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-string.o -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-string.Tpo -c -o tests/tap/tests_tap_libtap_a-string.o `test -f 'tests/tap/string.c' || echo '$(srcdir)/'`tests/tap/string.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-string.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-string.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/string.c' object='tests/tap/tests_tap_libtap_a-string.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-string.o `test -f 'tests/tap/string.c' || echo '$(srcdir)/'`tests/tap/string.c + +tests/tap/tests_tap_libtap_a-string.obj: tests/tap/string.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tap/tests_tap_libtap_a-string.obj -MD -MP -MF tests/tap/$(DEPDIR)/tests_tap_libtap_a-string.Tpo -c -o tests/tap/tests_tap_libtap_a-string.obj `if test -f 'tests/tap/string.c'; then $(CYGPATH_W) 'tests/tap/string.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/string.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/tap/$(DEPDIR)/tests_tap_libtap_a-string.Tpo tests/tap/$(DEPDIR)/tests_tap_libtap_a-string.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/tap/string.c' object='tests/tap/tests_tap_libtap_a-string.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_tap_libtap_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tap/tests_tap_libtap_a-string.obj `if test -f 'tests/tap/string.c'; then $(CYGPATH_W) 'tests/tap/string.c'; else $(CYGPATH_W) '$(srcdir)/tests/tap/string.c'; fi` + +util/util_libutil_a-messages-krb5.o: util/messages-krb5.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT util/util_libutil_a-messages-krb5.o -MD -MP -MF util/$(DEPDIR)/util_libutil_a-messages-krb5.Tpo -c -o util/util_libutil_a-messages-krb5.o `test -f 'util/messages-krb5.c' || echo '$(srcdir)/'`util/messages-krb5.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) util/$(DEPDIR)/util_libutil_a-messages-krb5.Tpo util/$(DEPDIR)/util_libutil_a-messages-krb5.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='util/messages-krb5.c' object='util/util_libutil_a-messages-krb5.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o util/util_libutil_a-messages-krb5.o `test -f 'util/messages-krb5.c' || echo '$(srcdir)/'`util/messages-krb5.c + +util/util_libutil_a-messages-krb5.obj: util/messages-krb5.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT util/util_libutil_a-messages-krb5.obj -MD -MP -MF util/$(DEPDIR)/util_libutil_a-messages-krb5.Tpo -c -o util/util_libutil_a-messages-krb5.obj `if test -f 'util/messages-krb5.c'; then $(CYGPATH_W) 'util/messages-krb5.c'; else $(CYGPATH_W) '$(srcdir)/util/messages-krb5.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) util/$(DEPDIR)/util_libutil_a-messages-krb5.Tpo util/$(DEPDIR)/util_libutil_a-messages-krb5.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='util/messages-krb5.c' object='util/util_libutil_a-messages-krb5.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o util/util_libutil_a-messages-krb5.obj `if test -f 'util/messages-krb5.c'; then $(CYGPATH_W) 'util/messages-krb5.c'; else $(CYGPATH_W) '$(srcdir)/util/messages-krb5.c'; fi` + +util/util_libutil_a-messages.o: util/messages.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT util/util_libutil_a-messages.o -MD -MP -MF util/$(DEPDIR)/util_libutil_a-messages.Tpo -c -o util/util_libutil_a-messages.o `test -f 'util/messages.c' || echo '$(srcdir)/'`util/messages.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) util/$(DEPDIR)/util_libutil_a-messages.Tpo util/$(DEPDIR)/util_libutil_a-messages.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='util/messages.c' object='util/util_libutil_a-messages.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o util/util_libutil_a-messages.o `test -f 'util/messages.c' || echo '$(srcdir)/'`util/messages.c + +util/util_libutil_a-messages.obj: util/messages.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT util/util_libutil_a-messages.obj -MD -MP -MF util/$(DEPDIR)/util_libutil_a-messages.Tpo -c -o util/util_libutil_a-messages.obj `if test -f 'util/messages.c'; then $(CYGPATH_W) 'util/messages.c'; else $(CYGPATH_W) '$(srcdir)/util/messages.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) util/$(DEPDIR)/util_libutil_a-messages.Tpo util/$(DEPDIR)/util_libutil_a-messages.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='util/messages.c' object='util/util_libutil_a-messages.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o util/util_libutil_a-messages.obj `if test -f 'util/messages.c'; then $(CYGPATH_W) 'util/messages.c'; else $(CYGPATH_W) '$(srcdir)/util/messages.c'; fi` + +util/util_libutil_a-xmalloc.o: util/xmalloc.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT util/util_libutil_a-xmalloc.o -MD -MP -MF util/$(DEPDIR)/util_libutil_a-xmalloc.Tpo -c -o util/util_libutil_a-xmalloc.o `test -f 'util/xmalloc.c' || echo '$(srcdir)/'`util/xmalloc.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) util/$(DEPDIR)/util_libutil_a-xmalloc.Tpo util/$(DEPDIR)/util_libutil_a-xmalloc.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='util/xmalloc.c' object='util/util_libutil_a-xmalloc.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o util/util_libutil_a-xmalloc.o `test -f 'util/xmalloc.c' || echo '$(srcdir)/'`util/xmalloc.c + +util/util_libutil_a-xmalloc.obj: util/xmalloc.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT util/util_libutil_a-xmalloc.obj -MD -MP -MF util/$(DEPDIR)/util_libutil_a-xmalloc.Tpo -c -o util/util_libutil_a-xmalloc.obj `if test -f 'util/xmalloc.c'; then $(CYGPATH_W) 'util/xmalloc.c'; else $(CYGPATH_W) '$(srcdir)/util/xmalloc.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) util/$(DEPDIR)/util_libutil_a-xmalloc.Tpo util/$(DEPDIR)/util_libutil_a-xmalloc.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='util/xmalloc.c' object='util/util_libutil_a-xmalloc.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(util_libutil_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o util/util_libutil_a-xmalloc.obj `if test -f 'util/xmalloc.c'; then $(CYGPATH_W) 'util/xmalloc.c'; else $(CYGPATH_W) '$(srcdir)/util/xmalloc.c'; fi` + +client/client_wallet-wallet.o: client/wallet.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_wallet_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_wallet-wallet.o -MD -MP -MF client/$(DEPDIR)/client_wallet-wallet.Tpo -c -o client/client_wallet-wallet.o `test -f 'client/wallet.c' || echo '$(srcdir)/'`client/wallet.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_wallet-wallet.Tpo client/$(DEPDIR)/client_wallet-wallet.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/wallet.c' object='client/client_wallet-wallet.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_wallet_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_wallet-wallet.o `test -f 'client/wallet.c' || echo '$(srcdir)/'`client/wallet.c + +client/client_wallet-wallet.obj: client/wallet.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_wallet_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_wallet-wallet.obj -MD -MP -MF client/$(DEPDIR)/client_wallet-wallet.Tpo -c -o client/client_wallet-wallet.obj `if test -f 'client/wallet.c'; then $(CYGPATH_W) 'client/wallet.c'; else $(CYGPATH_W) '$(srcdir)/client/wallet.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_wallet-wallet.Tpo client/$(DEPDIR)/client_wallet-wallet.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/wallet.c' object='client/client_wallet-wallet.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_wallet_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_wallet-wallet.obj `if test -f 'client/wallet.c'; then $(CYGPATH_W) 'client/wallet.c'; else $(CYGPATH_W) '$(srcdir)/client/wallet.c'; fi` + +client/client_wallet_rekey-wallet-rekey.o: client/wallet-rekey.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_wallet_rekey_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_wallet_rekey-wallet-rekey.o -MD -MP -MF client/$(DEPDIR)/client_wallet_rekey-wallet-rekey.Tpo -c -o client/client_wallet_rekey-wallet-rekey.o `test -f 'client/wallet-rekey.c' || echo '$(srcdir)/'`client/wallet-rekey.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_wallet_rekey-wallet-rekey.Tpo client/$(DEPDIR)/client_wallet_rekey-wallet-rekey.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/wallet-rekey.c' object='client/client_wallet_rekey-wallet-rekey.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_wallet_rekey_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_wallet_rekey-wallet-rekey.o `test -f 'client/wallet-rekey.c' || echo '$(srcdir)/'`client/wallet-rekey.c + +client/client_wallet_rekey-wallet-rekey.obj: client/wallet-rekey.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_wallet_rekey_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT client/client_wallet_rekey-wallet-rekey.obj -MD -MP -MF client/$(DEPDIR)/client_wallet_rekey-wallet-rekey.Tpo -c -o client/client_wallet_rekey-wallet-rekey.obj `if test -f 'client/wallet-rekey.c'; then $(CYGPATH_W) 'client/wallet-rekey.c'; else $(CYGPATH_W) '$(srcdir)/client/wallet-rekey.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) client/$(DEPDIR)/client_wallet_rekey-wallet-rekey.Tpo client/$(DEPDIR)/client_wallet_rekey-wallet-rekey.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='client/wallet-rekey.c' object='client/client_wallet_rekey-wallet-rekey.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(client_wallet_rekey_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o client/client_wallet_rekey-wallet-rekey.obj `if test -f 'client/wallet-rekey.c'; then $(CYGPATH_W) 'client/wallet-rekey.c'; else $(CYGPATH_W) '$(srcdir)/client/wallet-rekey.c'; fi` + +tests/tests_runtests-runtests.o: tests/runtests.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_runtests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tests_runtests-runtests.o -MD -MP -MF tests/$(DEPDIR)/tests_runtests-runtests.Tpo -c -o tests/tests_runtests-runtests.o `test -f 'tests/runtests.c' || echo '$(srcdir)/'`tests/runtests.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/$(DEPDIR)/tests_runtests-runtests.Tpo tests/$(DEPDIR)/tests_runtests-runtests.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/runtests.c' object='tests/tests_runtests-runtests.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_runtests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tests_runtests-runtests.o `test -f 'tests/runtests.c' || echo '$(srcdir)/'`tests/runtests.c + +tests/tests_runtests-runtests.obj: tests/runtests.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_runtests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/tests_runtests-runtests.obj -MD -MP -MF tests/$(DEPDIR)/tests_runtests-runtests.Tpo -c -o tests/tests_runtests-runtests.obj `if test -f 'tests/runtests.c'; then $(CYGPATH_W) 'tests/runtests.c'; else $(CYGPATH_W) '$(srcdir)/tests/runtests.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/$(DEPDIR)/tests_runtests-runtests.Tpo tests/$(DEPDIR)/tests_runtests-runtests.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/runtests.c' object='tests/tests_runtests-runtests.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_runtests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/tests_runtests-runtests.obj `if test -f 'tests/runtests.c'; then $(CYGPATH_W) 'tests/runtests.c'; else $(CYGPATH_W) '$(srcdir)/tests/runtests.c'; fi` + +tests/util/tests_util_messages_krb5_t-messages-krb5-t.o: tests/util/messages-krb5-t.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_util_messages_krb5_t_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/util/tests_util_messages_krb5_t-messages-krb5-t.o -MD -MP -MF tests/util/$(DEPDIR)/tests_util_messages_krb5_t-messages-krb5-t.Tpo -c -o tests/util/tests_util_messages_krb5_t-messages-krb5-t.o `test -f 'tests/util/messages-krb5-t.c' || echo '$(srcdir)/'`tests/util/messages-krb5-t.c +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/util/$(DEPDIR)/tests_util_messages_krb5_t-messages-krb5-t.Tpo tests/util/$(DEPDIR)/tests_util_messages_krb5_t-messages-krb5-t.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/util/messages-krb5-t.c' object='tests/util/tests_util_messages_krb5_t-messages-krb5-t.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_util_messages_krb5_t_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/util/tests_util_messages_krb5_t-messages-krb5-t.o `test -f 'tests/util/messages-krb5-t.c' || echo '$(srcdir)/'`tests/util/messages-krb5-t.c + +tests/util/tests_util_messages_krb5_t-messages-krb5-t.obj: tests/util/messages-krb5-t.c +@am__fastdepCC_TRUE@	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_util_messages_krb5_t_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tests/util/tests_util_messages_krb5_t-messages-krb5-t.obj -MD -MP -MF tests/util/$(DEPDIR)/tests_util_messages_krb5_t-messages-krb5-t.Tpo -c -o tests/util/tests_util_messages_krb5_t-messages-krb5-t.obj `if test -f 'tests/util/messages-krb5-t.c'; then $(CYGPATH_W) 'tests/util/messages-krb5-t.c'; else $(CYGPATH_W) '$(srcdir)/tests/util/messages-krb5-t.c'; fi` +@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) tests/util/$(DEPDIR)/tests_util_messages_krb5_t-messages-krb5-t.Tpo tests/util/$(DEPDIR)/tests_util_messages_krb5_t-messages-krb5-t.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='tests/util/messages-krb5-t.c' object='tests/util/tests_util_messages_krb5_t-messages-krb5-t.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tests_util_messages_krb5_t_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tests/util/tests_util_messages_krb5_t-messages-krb5-t.obj `if test -f 'tests/util/messages-krb5-t.c'; then $(CYGPATH_W) 'tests/util/messages-krb5-t.c'; else $(CYGPATH_W) '$(srcdir)/tests/util/messages-krb5-t.c'; fi` +install-man1: $(dist_man_MANS) +	@$(NORMAL_INSTALL) +	@list1=''; \ +	list2='$(dist_man_MANS)'; \ +	test -n "$(man1dir)" \ +	  && test -n "`echo $$list1$$list2`" \ +	  || exit 0; \ +	echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ +	$(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ +	{ for i in $$list1; do echo "$$i"; done;  \ +	if test -n "$$list2"; then \ +	  for i in $$list2; do echo "$$i"; done \ +	    | sed -n '/\.1[a-z]*$$/p'; \ +	fi; \ +	} | while read p; do \ +	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ +	  echo "$$d$$p"; echo "$$p"; \ +	done | \ +	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ +	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ +	sed 'N;N;s,\n, ,g' | { \ +	list=; while read file base inst; do \ +	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \ +	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ +	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ +	  fi; \ +	done; \ +	for i in $$list; do echo "$$i"; done | $(am__base_list) | \ +	while read files; do \ +	  test -z "$$files" || { \ +	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ +	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ +	done; } + +uninstall-man1: +	@$(NORMAL_UNINSTALL) +	@list=''; test -n "$(man1dir)" || exit 0; \ +	files=`{ for i in $$list; do echo "$$i"; done; \ +	l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ +	  sed -n '/\.1[a-z]*$$/p'; \ +	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ +	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ +	dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) +install-man8: $(dist_man_MANS) +	@$(NORMAL_INSTALL) +	@list1=''; \ +	list2='$(dist_man_MANS)'; \ +	test -n "$(man8dir)" \ +	  && test -n "`echo $$list1$$list2`" \ +	  || exit 0; \ +	echo " $(MKDIR_P) '$(DESTDIR)$(man8dir)'"; \ +	$(MKDIR_P) "$(DESTDIR)$(man8dir)" || exit 1; \ +	{ for i in $$list1; do echo "$$i"; done;  \ +	if test -n "$$list2"; then \ +	  for i in $$list2; do echo "$$i"; done \ +	    | sed -n '/\.8[a-z]*$$/p'; \ +	fi; \ +	} | while read p; do \ +	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ +	  echo "$$d$$p"; echo "$$p"; \ +	done | \ +	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ +	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ +	sed 'N;N;s,\n, ,g' | { \ +	list=; while read file base inst; do \ +	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \ +	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \ +	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \ +	  fi; \ +	done; \ +	for i in $$list; do echo "$$i"; done | $(am__base_list) | \ +	while read files; do \ +	  test -z "$$files" || { \ +	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \ +	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \ +	done; } + +uninstall-man8: +	@$(NORMAL_UNINSTALL) +	@list=''; test -n "$(man8dir)" || exit 0; \ +	files=`{ for i in $$list; do echo "$$i"; done; \ +	l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ +	  sed -n '/\.8[a-z]*$$/p'; \ +	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \ +	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ +	dir='$(DESTDIR)$(man8dir)'; $(am__uninstall_files_from_dir) +install-dist_pkgdataDATA: $(dist_pkgdata_DATA) +	@$(NORMAL_INSTALL) +	@list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ +	if test -n "$$list"; then \ +	  echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ +	  $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ +	fi; \ +	for p in $$list; do \ +	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ +	  echo "$$d$$p"; \ +	done | $(am__base_list) | \ +	while read files; do \ +	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \ +	  $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ +	done + +uninstall-dist_pkgdataDATA: +	@$(NORMAL_UNINSTALL) +	@list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ +	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ +	dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) +	$(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) +	set x; \ +	here=`pwd`; \ +	$(am__define_uniq_tagged_files); \ +	shift; \ +	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ +	  test -n "$$unique" || unique=$$empty_fix; \ +	  if test $$# -gt 0; then \ +	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ +	      "$$@" $$unique; \ +	  else \ +	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ +	      $$unique; \ +	  fi; \ +	fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) +	$(am__define_uniq_tagged_files); \ +	test -z "$(CTAGS_ARGS)$$unique" \ +	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ +	     $$unique + +GTAGS: +	here=`$(am__cd) $(top_builddir) && pwd` \ +	  && $(am__cd) $(top_srcdir) \ +	  && gtags -i $(GTAGS_ARGS) "$$here" +cscope: cscope.files +	test ! -s cscope.files \ +	  || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) +clean-cscope: +	-rm -f cscope.files +cscope.files: clean-cscope cscopelist +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) +	list='$(am__tagged_files)'; \ +	case "$(srcdir)" in \ +	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ +	  *) sdir=$(subdir)/$(srcdir) ;; \ +	esac; \ +	for i in $$list; do \ +	  if test -f "$$i"; then \ +	    echo "$(subdir)/$$i"; \ +	  else \ +	    echo "$$sdir/$$i"; \ +	  fi; \ +	done >> $(top_builddir)/cscope.files + +distclean-tags: +	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags +	-rm -f cscope.out cscope.in.out cscope.po.out cscope.files + +distdir: $(DISTFILES) +	@case `sed 15q $(srcdir)/NEWS` in \ +	*"$(VERSION)"*) : ;; \ +	*) \ +	  echo "NEWS not updated; not releasing" 1>&2; \ +	  exit 1;; \ +	esac +	$(am__remove_distdir) +	test -d "$(distdir)" || mkdir "$(distdir)" +	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ +	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ +	list='$(DISTFILES)'; \ +	  dist_files=`for file in $$list; do echo $$file; done | \ +	  sed -e "s|^$$srcdirstrip/||;t" \ +	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ +	case $$dist_files in \ +	  */*) $(MKDIR_P) `echo "$$dist_files" | \ +			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ +			   sort -u` ;; \ +	esac; \ +	for file in $$dist_files; do \ +	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ +	  if test -d $$d/$$file; then \ +	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ +	    if test -d "$(distdir)/$$file"; then \ +	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ +	    fi; \ +	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ +	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ +	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ +	    fi; \ +	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ +	  else \ +	    test -f "$(distdir)/$$file" \ +	    || cp -p $$d/$$file "$(distdir)/$$file" \ +	    || exit 1; \ +	  fi; \ +	done +	-test -n "$(am__skip_mode_fix)" \ +	|| find "$(distdir)" -type d ! -perm -755 \ +		-exec chmod u+rwx,go+rx {} \; -o \ +	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ +	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ +	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ +	|| chmod -R a+r "$(distdir)" +dist-gzip: distdir +	tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz +	$(am__post_remove_distdir) + +dist-bzip2: distdir +	tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 +	$(am__post_remove_distdir) + +dist-lzip: distdir +	tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz +	$(am__post_remove_distdir) +dist-xz: distdir +	tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz +	$(am__post_remove_distdir) + +dist-tarZ: distdir +	@echo WARNING: "Support for distribution archives compressed with" \ +		       "legacy program 'compress' is deprecated." >&2 +	@echo WARNING: "It will be removed altogether in Automake 2.0" >&2 +	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z +	$(am__post_remove_distdir) + +dist-shar: distdir +	@echo WARNING: "Support for shar distribution archives is" \ +	               "deprecated." >&2 +	@echo WARNING: "It will be removed altogether in Automake 2.0" >&2 +	shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz +	$(am__post_remove_distdir) + +dist-zip: distdir +	-rm -f $(distdir).zip +	zip -rq $(distdir).zip $(distdir) +	$(am__post_remove_distdir) + +dist dist-all: +	$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' +	$(am__post_remove_distdir) + +# This target untars the dist file and tries a VPATH configuration.  Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist +	case '$(DIST_ARCHIVES)' in \ +	*.tar.gz*) \ +	  eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ +	*.tar.bz2*) \ +	  bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ +	*.tar.lz*) \ +	  lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ +	*.tar.xz*) \ +	  xz -dc $(distdir).tar.xz | $(am__untar) ;;\ +	*.tar.Z*) \ +	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ +	*.shar.gz*) \ +	  eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ +	*.zip*) \ +	  unzip $(distdir).zip ;;\ +	esac +	chmod -R a-w $(distdir) +	chmod u+w $(distdir) +	mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst +	chmod a-w $(distdir) +	test -d $(distdir)/_build || exit 0; \ +	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ +	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ +	  && am__cwd=`pwd` \ +	  && $(am__cd) $(distdir)/_build/sub \ +	  && ../../configure \ +	    $(AM_DISTCHECK_CONFIGURE_FLAGS) \ +	    $(DISTCHECK_CONFIGURE_FLAGS) \ +	    --srcdir=../.. --prefix="$$dc_install_base" \ +	  && $(MAKE) $(AM_MAKEFLAGS) \ +	  && $(MAKE) $(AM_MAKEFLAGS) dvi \ +	  && $(MAKE) $(AM_MAKEFLAGS) check \ +	  && $(MAKE) $(AM_MAKEFLAGS) install \ +	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \ +	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \ +	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ +	        distuninstallcheck \ +	  && chmod -R a-w "$$dc_install_base" \ +	  && ({ \ +	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ +	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ +	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ +	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ +	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ +	      } || { rm -rf "$$dc_destdir"; exit 1; }) \ +	  && rm -rf "$$dc_destdir" \ +	  && $(MAKE) $(AM_MAKEFLAGS) dist \ +	  && rm -rf $(DIST_ARCHIVES) \ +	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ +	  && cd "$$am__cwd" \ +	  || exit 1 +	$(am__post_remove_distdir) +	@(echo "$(distdir) archives ready for distribution: "; \ +	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ +	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distcleancheck: distclean +	@if test '$(srcdir)' = . ; then \ +	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \ +	  exit 1 ; \ +	fi +	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ +	  || { echo "ERROR: files left in build directory after distclean:" ; \ +	       $(distcleancheck_listfiles) ; \ +	       exit 1; } >&2 +check-am: all-am +	$(MAKE) $(AM_MAKEFLAGS) $(check_LIBRARIES) $(check_PROGRAMS) +	$(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \ +		config.h all-local +installdirs: +	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(pkgdatadir)"; do \ +	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \ +	done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am +	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: +	if test -z '$(STRIP)'; then \ +	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ +	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ +	      install; \ +	else \ +	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ +	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ +	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ +	fi +mostlyclean-generic: +	-test -z "$(LIBOBJS)" || rm -f $(LIBOBJS) + +clean-generic: +	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: +	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) +	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) +	-rm -f client/$(DEPDIR)/$(am__dirstamp) +	-rm -f client/$(am__dirstamp) +	-rm -f portable/$(DEPDIR)/$(am__dirstamp) +	-rm -f portable/$(am__dirstamp) +	-rm -f tests/$(DEPDIR)/$(am__dirstamp) +	-rm -f tests/$(am__dirstamp) +	-rm -f tests/portable/$(DEPDIR)/$(am__dirstamp) +	-rm -f tests/portable/$(am__dirstamp) +	-rm -f tests/tap/$(DEPDIR)/$(am__dirstamp) +	-rm -f tests/tap/$(am__dirstamp) +	-rm -f tests/util/$(DEPDIR)/$(am__dirstamp) +	-rm -f tests/util/$(am__dirstamp) +	-rm -f util/$(DEPDIR)/$(am__dirstamp) +	-rm -f util/$(am__dirstamp) + +maintainer-clean-generic: +	@echo "This command is intended for maintainers to use" +	@echo "it deletes files that may require special tools to rebuild." +	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) +clean: clean-am + +clean-am: clean-binPROGRAMS clean-checkLIBRARIES clean-checkPROGRAMS \ +	clean-generic clean-local clean-noinstLIBRARIES mostlyclean-am + +distclean: distclean-am +	-rm -f $(am__CONFIG_DISTCLEAN_FILES) +	-rm -rf client/$(DEPDIR) portable/$(DEPDIR) tests/$(DEPDIR) tests/portable/$(DEPDIR) tests/tap/$(DEPDIR) tests/util/$(DEPDIR) util/$(DEPDIR) +	-rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ +	distclean-hdr distclean-local distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local install-dist_pkgdataDATA \ +	install-man + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS install-sbinSCRIPTS + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: install-man1 install-man8 + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am +	-rm -f $(am__CONFIG_DISTCLEAN_FILES) +	-rm -rf $(top_srcdir)/autom4te.cache +	-rm -rf client/$(DEPDIR) portable/$(DEPDIR) tests/$(DEPDIR) tests/portable/$(DEPDIR) tests/tap/$(DEPDIR) tests/util/$(DEPDIR) util/$(DEPDIR) +	-rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-dist_pkgdataDATA \ +	uninstall-man uninstall-sbinSCRIPTS + +uninstall-man: uninstall-man1 uninstall-man8 + +.MAKE: all check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am all-local am--refresh check \ +	check-am check-local clean clean-binPROGRAMS \ +	clean-checkLIBRARIES clean-checkPROGRAMS clean-cscope \ +	clean-generic clean-local clean-noinstLIBRARIES cscope \ +	cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ +	dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ +	distcheck distclean distclean-compile distclean-generic \ +	distclean-hdr distclean-local distclean-tags distcleancheck \ +	distdir distuninstallcheck dvi dvi-am html html-am info \ +	info-am install install-am install-binPROGRAMS install-data \ +	install-data-am install-data-local install-dist_pkgdataDATA \ +	install-dvi install-dvi-am install-exec install-exec-am \ +	install-html install-html-am install-info install-info-am \ +	install-man install-man1 install-man8 install-pdf \ +	install-pdf-am install-ps install-ps-am install-sbinSCRIPTS \ +	install-strip installcheck installcheck-am installdirs \ +	maintainer-clean maintainer-clean-generic mostlyclean \ +	mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ +	tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \ +	uninstall-dist_pkgdataDATA uninstall-man uninstall-man1 \ +	uninstall-man8 uninstall-sbinSCRIPTS + +.PRECIOUS: Makefile + + +# These variables exist only for the use of the Debian packaging and similar +# situations and aren't normally set.  We want to honor them if they're set +# in the environment, as well as via make arguments. +# +# WALLET_PERL_FLAGS are additional flags to pass to Build.PL when building +# the Makefile. +WALLET_PERL_FLAGS ?= + +# Separate target for a human to request building everything with as many +# compiler warnings enabled as possible. +warnings: +	$(MAKE) V=0 CFLAGS='$(WARNINGS_CFLAGS) $(AM_CFLAGS)' \ +	    KRB5_CPPFLAGS='$(KRB5_CPPFLAGS_GCC)' +	$(MAKE) V=0 CFLAGS='$(WARNINGS_CFLAGS) $(AM_CFLAGS)' \ +	    KRB5_CPPFLAGS='$(KRB5_CPPFLAGS_GCC)' $(check_PROGRAMS) + +# For each of the Perl scripts, we need to fill in the path to the Perl +# binary that was located during configuration. +server/keytab-backend: $(srcdir)/server/keytab-backend.in Makefile +	sed 's|\@PERL\@|$(PERL)|' <$(srcdir)/server/keytab-backend.in >$@ +	chmod a+x $@ +server/wallet-admin: $(srcdir)/server/wallet-admin.in Makefile +	sed 's|\@PERL\@|$(PERL)|' <$(srcdir)/server/wallet-admin.in >$@ +	chmod a+x $@ +server/wallet-backend: $(srcdir)/server/wallet-backend.in Makefile +	sed 's|\@PERL\@|$(PERL)|' <$(srcdir)/server/wallet-backend.in >$@ +	chmod a+x $@ +server/wallet-report: $(srcdir)/server/wallet-report.in Makefile +	sed 's|\@PERL\@|$(PERL)|' <$(srcdir)/server/wallet-report.in >$@ +	chmod a+x $@ + +# Take appropriate actions in the Perl directory as well.  We don't want to +# always build the Perl directory in all-local, since otherwise Automake does +# this for every target, which overrides some hacks we have to do for Debian +# packaging. +all-local: perl/blib/lib/Wallet/Config.pm + +perl/blib/lib/Wallet/Config.pm: $(srcdir)/perl/lib/Wallet/Config.pm +	set -e; if [ x"$(builddir)" != x"$(srcdir)" ] ; then		\ +	    for d in $(PERL_DIRECTORIES) ; do				\ +		[ -d "$(builddir)/$$d" ] || mkdir "$(builddir)/$$d" ;	\ +	    done ;							\ +	    for f in $(PERL_FILES) ; do					\ +		cp "$(srcdir)/$$f" "$(builddir)/$$f" ;			\ +	    done ;							\ +	fi +	$(MKDIR_P) perl/t/lib/Test/RRA +	$(INSTALL_DATA) $(srcdir)/tests/tap/perl/Test/RRA.pm perl/t/lib/Test/ +	$(INSTALL_DATA) $(srcdir)/tests/tap/perl/Test/RRA/Config.pm \ +	    perl/t/lib/Test/RRA/ +	cd perl && $(PERL) Build.PL $(WALLET_PERL_FLAGS) +	cd perl && ./Build + +# This is a really ugly hack to only honor prefix when running make install +# under Automake's distcheck. +# +# Automake insists on not using DESTDIR for distcheck and instead relying on +# prefix, but we don't want Perl module installation to follow prefix since +# that may result in a module install directory that isn't in Perl's search +# path.  So, if and only if we're running under distcheck, we pass the +# prefix in as --install_base. +install-data-local: +	set -e; flags= ;						\ +	case "$(prefix)" in						\ +	    */_inst) flags="--install_base $(prefix)" ;;		\ +	esac ;								\ +	cd perl && ./Build install $$flags --destdir '$(DESTDIR)' + +clean-local: +	set -e; if [ -f "perl/Build" ] ; then		\ +	    cd perl && ./Build realclean ;		\ +	fi + +# Remove the Autoconf cache.  Remove the files that we copy over if and only +# if builddir != srcdir. +distclean-local: +	rm -rf autom4te.cache +	set -e; if [ x"$(builddir)" != x"$(srcdir)" ] ; then	\ +	    for f in $(PERL_FILES) ; do				\ +		rm -f "$(builddir)/$$f" ;			\ +	    done ;						\ +	fi + +check-local: $(check_PROGRAMS) +	cd tests && ./runtests -l $(abs_top_srcdir)/tests/TESTS +	@echo '' +	cd perl && ./Build test + +# Used by maintainers to check the source code with cppcheck. +check-cppcheck: +	cd $(abs_top_srcdir) && cppcheck -q --error-exitcode=2	\ +	    --suppressions-list=tests/data/cppcheck.supp	\ +	    --enable=warning,performance,portability,style . + +# Alas, we have to disable this check because there's no way to do an +# uninstall from Perl. +distuninstallcheck: +	@: + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..0692144 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,1373 @@ +# generated automatically by aclocal 1.15.1 -*- Autoconf -*- + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_ifndef([AC_AUTOCONF_VERSION], +  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. +You have another version of autoconf.  It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically 'autoreconf'.])]) + +# longlong.m4 serial 17 +dnl Copyright (C) 1999-2007, 2009-2016 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Paul Eggert. + +# Define HAVE_LONG_LONG_INT if 'long long int' works. +# This fixes a bug in Autoconf 2.61, and can be faster +# than what's in Autoconf 2.62 through 2.68. + +# Note: If the type 'long long int' exists but is only 32 bits large +# (as on some very old compilers), HAVE_LONG_LONG_INT will not be +# defined. In this case you can treat 'long long int' like 'long int'. + +AC_DEFUN([AC_TYPE_LONG_LONG_INT], +[ +  AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) +  AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], +     [ac_cv_type_long_long_int=yes +      if test "x${ac_cv_prog_cc_c99-no}" = xno; then +        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int +        if test $ac_cv_type_long_long_int = yes; then +          dnl Catch a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. +          dnl If cross compiling, assume the bug is not important, since +          dnl nobody cross compiles for this platform as far as we know. +          AC_RUN_IFELSE( +            [AC_LANG_PROGRAM( +               [[@%:@include <limits.h> +                 @%:@ifndef LLONG_MAX +                 @%:@ define HALF \ +                          (1LL << (sizeof (long long int) * CHAR_BIT - 2)) +                 @%:@ define LLONG_MAX (HALF - 1 + HALF) +                 @%:@endif]], +               [[long long int n = 1; +                 int i; +                 for (i = 0; ; i++) +                   { +                     long long int m = n << i; +                     if (m >> i != n) +                       return 1; +                     if (LLONG_MAX / 2 < m) +                       break; +                   } +                 return 0;]])], +            [], +            [ac_cv_type_long_long_int=no], +            [:]) +        fi +      fi]) +  if test $ac_cv_type_long_long_int = yes; then +    AC_DEFINE([HAVE_LONG_LONG_INT], [1], +      [Define to 1 if the system has the type 'long long int'.]) +  fi +]) + +# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. +# This fixes a bug in Autoconf 2.61, and can be faster +# than what's in Autoconf 2.62 through 2.68. + +# Note: If the type 'unsigned long long int' exists but is only 32 bits +# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT +# will not be defined. In this case you can treat 'unsigned long long int' +# like 'unsigned long int'. + +AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], +[ +  AC_CACHE_CHECK([for unsigned long long int], +    [ac_cv_type_unsigned_long_long_int], +    [ac_cv_type_unsigned_long_long_int=yes +     if test "x${ac_cv_prog_cc_c99-no}" = xno; then +       AC_LINK_IFELSE( +         [_AC_TYPE_LONG_LONG_SNIPPET], +         [], +         [ac_cv_type_unsigned_long_long_int=no]) +     fi]) +  if test $ac_cv_type_unsigned_long_long_int = yes; then +    AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1], +      [Define to 1 if the system has the type 'unsigned long long int'.]) +  fi +]) + +# Expands to a C program that can be used to test for simultaneous support +# of 'long long' and 'unsigned long long'. We don't want to say that +# 'long long' is available if 'unsigned long long' is not, or vice versa, +# because too many programs rely on the symmetry between signed and unsigned +# integer types (excluding 'bool'). +AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], +[ +  AC_LANG_PROGRAM( +    [[/* For now, do not test the preprocessor; as of 2007 there are too many +         implementations with broken preprocessors.  Perhaps this can +         be revisited in 2012.  In the meantime, code should not expect +         #if to work with literals wider than 32 bits.  */ +      /* Test literals.  */ +      long long int ll = 9223372036854775807ll; +      long long int nll = -9223372036854775807LL; +      unsigned long long int ull = 18446744073709551615ULL; +      /* Test constant expressions.   */ +      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) +                     ? 1 : -1)]; +      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 +                     ? 1 : -1)]; +      int i = 63;]], +    [[/* Test availability of runtime routines for shift and division.  */ +      long long int llmax = 9223372036854775807ll; +      unsigned long long int ullmax = 18446744073709551615ull; +      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) +              | (llmax / ll) | (llmax % ll) +              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) +              | (ullmax / ull) | (ullmax % ull));]]) +]) + +# Copyright (C) 2002-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.15' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version.  Point them to the right macro. +m4_if([$1], [1.15.1], [], +      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too.  Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.15.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], +  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# Copyright (C) 2011-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_AR([ACT-IF-FAIL]) +# ------------------------- +# Try to determine the archiver interface, and trigger the ar-lib wrapper +# if it is needed.  If the detection of archiver interface fails, run +# ACT-IF-FAIL (default is to abort configure with a proper error message). +AC_DEFUN([AM_PROG_AR], +[AC_BEFORE([$0], [LT_INIT])dnl +AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl +AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([ar-lib])dnl +AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) +: ${AR=ar} + +AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], +  [AC_LANG_PUSH([C]) +   am_cv_ar_interface=ar +   AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])], +     [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD' +      AC_TRY_EVAL([am_ar_try]) +      if test "$ac_status" -eq 0; then +        am_cv_ar_interface=ar +      else +        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD' +        AC_TRY_EVAL([am_ar_try]) +        if test "$ac_status" -eq 0; then +          am_cv_ar_interface=lib +        else +          am_cv_ar_interface=unknown +        fi +      fi +      rm -f conftest.lib libconftest.a +     ]) +   AC_LANG_POP([C])]) + +case $am_cv_ar_interface in +ar) +  ;; +lib) +  # Microsoft lib, so override with the ar-lib wrapper script. +  # FIXME: It is wrong to rewrite AR. +  # But if we don't then we get into trouble of one sort or another. +  # A longer-term fix would be to have automake use am__AR in this case, +  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something +  # similar. +  AR="$am_aux_dir/ar-lib $AR" +  ;; +unknown) +  m4_default([$1], +             [AC_MSG_ERROR([could not determine $AR interface])]) +  ;; +esac +AC_SUBST([AR])dnl +]) + +# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to +# '$srcdir', '$srcdir/..', or '$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory.  The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run.  This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +#    fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +#    fails if $ac_aux_dir is absolute, +#    fails when called from a subdirectory in a VPATH build with +#          a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir.  In an in-source build this is usually +# harmless because $srcdir is '.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir.  That would be: +#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +#   MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH.  The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +# Expand $ac_aux_dir to an absolute path. +am_aux_dir=`cd "$ac_aux_dir" && pwd` +]) + +# AM_CONDITIONAL                                            -*- Autoconf -*- + +# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ([2.52])dnl + m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])], +       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then +  $1_TRUE= +  $1_FALSE='#' +else +  $1_TRUE='#' +  $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then +  AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + + +# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery.  Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=], +      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=], +      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], +      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], +      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=], +      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'], +                    [depcc="$$1"   am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], +               [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +  # We make a subdir and do the tests there.  Otherwise we can end up +  # making bogus files that we don't know about and never remove.  For +  # instance it was reported that on HP-UX the gcc test will end up +  # making a dummy file named 'D' -- because '-MD' means "put the output +  # in D". +  rm -rf conftest.dir +  mkdir conftest.dir +  # Copy depcomp to subdir because otherwise we won't find it if we're +  # using a relative directory. +  cp "$am_depcomp" conftest.dir +  cd conftest.dir +  # We will build objects and dependencies in a subdirectory because +  # it helps to detect inapplicable dependency modes.  For instance +  # both Tru64's cc and ICC support -MD to output dependencies as a +  # side effect of compilation, but ICC will put the dependencies in +  # the current directory while Tru64 will put them in the object +  # directory. +  mkdir sub + +  am_cv_$1_dependencies_compiler_type=none +  if test "$am_compiler_list" = ""; then +     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` +  fi +  am__universal=false +  m4_case([$1], [CC], +    [case " $depcc " in #( +     *\ -arch\ *\ -arch\ *) am__universal=true ;; +     esac], +    [CXX], +    [case " $depcc " in #( +     *\ -arch\ *\ -arch\ *) am__universal=true ;; +     esac]) + +  for depmode in $am_compiler_list; do +    # Setup a source with many dependencies, because some compilers +    # like to wrap large dependency lists on column 80 (with \), and +    # we should not choose a depcomp mode which is confused by this. +    # +    # We need to recreate these files for each test, as the compiler may +    # overwrite some of them when testing with obscure command lines. +    # This happens at least with the AIX C compiler. +    : > sub/conftest.c +    for i in 1 2 3 4 5 6; do +      echo '#include "conftst'$i'.h"' >> sub/conftest.c +      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with +      # Solaris 10 /bin/sh. +      echo '/* dummy */' > sub/conftst$i.h +    done +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + +    # We check with '-c' and '-o' for the sake of the "dashmstdout" +    # mode.  It turns out that the SunPro C++ compiler does not properly +    # handle '-M -o', and we need to detect this.  Also, some Intel +    # versions had trouble with output in subdirs. +    am__obj=sub/conftest.${OBJEXT-o} +    am__minus_obj="-o $am__obj" +    case $depmode in +    gcc) +      # This depmode causes a compiler race in universal mode. +      test "$am__universal" = false || continue +      ;; +    nosideeffect) +      # After this tag, mechanisms are not by side-effect, so they'll +      # only be used when explicitly requested. +      if test "x$enable_dependency_tracking" = xyes; then +	continue +      else +	break +      fi +      ;; +    msvc7 | msvc7msys | msvisualcpp | msvcmsys) +      # This compiler won't grok '-c -o', but also, the minuso test has +      # not run yet.  These depmodes are late enough in the game, and +      # so weak that their functioning should not be impacted. +      am__obj=conftest.${OBJEXT-o} +      am__minus_obj= +      ;; +    none) break ;; +    esac +    if depmode=$depmode \ +       source=sub/conftest.c object=$am__obj \ +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ +       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ +         >/dev/null 2>conftest.err && +       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && +       grep $am__obj sub/conftest.Po > /dev/null 2>&1 && +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then +      # icc doesn't choke on unknown options, it will just issue warnings +      # or remarks (even with -Werror).  So we grep stderr for any message +      # that says an option was ignored or not supported. +      # When given -MP, icc 7.0 and 7.1 complain thusly: +      #   icc: Command line warning: ignoring option '-M'; no argument required +      # The diagnosis changed in icc 8.0: +      #   icc: Command line remark: option '-MP' not supported +      if (grep 'ignoring option' conftest.err || +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else +        am_cv_$1_dependencies_compiler_type=$depmode +        break +      fi +    fi +  done + +  cd .. +  rm -rf conftest.dir +else +  am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ +  test "x$enable_dependency_tracking" != xno \ +  && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES. +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE([dependency-tracking], [dnl +AS_HELP_STRING( +  [--enable-dependency-tracking], +  [do not reject slow dependency extractors]) +AS_HELP_STRING( +  [--disable-dependency-tracking], +  [speeds up one-time build])]) +if test "x$enable_dependency_tracking" != xno; then +  am_depcomp="$ac_aux_dir/depcomp" +  AMDEPBACKSLASH='\' +  am__nodep='_no' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +AC_SUBST([am__nodep])dnl +_AM_SUBST_NOTMAKE([am__nodep])dnl +]) + +# Generate code to set up dependency tracking.              -*- Autoconf -*- + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ +  # Older Autoconf quotes --file arguments for eval, but not when files +  # are listed without --file.  Let's play safe and only enable the eval +  # if we detect the quoting. +  case $CONFIG_FILES in +  *\'*) eval set x "$CONFIG_FILES" ;; +  *)   set x $CONFIG_FILES ;; +  esac +  shift +  for mf +  do +    # Strip MF so we end up with the name of the file. +    mf=`echo "$mf" | sed -e 's/:.*$//'` +    # Check whether this is an Automake generated Makefile or not. +    # We used to match only the files named 'Makefile.in', but +    # some people rename them; so instead we look at the file content. +    # Grep'ing the first line is not enough: some people post-process +    # each Makefile.in and add a new line on top of each file to say so. +    # Grep'ing the whole file is not good either: AIX grep has a line +    # limit of 2048, but all sed's we know have understand at least 4000. +    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then +      dirpart=`AS_DIRNAME("$mf")` +    else +      continue +    fi +    # Extract the definition of DEPDIR, am__include, and am__quote +    # from the Makefile without running 'make'. +    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` +    test -z "$DEPDIR" && continue +    am__include=`sed -n 's/^am__include = //p' < "$mf"` +    test -z "$am__include" && continue +    am__quote=`sed -n 's/^am__quote = //p' < "$mf"` +    # Find all dependency output files, they are included files with +    # $(DEPDIR) in their names.  We invoke sed twice because it is the +    # simplest approach to changing $(DEPDIR) to its actual value in the +    # expansion. +    for file in `sed -n " +      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ +	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do +      # Make sure the directory exists. +      test -f "$dirpart/$file" && continue +      fdir=`AS_DIRNAME(["$file"])` +      AS_MKDIR_P([$dirpart/$fdir]) +      # echo "creating $dirpart/$file" +      echo '# dummy' > "$dirpart/$file" +    done +  done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled.  FIXME.  This creates each '.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], +     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], +     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake.                             -*- Autoconf -*- + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This macro actually does too much.  Some checks are only needed if +# your package does certain things.  But this isn't really a big deal. + +dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. +m4_define([AC_PROG_CC], +m4_defn([AC_PROG_CC]) +[_AM_PROG_CC_C_O +]) + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out.  PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition.  After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.65])dnl +dnl Autoconf wants to disallow AM_ names.  We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then +  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output +  # is not polluted with repeated "-I." +  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl +  # test to see if srcdir already configured +  if test -f $srcdir/config.status; then +    AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +  fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then +  if (cygpath --version) >/dev/null 2>/dev/null; then +    CYGPATH_W='cygpath -w' +  else +    CYGPATH_W=echo +  fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[AC_DIAGNOSE([obsolete], +             [$0: two- and three-arguments forms are deprecated.]) +m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if( +  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), +  [ok:ok],, +  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) + AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) +AM_MISSING_PROG([AUTOCONF], [autoconf]) +AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) +AM_MISSING_PROG([AUTOHEADER], [autoheader]) +AM_MISSING_PROG([MAKEINFO], [makeinfo]) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +# For better backward compatibility.  To be removed once Automake 1.9.x +# dies out for good.  For more background, see: +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> +AC_SUBST([mkdir_p], ['$(MKDIR_P)']) +# We need awk for the "check" target (and possibly the TAP driver).  The +# system "awk" is bad on some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], +	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], +			     [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], +		  [_AM_DEPENDENCIES([CC])], +		  [m4_define([AC_PROG_CC], +			     m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], +		  [_AM_DEPENDENCIES([CXX])], +		  [m4_define([AC_PROG_CXX], +			     m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], +		  [_AM_DEPENDENCIES([OBJC])], +		  [m4_define([AC_PROG_OBJC], +			     m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], +		  [_AM_DEPENDENCIES([OBJCXX])], +		  [m4_define([AC_PROG_OBJCXX], +			     m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl +]) +AC_REQUIRE([AM_SILENT_RULES])dnl +dnl The testsuite driver may need to know about EXEEXT, so add the +dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This +dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], +  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes.  So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else +  cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present.  This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message.  This +can help us improve future automake versions. + +END +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then +    echo 'Configuration will proceed anyway, since you have set the' >&2 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 +    echo >&2 +  else +    cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: <http://www.gnu.org/software/coreutils/>. + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END +    AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) +  fi +fi +dnl The trailing newline in this macro's definition is deliberate, for +dnl backward compatibility and to allow trailing 'dnl'-style comments +dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. +]) + +dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated.  The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do +  case $_am_header in +    $_am_arg | $_am_arg:* ) +      break ;; +    * ) +      _am_stamp_count=`expr $_am_stamp_count + 1` ;; +  esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh+set}" != xset; then +  case $am_aux_dir in +  *\ * | *\	*) +    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; +  *) +    install_sh="\${SHELL} $am_aux_dir/install-sh" +  esac +fi +AC_SUBST([install_sh])]) + +# Copyright (C) 2003-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# Check whether the underlying file-system supports filenames +# with a leading dot.  For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then +  am__leading_dot=. +else +  am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MAINTAINER_MODE([DEFAULT-MODE]) +# ---------------------------------- +# Control maintainer-specific portions of Makefiles. +# Default is to disable them, unless 'enable' is passed literally. +# For symmetry, 'disable' may be passed as well.  Anyway, the user +# can override the default with the --enable/--disable switch. +AC_DEFUN([AM_MAINTAINER_MODE], +[m4_case(m4_default([$1], [disable]), +       [enable], [m4_define([am_maintainer_other], [disable])], +       [disable], [m4_define([am_maintainer_other], [enable])], +       [m4_define([am_maintainer_other], [enable]) +        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) +  dnl maintainer-mode's default is 'disable' unless 'enable' is passed +  AC_ARG_ENABLE([maintainer-mode], +    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], +      am_maintainer_other[ make rules and dependencies not useful +      (and sometimes confusing) to the casual installer])], +    [USE_MAINTAINER_MODE=$enableval], +    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) +  AC_MSG_RESULT([$USE_MAINTAINER_MODE]) +  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) +  MAINT=$MAINTAINER_MODE_TRUE +  AC_SUBST([MAINT])dnl +] +) + +# Check to see how 'make' treats includes.	            -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: +	@echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) +  am__include=include +  am__quote= +  _am_result=GNU +  ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then +   echo '.include "confinc"' > confmf +   case `$am_make -s -f confmf 2> /dev/null` in #( +   *the\ am__doit\ target*) +     am__include=.include +     am__quote="\"" +     _am_result=BSD +     ;; +   esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*- + +# Copyright (C) 1997-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it is modern enough. +# If it is, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then +  case $am_aux_dir in +  *\ * | *\	*) +    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; +  *) +    MISSING="\${SHELL} $am_aux_dir/missing" ;; +  esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then +  am_missing_run="$MISSING " +else +  am_missing_run= +  AC_MSG_WARN(['missing' script is too old or missing]) +fi +]) + +# Helper functions for option handling.                     -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# -------------------- +# Set option NAME.  Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) + +# _AM_SET_OPTIONS(OPTIONS) +# ------------------------ +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_CC_C_O +# --------------- +# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC +# to automatically call this. +AC_DEFUN([_AM_PROG_CC_C_O], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([compile])dnl +AC_LANG_PUSH([C])dnl +AC_CACHE_CHECK( +  [whether $CC understands -c and -o together], +  [am_cv_prog_cc_c_o], +  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) +  # Make sure it works both with $CC and with simple cc. +  # Following AC_PROG_CC_C_O, we do the test twice because some +  # compilers refuse to overwrite an existing .o file with -o, +  # though they will create one. +  am_cv_prog_cc_c_o=yes +  for am_i in 1 2; do +    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ +         && test -f conftest2.$ac_objext; then +      : OK +    else +      am_cv_prog_cc_c_o=no +      break +    fi +  done +  rm -f core conftest* +  unset am_i]) +if test "$am_cv_prog_cc_c_o" != yes; then +   # Losing compiler, so override with the script. +   # FIXME: It is wrong to rewrite CC. +   # But if we don't then we get into trouble of one sort or another. +   # A longer-term fix would be to have automake use am__CC in this case, +   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" +   CC="$am_aux_dir/compile $CC" +fi +AC_LANG_POP([C])]) + +# For backward compatibility. +AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_RUN_LOG(COMMAND) +# ------------------- +# Run COMMAND, save the exit status in ac_status, and log it. +# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) +AC_DEFUN([AM_RUN_LOG], +[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD +   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD +   ac_status=$? +   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD +   (exit $ac_status); }]) + +# Check to make sure that the build environment is sane.    -*- Autoconf -*- + +# Copyright (C) 1996-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Reject unsafe characters in $srcdir or the absolute working directory +# name.  Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in +  *[[\\\"\#\$\&\'\`$am_lf]]*) +    AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in +  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*) +    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments.  Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( +   am_has_slept=no +   for am_try in 1 2; do +     echo "timestamp, slept: $am_has_slept" > conftest.file +     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` +     if test "$[*]" = "X"; then +	# -L didn't work. +	set X `ls -t "$srcdir/configure" conftest.file` +     fi +     if test "$[*]" != "X $srcdir/configure conftest.file" \ +	&& test "$[*]" != "X conftest.file $srcdir/configure"; then + +	# If neither matched, then we have a broken ls.  This can happen +	# if, for instance, CONFIG_SHELL is bash and it inherits a +	# broken ls alias from the environment.  This has actually +	# happened.  Such a system could not be considered "sane". +	AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken +  alias in your environment]) +     fi +     if test "$[2]" = conftest.file || test $am_try -eq 2; then +       break +     fi +     # Just in case. +     sleep 1 +     am_has_slept=yes +   done +   test "$[2]" = conftest.file +   ) +then +   # Ok. +   : +else +   AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT([yes]) +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then +  ( sleep 1 ) & +  am_sleep_pid=$! +fi +AC_CONFIG_COMMANDS_PRE( +  [AC_MSG_CHECKING([that generated files are newer than configure]) +   if test -n "$am_sleep_pid"; then +     # Hide warnings about reused PIDs. +     wait $am_sleep_pid 2>/dev/null +   fi +   AC_MSG_RESULT([done])]) +rm -f conftest.file +]) + +# Copyright (C) 2009-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# ("yes" being less verbose, "no" or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], [dnl +AS_HELP_STRING( +  [--enable-silent-rules], +  [less verbose build output (undo: "make V=1")]) +AS_HELP_STRING( +  [--disable-silent-rules], +  [verbose build output (undo: "make V=0")])dnl +]) +case $enable_silent_rules in @%:@ ((( +  yes) AM_DEFAULT_VERBOSITY=0;; +   no) AM_DEFAULT_VERBOSITY=1;; +    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +dnl +dnl A few 'make' implementations (e.g., NonStop OS and NextStep) +dnl do not support nested variable expansions. +dnl See automake bug#9928 and bug#10237. +am_make=${MAKE-make} +AC_CACHE_CHECK([whether $am_make supports nested variables], +   [am_cv_make_support_nested_variables], +   [if AS_ECHO([['TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: +	@$(TRUE) +.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then +  am_cv_make_support_nested_variables=yes +else +  am_cv_make_support_nested_variables=no +fi]) +if test $am_cv_make_support_nested_variables = yes; then +  dnl Using '$V' instead of '$(V)' breaks IRIX make. +  AM_V='$(V)' +  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else +  AM_V=$AM_DEFAULT_VERBOSITY +  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AC_SUBST([AM_V])dnl +AM_SUBST_NOTMAKE([AM_V])dnl +AC_SUBST([AM_DEFAULT_V])dnl +AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor 'install' (even GNU) is that you can't +# specify the program used to strip binaries.  This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in "make install-strip", and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip".  However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. +if test "$cross_compiling" != no; then +  AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# -------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball.                            -*- Autoconf -*- + +# Copyright (C) 2004-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of 'v7', 'ustar', or 'pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +#     tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +#     $(am__untar) < result.tar +# +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility.  Yes, it's still used +# in the wild :-(  We should find a proper way to deprecate it ... +AC_SUBST([AMTAR], ['$${TAR-tar}']) + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' + +m4_if([$1], [v7], +  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], + +  [m4_case([$1], +    [ustar], +     [# The POSIX 1988 'ustar' format is defined with fixed-size fields. +      # There is notably a 21 bits limit for the UID and the GID.  In fact, +      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 +      # and bug#13588). +      am_max_uid=2097151 # 2^21 - 1 +      am_max_gid=$am_max_uid +      # The $UID and $GID variables are not portable, so we need to resort +      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls +      # below are definitely unexpected, so allow the users to see them +      # (that is, avoid stderr redirection). +      am_uid=`id -u || echo unknown` +      am_gid=`id -g || echo unknown` +      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) +      if test $am_uid -le $am_max_uid; then +         AC_MSG_RESULT([yes]) +      else +         AC_MSG_RESULT([no]) +         _am_tools=none +      fi +      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) +      if test $am_gid -le $am_max_gid; then +         AC_MSG_RESULT([yes]) +      else +        AC_MSG_RESULT([no]) +        _am_tools=none +      fi], + +  [pax], +    [], + +  [m4_fatal([Unknown tar format])]) + +  AC_MSG_CHECKING([how to create a $1 tar archive]) + +  # Go ahead even if we have the value already cached.  We do so because we +  # need to set the values for the 'am__tar' and 'am__untar' variables. +  _am_tools=${am_cv_prog_tar_$1-$_am_tools} + +  for _am_tool in $_am_tools; do +    case $_am_tool in +    gnutar) +      for _am_tar in tar gnutar gtar; do +        AM_RUN_LOG([$_am_tar --version]) && break +      done +      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' +      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' +      am__untar="$_am_tar -xf -" +      ;; +    plaintar) +      # Must skip GNU tar: if it does not support --format= it doesn't create +      # ustar tarball either. +      (tar --version) >/dev/null 2>&1 && continue +      am__tar='tar chf - "$$tardir"' +      am__tar_='tar chf - "$tardir"' +      am__untar='tar xf -' +      ;; +    pax) +      am__tar='pax -L -x $1 -w "$$tardir"' +      am__tar_='pax -L -x $1 -w "$tardir"' +      am__untar='pax -r' +      ;; +    cpio) +      am__tar='find "$$tardir" -print | cpio -o -H $1 -L' +      am__tar_='find "$tardir" -print | cpio -o -H $1 -L' +      am__untar='cpio -i -H $1 -d' +      ;; +    none) +      am__tar=false +      am__tar_=false +      am__untar=false +      ;; +    esac + +    # If the value was cached, stop now.  We just wanted to have am__tar +    # and am__untar set. +    test -n "${am_cv_prog_tar_$1}" && break + +    # tar/untar a dummy directory, and stop if the command works. +    rm -rf conftest.dir +    mkdir conftest.dir +    echo GrepMe > conftest.dir/file +    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) +    rm -rf conftest.dir +    if test -s conftest.tar; then +      AM_RUN_LOG([$am__untar <conftest.tar]) +      AM_RUN_LOG([cat conftest.dir/file]) +      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break +    fi +  done +  rm -rf conftest.dir + +  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +  AC_MSG_RESULT([$am_cv_prog_tar_$1])]) + +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + +m4_include([m4/cc-flags.m4]) +m4_include([m4/clang.m4]) +m4_include([m4/gssapi.m4]) +m4_include([m4/krb5-config.m4]) +m4_include([m4/krb5.m4]) +m4_include([m4/lib-depends.m4]) +m4_include([m4/lib-pathname.m4]) +m4_include([m4/perl.m4]) +m4_include([m4/remctl.m4]) +m4_include([m4/snprintf.m4]) +m4_include([m4/vamacros.m4]) diff --git a/build-aux/ar-lib b/build-aux/ar-lib new file mode 100755 index 0000000..05094d3 --- /dev/null +++ b/build-aux/ar-lib @@ -0,0 +1,270 @@ +#! /bin/sh +# Wrapper for Microsoft lib.exe + +me=ar-lib +scriptversion=2012-03-01.08; # UTC + +# Copyright (C) 2010-2017 Free Software Foundation, Inc. +# Written by Peter Rosin <peda@lysator.liu.se>. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program.  If not, see <http://www.gnu.org/licenses/>. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to <bug-automake@gnu.org> or send patches to +# <automake-patches@gnu.org>. + + +# func_error message +func_error () +{ +  echo "$me: $1" 1>&2 +  exit 1 +} + +file_conv= + +# func_file_conv build_file +# Convert a $build file to $host form and store it in $file +# Currently only supports Windows hosts. +func_file_conv () +{ +  file=$1 +  case $file in +    / | /[!/]*) # absolute file, and not a UNC file +      if test -z "$file_conv"; then +	# lazily determine how to convert abs files +	case `uname -s` in +	  MINGW*) +	    file_conv=mingw +	    ;; +	  CYGWIN*) +	    file_conv=cygwin +	    ;; +	  *) +	    file_conv=wine +	    ;; +	esac +      fi +      case $file_conv in +	mingw) +	  file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` +	  ;; +	cygwin) +	  file=`cygpath -m "$file" || echo "$file"` +	  ;; +	wine) +	  file=`winepath -w "$file" || echo "$file"` +	  ;; +      esac +      ;; +  esac +} + +# func_at_file at_file operation archive +# Iterate over all members in AT_FILE performing OPERATION on ARCHIVE +# for each of them. +# When interpreting the content of the @FILE, do NOT use func_file_conv, +# since the user would need to supply preconverted file names to +# binutils ar, at least for MinGW. +func_at_file () +{ +  operation=$2 +  archive=$3 +  at_file_contents=`cat "$1"` +  eval set x "$at_file_contents" +  shift + +  for member +  do +    $AR -NOLOGO $operation:"$member" "$archive" || exit $? +  done +} + +case $1 in +  '') +     func_error "no command.  Try '$0 --help' for more information." +     ;; +  -h | --h*) +    cat <<EOF +Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...] + +Members may be specified in a file named with @FILE. +EOF +    exit $? +    ;; +  -v | --v*) +    echo "$me, version $scriptversion" +    exit $? +    ;; +esac + +if test $# -lt 3; then +  func_error "you must specify a program, an action and an archive" +fi + +AR=$1 +shift +while : +do +  if test $# -lt 2; then +    func_error "you must specify a program, an action and an archive" +  fi +  case $1 in +    -lib | -LIB \ +    | -ltcg | -LTCG \ +    | -machine* | -MACHINE* \ +    | -subsystem* | -SUBSYSTEM* \ +    | -verbose | -VERBOSE \ +    | -wx* | -WX* ) +      AR="$AR $1" +      shift +      ;; +    *) +      action=$1 +      shift +      break +      ;; +  esac +done +orig_archive=$1 +shift +func_file_conv "$orig_archive" +archive=$file + +# strip leading dash in $action +action=${action#-} + +delete= +extract= +list= +quick= +replace= +index= +create= + +while test -n "$action" +do +  case $action in +    d*) delete=yes  ;; +    x*) extract=yes ;; +    t*) list=yes    ;; +    q*) quick=yes   ;; +    r*) replace=yes ;; +    s*) index=yes   ;; +    S*)             ;; # the index is always updated implicitly +    c*) create=yes  ;; +    u*)             ;; # TODO: don't ignore the update modifier +    v*)             ;; # TODO: don't ignore the verbose modifier +    *) +      func_error "unknown action specified" +      ;; +  esac +  action=${action#?} +done + +case $delete$extract$list$quick$replace,$index in +  yes,* | ,yes) +    ;; +  yesyes*) +    func_error "more than one action specified" +    ;; +  *) +    func_error "no action specified" +    ;; +esac + +if test -n "$delete"; then +  if test ! -f "$orig_archive"; then +    func_error "archive not found" +  fi +  for member +  do +    case $1 in +      @*) +        func_at_file "${1#@}" -REMOVE "$archive" +        ;; +      *) +        func_file_conv "$1" +        $AR -NOLOGO -REMOVE:"$file" "$archive" || exit $? +        ;; +    esac +  done + +elif test -n "$extract"; then +  if test ! -f "$orig_archive"; then +    func_error "archive not found" +  fi +  if test $# -gt 0; then +    for member +    do +      case $1 in +        @*) +          func_at_file "${1#@}" -EXTRACT "$archive" +          ;; +        *) +          func_file_conv "$1" +          $AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $? +          ;; +      esac +    done +  else +    $AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member +    do +      $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $? +    done +  fi + +elif test -n "$quick$replace"; then +  if test ! -f "$orig_archive"; then +    if test -z "$create"; then +      echo "$me: creating $orig_archive" +    fi +    orig_archive= +  else +    orig_archive=$archive +  fi + +  for member +  do +    case $1 in +    @*) +      func_file_conv "${1#@}" +      set x "$@" "@$file" +      ;; +    *) +      func_file_conv "$1" +      set x "$@" "$file" +      ;; +    esac +    shift +    shift +  done + +  if test -n "$orig_archive"; then +    $AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $? +  else +    $AR -NOLOGO -OUT:"$archive" "$@" || exit $? +  fi + +elif test -n "$list"; then +  if test ! -f "$orig_archive"; then +    func_error "archive not found" +  fi +  $AR -NOLOGO -LIST "$archive" || exit $? +fi diff --git a/build-aux/compile b/build-aux/compile new file mode 100755 index 0000000..a85b723 --- /dev/null +++ b/build-aux/compile @@ -0,0 +1,347 @@ +#! /bin/sh +# Wrapper for compilers which do not understand '-c -o'. + +scriptversion=2012-10-14.11; # UTC + +# Copyright (C) 1999-2014 Free Software Foundation, Inc. +# Written by Tom Tromey <tromey@cygnus.com>. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program.  If not, see <http://www.gnu.org/licenses/>. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to <bug-automake@gnu.org> or send patches to +# <automake-patches@gnu.org>. + +nl=' +' + +# We need space, tab and new line, in precisely that order.  Quoting is +# there to prevent tools from complaining about whitespace usage. +IFS=" ""	$nl" + +file_conv= + +# func_file_conv build_file lazy +# Convert a $build file to $host form and store it in $file +# Currently only supports Windows hosts. If the determined conversion +# type is listed in (the comma separated) LAZY, no conversion will +# take place. +func_file_conv () +{ +  file=$1 +  case $file in +    / | /[!/]*) # absolute file, and not a UNC file +      if test -z "$file_conv"; then +	# lazily determine how to convert abs files +	case `uname -s` in +	  MINGW*) +	    file_conv=mingw +	    ;; +	  CYGWIN*) +	    file_conv=cygwin +	    ;; +	  *) +	    file_conv=wine +	    ;; +	esac +      fi +      case $file_conv/,$2, in +	*,$file_conv,*) +	  ;; +	mingw/*) +	  file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` +	  ;; +	cygwin/*) +	  file=`cygpath -m "$file" || echo "$file"` +	  ;; +	wine/*) +	  file=`winepath -w "$file" || echo "$file"` +	  ;; +      esac +      ;; +  esac +} + +# func_cl_dashL linkdir +# Make cl look for libraries in LINKDIR +func_cl_dashL () +{ +  func_file_conv "$1" +  if test -z "$lib_path"; then +    lib_path=$file +  else +    lib_path="$lib_path;$file" +  fi +  linker_opts="$linker_opts -LIBPATH:$file" +} + +# func_cl_dashl library +# Do a library search-path lookup for cl +func_cl_dashl () +{ +  lib=$1 +  found=no +  save_IFS=$IFS +  IFS=';' +  for dir in $lib_path $LIB +  do +    IFS=$save_IFS +    if $shared && test -f "$dir/$lib.dll.lib"; then +      found=yes +      lib=$dir/$lib.dll.lib +      break +    fi +    if test -f "$dir/$lib.lib"; then +      found=yes +      lib=$dir/$lib.lib +      break +    fi +    if test -f "$dir/lib$lib.a"; then +      found=yes +      lib=$dir/lib$lib.a +      break +    fi +  done +  IFS=$save_IFS + +  if test "$found" != yes; then +    lib=$lib.lib +  fi +} + +# func_cl_wrapper cl arg... +# Adjust compile command to suit cl +func_cl_wrapper () +{ +  # Assume a capable shell +  lib_path= +  shared=: +  linker_opts= +  for arg +  do +    if test -n "$eat"; then +      eat= +    else +      case $1 in +	-o) +	  # configure might choose to run compile as 'compile cc -o foo foo.c'. +	  eat=1 +	  case $2 in +	    *.o | *.[oO][bB][jJ]) +	      func_file_conv "$2" +	      set x "$@" -Fo"$file" +	      shift +	      ;; +	    *) +	      func_file_conv "$2" +	      set x "$@" -Fe"$file" +	      shift +	      ;; +	  esac +	  ;; +	-I) +	  eat=1 +	  func_file_conv "$2" mingw +	  set x "$@" -I"$file" +	  shift +	  ;; +	-I*) +	  func_file_conv "${1#-I}" mingw +	  set x "$@" -I"$file" +	  shift +	  ;; +	-l) +	  eat=1 +	  func_cl_dashl "$2" +	  set x "$@" "$lib" +	  shift +	  ;; +	-l*) +	  func_cl_dashl "${1#-l}" +	  set x "$@" "$lib" +	  shift +	  ;; +	-L) +	  eat=1 +	  func_cl_dashL "$2" +	  ;; +	-L*) +	  func_cl_dashL "${1#-L}" +	  ;; +	-static) +	  shared=false +	  ;; +	-Wl,*) +	  arg=${1#-Wl,} +	  save_ifs="$IFS"; IFS=',' +	  for flag in $arg; do +	    IFS="$save_ifs" +	    linker_opts="$linker_opts $flag" +	  done +	  IFS="$save_ifs" +	  ;; +	-Xlinker) +	  eat=1 +	  linker_opts="$linker_opts $2" +	  ;; +	-*) +	  set x "$@" "$1" +	  shift +	  ;; +	*.cc | *.CC | *.cxx | *.CXX | *.[cC]++) +	  func_file_conv "$1" +	  set x "$@" -Tp"$file" +	  shift +	  ;; +	*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) +	  func_file_conv "$1" mingw +	  set x "$@" "$file" +	  shift +	  ;; +	*) +	  set x "$@" "$1" +	  shift +	  ;; +      esac +    fi +    shift +  done +  if test -n "$linker_opts"; then +    linker_opts="-link$linker_opts" +  fi +  exec "$@" $linker_opts +  exit 1 +} + +eat= + +case $1 in +  '') +     echo "$0: No command.  Try '$0 --help' for more information." 1>&2 +     exit 1; +     ;; +  -h | --h*) +    cat <<\EOF +Usage: compile [--help] [--version] PROGRAM [ARGS] + +Wrapper for compilers which do not understand '-c -o'. +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining +arguments, and rename the output as expected. + +If you are trying to build a whole package this is not the +right script to run: please start by reading the file 'INSTALL'. + +Report bugs to <bug-automake@gnu.org>. +EOF +    exit $? +    ;; +  -v | --v*) +    echo "compile $scriptversion" +    exit $? +    ;; +  cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) +    func_cl_wrapper "$@"      # Doesn't return... +    ;; +esac + +ofile= +cfile= + +for arg +do +  if test -n "$eat"; then +    eat= +  else +    case $1 in +      -o) +	# configure might choose to run compile as 'compile cc -o foo foo.c'. +	# So we strip '-o arg' only if arg is an object. +	eat=1 +	case $2 in +	  *.o | *.obj) +	    ofile=$2 +	    ;; +	  *) +	    set x "$@" -o "$2" +	    shift +	    ;; +	esac +	;; +      *.c) +	cfile=$1 +	set x "$@" "$1" +	shift +	;; +      *) +	set x "$@" "$1" +	shift +	;; +    esac +  fi +  shift +done + +if test -z "$ofile" || test -z "$cfile"; then +  # If no '-o' option was seen then we might have been invoked from a +  # pattern rule where we don't need one.  That is ok -- this is a +  # normal compilation that the losing compiler can handle.  If no +  # '.c' file was seen then we are probably linking.  That is also +  # ok. +  exec "$@" +fi + +# Name of file we expect compiler to create. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` + +# Create the lock directory. +# Note: use '[/\\:.-]' here to ensure that we don't use the same name +# that we are using for the .o file.  Also, base the name on the expected +# object file name, since that is what matters with a parallel build. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d +while true; do +  if mkdir "$lockdir" >/dev/null 2>&1; then +    break +  fi +  sleep 1 +done +# FIXME: race condition here if user kills between mkdir and trap. +trap "rmdir '$lockdir'; exit 1" 1 2 15 + +# Run the compile. +"$@" +ret=$? + +if test -f "$cofile"; then +  test "$cofile" = "$ofile" || mv "$cofile" "$ofile" +elif test -f "${cofile}bj"; then +  test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" +fi + +rmdir "$lockdir" +exit $ret + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/build-aux/depcomp b/build-aux/depcomp new file mode 100755 index 0000000..b39f98f --- /dev/null +++ b/build-aux/depcomp @@ -0,0 +1,791 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2016-01-11.22; # UTC + +# Copyright (C) 1999-2017 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program.  If not, see <http://www.gnu.org/licenses/>. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. + +case $1 in +  '') +    echo "$0: No command.  Try '$0 --help' for more information." 1>&2 +    exit 1; +    ;; +  -h | --h*) +    cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: +  depmode     Dependency tracking mode. +  source      Source file read by 'PROGRAMS ARGS'. +  object      Object file output by 'PROGRAMS ARGS'. +  DEPDIR      directory where to store dependencies. +  depfile     Dependency file to output. +  tmpdepfile  Temporary file to use when outputting dependencies. +  libtool     Whether libtool is used (yes/no). + +Report bugs to <bug-automake@gnu.org>. +EOF +    exit $? +    ;; +  -v | --v*) +    echo "depcomp $scriptversion" +    exit $? +    ;; +esac + +# Get the directory component of the given path, and save it in the +# global variables '$dir'.  Note that this directory component will +# be either empty or ending with a '/' character.  This is deliberate. +set_dir_from () +{ +  case $1 in +    */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; +      *) dir=;; +  esac +} + +# Get the suffix-stripped basename of the given path, and save it the +# global variable '$base'. +set_base_from () +{ +  base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` +} + +# If no dependency file was actually created by the compiler invocation, +# we still have to create a dummy depfile, to avoid errors with the +# Makefile "include basename.Plo" scheme. +make_dummy_depfile () +{ +  echo "#dummy" > "$depfile" +} + +# Factor out some common post-processing of the generated depfile. +# Requires the auxiliary global variable '$tmpdepfile' to be set. +aix_post_process_depfile () +{ +  # If the compiler actually managed to produce a dependency file, +  # post-process it. +  if test -f "$tmpdepfile"; then +    # Each line is of the form 'foo.o: dependency.h'. +    # Do two passes, one to just change these to +    #   $object: dependency.h +    # and one to simply output +    #   dependency.h: +    # which is needed to avoid the deleted-header problem. +    { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" +      sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" +    } > "$depfile" +    rm -f "$tmpdepfile" +  else +    make_dummy_depfile +  fi +} + +# A tabulation character. +tab='	' +# A newline character. +nl=' +' +# Character ranges might be problematic outside the C locale. +# These definitions help. +upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ +lower=abcdefghijklmnopqrstuvwxyz +digits=0123456789 +alpha=${upper}${lower} + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then +  echo "depcomp: Variables source, object and depmode must be set" 1>&2 +  exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | +  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Avoid interferences from the environment. +gccflag= dashmflag= + +# Some modes work just like other modes, but use different flags.  We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write.  Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then +  # HP compiler uses -M and no extra arg. +  gccflag=-M +  depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then +  # This is just like dashmstdout with a different argument. +  dashmflag=-xM +  depmode=dashmstdout +fi + +cygpath_u="cygpath -u -f -" +if test "$depmode" = msvcmsys; then +  # This is just like msvisualcpp but w/o cygpath translation. +  # Just convert the backslash-escaped backslashes to single forward +  # slashes to satisfy depend.m4 +  cygpath_u='sed s,\\\\,/,g' +  depmode=msvisualcpp +fi + +if test "$depmode" = msvc7msys; then +  # This is just like msvc7 but w/o cygpath translation. +  # Just convert the backslash-escaped backslashes to single forward +  # slashes to satisfy depend.m4 +  cygpath_u='sed s,\\\\,/,g' +  depmode=msvc7 +fi + +if test "$depmode" = xlc; then +  # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. +  gccflag=-qmakedep=gcc,-MF +  depmode=gcc +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff.  Hmm. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon +## the command line argument order; so add the flags where they +## appear in depend2.am.  Note that the slowdown incurred here +## affects only configure: in makefiles, %FASTDEP% shortcuts this. +  for arg +  do +    case $arg in +    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; +    *)  set fnord "$@" "$arg" ;; +    esac +    shift # fnord +    shift # $arg +  done +  "$@" +  stat=$? +  if test $stat -ne 0; then +    rm -f "$tmpdepfile" +    exit $stat +  fi +  mv "$tmpdepfile" "$depfile" +  ;; + +gcc) +## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. +## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. +## (see the conditional assignment to $gccflag above). +## There are various ways to get dependency output from gcc.  Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +##   up in a subdir.  Having to rename by hand is ugly. +##   (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +##   -MM, not -M (despite what the docs say).  Also, it might not be +##   supported by the other compilers which use the 'gcc' depmode. +## - Using -M directly means running the compiler twice (even worse +##   than renaming). +  if test -z "$gccflag"; then +    gccflag=-MD, +  fi +  "$@" -Wp,"$gccflag$tmpdepfile" +  stat=$? +  if test $stat -ne 0; then +    rm -f "$tmpdepfile" +    exit $stat +  fi +  rm -f "$depfile" +  echo "$object : \\" > "$depfile" +  # The second -e expression handles DOS-style file names with drive +  # letters. +  sed -e 's/^[^:]*: / /' \ +      -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the "deleted header file" problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header).  We avoid this by adding +## dummy dependencies for each header file.  Too bad gcc doesn't do +## this for us directly. +## Some versions of gcc put a space before the ':'.  On the theory +## that the space means something, we add a space to the output as +## well.  hp depmode also adds that space, but also prefixes the VPATH +## to the object.  Take care to not repeat it in the output. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly.  Breaking it into two sed invocations is a workaround. +  tr ' ' "$nl" < "$tmpdepfile" \ +    | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ +    | sed -e 's/$/ :/' >> "$depfile" +  rm -f "$tmpdepfile" +  ;; + +hp) +  # This case exists only to let depend.m4 do its work.  It works by +  # looking at the text of this script.  This case will never be run, +  # since it is checked for above. +  exit 1 +  ;; + +sgi) +  if test "$libtool" = yes; then +    "$@" "-Wp,-MDupdate,$tmpdepfile" +  else +    "$@" -MDupdate "$tmpdepfile" +  fi +  stat=$? +  if test $stat -ne 0; then +    rm -f "$tmpdepfile" +    exit $stat +  fi +  rm -f "$depfile" + +  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files +    echo "$object : \\" > "$depfile" +    # Clip off the initial element (the dependent).  Don't try to be +    # clever and replace this with sed code, as IRIX sed won't handle +    # lines with more than a fixed number of characters (4096 in +    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines; +    # the IRIX cc adds comments like '#:fec' to the end of the +    # dependency line. +    tr ' ' "$nl" < "$tmpdepfile" \ +      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ +      | tr "$nl" ' ' >> "$depfile" +    echo >> "$depfile" +    # The second pass generates a dummy entry for each header file. +    tr ' ' "$nl" < "$tmpdepfile" \ +      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ +      >> "$depfile" +  else +    make_dummy_depfile +  fi +  rm -f "$tmpdepfile" +  ;; + +xlc) +  # This case exists only to let depend.m4 do its work.  It works by +  # looking at the text of this script.  This case will never be run, +  # since it is checked for above. +  exit 1 +  ;; + +aix) +  # The C for AIX Compiler uses -M and outputs the dependencies +  # in a .u file.  In older versions, this file always lives in the +  # current directory.  Also, the AIX compiler puts '$object:' at the +  # start of each line; $object doesn't have directory information. +  # Version 6 uses the directory in both cases. +  set_dir_from "$object" +  set_base_from "$object" +  if test "$libtool" = yes; then +    tmpdepfile1=$dir$base.u +    tmpdepfile2=$base.u +    tmpdepfile3=$dir.libs/$base.u +    "$@" -Wc,-M +  else +    tmpdepfile1=$dir$base.u +    tmpdepfile2=$dir$base.u +    tmpdepfile3=$dir$base.u +    "$@" -M +  fi +  stat=$? +  if test $stat -ne 0; then +    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" +    exit $stat +  fi + +  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" +  do +    test -f "$tmpdepfile" && break +  done +  aix_post_process_depfile +  ;; + +tcc) +  # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 +  # FIXME: That version still under development at the moment of writing. +  #        Make that this statement remains true also for stable, released +  #        versions. +  # It will wrap lines (doesn't matter whether long or short) with a +  # trailing '\', as in: +  # +  #   foo.o : \ +  #    foo.c \ +  #    foo.h \ +  # +  # It will put a trailing '\' even on the last line, and will use leading +  # spaces rather than leading tabs (at least since its commit 0394caf7 +  # "Emit spaces for -MD"). +  "$@" -MD -MF "$tmpdepfile" +  stat=$? +  if test $stat -ne 0; then +    rm -f "$tmpdepfile" +    exit $stat +  fi +  rm -f "$depfile" +  # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. +  # We have to change lines of the first kind to '$object: \'. +  sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" +  # And for each line of the second kind, we have to emit a 'dep.h:' +  # dummy dependency, to avoid the deleted-header problem. +  sed -n -e 's|^  *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" +  rm -f "$tmpdepfile" +  ;; + +## The order of this option in the case statement is important, since the +## shell code in configure will try each of these formats in the order +## listed in this file.  A plain '-MD' option would be understood by many +## compilers, so we must ensure this comes after the gcc and icc options. +pgcc) +  # Portland's C compiler understands '-MD'. +  # Will always output deps to 'file.d' where file is the root name of the +  # source file under compilation, even if file resides in a subdirectory. +  # The object file name does not affect the name of the '.d' file. +  # pgcc 10.2 will output +  #    foo.o: sub/foo.c sub/foo.h +  # and will wrap long lines using '\' : +  #    foo.o: sub/foo.c ... \ +  #     sub/foo.h ... \ +  #     ... +  set_dir_from "$object" +  # Use the source, not the object, to determine the base name, since +  # that's sadly what pgcc will do too. +  set_base_from "$source" +  tmpdepfile=$base.d + +  # For projects that build the same source file twice into different object +  # files, the pgcc approach of using the *source* file root name can cause +  # problems in parallel builds.  Use a locking strategy to avoid stomping on +  # the same $tmpdepfile. +  lockdir=$base.d-lock +  trap " +    echo '$0: caught signal, cleaning up...' >&2 +    rmdir '$lockdir' +    exit 1 +  " 1 2 13 15 +  numtries=100 +  i=$numtries +  while test $i -gt 0; do +    # mkdir is a portable test-and-set. +    if mkdir "$lockdir" 2>/dev/null; then +      # This process acquired the lock. +      "$@" -MD +      stat=$? +      # Release the lock. +      rmdir "$lockdir" +      break +    else +      # If the lock is being held by a different process, wait +      # until the winning process is done or we timeout. +      while test -d "$lockdir" && test $i -gt 0; do +        sleep 1 +        i=`expr $i - 1` +      done +    fi +    i=`expr $i - 1` +  done +  trap - 1 2 13 15 +  if test $i -le 0; then +    echo "$0: failed to acquire lock after $numtries attempts" >&2 +    echo "$0: check lockdir '$lockdir'" >&2 +    exit 1 +  fi + +  if test $stat -ne 0; then +    rm -f "$tmpdepfile" +    exit $stat +  fi +  rm -f "$depfile" +  # Each line is of the form `foo.o: dependent.h', +  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. +  # Do two passes, one to just change these to +  # `$object: dependent.h' and one to simply `dependent.h:'. +  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" +  # Some versions of the HPUX 10.20 sed can't process this invocation +  # correctly.  Breaking it into two sed invocations is a workaround. +  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ +    | sed -e 's/$/ :/' >> "$depfile" +  rm -f "$tmpdepfile" +  ;; + +hp2) +  # The "hp" stanza above does not work with aCC (C++) and HP's ia64 +  # compilers, which have integrated preprocessors.  The correct option +  # to use with these is +Maked; it writes dependencies to a file named +  # 'foo.d', which lands next to the object file, wherever that +  # happens to be. +  # Much of this is similar to the tru64 case; see comments there. +  set_dir_from  "$object" +  set_base_from "$object" +  if test "$libtool" = yes; then +    tmpdepfile1=$dir$base.d +    tmpdepfile2=$dir.libs/$base.d +    "$@" -Wc,+Maked +  else +    tmpdepfile1=$dir$base.d +    tmpdepfile2=$dir$base.d +    "$@" +Maked +  fi +  stat=$? +  if test $stat -ne 0; then +     rm -f "$tmpdepfile1" "$tmpdepfile2" +     exit $stat +  fi + +  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" +  do +    test -f "$tmpdepfile" && break +  done +  if test -f "$tmpdepfile"; then +    sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" +    # Add 'dependent.h:' lines. +    sed -ne '2,${ +               s/^ *// +               s/ \\*$// +               s/$/:/ +               p +             }' "$tmpdepfile" >> "$depfile" +  else +    make_dummy_depfile +  fi +  rm -f "$tmpdepfile" "$tmpdepfile2" +  ;; + +tru64) +  # The Tru64 compiler uses -MD to generate dependencies as a side +  # effect.  'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. +  # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put +  # dependencies in 'foo.d' instead, so we check for that too. +  # Subdirectories are respected. +  set_dir_from  "$object" +  set_base_from "$object" + +  if test "$libtool" = yes; then +    # Libtool generates 2 separate objects for the 2 libraries.  These +    # two compilations output dependencies in $dir.libs/$base.o.d and +    # in $dir$base.o.d.  We have to check for both files, because +    # one of the two compilations can be disabled.  We should prefer +    # $dir$base.o.d over $dir.libs/$base.o.d because the latter is +    # automatically cleaned when .libs/ is deleted, while ignoring +    # the former would cause a distcleancheck panic. +    tmpdepfile1=$dir$base.o.d          # libtool 1.5 +    tmpdepfile2=$dir.libs/$base.o.d    # Likewise. +    tmpdepfile3=$dir.libs/$base.d      # Compaq CCC V6.2-504 +    "$@" -Wc,-MD +  else +    tmpdepfile1=$dir$base.d +    tmpdepfile2=$dir$base.d +    tmpdepfile3=$dir$base.d +    "$@" -MD +  fi + +  stat=$? +  if test $stat -ne 0; then +    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" +    exit $stat +  fi + +  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" +  do +    test -f "$tmpdepfile" && break +  done +  # Same post-processing that is required for AIX mode. +  aix_post_process_depfile +  ;; + +msvc7) +  if test "$libtool" = yes; then +    showIncludes=-Wc,-showIncludes +  else +    showIncludes=-showIncludes +  fi +  "$@" $showIncludes > "$tmpdepfile" +  stat=$? +  grep -v '^Note: including file: ' "$tmpdepfile" +  if test $stat -ne 0; then +    rm -f "$tmpdepfile" +    exit $stat +  fi +  rm -f "$depfile" +  echo "$object : \\" > "$depfile" +  # The first sed program below extracts the file names and escapes +  # backslashes for cygpath.  The second sed program outputs the file +  # name when reading, but also accumulates all include files in the +  # hold buffer in order to output them again at the end.  This only +  # works with sed implementations that can handle large buffers. +  sed < "$tmpdepfile" -n ' +/^Note: including file:  *\(.*\)/ { +  s//\1/ +  s/\\/\\\\/g +  p +}' | $cygpath_u | sort -u | sed -n ' +s/ /\\ /g +s/\(.*\)/'"$tab"'\1 \\/p +s/.\(.*\) \\/\1:/ +H +$ { +  s/.*/'"$tab"'/ +  G +  p +}' >> "$depfile" +  echo >> "$depfile" # make sure the fragment doesn't end with a backslash +  rm -f "$tmpdepfile" +  ;; + +msvc7msys) +  # This case exists only to let depend.m4 do its work.  It works by +  # looking at the text of this script.  This case will never be run, +  # since it is checked for above. +  exit 1 +  ;; + +#nosideeffect) +  # This comment above is used by automake to tell side-effect +  # dependency tracking mechanisms from slower ones. + +dashmstdout) +  # Important note: in order to support this mode, a compiler *must* +  # always write the preprocessed file to stdout, regardless of -o. +  "$@" || exit $? + +  # Remove the call to Libtool. +  if test "$libtool" = yes; then +    while test "X$1" != 'X--mode=compile'; do +      shift +    done +    shift +  fi + +  # Remove '-o $object'. +  IFS=" " +  for arg +  do +    case $arg in +    -o) +      shift +      ;; +    $object) +      shift +      ;; +    *) +      set fnord "$@" "$arg" +      shift # fnord +      shift # $arg +      ;; +    esac +  done + +  test -z "$dashmflag" && dashmflag=-M +  # Require at least two characters before searching for ':' +  # in the target name.  This is to cope with DOS-style filenames: +  # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. +  "$@" $dashmflag | +    sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" +  rm -f "$depfile" +  cat < "$tmpdepfile" > "$depfile" +  # Some versions of the HPUX 10.20 sed can't process this sed invocation +  # correctly.  Breaking it into two sed invocations is a workaround. +  tr ' ' "$nl" < "$tmpdepfile" \ +    | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ +    | sed -e 's/$/ :/' >> "$depfile" +  rm -f "$tmpdepfile" +  ;; + +dashXmstdout) +  # This case only exists to satisfy depend.m4.  It is never actually +  # run, as this mode is specially recognized in the preamble. +  exit 1 +  ;; + +makedepend) +  "$@" || exit $? +  # Remove any Libtool call +  if test "$libtool" = yes; then +    while test "X$1" != 'X--mode=compile'; do +      shift +    done +    shift +  fi +  # X makedepend +  shift +  cleared=no eat=no +  for arg +  do +    case $cleared in +    no) +      set ""; shift +      cleared=yes ;; +    esac +    if test $eat = yes; then +      eat=no +      continue +    fi +    case "$arg" in +    -D*|-I*) +      set fnord "$@" "$arg"; shift ;; +    # Strip any option that makedepend may not understand.  Remove +    # the object too, otherwise makedepend will parse it as a source file. +    -arch) +      eat=yes ;; +    -*|$object) +      ;; +    *) +      set fnord "$@" "$arg"; shift ;; +    esac +  done +  obj_suffix=`echo "$object" | sed 's/^.*\././'` +  touch "$tmpdepfile" +  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" +  rm -f "$depfile" +  # makedepend may prepend the VPATH from the source file name to the object. +  # No need to regex-escape $object, excess matching of '.' is harmless. +  sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" +  # Some versions of the HPUX 10.20 sed can't process the last invocation +  # correctly.  Breaking it into two sed invocations is a workaround. +  sed '1,2d' "$tmpdepfile" \ +    | tr ' ' "$nl" \ +    | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ +    | sed -e 's/$/ :/' >> "$depfile" +  rm -f "$tmpdepfile" "$tmpdepfile".bak +  ;; + +cpp) +  # Important note: in order to support this mode, a compiler *must* +  # always write the preprocessed file to stdout. +  "$@" || exit $? + +  # Remove the call to Libtool. +  if test "$libtool" = yes; then +    while test "X$1" != 'X--mode=compile'; do +      shift +    done +    shift +  fi + +  # Remove '-o $object'. +  IFS=" " +  for arg +  do +    case $arg in +    -o) +      shift +      ;; +    $object) +      shift +      ;; +    *) +      set fnord "$@" "$arg" +      shift # fnord +      shift # $arg +      ;; +    esac +  done + +  "$@" -E \ +    | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ +             -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ +    | sed '$ s: \\$::' > "$tmpdepfile" +  rm -f "$depfile" +  echo "$object : \\" > "$depfile" +  cat < "$tmpdepfile" >> "$depfile" +  sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" +  rm -f "$tmpdepfile" +  ;; + +msvisualcpp) +  # Important note: in order to support this mode, a compiler *must* +  # always write the preprocessed file to stdout. +  "$@" || exit $? + +  # Remove the call to Libtool. +  if test "$libtool" = yes; then +    while test "X$1" != 'X--mode=compile'; do +      shift +    done +    shift +  fi + +  IFS=" " +  for arg +  do +    case "$arg" in +    -o) +      shift +      ;; +    $object) +      shift +      ;; +    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") +        set fnord "$@" +        shift +        shift +        ;; +    *) +        set fnord "$@" "$arg" +        shift +        shift +        ;; +    esac +  done +  "$@" -E 2>/dev/null | +  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" +  rm -f "$depfile" +  echo "$object : \\" > "$depfile" +  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" +  echo "$tab" >> "$depfile" +  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" +  rm -f "$tmpdepfile" +  ;; + +msvcmsys) +  # This case exists only to let depend.m4 do its work.  It works by +  # looking at the text of this script.  This case will never be run, +  # since it is checked for above. +  exit 1 +  ;; + +none) +  exec "$@" +  ;; + +*) +  echo "Unknown depmode $depmode" 1>&2 +  exit 1 +  ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/build-aux/install-sh b/build-aux/install-sh new file mode 100755 index 0000000..59990a1 --- /dev/null +++ b/build-aux/install-sh @@ -0,0 +1,508 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2014-09-12.12; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# 'make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +tab='	' +nl=' +' +IFS=" $tab$nl" + +# Set DOITPROG to "echo" to test this script. + +doit=${DOITPROG-} +doit_exec=${doit:-exec} + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +is_target_a_directory=possibly + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE +   or: $0 [OPTION]... SRCFILES... DIRECTORY +   or: $0 [OPTION]... -t DIRECTORY SRCFILES... +   or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: +     --help     display this help and exit. +     --version  display version info and exit. + +  -c            (ignored) +  -C            install only if different (preserve the last data modification time) +  -d            create directories instead of installing files. +  -g GROUP      $chgrpprog installed files to GROUP. +  -m MODE       $chmodprog installed files to MODE. +  -o USER       $chownprog installed files to USER. +  -s            $stripprog installed files. +  -t DIRECTORY  install into DIRECTORY. +  -T            report an error if DSTFILE is a directory. + +Environment variables override the default commands: +  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG +  RMPROG STRIPPROG +" + +while test $# -ne 0; do +  case $1 in +    -c) ;; + +    -C) copy_on_change=true;; + +    -d) dir_arg=true;; + +    -g) chgrpcmd="$chgrpprog $2" +        shift;; + +    --help) echo "$usage"; exit $?;; + +    -m) mode=$2 +        case $mode in +          *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) +            echo "$0: invalid mode: $mode" >&2 +            exit 1;; +        esac +        shift;; + +    -o) chowncmd="$chownprog $2" +        shift;; + +    -s) stripcmd=$stripprog;; + +    -t) +        is_target_a_directory=always +        dst_arg=$2 +        # Protect names problematic for 'test' and other utilities. +        case $dst_arg in +          -* | [=\(\)!]) dst_arg=./$dst_arg;; +        esac +        shift;; + +    -T) is_target_a_directory=never;; + +    --version) echo "$0 $scriptversion"; exit $?;; + +    --) shift +        break;; + +    -*) echo "$0: invalid option: $1" >&2 +        exit 1;; + +    *)  break;; +  esac +  shift +done + +# We allow the use of options -d and -T together, by making -d +# take the precedence; this is for compatibility with GNU install. + +if test -n "$dir_arg"; then +  if test -n "$dst_arg"; then +    echo "$0: target directory not allowed when installing a directory." >&2 +    exit 1 +  fi +fi + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then +  # When -d is used, all remaining arguments are directories to create. +  # When -t is used, the destination is already specified. +  # Otherwise, the last argument is the destination.  Remove it from $@. +  for arg +  do +    if test -n "$dst_arg"; then +      # $@ is not empty: it contains at least $arg. +      set fnord "$@" "$dst_arg" +      shift # fnord +    fi +    shift # arg +    dst_arg=$arg +    # Protect names problematic for 'test' and other utilities. +    case $dst_arg in +      -* | [=\(\)!]) dst_arg=./$dst_arg;; +    esac +  done +fi + +if test $# -eq 0; then +  if test -z "$dir_arg"; then +    echo "$0: no input file specified." >&2 +    exit 1 +  fi +  # It's OK to call 'install-sh -d' without argument. +  # This can happen when creating conditional directories. +  exit 0 +fi + +if test -z "$dir_arg"; then +  if test $# -gt 1 || test "$is_target_a_directory" = always; then +    if test ! -d "$dst_arg"; then +      echo "$0: $dst_arg: Is not a directory." >&2 +      exit 1 +    fi +  fi +fi + +if test -z "$dir_arg"; then +  do_exit='(exit $ret); exit $ret' +  trap "ret=129; $do_exit" 1 +  trap "ret=130; $do_exit" 2 +  trap "ret=141; $do_exit" 13 +  trap "ret=143; $do_exit" 15 + +  # Set umask so as not to create temps with too-generous modes. +  # However, 'strip' requires both read and write access to temps. +  case $mode in +    # Optimize common cases. +    *644) cp_umask=133;; +    *755) cp_umask=22;; + +    *[0-7]) +      if test -z "$stripcmd"; then +        u_plus_rw= +      else +        u_plus_rw='% 200' +      fi +      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; +    *) +      if test -z "$stripcmd"; then +        u_plus_rw= +      else +        u_plus_rw=,u+rw +      fi +      cp_umask=$mode$u_plus_rw;; +  esac +fi + +for src +do +  # Protect names problematic for 'test' and other utilities. +  case $src in +    -* | [=\(\)!]) src=./$src;; +  esac + +  if test -n "$dir_arg"; then +    dst=$src +    dstdir=$dst +    test -d "$dstdir" +    dstdir_status=$? +  else + +    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command +    # might cause directories to be created, which would be especially bad +    # if $src (and thus $dsttmp) contains '*'. +    if test ! -f "$src" && test ! -d "$src"; then +      echo "$0: $src does not exist." >&2 +      exit 1 +    fi + +    if test -z "$dst_arg"; then +      echo "$0: no destination specified." >&2 +      exit 1 +    fi +    dst=$dst_arg + +    # If destination is a directory, append the input filename; won't work +    # if double slashes aren't ignored. +    if test -d "$dst"; then +      if test "$is_target_a_directory" = never; then +        echo "$0: $dst_arg: Is a directory" >&2 +        exit 1 +      fi +      dstdir=$dst +      dst=$dstdir/`basename "$src"` +      dstdir_status=0 +    else +      dstdir=`dirname "$dst"` +      test -d "$dstdir" +      dstdir_status=$? +    fi +  fi + +  obsolete_mkdir_used=false + +  if test $dstdir_status != 0; then +    case $posix_mkdir in +      '') +        # Create intermediate dirs using mode 755 as modified by the umask. +        # This is like FreeBSD 'install' as of 1997-10-28. +        umask=`umask` +        case $stripcmd.$umask in +          # Optimize common cases. +          *[2367][2367]) mkdir_umask=$umask;; +          .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; + +          *[0-7]) +            mkdir_umask=`expr $umask + 22 \ +              - $umask % 100 % 40 + $umask % 20 \ +              - $umask % 10 % 4 + $umask % 2 +            `;; +          *) mkdir_umask=$umask,go-w;; +        esac + +        # With -d, create the new directory with the user-specified mode. +        # Otherwise, rely on $mkdir_umask. +        if test -n "$dir_arg"; then +          mkdir_mode=-m$mode +        else +          mkdir_mode= +        fi + +        posix_mkdir=false +        case $umask in +          *[123567][0-7][0-7]) +            # POSIX mkdir -p sets u+wx bits regardless of umask, which +            # is incompatible with FreeBSD 'install' when (umask & 300) != 0. +            ;; +          *) +            # $RANDOM is not portable (e.g. dash);  use it when possible to +            # lower collision chance +            tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ +            trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 + +            # As "mkdir -p" follows symlinks and we work in /tmp possibly;  so +            # create the $tmpdir first (and fail if unsuccessful) to make sure +            # that nobody tries to guess the $tmpdir name. +            if (umask $mkdir_umask && +                $mkdirprog $mkdir_mode "$tmpdir" && +                exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 +            then +              if test -z "$dir_arg" || { +                   # Check for POSIX incompatibilities with -m. +                   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or +                   # other-writable bit of parent directory when it shouldn't. +                   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. +                   test_tmpdir="$tmpdir/a" +                   ls_ld_tmpdir=`ls -ld "$test_tmpdir"` +                   case $ls_ld_tmpdir in +                     d????-?r-*) different_mode=700;; +                     d????-?--*) different_mode=755;; +                     *) false;; +                   esac && +                   $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { +                     ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` +                     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" +                   } +                 } +              then posix_mkdir=: +              fi +              rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" +            else +              # Remove any dirs left behind by ancient mkdir implementations. +              rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null +            fi +            trap '' 0;; +        esac;; +    esac + +    if +      $posix_mkdir && ( +        umask $mkdir_umask && +        $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" +      ) +    then : +    else + +      # The umask is ridiculous, or mkdir does not conform to POSIX, +      # or it failed possibly due to a race condition.  Create the +      # directory the slow way, step by step, checking for races as we go. + +      case $dstdir in +        /*) prefix='/';; +        [-=\(\)!]*) prefix='./';; +        *)  prefix='';; +      esac + +      oIFS=$IFS +      IFS=/ +      set -f +      set fnord $dstdir +      shift +      set +f +      IFS=$oIFS + +      prefixes= + +      for d +      do +        test X"$d" = X && continue + +        prefix=$prefix$d +        if test -d "$prefix"; then +          prefixes= +        else +          if $posix_mkdir; then +            (umask=$mkdir_umask && +             $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break +            # Don't fail if two instances are running concurrently. +            test -d "$prefix" || exit 1 +          else +            case $prefix in +              *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; +              *) qprefix=$prefix;; +            esac +            prefixes="$prefixes '$qprefix'" +          fi +        fi +        prefix=$prefix/ +      done + +      if test -n "$prefixes"; then +        # Don't fail if two instances are running concurrently. +        (umask $mkdir_umask && +         eval "\$doit_exec \$mkdirprog $prefixes") || +          test -d "$dstdir" || exit 1 +        obsolete_mkdir_used=true +      fi +    fi +  fi + +  if test -n "$dir_arg"; then +    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && +    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && +    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || +      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 +  else + +    # Make a couple of temp file names in the proper directory. +    dsttmp=$dstdir/_inst.$$_ +    rmtmp=$dstdir/_rm.$$_ + +    # Trap to clean up those temp files at exit. +    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + +    # Copy the file name to the temp name. +    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + +    # and set any options; do chmod last to preserve setuid bits. +    # +    # If any of these fail, we abort the whole thing.  If we want to +    # ignore errors from any of these, just make sure not to ignore +    # errors from the above "$doit $cpprog $src $dsttmp" command. +    # +    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && +    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && +    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && +    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + +    # If -C, don't bother to copy if it wouldn't change the file. +    if $copy_on_change && +       old=`LC_ALL=C ls -dlL "$dst"     2>/dev/null` && +       new=`LC_ALL=C ls -dlL "$dsttmp"  2>/dev/null` && +       set -f && +       set X $old && old=:$2:$4:$5:$6 && +       set X $new && new=:$2:$4:$5:$6 && +       set +f && +       test "$old" = "$new" && +       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 +    then +      rm -f "$dsttmp" +    else +      # Rename the file to the real destination. +      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + +      # The rename failed, perhaps because mv can't rename something else +      # to itself, or perhaps because mv is so ancient that it does not +      # support -f. +      { +        # Now remove or move aside any old file at destination location. +        # We try this two ways since rm can't unlink itself on some +        # systems and the destination file might be busy for other +        # reasons.  In this case, the final cleanup might fail but the new +        # file should still install successfully. +        { +          test ! -f "$dst" || +          $doit $rmcmd -f "$dst" 2>/dev/null || +          { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && +            { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } +          } || +          { echo "$0: cannot unlink or rename $dst" >&2 +            (exit 1); exit 1 +          } +        } && + +        # Now rename the file to the real destination. +        $doit $mvcmd "$dsttmp" "$dst" +      } +    fi || exit 1 + +    trap '' 0 +  fi +done + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/build-aux/missing b/build-aux/missing new file mode 100755 index 0000000..f62bbae --- /dev/null +++ b/build-aux/missing @@ -0,0 +1,215 @@ +#! /bin/sh +# Common wrapper for a few potentially missing GNU programs. + +scriptversion=2013-10-28.13; # UTC + +# Copyright (C) 1996-2014 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program.  If not, see <http://www.gnu.org/licenses/>. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then +  echo 1>&2 "Try '$0 --help' for more information" +  exit 1 +fi + +case $1 in + +  --is-lightweight) +    # Used by our autoconf macros to check whether the available missing +    # script is modern enough. +    exit 0 +    ;; + +  --run) +    # Back-compat with the calling convention used by older automake. +    shift +    ;; + +  -h|--h|--he|--hel|--help) +    echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. + +Options: +  -h, --help      display this help and exit +  -v, --version   output version information and exit + +Supported PROGRAM values: +  aclocal   autoconf  autoheader   autom4te  automake  makeinfo +  bison     yacc      flex         lex       help2man + +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and +'g' are ignored when checking the name. + +Send bug reports to <bug-automake@gnu.org>." +    exit $? +    ;; + +  -v|--v|--ve|--ver|--vers|--versi|--versio|--version) +    echo "missing $scriptversion (GNU Automake)" +    exit $? +    ;; + +  -*) +    echo 1>&2 "$0: unknown '$1' option" +    echo 1>&2 "Try '$0 --help' for more information" +    exit 1 +    ;; + +esac + +# Run the given program, remember its exit status. +"$@"; st=$? + +# If it succeeded, we are done. +test $st -eq 0 && exit 0 + +# Also exit now if we it failed (or wasn't found), and '--version' was +# passed; such an option is passed most likely to detect whether the +# program is present and works. +case $2 in --version|--help) exit $st;; esac + +# Exit code 63 means version mismatch.  This often happens when the user +# tries to use an ancient version of a tool on a file that requires a +# minimum version. +if test $st -eq 63; then +  msg="probably too old" +elif test $st -eq 127; then +  # Program was missing. +  msg="missing on your system" +else +  # Program was found and executed, but failed.  Give up. +  exit $st +fi + +perl_URL=http://www.perl.org/ +flex_URL=http://flex.sourceforge.net/ +gnu_software_URL=http://www.gnu.org/software + +program_details () +{ +  case $1 in +    aclocal|automake) +      echo "The '$1' program is part of the GNU Automake package:" +      echo "<$gnu_software_URL/automake>" +      echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" +      echo "<$gnu_software_URL/autoconf>" +      echo "<$gnu_software_URL/m4/>" +      echo "<$perl_URL>" +      ;; +    autoconf|autom4te|autoheader) +      echo "The '$1' program is part of the GNU Autoconf package:" +      echo "<$gnu_software_URL/autoconf/>" +      echo "It also requires GNU m4 and Perl in order to run:" +      echo "<$gnu_software_URL/m4/>" +      echo "<$perl_URL>" +      ;; +  esac +} + +give_advice () +{ +  # Normalize program name to check for. +  normalized_program=`echo "$1" | sed ' +    s/^gnu-//; t +    s/^gnu//; t +    s/^g//; t'` + +  printf '%s\n' "'$1' is $msg." + +  configure_deps="'configure.ac' or m4 files included by 'configure.ac'" +  case $normalized_program in +    autoconf*) +      echo "You should only need it if you modified 'configure.ac'," +      echo "or m4 files included by it." +      program_details 'autoconf' +      ;; +    autoheader*) +      echo "You should only need it if you modified 'acconfig.h' or" +      echo "$configure_deps." +      program_details 'autoheader' +      ;; +    automake*) +      echo "You should only need it if you modified 'Makefile.am' or" +      echo "$configure_deps." +      program_details 'automake' +      ;; +    aclocal*) +      echo "You should only need it if you modified 'acinclude.m4' or" +      echo "$configure_deps." +      program_details 'aclocal' +      ;; +   autom4te*) +      echo "You might have modified some maintainer files that require" +      echo "the 'autom4te' program to be rebuilt." +      program_details 'autom4te' +      ;; +    bison*|yacc*) +      echo "You should only need it if you modified a '.y' file." +      echo "You may want to install the GNU Bison package:" +      echo "<$gnu_software_URL/bison/>" +      ;; +    lex*|flex*) +      echo "You should only need it if you modified a '.l' file." +      echo "You may want to install the Fast Lexical Analyzer package:" +      echo "<$flex_URL>" +      ;; +    help2man*) +      echo "You should only need it if you modified a dependency" \ +           "of a man page." +      echo "You may want to install the GNU Help2man package:" +      echo "<$gnu_software_URL/help2man/>" +    ;; +    makeinfo*) +      echo "You should only need it if you modified a '.texi' file, or" +      echo "any other file indirectly affecting the aspect of the manual." +      echo "You might want to install the Texinfo package:" +      echo "<$gnu_software_URL/texinfo/>" +      echo "The spurious makeinfo call might also be the consequence of" +      echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" +      echo "want to install GNU make:" +      echo "<$gnu_software_URL/make/>" +      ;; +    *) +      echo "You might have modified some files without having the proper" +      echo "tools for further handling them.  Check the 'README' file, it" +      echo "often tells you about the needed prerequisites for installing" +      echo "this package.  You may also peek at any GNU archive site, in" +      echo "case some other package contains this missing '$1' program." +      ;; +  esac +} + +give_advice "$1" | sed -e '1s/^/WARNING: /' \ +                       -e '2,$s/^/         /' >&2 + +# Propagate the correct exit status (expected to be 127 for a program +# not found, 63 for a program that failed due to version mismatch). +exit $st + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/client/wallet-rekey.1 b/client/wallet-rekey.1 new file mode 100644 index 0000000..c9bb847 --- /dev/null +++ b/client/wallet-rekey.1 @@ -0,0 +1,286 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings.  \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote.  \*(C+ will +.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and +.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +.    ds -- \(*W- +.    ds PI pi +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch +.    ds L" "" +.    ds R" "" +.    ds C` "" +.    ds C' "" +'br\} +.el\{\ +.    ds -- \|\(em\| +.    ds PI \(*p +.    ds L" `` +.    ds R" '' +.    ds C` +.    ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el       .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD.  Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +.    de IX +.    tm Index:\\$1\t\\n%\t"\\$2" +.. +.    if !\nF==2 \{\ +.        nr % 0 +.        nr F 2 +.    \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear.  Run.  Save yourself.  No user-serviceable parts. +.    \" fudge factors for nroff and troff +.if n \{\ +.    ds #H 0 +.    ds #V .8m +.    ds #F .3m +.    ds #[ \f1 +.    ds #] \fP +.\} +.if t \{\ +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m) +.    ds #V .6m +.    ds #F 0 +.    ds #[ \& +.    ds #] \& +.\} +.    \" simple accents for nroff and troff +.if n \{\ +.    ds ' \& +.    ds ` \& +.    ds ^ \& +.    ds , \& +.    ds ~ ~ +.    ds / +.\} +.if t \{\ +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +.    \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.    \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +.    \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +.    ds : e +.    ds 8 ss +.    ds o a +.    ds d- d\h'-1'\(ga +.    ds D- D\h'-1'\(hy +.    ds th \o'bp' +.    ds Th \o'LP' +.    ds ae ae +.    ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "WALLET-REKEY 1" +.TH WALLET-REKEY 1 "2018-06-03" "1.4" "wallet" +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +wallet\-rekey \- Client for rekeying a Kerberos keytab using wallet +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBwallet-rekey\fR [\fB\-hv\fR] [\fB\-c\fR \fIcommand\fR] [\fB\-k\fR \fIprincipal\fR] +    [\fB\-p\fR \fIport\fR] [\fB\-s\fR \fIserver\fR] [\fB\-u\fR \fIprincipal\fR] [\fIkeytab\fR ...] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBwallet-rekey\fR is a specialized client for the wallet system used to +rekey a Kerberos keytab by downloading new keytab objects from wallet for +each principal found in the keytab.  For each keytab file listed on the +command line, it walks through the principals in that keytab, finds all +from the local default realm, requests new wallet keytab objects for each +principal (removing the realm when naming the keytab), and merges the new +keys into the keytab. +.PP +If an error occurs, \fBwallet-rekey\fR continues to rekey all principals that +it can, producing error messages for those that it cannot rekey. +.PP +If no keytab file name is given on the command line, \fBwallet-rekey\fR +attempts to rekey \fI/etc/krb5.keytab\fR, the system default keytab file. +.PP +The new keys are merged into the existing keytab file, but old keys are +not removed.  This means that, over time, the keytab will grow and +accumulate old keys, which eventually should no longer be honored. +Administrators may want to run: +.PP +.Vb 1 +\&    kadmin \-q \*(Aqktremove \-k <keytab> <principal> old\*(Aq +.Ve +.PP +for \s-1MIT\s0 Kerberos, where <keytab> is the path to the keytab and <principal> +is a principal in the keytab (repeating the command for each principal) +or: +.PP +.Vb 1 +\&    ktutil \-k <keytab> purge +.Ve +.PP +for Heimdal.  The Heimdal command can be run by any user with access to +the keytab, but the \s-1MIT\s0 Kerberos command unfortunately has to be run by a +someone with direct \fBkadmin\fR access.  This functionality will eventually +be provided by \fBwallet-rekey\fR directly. +.SH "OPTIONS" +.IX Header "OPTIONS" +.IP "\fB\-c\fR \fIcommand\fR" 4 +.IX Item "-c command" +The command prefix (remctl type) to use.  Normally this is an internal +implementation detail and the default (\f(CW\*(C`wallet\*(C'\fR) should be fine.  It may +sometimes be useful to use a different prefix for testing a different +version of the wallet code on the server.  This option can also be set in +\&\fIkrb5.conf\fR; see \s-1CONFIGURATION\s0 below. +.IP "\fB\-k\fR \fIprincipal\fR" 4 +.IX Item "-k principal" +The service principal of the wallet server.  The default is to use the +\&\f(CW\*(C`host\*(C'\fR principal for the wallet server.  The principal chosen must match +one of the keys in the keytab used by \fBremctld\fR on the wallet server. +This option can also be set in \fIkrb5.conf\fR; see \s-1CONFIGURATION\s0 below. +.IP "\fB\-h\fR" 4 +.IX Item "-h" +Display a brief summary of options and exit.  All other valid options and +commands are ignored. +.IP "\fB\-p\fR \fIport\fR" 4 +.IX Item "-p port" +The port to connect to on the wallet server.  The default is the default +remctl port.  This option can also be set in \fIkrb5.conf\fR; see +\&\s-1CONFIGURATION\s0 below. +.IP "\fB\-s\fR \fIserver\fR" 4 +.IX Item "-s server" +The wallet server to connect to.  The default may be set when compiling +the wallet client.  If it isn't, either \fB\-s\fR must be given or the server +must be set in \fIkrb5.conf\fR.  See \s-1CONFIGURATION\s0 below. +.IP "\fB\-u\fR \fIprincipal\fR" 4 +.IX Item "-u principal" +Rather than using the user's existing ticket cache for authentication, +authenticate as \fIprincipal\fR first and use those credentials for +authentication to the wallet server.  \fBwallet\fR will prompt for the +password for \fIprincipal\fR.  Non-password authentication methods such as +\&\s-1PKINIT\s0 aren't supported; to use those, run \fBkinit\fR first and use an +existing ticket cache. +.IP "\fB\-v\fR" 4 +.IX Item "-v" +Display the version of the \fBwallet\fR client and exit.  All other valid +options and commands are ignored. +.SH "CONFIGURATION" +.IX Header "CONFIGURATION" +The wallet system, including \fBwallet-rekey\fR, can optionally be configured +in the system \fIkrb5.conf\fR.  It will read the default \fIkrb5.conf\fR file +for the Kerberos libraries with which it was compiled.  To set an option, +put the option in the [appdefaults] section.  \fBwallet-rekey\fR will look +for options either at the top level of the [appdefaults] section or in a +subsection named \f(CW\*(C`wallet\*(C'\fR.  For example, the following fragment of a +\&\fIkrb5.conf\fR file would set the default port to 4373 and the default +server to \f(CW\*(C`wallet.example.org\*(C'\fR. +.PP +.Vb 5 +\&    [appdefaults] +\&        wallet_port = 4373 +\&        wallet = { +\&            wallet_server = wallet.example.org +\&        } +.Ve +.PP +The supported options are: +.IP "wallet_principal" 4 +.IX Item "wallet_principal" +The service principal of the wallet server.  The default is to use the +\&\f(CW\*(C`host\*(C'\fR principal for the wallet server.  The principal chosen must match +one of the keys in the keytab used by \fBremctld\fR on the wallet server. +The \fB\-k\fR command-line option overrides this setting. +.IP "wallet_port" 4 +.IX Item "wallet_port" +The port to connect to on the wallet server.  The default is the default +remctl port.  The \fB\-p\fR command-line option overrides this setting. +.IP "wallet_server" 4 +.IX Item "wallet_server" +The wallet server to connect to.  The \fB\-s\fR command-line option overrides +this setting.  The default may be set when compiling the wallet client. +If it isn't, either \fB\-s\fR must be given or this parameter must be present +in in \fIkrb5.conf\fR. +.IP "wallet_type" 4 +.IX Item "wallet_type" +The command prefix (remctl type) to use.  Normally this is an internal +implementation detail and the default (\f(CW\*(C`wallet\*(C'\fR) should be fine.  It may +sometimes be useful to use a different prefix for testing a different +version of the wallet code on the server.  The \fB\-c\fR command-line option +overrides this setting. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery <eagle@eyrie.org> +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2010, 2013 The Board of Trustees of the Leland Stanford Junior +University +.PP +Copying and distribution of this file, with or without modification, are +permitted in any medium without royalty provided the copyright notice and +this notice are preserved.  This file is offered as-is, without any +warranty. +.PP +SPDX-License-Identifier: \s-1FSFAP\s0 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fIkadmin\fR\|(8), \fIkinit\fR\|(1), \fIkrb5.conf\fR\|(5), \fIremctl\fR\|(1), \fIremctld\fR\|(8), \fIwallet\fR\|(1) +.PP +This program is part of the wallet system.  The current version is available +from <https://www.eyrie.org/~eagle/software/wallet/>. +.PP +\&\fBwallet-rekey\fR uses the remctl protocol.  For more information about +remctl, see <https://www.eyrie.org/~eagle/software/remctl/>. diff --git a/client/wallet.1 b/client/wallet.1 new file mode 100644 index 0000000..449cc9e --- /dev/null +++ b/client/wallet.1 @@ -0,0 +1,574 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings.  \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote.  \*(C+ will +.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and +.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +.    ds -- \(*W- +.    ds PI pi +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch +.    ds L" "" +.    ds R" "" +.    ds C` "" +.    ds C' "" +'br\} +.el\{\ +.    ds -- \|\(em\| +.    ds PI \(*p +.    ds L" `` +.    ds R" '' +.    ds C` +.    ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el       .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD.  Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +.    de IX +.    tm Index:\\$1\t\\n%\t"\\$2" +.. +.    if !\nF==2 \{\ +.        nr % 0 +.        nr F 2 +.    \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear.  Run.  Save yourself.  No user-serviceable parts. +.    \" fudge factors for nroff and troff +.if n \{\ +.    ds #H 0 +.    ds #V .8m +.    ds #F .3m +.    ds #[ \f1 +.    ds #] \fP +.\} +.if t \{\ +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m) +.    ds #V .6m +.    ds #F 0 +.    ds #[ \& +.    ds #] \& +.\} +.    \" simple accents for nroff and troff +.if n \{\ +.    ds ' \& +.    ds ` \& +.    ds ^ \& +.    ds , \& +.    ds ~ ~ +.    ds / +.\} +.if t \{\ +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +.    \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.    \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +.    \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +.    ds : e +.    ds 8 ss +.    ds o a +.    ds d- d\h'-1'\(ga +.    ds D- D\h'-1'\(hy +.    ds th \o'bp' +.    ds Th \o'LP' +.    ds ae ae +.    ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "WALLET 1" +.TH WALLET 1 "2018-06-03" "1.4" "wallet" +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +wallet \- Client for retrieving secure data from a central server +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBwallet\fR [\fB\-hv\fR] [\fB\-c\fR \fIcommand\fR] [\fB\-f\fR \fIfile\fR] +    [\fB\-k\fR \fIprincipal\fR] [\fB\-p\fR \fIport\fR] [\fB\-s\fR\ \fIserver\fR] +    [\fB\-S\fR \fIsrvtab\fR] [\fB\-u\fR \fIprincipal\fR] \fIcommand\fR [\fIarg\fR ...] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBwallet\fR is a client for the wallet system, which stores or creates +secure information such as Kerberos keytabs, associates them with ACLs and +other metadata, and allows clients to view and download them.  This client +provides the user interface to the wallet system for both users and wallet +administrators. +.PP +The \fBwallet\fR command-line client takes a command and optional arguments +on the command line, authenticates to the wallet server using Kerberos, +and sends that command and arguments to server.  It then reads the results +and displays them to the user or stores them in a file.  The client itself +does not know which commands are valid and which aren't; apart from some +special handling of particular commands, it sends all commands to the +server to respond to appropriately.  This allows additional commands to be +added to the wallet system without changing all of the clients. +.PP +The primary commands of the wallet system are \f(CW\*(C`get\*(C'\fR, which retrieves some +secure data from the wallet, \f(CW\*(C`store\*(C'\fR, which stores some secure data in +the wallet, and \f(CW\*(C`show\*(C'\fR, which stores the metadata about an object stored +in the wallet.  Each object in the wallet has a type, which determines +what data the object represents and may determine special handling when +downloading or storing that object, and a name.  For example, a wallet +object for the \f(CW\*(C`host/example.com\*(C'\fR Kerberos keytab would have a type of +\&\f(CW\*(C`keytab\*(C'\fR and a name of \f(CW\*(C`host/example.com\*(C'\fR.  The meaning of the name is +specific to each type of object. +.PP +Most other wallet commands besides those three are only available to +wallet administrators.  The exception is attribute commands; see +\&\s-1ATTRIBUTES\s0.  The other commands allow setting ownership and ACLs on +objects, creating and destroying objects, creating and destroying ACLs, +and adding and removing entries from ACLs.  An \s-1ACL\s0 consists of one or more +entries, each of which is a scheme and an identifier.  A scheme specifies +a way of checking whether a user is authorized.  An identifier is some +data specific to the scheme that specifies which users are authorized. +For example, for the \f(CW\*(C`krb5\*(C'\fR scheme, the identifier is a principal name +and only that principal is authorized by that \s-1ACL\s0 entry. +.PP +To run the wallet command-line client, you must either already have a +Kerberos ticket or use the \fB\-u\fR option.  You can obtain a Kerberos ticket +with \fBkinit\fR and see your current Kerberos tickets with \fBklist\fR.  The +wallet client uses the remctl protocol to talk to the wallet server. +.SH "OPTIONS" +.IX Header "OPTIONS" +.IP "\fB\-c\fR \fIcommand\fR" 4 +.IX Item "-c command" +The command prefix (remctl type) to use.  Normally this is an internal +implementation detail and the default (\f(CW\*(C`wallet\*(C'\fR) should be fine.  It may +sometimes be useful to use a different prefix for testing a different +version of the wallet code on the server.  This option can also be set in +\&\fIkrb5.conf\fR; see \s-1CONFIGURATION\s0 below. +.IP "\fB\-f\fR \fIfile\fR" 4 +.IX Item "-f file" +This flag is only used in combination with the \f(CW\*(C`get\*(C'\fR and \f(CW\*(C`store\*(C'\fR +commands.  For \f(CW\*(C`get\*(C'\fR, rather than sending the secure data to standard +output (the default), the secure data will be stored in \fIfile\fR.  For +\&\f(CW\*(C`store\*(C'\fR, the data to be stored will be read from \fIfile\fR. +.Sp +With \f(CW\*(C`get\*(C'\fR, if the object being retrieved is not a keytab object, any +current file named \fIoutput\fR is renamed to \fI\fIoutout\fI.bak\fR before the new +file is created.  \fI\fIoutout\fI.new\fR is used as a temporary file and any +existing file with that name will be deleted. +.Sp +If the object being retrieved is a keytab object and the file \fIoutput\fR +already exists, the downloaded keys will be added to the existing keytab +file \fIoutput\fR.  Old keys are not removed; you may wish to run \f(CW\*(C`kadmin +ktremove\*(C'\fR or an equivalent later to clean up old keys.  \fI\fIoutput\fI.new\fR +is still used as a temporary file and any existing file with that name +will be deleted. +.IP "\fB\-k\fR \fIprincipal\fR" 4 +.IX Item "-k principal" +The service principal of the wallet server.  The default is to use the +\&\f(CW\*(C`host\*(C'\fR principal for the wallet server.  The principal chosen must match +one of the keys in the keytab used by \fBremctld\fR on the wallet server. +This option can also be set in \fIkrb5.conf\fR; see \s-1CONFIGURATION\s0 below. +.IP "\fB\-h\fR" 4 +.IX Item "-h" +Display a brief summary of options and exit.  All other valid options and +commands are ignored. +.IP "\fB\-p\fR \fIport\fR" 4 +.IX Item "-p port" +The port to connect to on the wallet server.  The default is the default +remctl port.  This option can also be set in \fIkrb5.conf\fR; see +\&\s-1CONFIGURATION\s0 below. +.IP "\fB\-S\fR \fIsrvtab\fR" 4 +.IX Item "-S srvtab" +This flag is only used in combination with the \f(CW\*(C`get\*(C'\fR command on a +\&\f(CW\*(C`keytab\*(C'\fR object, and must be used in conjunction with the \fB\-f\fR flag. +After the keytab is saved to the file specified by \fB\-f\fR, the \s-1DES\s0 key for +that principal will be extracted and written as a Kerberos v4 srvtab to +the file \fIsrvtab\fR.  Any existing contents of \fIsrvtab\fR will be +destroyed. +.Sp +The Kerberos v4 principal name will be generated from the Kerberos v5 +principal name using the \fIkrb5_524_conv_principal()\fR function of the +Kerberos libraries.  See its documentation for more information, but +briefly (and in the absence of special configuration), the Kerberos v4 +principal name will be the same as the Kerberos v5 principal name except +that the components are separated by \f(CW\*(C`.\*(C'\fR instead of \f(CW\*(C`/\*(C'\fR; the second +component is truncated after the first \f(CW\*(C`.\*(C'\fR if the first component is one +of the recognized host-based principals (generally \f(CW\*(C`host\*(C'\fR, \f(CW\*(C`imap\*(C'\fR, +\&\f(CW\*(C`pop\*(C'\fR, or \f(CW\*(C`smtp\*(C'\fR); and the first component is \f(CW\*(C`rcmd\*(C'\fR if the Kerberos v5 +principal component is \f(CW\*(C`host\*(C'\fR.  The principal name must not contain more +than two components. +.IP "\fB\-s\fR \fIserver\fR" 4 +.IX Item "-s server" +The wallet server to connect to.  The default may be set when compiling +the wallet client.  If it isn't, either \fB\-s\fR must be given or the server +must be set in \fIkrb5.conf\fR.  See \s-1CONFIGURATION\s0 below. +.IP "\fB\-u\fR \fIprincipal\fR" 4 +.IX Item "-u principal" +Rather than using the user's existing ticket cache for authentication, +authenticate as \fIprincipal\fR first and use those credentials for +authentication to the wallet server.  \fBwallet\fR will prompt for the +password for \fIprincipal\fR.  Non-password authentication methods such as +\&\s-1PKINIT\s0 aren't supported; to use those, run \fBkinit\fR first and use an +existing ticket cache. +.IP "\fB\-v\fR" 4 +.IX Item "-v" +Display the version of the \fBwallet\fR client and exit.  All other valid +options and commands are ignored. +.SH "COMMANDS" +.IX Header "COMMANDS" +As mentioned above, most commands are only available to wallet +administrators.  The exceptions are \f(CW\*(C`acl check\*(C'\fR, \f(CW\*(C`check\*(C'\fR, \f(CW\*(C`get\*(C'\fR, +\&\f(CW\*(C`store\*(C'\fR, \f(CW\*(C`show\*(C'\fR, \f(CW\*(C`destroy\*(C'\fR, \f(CW\*(C`flag clear\*(C'\fR, \f(CW\*(C`flag set\*(C'\fR, \f(CW\*(C`getattr\*(C'\fR, +\&\f(CW\*(C`setattr\*(C'\fR, and \f(CW\*(C`history\*(C'\fR.  \f(CW\*(C`acl check\*(C'\fR and \f(CW\*(C`check\*(C'\fR can be run by +anyone.  All of the rest of those commands have their own ACLs except +\&\f(CW\*(C`getattr\*(C'\fR and \f(CW\*(C`history\*(C'\fR, which use the \f(CW\*(C`show\*(C'\fR \s-1ACL,\s0 \f(CW\*(C`setattr\*(C'\fR, which +uses the \f(CW\*(C`store\*(C'\fR \s-1ACL,\s0 and \f(CW\*(C`comment\*(C'\fR, which uses the owner or \f(CW\*(C`show\*(C'\fR \s-1ACL\s0 +depending on whether one is setting or retrieving the comment.  If the +appropriate \s-1ACL\s0 is set, it alone is checked to see if the user has access. +Otherwise, \f(CW\*(C`destroy\*(C'\fR, \f(CW\*(C`get\*(C'\fR, \f(CW\*(C`store\*(C'\fR, \f(CW\*(C`show\*(C'\fR, \f(CW\*(C`getattr\*(C'\fR, \f(CW\*(C`setattr\*(C'\fR, +\&\f(CW\*(C`history\*(C'\fR, and \f(CW\*(C`comment\*(C'\fR access is permitted if the user is authorized +by the owner \s-1ACL\s0 of the object. +.PP +Administrators can run any command on any object or \s-1ACL\s0 except for \f(CW\*(C`get\*(C'\fR +and \f(CW\*(C`store\*(C'\fR.  For \f(CW\*(C`get\*(C'\fR and \f(CW\*(C`store\*(C'\fR, they must still be authorized by +either the appropriate specific \s-1ACL\s0 or the owner \s-1ACL.\s0 +.PP +If the locked flag is set on an object, no commands can be run on that +object that change data except the \f(CW\*(C`flags\*(C'\fR commands, nor can the \f(CW\*(C`get\*(C'\fR +command be used on that object.  \f(CW\*(C`show\*(C'\fR, \f(CW\*(C`history\*(C'\fR, \f(CW\*(C`getacl\*(C'\fR, +\&\f(CW\*(C`getattr\*(C'\fR, and \f(CW\*(C`owner\*(C'\fR, \f(CW\*(C`expires\*(C'\fR, or \f(CW\*(C`comment\*(C'\fR without an argument +can still be used on that object. +.PP +For more information on attributes, see \s-1ATTRIBUTES\s0. +.IP "acl add <id> <scheme> <identifier>" 4 +.IX Item "acl add <id> <scheme> <identifier>" +Add an entry with <scheme> and <identifier> to the \s-1ACL\s0 <id>.  <id> may be +either the name of an \s-1ACL\s0 or its numeric identifier. +.IP "acl check <id>" 4 +.IX Item "acl check <id>" +Check whether an \s-1ACL\s0 with the \s-1ID\s0 <id> already exists.  If it does, prints +\&\f(CW\*(C`yes\*(C'\fR; if not, prints \f(CW\*(C`no\*(C'\fR. +.IP "acl create <name>" 4 +.IX Item "acl create <name>" +Create a new, empty \s-1ACL\s0 with name <name>.  When setting an \s-1ACL\s0 on an +object with a set of entries that don't match an existing \s-1ACL,\s0 first +create a new \s-1ACL\s0 with \f(CW\*(C`acl create\*(C'\fR, add the appropriate entries to it +with \f(CW\*(C`acl add\*(C'\fR, and then set the \s-1ACL\s0 on an object with the \f(CW\*(C`owner\*(C'\fR or +\&\f(CW\*(C`setacl\*(C'\fR commands. +.IP "acl destroy <id>" 4 +.IX Item "acl destroy <id>" +Destroy the \s-1ACL\s0 <id>.  This \s-1ACL\s0 must no longer be referenced by any object +or the \s-1ACL\s0 destruction will fail.  The special \s-1ACL\s0 named \f(CW\*(C`ADMIN\*(C'\fR cannot +be destroyed. +.IP "acl history <id>" 4 +.IX Item "acl history <id>" +Display the history of the \s-1ACL\s0 <id>.  Each change to the \s-1ACL\s0 (not +including changes to the name of the \s-1ACL\s0) will be represented by two +lines.  The first line will have a timestamp of the change followed by a +description of the change, and the second line will give the user who made +the change and the host from which the change was made. +.IP "acl remove <id> <scheme> <identifier>" 4 +.IX Item "acl remove <id> <scheme> <identifier>" +Remove the entry with <scheme> and <identifier> from the \s-1ACL\s0 <id>.  <id> +may be either the name of an \s-1ACL\s0 or its numeric identifier.  The last +entry in the special \s-1ACL\s0 \f(CW\*(C`ADMIN\*(C'\fR cannot be removed to protect against +accidental lockout, but administrators can remove themselves from the +\&\f(CW\*(C`ADMIN\*(C'\fR \s-1ACL\s0 and can leave only a non-functioning entry on the \s-1ACL.\s0  Use +caution when removing entries from the \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL.\s0 +.IP "acl rename <id> <name>" 4 +.IX Item "acl rename <id> <name>" +Renames the \s-1ACL\s0 identified by <id> to <name>.  This changes the +human-readable name, not the underlying numeric \s-1ID,\s0 so the \s-1ACL\s0's +associations with objects will be unchanged.  The \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL\s0 may not be +renamed.  <id> may be either the current name or the numeric \s-1ID.\s0  <name> +must not be all-numeric.  To rename an \s-1ACL,\s0 the current user must be +authorized by the \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL.\s0 +.IP "acl replace <id> <new\-id>" 4 +.IX Item "acl replace <id> <new-id>" +Find any objects owned by <id>, and then change their ownership to +<new_id> instead.  <new\-id> should already exist, and may already have +some objects owned by it.  <id> is not deleted afterwards, though in +most cases that is probably your next step.  The \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL\s0 may not be +replaced from.  <id> and <new\-id> may be either the current name or the +numeric \s-1ID.\s0  To replace an \s-1ACL,\s0 the current user must be authorized by +the \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL.\s0 +.IP "acl show <id>" 4 +.IX Item "acl show <id>" +Display the name, numeric \s-1ID,\s0 and entries of the \s-1ACL\s0 <id>. +.IP "autocreate <type> <name>" 4 +.IX Item "autocreate <type> <name>" +Create a new object of type <type> with name <name>.  The user must be +listed in the default \s-1ACL\s0 for an object with that type and name, and the +object will be created with that default \s-1ACL\s0 set as the object owner. +.Sp +Normally, there's no need to run this command directly.  It's +automatically run when trying to get or store an object that doesn't +already exist. +.IP "check <type> <name>" 4 +.IX Item "check <type> <name>" +Check whether an object of type <type> and name <name> already exists.  If +it does, prints \f(CW\*(C`yes\*(C'\fR; if not, prints \f(CW\*(C`no\*(C'\fR. +.IP "comment <type> <name> [<comment>]" 4 +.IX Item "comment <type> <name> [<comment>]" +If <comment> is not given, displays the current comment for the object +identified by <type> and <name>, or \f(CW\*(C`No comment set\*(C'\fR if none is set. +.Sp +If <comment> is given, sets the comment on the object identified by +<type> and <name> to <comment>.  If <comment> is the empty string, clears +the comment. +.IP "create <type> <name>" 4 +.IX Item "create <type> <name>" +Create a new object of type <type> with name <name>.  With some backends, +this will trigger creation of an entry in an external system as well. +The new object will have no ACLs and no owner set, so usually the +administrator will want to then set an owner with \f(CW\*(C`owner\*(C'\fR so that the +object will be usable. +.IP "destroy <type> <name>" 4 +.IX Item "destroy <type> <name>" +Destroy the object identified by <type> and <name>.  With some backends, +this will trigger destruction of an object in an external system as well. +.IP "expires <type> <name> [<expires>]" 4 +.IX Item "expires <type> <name> [<expires>]" +If <expires> is not given, displays the current expiration of the object +identified by <type> and <name>, or \f(CW\*(C`No expiration set\*(C'\fR if none is set. +The expiration will be displayed in seconds since epoch. +.Sp +If <expires> is given, sets the expiration on the object identified by +<type> and <name> to that date (and optionally time).  <expires> must be +in some format that can be parsed by the Perl Date::Parse module.  Most +common formats are supported; if in doubt, use \f(CW\*(C`YYYY\-MM\-DD HH:MM:SS\*(C'\fR.  If +<expires> is the empty string, clears the expiration of the object. +.Sp +Currently, the expiration of an object is not used. +.IP "flag clear <type> <name> <flag>" 4 +.IX Item "flag clear <type> <name> <flag>" +Clears the flag <flag> on the object identified by <type> and <name>. +.IP "flag set <type> <name> <flag>" 4 +.IX Item "flag set <type> <name> <flag>" +Sets the flag <flag> on the object identified by <type> and <name>. +Recognized flags are \f(CW\*(C`locked\*(C'\fR, which prevents all further actions on that +object until the flag is cleared, and \f(CW\*(C`unchanging\*(C'\fR, which tells the object +backend to not generate new data on get but instead return the same data as +previously returned.  The \f(CW\*(C`unchanging\*(C'\fR flag is not meaningful for objects +that do not generate new data on the fly. +.IP "get <type> <name>" 4 +.IX Item "get <type> <name>" +Prints to standard output the data associated with the object identified +by <type> and <name>, or stores it in a file if the \fB\-f\fR option was +given.  This may trigger generation of new data and invalidate old data +for that object depending on the object type. +.Sp +If an object with type <type> and name <name> does not already exist when +this command is issued (as checked with the check interface), \fBwallet\fR +will attempt to automatically create it (using autocreate). +.IP "getacl <type> <name> <acl>" 4 +.IX Item "getacl <type> <name> <acl>" +Prints the \s-1ACL\s0 <acl>, which must be one of \f(CW\*(C`get\*(C'\fR, \f(CW\*(C`store\*(C'\fR, \f(CW\*(C`show\*(C'\fR, +\&\f(CW\*(C`destroy\*(C'\fR, or \f(CW\*(C`flags\*(C'\fR, for the object identified by <type> and <name>. +Prints \f(CW\*(C`No ACL set\*(C'\fR if that \s-1ACL\s0 isn't set on that object.  Remember that +if the \f(CW\*(C`get\*(C'\fR, \f(CW\*(C`store\*(C'\fR, or \f(CW\*(C`show\*(C'\fR ACLs aren't set, authorization falls +back to checking the owner \s-1ACL.\s0  See the \f(CW\*(C`owner\*(C'\fR command for displaying +or setting it. +.IP "getattr <type> <name> <attr>" 4 +.IX Item "getattr <type> <name> <attr>" +Prints the object attribute <attr> for the object identified by <type> and +<name>.  Attributes are used to store backend-specific information for a +particular object type, and <attr> must be an attribute type known to the +underlying object implementation.  The attribute values, if any, are +printed one per line.  If the attribute is not set on this object, nothing +is printed. +.IP "history <type> <name>" 4 +.IX Item "history <type> <name>" +Displays the history for the object identified by <type> and <name>. +This human-readable output will have two lines for each action that +changes the object, plus for any get action.  The first line has the +timestamp of the action and the action, and the second line gives the user +who performed the action and the host from which they performed it. +.IP "owner <type> <name> [<owner>]" 4 +.IX Item "owner <type> <name> [<owner>]" +If <owner> is not given, displays the current owner \s-1ACL\s0 of the object +identified by <type> and <name>, or \f(CW\*(C`No owner set\*(C'\fR if none is set.  The +result will be the name of an \s-1ACL.\s0 +.Sp +If <owner> is given, sets the owner of the object identified by <type> and +<name> to <owner>.  If <owner> is the empty string, clears the owner of +the object. +.IP "setacl <type> <name> <acl> <id>" 4 +.IX Item "setacl <type> <name> <acl> <id>" +Sets the \s-1ACL\s0 <acl>, which must be one of \f(CW\*(C`get\*(C'\fR, \f(CW\*(C`store\*(C'\fR, \f(CW\*(C`show\*(C'\fR, +\&\f(CW\*(C`destroy\*(C'\fR, or \f(CW\*(C`flags\*(C'\fR, to <id> on the object identified by <type> and +<name>.  If <id> is the empty string, clears that \s-1ACL\s0 on the object. +.IP "setattr <type> <name> <attr> <value> [<value> ...]" 4 +.IX Item "setattr <type> <name> <attr> <value> [<value> ...]" +Sets the object attribute <attr> for the object identified by <type> and +<name>.  Attributes are used to store backend-specific information for a +particular object type, and <attr> must be an attribute type known to the +underlying object implementation.  To clear the attribute for this object, +pass in a <value> of the empty string (\f(CW\*(Aq\*(Aq\fR). +.IP "show <type> <name>" 4 +.IX Item "show <type> <name>" +Displays the current object metadata for the object identified by <type> +and <name>.  This human-readable output will show the object type and +name, the owner, any specific ACLs set on the object, the expiration if +any, and the user, remote host, and time when the object was created, last +stored, and last downloaded. +.IP "store <type> <name> [<data>]" 4 +.IX Item "store <type> <name> [<data>]" +Stores <data> for the object identified by <type> and <name> for later +retrieval with \f(CW\*(C`get\*(C'\fR.  Not all object types support this.  If <data> is +not specified on the command line, it will be read from the file specified +with \fB\-f\fR (if given) or from standard input. +.Sp +If an object with type <type> and name <name> does not already exist when +this command is issued (as checked with the check interface), \fBwallet\fR +will attempt to automatically create it (using autocreate). +.IP "update <type> <name>" 4 +.IX Item "update <type> <name>" +Prints to standard output the data associated with the object identified +by <type> and <name>, or stores it in a file if the \fB\-f\fR option was +given.  This will generate new data in the object, and only works for  +objects that support generating new data automatically, such as keytabs or +passwords.  Types that do not support generating new data will fail and +direct you to use get instead. +.Sp +If an object with type <type> and name <name> does not already exist when +this command is issued (as checked with the check interface), \fBwallet\fR +will attempt to automatically create it (using autocreate). +.SH "ATTRIBUTES" +.IX Header "ATTRIBUTES" +Object attributes store additional properties and configuration +information for objects stored in the wallet.  They are displayed as part +of the object data with \f(CW\*(C`show\*(C'\fR, retrieved with \f(CW\*(C`getattr\*(C'\fR, and set with +\&\f(CW\*(C`setattr\*(C'\fR. +.SS "Keytab Attributes" +.IX Subsection "Keytab Attributes" +Keytab objects support the following attributes: +.IP "enctypes" 4 +.IX Item "enctypes" +Restricts the generated keytab to a specific set of encryption types.  The +values of this attribute must be enctype strings recognized by Kerberos +(strings like \f(CW\*(C`aes256\-cts\-hmac\-sha1\-96\*(C'\fR or \f(CW\*(C`des\-cbc\-crc\*(C'\fR).  Note that +the salt should not be included; since the salt is irrelevant for keytab +keys, it will always be set to \f(CW\*(C`normal\*(C'\fR by the wallet. +.Sp +If this attribute is set, the specified enctype list will be passed to ktadd +when \fIget()\fR is called for that keytab.  If it is not set, the default set in +the \s-1KDC\s0 will be used. +.Sp +This attribute is ignored if the \f(CW\*(C`unchanging\*(C'\fR flag is set on a keytab. +Keytabs retrieved with \f(CW\*(C`unchanging\*(C'\fR set will contain all keys present in +the \s-1KDC\s0 for that Kerberos principal and therefore may contain different +enctypes than those requested by this attribute. +.SH "CONFIGURATION" +.IX Header "CONFIGURATION" +\&\fBwallet\fR can optionally be configured in the system \fIkrb5.conf\fR.  It +will read the default \fIkrb5.conf\fR file for the Kerberos libraries with +which it was compiled.  To set an option, put the option in the +[appdefaults] section.  \fBwallet\fR will look for options either at the top +level of the [appdefaults] section or in a subsection named \f(CW\*(C`wallet\*(C'\fR. +For example, the following fragment of a \fIkrb5.conf\fR file would set the +default port to 4373 and the default server to \f(CW\*(C`wallet.example.org\*(C'\fR. +.PP +.Vb 5 +\&    [appdefaults] +\&        wallet_port = 4373 +\&        wallet = { +\&            wallet_server = wallet.example.org +\&        } +.Ve +.PP +The supported options are: +.IP "wallet_principal" 4 +.IX Item "wallet_principal" +The service principal of the wallet server.  The default is to use the +\&\f(CW\*(C`host\*(C'\fR principal for the wallet server.  The principal chosen must match +one of the keys in the keytab used by \fBremctld\fR on the wallet server. +The \fB\-k\fR command-line option overrides this setting. +.IP "wallet_port" 4 +.IX Item "wallet_port" +The port to connect to on the wallet server.  The default is the default +remctl port.  The \fB\-p\fR command-line option overrides this setting. +.IP "wallet_server" 4 +.IX Item "wallet_server" +The wallet server to connect to.  The \fB\-s\fR command-line option overrides +this setting.  The default may be set when compiling the wallet client. +If it isn't, either \fB\-s\fR must be given or this parameter must be present +in in \fIkrb5.conf\fR. +.IP "wallet_type" 4 +.IX Item "wallet_type" +The command prefix (remctl type) to use.  Normally this is an internal +implementation detail and the default (\f(CW\*(C`wallet\*(C'\fR) should be fine.  It may +sometimes be useful to use a different prefix for testing a different +version of the wallet code on the server.  The \fB\-c\fR command-line option +overrides this setting. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery <eagle@eyrie.org> +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2007\-2008, 2010\-2013 The Board of Trustees of the Leland +Stanford Junior University +.PP +Copying and distribution of this file, with or without modification, are +permitted in any medium without royalty provided the copyright notice and +this notice are preserved.  This file is offered as-is, without any +warranty. +.PP +SPDX-License-Identifier: \s-1FSFAP\s0 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fIkadmin\fR\|(8), \fIkinit\fR\|(1), \fIkrb5.conf\fR\|(5), \fIremctl\fR\|(1), \fIremctld\fR\|(8) +.PP +This program is part of the wallet system.  The current version is available +from <https://www.eyrie.org/~eagle/software/wallet/>. +.PP +\&\fBwallet\fR uses the remctl protocol.  For more information about remctl, +see <https://www.eyrie.org/~eagle/software/remctl/>. diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..4f98d04 --- /dev/null +++ b/config.h.in @@ -0,0 +1,258 @@ +/* config.h.in.  Generated from configure.ac by autoheader.  */ + +/* Define to 1 if you have the `asprintf' function. */ +#undef HAVE_ASPRINTF + +/* Define if the compiler supports C99 variadic macros. */ +#undef HAVE_C99_VAMACROS + +/* Define to 1 if you have the declaration of `krb5_kt_free_entry', and to 0 +   if you don't. */ +#undef HAVE_DECL_KRB5_KT_FREE_ENTRY + +/* Define to 1 if you have the declaration of `snprintf', and to 0 if you +   don't. */ +#undef HAVE_DECL_SNPRINTF + +/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you +   don't. */ +#undef HAVE_DECL_VSNPRINTF + +/* Define to 1 if you have the <et/com_err.h> header file. */ +#undef HAVE_ET_COM_ERR_H + +/* Define if the compiler supports GNU-style variadic macros. */ +#undef HAVE_GNU_VAMACROS + +/* Define to 1 if you have the <gssapi/gssapi.h> header file. */ +#undef HAVE_GSSAPI_GSSAPI_H + +/* Define to 1 if you have the <gssapi/gssapi_krb5.h> header file. */ +#undef HAVE_GSSAPI_GSSAPI_KRB5_H + +/* Define to 1 if the GSS-API library uses RFC-compliant OIDs. */ +#undef HAVE_GSS_RFC_OIDS + +/* Define to 1 if you have the <ibm_svc/krb5_svc.h> header file. */ +#undef HAVE_IBM_SVC_KRB5_SVC_H + +/* Define to 1 if you have the <inttypes.h> header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the <k5profile.h> header file. */ +#undef HAVE_K5PROFILE_H + +/* Define to 1 if you have the <kerberosv5/com_err.h> header file. */ +#undef HAVE_KERBEROSV5_COM_ERR_H + +/* Define to 1 if you have the <kerberosv5/krb5.h> header file. */ +#undef HAVE_KERBEROSV5_KRB5_H + +/* Define to enable Kerberos features. */ +#undef HAVE_KRB5 + +/* Define to 1 if you have the `krb5_appdefault_string' function. */ +#undef HAVE_KRB5_APPDEFAULT_STRING + +/* Define to 1 if you have the `krb5_free_default_realm' function. */ +#undef HAVE_KRB5_FREE_DEFAULT_REALM + +/* Define to 1 if you have the `krb5_free_error_message' function. */ +#undef HAVE_KRB5_FREE_ERROR_MESSAGE + +/* Define to 1 if you have the `krb5_get_error_message' function. */ +#undef HAVE_KRB5_GET_ERROR_MESSAGE + +/* Define to 1 if you have the `krb5_get_error_string' function. */ +#undef HAVE_KRB5_GET_ERROR_STRING + +/* Define to 1 if you have the `krb5_get_err_txt' function. */ +#undef HAVE_KRB5_GET_ERR_TXT + +/* Define to 1 if you have the `krb5_get_init_creds_opt_alloc' function. */ +#undef HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC + +/* Define to 1 if you have the `krb5_get_init_creds_opt_free' function. */ +#undef HAVE_KRB5_GET_INIT_CREDS_OPT_FREE + +/* Define if krb5_get_init_creds_opt_free takes two arguments. */ +#undef HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS + +/* Define to 1 if you have the `krb5_get_init_creds_opt_set_default_flags' +   function. */ +#undef HAVE_KRB5_GET_INIT_CREDS_OPT_SET_DEFAULT_FLAGS + +/* Define to 1 if you have the `krb5_get_profile' function. */ +#undef HAVE_KRB5_GET_PROFILE + +/* Define to 1 if you have the <krb5.h> header file. */ +#undef HAVE_KRB5_H + +/* Define to 1 if `keyblock' is a member of `krb5_keytab_entry'. */ +#undef HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK + +/* Define to 1 if you have the <krb5/krb5.h> header file. */ +#undef HAVE_KRB5_KRB5_H + +/* Define to 1 if you have the `krb5_principal_get_realm' function. */ +#undef HAVE_KRB5_PRINCIPAL_GET_REALM + +/* Define to 1 if the system has the type `krb5_realm'. */ +#undef HAVE_KRB5_REALM + +/* Define to 1 if you have the `krb5_svc_get_msg' function. */ +#undef HAVE_KRB5_SVC_GET_MSG + +/* Define to 1 if the system has the type 'long long int'. */ +#undef HAVE_LONG_LONG_INT + +/* Define to 1 if you have the <memory.h> header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the `mkstemp' function. */ +#undef HAVE_MKSTEMP + +/* Define to 1 if you have the <profile.h> header file. */ +#undef HAVE_PROFILE_H + +/* Define to 1 if you have the `reallocarray' function. */ +#undef HAVE_REALLOCARRAY + +/* Define to enable remctl features. */ +#undef HAVE_REMCTL + +/* Define to 1 if you have the `setenv' function. */ +#undef HAVE_SETENV + +/* Define to 1 if you have the `setrlimit' function. */ +#undef HAVE_SETRLIMIT + +/* Define if your system has a working snprintf function. */ +#undef HAVE_SNPRINTF + +/* Define to 1 if the system has the type `ssize_t'. */ +#undef HAVE_SSIZE_T + +/* Define to 1 if stdbool.h conforms to C99. */ +#undef HAVE_STDBOOL_H + +/* Define to 1 if you have the <stdint.h> header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the <stdlib.h> header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the <strings.h> header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the <string.h> header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the <syslog.h> header file. */ +#undef HAVE_SYSLOG_H + +/* Define to 1 if you have the <sys/bitypes.h> header file. */ +#undef HAVE_SYS_BITYPES_H + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the <sys/time.h> header file. */ +#undef HAVE_SYS_TIME_H + +/* Define to 1 if you have the <sys/types.h> header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the <sys/uio.h> header file. */ +#undef HAVE_SYS_UIO_H + +/* Define to 1 if you have the <unistd.h> header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if the system has the type 'unsigned long long int'. */ +#undef HAVE_UNSIGNED_LONG_LONG_INT + +/* Define to 1 if the system has the type `_Bool'. */ +#undef HAVE__BOOL + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to the full path to remctld to run remctl tests. */ +#undef PATH_REMCTLD + +/* The size of `long', as computed by sizeof. */ +#undef SIZEOF_LONG + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Enable extensions on AIX 3, Interix.  */ +#ifndef _ALL_SOURCE +# undef _ALL_SOURCE +#endif +/* Enable GNU extensions on systems that have them.  */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif +/* Enable threading extensions on Solaris.  */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif +/* Enable extensions on HP NonStop.  */ +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE +#endif +/* Enable general extensions on Solaris.  */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif + + +/* Version number of package */ +#undef VERSION + +/* Define to the default server port. */ +#undef WALLET_PORT + +/* Define to the default server host name. */ +#undef WALLET_SERVER + +/* Enable large inode numbers on Mac OS X 10.5.  */ +#ifndef _DARWIN_USE_64_BIT_INODE +# define _DARWIN_USE_64_BIT_INODE 1 +#endif + +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + +/* Define to 1 if on MINIX. */ +#undef _MINIX + +/* Define to 2 if the system does not provide POSIX.1 features except with +   this defined. */ +#undef _POSIX_1_SOURCE + +/* Define to 1 if you need to in order for `stat' and other things to work. */ +#undef _POSIX_SOURCE diff --git a/configure b/configure new file mode 100755 index 0000000..65e440b --- /dev/null +++ b/configure @@ -0,0 +1,16146 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.69 for wallet 1.4. +# +# Report bugs to <eagle@eyrie.org>. +# +# +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +  emulate sh +  NULLCMD=: +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which +  # is contrary to our usage.  Disable this feature. +  alias -g '${1+"$@"}'='"$@"' +  setopt NO_GLOB_SUBST +else +  case `(set -o) 2>/dev/null` in #( +  *posix*) : +    set -o posix ;; #( +  *) : +     ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then +  as_echo='print -r --' +  as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +  as_echo='printf %s\n' +  as_echo_n='printf %s' +else +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' +    as_echo_n='/usr/ucb/echo -n' +  else +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"' +    as_echo_n_body='eval +      arg=$1; +      case $arg in #( +      *"$as_nl"*) +	expr "X$arg" : "X\\(.*\\)$as_nl"; +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; +      esac; +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" +    ' +    export as_echo_n_body +    as_echo_n='sh -c $as_echo_n_body as_echo' +  fi +  export as_echo_body +  as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then +  PATH_SEPARATOR=: +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || +      PATH_SEPARATOR=';' +  } +fi + + +# IFS +# We need space, tab and new line, in precisely that order.  Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" ""	$as_nl" + +# Find who we are.  Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( +  *[\\/]* ) as_myself=$0 ;; +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +  done +IFS=$as_save_IFS + +     ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then +  as_myself=$0 +fi +if test ! -f "$as_myself"; then +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 +  exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there.  '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# Use a proper internal environment variable to ensure we don't fall +  # into an infinite loop, continuously re-executing ourselves. +  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then +    _as_can_reexec=no; export _as_can_reexec; +    # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( +  *v*x* | *x*v* ) as_opts=-vx ;; +  *v* ) as_opts=-v ;; +  *x* ) as_opts=-x ;; +  * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 +  fi +  # We don't want this to propagate to other subprocesses. +          { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then +  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : +  emulate sh +  NULLCMD=: +  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which +  # is contrary to our usage.  Disable this feature. +  alias -g '\${1+\"\$@\"}'='\"\$@\"' +  setopt NO_GLOB_SUBST +else +  case \`(set -o) 2>/dev/null\` in #( +  *posix*) : +    set -o posix ;; #( +  *) : +     ;; +esac +fi +" +  as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else +  exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" +  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO +  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO +  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && +  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1" +  if (eval "$as_required") 2>/dev/null; then : +  as_have_required=yes +else +  as_have_required=no +fi +  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +  as_found=: +  case $as_dir in #( +	 /*) +	   for as_base in sh bash ksh sh5; do +	     # Try only shells that exist, to save several forks. +	     as_shell=$as_dir/$as_base +	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } && +		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : +  CONFIG_SHELL=$as_shell as_have_required=yes +		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : +  break 2 +fi +fi +	   done;; +       esac +  as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : +  CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + +      if test "x$CONFIG_SHELL" != x; then : +  export CONFIG_SHELL +             # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( +  *v*x* | *x*v* ) as_opts=-vx ;; +  *v* ) as_opts=-v ;; +  *x* ) as_opts=-x ;; +  * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + +    if test x$as_have_required = xno; then : +  $as_echo "$0: This script requires a shell more modern than all" +  $as_echo "$0: the shells that I found on your system." +  if test x${ZSH_VERSION+set} = xset ; then +    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" +    $as_echo "$0: be upgraded to zsh 4.3.4 or later." +  else +    $as_echo "$0: Please tell bug-autoconf@gnu.org and eagle@eyrie.org +$0: about your system, including any error possibly output +$0: before this message. Then install a modern shell, or +$0: manually run the script under such a shell if you do +$0: have one." +  fi +  exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ +  { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ +  return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ +  set +e +  as_fn_set_status $1 +  exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + +  case $as_dir in #( +  -*) as_dir=./$as_dir;; +  esac +  test -d "$as_dir" || eval $as_mkdir_p || { +    as_dirs= +    while :; do +      case $as_dir in #( +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( +      *) as_qdir=$as_dir;; +      esac +      as_dirs="'$as_qdir' $as_dirs" +      as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +	 X"$as_dir" : 'X\(//\)[^/]' \| \ +	 X"$as_dir" : 'X\(//\)$' \| \ +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)[^/].*/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'` +      test -d "$as_dir" && break +    done +    test -z "$as_dirs" || eval "mkdir $as_dirs" +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ +  test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +  eval 'as_fn_append () +  { +    eval $1+=\$2 +  }' +else +  as_fn_append () +  { +    eval $1=\$$1\$2 +  } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +  eval 'as_fn_arith () +  { +    as_val=$(( $* )) +  }' +else +  as_fn_arith () +  { +    as_val=`expr "$@" || test $? -eq 1` +  } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ +  as_status=$1; test $as_status -eq 0 && as_status=1 +  if test "$4"; then +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 +  fi +  $as_echo "$as_me: error: $2" >&2 +  as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && +   test "X`expr 00001 : '.*\(...\)'`" = X001; then +  as_expr=expr +else +  as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then +  as_basename=basename +else +  as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then +  as_dirname=dirname +else +  as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ +	 X"$0" : 'X\(//\)$' \| \ +	 X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | +    sed '/^.*\/\([^/][^/]*\)\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\/\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\/\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + +  as_lineno_1=$LINENO as_lineno_1a=$LINENO +  as_lineno_2=$LINENO as_lineno_2a=$LINENO +  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && +  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { +  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) +  sed -n ' +    p +    /[$]LINENO/= +  ' <$as_myself | +    sed ' +      s/[$]LINENO.*/&-/ +      t lineno +      b +      :lineno +      N +      :loop +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ +      t loop +      s/-\n.*// +    ' >$as_me.lineno && +  chmod +x "$as_me.lineno" || +    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + +  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have +  # already done that, so ensure we don't try to do so again and fall +  # in an infinite loop.  This has already happened in practice. +  _as_can_reexec=no; export _as_can_reexec +  # Don't try to exec as it changes $[0], causing all sort of problems +  # (the dirname of $[0] is not the place where we might find the +  # original and so on.  Autoconf is especially sensitive to this). +  . "./$as_me.lineno" +  # Exit status is that of the last command. +  exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) +  case `echo 'xy\c'` in +  *c*) ECHO_T='	';;	# ECHO_T is single tab character. +  xy)  ECHO_C='\c';; +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null +       ECHO_T='	';; +  esac;; +*) +  ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then +  rm -f conf$$.dir/conf$$.file +else +  rm -f conf$$.dir +  mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then +  if ln -s conf$$.file conf$$ 2>/dev/null; then +    as_ln_s='ln -s' +    # ... but there are two gotchas: +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +    # In both cases, we have to default to `cp -pR'. +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +      as_ln_s='cp -pR' +  elif ln conf$$.file conf$$ 2>/dev/null; then +    as_ln_s=ln +  else +    as_ln_s='cp -pR' +  fi +else +  as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then +  as_mkdir_p='mkdir -p "$as_dir"' +else +  test -d ./-p && rmdir ./-p +  as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 </dev/null +exec 6>&1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='wallet' +PACKAGE_TARNAME='wallet' +PACKAGE_VERSION='1.4' +PACKAGE_STRING='wallet 1.4' +PACKAGE_BUGREPORT='eagle@eyrie.org' +PACKAGE_URL='' + +ac_config_libobj_dir=portable +# Factoring default headers for most tests. +ac_includes_default="\ +#include <stdio.h> +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> +#endif +#ifdef STDC_HEADERS +# include <stdlib.h> +# include <stddef.h> +#else +# ifdef HAVE_STDLIB_H +#  include <stdlib.h> +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +#  include <memory.h> +# endif +# include <string.h> +#endif +#ifdef HAVE_STRINGS_H +# include <strings.h> +#endif +#ifdef HAVE_INTTYPES_H +# include <inttypes.h> +#endif +#ifdef HAVE_STDINT_H +# include <stdint.h> +#endif +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif" + +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +REMCTLD +LIBOBJS +KRB5_USES_COM_ERR_FALSE +KRB5_USES_COM_ERR_TRUE +KRB5_LIBS +KRB5_LDFLAGS +KRB5_CPPFLAGS_GCC +KRB5_CPPFLAGS +PATH_KRB5_CONFIG +GSSAPI_LIBS +GSSAPI_LDFLAGS +GSSAPI_CPPFLAGS +REMCTL_LIBS +REMCTL_LDFLAGS +REMCTL_CPPFLAGS +PERL +RANLIB +ac_ct_AR +AR +WARNINGS_CFLAGS +EGREP +GREP +CPP +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +am__nodep +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +MAINT +MAINTAINER_MODE_FALSE +MAINTAINER_MODE_TRUE +AM_BACKSLASH +AM_DEFAULT_VERBOSITY +AM_DEFAULT_V +AM_V +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +runstatedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_silent_rules +enable_maintainer_mode +enable_dependency_tracking +enable_largefile +with_wallet_server +with_wallet_port +with_remctl +with_remctl_include +with_remctl_lib +enable_reduced_depends +with_gssapi +with_gssapi_include +with_gssapi_lib +with_krb5 +with_krb5_include +with_krb5_lib +' +      ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CPP +PERL +PATH_KRB5_CONFIG +REMCTLD' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do +  # If the previous option needs an argument, assign it. +  if test -n "$ac_prev"; then +    eval $ac_prev=\$ac_option +    ac_prev= +    continue +  fi + +  case $ac_option in +  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; +  *=)   ac_optarg= ;; +  *)    ac_optarg=yes ;; +  esac + +  # Accept the important Cygnus configure options, so we can diagnose typos. + +  case $ac_dashdash$ac_option in +  --) +    ac_dashdash=yes ;; + +  -bindir | --bindir | --bindi | --bind | --bin | --bi) +    ac_prev=bindir ;; +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) +    bindir=$ac_optarg ;; + +  -build | --build | --buil | --bui | --bu) +    ac_prev=build_alias ;; +  -build=* | --build=* | --buil=* | --bui=* | --bu=*) +    build_alias=$ac_optarg ;; + +  -cache-file | --cache-file | --cache-fil | --cache-fi \ +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) +    ac_prev=cache_file ;; +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) +    cache_file=$ac_optarg ;; + +  --config-cache | -C) +    cache_file=config.cache ;; + +  -datadir | --datadir | --datadi | --datad) +    ac_prev=datadir ;; +  -datadir=* | --datadir=* | --datadi=* | --datad=*) +    datadir=$ac_optarg ;; + +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ +  | --dataroo | --dataro | --datar) +    ac_prev=datarootdir ;; +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) +    datarootdir=$ac_optarg ;; + +  -disable-* | --disable-*) +    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` +    # Reject names that are not valid shell variable names. +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +      as_fn_error $? "invalid feature name: $ac_useropt" +    ac_useropt_orig=$ac_useropt +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +    case $ac_user_opts in +      *" +"enable_$ac_useropt" +"*) ;; +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" +	 ac_unrecognized_sep=', ';; +    esac +    eval enable_$ac_useropt=no ;; + +  -docdir | --docdir | --docdi | --doc | --do) +    ac_prev=docdir ;; +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) +    docdir=$ac_optarg ;; + +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) +    ac_prev=dvidir ;; +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) +    dvidir=$ac_optarg ;; + +  -enable-* | --enable-*) +    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` +    # Reject names that are not valid shell variable names. +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +      as_fn_error $? "invalid feature name: $ac_useropt" +    ac_useropt_orig=$ac_useropt +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +    case $ac_user_opts in +      *" +"enable_$ac_useropt" +"*) ;; +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" +	 ac_unrecognized_sep=', ';; +    esac +    eval enable_$ac_useropt=\$ac_optarg ;; + +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ +  | --exec | --exe | --ex) +    ac_prev=exec_prefix ;; +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ +  | --exec=* | --exe=* | --ex=*) +    exec_prefix=$ac_optarg ;; + +  -gas | --gas | --ga | --g) +    # Obsolete; use --with-gas. +    with_gas=yes ;; + +  -help | --help | --hel | --he | -h) +    ac_init_help=long ;; +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) +    ac_init_help=recursive ;; +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) +    ac_init_help=short ;; + +  -host | --host | --hos | --ho) +    ac_prev=host_alias ;; +  -host=* | --host=* | --hos=* | --ho=*) +    host_alias=$ac_optarg ;; + +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) +    ac_prev=htmldir ;; +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ +  | --ht=*) +    htmldir=$ac_optarg ;; + +  -includedir | --includedir | --includedi | --included | --include \ +  | --includ | --inclu | --incl | --inc) +    ac_prev=includedir ;; +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ +  | --includ=* | --inclu=* | --incl=* | --inc=*) +    includedir=$ac_optarg ;; + +  -infodir | --infodir | --infodi | --infod | --info | --inf) +    ac_prev=infodir ;; +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) +    infodir=$ac_optarg ;; + +  -libdir | --libdir | --libdi | --libd) +    ac_prev=libdir ;; +  -libdir=* | --libdir=* | --libdi=* | --libd=*) +    libdir=$ac_optarg ;; + +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ +  | --libexe | --libex | --libe) +    ac_prev=libexecdir ;; +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ +  | --libexe=* | --libex=* | --libe=*) +    libexecdir=$ac_optarg ;; + +  -localedir | --localedir | --localedi | --localed | --locale) +    ac_prev=localedir ;; +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) +    localedir=$ac_optarg ;; + +  -localstatedir | --localstatedir | --localstatedi | --localstated \ +  | --localstate | --localstat | --localsta | --localst | --locals) +    ac_prev=localstatedir ;; +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) +    localstatedir=$ac_optarg ;; + +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m) +    ac_prev=mandir ;; +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) +    mandir=$ac_optarg ;; + +  -nfp | --nfp | --nf) +    # Obsolete; use --without-fp. +    with_fp=no ;; + +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \ +  | --no-cr | --no-c | -n) +    no_create=yes ;; + +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \ +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) +    no_recursion=yes ;; + +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ +  | --oldin | --oldi | --old | --ol | --o) +    ac_prev=oldincludedir ;; +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) +    oldincludedir=$ac_optarg ;; + +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) +    ac_prev=prefix ;; +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) +    prefix=$ac_optarg ;; + +  -program-prefix | --program-prefix | --program-prefi | --program-pref \ +  | --program-pre | --program-pr | --program-p) +    ac_prev=program_prefix ;; +  -program-prefix=* | --program-prefix=* | --program-prefi=* \ +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) +    program_prefix=$ac_optarg ;; + +  -program-suffix | --program-suffix | --program-suffi | --program-suff \ +  | --program-suf | --program-su | --program-s) +    ac_prev=program_suffix ;; +  -program-suffix=* | --program-suffix=* | --program-suffi=* \ +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) +    program_suffix=$ac_optarg ;; + +  -program-transform-name | --program-transform-name \ +  | --program-transform-nam | --program-transform-na \ +  | --program-transform-n | --program-transform- \ +  | --program-transform | --program-transfor \ +  | --program-transfo | --program-transf \ +  | --program-trans | --program-tran \ +  | --progr-tra | --program-tr | --program-t) +    ac_prev=program_transform_name ;; +  -program-transform-name=* | --program-transform-name=* \ +  | --program-transform-nam=* | --program-transform-na=* \ +  | --program-transform-n=* | --program-transform-=* \ +  | --program-transform=* | --program-transfor=* \ +  | --program-transfo=* | --program-transf=* \ +  | --program-trans=* | --program-tran=* \ +  | --progr-tra=* | --program-tr=* | --program-t=*) +    program_transform_name=$ac_optarg ;; + +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) +    ac_prev=pdfdir ;; +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) +    pdfdir=$ac_optarg ;; + +  -psdir | --psdir | --psdi | --psd | --ps) +    ac_prev=psdir ;; +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) +    psdir=$ac_optarg ;; + +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +  | -silent | --silent | --silen | --sile | --sil) +    silent=yes ;; + +  -runstatedir | --runstatedir | --runstatedi | --runstated \ +  | --runstate | --runstat | --runsta | --runst | --runs \ +  | --run | --ru | --r) +    ac_prev=runstatedir ;; +  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ +  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ +  | --run=* | --ru=* | --r=*) +    runstatedir=$ac_optarg ;; + +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) +    ac_prev=sbindir ;; +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ +  | --sbi=* | --sb=*) +    sbindir=$ac_optarg ;; + +  -sharedstatedir | --sharedstatedir | --sharedstatedi \ +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ +  | --sharedst | --shareds | --shared | --share | --shar \ +  | --sha | --sh) +    ac_prev=sharedstatedir ;; +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ +  | --sha=* | --sh=*) +    sharedstatedir=$ac_optarg ;; + +  -site | --site | --sit) +    ac_prev=site ;; +  -site=* | --site=* | --sit=*) +    site=$ac_optarg ;; + +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) +    ac_prev=srcdir ;; +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) +    srcdir=$ac_optarg ;; + +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ +  | --syscon | --sysco | --sysc | --sys | --sy) +    ac_prev=sysconfdir ;; +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) +    sysconfdir=$ac_optarg ;; + +  -target | --target | --targe | --targ | --tar | --ta | --t) +    ac_prev=target_alias ;; +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) +    target_alias=$ac_optarg ;; + +  -v | -verbose | --verbose | --verbos | --verbo | --verb) +    verbose=yes ;; + +  -version | --version | --versio | --versi | --vers | -V) +    ac_init_version=: ;; + +  -with-* | --with-*) +    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` +    # Reject names that are not valid shell variable names. +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +      as_fn_error $? "invalid package name: $ac_useropt" +    ac_useropt_orig=$ac_useropt +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +    case $ac_user_opts in +      *" +"with_$ac_useropt" +"*) ;; +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" +	 ac_unrecognized_sep=', ';; +    esac +    eval with_$ac_useropt=\$ac_optarg ;; + +  -without-* | --without-*) +    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` +    # Reject names that are not valid shell variable names. +    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && +      as_fn_error $? "invalid package name: $ac_useropt" +    ac_useropt_orig=$ac_useropt +    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` +    case $ac_user_opts in +      *" +"with_$ac_useropt" +"*) ;; +      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" +	 ac_unrecognized_sep=', ';; +    esac +    eval with_$ac_useropt=no ;; + +  --x) +    # Obsolete; use --with-x. +    with_x=yes ;; + +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ +  | --x-incl | --x-inc | --x-in | --x-i) +    ac_prev=x_includes ;; +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) +    x_includes=$ac_optarg ;; + +  -x-libraries | --x-libraries | --x-librarie | --x-librari \ +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) +    ac_prev=x_libraries ;; +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) +    x_libraries=$ac_optarg ;; + +  -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" +    ;; + +  *=*) +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` +    # Reject names that are not valid shell variable names. +    case $ac_envvar in #( +      '' | [0-9]* | *[!_$as_cr_alnum]* ) +      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; +    esac +    eval $ac_envvar=\$ac_optarg +    export $ac_envvar ;; + +  *) +    # FIXME: should be removed in autoconf 3.0. +    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && +      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 +    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" +    ;; + +  esac +done + +if test -n "$ac_prev"; then +  ac_option=--`echo $ac_prev | sed 's/_/-/g'` +  as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then +  case $enable_option_checking in +    no) ;; +    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; +    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; +  esac +fi + +# Check all directory arguments for consistency. +for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ +		datadir sysconfdir sharedstatedir localstatedir includedir \ +		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ +		libdir localedir mandir runstatedir +do +  eval ac_val=\$$ac_var +  # Remove trailing slashes. +  case $ac_val in +    */ ) +      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` +      eval $ac_var=\$ac_val;; +  esac +  # Be sure to have absolute directory names. +  case $ac_val in +    [\\/$]* | ?:[\\/]* )  continue;; +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;; +  esac +  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then +  if test "x$build_alias" = x; then +    cross_compiling=maybe +  elif test "x$build_alias" != "x$host_alias"; then +    cross_compiling=yes +  fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || +  as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || +  as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then +  ac_srcdir_defaulted=yes +  # Try the directory containing this script, then the parent directory. +  ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +	 X"$as_myself" : 'X\(//\)[^/]' \| \ +	 X"$as_myself" : 'X\(//\)$' \| \ +	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)[^/].*/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'` +  srcdir=$ac_confdir +  if test ! -r "$srcdir/$ac_unique_file"; then +    srcdir=.. +  fi +else +  ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." +  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( +	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" +	pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then +  srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do +  eval ac_env_${ac_var}_set=\${${ac_var}+set} +  eval ac_env_${ac_var}_value=\$${ac_var} +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} +  eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then +  # Omit some internal or obsolete options to make the list less imposing. +  # This message is too long to be a string in the A/UX 3.1 sh. +  cat <<_ACEOF +\`configure' configures wallet 1.4 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE.  See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: +  -h, --help              display this help and exit +      --help=short        display options specific to this package +      --help=recursive    display the short help of all the included packages +  -V, --version           display version information and exit +  -q, --quiet, --silent   do not print \`checking ...' messages +      --cache-file=FILE   cache test results in FILE [disabled] +  -C, --config-cache      alias for \`--cache-file=config.cache' +  -n, --no-create         do not create output files +      --srcdir=DIR        find the sources in DIR [configure dir or \`..'] + +Installation directories: +  --prefix=PREFIX         install architecture-independent files in PREFIX +                          [$ac_default_prefix] +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX +                          [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: +  --bindir=DIR            user executables [EPREFIX/bin] +  --sbindir=DIR           system admin executables [EPREFIX/sbin] +  --libexecdir=DIR        program executables [EPREFIX/libexec] +  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] +  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] +  --localstatedir=DIR     modifiable single-machine data [PREFIX/var] +  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run] +  --libdir=DIR            object code libraries [EPREFIX/lib] +  --includedir=DIR        C header files [PREFIX/include] +  --oldincludedir=DIR     C header files for non-gcc [/usr/include] +  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] +  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] +  --infodir=DIR           info documentation [DATAROOTDIR/info] +  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] +  --mandir=DIR            man documentation [DATAROOTDIR/man] +  --docdir=DIR            documentation root [DATAROOTDIR/doc/wallet] +  --htmldir=DIR           html documentation [DOCDIR] +  --dvidir=DIR            dvi documentation [DOCDIR] +  --pdfdir=DIR            pdf documentation [DOCDIR] +  --psdir=DIR             ps documentation [DOCDIR] +_ACEOF + +  cat <<\_ACEOF + +Program names: +  --program-prefix=PREFIX            prepend PREFIX to installed program names +  --program-suffix=SUFFIX            append SUFFIX to installed program names +  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names +_ACEOF +fi + +if test -n "$ac_init_help"; then +  case $ac_init_help in +     short | recursive ) echo "Configuration of wallet 1.4:";; +   esac +  cat <<\_ACEOF + +Optional Features: +  --disable-option-checking  ignore unrecognized --enable/--with options +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] +  --enable-silent-rules   less verbose build output (undo: "make V=1") +  --disable-silent-rules  verbose build output (undo: "make V=0") +  --enable-maintainer-mode +                          enable make rules and dependencies not useful (and +                          sometimes confusing) to the casual installer +  --enable-dependency-tracking +                          do not reject slow dependency extractors +  --disable-dependency-tracking +                          speeds up one-time build +  --disable-largefile     omit support for large files +  --enable-reduced-depends +                          Try to minimize shared library dependencies + +Optional Packages: +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) +  --with-wallet-server=HOST +                          Default wallet server +  --with-wallet-port=PORT Default wallet server port +  --with-remctl=DIR       Location of remctl headers and libraries +  --with-remctl-include=DIR +                          Location of remctl headers +  --with-remctl-lib=DIR   Location of remctl libraries +  --with-gssapi=DIR       Location of GSS-API headers and libraries +  --with-gssapi-include=DIR +                          Location of GSS-API headers +  --with-gssapi-lib=DIR   Location of GSS-API libraries +  --with-krb5=DIR         Location of Kerberos headers and libraries +  --with-krb5-include=DIR Location of Kerberos headers +  --with-krb5-lib=DIR     Location of Kerberos libraries + +Some influential environment variables: +  CC          C compiler command +  CFLAGS      C compiler flags +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a +              nonstandard directory <lib dir> +  LIBS        libraries to pass to the linker, e.g. -l<library> +  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if +              you have headers in a nonstandard directory <include dir> +  CPP         C preprocessor +  PERL        Location of Perl interpreter +  PATH_KRB5_CONFIG +              Path to krb5-config +  REMCTLD     Path to the remctld binary + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to <eagle@eyrie.org>. +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then +  # If there are subdirs, report their specific --help. +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue +    test -d "$ac_dir" || +      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || +      continue +    ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` +  # A ".." for each directory in $ac_dir_suffix. +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` +  case $ac_top_builddir_sub in +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;; +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; +  esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in +  .)  # We are building in place. +    ac_srcdir=. +    ac_top_srcdir=$ac_top_builddir_sub +    ac_abs_top_srcdir=$ac_pwd ;; +  [\\/]* | ?:[\\/]* )  # Absolute name. +    ac_srcdir=$srcdir$ac_dir_suffix; +    ac_top_srcdir=$srcdir +    ac_abs_top_srcdir=$srcdir ;; +  *) # Relative name. +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix +    ac_top_srcdir=$ac_top_build_prefix$srcdir +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + +    cd "$ac_dir" || { ac_status=$?; continue; } +    # Check for guested configure. +    if test -f "$ac_srcdir/configure.gnu"; then +      echo && +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive +    elif test -f "$ac_srcdir/configure"; then +      echo && +      $SHELL "$ac_srcdir/configure" --help=recursive +    else +      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 +    fi || ac_status=$? +    cd "$ac_pwd" || { ac_status=$?; break; } +  done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then +  cat <<\_ACEOF +wallet configure 1.4 +generated by GNU Autoconf 2.69 + +Copyright (C) 2012 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF +  exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  rm -f conftest.$ac_objext +  if { { ac_try="$ac_compile" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_compile") 2>conftest.err +  ac_status=$? +  if test -s conftest.err; then +    grep -v '^ *+' conftest.err >conftest.er1 +    cat conftest.er1 >&5 +    mv -f conftest.er1 conftest.err +  fi +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; } && { +	 test -z "$ac_c_werror_flag" || +	 test ! -s conftest.err +       } && test -s conftest.$ac_objext; then : +  ac_retval=0 +else +  $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +	ac_retval=1 +fi +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +  as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err +  ac_status=$? +  if test -s conftest.err; then +    grep -v '^ *+' conftest.err >conftest.er1 +    cat conftest.er1 >&5 +    mv -f conftest.er1 conftest.err +  fi +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; } > conftest.i && { +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || +	 test ! -s conftest.err +       }; then : +  ac_retval=0 +else +  $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +    ac_retval=1 +fi +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +  as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists, giving a warning if it cannot be compiled using +# the include files in INCLUDES and setting the cache variable VAR +# accordingly. +ac_fn_c_check_header_mongrel () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  if eval \${$3+:} false; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : +  $as_echo_n "(cached) " >&6 +fi +eval ac_res=\$$3 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else +  # Is the header compilable? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 +$as_echo_n "checking $2 usability... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_header_compiler=yes +else +  ac_header_compiler=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 +$as_echo_n "checking $2 presence... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <$2> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : +  ac_header_preproc=yes +else +  ac_header_preproc=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So?  What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( +  yes:no: ) +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +    ;; +  no:yes:* ) +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} +    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} +( $as_echo "## ------------------------------ ## +## Report this to eagle@eyrie.org ## +## ------------------------------ ##" +     ) | sed "s/^/$as_me: WARNING:     /" >&2 +    ;; +esac +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  eval "$3=\$ac_header_compiler" +fi +eval ac_res=\$$3 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +fi +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_mongrel + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  if { { ac_try="$ac_link" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_link") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' +  { { case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_try") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; }; then : +  ac_retval=0 +else +  $as_echo "$as_me: program exited with status $ac_status" >&5 +       $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +       ac_retval=$ac_status +fi +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +  as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  eval "$3=yes" +else +  eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES +# -------------------------------------------- +# Tries to find the compile-time value of EXPR in a program that includes +# INCLUDES, setting VAR accordingly. Returns whether the value could be +# computed +ac_fn_c_compute_int () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  if test "$cross_compiling" = yes; then +    # Depending upon the size, compute the lo and hi bounds. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= 0)]; +test_array [0] = 0; +return test_array [0]; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_lo=0 ac_mid=0 +  while :; do +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_hi=$ac_mid; break +else +  as_fn_arith $ac_mid + 1 && ac_lo=$as_val +			if test $ac_lo -le $ac_mid; then +			  ac_lo= ac_hi= +			  break +			fi +			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +  done +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) < 0)]; +test_array [0] = 0; +return test_array [0]; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_hi=-1 ac_mid=-1 +  while :; do +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) >= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_lo=$ac_mid; break +else +  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val +			if test $ac_mid -le $ac_hi; then +			  ac_lo= ac_hi= +			  break +			fi +			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +  done +else +  ac_lo= ac_hi= +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +# Binary search between lo and hi bounds. +while test "x$ac_lo" != "x$ac_hi"; do +  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +int +main () +{ +static int test_array [1 - 2 * !(($2) <= $ac_mid)]; +test_array [0] = 0; +return test_array [0]; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_hi=$ac_mid +else +  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +done +case $ac_lo in #(( +?*) eval "$3=\$ac_lo"; ac_retval=0 ;; +'') ac_retval=1 ;; +esac +  else +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +static long int longval () { return $2; } +static unsigned long int ulongval () { return $2; } +#include <stdio.h> +#include <stdlib.h> +int +main () +{ + +  FILE *f = fopen ("conftest.val", "w"); +  if (! f) +    return 1; +  if (($2) < 0) +    { +      long int i = longval (); +      if (i != ($2)) +	return 1; +      fprintf (f, "%ld", i); +    } +  else +    { +      unsigned long int i = ulongval (); +      if (i != ($2)) +	return 1; +      fprintf (f, "%lu", i); +    } +  /* Do not output a trailing newline, as this causes \r\n confusion +     on some platforms.  */ +  return ferror (f) || fclose (f) != 0; + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : +  echo >>conftest.val; read $3 <conftest.val; ac_retval=0 +else +  ac_retval=1 +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f conftest.val + +  fi +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +  as_fn_set_status $ac_retval + +} # ac_fn_c_compute_int + +# ac_fn_c_try_link LINENO +# ----------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_link () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  rm -f conftest.$ac_objext conftest$ac_exeext +  if { { ac_try="$ac_link" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_link") 2>conftest.err +  ac_status=$? +  if test -s conftest.err; then +    grep -v '^ *+' conftest.err >conftest.er1 +    cat conftest.er1 >&5 +    mv -f conftest.er1 conftest.err +  fi +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; } && { +	 test -z "$ac_c_werror_flag" || +	 test ! -s conftest.err +       } && test -s conftest$ac_exeext && { +	 test "$cross_compiling" = yes || +	 test -x conftest$ac_exeext +       }; then : +  ac_retval=0 +else +  $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +	ac_retval=1 +fi +  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information +  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would +  # interfere with the next link command; also delete a directory that is +  # left behind by Apple's compiler.  We do this before executing the actions. +  rm -rf conftest.dSYM conftest_ipa8_conftest.oo +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno +  as_fn_set_status $ac_retval + +} # ac_fn_c_try_link + +# ac_fn_c_check_func LINENO FUNC VAR +# ---------------------------------- +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_c_check_func () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +/* Define $2 to an innocuous variant, in case <limits.h> declares $2. +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, +    which can conflict with char $2 (); below. +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since +    <limits.h> exists even on freestanding compilers.  */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements +    to always fail with ENOSYS.  Some functions are actually named +    something starting with __ and the normal name is an alias.  */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  eval "$3=yes" +else +  eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +# --------------------------------------------- +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +# accordingly. +ac_fn_c_check_decl () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  as_decl_name=`echo $2|sed 's/ *(.*//'` +  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +if eval \${$3+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +int +main () +{ +#ifndef $as_decl_name +#ifdef __cplusplus +  (void) $as_decl_use; +#else +  (void) $as_decl_name; +#endif +#endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  eval "$3=yes" +else +  eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_decl + +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES +# ------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_c_check_type () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  eval "$3=no" +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +int +main () +{ +if (sizeof ($2)) +	 return 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$4 +int +main () +{ +if (sizeof (($2))) +	    return 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else +  eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_type + +# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES +# ---------------------------------------------------- +# Tries to find if the field MEMBER exists in type AGGR, after including +# INCLUDES, setting cache variable VAR accordingly. +ac_fn_c_check_member () +{ +  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 +$as_echo_n "checking for $2.$3... " >&6; } +if eval \${$4+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$5 +int +main () +{ +static $2 ac_aggr; +if (ac_aggr.$3) +return 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  eval "$4=yes" +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +$5 +int +main () +{ +static $2 ac_aggr; +if (sizeof ac_aggr.$3) +return 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  eval "$4=yes" +else +  eval "$4=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$4 +	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_member +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by wallet $as_me 1.4, which was +generated by GNU Autoconf 2.69.  Invocation command line was + +  $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` + +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    $as_echo "PATH: $as_dir" +  done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do +  for ac_arg +  do +    case $ac_arg in +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +    | -silent | --silent | --silen | --sile | --sil) +      continue ;; +    *\'*) +      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; +    esac +    case $ac_pass in +    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; +    2) +      as_fn_append ac_configure_args1 " '$ac_arg'" +      if test $ac_must_keep_next = true; then +	ac_must_keep_next=false # Got value, back to normal. +      else +	case $ac_arg in +	  *=* | --config-cache | -C | -disable-* | --disable-* \ +	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ +	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ +	  | -with-* | --with-* | -without-* | --without-* | --x) +	    case "$ac_configure_args0 " in +	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; +	    esac +	    ;; +	  -* ) ac_must_keep_next=true ;; +	esac +      fi +      as_fn_append ac_configure_args " '$ac_arg'" +      ;; +    esac +  done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log.  We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? +  # Save into config.log some information that might help in debugging. +  { +    echo + +    $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" +    echo +    # The following way of writing the cache mishandles newlines in values, +( +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do +    eval ac_val=\$$ac_var +    case $ac_val in #( +    *${as_nl}*) +      case $ac_var in #( +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; +      esac +      case $ac_var in #( +      _ | IFS | as_nl) ;; #( +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( +      *) { eval $ac_var=; unset $ac_var;} ;; +      esac ;; +    esac +  done +  (set) 2>&1 | +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( +    *${as_nl}ac_space=\ *) +      sed -n \ +	"s/'\''/'\''\\\\'\'''\''/g; +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" +      ;; #( +    *) +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" +      ;; +    esac | +    sort +) +    echo + +    $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" +    echo +    for ac_var in $ac_subst_vars +    do +      eval ac_val=\$$ac_var +      case $ac_val in +      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; +      esac +      $as_echo "$ac_var='\''$ac_val'\''" +    done | sort +    echo + +    if test -n "$ac_subst_files"; then +      $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" +      echo +      for ac_var in $ac_subst_files +      do +	eval ac_val=\$$ac_var +	case $ac_val in +	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; +	esac +	$as_echo "$ac_var='\''$ac_val'\''" +      done | sort +      echo +    fi + +    if test -s confdefs.h; then +      $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" +      echo +      cat confdefs.h +      echo +    fi +    test "$ac_signal" != 0 && +      $as_echo "$as_me: caught signal $ac_signal" +    $as_echo "$as_me: exit $exit_status" +  } >&5 +  rm -f core *.core core.conftest.* && +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files && +    exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do +  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then +  # We do not want a PATH search for config.site. +  case $CONFIG_SITE in #(( +    -*)  ac_site_file1=./$CONFIG_SITE;; +    */*) ac_site_file1=$CONFIG_SITE;; +    *)   ac_site_file1=./$CONFIG_SITE;; +  esac +elif test "x$prefix" != xNONE; then +  ac_site_file1=$prefix/share/config.site +  ac_site_file2=$prefix/etc/config.site +else +  ac_site_file1=$ac_default_prefix/share/config.site +  ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do +  test "x$ac_site_file" = xNONE && continue +  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} +    sed 's/^/| /' "$ac_site_file" >&5 +    . "$ac_site_file" \ +      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } +  fi +done + +if test -r "$cache_file"; then +  # Some versions of bash will fail to source /dev/null (special files +  # actually), so we avoid doing that.  DJGPP emulates it as a regular file. +  if test /dev/null != "$cache_file" && test -f "$cache_file"; then +    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} +    case $cache_file in +      [\\/]* | ?:[\\/]* ) . "$cache_file";; +      *)                      . "./$cache_file";; +    esac +  fi +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} +  >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do +  eval ac_old_set=\$ac_cv_env_${ac_var}_set +  eval ac_new_set=\$ac_env_${ac_var}_set +  eval ac_old_val=\$ac_cv_env_${ac_var}_value +  eval ac_new_val=\$ac_env_${ac_var}_value +  case $ac_old_set,$ac_new_set in +    set,) +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} +      ac_cache_corrupted=: ;; +    ,set) +      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} +      ac_cache_corrupted=: ;; +    ,);; +    *) +      if test "x$ac_old_val" != "x$ac_new_val"; then +	# differences in whitespace do not lead to failure. +	ac_old_val_w=`echo x $ac_old_val` +	ac_new_val_w=`echo x $ac_new_val` +	if test "$ac_old_val_w" != "$ac_new_val_w"; then +	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} +	  ac_cache_corrupted=: +	else +	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} +	  eval $ac_var=\$ac_old_val +	fi +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 +$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} +	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 +$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} +      fi;; +  esac +  # Pass precious variables to config.status. +  if test "$ac_new_set" = set; then +    case $ac_new_val in +    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; +    *) ac_arg=$ac_var=$ac_new_val ;; +    esac +    case " $ac_configure_args " in +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. +      *) as_fn_append ac_configure_args " '$ac_arg'" ;; +    esac +  fi +done +if $ac_cache_corrupted; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} +  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_aux_dir= +for ac_dir in build-aux "$srcdir"/build-aux; do +  if test -f "$ac_dir/install-sh"; then +    ac_aux_dir=$ac_dir +    ac_install_sh="$ac_aux_dir/install-sh -c" +    break +  elif test -f "$ac_dir/install.sh"; then +    ac_aux_dir=$ac_dir +    ac_install_sh="$ac_aux_dir/install.sh -c" +    break +  elif test -f "$ac_dir/shtool"; then +    ac_aux_dir=$ac_dir +    ac_install_sh="$ac_aux_dir/shtool install -c" +    break +  fi +done +if test -z "$ac_aux_dir"; then +  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. + + + + +am__api_version='1.15' + +# Find a good install program.  We prefer a C program (faster), +# so one script is as good as another.  But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( +  ./ | .// | /[cC]/* | \ +  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ +  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ +  /usr/ucb/* ) ;; +  *) +    # OSF1 and SCO ODT 3.0 have their own names for install. +    # Don't use installbsd from OSF since it installs stuff as root +    # by default. +    for ac_prog in ginstall scoinst install; do +      for ac_exec_ext in '' $ac_executable_extensions; do +	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then +	  if test $ac_prog = install && +	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then +	    # AIX install.  It has an incompatible calling convention. +	    : +	  elif test $ac_prog = install && +	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then +	    # program-specific install script used by HP pwplus--don't use. +	    : +	  else +	    rm -rf conftest.one conftest.two conftest.dir +	    echo one > conftest.one +	    echo two > conftest.two +	    mkdir conftest.dir +	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && +	      test -s conftest.one && test -s conftest.two && +	      test -s conftest.dir/conftest.one && +	      test -s conftest.dir/conftest.two +	    then +	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" +	      break 3 +	    fi +	  fi +	fi +      done +    done +    ;; +esac + +  done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi +  if test "${ac_cv_path_install+set}" = set; then +    INSTALL=$ac_cv_path_install +  else +    # As a last resort, use the slow shell script.  Don't cache a +    # value for INSTALL within a source directory, because that will +    # break other packages using the cache if that directory is +    # removed, or if the value is a relative name. +    INSTALL=$ac_install_sh +  fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Reject unsafe characters in $srcdir or the absolute working directory +# name.  Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in +  *[\\\"\#\$\&\'\`$am_lf]*) +    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in +  *[\\\"\#\$\&\'\`$am_lf\ \	]*) +    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; +esac + +# Do 'set' in a subshell so we don't clobber the current shell's +# arguments.  Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( +   am_has_slept=no +   for am_try in 1 2; do +     echo "timestamp, slept: $am_has_slept" > conftest.file +     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` +     if test "$*" = "X"; then +	# -L didn't work. +	set X `ls -t "$srcdir/configure" conftest.file` +     fi +     if test "$*" != "X $srcdir/configure conftest.file" \ +	&& test "$*" != "X conftest.file $srcdir/configure"; then + +	# If neither matched, then we have a broken ls.  This can happen +	# if, for instance, CONFIG_SHELL is bash and it inherits a +	# broken ls alias from the environment.  This has actually +	# happened.  Such a system could not be considered "sane". +	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken +  alias in your environment" "$LINENO" 5 +     fi +     if test "$2" = conftest.file || test $am_try -eq 2; then +       break +     fi +     # Just in case. +     sleep 1 +     am_has_slept=yes +   done +   test "$2" = conftest.file +   ) +then +   # Ok. +   : +else +   as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +# If we didn't sleep, we still need to ensure time stamps of config.status and +# generated files are strictly newer. +am_sleep_pid= +if grep 'slept: no' conftest.file >/dev/null 2>&1; then +  ( sleep 1 ) & +  am_sleep_pid=$! +fi + +rm -f conftest.file + +test "$program_prefix" != NONE && +  program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && +  program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# Expand $ac_aux_dir to an absolute path. +am_aux_dir=`cd "$ac_aux_dir" && pwd` + +if test x"${MISSING+set}" != xset; then +  case $am_aux_dir in +  *\ * | *\	*) +    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; +  *) +    MISSING="\${SHELL} $am_aux_dir/missing" ;; +  esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --is-lightweight"; then +  am_missing_run="$MISSING " +else +  am_missing_run= +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh+set}" != xset; then +  case $am_aux_dir in +  *\ * | *\	*) +    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; +  *) +    install_sh="\${SHELL} $am_aux_dir/install-sh" +  esac +fi + +# Installed binaries are usually stripped using 'strip' when the user +# run "make install-strip".  However 'strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the 'STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then +  if test -n "$ac_tool_prefix"; then +  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$STRIP"; then +  ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_STRIP="${ac_tool_prefix}strip" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then +  ac_ct_STRIP=$STRIP +  # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$ac_ct_STRIP"; then +  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_ac_ct_STRIP="strip" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +  if test "x$ac_ct_STRIP" = x; then +    STRIP=":" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    STRIP=$ac_ct_STRIP +  fi +else +  STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then +  if ${ac_cv_path_mkdir+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_prog in mkdir gmkdir; do +	 for ac_exec_ext in '' $ac_executable_extensions; do +	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue +	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( +	     'mkdir (GNU coreutils) '* | \ +	     'mkdir (coreutils) '* | \ +	     'mkdir (fileutils) '4.1*) +	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext +	       break 3;; +	   esac +	 done +       done +  done +IFS=$as_save_IFS + +fi + +  test -d ./--version && rmdir ./--version +  if test "${ac_cv_path_mkdir+set}" = set; then +    MKDIR_P="$ac_cv_path_mkdir -p" +  else +    # As a last resort, use the slow shell script.  Don't cache a +    # value for MKDIR_P within a source directory, because that will +    # break other packages using the cache if that directory is +    # removed, or if the value is a relative name. +    MKDIR_P="$ac_install_sh -d" +  fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +for ac_prog in gawk mawk nawk awk +do +  # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$AWK"; then +  ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_AWK="$ac_prog" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +  test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: +	@echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in +  *@@@%%%=?*=@@@%%%*) +    eval ac_cv_prog_make_${ac_make}_set=yes;; +  *) +    eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +  SET_MAKE= +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +  SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then +  am__leading_dot=. +else +  am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +# Check whether --enable-silent-rules was given. +if test "${enable_silent_rules+set}" = set; then : +  enableval=$enable_silent_rules; +fi + +case $enable_silent_rules in # ((( +  yes) AM_DEFAULT_VERBOSITY=0;; +   no) AM_DEFAULT_VERBOSITY=1;; +    *) AM_DEFAULT_VERBOSITY=1;; +esac +am_make=${MAKE-make} +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 +$as_echo_n "checking whether $am_make supports nested variables... " >&6; } +if ${am_cv_make_support_nested_variables+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if $as_echo 'TRUE=$(BAR$(V)) +BAR0=false +BAR1=true +V=1 +am__doit: +	@$(TRUE) +.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then +  am_cv_make_support_nested_variables=yes +else +  am_cv_make_support_nested_variables=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 +$as_echo "$am_cv_make_support_nested_variables" >&6; } +if test $am_cv_make_support_nested_variables = yes; then +    AM_V='$(V)' +  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' +else +  AM_V=$AM_DEFAULT_VERBOSITY +  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY +fi +AM_BACKSLASH='\' + +if test "`cd $srcdir && pwd`" != "`pwd`"; then +  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output +  # is not polluted with repeated "-I." +  am__isrc=' -I$(srcdir)' +  # test to see if srcdir already configured +  if test -f $srcdir/config.status; then +    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 +  fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then +  if (cygpath --version) >/dev/null 2>/dev/null; then +    CYGPATH_W='cygpath -w' +  else +    CYGPATH_W=echo +  fi +fi + + +# Define the identity of the package. + PACKAGE='wallet' + VERSION='1.4' + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# For better backward compatibility.  To be removed once Automake 1.9.x +# dies out for good.  For more background, see: +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> +# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> +mkdir_p='$(MKDIR_P)' + +# We need awk for the "check" target (and possibly the TAP driver).  The +# system "awk" is bad on some platforms. +# Always define AMTAR for backward compatibility.  Yes, it's still used +# in the wild :-(  We should find a proper way to deprecate it ... +AMTAR='$${TAR-tar}' + + +# We'll loop over all known methods to create a tar archive until one works. +_am_tools='gnutar  pax cpio none' + +am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' + + + + + + +# POSIX will say in a future version that running "rm -f" with no argument +# is OK; and we want to be able to make that assumption in our Makefile +# recipes.  So use an aggressive probe to check that the usage we want is +# actually supported "in the wild" to an acceptable degree. +# See automake bug#10828. +# To make any issue more visible, cause the running configure to be aborted +# by default if the 'rm' program in use doesn't match our expectations; the +# user can still override this though. +if rm -f && rm -fr && rm -rf; then : OK; else +  cat >&2 <<'END' +Oops! + +Your 'rm' program seems unable to run without file operands specified +on the command line, even when the '-f' option is present.  This is contrary +to the behaviour of most rm programs out there, and not conforming with +the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> + +Please tell bug-automake@gnu.org about your system, including the value +of your $PATH and any error possibly output before this message.  This +can help us improve future automake versions. + +END +  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then +    echo 'Configuration will proceed anyway, since you have set the' >&2 +    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 +    echo >&2 +  else +    cat >&2 <<'END' +Aborting the configuration process, to ensure you take notice of the issue. + +You can download and install GNU coreutils to get an 'rm' implementation +that behaves properly: <http://www.gnu.org/software/coreutils/>. + +If you want to complete the configuration process using your problematic +'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM +to "yes", and re-run configure. + +END +    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 +  fi +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } +    # Check whether --enable-maintainer-mode was given. +if test "${enable_maintainer_mode+set}" = set; then : +  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval +else +  USE_MAINTAINER_MODE=no +fi + +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 +$as_echo "$USE_MAINTAINER_MODE" >&6; } +   if test $USE_MAINTAINER_MODE = yes; then +  MAINTAINER_MODE_TRUE= +  MAINTAINER_MODE_FALSE='#' +else +  MAINTAINER_MODE_TRUE='#' +  MAINTAINER_MODE_FALSE= +fi + +  MAINT=$MAINTAINER_MODE_TRUE + + + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$CC"; then +  ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_CC="${ac_tool_prefix}gcc" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then +  ac_ct_CC=$CC +  # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$ac_ct_CC"; then +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_ac_ct_CC="gcc" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +  if test "x$ac_ct_CC" = x; then +    CC="" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    CC=$ac_ct_CC +  fi +else +  CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then +          if test -n "$ac_tool_prefix"; then +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$CC"; then +  ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_CC="${ac_tool_prefix}cc" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +  fi +fi +if test -z "$CC"; then +  # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$CC"; then +  ac_cv_prog_CC="$CC" # Let the user override the test. +else +  ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then +       ac_prog_rejected=yes +       continue +     fi +    ac_cv_prog_CC="cc" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then +  # We found a bogon in the path, so make sure we never use it. +  set dummy $ac_cv_prog_CC +  shift +  if test $# != 0; then +    # We chose a different compiler from the bogus one. +    # However, it has the same basename, so the bogon will be chosen +    # first if we set CC to just the basename; use the full file name. +    shift +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" +  fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then +  if test -n "$ac_tool_prefix"; then +  for ac_prog in cl.exe +  do +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CC+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$CC"; then +  ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +$as_echo "$CC" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +    test -n "$CC" && break +  done +fi +if test -z "$CC"; then +  ac_ct_CC=$CC +  for ac_prog in cl.exe +do +  # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CC+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$ac_ct_CC"; then +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_ac_ct_CC="$ac_prog" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +  test -n "$ac_ct_CC" && break +done + +  if test "x$ac_ct_CC" = x; then +    CC="" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    CC=$ac_ct_CC +  fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do +  { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_compiler $ac_option >&5") 2>conftest.err +  ac_status=$? +  if test -s conftest.err; then +    sed '10a\ +... rest of stderr output deleted ... +         10q' conftest.err >conftest.er1 +    cat conftest.er1 >&5 +  fi +  rm -f conftest.er1 conftest.err +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +$as_echo_n "checking whether the C compiler works... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do +  case $ac_file in +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; +    * ) ac_rmfiles="$ac_rmfiles $ac_file";; +  esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_link_default") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then : +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile.  We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do +  test -f "$ac_file" || continue +  case $ac_file in +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) +	;; +    [ab].out ) +	# We found the default executable, but exeext='' is most +	# certainly right. +	break;; +    *.* ) +	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; +	then :; else +	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` +	fi +	# We set ac_cv_exeext here because the later test for it is not +	# safe: cross compilers may not add the suffix if given an `-o' +	# argument, so we may need to know it at that point already. +	# Even if this section looks crufty: it has the advantage of +	# actually working. +	break;; +    * ) +	break;; +  esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else +  ac_file='' +fi +if test -z "$ac_file"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +$as_echo_n "checking for C compiler default output file name... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_link") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then : +  # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do +  test -f "$ac_file" || continue +  case $ac_file in +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` +	  break;; +    * ) break;; +  esac +done +else +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdio.h> +int +main () +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + +  ; +  return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run.  If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then +  { { ac_try="$ac_link" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_link") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; } +  if { ac_try='./conftest$ac_cv_exeext' +  { { case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_try") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; }; then +    cross_compiling=no +  else +    if test "$cross_compiling" = maybe; then +	cross_compiling=yes +    else +	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } +    fi +  fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if ${ac_cv_objext+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; +  *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 +  (eval "$ac_compile") 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; }; then : +  for ac_file in conftest.o conftest.obj conftest.*; do +  test -f "$ac_file" || continue; +  case $ac_file in +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` +       break;; +  esac +done +else +  $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if ${ac_cv_c_compiler_gnu+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +#ifndef __GNUC__ +       choke me +#endif + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_compiler_gnu=yes +else +  ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then +  GCC=yes +else +  GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if ${ac_cv_prog_cc_g+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_save_c_werror_flag=$ac_c_werror_flag +   ac_c_werror_flag=yes +   ac_cv_prog_cc_g=no +   CFLAGS="-g" +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_prog_cc_g=yes +else +  CFLAGS="" +      cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else +  ac_c_werror_flag=$ac_save_c_werror_flag +	 CFLAGS="-g" +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +   ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then +  CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then +  if test "$GCC" = yes; then +    CFLAGS="-g -O2" +  else +    CFLAGS="-g" +  fi +else +  if test "$GCC" = yes; then +    CFLAGS="-O2" +  else +    CFLAGS= +  fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if ${ac_cv_prog_cc_c89+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdarg.h> +#include <stdio.h> +struct stat; +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) +     char **p; +     int i; +{ +  return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ +  char *s; +  va_list v; +  va_start (v,p); +  s = g (p, va_arg (v,int)); +  va_end (v); +  return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has +   function prototypes and stuff, but not '\xHH' hex character constants. +   These don't provoke an error unfortunately, instead are silently treated +   as 'x'.  The following induces an error, until -std is added to get +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an +   array size at least.  It's necessary to write '\x00'==0 to get something +   that's true only with -std.  */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters +   inside strings and character constants.  */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; +  ; +  return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ +	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do +  CC="$ac_save_CC $ac_arg" +  if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext +  test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in +  x) +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; +  xno) +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; +  *) +    CC="$CC $ac_cv_prog_cc_c89" +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac +if test "x$ac_cv_prog_cc_c89" != xno; then : + +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 +$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } +if ${am_cv_prog_cc_c_o+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +  # Make sure it works both with $CC and with simple cc. +  # Following AC_PROG_CC_C_O, we do the test twice because some +  # compilers refuse to overwrite an existing .o file with -o, +  # though they will create one. +  am_cv_prog_cc_c_o=yes +  for am_i in 1 2; do +    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 +   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 +   ac_status=$? +   echo "$as_me:$LINENO: \$? = $ac_status" >&5 +   (exit $ac_status); } \ +         && test -f conftest2.$ac_objext; then +      : OK +    else +      am_cv_prog_cc_c_o=no +      break +    fi +  done +  rm -f core conftest* +  unset am_i +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 +$as_echo "$am_cv_prog_cc_c_o" >&6; } +if test "$am_cv_prog_cc_c_o" != yes; then +   # Losing compiler, so override with the script. +   # FIXME: It is wrong to rewrite CC. +   # But if we don't then we get into trouble of one sort or another. +   # A longer-term fix would be to have automake use am__CC in this case, +   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" +   CC="$am_aux_dir/compile $CC" +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: +	@echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from 'make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) +  am__include=include +  am__quote= +  _am_result=GNU +  ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then +   echo '.include "confinc"' > confmf +   case `$am_make -s -f confmf 2> /dev/null` in #( +   *the\ am__doit\ target*) +     am__include=.include +     am__quote="\"" +     _am_result=BSD +     ;; +   esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : +  enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then +  am_depcomp="$ac_aux_dir/depcomp" +  AMDEPBACKSLASH='\' +  am__nodep='_no' +fi + if test "x$enable_dependency_tracking" != xno; then +  AMDEP_TRUE= +  AMDEP_FALSE='#' +else +  AMDEP_TRUE='#' +  AMDEP_FALSE= +fi + + + +depcc="$CC"   am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then +  # We make a subdir and do the tests there.  Otherwise we can end up +  # making bogus files that we don't know about and never remove.  For +  # instance it was reported that on HP-UX the gcc test will end up +  # making a dummy file named 'D' -- because '-MD' means "put the output +  # in D". +  rm -rf conftest.dir +  mkdir conftest.dir +  # Copy depcomp to subdir because otherwise we won't find it if we're +  # using a relative directory. +  cp "$am_depcomp" conftest.dir +  cd conftest.dir +  # We will build objects and dependencies in a subdirectory because +  # it helps to detect inapplicable dependency modes.  For instance +  # both Tru64's cc and ICC support -MD to output dependencies as a +  # side effect of compilation, but ICC will put the dependencies in +  # the current directory while Tru64 will put them in the object +  # directory. +  mkdir sub + +  am_cv_CC_dependencies_compiler_type=none +  if test "$am_compiler_list" = ""; then +     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` +  fi +  am__universal=false +  case " $depcc " in #( +     *\ -arch\ *\ -arch\ *) am__universal=true ;; +     esac + +  for depmode in $am_compiler_list; do +    # Setup a source with many dependencies, because some compilers +    # like to wrap large dependency lists on column 80 (with \), and +    # we should not choose a depcomp mode which is confused by this. +    # +    # We need to recreate these files for each test, as the compiler may +    # overwrite some of them when testing with obscure command lines. +    # This happens at least with the AIX C compiler. +    : > sub/conftest.c +    for i in 1 2 3 4 5 6; do +      echo '#include "conftst'$i'.h"' >> sub/conftest.c +      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with +      # Solaris 10 /bin/sh. +      echo '/* dummy */' > sub/conftst$i.h +    done +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + +    # We check with '-c' and '-o' for the sake of the "dashmstdout" +    # mode.  It turns out that the SunPro C++ compiler does not properly +    # handle '-M -o', and we need to detect this.  Also, some Intel +    # versions had trouble with output in subdirs. +    am__obj=sub/conftest.${OBJEXT-o} +    am__minus_obj="-o $am__obj" +    case $depmode in +    gcc) +      # This depmode causes a compiler race in universal mode. +      test "$am__universal" = false || continue +      ;; +    nosideeffect) +      # After this tag, mechanisms are not by side-effect, so they'll +      # only be used when explicitly requested. +      if test "x$enable_dependency_tracking" = xyes; then +	continue +      else +	break +      fi +      ;; +    msvc7 | msvc7msys | msvisualcpp | msvcmsys) +      # This compiler won't grok '-c -o', but also, the minuso test has +      # not run yet.  These depmodes are late enough in the game, and +      # so weak that their functioning should not be impacted. +      am__obj=conftest.${OBJEXT-o} +      am__minus_obj= +      ;; +    none) break ;; +    esac +    if depmode=$depmode \ +       source=sub/conftest.c object=$am__obj \ +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ +       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ +         >/dev/null 2>conftest.err && +       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && +       grep $am__obj sub/conftest.Po > /dev/null 2>&1 && +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then +      # icc doesn't choke on unknown options, it will just issue warnings +      # or remarks (even with -Werror).  So we grep stderr for any message +      # that says an option was ignored or not supported. +      # When given -MP, icc 7.0 and 7.1 complain thusly: +      #   icc: Command line warning: ignoring option '-M'; no argument required +      # The diagnosis changed in icc 8.0: +      #   icc: Command line remark: option '-MP' not supported +      if (grep 'ignoring option' conftest.err || +          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else +        am_cv_CC_dependencies_compiler_type=$depmode +        break +      fi +    fi +  done + +  cd .. +  rm -rf conftest.dir +else +  am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if +  test "x$enable_dependency_tracking" != xno \ +  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then +  am__fastdepCC_TRUE= +  am__fastdepCC_FALSE='#' +else +  am__fastdepCC_TRUE='#' +  am__fastdepCC_FALSE= +fi + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then +  CPP= +fi +if test -z "$CPP"; then +  if ${ac_cv_prog_CPP+:} false; then : +  $as_echo_n "(cached) " >&6 +else +      # Double quotes because CPP needs to be expanded +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" +    do +      ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do +  # Use a header file that comes with gcc, so configuring glibc +  # with a fresh cross-compiler works. +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since +  # <limits.h> exists even on freestanding compilers. +  # On the NeXT, cc -E runs the code through the compiler's parser, +  # not just through cpp. "Syntax error" is here to catch this case. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif +		     Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else +  # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +  # OK, works on sane cases.  Now check whether nonexistent headers +  # can be detected and how. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <ac_nonexistent.h> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : +  # Broken: success on invalid input. +continue +else +  # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : +  break +fi + +    done +    ac_cv_prog_CPP=$CPP + +fi +  CPP=$ac_cv_prog_CPP +else +  ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do +  # Use a header file that comes with gcc, so configuring glibc +  # with a fresh cross-compiler works. +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since +  # <limits.h> exists even on freestanding compilers. +  # On the NeXT, cc -E runs the code through the compiler's parser, +  # not just through cpp. "Syntax error" is here to catch this case. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif +		     Syntax error +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else +  # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +  # OK, works on sane cases.  Now check whether nonexistent headers +  # can be detected and how. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <ac_nonexistent.h> +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : +  # Broken: success on invalid input. +continue +else +  # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if ${ac_cv_path_GREP+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -z "$GREP"; then +  ac_path_GREP_found=false +  # Loop through the user's path and test for each of PROGNAME-LIST +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_prog in grep ggrep; do +    for ac_exec_ext in '' $ac_executable_extensions; do +      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" +      as_fn_executable_p "$ac_path_GREP" || continue +# Check for GNU ac_path_GREP and select it if it is found. +  # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) +  ac_count=0 +  $as_echo_n 0123456789 >"conftest.in" +  while : +  do +    cat "conftest.in" "conftest.in" >"conftest.tmp" +    mv "conftest.tmp" "conftest.in" +    cp "conftest.in" "conftest.nl" +    $as_echo 'GREP' >> "conftest.nl" +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break +    as_fn_arith $ac_count + 1 && ac_count=$as_val +    if test $ac_count -gt ${ac_path_GREP_max-0}; then +      # Best one so far, save it but keep looking for a better one +      ac_cv_path_GREP="$ac_path_GREP" +      ac_path_GREP_max=$ac_count +    fi +    # 10*(2^10) chars as input seems more than enough +    test $ac_count -gt 10 && break +  done +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + +      $ac_path_GREP_found && break 3 +    done +  done +  done +IFS=$as_save_IFS +  if test -z "$ac_cv_path_GREP"; then +    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 +  fi +else +  ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if ${ac_cv_path_EGREP+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 +   then ac_cv_path_EGREP="$GREP -E" +   else +     if test -z "$EGREP"; then +  ac_path_EGREP_found=false +  # Loop through the user's path and test for each of PROGNAME-LIST +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_prog in egrep; do +    for ac_exec_ext in '' $ac_executable_extensions; do +      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" +      as_fn_executable_p "$ac_path_EGREP" || continue +# Check for GNU ac_path_EGREP and select it if it is found. +  # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) +  ac_count=0 +  $as_echo_n 0123456789 >"conftest.in" +  while : +  do +    cat "conftest.in" "conftest.in" >"conftest.tmp" +    mv "conftest.tmp" "conftest.in" +    cp "conftest.in" "conftest.nl" +    $as_echo 'EGREP' >> "conftest.nl" +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break +    as_fn_arith $ac_count + 1 && ac_count=$as_val +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then +      # Best one so far, save it but keep looking for a better one +      ac_cv_path_EGREP="$ac_path_EGREP" +      ac_path_EGREP_max=$ac_count +    fi +    # 10*(2^10) chars as input seems more than enough +    test $ac_count -gt 10 && break +  done +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + +      $ac_path_EGREP_found && break 3 +    done +  done +  done +IFS=$as_save_IFS +  if test -z "$ac_cv_path_EGREP"; then +    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 +  fi +else +  ac_cv_path_EGREP=$EGREP +fi + +   fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if ${ac_cv_header_stdc+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdlib.h> +#include <stdarg.h> +#include <string.h> +#include <float.h> + +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_header_stdc=yes +else +  ac_cv_header_stdc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <string.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "memchr" >/dev/null 2>&1; then : + +else +  ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <stdlib.h> + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | +  $EGREP "free" >/dev/null 2>&1; then : + +else +  ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. +  if test "$cross_compiling" = yes; then : +  : +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <ctype.h> +#include <stdlib.h> +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ +		   (('a' <= (c) && (c) <= 'i') \ +		     || ('j' <= (c) && (c) <= 'r') \ +		     || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ +  int i; +  for (i = 0; i < 256; i++) +    if (XOR (islower (i), ISLOWER (i)) +	|| toupper (i) != TOUPPER (i)) +      return 2; +  return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else +  ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ +		  inttypes.h stdint.h unistd.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default +" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + +  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" +if test "x$ac_cv_header_minix_config_h" = xyes; then : +  MINIX=yes +else +  MINIX= +fi + + +  if test "$MINIX" = yes; then + +$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h + + +$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h + + +$as_echo "#define _MINIX 1" >>confdefs.h + +  fi + + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 +$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } +if ${ac_cv_safe_to_define___extensions__+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#         define __EXTENSIONS__ 1 +          $ac_includes_default +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_safe_to_define___extensions__=yes +else +  ac_cv_safe_to_define___extensions__=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 +$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } +  test $ac_cv_safe_to_define___extensions__ = yes && +    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h + +  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h + +  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h + +  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h + +  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler is Clang" >&5 +$as_echo_n "checking if the compiler is Clang... " >&6; } +if ${rra_cv_prog_cc_clang+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#if ! __clang__ +#error +#endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_prog_cc_clang=yes +else +  rra_cv_prog_cc_clang=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_prog_cc_clang" >&5 +$as_echo "$rra_cv_prog_cc_clang" >&6; } + if test x"$rra_cv_prog_cc_clang" = xyes; then : +  CLANG=yes +fi + + if test x"$CLANG" = xyes; then : +  WARNINGS_CFLAGS="-Werror" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Weverything" >&5 +$as_echo_n "checking if $CC supports -Weverything... " >&6; } + if ${rra_cv_compiler_c__Weverything+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Weverything in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Weverything" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Weverything" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Weverything=yes +else +  rra_cv_compiler_c__Weverything=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Weverything" >&5 +$as_echo "$rra_cv_compiler_c__Weverything" >&6; } + if test x"$rra_cv_compiler_c__Weverything" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Weverything" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-cast-qual" >&5 +$as_echo_n "checking if $CC supports -Wno-cast-qual... " >&6; } + if ${rra_cv_compiler_c__Wno_cast_qual+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-cast-qual in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-cast-qual" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-cast-qual" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_cast_qual=yes +else +  rra_cv_compiler_c__Wno_cast_qual=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_cast_qual" >&5 +$as_echo "$rra_cv_compiler_c__Wno_cast_qual" >&6; } + if test x"$rra_cv_compiler_c__Wno_cast_qual" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-cast-qual" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-disabled-macro-expansion" >&5 +$as_echo_n "checking if $CC supports -Wno-disabled-macro-expansion... " >&6; } + if ${rra_cv_compiler_c__Wno_disabled_macro_expansion+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-disabled-macro-expansion in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-disabled-macro-expansion" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-disabled-macro-expansion" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_disabled_macro_expansion=yes +else +  rra_cv_compiler_c__Wno_disabled_macro_expansion=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_disabled_macro_expansion" >&5 +$as_echo "$rra_cv_compiler_c__Wno_disabled_macro_expansion" >&6; } + if test x"$rra_cv_compiler_c__Wno_disabled_macro_expansion" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-disabled-macro-expansion" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-padded" >&5 +$as_echo_n "checking if $CC supports -Wno-padded... " >&6; } + if ${rra_cv_compiler_c__Wno_padded+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-padded in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-padded" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-padded" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_padded=yes +else +  rra_cv_compiler_c__Wno_padded=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_padded" >&5 +$as_echo "$rra_cv_compiler_c__Wno_padded" >&6; } + if test x"$rra_cv_compiler_c__Wno_padded" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-padded" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5 +$as_echo_n "checking if $CC supports -Wno-sign-conversion... " >&6; } + if ${rra_cv_compiler_c__Wno_sign_conversion+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-sign-conversion in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-sign-conversion" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_sign_conversion=yes +else +  rra_cv_compiler_c__Wno_sign_conversion=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5 +$as_echo "$rra_cv_compiler_c__Wno_sign_conversion" >&6; } + if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-reserved-id-macro" >&5 +$as_echo_n "checking if $CC supports -Wno-reserved-id-macro... " >&6; } + if ${rra_cv_compiler_c__Wno_reserved_id_macro+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-reserved-id-macro in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-reserved-id-macro" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-reserved-id-macro" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_reserved_id_macro=yes +else +  rra_cv_compiler_c__Wno_reserved_id_macro=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_reserved_id_macro" >&5 +$as_echo "$rra_cv_compiler_c__Wno_reserved_id_macro" >&6; } + if test x"$rra_cv_compiler_c__Wno_reserved_id_macro" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-reserved-id-macro" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-tautological-pointer-compare" >&5 +$as_echo_n "checking if $CC supports -Wno-tautological-pointer-compare... " >&6; } + if ${rra_cv_compiler_c__Wno_tautological_pointer_compare+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-tautological-pointer-compare in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-tautological-pointer-compare" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-tautological-pointer-compare" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_tautological_pointer_compare=yes +else +  rra_cv_compiler_c__Wno_tautological_pointer_compare=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_tautological_pointer_compare" >&5 +$as_echo "$rra_cv_compiler_c__Wno_tautological_pointer_compare" >&6; } + if test x"$rra_cv_compiler_c__Wno_tautological_pointer_compare" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-tautological-pointer-compare" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-undef" >&5 +$as_echo_n "checking if $CC supports -Wno-undef... " >&6; } + if ${rra_cv_compiler_c__Wno_undef+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-undef in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-undef" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-undef" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_undef=yes +else +  rra_cv_compiler_c__Wno_undef=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_undef" >&5 +$as_echo "$rra_cv_compiler_c__Wno_undef" >&6; } + if test x"$rra_cv_compiler_c__Wno_undef" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-undef" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code" >&5 +$as_echo_n "checking if $CC supports -Wno-unreachable-code... " >&6; } + if ${rra_cv_compiler_c__Wno_unreachable_code+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-unreachable-code in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-unreachable-code" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-unreachable-code" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_unreachable_code=yes +else +  rra_cv_compiler_c__Wno_unreachable_code=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code" >&5 +$as_echo "$rra_cv_compiler_c__Wno_unreachable_code" >&6; } + if test x"$rra_cv_compiler_c__Wno_unreachable_code" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code-return" >&5 +$as_echo_n "checking if $CC supports -Wno-unreachable-code-return... " >&6; } + if ${rra_cv_compiler_c__Wno_unreachable_code_return+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-unreachable-code-return in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-unreachable-code-return" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-unreachable-code-return" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_unreachable_code_return=yes +else +  rra_cv_compiler_c__Wno_unreachable_code_return=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code_return" >&5 +$as_echo "$rra_cv_compiler_c__Wno_unreachable_code_return" >&6; } + if test x"$rra_cv_compiler_c__Wno_unreachable_code_return" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code-return" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unused-macros" >&5 +$as_echo_n "checking if $CC supports -Wno-unused-macros... " >&6; } + if ${rra_cv_compiler_c__Wno_unused_macros+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-unused-macros in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-unused-macros" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-unused-macros" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_unused_macros=yes +else +  rra_cv_compiler_c__Wno_unused_macros=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unused_macros" >&5 +$as_echo "$rra_cv_compiler_c__Wno_unused_macros" >&6; } + if test x"$rra_cv_compiler_c__Wno_unused_macros" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unused-macros" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-used-but-marked-unused" >&5 +$as_echo_n "checking if $CC supports -Wno-used-but-marked-unused... " >&6; } + if ${rra_cv_compiler_c__Wno_used_but_marked_unused+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-used-but-marked-unused in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-used-but-marked-unused" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-used-but-marked-unused" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_used_but_marked_unused=yes +else +  rra_cv_compiler_c__Wno_used_but_marked_unused=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_used_but_marked_unused" >&5 +$as_echo "$rra_cv_compiler_c__Wno_used_but_marked_unused" >&6; } + if test x"$rra_cv_compiler_c__Wno_used_but_marked_unused" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-used-but-marked-unused" +fi +else +  WARNINGS_CFLAGS="-g -O2 -D_FORTIFY_SOURCE=2 -Werror" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow" >&5 +$as_echo_n "checking if $CC supports -fstrict-overflow... " >&6; } + if ${rra_cv_compiler_c__fstrict_overflow+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -fstrict-overflow in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-fstrict-overflow" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -fstrict-overflow" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__fstrict_overflow=yes +else +  rra_cv_compiler_c__fstrict_overflow=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_overflow" >&5 +$as_echo "$rra_cv_compiler_c__fstrict_overflow" >&6; } + if test x"$rra_cv_compiler_c__fstrict_overflow" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-overflow" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-aliasing" >&5 +$as_echo_n "checking if $CC supports -fstrict-aliasing... " >&6; } + if ${rra_cv_compiler_c__fstrict_aliasing+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -fstrict-aliasing in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-fstrict-aliasing" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -fstrict-aliasing" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__fstrict_aliasing=yes +else +  rra_cv_compiler_c__fstrict_aliasing=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_aliasing" >&5 +$as_echo "$rra_cv_compiler_c__fstrict_aliasing" >&6; } + if test x"$rra_cv_compiler_c__fstrict_aliasing" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-aliasing" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 +$as_echo_n "checking if $CC supports -Wall... " >&6; } + if ${rra_cv_compiler_c__Wall+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wall in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wall" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wall" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wall=yes +else +  rra_cv_compiler_c__Wall=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wall" >&5 +$as_echo "$rra_cv_compiler_c__Wall" >&6; } + if test x"$rra_cv_compiler_c__Wall" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wall" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wextra" >&5 +$as_echo_n "checking if $CC supports -Wextra... " >&6; } + if ${rra_cv_compiler_c__Wextra+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wextra in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wextra" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wextra" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wextra=yes +else +  rra_cv_compiler_c__Wextra=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wextra" >&5 +$as_echo "$rra_cv_compiler_c__Wextra" >&6; } + if test x"$rra_cv_compiler_c__Wextra" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wextra" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 +$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } + if ${rra_cv_compiler_c__Wformat_2+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wformat=2 in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wformat=2" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wformat=2" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wformat_2=yes +else +  rra_cv_compiler_c__Wformat_2=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_2" >&5 +$as_echo "$rra_cv_compiler_c__Wformat_2" >&6; } + if test x"$rra_cv_compiler_c__Wformat_2" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat=2" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-overflow=2" >&5 +$as_echo_n "checking if $CC supports -Wformat-overflow=2... " >&6; } + if ${rra_cv_compiler_c__Wformat_overflow_2+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wformat-overflow=2 in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wformat-overflow=2" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wformat-overflow=2" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wformat_overflow_2=yes +else +  rra_cv_compiler_c__Wformat_overflow_2=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_overflow_2" >&5 +$as_echo "$rra_cv_compiler_c__Wformat_overflow_2" >&6; } + if test x"$rra_cv_compiler_c__Wformat_overflow_2" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-overflow=2" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-signedness" >&5 +$as_echo_n "checking if $CC supports -Wformat-signedness... " >&6; } + if ${rra_cv_compiler_c__Wformat_signedness+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wformat-signedness in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wformat-signedness" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wformat-signedness" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wformat_signedness=yes +else +  rra_cv_compiler_c__Wformat_signedness=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_signedness" >&5 +$as_echo "$rra_cv_compiler_c__Wformat_signedness" >&6; } + if test x"$rra_cv_compiler_c__Wformat_signedness" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-signedness" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-truncation=2" >&5 +$as_echo_n "checking if $CC supports -Wformat-truncation=2... " >&6; } + if ${rra_cv_compiler_c__Wformat_truncation_2+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wformat-truncation=2 in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wformat-truncation=2" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wformat-truncation=2" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wformat_truncation_2=yes +else +  rra_cv_compiler_c__Wformat_truncation_2=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_truncation_2" >&5 +$as_echo "$rra_cv_compiler_c__Wformat_truncation_2" >&6; } + if test x"$rra_cv_compiler_c__Wformat_truncation_2" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-truncation=2" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnull-dereference" >&5 +$as_echo_n "checking if $CC supports -Wnull-dereference... " >&6; } + if ${rra_cv_compiler_c__Wnull_dereference+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wnull-dereference in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wnull-dereference" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wnull-dereference" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wnull_dereference=yes +else +  rra_cv_compiler_c__Wnull_dereference=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnull_dereference" >&5 +$as_echo "$rra_cv_compiler_c__Wnull_dereference" >&6; } + if test x"$rra_cv_compiler_c__Wnull_dereference" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnull-dereference" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 +$as_echo_n "checking if $CC supports -Winit-self... " >&6; } + if ${rra_cv_compiler_c__Winit_self+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Winit-self in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Winit-self" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Winit-self" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Winit_self=yes +else +  rra_cv_compiler_c__Winit_self=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winit_self" >&5 +$as_echo "$rra_cv_compiler_c__Winit_self" >&6; } + if test x"$rra_cv_compiler_c__Winit_self" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winit-self" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wswitch-enum" >&5 +$as_echo_n "checking if $CC supports -Wswitch-enum... " >&6; } + if ${rra_cv_compiler_c__Wswitch_enum+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wswitch-enum in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wswitch-enum" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wswitch-enum" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wswitch_enum=yes +else +  rra_cv_compiler_c__Wswitch_enum=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wswitch_enum" >&5 +$as_echo "$rra_cv_compiler_c__Wswitch_enum" >&6; } + if test x"$rra_cv_compiler_c__Wswitch_enum" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wswitch-enum" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-overflow=5" >&5 +$as_echo_n "checking if $CC supports -Wstrict-overflow=5... " >&6; } + if ${rra_cv_compiler_c__Wstrict_overflow_5+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wstrict-overflow=5 in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wstrict-overflow=5" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wstrict-overflow=5" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wstrict_overflow_5=yes +else +  rra_cv_compiler_c__Wstrict_overflow_5=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_overflow_5" >&5 +$as_echo "$rra_cv_compiler_c__Wstrict_overflow_5" >&6; } + if test x"$rra_cv_compiler_c__Wstrict_overflow_5" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-overflow=5" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 +$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } + if ${rra_cv_compiler_c__Wmissing_format_attribute+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wmissing-format-attribute in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wmissing-format-attribute" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wmissing-format-attribute" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wmissing_format_attribute=yes +else +  rra_cv_compiler_c__Wmissing_format_attribute=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_format_attribute" >&5 +$as_echo "$rra_cv_compiler_c__Wmissing_format_attribute" >&6; } + if test x"$rra_cv_compiler_c__Wmissing_format_attribute" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-format-attribute" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Walloc-zero" >&5 +$as_echo_n "checking if $CC supports -Walloc-zero... " >&6; } + if ${rra_cv_compiler_c__Walloc_zero+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Walloc-zero in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Walloc-zero" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Walloc-zero" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Walloc_zero=yes +else +  rra_cv_compiler_c__Walloc_zero=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Walloc_zero" >&5 +$as_echo "$rra_cv_compiler_c__Walloc_zero" >&6; } + if test x"$rra_cv_compiler_c__Walloc_zero" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Walloc-zero" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-branches" >&5 +$as_echo_n "checking if $CC supports -Wduplicated-branches... " >&6; } + if ${rra_cv_compiler_c__Wduplicated_branches+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wduplicated-branches in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wduplicated-branches" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wduplicated-branches" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wduplicated_branches=yes +else +  rra_cv_compiler_c__Wduplicated_branches=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_branches" >&5 +$as_echo "$rra_cv_compiler_c__Wduplicated_branches" >&6; } + if test x"$rra_cv_compiler_c__Wduplicated_branches" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-branches" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-cond" >&5 +$as_echo_n "checking if $CC supports -Wduplicated-cond... " >&6; } + if ${rra_cv_compiler_c__Wduplicated_cond+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wduplicated-cond in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wduplicated-cond" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wduplicated-cond" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wduplicated_cond=yes +else +  rra_cv_compiler_c__Wduplicated_cond=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_cond" >&5 +$as_echo "$rra_cv_compiler_c__Wduplicated_cond" >&6; } + if test x"$rra_cv_compiler_c__Wduplicated_cond" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-cond" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrampolines" >&5 +$as_echo_n "checking if $CC supports -Wtrampolines... " >&6; } + if ${rra_cv_compiler_c__Wtrampolines+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wtrampolines in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wtrampolines" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wtrampolines" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wtrampolines=yes +else +  rra_cv_compiler_c__Wtrampolines=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wtrampolines" >&5 +$as_echo "$rra_cv_compiler_c__Wtrampolines" >&6; } + if test x"$rra_cv_compiler_c__Wtrampolines" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wtrampolines" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wfloat-equal" >&5 +$as_echo_n "checking if $CC supports -Wfloat-equal... " >&6; } + if ${rra_cv_compiler_c__Wfloat_equal+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wfloat-equal in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wfloat-equal" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wfloat-equal" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wfloat_equal=yes +else +  rra_cv_compiler_c__Wfloat_equal=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wfloat_equal" >&5 +$as_echo "$rra_cv_compiler_c__Wfloat_equal" >&6; } + if test x"$rra_cv_compiler_c__Wfloat_equal" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wfloat-equal" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 +$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } + if ${rra_cv_compiler_c__Wdeclaration_after_statement+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wdeclaration-after-statement in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wdeclaration-after-statement" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wdeclaration-after-statement" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wdeclaration_after_statement=yes +else +  rra_cv_compiler_c__Wdeclaration_after_statement=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdeclaration_after_statement" >&5 +$as_echo "$rra_cv_compiler_c__Wdeclaration_after_statement" >&6; } + if test x"$rra_cv_compiler_c__Wdeclaration_after_statement" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdeclaration-after-statement" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 +$as_echo_n "checking if $CC supports -Wshadow... " >&6; } + if ${rra_cv_compiler_c__Wshadow+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wshadow in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wshadow" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wshadow" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wshadow=yes +else +  rra_cv_compiler_c__Wshadow=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wshadow" >&5 +$as_echo "$rra_cv_compiler_c__Wshadow" >&6; } + if test x"$rra_cv_compiler_c__Wshadow" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wshadow" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 +$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } + if ${rra_cv_compiler_c__Wpointer_arith+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wpointer-arith in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wpointer-arith" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wpointer-arith" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wpointer_arith=yes +else +  rra_cv_compiler_c__Wpointer_arith=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpointer_arith" >&5 +$as_echo "$rra_cv_compiler_c__Wpointer_arith" >&6; } + if test x"$rra_cv_compiler_c__Wpointer_arith" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpointer-arith" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 +$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } + if ${rra_cv_compiler_c__Wbad_function_cast+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wbad-function-cast in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wbad-function-cast" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wbad-function-cast" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wbad_function_cast=yes +else +  rra_cv_compiler_c__Wbad_function_cast=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wbad_function_cast" >&5 +$as_echo "$rra_cv_compiler_c__Wbad_function_cast" >&6; } + if test x"$rra_cv_compiler_c__Wbad_function_cast" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wbad-function-cast" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-align" >&5 +$as_echo_n "checking if $CC supports -Wcast-align... " >&6; } + if ${rra_cv_compiler_c__Wcast_align+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wcast-align in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wcast-align" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wcast-align" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wcast_align=yes +else +  rra_cv_compiler_c__Wcast_align=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wcast_align" >&5 +$as_echo "$rra_cv_compiler_c__Wcast_align" >&6; } + if test x"$rra_cv_compiler_c__Wcast_align" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wcast-align" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 +$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } + if ${rra_cv_compiler_c__Wwrite_strings+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wwrite-strings in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wwrite-strings" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wwrite-strings" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wwrite_strings=yes +else +  rra_cv_compiler_c__Wwrite_strings=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wwrite_strings" >&5 +$as_echo "$rra_cv_compiler_c__Wwrite_strings" >&6; } + if test x"$rra_cv_compiler_c__Wwrite_strings" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wwrite-strings" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wconversion" >&5 +$as_echo_n "checking if $CC supports -Wconversion... " >&6; } + if ${rra_cv_compiler_c__Wconversion+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wconversion in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wconversion" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wconversion" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wconversion=yes +else +  rra_cv_compiler_c__Wconversion=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wconversion" >&5 +$as_echo "$rra_cv_compiler_c__Wconversion" >&6; } + if test x"$rra_cv_compiler_c__Wconversion" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wconversion" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5 +$as_echo_n "checking if $CC supports -Wno-sign-conversion... " >&6; } + if ${rra_cv_compiler_c__Wno_sign_conversion+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wno-sign-conversion in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wno-sign-conversion" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wno_sign_conversion=yes +else +  rra_cv_compiler_c__Wno_sign_conversion=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5 +$as_echo "$rra_cv_compiler_c__Wno_sign_conversion" >&6; } + if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdate-time" >&5 +$as_echo_n "checking if $CC supports -Wdate-time... " >&6; } + if ${rra_cv_compiler_c__Wdate_time+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wdate-time in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wdate-time" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wdate-time" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wdate_time=yes +else +  rra_cv_compiler_c__Wdate_time=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdate_time" >&5 +$as_echo "$rra_cv_compiler_c__Wdate_time" >&6; } + if test x"$rra_cv_compiler_c__Wdate_time" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdate-time" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wjump-misses-init" >&5 +$as_echo_n "checking if $CC supports -Wjump-misses-init... " >&6; } + if ${rra_cv_compiler_c__Wjump_misses_init+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wjump-misses-init in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wjump-misses-init" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wjump-misses-init" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wjump_misses_init=yes +else +  rra_cv_compiler_c__Wjump_misses_init=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wjump_misses_init" >&5 +$as_echo "$rra_cv_compiler_c__Wjump_misses_init" >&6; } + if test x"$rra_cv_compiler_c__Wjump_misses_init" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wjump-misses-init" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 +$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } + if ${rra_cv_compiler_c__Wlogical_op+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wlogical-op in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wlogical-op" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wlogical-op" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wlogical_op=yes +else +  rra_cv_compiler_c__Wlogical_op=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wlogical_op" >&5 +$as_echo "$rra_cv_compiler_c__Wlogical_op" >&6; } + if test x"$rra_cv_compiler_c__Wlogical_op" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wlogical-op" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 +$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } + if ${rra_cv_compiler_c__Wstrict_prototypes+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wstrict-prototypes in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wstrict-prototypes" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wstrict-prototypes" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wstrict_prototypes=yes +else +  rra_cv_compiler_c__Wstrict_prototypes=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_prototypes" >&5 +$as_echo "$rra_cv_compiler_c__Wstrict_prototypes" >&6; } + if test x"$rra_cv_compiler_c__Wstrict_prototypes" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-prototypes" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 +$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } + if ${rra_cv_compiler_c__Wold_style_definition+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wold-style-definition in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wold-style-definition" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wold-style-definition" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wold_style_definition=yes +else +  rra_cv_compiler_c__Wold_style_definition=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wold_style_definition" >&5 +$as_echo "$rra_cv_compiler_c__Wold_style_definition" >&6; } + if test x"$rra_cv_compiler_c__Wold_style_definition" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wold-style-definition" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 +$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } + if ${rra_cv_compiler_c__Wmissing_prototypes+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wmissing-prototypes in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wmissing-prototypes" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wmissing-prototypes" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wmissing_prototypes=yes +else +  rra_cv_compiler_c__Wmissing_prototypes=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_prototypes" >&5 +$as_echo "$rra_cv_compiler_c__Wmissing_prototypes" >&6; } + if test x"$rra_cv_compiler_c__Wmissing_prototypes" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-prototypes" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 +$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } + if ${rra_cv_compiler_c__Wmissing_declarations+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wmissing-declarations in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wmissing-declarations" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wmissing-declarations" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wmissing_declarations=yes +else +  rra_cv_compiler_c__Wmissing_declarations=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_declarations" >&5 +$as_echo "$rra_cv_compiler_c__Wmissing_declarations" >&6; } + if test x"$rra_cv_compiler_c__Wmissing_declarations" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-declarations" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnormalized=nfc" >&5 +$as_echo_n "checking if $CC supports -Wnormalized=nfc... " >&6; } + if ${rra_cv_compiler_c__Wnormalized_nfc+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wnormalized=nfc in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wnormalized=nfc" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wnormalized=nfc" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wnormalized_nfc=yes +else +  rra_cv_compiler_c__Wnormalized_nfc=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnormalized_nfc" >&5 +$as_echo "$rra_cv_compiler_c__Wnormalized_nfc" >&6; } + if test x"$rra_cv_compiler_c__Wnormalized_nfc" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnormalized=nfc" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpacked" >&5 +$as_echo_n "checking if $CC supports -Wpacked... " >&6; } + if ${rra_cv_compiler_c__Wpacked+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wpacked in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wpacked" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wpacked" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wpacked=yes +else +  rra_cv_compiler_c__Wpacked=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpacked" >&5 +$as_echo "$rra_cv_compiler_c__Wpacked" >&6; } + if test x"$rra_cv_compiler_c__Wpacked" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpacked" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 +$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } + if ${rra_cv_compiler_c__Wredundant_decls+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wredundant-decls in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wredundant-decls" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wredundant-decls" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wredundant_decls=yes +else +  rra_cv_compiler_c__Wredundant_decls=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wredundant_decls" >&5 +$as_echo "$rra_cv_compiler_c__Wredundant_decls" >&6; } + if test x"$rra_cv_compiler_c__Wredundant_decls" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wredundant-decls" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wrestrict" >&5 +$as_echo_n "checking if $CC supports -Wrestrict... " >&6; } + if ${rra_cv_compiler_c__Wrestrict+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wrestrict in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wrestrict" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wrestrict" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wrestrict=yes +else +  rra_cv_compiler_c__Wrestrict=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wrestrict" >&5 +$as_echo "$rra_cv_compiler_c__Wrestrict" >&6; } + if test x"$rra_cv_compiler_c__Wrestrict" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wrestrict" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 +$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } + if ${rra_cv_compiler_c__Wnested_externs+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wnested-externs in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wnested-externs" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wnested-externs" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wnested_externs=yes +else +  rra_cv_compiler_c__Wnested_externs=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnested_externs" >&5 +$as_echo "$rra_cv_compiler_c__Wnested_externs" >&6; } + if test x"$rra_cv_compiler_c__Wnested_externs" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnested-externs" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winline" >&5 +$as_echo_n "checking if $CC supports -Winline... " >&6; } + if ${rra_cv_compiler_c__Winline+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Winline in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Winline" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Winline" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Winline=yes +else +  rra_cv_compiler_c__Winline=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winline" >&5 +$as_echo "$rra_cv_compiler_c__Winline" >&6; } + if test x"$rra_cv_compiler_c__Winline" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winline" +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wvla" >&5 +$as_echo_n "checking if $CC supports -Wvla... " >&6; } + if ${rra_cv_compiler_c__Wvla+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  save_CFLAGS=$CFLAGS +     case -Wvla in #( +  -Wno-*) : +    CFLAGS="$CFLAGS `echo "-Wvla" | sed 's/-Wno-/-W/'`" ;; #( +  *) : +    CFLAGS="$CFLAGS -Wvla" ;; #( +  *) : +     ;; +esac +     cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +int +main () +{ +int foo = 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_compiler_c__Wvla=yes +else +  rra_cv_compiler_c__Wvla=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +     CFLAGS=$save_CFLAGS +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wvla" >&5 +$as_echo "$rra_cv_compiler_c__Wvla" >&6; } + if test x"$rra_cv_compiler_c__Wvla" = xyes; then : +  WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wvla" +fi +fi + +# Check whether --enable-largefile was given. +if test "${enable_largefile+set}" = set; then : +  enableval=$enable_largefile; +fi + +if test "$enable_largefile" != no; then + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +$as_echo_n "checking for special C compiler options needed for large files... " >&6; } +if ${ac_cv_sys_largefile_CC+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_cv_sys_largefile_CC=no +     if test "$GCC" != yes; then +       ac_save_CC=$CC +       while :; do +	 # IRIX 6.2 and later do not support large files by default, +	 # so use the C compiler's -n32 option if that helps. +	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <sys/types.h> + /* Check that off_t can represent 2**63 - 1 correctly. +    We can't simply define LARGE_OFF_T to be 9223372036854775807, +    since some C++ compilers masquerading as C compilers +    incorrectly reject 9223372036854775807.  */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +		       && LARGE_OFF_T % 2147483647 == 1) +		      ? 1 : -1]; +int +main () +{ + +  ; +  return 0; +} +_ACEOF +	 if ac_fn_c_try_compile "$LINENO"; then : +  break +fi +rm -f core conftest.err conftest.$ac_objext +	 CC="$CC -n32" +	 if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_sys_largefile_CC=' -n32'; break +fi +rm -f core conftest.err conftest.$ac_objext +	 break +       done +       CC=$ac_save_CC +       rm -f conftest.$ac_ext +    fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +$as_echo "$ac_cv_sys_largefile_CC" >&6; } +  if test "$ac_cv_sys_largefile_CC" != no; then +    CC=$CC$ac_cv_sys_largefile_CC +  fi + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if ${ac_cv_sys_file_offset_bits+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  while :; do +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <sys/types.h> + /* Check that off_t can represent 2**63 - 1 correctly. +    We can't simply define LARGE_OFF_T to be 9223372036854775807, +    since some C++ compilers masquerading as C compilers +    incorrectly reject 9223372036854775807.  */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +		       && LARGE_OFF_T % 2147483647 == 1) +		      ? 1 : -1]; +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_sys_file_offset_bits=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#define _FILE_OFFSET_BITS 64 +#include <sys/types.h> + /* Check that off_t can represent 2**63 - 1 correctly. +    We can't simply define LARGE_OFF_T to be 9223372036854775807, +    since some C++ compilers masquerading as C compilers +    incorrectly reject 9223372036854775807.  */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +		       && LARGE_OFF_T % 2147483647 == 1) +		      ? 1 : -1]; +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_sys_file_offset_bits=64; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +  ac_cv_sys_file_offset_bits=unknown +  break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +case $ac_cv_sys_file_offset_bits in #( +  no | unknown) ;; +  *) +cat >>confdefs.h <<_ACEOF +#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits +_ACEOF +;; +esac +rm -rf conftest* +  if test $ac_cv_sys_file_offset_bits = unknown; then +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } +if ${ac_cv_sys_large_files+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  while :; do +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <sys/types.h> + /* Check that off_t can represent 2**63 - 1 correctly. +    We can't simply define LARGE_OFF_T to be 9223372036854775807, +    since some C++ compilers masquerading as C compilers +    incorrectly reject 9223372036854775807.  */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +		       && LARGE_OFF_T % 2147483647 == 1) +		      ? 1 : -1]; +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_sys_large_files=no; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#define _LARGE_FILES 1 +#include <sys/types.h> + /* Check that off_t can represent 2**63 - 1 correctly. +    We can't simply define LARGE_OFF_T to be 9223372036854775807, +    since some C++ compilers masquerading as C compilers +    incorrectly reject 9223372036854775807.  */ +#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) +  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 +		       && LARGE_OFF_T % 2147483647 == 1) +		      ? 1 : -1]; +int +main () +{ + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_sys_large_files=1; break +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +  ac_cv_sys_large_files=unknown +  break +done +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +$as_echo "$ac_cv_sys_large_files" >&6; } +case $ac_cv_sys_large_files in #( +  no | unknown) ;; +  *) +cat >>confdefs.h <<_ACEOF +#define _LARGE_FILES $ac_cv_sys_large_files +_ACEOF +;; +esac +rm -rf conftest* +  fi + + +fi + + +if test -n "$ac_tool_prefix"; then +  for ac_prog in ar lib "link -lib" +  do +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$AR"; then +  ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_AR="$ac_tool_prefix$ac_prog" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +    test -n "$AR" && break +  done +fi +if test -z "$AR"; then +  ac_ct_AR=$AR +  for ac_prog in ar lib "link -lib" +do +  # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$ac_ct_AR"; then +  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_ac_ct_AR="$ac_prog" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +  test -n "$ac_ct_AR" && break +done + +  if test "x$ac_ct_AR" = x; then +    AR="false" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    AR=$ac_ct_AR +  fi +fi + +: ${AR=ar} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 +$as_echo_n "checking the archiver ($AR) interface... " >&6; } +if ${am_cv_ar_interface+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +   am_cv_ar_interface=ar +   cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +int some_variable = 0; +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' +      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 +  (eval $am_ar_try) 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; } +      if test "$ac_status" -eq 0; then +        am_cv_ar_interface=ar +      else +        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' +        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 +  (eval $am_ar_try) 2>&5 +  ac_status=$? +  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 +  test $ac_status = 0; } +        if test "$ac_status" -eq 0; then +          am_cv_ar_interface=lib +        else +          am_cv_ar_interface=unknown +        fi +      fi +      rm -f conftest.lib libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +   ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 +$as_echo "$am_cv_ar_interface" >&6; } + +case $am_cv_ar_interface in +ar) +  ;; +lib) +  # Microsoft lib, so override with the ar-lib wrapper script. +  # FIXME: It is wrong to rewrite AR. +  # But if we don't then we get into trouble of one sort or another. +  # A longer-term fix would be to have automake use am__AR in this case, +  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something +  # similar. +  AR="$am_aux_dir/ar-lib $AR" +  ;; +unknown) +  as_fn_error $? "could not determine $AR interface" "$LINENO" 5 +  ;; +esac + + +if test -n "$ac_tool_prefix"; then +  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$RANLIB"; then +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then +  ac_ct_RANLIB=$RANLIB +  # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -n "$ac_ct_RANLIB"; then +  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_prog_ac_ct_RANLIB="ranlib" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +  if test "x$ac_ct_RANLIB" = x; then +    RANLIB=":" +  else +    case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac +    RANLIB=$ac_ct_RANLIB +  fi +else +  RANLIB="$ac_cv_prog_RANLIB" +fi + + + + +# Check whether --with-wallet-server was given. +if test "${with_wallet_server+set}" = set; then : +  withval=$with_wallet_server; if test x"$withval" != xno && test x"$withval" != xyes; then : + +cat >>confdefs.h <<_ACEOF +#define WALLET_SERVER "$withval" +_ACEOF + +fi +fi + + +# Check whether --with-wallet-port was given. +if test "${with_wallet_port+set}" = set; then : +  withval=$with_wallet_port; if test x"$withval" != xno && test x"$withval" != xyes; then : + +cat >>confdefs.h <<_ACEOF +#define WALLET_PORT $withval +_ACEOF + +fi +fi + + + + if test x"$PERL" != x; then : +  if ! test -x "$PERL"; then : +  as_fn_error $? "Perl binary $PERL not found" "$LINENO" 5 +fi +     if ! "$PERL" -e 'use 5.008' >/dev/null 2>&1; then : +  as_fn_error $? "Perl 5.008 or greater is required" "$LINENO" 5 +fi +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl version 5.008 or later" >&5 +$as_echo_n "checking for Perl version 5.008 or later... " >&6; } +if ${ac_cv_path_PERL+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test -z "$PERL"; then +  ac_path_PERL_found=false +  # Loop through the user's path and test for each of PROGNAME-LIST +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_prog in perl; do +    for ac_exec_ext in '' $ac_executable_extensions; do +      ac_path_PERL="$as_dir/$ac_prog$ac_exec_ext" +      as_fn_executable_p "$ac_path_PERL" || continue +if "$ac_path_PERL" -e 'require 5.008' >/dev/null 2>&1; then : +  ac_cv_path_PERL="$ac_path_PERL" +                 ac_path_PERL_found=: +fi +      $ac_path_PERL_found && break 3 +    done +  done +  done +IFS=$as_save_IFS +  if test -z "$ac_cv_path_PERL"; then +    : +  fi +else +  ac_cv_path_PERL=$PERL +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 +$as_echo "$ac_cv_path_PERL" >&6; } +     if test x"$ac_cv_path_PERL" = x; then : +  as_fn_error $? "Perl 5.008 or greater is required" "$LINENO" 5 +fi +     PERL="$ac_cv_path_PERL" + +fi + +rra_reduced_depends=false +# Check whether --enable-reduced-depends was given. +if test "${enable_reduced_depends+set}" = set; then : +  enableval=$enable_reduced_depends; if test x"$enableval" = xyes; then : +  rra_reduced_depends=true +fi +fi + +rra_lib_arch_name=lib + # The cast to long int works around a bug in the HP C Compiler +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. +# This bug is HP SR number 8606223364. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +$as_echo_n "checking size of long... " >&6; } +if ${ac_cv_sizeof_long+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then : + +else +  if test "$ac_cv_type_long" = yes; then +     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } +   else +     ac_cv_sizeof_long=0 +   fi +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +$as_echo "$ac_cv_sizeof_long" >&6; } + + + +cat >>confdefs.h <<_ACEOF +#define SIZEOF_LONG $ac_cv_sizeof_long +_ACEOF + + + if test "$ac_cv_sizeof_long" -eq 4 && test -d /usr/lib32; then : +  rra_lib_arch_name=lib32 +else +  if test "$ac_cv_sizeof_long" -eq 8 && test -d /usr/lib64; then : +  rra_lib_arch_name=lib64 +fi +fi +rra_remctl_root= + rra_remctl_libdir= + rra_remctl_includedir= + rra_use_remctl=true + REMCTL_CPPFLAGS= + REMCTL_LDFLAGS= + REMCTL_LIBS= + + + + + +# Check whether --with-remctl was given. +if test "${with_remctl+set}" = set; then : +  withval=$with_remctl; if test x"$withval" != xyes && test x"$withval" != xno; then : +  rra_remctl_root="$withval" +fi +fi + + +# Check whether --with-remctl-include was given. +if test "${with_remctl_include+set}" = set; then : +  withval=$with_remctl_include; if test x"$withval" != xyes && test x"$withval" != xno; then : +  rra_remctl_includedir="$withval" +fi +fi + + +# Check whether --with-remctl-lib was given. +if test "${with_remctl_lib+set}" = set; then : +  withval=$with_remctl_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : +  rra_remctl_libdir="$withval" +fi +fi + + + if test x"$rra_remctl_libdir" != x; then : +  REMCTL_LDFLAGS="-L$rra_remctl_libdir" +else +  if test x"$rra_remctl_root" != x; then : + + if test -d "$rra_remctl_root/$rra_lib_arch_name"; then : +  if test x"" = x; then : +  REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/${rra_lib_arch_name}" +else +  REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/${rra_lib_arch_name}/" +fi +else +  if test x"" = x; then : +  REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/lib" +else +  REMCTL_LDFLAGS="$REMCTL_LDFLAGS -L$rra_remctl_root/lib/" +fi +fi + REMCTL_LDFLAGS=`echo "$REMCTL_LDFLAGS" | sed -e 's/^ *//'` +fi +fi + if test x"$rra_remctl_includedir" != x; then : +  REMCTL_CPPFLAGS="-I$rra_remctl_includedir" +else +  if test x"$rra_remctl_root" != x; then : +  if test x"$rra_remctl_root" != x/usr; then : +  REMCTL_CPPFLAGS="-I${rra_remctl_root}/include" +fi +fi +fi + if test x"$rra_reduced_depends" = xtrue; then : +  REMCTL_LIBS="-lremctl" +else + + rra_gssapi_root= + rra_gssapi_libdir= + rra_gssapi_includedir= + GSSAPI_CPPFLAGS= + GSSAPI_LDFLAGS= + GSSAPI_LIBS= + + + + + +# Check whether --with-gssapi was given. +if test "${with_gssapi+set}" = set; then : +  withval=$with_gssapi; if test x"$withval" != xyes && test x"$withval" != xno; then : +  rra_gssapi_root="$withval" +fi +fi + + +# Check whether --with-gssapi-include was given. +if test "${with_gssapi_include+set}" = set; then : +  withval=$with_gssapi_include; if test x"$withval" != xyes && test x"$withval" != xno; then : +  rra_gssapi_includedir="$withval" +fi +fi + + +# Check whether --with-gssapi-lib was given. +if test "${with_gssapi_lib+set}" = set; then : +  withval=$with_gssapi_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : +  rra_gssapi_libdir="$withval" +fi +fi + + + if test x"$rra_reduced_depends" = xtrue; then : +  if test x"$rra_gssapi_libdir" != x; then : +  GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" +else +  if test x"$rra_gssapi_root" != x; then : + + if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : +  if test x"" = x; then : +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" +else +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" +fi +else +  if test x"" = x; then : +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" +else +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" +fi +fi + GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` +fi +fi + if test x"$rra_gssapi_includedir" != x; then : +  GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" +else +  if test x"$rra_gssapi_root" != x; then : +  if test x"$rra_gssapi_root" != x/usr; then : +  GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" +fi +fi +fi +     rra_gssapi_save_CPPFLAGS="$CPPFLAGS" + rra_gssapi_save_LDFLAGS="$LDFLAGS" + rra_gssapi_save_LIBS="$LIBS" + CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" + LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" + LIBS="$GSSAPI_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 +$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } +if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi_krb5  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gssapi_krb5_gss_import_name=yes +else +  ac_cv_lib_gssapi_krb5_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } +if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgssapi_krb5" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 +$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } +if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gssapi_gss_import_name=yes +else +  ac_cv_lib_gssapi_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } +if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgssapi" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 +$as_echo_n "checking for gss_import_name in -lgss... " >&6; } +if ${ac_cv_lib_gss_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgss  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gss_gss_import_name=yes +else +  ac_cv_lib_gss_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } +if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgss" +else +  as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 +fi + +fi + +fi + + CPPFLAGS="$rra_gssapi_save_CPPFLAGS" + LDFLAGS="$rra_gssapi_save_LDFLAGS" + LIBS="$rra_gssapi_save_LIBS" +else +  if test x"$rra_gssapi_includedir" = x \ +            && test x"$rra_gssapi_libdir" = x; then : +  rra_krb5_config_GSSAPI= + rra_krb5_config_GSSAPI_ok= + if test x"${rra_gssapi_root}" != x && test -x "${rra_gssapi_root}/bin/krb5-config"; then : +  rra_krb5_config_GSSAPI="${rra_gssapi_root}/bin/krb5-config" +else + + # Extract the first word of "krb5-config", so it can be a program name with args. +set dummy krb5-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $PATH_KRB5_CONFIG in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="${PATH}:/usr/kerberos/bin" +for as_dir in $as_dummy +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  ;; +esac +fi +PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG +if test -n "$PATH_KRB5_CONFIG"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5 +$as_echo "$PATH_KRB5_CONFIG" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +     rra_krb5_config_GSSAPI="$PATH_KRB5_CONFIG" +fi + if test x"$rra_krb5_config_GSSAPI" != x && test -x "$rra_krb5_config_GSSAPI"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi support in krb5-config" >&5 +$as_echo_n "checking for gssapi support in krb5-config... " >&6; } +if ${rra_cv_lib_GSSAPI_config+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if "$rra_krb5_config_GSSAPI" 2>&1 | grep gssapi >/dev/null 2>&1; then : +  rra_cv_lib_GSSAPI_config=yes +else +  rra_cv_lib_GSSAPI_config=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_GSSAPI_config" >&5 +$as_echo "$rra_cv_lib_GSSAPI_config" >&6; } +     if test "$rra_cv_lib_GSSAPI_config" = yes; then : +  GSSAPI_CPPFLAGS=`"$rra_krb5_config_GSSAPI" --cflags gssapi 2>/dev/null` + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5 +$as_echo_n "checking for --deps support in krb5-config... " >&6; } +if ${rra_cv_krb5_config_deps+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if "$rra_krb5_config_GSSAPI" 2>&1 | grep deps >/dev/null 2>&1; then : +  rra_cv_krb5_config_deps=yes +else +  rra_cv_krb5_config_deps=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5 +$as_echo "$rra_cv_krb5_config_deps" >&6; } + if test x"$rra_reduced_depends" = xfalse \ +        && test x"$rra_cv_krb5_config_deps" = xyes; then : +  GSSAPI_LIBS=`"$rra_krb5_config_GSSAPI" --deps --libs gssapi 2>/dev/null` +else +  GSSAPI_LIBS=`"$rra_krb5_config_GSSAPI" --libs gssapi 2>/dev/null` +fi +         rra_krb5_config_GSSAPI_ok=yes +else +  if test x"gssapi" = xkrb5; then : +  GSSAPI_CPPFLAGS=`"$rra_krb5_config_GSSAPI" --cflags 2>/dev/null` +             GSSAPI_LIBS=`"$rra_krb5_config_GSSAPI" --libs gssapi 2>/dev/null` +             rra_krb5_config_GSSAPI_ok=yes +fi +fi +fi + if test x"$rra_krb5_config_GSSAPI_ok" = xyes; then : +  GSSAPI_CPPFLAGS=`echo "$GSSAPI_CPPFLAGS" | sed 's%-I/usr/include %%'` +     GSSAPI_CPPFLAGS=`echo "$GSSAPI_CPPFLAGS" | sed 's%-I/usr/include$%%'` +     rra_gssapi_save_CPPFLAGS="$CPPFLAGS" + rra_gssapi_save_LDFLAGS="$LDFLAGS" + rra_gssapi_save_LIBS="$LIBS" + CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" + LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" + LIBS="$GSSAPI_LIBS $LIBS" + ac_fn_c_check_func "$LINENO" "gss_import_name" "ac_cv_func_gss_import_name" +if test "x$ac_cv_func_gss_import_name" = xyes; then : +  CPPFLAGS="$rra_gssapi_save_CPPFLAGS" + LDFLAGS="$rra_gssapi_save_LDFLAGS" + LIBS="$rra_gssapi_save_LIBS" +else +  CPPFLAGS="$rra_gssapi_save_CPPFLAGS" + LDFLAGS="$rra_gssapi_save_LDFLAGS" + LIBS="$rra_gssapi_save_LIBS" +     GSSAPI_CPPFLAGS= +     GSSAPI_LIBS= +     if test x"$rra_gssapi_libdir" != x; then : +  GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" +else +  if test x"$rra_gssapi_root" != x; then : + + if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : +  if test x"" = x; then : +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" +else +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" +fi +else +  if test x"" = x; then : +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" +else +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" +fi +fi + GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` +fi +fi + if test x"$rra_gssapi_includedir" != x; then : +  GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" +else +  if test x"$rra_gssapi_root" != x; then : +  if test x"$rra_gssapi_root" != x/usr; then : +  GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" +fi +fi +fi +     rra_gssapi_save_CPPFLAGS="$CPPFLAGS" + rra_gssapi_save_LDFLAGS="$LDFLAGS" + rra_gssapi_save_LIBS="$LIBS" + CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" + LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" + LIBS="$GSSAPI_LIBS $LIBS" + rra_gssapi_extra= + LIBS= + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 +$as_echo_n "checking for library containing res_search... " >&6; } +if ${ac_cv_search_res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_res_search+:} false; then : +  break +fi +done +if ${ac_cv_search_res_search+:} false; then : + +else +  ac_cv_search_res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 +$as_echo "$ac_cv_search_res_search" >&6; } +ac_res=$ac_cv_search_res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 +$as_echo_n "checking for library containing __res_search... " >&6; } +if ${ac_cv_search___res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search___res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search___res_search+:} false; then : +  break +fi +done +if ${ac_cv_search___res_search+:} false; then : + +else +  ac_cv_search___res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 +$as_echo "$ac_cv_search___res_search" >&6; } +ac_res=$ac_cv_search___res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +$as_echo_n "checking for library containing gethostbyname... " >&6; } +if ${ac_cv_search_gethostbyname+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' nsl; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_gethostbyname=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_gethostbyname+:} false; then : +  break +fi +done +if ${ac_cv_search_gethostbyname+:} false; then : + +else +  ac_cv_search_gethostbyname=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +$as_echo "$ac_cv_search_gethostbyname" >&6; } +ac_res=$ac_cv_search_gethostbyname +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' socket; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_socket+:} false; then : +  break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else +  ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 +$as_echo_n "checking for socket in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl -lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_nsl_socket=yes +else +  ac_cv_lib_nsl_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 +$as_echo "$ac_cv_lib_nsl_socket" >&6; } +if test "x$ac_cv_lib_nsl_socket" = xyes; then : +  LIBS="-lnsl -lsocket $LIBS" +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 +$as_echo_n "checking for library containing crypt... " >&6; } +if ${ac_cv_search_crypt+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' crypt; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_crypt=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_crypt+:} false; then : +  break +fi +done +if ${ac_cv_search_crypt+:} false; then : + +else +  ac_cv_search_crypt=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 +$as_echo "$ac_cv_search_crypt" >&6; } +ac_res=$ac_cv_search_crypt +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 +$as_echo_n "checking for library containing roken_concat... " >&6; } +if ${ac_cv_search_roken_concat+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char roken_concat (); +int +main () +{ +return roken_concat (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' roken; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_roken_concat=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_roken_concat+:} false; then : +  break +fi +done +if ${ac_cv_search_roken_concat+:} false; then : + +else +  ac_cv_search_roken_concat=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 +$as_echo "$ac_cv_search_roken_concat" >&6; } +ac_res=$ac_cv_search_roken_concat +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + rra_gssapi_extra="$LIBS" + LIBS="$rra_gssapi_save_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 +$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } +if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gssapi_gss_import_name=yes +else +  ac_cv_lib_gssapi_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } +if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_getspecific (); +int +main () +{ +return krb5int_getspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_getspecific=yes +else +  ac_cv_lib_krb5support_krb5int_getspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : +  rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } +if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthreads  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthreads_pthread_setspecific=yes +else +  ac_cv_lib_pthreads_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : +  rra_gssapi_pthread="-lpthreads" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } +if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthread_pthread_setspecific=yes +else +  ac_cv_lib_pthread_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : +  rra_gssapi_pthread="-lpthread" +fi + +fi + +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support $rra_gssapi_pthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_setspecific (); +int +main () +{ +return krb5int_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_setspecific=yes +else +  ac_cv_lib_krb5support_krb5int_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : +  rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" +             rra_gssapi_extra="$rra_gssapi_extra $rra_gssapi_pthread" +fi + +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 +$as_echo_n "checking for error_message in -lcom_err... " >&6; } +if ${ac_cv_lib_com_err_error_message+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lcom_err  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char error_message (); +int +main () +{ +return error_message (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_com_err_error_message=yes +else +  ac_cv_lib_com_err_error_message=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 +$as_echo "$ac_cv_lib_com_err_error_message" >&6; } +if test "x$ac_cv_lib_com_err_error_message" = xyes; then : +  rra_gssapi_extra="-lcom_err $rra_gssapi_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 +$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } +if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lk5crypto  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_hash_md5 (); +int +main () +{ +return krb5int_hash_md5 (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_k5crypto_krb5int_hash_md5=yes +else +  ac_cv_lib_k5crypto_krb5int_hash_md5=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 +$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } +if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : +  rra_gssapi_extra="-lk5crypto $rra_gssapi_extra" +fi + +     rra_gssapi_extra="-lkrb5 $rra_gssapi_extra" +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 +$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } +if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi_krb5 $rra_gssapi_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gssapi_krb5_gss_import_name=yes +else +  ac_cv_lib_gssapi_krb5_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } +if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgssapi_krb5 $rra_gssapi_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 +$as_echo_n "checking for gss_import_name in -lgss... " >&6; } +if ${ac_cv_lib_gss_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgss  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gss_gss_import_name=yes +else +  ac_cv_lib_gss_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } +if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgss" +else +  as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 +fi + +fi + +fi + + CPPFLAGS="$rra_gssapi_save_CPPFLAGS" + LDFLAGS="$rra_gssapi_save_LDFLAGS" + LIBS="$rra_gssapi_save_LIBS" +fi + +else +  if test x"$rra_gssapi_libdir" != x; then : +  GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" +else +  if test x"$rra_gssapi_root" != x; then : + + if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : +  if test x"" = x; then : +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" +else +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" +fi +else +  if test x"" = x; then : +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" +else +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" +fi +fi + GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` +fi +fi + if test x"$rra_gssapi_includedir" != x; then : +  GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" +else +  if test x"$rra_gssapi_root" != x; then : +  if test x"$rra_gssapi_root" != x/usr; then : +  GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" +fi +fi +fi +     rra_gssapi_save_CPPFLAGS="$CPPFLAGS" + rra_gssapi_save_LDFLAGS="$LDFLAGS" + rra_gssapi_save_LIBS="$LIBS" + CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" + LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" + LIBS="$GSSAPI_LIBS $LIBS" + rra_gssapi_extra= + LIBS= + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 +$as_echo_n "checking for library containing res_search... " >&6; } +if ${ac_cv_search_res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_res_search+:} false; then : +  break +fi +done +if ${ac_cv_search_res_search+:} false; then : + +else +  ac_cv_search_res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 +$as_echo "$ac_cv_search_res_search" >&6; } +ac_res=$ac_cv_search_res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 +$as_echo_n "checking for library containing __res_search... " >&6; } +if ${ac_cv_search___res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search___res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search___res_search+:} false; then : +  break +fi +done +if ${ac_cv_search___res_search+:} false; then : + +else +  ac_cv_search___res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 +$as_echo "$ac_cv_search___res_search" >&6; } +ac_res=$ac_cv_search___res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +$as_echo_n "checking for library containing gethostbyname... " >&6; } +if ${ac_cv_search_gethostbyname+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' nsl; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_gethostbyname=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_gethostbyname+:} false; then : +  break +fi +done +if ${ac_cv_search_gethostbyname+:} false; then : + +else +  ac_cv_search_gethostbyname=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +$as_echo "$ac_cv_search_gethostbyname" >&6; } +ac_res=$ac_cv_search_gethostbyname +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' socket; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_socket+:} false; then : +  break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else +  ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 +$as_echo_n "checking for socket in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl -lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_nsl_socket=yes +else +  ac_cv_lib_nsl_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 +$as_echo "$ac_cv_lib_nsl_socket" >&6; } +if test "x$ac_cv_lib_nsl_socket" = xyes; then : +  LIBS="-lnsl -lsocket $LIBS" +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 +$as_echo_n "checking for library containing crypt... " >&6; } +if ${ac_cv_search_crypt+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' crypt; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_crypt=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_crypt+:} false; then : +  break +fi +done +if ${ac_cv_search_crypt+:} false; then : + +else +  ac_cv_search_crypt=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 +$as_echo "$ac_cv_search_crypt" >&6; } +ac_res=$ac_cv_search_crypt +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 +$as_echo_n "checking for library containing roken_concat... " >&6; } +if ${ac_cv_search_roken_concat+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char roken_concat (); +int +main () +{ +return roken_concat (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' roken; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_roken_concat=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_roken_concat+:} false; then : +  break +fi +done +if ${ac_cv_search_roken_concat+:} false; then : + +else +  ac_cv_search_roken_concat=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 +$as_echo "$ac_cv_search_roken_concat" >&6; } +ac_res=$ac_cv_search_roken_concat +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + rra_gssapi_extra="$LIBS" + LIBS="$rra_gssapi_save_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 +$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } +if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gssapi_gss_import_name=yes +else +  ac_cv_lib_gssapi_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } +if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_getspecific (); +int +main () +{ +return krb5int_getspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_getspecific=yes +else +  ac_cv_lib_krb5support_krb5int_getspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : +  rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } +if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthreads  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthreads_pthread_setspecific=yes +else +  ac_cv_lib_pthreads_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : +  rra_gssapi_pthread="-lpthreads" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } +if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthread_pthread_setspecific=yes +else +  ac_cv_lib_pthread_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : +  rra_gssapi_pthread="-lpthread" +fi + +fi + +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support $rra_gssapi_pthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_setspecific (); +int +main () +{ +return krb5int_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_setspecific=yes +else +  ac_cv_lib_krb5support_krb5int_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : +  rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" +             rra_gssapi_extra="$rra_gssapi_extra $rra_gssapi_pthread" +fi + +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 +$as_echo_n "checking for error_message in -lcom_err... " >&6; } +if ${ac_cv_lib_com_err_error_message+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lcom_err  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char error_message (); +int +main () +{ +return error_message (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_com_err_error_message=yes +else +  ac_cv_lib_com_err_error_message=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 +$as_echo "$ac_cv_lib_com_err_error_message" >&6; } +if test "x$ac_cv_lib_com_err_error_message" = xyes; then : +  rra_gssapi_extra="-lcom_err $rra_gssapi_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 +$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } +if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lk5crypto  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_hash_md5 (); +int +main () +{ +return krb5int_hash_md5 (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_k5crypto_krb5int_hash_md5=yes +else +  ac_cv_lib_k5crypto_krb5int_hash_md5=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 +$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } +if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : +  rra_gssapi_extra="-lk5crypto $rra_gssapi_extra" +fi + +     rra_gssapi_extra="-lkrb5 $rra_gssapi_extra" +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 +$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } +if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi_krb5 $rra_gssapi_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gssapi_krb5_gss_import_name=yes +else +  ac_cv_lib_gssapi_krb5_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } +if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgssapi_krb5 $rra_gssapi_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 +$as_echo_n "checking for gss_import_name in -lgss... " >&6; } +if ${ac_cv_lib_gss_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgss  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gss_gss_import_name=yes +else +  ac_cv_lib_gss_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } +if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgss" +else +  as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 +fi + +fi + +fi + + CPPFLAGS="$rra_gssapi_save_CPPFLAGS" + LDFLAGS="$rra_gssapi_save_LDFLAGS" + LIBS="$rra_gssapi_save_LIBS" +fi +else +  if test x"$rra_gssapi_libdir" != x; then : +  GSSAPI_LDFLAGS="-L$rra_gssapi_libdir" +else +  if test x"$rra_gssapi_root" != x; then : + + if test -d "$rra_gssapi_root/$rra_lib_arch_name"; then : +  if test x"" = x; then : +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}" +else +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/${rra_lib_arch_name}/" +fi +else +  if test x"" = x; then : +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib" +else +  GSSAPI_LDFLAGS="$GSSAPI_LDFLAGS -L$rra_gssapi_root/lib/" +fi +fi + GSSAPI_LDFLAGS=`echo "$GSSAPI_LDFLAGS" | sed -e 's/^ *//'` +fi +fi + if test x"$rra_gssapi_includedir" != x; then : +  GSSAPI_CPPFLAGS="-I$rra_gssapi_includedir" +else +  if test x"$rra_gssapi_root" != x; then : +  if test x"$rra_gssapi_root" != x/usr; then : +  GSSAPI_CPPFLAGS="-I${rra_gssapi_root}/include" +fi +fi +fi +         rra_gssapi_save_CPPFLAGS="$CPPFLAGS" + rra_gssapi_save_LDFLAGS="$LDFLAGS" + rra_gssapi_save_LIBS="$LIBS" + CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" + LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" + LIBS="$GSSAPI_LIBS $LIBS" + rra_gssapi_extra= + LIBS= + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 +$as_echo_n "checking for library containing res_search... " >&6; } +if ${ac_cv_search_res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_res_search+:} false; then : +  break +fi +done +if ${ac_cv_search_res_search+:} false; then : + +else +  ac_cv_search_res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 +$as_echo "$ac_cv_search_res_search" >&6; } +ac_res=$ac_cv_search_res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 +$as_echo_n "checking for library containing __res_search... " >&6; } +if ${ac_cv_search___res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search___res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search___res_search+:} false; then : +  break +fi +done +if ${ac_cv_search___res_search+:} false; then : + +else +  ac_cv_search___res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 +$as_echo "$ac_cv_search___res_search" >&6; } +ac_res=$ac_cv_search___res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +$as_echo_n "checking for library containing gethostbyname... " >&6; } +if ${ac_cv_search_gethostbyname+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' nsl; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_gethostbyname=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_gethostbyname+:} false; then : +  break +fi +done +if ${ac_cv_search_gethostbyname+:} false; then : + +else +  ac_cv_search_gethostbyname=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +$as_echo "$ac_cv_search_gethostbyname" >&6; } +ac_res=$ac_cv_search_gethostbyname +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' socket; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_socket+:} false; then : +  break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else +  ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 +$as_echo_n "checking for socket in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl -lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_nsl_socket=yes +else +  ac_cv_lib_nsl_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 +$as_echo "$ac_cv_lib_nsl_socket" >&6; } +if test "x$ac_cv_lib_nsl_socket" = xyes; then : +  LIBS="-lnsl -lsocket $LIBS" +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 +$as_echo_n "checking for library containing crypt... " >&6; } +if ${ac_cv_search_crypt+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' crypt; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_crypt=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_crypt+:} false; then : +  break +fi +done +if ${ac_cv_search_crypt+:} false; then : + +else +  ac_cv_search_crypt=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 +$as_echo "$ac_cv_search_crypt" >&6; } +ac_res=$ac_cv_search_crypt +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 +$as_echo_n "checking for library containing roken_concat... " >&6; } +if ${ac_cv_search_roken_concat+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char roken_concat (); +int +main () +{ +return roken_concat (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' roken; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_roken_concat=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_roken_concat+:} false; then : +  break +fi +done +if ${ac_cv_search_roken_concat+:} false; then : + +else +  ac_cv_search_roken_concat=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 +$as_echo "$ac_cv_search_roken_concat" >&6; } +ac_res=$ac_cv_search_roken_concat +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + rra_gssapi_extra="$LIBS" + LIBS="$rra_gssapi_save_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi" >&5 +$as_echo_n "checking for gss_import_name in -lgssapi... " >&6; } +if ${ac_cv_lib_gssapi_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gssapi_gss_import_name=yes +else +  ac_cv_lib_gssapi_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gssapi_gss_import_name" >&6; } +if test "x$ac_cv_lib_gssapi_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgssapi -lkrb5 -lasn1 -lcrypto -lcom_err $rra_gssapi_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_getspecific (); +int +main () +{ +return krb5int_getspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_getspecific=yes +else +  ac_cv_lib_krb5support_krb5int_getspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : +  rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } +if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthreads  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthreads_pthread_setspecific=yes +else +  ac_cv_lib_pthreads_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : +  rra_gssapi_pthread="-lpthreads" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } +if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthread_pthread_setspecific=yes +else +  ac_cv_lib_pthread_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : +  rra_gssapi_pthread="-lpthread" +fi + +fi + +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support $rra_gssapi_pthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_setspecific (); +int +main () +{ +return krb5int_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_setspecific=yes +else +  ac_cv_lib_krb5support_krb5int_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : +  rra_gssapi_extra="-lkrb5support $rra_gssapi_extra" +             rra_gssapi_extra="$rra_gssapi_extra $rra_gssapi_pthread" +fi + +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 +$as_echo_n "checking for error_message in -lcom_err... " >&6; } +if ${ac_cv_lib_com_err_error_message+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lcom_err  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char error_message (); +int +main () +{ +return error_message (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_com_err_error_message=yes +else +  ac_cv_lib_com_err_error_message=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 +$as_echo "$ac_cv_lib_com_err_error_message" >&6; } +if test "x$ac_cv_lib_com_err_error_message" = xyes; then : +  rra_gssapi_extra="-lcom_err $rra_gssapi_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 +$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } +if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lk5crypto  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_hash_md5 (); +int +main () +{ +return krb5int_hash_md5 (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_k5crypto_krb5int_hash_md5=yes +else +  ac_cv_lib_k5crypto_krb5int_hash_md5=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 +$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } +if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : +  rra_gssapi_extra="-lk5crypto $rra_gssapi_extra" +fi + +     rra_gssapi_extra="-lkrb5 $rra_gssapi_extra" +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgssapi_krb5" >&5 +$as_echo_n "checking for gss_import_name in -lgssapi_krb5... " >&6; } +if ${ac_cv_lib_gssapi_krb5_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgssapi_krb5 $rra_gssapi_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gssapi_krb5_gss_import_name=yes +else +  ac_cv_lib_gssapi_krb5_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gssapi_krb5_gss_import_name" >&6; } +if test "x$ac_cv_lib_gssapi_krb5_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgssapi_krb5 $rra_gssapi_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_import_name in -lgss" >&5 +$as_echo_n "checking for gss_import_name in -lgss... " >&6; } +if ${ac_cv_lib_gss_gss_import_name+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lgss  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gss_import_name (); +int +main () +{ +return gss_import_name (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_gss_gss_import_name=yes +else +  ac_cv_lib_gss_gss_import_name=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_import_name" >&5 +$as_echo "$ac_cv_lib_gss_gss_import_name" >&6; } +if test "x$ac_cv_lib_gss_gss_import_name" = xyes; then : +  GSSAPI_LIBS="-lgss" +else +  as_fn_error $? "cannot find usable GSS-API library" "$LINENO" 5 +fi + +fi + +fi + + CPPFLAGS="$rra_gssapi_save_CPPFLAGS" + LDFLAGS="$rra_gssapi_save_LDFLAGS" + LIBS="$rra_gssapi_save_LIBS" +fi +fi + + rra_gssapi_save_CPPFLAGS="$CPPFLAGS" + rra_gssapi_save_LDFLAGS="$LDFLAGS" + rra_gssapi_save_LIBS="$LIBS" + CPPFLAGS="$GSSAPI_CPPFLAGS $CPPFLAGS" + LDFLAGS="$GSSAPI_LDFLAGS $LDFLAGS" + LIBS="$GSSAPI_LIBS $LIBS" + rra_gssapi_incroot= + if test x"$rra_gssapi_includedir" != x; then : +  rra_gssapi_incroot="$rra_gssapi_includedir" +else +  if test x"$rra_gssapi_root" != x; then : +  rra_gssapi_incroot="${rra_gssapi_root}/include" +fi +fi + if test x"$rra_gssapi_incroot" = x; then : +  for ac_header in gssapi/gssapi.h gssapi/gssapi_krb5.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi/gssapi.h" >&5 +$as_echo_n "checking for gssapi/gssapi.h... " >&6; } + if test -f "${rra_gssapi_incroot}/gssapi/gssapi.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_GSSAPI_GSSAPI_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gssapi/gssapi_krb5.h" >&5 +$as_echo_n "checking for gssapi/gssapi_krb5.h... " >&6; } + if test -f "${rra_gssapi_incroot}/gssapi/gssapi_krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_GSSAPI_GSSAPI_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi + ac_fn_c_check_decl "$LINENO" "GSS_C_NT_USER_NAME" "ac_cv_have_decl_GSS_C_NT_USER_NAME" " +#ifdef HAVE_GSSAPI_GSSAPI_H +# include <gssapi/gssapi.h> +#else +# include <gssapi.h> +#endif +#ifdef HAVE_GSSAPI_GSSAPI_KRB5_H +# include <gssapi/gssapi_krb5.h> +#endif + +" +if test "x$ac_cv_have_decl_GSS_C_NT_USER_NAME" = xyes; then : + +$as_echo "#define HAVE_GSS_RFC_OIDS 1" >>confdefs.h + +fi + + CPPFLAGS="$rra_gssapi_save_CPPFLAGS" + LDFLAGS="$rra_gssapi_save_LDFLAGS" + LIBS="$rra_gssapi_save_LIBS" +     REMCTL_CPPFLAGS="$REMCTL_CPPFLAGS $GSSAPI_CPPFLAGS" +     REMCTL_LDFLAGS="$REMCTL_LDFLAGS $GSSAPI_LDFLAGS" +     REMCTL_LIBS="-lremctl $GSSAPI_LIBS" +fi + rra_remctl_save_CPPFLAGS="$CPPFLAGS" + rra_remctl_save_LDFLAGS="$LDFLAGS" + rra_remctl_save_LIBS="$LIBS" + CPPFLAGS="$REMCTL_CPPFLAGS $CPPFLAGS" + LDFLAGS="$REMCTL_LDFLAGS $LDFLAGS" + LIBS="$REMCTL_LIBS $LIBS" + ac_fn_c_check_func "$LINENO" "remctl_open" "ac_cv_func_remctl_open" +if test "x$ac_cv_func_remctl_open" = xyes; then : + +else +  if test x"true" = xtrue; then : +  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "unable to link with remctl library +See \`config.log' for more details" "$LINENO" 5; } +fi +     REMCTL_CPPFLAGS= +     REMCTL_LDFLAGS= +     REMCTL_LIBS= +fi + + CPPFLAGS="$rra_remctl_save_CPPFLAGS" + LDFLAGS="$rra_remctl_save_LDFLAGS" + LIBS="$rra_remctl_save_LIBS" + rra_use_remctl=true + +$as_echo "#define HAVE_REMCTL 1" >>confdefs.h + +rra_krb5_root= + rra_krb5_libdir= + rra_krb5_includedir= + rra_use_KRB5=true + + +# Check whether --with-krb5 was given. +if test "${with_krb5+set}" = set; then : +  withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno; then : +  rra_krb5_root="$withval" +fi +fi + + +# Check whether --with-krb5-include was given. +if test "${with_krb5_include+set}" = set; then : +  withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno; then : +  rra_krb5_includedir="$withval" +fi +fi + + +# Check whether --with-krb5-lib was given. +if test "${with_krb5_lib+set}" = set; then : +  withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno; then : +  rra_krb5_libdir="$withval" +fi +fi + + + rra_krb5_incroot= + + + + + if test x"$rra_krb5_includedir" != x; then : +  rra_krb5_incroot="$rra_krb5_includedir" +else +  if test x"$rra_krb5_root" != x; then : +  rra_krb5_incroot="${rra_krb5_root}/include" +fi +fi + if test x"$rra_reduced_depends" = xtrue; then : +  if test x"$rra_krb5_libdir" != x; then : +  KRB5_LDFLAGS="-L$rra_krb5_libdir" +else +  if test x"$rra_krb5_root" != x; then : + + if test -d "$rra_krb5_root/$rra_lib_arch_name"; then : +  if test x"" = x; then : +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}" +else +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/" +fi +else +  if test x"" = x; then : +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib" +else +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/" +fi +fi + KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'` +fi +fi + if test x"$rra_krb5_includedir" != x; then : +  KRB5_CPPFLAGS="-I$rra_krb5_includedir" +else +  if test x"$rra_krb5_root" != x; then : +  if test x"$rra_krb5_root" != x/usr; then : +  KRB5_CPPFLAGS="-I${rra_krb5_root}/include" +fi +fi +fi +     rra_krb5_save_CPPFLAGS="$CPPFLAGS" + rra_krb5_save_LDFLAGS="$LDFLAGS" + rra_krb5_save_LIBS="$LIBS" + CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" + LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" + LIBS="$KRB5_LIBS $LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 +$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } +if ${ac_cv_lib_krb5_krb5_init_context+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_init_context (); +int +main () +{ +return krb5_init_context (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5_krb5_init_context=yes +else +  ac_cv_lib_krb5_krb5_init_context=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 +$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } +if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then : +  KRB5_LIBS="-lkrb5" +else +  if test x"true" = xtrue; then : +  as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5 +fi +fi + + LIBS="$KRB5_LIBS $LIBS" + if test x"$rra_krb5_incroot" = x; then : +  for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 +$as_echo_n "checking for krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5 +$as_echo_n "checking for kerberosv5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 +$as_echo_n "checking for krb5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi + for ac_func in krb5_get_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" +if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_MESSAGE 1 +_ACEOF + for ac_func in krb5_free_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" +if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 +_ACEOF + +fi +done + +else +  for ac_func in krb5_get_error_string +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" +if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_STRING 1 +_ACEOF + +else +  for ac_func in krb5_get_err_txt +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" +if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERR_TXT 1 +_ACEOF + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5 +$as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; } +if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lksvc  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_svc_get_msg (); +int +main () +{ +return krb5_svc_get_msg (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_ksvc_krb5_svc_get_msg=yes +else +  ac_cv_lib_ksvc_krb5_svc_get_msg=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5 +$as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; } +if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then : +  KRB5_LIBS="$KRB5_LIBS -lksvc" +                  $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h + +                  for ac_header in ibm_svc/krb5_svc.h +do : +  ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +" +if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_IBM_SVC_KRB5_SVC_H 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 +$as_echo_n "checking for com_err in -lcom_err... " >&6; } +if ${ac_cv_lib_com_err_com_err+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lcom_err  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char com_err (); +int +main () +{ +return com_err (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_com_err_com_err=yes +else +  ac_cv_lib_com_err_com_err=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 +$as_echo "$ac_cv_lib_com_err_com_err" >&6; } +if test "x$ac_cv_lib_com_err_com_err" = xyes; then : +  KRB5_LIBS="$KRB5_LIBS -lcom_err" +else +  if test x"true" = xtrue; then : +  as_fn_error $? "cannot find usable com_err library" "$LINENO" 5 +else +  KRB5_LIBS="" +fi +fi + +                  if test x"$rra_krb5_incroot" = x; then : +  for ac_header in et/com_err.h kerberosv5/com_err.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5 +$as_echo_n "checking for et/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/et/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_ET_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5 +$as_echo_n "checking for kerberosv5/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi +fi + +fi +done + +fi +done + +fi +done + + CPPFLAGS="$rra_krb5_save_CPPFLAGS" + LDFLAGS="$rra_krb5_save_LDFLAGS" + LIBS="$rra_krb5_save_LIBS" +else +  if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then : +  rra_krb5_config_KRB5= + rra_krb5_config_KRB5_ok= + if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then : +  rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config" +else + + # Extract the first word of "krb5-config", so it can be a program name with args. +set dummy krb5-config; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $PATH_KRB5_CONFIG in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="${PATH}:/usr/kerberos/bin" +for as_dir in $as_dummy +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  ;; +esac +fi +PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG +if test -n "$PATH_KRB5_CONFIG"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5 +$as_echo "$PATH_KRB5_CONFIG" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +     rra_krb5_config_KRB5="$PATH_KRB5_CONFIG" +fi + if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then : +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5 +$as_echo_n "checking for krb5 support in krb5-config... " >&6; } +if ${rra_cv_lib_KRB5_config+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then : +  rra_cv_lib_KRB5_config=yes +else +  rra_cv_lib_KRB5_config=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5 +$as_echo "$rra_cv_lib_KRB5_config" >&6; } +     if test "$rra_cv_lib_KRB5_config" = yes; then : +  KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null` + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5 +$as_echo_n "checking for --deps support in krb5-config... " >&6; } +if ${rra_cv_krb5_config_deps+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then : +  rra_cv_krb5_config_deps=yes +else +  rra_cv_krb5_config_deps=no +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5 +$as_echo "$rra_cv_krb5_config_deps" >&6; } + if test x"$rra_reduced_depends" = xfalse \ +        && test x"$rra_cv_krb5_config_deps" = xyes; then : +  KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null` +else +  KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null` +fi +         rra_krb5_config_KRB5_ok=yes +else +  if test x"krb5" = xkrb5; then : +  KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null` +             KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null` +             rra_krb5_config_KRB5_ok=yes +fi +fi +fi + if test x"$rra_krb5_config_KRB5_ok" = xyes; then : +  KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'` +     KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'` +     rra_krb5_save_CPPFLAGS="$CPPFLAGS" + rra_krb5_save_LDFLAGS="$LDFLAGS" + rra_krb5_save_LIBS="$LIBS" + CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" + LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" + LIBS="$KRB5_LIBS $LIBS" + ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context" +if test "x$ac_cv_func_krb5_init_context" = xyes; then : +  CPPFLAGS="$rra_krb5_save_CPPFLAGS" + LDFLAGS="$rra_krb5_save_LDFLAGS" + LIBS="$rra_krb5_save_LIBS" +else +  CPPFLAGS="$rra_krb5_save_CPPFLAGS" + LDFLAGS="$rra_krb5_save_LDFLAGS" + LIBS="$rra_krb5_save_LIBS" +     KRB5_CPPFLAGS= +     KRB5_LIBS= +     if test x"$rra_krb5_libdir" != x; then : +  KRB5_LDFLAGS="-L$rra_krb5_libdir" +else +  if test x"$rra_krb5_root" != x; then : + + if test -d "$rra_krb5_root/$rra_lib_arch_name"; then : +  if test x"" = x; then : +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}" +else +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/" +fi +else +  if test x"" = x; then : +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib" +else +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/" +fi +fi + KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'` +fi +fi + if test x"$rra_krb5_includedir" != x; then : +  KRB5_CPPFLAGS="-I$rra_krb5_includedir" +else +  if test x"$rra_krb5_root" != x; then : +  if test x"$rra_krb5_root" != x/usr; then : +  KRB5_CPPFLAGS="-I${rra_krb5_root}/include" +fi +fi +fi +     rra_krb5_save_CPPFLAGS="$CPPFLAGS" + rra_krb5_save_LDFLAGS="$LDFLAGS" + rra_krb5_save_LIBS="$LIBS" + CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" + LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" + LIBS="$KRB5_LIBS $LIBS" + rra_krb5_extra= + LIBS= + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 +$as_echo_n "checking for library containing res_search... " >&6; } +if ${ac_cv_search_res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_res_search+:} false; then : +  break +fi +done +if ${ac_cv_search_res_search+:} false; then : + +else +  ac_cv_search_res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 +$as_echo "$ac_cv_search_res_search" >&6; } +ac_res=$ac_cv_search_res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 +$as_echo_n "checking for library containing __res_search... " >&6; } +if ${ac_cv_search___res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search___res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search___res_search+:} false; then : +  break +fi +done +if ${ac_cv_search___res_search+:} false; then : + +else +  ac_cv_search___res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 +$as_echo "$ac_cv_search___res_search" >&6; } +ac_res=$ac_cv_search___res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +$as_echo_n "checking for library containing gethostbyname... " >&6; } +if ${ac_cv_search_gethostbyname+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' nsl; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_gethostbyname=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_gethostbyname+:} false; then : +  break +fi +done +if ${ac_cv_search_gethostbyname+:} false; then : + +else +  ac_cv_search_gethostbyname=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +$as_echo "$ac_cv_search_gethostbyname" >&6; } +ac_res=$ac_cv_search_gethostbyname +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' socket; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_socket+:} false; then : +  break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else +  ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 +$as_echo_n "checking for socket in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl -lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_nsl_socket=yes +else +  ac_cv_lib_nsl_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 +$as_echo "$ac_cv_lib_nsl_socket" >&6; } +if test "x$ac_cv_lib_nsl_socket" = xyes; then : +  LIBS="-lnsl -lsocket $LIBS" +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 +$as_echo_n "checking for library containing crypt... " >&6; } +if ${ac_cv_search_crypt+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' crypt; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_crypt=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_crypt+:} false; then : +  break +fi +done +if ${ac_cv_search_crypt+:} false; then : + +else +  ac_cv_search_crypt=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 +$as_echo "$ac_cv_search_crypt" >&6; } +ac_res=$ac_cv_search_crypt +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 +$as_echo_n "checking for library containing roken_concat... " >&6; } +if ${ac_cv_search_roken_concat+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char roken_concat (); +int +main () +{ +return roken_concat (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' roken; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_roken_concat=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_roken_concat+:} false; then : +  break +fi +done +if ${ac_cv_search_roken_concat+:} false; then : + +else +  ac_cv_search_roken_concat=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 +$as_echo "$ac_cv_search_roken_concat" >&6; } +ac_res=$ac_cv_search_roken_concat +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + rra_krb5_extra="$LIBS" + LIBS="$rra_krb5_save_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 +$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } +if ${ac_cv_lib_krb5_krb5_init_context+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_init_context (); +int +main () +{ +return krb5_init_context (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5_krb5_init_context=yes +else +  ac_cv_lib_krb5_krb5_init_context=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 +$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } +if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then : +  KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_getspecific (); +int +main () +{ +return krb5int_getspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_getspecific=yes +else +  ac_cv_lib_krb5support_krb5int_getspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : +  rra_krb5_extra="-lkrb5support $rra_krb5_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } +if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthreads  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthreads_pthread_setspecific=yes +else +  ac_cv_lib_pthreads_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : +  rra_krb5_pthread="-lpthreads" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } +if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthread_pthread_setspecific=yes +else +  ac_cv_lib_pthread_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : +  rra_krb5_pthread="-lpthread" +fi + +fi + +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_setspecific (); +int +main () +{ +return krb5int_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_setspecific=yes +else +  ac_cv_lib_krb5support_krb5int_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : +  rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread" +fi + +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 +$as_echo_n "checking for error_message in -lcom_err... " >&6; } +if ${ac_cv_lib_com_err_error_message+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lcom_err $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char error_message (); +int +main () +{ +return error_message (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_com_err_error_message=yes +else +  ac_cv_lib_com_err_error_message=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 +$as_echo "$ac_cv_lib_com_err_error_message" >&6; } +if test "x$ac_cv_lib_com_err_error_message" = xyes; then : +  rra_krb5_extra="-lcom_err $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5 +$as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; } +if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lksvc $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_svc_get_msg (); +int +main () +{ +return krb5_svc_get_msg (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_ksvc_krb5_svc_get_msg=yes +else +  ac_cv_lib_ksvc_krb5_svc_get_msg=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5 +$as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; } +if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then : +  rra_krb5_extra="-lksvc $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 +$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } +if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lk5crypto $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_hash_md5 (); +int +main () +{ +return krb5int_hash_md5 (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_k5crypto_krb5int_hash_md5=yes +else +  ac_cv_lib_k5crypto_krb5int_hash_md5=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 +$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } +if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : +  rra_krb5_extra="-lk5crypto $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5 +$as_echo_n "checking for profile_get_values in -lk5profile... " >&6; } +if ${ac_cv_lib_k5profile_profile_get_values+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lk5profile $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char profile_get_values (); +int +main () +{ +return profile_get_values (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_k5profile_profile_get_values=yes +else +  ac_cv_lib_k5profile_profile_get_values=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5 +$as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; } +if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then : +  rra_krb5_extra="-lk5profile $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5 +$as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; } +if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5 $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_cc_default (); +int +main () +{ +return krb5_cc_default (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5_krb5_cc_default=yes +else +  ac_cv_lib_krb5_krb5_cc_default=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5 +$as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; } +if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then : +  KRB5_LIBS="-lkrb5 $rra_krb5_extra" +else +  if test x"true" = xtrue; then : +  as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5 +fi +fi + +fi + + LIBS="$KRB5_LIBS $LIBS" + if test x"$rra_krb5_incroot" = x; then : +  for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 +$as_echo_n "checking for krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5 +$as_echo_n "checking for kerberosv5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 +$as_echo_n "checking for krb5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi + for ac_func in krb5_get_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" +if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_MESSAGE 1 +_ACEOF + for ac_func in krb5_free_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" +if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 +_ACEOF + +fi +done + +else +  for ac_func in krb5_get_error_string +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" +if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_STRING 1 +_ACEOF + +else +  for ac_func in krb5_get_err_txt +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" +if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERR_TXT 1 +_ACEOF + +else +  for ac_func in krb5_svc_get_msg +do : +  ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg" +if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_SVC_GET_MSG 1 +_ACEOF + for ac_header in ibm_svc/krb5_svc.h +do : +  ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +" +if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_IBM_SVC_KRB5_SVC_H 1 +_ACEOF + +fi + +done + +else +  if test x"$rra_krb5_incroot" = x; then : +  for ac_header in et/com_err.h kerberosv5/com_err.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5 +$as_echo_n "checking for et/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/et/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_ET_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5 +$as_echo_n "checking for kerberosv5/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi +fi +done + +fi +done + +fi +done + +fi +done + + CPPFLAGS="$rra_krb5_save_CPPFLAGS" + LDFLAGS="$rra_krb5_save_LDFLAGS" + LIBS="$rra_krb5_save_LIBS" +fi + +     rra_krb5_save_CPPFLAGS="$CPPFLAGS" + rra_krb5_save_LDFLAGS="$LDFLAGS" + rra_krb5_save_LIBS="$LIBS" + CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" + LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" + LIBS="$KRB5_LIBS $LIBS" +     if test x"$rra_krb5_incroot" = x; then : +  for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 +$as_echo_n "checking for krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5 +$as_echo_n "checking for kerberosv5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 +$as_echo_n "checking for krb5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi +     for ac_func in krb5_get_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" +if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_MESSAGE 1 +_ACEOF + for ac_func in krb5_free_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" +if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 +_ACEOF + +fi +done + +else +  for ac_func in krb5_get_error_string +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" +if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_STRING 1 +_ACEOF + +else +  for ac_func in krb5_get_err_txt +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" +if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERR_TXT 1 +_ACEOF + +else +  for ac_func in krb5_svc_get_msg +do : +  ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg" +if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_SVC_GET_MSG 1 +_ACEOF + for ac_header in ibm_svc/krb5_svc.h +do : +  ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +" +if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_IBM_SVC_KRB5_SVC_H 1 +_ACEOF + +fi + +done + +else +  if test x"$rra_krb5_incroot" = x; then : +  for ac_header in et/com_err.h kerberosv5/com_err.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5 +$as_echo_n "checking for et/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/et/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_ET_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5 +$as_echo_n "checking for kerberosv5/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi +fi +done + +fi +done + +fi +done + +fi +done + +     CPPFLAGS="$rra_krb5_save_CPPFLAGS" + LDFLAGS="$rra_krb5_save_LDFLAGS" + LIBS="$rra_krb5_save_LIBS" +else +  if test x"$rra_krb5_libdir" != x; then : +  KRB5_LDFLAGS="-L$rra_krb5_libdir" +else +  if test x"$rra_krb5_root" != x; then : + + if test -d "$rra_krb5_root/$rra_lib_arch_name"; then : +  if test x"" = x; then : +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}" +else +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/" +fi +else +  if test x"" = x; then : +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib" +else +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/" +fi +fi + KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'` +fi +fi + if test x"$rra_krb5_includedir" != x; then : +  KRB5_CPPFLAGS="-I$rra_krb5_includedir" +else +  if test x"$rra_krb5_root" != x; then : +  if test x"$rra_krb5_root" != x/usr; then : +  KRB5_CPPFLAGS="-I${rra_krb5_root}/include" +fi +fi +fi +     rra_krb5_save_CPPFLAGS="$CPPFLAGS" + rra_krb5_save_LDFLAGS="$LDFLAGS" + rra_krb5_save_LIBS="$LIBS" + CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" + LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" + LIBS="$KRB5_LIBS $LIBS" + rra_krb5_extra= + LIBS= + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 +$as_echo_n "checking for library containing res_search... " >&6; } +if ${ac_cv_search_res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_res_search+:} false; then : +  break +fi +done +if ${ac_cv_search_res_search+:} false; then : + +else +  ac_cv_search_res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 +$as_echo "$ac_cv_search_res_search" >&6; } +ac_res=$ac_cv_search_res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 +$as_echo_n "checking for library containing __res_search... " >&6; } +if ${ac_cv_search___res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search___res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search___res_search+:} false; then : +  break +fi +done +if ${ac_cv_search___res_search+:} false; then : + +else +  ac_cv_search___res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 +$as_echo "$ac_cv_search___res_search" >&6; } +ac_res=$ac_cv_search___res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +$as_echo_n "checking for library containing gethostbyname... " >&6; } +if ${ac_cv_search_gethostbyname+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' nsl; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_gethostbyname=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_gethostbyname+:} false; then : +  break +fi +done +if ${ac_cv_search_gethostbyname+:} false; then : + +else +  ac_cv_search_gethostbyname=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +$as_echo "$ac_cv_search_gethostbyname" >&6; } +ac_res=$ac_cv_search_gethostbyname +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' socket; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_socket+:} false; then : +  break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else +  ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 +$as_echo_n "checking for socket in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl -lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_nsl_socket=yes +else +  ac_cv_lib_nsl_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 +$as_echo "$ac_cv_lib_nsl_socket" >&6; } +if test "x$ac_cv_lib_nsl_socket" = xyes; then : +  LIBS="-lnsl -lsocket $LIBS" +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 +$as_echo_n "checking for library containing crypt... " >&6; } +if ${ac_cv_search_crypt+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' crypt; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_crypt=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_crypt+:} false; then : +  break +fi +done +if ${ac_cv_search_crypt+:} false; then : + +else +  ac_cv_search_crypt=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 +$as_echo "$ac_cv_search_crypt" >&6; } +ac_res=$ac_cv_search_crypt +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 +$as_echo_n "checking for library containing roken_concat... " >&6; } +if ${ac_cv_search_roken_concat+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char roken_concat (); +int +main () +{ +return roken_concat (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' roken; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_roken_concat=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_roken_concat+:} false; then : +  break +fi +done +if ${ac_cv_search_roken_concat+:} false; then : + +else +  ac_cv_search_roken_concat=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 +$as_echo "$ac_cv_search_roken_concat" >&6; } +ac_res=$ac_cv_search_roken_concat +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + rra_krb5_extra="$LIBS" + LIBS="$rra_krb5_save_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 +$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } +if ${ac_cv_lib_krb5_krb5_init_context+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_init_context (); +int +main () +{ +return krb5_init_context (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5_krb5_init_context=yes +else +  ac_cv_lib_krb5_krb5_init_context=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 +$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } +if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then : +  KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_getspecific (); +int +main () +{ +return krb5int_getspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_getspecific=yes +else +  ac_cv_lib_krb5support_krb5int_getspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : +  rra_krb5_extra="-lkrb5support $rra_krb5_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } +if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthreads  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthreads_pthread_setspecific=yes +else +  ac_cv_lib_pthreads_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : +  rra_krb5_pthread="-lpthreads" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } +if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthread_pthread_setspecific=yes +else +  ac_cv_lib_pthread_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : +  rra_krb5_pthread="-lpthread" +fi + +fi + +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_setspecific (); +int +main () +{ +return krb5int_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_setspecific=yes +else +  ac_cv_lib_krb5support_krb5int_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : +  rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread" +fi + +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 +$as_echo_n "checking for error_message in -lcom_err... " >&6; } +if ${ac_cv_lib_com_err_error_message+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lcom_err $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char error_message (); +int +main () +{ +return error_message (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_com_err_error_message=yes +else +  ac_cv_lib_com_err_error_message=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 +$as_echo "$ac_cv_lib_com_err_error_message" >&6; } +if test "x$ac_cv_lib_com_err_error_message" = xyes; then : +  rra_krb5_extra="-lcom_err $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5 +$as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; } +if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lksvc $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_svc_get_msg (); +int +main () +{ +return krb5_svc_get_msg (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_ksvc_krb5_svc_get_msg=yes +else +  ac_cv_lib_ksvc_krb5_svc_get_msg=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5 +$as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; } +if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then : +  rra_krb5_extra="-lksvc $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 +$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } +if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lk5crypto $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_hash_md5 (); +int +main () +{ +return krb5int_hash_md5 (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_k5crypto_krb5int_hash_md5=yes +else +  ac_cv_lib_k5crypto_krb5int_hash_md5=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 +$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } +if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : +  rra_krb5_extra="-lk5crypto $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5 +$as_echo_n "checking for profile_get_values in -lk5profile... " >&6; } +if ${ac_cv_lib_k5profile_profile_get_values+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lk5profile $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char profile_get_values (); +int +main () +{ +return profile_get_values (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_k5profile_profile_get_values=yes +else +  ac_cv_lib_k5profile_profile_get_values=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5 +$as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; } +if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then : +  rra_krb5_extra="-lk5profile $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5 +$as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; } +if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5 $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_cc_default (); +int +main () +{ +return krb5_cc_default (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5_krb5_cc_default=yes +else +  ac_cv_lib_krb5_krb5_cc_default=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5 +$as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; } +if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then : +  KRB5_LIBS="-lkrb5 $rra_krb5_extra" +else +  if test x"true" = xtrue; then : +  as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5 +fi +fi + +fi + + LIBS="$KRB5_LIBS $LIBS" + if test x"$rra_krb5_incroot" = x; then : +  for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 +$as_echo_n "checking for krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5 +$as_echo_n "checking for kerberosv5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 +$as_echo_n "checking for krb5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi + for ac_func in krb5_get_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" +if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_MESSAGE 1 +_ACEOF + for ac_func in krb5_free_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" +if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 +_ACEOF + +fi +done + +else +  for ac_func in krb5_get_error_string +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" +if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_STRING 1 +_ACEOF + +else +  for ac_func in krb5_get_err_txt +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" +if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERR_TXT 1 +_ACEOF + +else +  for ac_func in krb5_svc_get_msg +do : +  ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg" +if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_SVC_GET_MSG 1 +_ACEOF + for ac_header in ibm_svc/krb5_svc.h +do : +  ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +" +if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_IBM_SVC_KRB5_SVC_H 1 +_ACEOF + +fi + +done + +else +  if test x"$rra_krb5_incroot" = x; then : +  for ac_header in et/com_err.h kerberosv5/com_err.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5 +$as_echo_n "checking for et/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/et/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_ET_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5 +$as_echo_n "checking for kerberosv5/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi +fi +done + +fi +done + +fi +done + +fi +done + + CPPFLAGS="$rra_krb5_save_CPPFLAGS" + LDFLAGS="$rra_krb5_save_LDFLAGS" + LIBS="$rra_krb5_save_LIBS" +fi +else +  if test x"$rra_krb5_libdir" != x; then : +  KRB5_LDFLAGS="-L$rra_krb5_libdir" +else +  if test x"$rra_krb5_root" != x; then : + + if test -d "$rra_krb5_root/$rra_lib_arch_name"; then : +  if test x"" = x; then : +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}" +else +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/" +fi +else +  if test x"" = x; then : +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib" +else +  KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/" +fi +fi + KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'` +fi +fi + if test x"$rra_krb5_includedir" != x; then : +  KRB5_CPPFLAGS="-I$rra_krb5_includedir" +else +  if test x"$rra_krb5_root" != x; then : +  if test x"$rra_krb5_root" != x/usr; then : +  KRB5_CPPFLAGS="-I${rra_krb5_root}/include" +fi +fi +fi +         rra_krb5_save_CPPFLAGS="$CPPFLAGS" + rra_krb5_save_LDFLAGS="$LDFLAGS" + rra_krb5_save_LIBS="$LIBS" + CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" + LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" + LIBS="$KRB5_LIBS $LIBS" + rra_krb5_extra= + LIBS= + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5 +$as_echo_n "checking for library containing res_search... " >&6; } +if ${ac_cv_search_res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char res_search (); +int +main () +{ +return res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_res_search+:} false; then : +  break +fi +done +if ${ac_cv_search_res_search+:} false; then : + +else +  ac_cv_search_res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5 +$as_echo "$ac_cv_search_res_search" >&6; } +ac_res=$ac_cv_search_res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5 +$as_echo_n "checking for library containing __res_search... " >&6; } +if ${ac_cv_search___res_search+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char __res_search (); +int +main () +{ +return __res_search (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' resolv; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search___res_search=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search___res_search+:} false; then : +  break +fi +done +if ${ac_cv_search___res_search+:} false; then : + +else +  ac_cv_search___res_search=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5 +$as_echo "$ac_cv_search___res_search" >&6; } +ac_res=$ac_cv_search___res_search +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 +$as_echo_n "checking for library containing gethostbyname... " >&6; } +if ${ac_cv_search_gethostbyname+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char gethostbyname (); +int +main () +{ +return gethostbyname (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' nsl; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_gethostbyname=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_gethostbyname+:} false; then : +  break +fi +done +if ${ac_cv_search_gethostbyname+:} false; then : + +else +  ac_cv_search_gethostbyname=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 +$as_echo "$ac_cv_search_gethostbyname" >&6; } +ac_res=$ac_cv_search_gethostbyname +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 +$as_echo_n "checking for library containing socket... " >&6; } +if ${ac_cv_search_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' socket; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_socket=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_socket+:} false; then : +  break +fi +done +if ${ac_cv_search_socket+:} false; then : + +else +  ac_cv_search_socket=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 +$as_echo "$ac_cv_search_socket" >&6; } +ac_res=$ac_cv_search_socket +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5 +$as_echo_n "checking for socket in -lnsl... " >&6; } +if ${ac_cv_lib_nsl_socket+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl -lsocket $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char socket (); +int +main () +{ +return socket (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_nsl_socket=yes +else +  ac_cv_lib_nsl_socket=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5 +$as_echo "$ac_cv_lib_nsl_socket" >&6; } +if test "x$ac_cv_lib_nsl_socket" = xyes; then : +  LIBS="-lnsl -lsocket $LIBS" +fi + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 +$as_echo_n "checking for library containing crypt... " >&6; } +if ${ac_cv_search_crypt+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char crypt (); +int +main () +{ +return crypt (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' crypt; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_crypt=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_crypt+:} false; then : +  break +fi +done +if ${ac_cv_search_crypt+:} false; then : + +else +  ac_cv_search_crypt=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 +$as_echo "$ac_cv_search_crypt" >&6; } +ac_res=$ac_cv_search_crypt +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5 +$as_echo_n "checking for library containing roken_concat... " >&6; } +if ${ac_cv_search_roken_concat+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char roken_concat (); +int +main () +{ +return roken_concat (); +  ; +  return 0; +} +_ACEOF +for ac_lib in '' roken; do +  if test -z "$ac_lib"; then +    ac_res="none required" +  else +    ac_res=-l$ac_lib +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS" +  fi +  if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_search_roken_concat=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext +  if ${ac_cv_search_roken_concat+:} false; then : +  break +fi +done +if ${ac_cv_search_roken_concat+:} false; then : + +else +  ac_cv_search_roken_concat=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5 +$as_echo "$ac_cv_search_roken_concat" >&6; } +ac_res=$ac_cv_search_roken_concat +if test "$ac_res" != no; then : +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + rra_krb5_extra="$LIBS" + LIBS="$rra_krb5_save_LIBS" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 +$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } +if ${ac_cv_lib_krb5_krb5_init_context+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_init_context (); +int +main () +{ +return krb5_init_context (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5_krb5_init_context=yes +else +  ac_cv_lib_krb5_krb5_init_context=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 +$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } +if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then : +  KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_getspecific (); +int +main () +{ +return krb5int_getspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_getspecific=yes +else +  ac_cv_lib_krb5support_krb5int_getspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then : +  rra_krb5_extra="-lkrb5support $rra_krb5_extra" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; } +if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthreads  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthreads_pthread_setspecific=yes +else +  ac_cv_lib_pthreads_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then : +  rra_krb5_pthread="-lpthreads" +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5 +$as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; } +if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread  $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char pthread_setspecific (); +int +main () +{ +return pthread_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_pthread_pthread_setspecific=yes +else +  ac_cv_lib_pthread_pthread_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; } +if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then : +  rra_krb5_pthread="-lpthread" +fi + +fi + +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5 +$as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; } +if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_setspecific (); +int +main () +{ +return krb5int_setspecific (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5support_krb5int_setspecific=yes +else +  ac_cv_lib_krb5support_krb5int_setspecific=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5 +$as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; } +if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then : +  rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread" +fi + +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5 +$as_echo_n "checking for error_message in -lcom_err... " >&6; } +if ${ac_cv_lib_com_err_error_message+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lcom_err $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char error_message (); +int +main () +{ +return error_message (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_com_err_error_message=yes +else +  ac_cv_lib_com_err_error_message=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5 +$as_echo "$ac_cv_lib_com_err_error_message" >&6; } +if test "x$ac_cv_lib_com_err_error_message" = xyes; then : +  rra_krb5_extra="-lcom_err $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5 +$as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; } +if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lksvc $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_svc_get_msg (); +int +main () +{ +return krb5_svc_get_msg (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_ksvc_krb5_svc_get_msg=yes +else +  ac_cv_lib_ksvc_krb5_svc_get_msg=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5 +$as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; } +if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then : +  rra_krb5_extra="-lksvc $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5 +$as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; } +if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lk5crypto $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5int_hash_md5 (); +int +main () +{ +return krb5int_hash_md5 (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_k5crypto_krb5int_hash_md5=yes +else +  ac_cv_lib_k5crypto_krb5int_hash_md5=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5 +$as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; } +if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then : +  rra_krb5_extra="-lk5crypto $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5 +$as_echo_n "checking for profile_get_values in -lk5profile... " >&6; } +if ${ac_cv_lib_k5profile_profile_get_values+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lk5profile $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char profile_get_values (); +int +main () +{ +return profile_get_values (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_k5profile_profile_get_values=yes +else +  ac_cv_lib_k5profile_profile_get_values=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5 +$as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; } +if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then : +  rra_krb5_extra="-lk5profile $rra_krb5_extra" +fi + +     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5 +$as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; } +if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_check_lib_save_LIBS=$LIBS +LIBS="-lkrb5 $rra_krb5_extra $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +/* Override any GCC internal prototype to avoid an error. +   Use char because int might match the return type of a GCC +   builtin and then its argument prototype would still apply.  */ +#ifdef __cplusplus +extern "C" +#endif +char krb5_cc_default (); +int +main () +{ +return krb5_cc_default (); +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : +  ac_cv_lib_krb5_krb5_cc_default=yes +else +  ac_cv_lib_krb5_krb5_cc_default=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5 +$as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; } +if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then : +  KRB5_LIBS="-lkrb5 $rra_krb5_extra" +else +  if test x"true" = xtrue; then : +  as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5 +fi +fi + +fi + + LIBS="$KRB5_LIBS $LIBS" + if test x"$rra_krb5_incroot" = x; then : +  for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5 +$as_echo_n "checking for krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5 +$as_echo_n "checking for kerberosv5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5 +$as_echo_n "checking for krb5/krb5.h... " >&6; } + if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_KRB5_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi + for ac_func in krb5_get_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message" +if test "x$ac_cv_func_krb5_get_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_MESSAGE 1 +_ACEOF + for ac_func in krb5_free_error_message +do : +  ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message" +if test "x$ac_cv_func_krb5_free_error_message" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_FREE_ERROR_MESSAGE 1 +_ACEOF + +fi +done + +else +  for ac_func in krb5_get_error_string +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string" +if test "x$ac_cv_func_krb5_get_error_string" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERROR_STRING 1 +_ACEOF + +else +  for ac_func in krb5_get_err_txt +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt" +if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_ERR_TXT 1 +_ACEOF + +else +  for ac_func in krb5_svc_get_msg +do : +  ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg" +if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_SVC_GET_MSG 1 +_ACEOF + for ac_header in ibm_svc/krb5_svc.h +do : +  ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" " +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +" +if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_IBM_SVC_KRB5_SVC_H 1 +_ACEOF + +fi + +done + +else +  if test x"$rra_krb5_incroot" = x; then : +  for ac_header in et/com_err.h kerberosv5/com_err.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5 +$as_echo_n "checking for et/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/et/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_ET_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5 +$as_echo_n "checking for kerberosv5/com_err.h... " >&6; } + if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KERBEROSV5_COM_ERR_H 1 +_ACEOF + +     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +fi +fi +done + +fi +done + +fi +done + +fi +done + + CPPFLAGS="$rra_krb5_save_CPPFLAGS" + LDFLAGS="$rra_krb5_save_LDFLAGS" + LIBS="$rra_krb5_save_LIBS" +fi +fi + rra_krb5_uses_com_err=false + case $KRB5_LIBS in #( +  *-lcom_err*) : +    rra_krb5_uses_com_err=true ;; #( +  *) : +     ;; +esac +  if test x"$rra_krb5_uses_com_err" = xtrue; then +  KRB5_USES_COM_ERR_TRUE= +  KRB5_USES_COM_ERR_FALSE='#' +else +  KRB5_USES_COM_ERR_TRUE='#' +  KRB5_USES_COM_ERR_FALSE= +fi + + KRB5_CPPFLAGS_GCC=`echo "$KRB5_CPPFLAGS" | sed -e 's/-I/-isystem /g'` + +$as_echo "#define HAVE_KRB5 1" >>confdefs.h + +rra_krb5_save_CPPFLAGS="$CPPFLAGS" + rra_krb5_save_LDFLAGS="$LDFLAGS" + rra_krb5_save_LIBS="$LIBS" + CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS" + LDFLAGS="$KRB5_LDFLAGS $LDFLAGS" + LIBS="$KRB5_LIBS $LIBS" +ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" " +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +" +if test "x$ac_cv_type_krb5_realm" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_REALM 1 +_ACEOF + + +fi + +for ac_func in krb5_free_default_realm \ +    krb5_get_init_creds_opt_alloc \ +    krb5_get_init_creds_opt_set_default_flags \ +    krb5_principal_get_realm +do : +  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + +for ac_func in krb5_get_init_creds_opt_free +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free" +if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1 +_ACEOF + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5 +$as_echo_n "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; } +if ${rra_cv_func_krb5_get_init_creds_opt_free_args+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +int +main(void) +{ +    krb5_get_init_creds_opt *opts; +    krb5_context c; +    krb5_get_init_creds_opt_free(c, opts); +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_func_krb5_get_init_creds_opt_free_args=yes +else +  rra_cv_func_krb5_get_init_creds_opt_free_args=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5 +$as_echo "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; } + if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes; then : + +$as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h + +fi +fi +done + +ac_fn_c_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" " +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +" +if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes; then : +  ac_have_decl=1 +else +  ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl +_ACEOF + +ac_fn_c_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" "$ac_includes_default" +if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes; then : +  ac_have_decl=1 +else +  ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl +_ACEOF + +ac_fn_c_check_member "$LINENO" "krb5_keytab_entry" "keyblock" "ac_cv_member_krb5_keytab_entry_keyblock" " +#if HAVE_KRB5_H +# include <krb5.h> +#elif HAVE_KERBEROSV5_KRB5_H +# include <kerberosv5/krb5.h> +#else +# include <krb5/krb5.h> +#endif + +" +if test "x$ac_cv_member_krb5_keytab_entry_keyblock" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK 1 +_ACEOF + + +fi + +for ac_func in krb5_appdefault_string +do : +  ac_fn_c_check_func "$LINENO" "krb5_appdefault_string" "ac_cv_func_krb5_appdefault_string" +if test "x$ac_cv_func_krb5_appdefault_string" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_APPDEFAULT_STRING 1 +_ACEOF + +else +  for ac_func in krb5_get_profile +do : +  ac_fn_c_check_func "$LINENO" "krb5_get_profile" "ac_cv_func_krb5_get_profile" +if test "x$ac_cv_func_krb5_get_profile" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_KRB5_GET_PROFILE 1 +_ACEOF + +fi +done + +     for ac_header in k5profile.h profile.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +     case " $LIBOBJS " in +  *" krb5-profile.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS krb5-profile.$ac_objext" + ;; +esac + +fi +done + +case " $LIBOBJS " in +  *" krb5-extra.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext" + ;; +esac + +CPPFLAGS="$rra_krb5_save_CPPFLAGS" + LDFLAGS="$rra_krb5_save_LDFLAGS" + LIBS="$rra_krb5_save_LIBS" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 +$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } +if ${ac_cv_header_stdbool_h+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +             #include <stdbool.h> +             #ifndef bool +              "error: bool is not defined" +             #endif +             #ifndef false +              "error: false is not defined" +             #endif +             #if false +              "error: false is not 0" +             #endif +             #ifndef true +              "error: true is not defined" +             #endif +             #if true != 1 +              "error: true is not 1" +             #endif +             #ifndef __bool_true_false_are_defined +              "error: __bool_true_false_are_defined is not defined" +             #endif + +             struct s { _Bool s: 1; _Bool t; } s; + +             char a[true == 1 ? 1 : -1]; +             char b[false == 0 ? 1 : -1]; +             char c[__bool_true_false_are_defined == 1 ? 1 : -1]; +             char d[(bool) 0.5 == true ? 1 : -1]; +             /* See body of main program for 'e'.  */ +             char f[(_Bool) 0.0 == false ? 1 : -1]; +             char g[true]; +             char h[sizeof (_Bool)]; +             char i[sizeof s.t]; +             enum { j = false, k = true, l = false * true, m = true * 256 }; +             /* The following fails for +                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ +             _Bool n[m]; +             char o[sizeof n == m * sizeof n[0] ? 1 : -1]; +             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; +             /* Catch a bug in an HP-UX C compiler.  See +                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html +                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html +              */ +             _Bool q = true; +             _Bool *pq = &q; + +int +main () +{ + +             bool e = &s; +             *pq |= q; +             *pq |= ! q; +             /* Refer to every declared value, to avoid compiler optimizations.  */ +             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l +                     + !m + !n + !o + !p + !q + !pq); + +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  ac_cv_header_stdbool_h=yes +else +  ac_cv_header_stdbool_h=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 +$as_echo "$ac_cv_header_stdbool_h" >&6; } +   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" +if test "x$ac_cv_type__Bool" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE__BOOL 1 +_ACEOF + + +fi + + +if test $ac_cv_header_stdbool_h = yes; then + +$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h + +fi + +for ac_header in strings.h sys/bitypes.h sys/uio.h sys/time.h syslog.h +do : +  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : +  cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + +ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" +if test "x$ac_cv_have_decl_snprintf" = xyes; then : +  ac_have_decl=1 +else +  ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_SNPRINTF $ac_have_decl +_ACEOF +ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" +if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : +  ac_have_decl=1 +else +  ac_have_decl=0 +fi + +cat >>confdefs.h <<_ACEOF +#define HAVE_DECL_VSNPRINTF $ac_have_decl +_ACEOF + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5 +$as_echo_n "checking for C99 variadic macros... " >&6; } +if ${rra_cv_c_c99_vamacros+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <stdio.h> +#define error(...) fprintf(stderr, __VA_ARGS__) + +int +main(void) { +    error("foo"); +    error("foo %d", 0); +    return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_c_c99_vamacros=yes +else +  rra_cv_c_c99_vamacros=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_c99_vamacros" >&5 +$as_echo "$rra_cv_c_c99_vamacros" >&6; } + if test x"$rra_cv_c_c99_vamacros" = xyes; then : + +$as_echo "#define HAVE_C99_VAMACROS 1" >>confdefs.h + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU-style variadic macros" >&5 +$as_echo_n "checking for GNU-style variadic macros... " >&6; } +if ${rra_cv_c_gnu_vamacros+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <stdio.h> +#define error(args...) fprintf(stderr, args) + +int +main(void) { +    error("foo"); +    error("foo %d", 0); +    return 0; +} + +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : +  rra_cv_c_gnu_vamacros=yes +else +  rra_cv_c_gnu_vamacros=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_gnu_vamacros" >&5 +$as_echo "$rra_cv_c_gnu_vamacros" >&6; } + if test x"$rra_cv_c_gnu_vamacros" = xyes; then : + +$as_echo "#define HAVE_GNU_VAMACROS 1" >>confdefs.h + +fi + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 +$as_echo_n "checking for unsigned long long int... " >&6; } +if ${ac_cv_type_unsigned_long_long_int+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_cv_type_unsigned_long_long_int=yes +     if test "x${ac_cv_prog_cc_c99-no}" = xno; then +       cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +  /* For now, do not test the preprocessor; as of 2007 there are too many +         implementations with broken preprocessors.  Perhaps this can +         be revisited in 2012.  In the meantime, code should not expect +         #if to work with literals wider than 32 bits.  */ +      /* Test literals.  */ +      long long int ll = 9223372036854775807ll; +      long long int nll = -9223372036854775807LL; +      unsigned long long int ull = 18446744073709551615ULL; +      /* Test constant expressions.   */ +      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) +                     ? 1 : -1)]; +      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 +                     ? 1 : -1)]; +      int i = 63; +int +main () +{ +/* Test availability of runtime routines for shift and division.  */ +      long long int llmax = 9223372036854775807ll; +      unsigned long long int ullmax = 18446744073709551615ull; +      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) +              | (llmax / ll) | (llmax % ll) +              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) +              | (ullmax / ull) | (ullmax % ull)); +  ; +  return 0; +} + +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + +else +  ac_cv_type_unsigned_long_long_int=no +fi +rm -f core conftest.err conftest.$ac_objext \ +    conftest$ac_exeext conftest.$ac_ext +     fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 +$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } +  if test $ac_cv_type_unsigned_long_long_int = yes; then + +$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h + +  fi + + + +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 +$as_echo_n "checking for long long int... " >&6; } +if ${ac_cv_type_long_long_int+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  ac_cv_type_long_long_int=yes +      if test "x${ac_cv_prog_cc_c99-no}" = xno; then +        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int +        if test $ac_cv_type_long_long_int = yes; then +                                        if test "$cross_compiling" = yes; then : +  : +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ +#include <limits.h> +                 #ifndef LLONG_MAX +                 # define HALF \ +                          (1LL << (sizeof (long long int) * CHAR_BIT - 2)) +                 # define LLONG_MAX (HALF - 1 + HALF) +                 #endif +int +main () +{ +long long int n = 1; +                 int i; +                 for (i = 0; ; i++) +                   { +                     long long int m = n << i; +                     if (m >> i != n) +                       return 1; +                     if (LLONG_MAX / 2 < m) +                       break; +                   } +                 return 0; +  ; +  return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + +else +  ac_cv_type_long_long_int=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +        fi +      fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 +$as_echo "$ac_cv_type_long_long_int" >&6; } +  if test $ac_cv_type_long_long_int = yes; then + +$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h + +  fi + +ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> +" +if test "x$ac_cv_type_ssize_t" = xyes; then : + +cat >>confdefs.h <<_ACEOF +#define HAVE_SSIZE_T 1 +_ACEOF + + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5 +$as_echo_n "checking for working snprintf... " >&6; } +if ${rra_cv_func_snprintf_works+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  if test "$cross_compiling" = yes; then : +  rra_cv_func_snprintf_works=no +else +  cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h.  */ + +#include <stdio.h> +#include <stdarg.h> + +char buf[2]; + +int +test(char *format, ...) +{ +    va_list args; +    int count; + +    va_start(args, format); +    count = vsnprintf(buf, sizeof buf, format, args); +    va_end(args); +    return count; +} + +int +main() +{ +    return ((test("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0' +             && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : +  rra_cv_func_snprintf_works=yes +else +  rra_cv_func_snprintf_works=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +  conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_snprintf_works" >&5 +$as_echo "$rra_cv_func_snprintf_works" >&6; } + if test x"$rra_cv_func_snprintf_works" = xyes; then : + +$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" snprintf.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" + ;; +esac + +fi +for ac_func in setrlimit +do : +  ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" +if test "x$ac_cv_func_setrlimit" = xyes; then : +  cat >>confdefs.h <<_ACEOF +#define HAVE_SETRLIMIT 1 +_ACEOF + +fi +done + +ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" +if test "x$ac_cv_func_asprintf" = xyes; then : +  $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" asprintf.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" +if test "x$ac_cv_func_mkstemp" = xyes; then : +  $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" mkstemp.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" +if test "x$ac_cv_func_reallocarray" = xyes; then : +  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" reallocarray.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" +if test "x$ac_cv_func_setenv" = xyes; then : +  $as_echo "#define HAVE_SETENV 1" >>confdefs.h + +else +  case " $LIBOBJS " in +  *" setenv.$ac_objext "* ) ;; +  *) LIBOBJS="$LIBOBJS setenv.$ac_objext" + ;; +esac + +fi + + + + +# Extract the first word of "remctld", so it can be a program name with args. +set dummy remctld; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_path_REMCTLD+:} false; then : +  $as_echo_n "(cached) " >&6 +else +  case $REMCTLD in +  [\\/]* | ?:[\\/]*) +  ac_cv_path_REMCTLD="$REMCTLD" # Let the user override the test with a path. +  ;; +  *) +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy="$PATH:/usr/sbin:/usr/local/sbin" +for as_dir in $as_dummy +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    for ac_exec_ext in '' $ac_executable_extensions; do +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then +    ac_cv_path_REMCTLD="$as_dir/$ac_word$ac_exec_ext" +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 +    break 2 +  fi +done +  done +IFS=$as_save_IFS + +  ;; +esac +fi +REMCTLD=$ac_cv_path_REMCTLD +if test -n "$REMCTLD"; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMCTLD" >&5 +$as_echo "$REMCTLD" >&6; } +else +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test x"$REMCTLD" != x; then : + +cat >>confdefs.h <<_ACEOF +#define PATH_REMCTLD "$REMCTLD" +_ACEOF + +fi + +ac_config_headers="$ac_config_headers config.h" + +ac_config_files="$ac_config_files Makefile" + +ac_config_files="$ac_config_files tests/client/basic-t" + +ac_config_files="$ac_config_files tests/client/full-t" + +ac_config_files="$ac_config_files tests/client/prompt-t" + +ac_config_files="$ac_config_files tests/client/rekey-t" + +ac_config_commands="$ac_config_commands server" + +ac_config_commands="$ac_config_commands tests/config" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems.  If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do +    eval ac_val=\$$ac_var +    case $ac_val in #( +    *${as_nl}*) +      case $ac_var in #( +      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; +      esac +      case $ac_var in #( +      _ | IFS | as_nl) ;; #( +      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( +      *) { eval $ac_var=; unset $ac_var;} ;; +      esac ;; +    esac +  done + +  (set) 2>&1 | +    case $as_nl`(ac_space=' '; set) 2>&1` in #( +    *${as_nl}ac_space=\ *) +      # `set' does not quote correctly, so add quotes: double-quote +      # substitution turns \\\\ into \\, and sed turns \\ into \. +      sed -n \ +	"s/'/'\\\\''/g; +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" +      ;; #( +    *) +      # `set' quotes correctly as required by POSIX, so do not add quotes. +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" +      ;; +    esac | +    sort +) | +  sed ' +     /^ac_cv_env_/b end +     t clear +     :clear +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ +     t end +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ +     :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else +  if test -w "$cache_file"; then +    if test "x$cache_file" != "x/dev/null"; then +      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} +      if test ! -f "$cache_file" || test -h "$cache_file"; then +	cat confcache >"$cache_file" +      else +        case $cache_file in #( +        */* | ?:*) +	  mv -f confcache "$cache_file"$$ && +	  mv -f "$cache_file"$$ "$cache_file" ;; #( +        *) +	  mv -f confcache "$cache_file" ;; +	esac +      fi +    fi +  else +    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} +  fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue +  # 1. Remove the extension, and $U if already installed. +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' +  ac_i=`$as_echo "$ac_i" | sed "$ac_script"` +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR +  #    will be set to the directory where LIBOBJS objects are built. +  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" +  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 +$as_echo_n "checking that generated files are newer than configure... " >&6; } +   if test -n "$am_sleep_pid"; then +     # Hide warnings about reused PIDs. +     wait $am_sleep_pid 2>/dev/null +   fi +   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 +$as_echo "done" >&6; } + if test -n "$EXEEXT"; then +  am__EXEEXT_TRUE= +  am__EXEEXT_FALSE='#' +else +  am__EXEEXT_TRUE='#' +  am__EXEEXT_FALSE= +fi + +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then +  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then +  as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then +  as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then +  as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : +  emulate sh +  NULLCMD=: +  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which +  # is contrary to our usage.  Disable this feature. +  alias -g '${1+"$@"}'='"$@"' +  setopt NO_GLOB_SUBST +else +  case `(set -o) 2>/dev/null` in #( +  *posix*) : +    set -o posix ;; #( +  *) : +     ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ +    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then +  as_echo='print -r --' +  as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then +  as_echo='printf %s\n' +  as_echo_n='printf %s' +else +  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then +    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' +    as_echo_n='/usr/ucb/echo -n' +  else +    as_echo_body='eval expr "X$1" : "X\\(.*\\)"' +    as_echo_n_body='eval +      arg=$1; +      case $arg in #( +      *"$as_nl"*) +	expr "X$arg" : "X\\(.*\\)$as_nl"; +	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; +      esac; +      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" +    ' +    export as_echo_n_body +    as_echo_n='sh -c $as_echo_n_body as_echo' +  fi +  export as_echo_body +  as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then +  PATH_SEPARATOR=: +  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { +    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || +      PATH_SEPARATOR=';' +  } +fi + + +# IFS +# We need space, tab and new line, in precisely that order.  Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" ""	$as_nl" + +# Find who we are.  Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( +  *[\\/]* ) as_myself=$0 ;; +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do +  IFS=$as_save_IFS +  test -z "$as_dir" && as_dir=. +    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +  done +IFS=$as_save_IFS + +     ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then +  as_myself=$0 +fi +if test ! -f "$as_myself"; then +  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 +  exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there.  '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ +  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ +  as_status=$1; test $as_status -eq 0 && as_status=1 +  if test "$4"; then +    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack +    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 +  fi +  $as_echo "$as_me: error: $2" >&2 +  as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ +  return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ +  set +e +  as_fn_set_status $1 +  exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ +  { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : +  eval 'as_fn_append () +  { +    eval $1+=\$2 +  }' +else +  as_fn_append () +  { +    eval $1=\$$1\$2 +  } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : +  eval 'as_fn_arith () +  { +    as_val=$(( $* )) +  }' +else +  as_fn_arith () +  { +    as_val=`expr "$@" || test $? -eq 1` +  } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && +   test "X`expr 00001 : '.*\(...\)'`" = X001; then +  as_expr=expr +else +  as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then +  as_basename=basename +else +  as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then +  as_dirname=dirname +else +  as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ +	 X"$0" : 'X\(//\)$' \| \ +	 X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | +    sed '/^.*\/\([^/][^/]*\)\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\/\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\/\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) +  case `echo 'xy\c'` in +  *c*) ECHO_T='	';;	# ECHO_T is single tab character. +  xy)  ECHO_C='\c';; +  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null +       ECHO_T='	';; +  esac;; +*) +  ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then +  rm -f conf$$.dir/conf$$.file +else +  rm -f conf$$.dir +  mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then +  if ln -s conf$$.file conf$$ 2>/dev/null; then +    as_ln_s='ln -s' +    # ... but there are two gotchas: +    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. +    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. +    # In both cases, we have to default to `cp -pR'. +    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || +      as_ln_s='cp -pR' +  elif ln conf$$.file conf$$ 2>/dev/null; then +    as_ln_s=ln +  else +    as_ln_s='cp -pR' +  fi +else +  as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + +  case $as_dir in #( +  -*) as_dir=./$as_dir;; +  esac +  test -d "$as_dir" || eval $as_mkdir_p || { +    as_dirs= +    while :; do +      case $as_dir in #( +      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( +      *) as_qdir=$as_dir;; +      esac +      as_dirs="'$as_qdir' $as_dirs" +      as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +	 X"$as_dir" : 'X\(//\)[^/]' \| \ +	 X"$as_dir" : 'X\(//\)$' \| \ +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)[^/].*/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'` +      test -d "$as_dir" && break +    done +    test -z "$as_dirs" || eval "mkdir $as_dirs" +  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then +  as_mkdir_p='mkdir -p "$as_dir"' +else +  test -d ./-p && rmdir ./-p +  as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ +  test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by wallet $as_me 1.4, which was +generated by GNU Autoconf 2.69.  Invocation command line was + +  CONFIG_FILES    = $CONFIG_FILES +  CONFIG_HEADERS  = $CONFIG_HEADERS +  CONFIG_LINKS    = $CONFIG_LINKS +  CONFIG_COMMANDS = $CONFIG_COMMANDS +  $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration.  Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + +  -h, --help       print this help, then exit +  -V, --version    print version number and configuration settings, then exit +      --config     print configuration, then exit +  -q, --quiet, --silent +                   do not print progress messages +  -d, --debug      don't remove temporary files +      --recheck    update $as_me by reconfiguring in the same conditions +      --file=FILE[:TEMPLATE] +                   instantiate the configuration file FILE +      --header=FILE[:TEMPLATE] +                   instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to <eagle@eyrie.org>." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" +ac_cs_version="\\ +wallet config.status 1.4 +configured by $0, generated by GNU Autoconf 2.69, +  with options \\"\$ac_cs_config\\" + +Copyright (C) 2012 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do +  case $1 in +  --*=?*) +    ac_option=`expr "X$1" : 'X\([^=]*\)='` +    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` +    ac_shift=: +    ;; +  --*=) +    ac_option=`expr "X$1" : 'X\([^=]*\)='` +    ac_optarg= +    ac_shift=: +    ;; +  *) +    ac_option=$1 +    ac_optarg=$2 +    ac_shift=shift +    ;; +  esac + +  case $ac_option in +  # Handling of the options. +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) +    ac_cs_recheck=: ;; +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) +    $as_echo "$ac_cs_version"; exit ;; +  --config | --confi | --conf | --con | --co | --c ) +    $as_echo "$ac_cs_config"; exit ;; +  --debug | --debu | --deb | --de | --d | -d ) +    debug=: ;; +  --file | --fil | --fi | --f ) +    $ac_shift +    case $ac_optarg in +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; +    '') as_fn_error $? "missing file argument" ;; +    esac +    as_fn_append CONFIG_FILES " '$ac_optarg'" +    ac_need_defaults=false;; +  --header | --heade | --head | --hea ) +    $ac_shift +    case $ac_optarg in +    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; +    esac +    as_fn_append CONFIG_HEADERS " '$ac_optarg'" +    ac_need_defaults=false;; +  --he | --h) +    # Conflict between --help and --header +    as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; +  --help | --hel | -h ) +    $as_echo "$ac_cs_usage"; exit ;; +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \ +  | -silent | --silent | --silen | --sile | --sil | --si | --s) +    ac_cs_silent=: ;; + +  # This is an error. +  -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + +  *) as_fn_append ac_config_targets " $1" +     ac_need_defaults=false ;; + +  esac +  shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then +  exec 6>/dev/null +  ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then +  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +  shift +  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 +  CONFIG_SHELL='$SHELL' +  export CONFIG_SHELL +  exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ +  echo +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX +  $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do +  case $ac_config_target in +    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; +    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; +    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; +    "tests/client/basic-t") CONFIG_FILES="$CONFIG_FILES tests/client/basic-t" ;; +    "tests/client/full-t") CONFIG_FILES="$CONFIG_FILES tests/client/full-t" ;; +    "tests/client/prompt-t") CONFIG_FILES="$CONFIG_FILES tests/client/prompt-t" ;; +    "tests/client/rekey-t") CONFIG_FILES="$CONFIG_FILES tests/client/rekey-t" ;; +    "server") CONFIG_COMMANDS="$CONFIG_COMMANDS server" ;; +    "tests/config") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/config" ;; + +  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; +  esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used.  Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files +  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers +  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience.  Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ +  tmp= ac_tmp= +  trap 'exit_status=$? +  : "${ac_tmp:=$tmp}" +  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 +  trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ +  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && +  test -d "$tmp" +}  || +{ +  tmp=./conf$$-$RANDOM +  (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then +  eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then +  ac_cs_awk_cr='\\r' +else +  ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ +  echo "cat >conf$$subs.awk <<_ACEOF" && +  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && +  echo "_ACEOF" +} >conf$$subs.sh || +  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do +  . ./conf$$subs.sh || +    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + +  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` +  if test $ac_delim_n = $ac_delim_num; then +    break +  elif $ac_last_try; then +    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +  else +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! " +  fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' <conf$$subs.awk | sed ' +/^[^""]/{ +  N +  s/\n// +} +' >>$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && +  for (key in S) S_is_set[key] = 1 +  FS = "" + +} +{ +  line = $ 0 +  nfields = split(line, field, "@") +  substed = 0 +  len = length(field[1]) +  for (i = 2; i < nfields; i++) { +    key = field[i] +    keylen = length(key) +    if (S_is_set[key]) { +      value = S[key] +      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) +      len += length(value) + length(field[++i]) +      substed = 1 +    } else +      len += 1 + keylen +  } + +  print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then +  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else +  cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ +  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then +  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ +h +s/// +s/^/:/ +s/[	 ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[	 ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[	 ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do +  ac_tt=`sed -n "/$ac_delim/p" confdefs.h` +  if test -z "$ac_tt"; then +    break +  elif $ac_last_try; then +    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 +  else +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! " +  fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any.  Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' <confdefs.h | sed ' +s/'"$ac_delim"'/"\\\ +"/g' >>$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +  for (key in D) D_is_set[key] = 1 +  FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { +  line = \$ 0 +  split(line, arg, " ") +  if (arg[1] == "#") { +    defundef = arg[2] +    mac1 = arg[3] +  } else { +    defundef = substr(arg[1], 2) +    mac1 = arg[2] +  } +  split(mac1, mac2, "(") #) +  macro = mac2[1] +  prefix = substr(line, 1, index(line, defundef) - 1) +  if (D_is_set[macro]) { +    # Preserve the white space surrounding the "#". +    print prefix "define", macro P[macro] D[macro] +    next +  } else { +    # Replace #undef with comments.  This is necessary, for example, +    # in the case of _POSIX_SOURCE, which is predefined and required +    # on some systems where configure will not decide to define it. +    if (defundef == "undef") { +      print "/*", prefix defundef, macro, "*/" +      next +    } +  } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS" +shift +for ac_tag +do +  case $ac_tag in +  :[FHLC]) ac_mode=$ac_tag; continue;; +  esac +  case $ac_mode$ac_tag in +  :[FHL]*:*);; +  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; +  :[FH]-) ac_tag=-:-;; +  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; +  esac +  ac_save_IFS=$IFS +  IFS=: +  set x $ac_tag +  IFS=$ac_save_IFS +  shift +  ac_file=$1 +  shift + +  case $ac_mode in +  :L) ac_source=$1;; +  :[FH]) +    ac_file_inputs= +    for ac_f +    do +      case $ac_f in +      -) ac_f="$ac_tmp/stdin";; +      *) # Look for the file first in the build tree, then in the source tree +	 # (if the path is not absolute).  The absolute path cannot be DOS-style, +	 # because $ac_f cannot contain `:'. +	 test -f "$ac_f" || +	   case $ac_f in +	   [\\/$]*) false;; +	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; +	   esac || +	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; +      esac +      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac +      as_fn_append ac_file_inputs " '$ac_f'" +    done + +    # Let's still pretend it is `configure' which instantiates (i.e., don't +    # use $as_me), people would be surprised to read: +    #    /* config.h.  Generated by config.status.  */ +    configure_input='Generated from '` +	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' +	`' by configure.' +    if test x"$ac_file" != x-; then +      configure_input="$ac_file.  $configure_input" +      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} +    fi +    # Neutralize special characters interpreted by sed in replacement strings. +    case $configure_input in #( +    *\&* | *\|* | *\\* ) +       ac_sed_conf_input=`$as_echo "$configure_input" | +       sed 's/[\\\\&|]/\\\\&/g'`;; #( +    *) ac_sed_conf_input=$configure_input;; +    esac + +    case $ac_tag in +    *:-:* | *:-) cat >"$ac_tmp/stdin" \ +      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; +    esac +    ;; +  esac + +  ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +	 X"$ac_file" : 'X\(//\)[^/]' \| \ +	 X"$ac_file" : 'X\(//\)$' \| \ +	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)[^/].*/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'` +  as_dir="$ac_dir"; as_fn_mkdir_p +  ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) +  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` +  # A ".." for each directory in $ac_dir_suffix. +  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` +  case $ac_top_builddir_sub in +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;; +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; +  esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in +  .)  # We are building in place. +    ac_srcdir=. +    ac_top_srcdir=$ac_top_builddir_sub +    ac_abs_top_srcdir=$ac_pwd ;; +  [\\/]* | ?:[\\/]* )  # Absolute name. +    ac_srcdir=$srcdir$ac_dir_suffix; +    ac_top_srcdir=$srcdir +    ac_abs_top_srcdir=$srcdir ;; +  *) # Relative name. +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix +    ac_top_srcdir=$ac_top_build_prefix$srcdir +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + +  case $ac_mode in +  :F) +  # +  # CONFIG_FILE +  # + +  case $INSTALL in +  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; +  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; +  esac +  ac_MKDIR_P=$MKDIR_P +  case $MKDIR_P in +  [\\/$]* | ?:[\\/]* ) ;; +  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; +  esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { +  p +  q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +  ac_datarootdir_hack=' +  s&@datadir@&$datadir&g +  s&@docdir@&$docdir&g +  s&@infodir@&$infodir&g +  s&@localedir@&$localedir&g +  s&@mandir@&$mandir&g +  s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ +  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && +  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && +  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ +      "$ac_tmp/out"`; test -z "$ac_out"; } && +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined.  Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined.  Please make sure it is defined" >&2;} + +  rm -f "$ac_tmp/stdin" +  case $ac_file in +  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; +  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; +  esac \ +  || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; +  :H) +  # +  # CONFIG_HEADER +  # +  if test x"$ac_file" != x-; then +    { +      $as_echo "/* $configure_input  */" \ +      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" +    } >"$ac_tmp/config.h" \ +      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then +      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} +    else +      rm -f "$ac_file" +      mv "$ac_tmp/config.h" "$ac_file" \ +	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 +    fi +  else +    $as_echo "/* $configure_input  */" \ +      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ +      || as_fn_error $? "could not create -" "$LINENO" 5 +  fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do +  case $_am_header in +    $_am_arg | $_am_arg:* ) +      break ;; +    * ) +      _am_stamp_count=`expr $_am_stamp_count + 1` ;; +  esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +	 X"$_am_arg" : 'X\(//\)[^/]' \| \ +	 X"$_am_arg" : 'X\(//\)$' \| \ +	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)[^/].*/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + +  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; +  esac + + +  case $ac_file$ac_mode in +    "depfiles":C) test x"$AMDEP_TRUE" != x"" || { +  # Older Autoconf quotes --file arguments for eval, but not when files +  # are listed without --file.  Let's play safe and only enable the eval +  # if we detect the quoting. +  case $CONFIG_FILES in +  *\'*) eval set x "$CONFIG_FILES" ;; +  *)   set x $CONFIG_FILES ;; +  esac +  shift +  for mf +  do +    # Strip MF so we end up with the name of the file. +    mf=`echo "$mf" | sed -e 's/:.*$//'` +    # Check whether this is an Automake generated Makefile or not. +    # We used to match only the files named 'Makefile.in', but +    # some people rename them; so instead we look at the file content. +    # Grep'ing the first line is not enough: some people post-process +    # each Makefile.in and add a new line on top of each file to say so. +    # Grep'ing the whole file is not good either: AIX grep has a line +    # limit of 2048, but all sed's we know have understand at least 4000. +    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then +      dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +	 X"$mf" : 'X\(//\)[^/]' \| \ +	 X"$mf" : 'X\(//\)$' \| \ +	 X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)[^/].*/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'` +    else +      continue +    fi +    # Extract the definition of DEPDIR, am__include, and am__quote +    # from the Makefile without running 'make'. +    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` +    test -z "$DEPDIR" && continue +    am__include=`sed -n 's/^am__include = //p' < "$mf"` +    test -z "$am__include" && continue +    am__quote=`sed -n 's/^am__quote = //p' < "$mf"` +    # Find all dependency output files, they are included files with +    # $(DEPDIR) in their names.  We invoke sed twice because it is the +    # simplest approach to changing $(DEPDIR) to its actual value in the +    # expansion. +    for file in `sed -n " +      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ +	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do +      # Make sure the directory exists. +      test -f "$dirpart/$file" && continue +      fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ +	 X"$file" : 'X\(//\)[^/]' \| \ +	 X"$file" : 'X\(//\)$' \| \ +	 X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)[^/].*/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\/\)$/{ +	    s//\1/ +	    q +	  } +	  /^X\(\/\).*/{ +	    s//\1/ +	    q +	  } +	  s/.*/./; q'` +      as_dir=$dirpart/$fdir; as_fn_mkdir_p +      # echo "creating $dirpart/$file" +      echo '# dummy' > "$dirpart/$file" +    done +  done +} + ;; +    "tests/client/basic-t":F) chmod +x tests/client/basic-t ;; +    "tests/client/full-t":F) chmod +x tests/client/full-t ;; +    "tests/client/prompt-t":F) chmod +x tests/client/prompt-t ;; +    "tests/client/rekey-t":F) chmod +x tests/client/rekey-t ;; +    "server":C) test -d server || mkdir server ;; +    "tests/config":C) test -d tests/config || mkdir tests/config ;; + +  esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || +  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded.  So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status.  When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then +  ac_cs_success=: +  ac_config_status_args= +  test "$silent" = yes && +    ac_config_status_args="$ac_config_status_args --quiet" +  exec 5>/dev/null +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false +  exec 5>>config.log +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which +  # would make configure fail if this is the last instruction. +  $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then +  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + diff --git a/contrib/wallet-rekey-periodic.8 b/contrib/wallet-rekey-periodic.8 new file mode 100644 index 0000000..f2f619a --- /dev/null +++ b/contrib/wallet-rekey-periodic.8 @@ -0,0 +1,213 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings.  \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote.  \*(C+ will +.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and +.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +.    ds -- \(*W- +.    ds PI pi +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch +.    ds L" "" +.    ds R" "" +.    ds C` "" +.    ds C' "" +'br\} +.el\{\ +.    ds -- \|\(em\| +.    ds PI \(*p +.    ds L" `` +.    ds R" '' +.    ds C` +.    ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el       .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD.  Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +.    de IX +.    tm Index:\\$1\t\\n%\t"\\$2" +.. +.    if !\nF==2 \{\ +.        nr % 0 +.        nr F 2 +.    \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear.  Run.  Save yourself.  No user-serviceable parts. +.    \" fudge factors for nroff and troff +.if n \{\ +.    ds #H 0 +.    ds #V .8m +.    ds #F .3m +.    ds #[ \f1 +.    ds #] \fP +.\} +.if t \{\ +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m) +.    ds #V .6m +.    ds #F 0 +.    ds #[ \& +.    ds #] \& +.\} +.    \" simple accents for nroff and troff +.if n \{\ +.    ds ' \& +.    ds ` \& +.    ds ^ \& +.    ds , \& +.    ds ~ ~ +.    ds / +.\} +.if t \{\ +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +.    \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.    \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +.    \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +.    ds : e +.    ds 8 ss +.    ds o a +.    ds d- d\h'-1'\(ga +.    ds D- D\h'-1'\(hy +.    ds th \o'bp' +.    ds Th \o'LP' +.    ds ae ae +.    ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "WALLET-REKEY-PERIODIC 8" +.TH WALLET-REKEY-PERIODIC 8 "2018-06-03" "1.4" "wallet" +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +wallet\-rekey\-periodic \- Periodically rekey all system keytabs +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBwallet-rekey-periodic\fR [\fIkeytab\fR ...] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBwallet-rekey-periodic\fR is a wrapper around wallet-rekey that adds some +additional functionality: rekeying of all keytabs at known locations on +the system, skipping keytabs that are marked unchanging, rekeying any +keytabs with \s-1DES\s0 keys immediately but otherwise only rekeying once a month +based on a random interval based on the hostname, and cleaning up old +keys. +.PP +It's primarily meant to be run daily from cron, but can also be run +manually from the command line to rekey specific keytab files. +.PP +\&\fBwallet-rekey-periodic\fR will, for each keytab, find a list of all +principals in that keytab and see if any of them still have \s-1DES\s0 keys.  If +so, it will always attempt to rekey that keytab.  If not, it will only do +so, for a given system, once every 30 days (based on a hash of the +hostname).  It will also always skip keytabs that contain any principals +that wallet says are unchanging, since otherwise the current wallet-rekey +implementation will duplicate the existing keys. +.PP +On Heimdal systems, this command will remove keys older than a week before +rekeying the keytab.  This relies on \fBktutil\fR functionality that's +available only in Heimdal, so \s-1MIT\s0 Kerberos keytabs will slowly grow unless +they're manually pruned.  This will be fixed in a later release of +\&\fBwallet-rekey\fR. +.PP +If no keytabs are given on the command line, \fBwallet-rekey-periodic\fR will +rekey a set of system keytabs described below under \*(L"\s-1FILES\*(R"\s0.  Otherwise, +it will rekey the keytabs given. +.SH "FILES" +.IX Header "FILES" +.IP "\fI/etc/keytabs/*\fR" 4 +.IX Item "/etc/keytabs/*" +.PD 0 +.IP "\fI/etc/krb5.keytab\fR" 4 +.IX Item "/etc/krb5.keytab" +.IP "\fI/etc/webauth/keytab\fR" 4 +.IX Item "/etc/webauth/keytab" +.PD +The default list of locations checked for rekeyable keytabs.  If run with +no command-line arguments, \fBwallet-rekey-periodic\fR will try to rekey +every principal in each keytab found at any of these paths. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery <eagle@eyrie.org> +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2013\-2014 The Board of Trustees of the Leland Stanford Junior +University +.PP +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the \*(L"Software\*(R"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: +.PP +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +.PP +\&\s-1THE SOFTWARE IS PROVIDED \*(L"AS IS\*(R", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\s0  \s-1IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.\s0 +.PP +SPDX-License-Identifier: \s-1MIT\s0 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fIktutil\fR\|(8), \fIwallet\fR\|(1), \fIwallet\-rekey\fR\|(1) diff --git a/contrib/wallet-summary.8 b/contrib/wallet-summary.8 new file mode 100644 index 0000000..08a01d6 --- /dev/null +++ b/contrib/wallet-summary.8 @@ -0,0 +1,208 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings.  \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote.  \*(C+ will +.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and +.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +.    ds -- \(*W- +.    ds PI pi +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch +.    ds L" "" +.    ds R" "" +.    ds C` "" +.    ds C' "" +'br\} +.el\{\ +.    ds -- \|\(em\| +.    ds PI \(*p +.    ds L" `` +.    ds R" '' +.    ds C` +.    ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el       .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD.  Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +.    de IX +.    tm Index:\\$1\t\\n%\t"\\$2" +.. +.    if !\nF==2 \{\ +.        nr % 0 +.        nr F 2 +.    \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear.  Run.  Save yourself.  No user-serviceable parts. +.    \" fudge factors for nroff and troff +.if n \{\ +.    ds #H 0 +.    ds #V .8m +.    ds #F .3m +.    ds #[ \f1 +.    ds #] \fP +.\} +.if t \{\ +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m) +.    ds #V .6m +.    ds #F 0 +.    ds #[ \& +.    ds #] \& +.\} +.    \" simple accents for nroff and troff +.if n \{\ +.    ds ' \& +.    ds ` \& +.    ds ^ \& +.    ds , \& +.    ds ~ ~ +.    ds / +.\} +.if t \{\ +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +.    \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.    \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +.    \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +.    ds : e +.    ds 8 ss +.    ds o a +.    ds d- d\h'-1'\(ga +.    ds D- D\h'-1'\(hy +.    ds th \o'bp' +.    ds Th \o'LP' +.    ds ae ae +.    ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "WALLET-SUMMARY 8" +.TH WALLET-SUMMARY 8 "2018-06-03" "1.4" "wallet" +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +wallet\-summary \- Report on keytabs in the wallet database +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBwallet-summary\fR [\fB\-hm\fR] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +Obtains a list of keytab objects in the wallet database and produces a +report of the types of principals contained therein and the total number +of principals registered.  This report is sent to standard output by +default, but see \fB\-m\fR below. +.PP +The classifications of principals are determined by a set of patterns at +the beginning of this script.  Modify it to add new classifications. +.SH "OPTIONS" +.IX Header "OPTIONS" +.IP "\fB\-h\fR, \fB\-\-help\fR" 4 +.IX Item "-h, --help" +Print out this documentation (which is done simply by feeding the script to +\&\f(CW\*(C`perldoc \-t\*(C'\fR). +.IP "\fB\-m\fR, \fB\-\-mail\fR" 4 +.IX Item "-m, --mail" +Rather than printing the report to standard output, send the report via +e\-mail to the address set at the beginning of this script and also archive +a copy under \fI/afs/ir/dept/itss/infrastructure/reports\fR. +.SH "FILES" +.IX Header "FILES" +.IP "\fI/afs/ir/dept/itss/infrastructure/reports\fR" 4 +.IX Item "/afs/ir/dept/itss/infrastructure/reports" +The root directory for archived reports.  Archived reports will be saved +under this directory in a subdirectory for the year, the month, and +\&\f(CW\*(C`kerberos\*(C'\fR, under the name \f(CW\*(C`wallet\*(C'\fR.  In other words, for a report run +in March of 2003, the report will be saved in the file: +.Sp +.Vb 1 +\&    /afs/ir/dept/itss/infrastructure/reports/2003/03/kerberos/srvtabs +.Ve +.SH "NOTES" +.IX Header "NOTES" +Considerably more information could potentially be reported than is +currently here.  In particular, keytabs that have never been downloaded +are not distinguished from those that have, the number of keytabs +downloaded is not separately reported, and there aren't any statistics on +how recently the keytabs were downloaded.  These could be useful areas of +future development. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery <eagle@eyrie.org> +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2003, 2008, 2010, 2013 The Board of Trustees of the Leland +Stanford Junior University +.PP +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the \*(L"Software\*(R"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: +.PP +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +.PP +\&\s-1THE SOFTWARE IS PROVIDED \*(L"AS IS\*(R", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\s0  \s-1IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.\s0 +.PP +SPDX-License-Identifier: \s-1MIT\s0 diff --git a/contrib/wallet-unknown-hosts.8 b/contrib/wallet-unknown-hosts.8 new file mode 100644 index 0000000..4046854 --- /dev/null +++ b/contrib/wallet-unknown-hosts.8 @@ -0,0 +1,221 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings.  \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote.  \*(C+ will +.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and +.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +.    ds -- \(*W- +.    ds PI pi +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch +.    ds L" "" +.    ds R" "" +.    ds C` "" +.    ds C' "" +'br\} +.el\{\ +.    ds -- \|\(em\| +.    ds PI \(*p +.    ds L" `` +.    ds R" '' +.    ds C` +.    ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el       .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD.  Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +.    de IX +.    tm Index:\\$1\t\\n%\t"\\$2" +.. +.    if !\nF==2 \{\ +.        nr % 0 +.        nr F 2 +.    \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear.  Run.  Save yourself.  No user-serviceable parts. +.    \" fudge factors for nroff and troff +.if n \{\ +.    ds #H 0 +.    ds #V .8m +.    ds #F .3m +.    ds #[ \f1 +.    ds #] \fP +.\} +.if t \{\ +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m) +.    ds #V .6m +.    ds #F 0 +.    ds #[ \& +.    ds #] \& +.\} +.    \" simple accents for nroff and troff +.if n \{\ +.    ds ' \& +.    ds ` \& +.    ds ^ \& +.    ds , \& +.    ds ~ ~ +.    ds / +.\} +.if t \{\ +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +.    \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.    \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +.    \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +.    ds : e +.    ds 8 ss +.    ds o a +.    ds d- d\h'-1'\(ga +.    ds D- D\h'-1'\(hy +.    ds th \o'bp' +.    ds Th \o'LP' +.    ds ae ae +.    ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "WALLET-UNKNOWN-HOSTS 8" +.TH WALLET-UNKNOWN-HOSTS 8 "2018-06-03" "1.4" "wallet" +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +wallet\-unknown\-hosts \- Report host keytabs in wallet for unknown hosts +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBwallet-unknown-hosts\fR check +.PP +\&\fBwallet-unknown-hosts\fR report \fImin\fR \fIdate\fR +.PP +env REMOTE_USER=\fIprincipal\fR \fBwallet-unknown-hosts\fR purge \fImin\fR \fIdate\fR +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBwallet-unknown-hosts\fR constructs a database recording host-based keytabs +in wallet whose corresponding hosts are not found in \s-1DNS.\s0  It records in +that database the number of times the host wasn't found and the timestamp +of the first time it was not found.  It can then generate a report of +host-based keytab objects that have not been found for a minimum number of +consecutive times and which were last found longer ago than a particular +date.  Finally, it can purge from wallet all objects that meet those +requirements. +.PP +When run with the \f(CW\*(C`check\*(C'\fR argument, \fBwallet-unknown-hosts\fR traverses the +wallet database looking for host-based keytabs, which it recognizes by +looking for keytab objects for principals with at least one period (\f(CW\*(C`.\*(C'\fR) +after a slash (\f(CW\*(C`/\*(C'\fR).  It then applies a local check followed by a \s-1DNS\s0 +check.  The \s-1DNS\s0 check is only successful (only considers the host to be +found) if it resolves to an \s-1IP\s0 address (possibly through a \s-1CNAME\s0). +.PP +For any host that's not found, it records that host in its associated +database.  If this is the first time it wasn't found, it records the first +missing time as the current time and the missing count as 1.  If it +previously wasn't found, it just increments the missing count. +.PP +For any host that is found, it deletes any record for that keytab from the +database. +.PP +When run with the \f(CW\*(C`report\*(C'\fR argument, \fBwallet-unknown-hosts\fR takes two +additional arguments: \fImin\fR and \fIdate\fR.  \fImin\fR is the minimum number of +times that a host must be found missing for the corresponding keytabs to +show up on the report.  \fIdate\fR is a cutoff date in seconds since epoch; +keytabs will not be included in the report unless their first missing date +is older than \fIdate\fR.  The output will be the name component of the +keytab objects in the wallet that correspond to unknown hosts and meet +those thresholds. +.PP +When run with the \f(CW\*(C`purge\*(C'\fR argument, \fBwallet-unknown-hosts\fR will build a +list of keytab objects the same as with the \f(CW\*(C`report\*(C'\fR argument, using the +same additional arguments, but rather than printing them out will instead +delete them from the wallet database.  To run \f(CW\*(C`purge\*(C'\fR, the environment +variable \s-1REMOTE_USER\s0 must be set to a principal that's a member of the +\&\f(CW\*(C`ADMIN\*(C'\fR \s-1ACL.\s0 +.SH "BUGS" +.IX Header "BUGS" +\&\fBwallet-unknown-hosts\fR doesn't have any facility to purge from its +database all objects that are no longer in the wallet. +.PP +Having to specify an identity for purge mode is an artifact of the +Wallet::Server \s-1API\s0 and needs to be fixed by providing some way to perform +actions as a local administrator. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery <eagle@eyrie.org> +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2010, 2013 The Board of Trustees of the Leland Stanford Junior +University +.PP +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the \*(L"Software\*(R"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: +.PP +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +.PP +\&\s-1THE SOFTWARE IS PROVIDED \*(L"AS IS\*(R", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\s0  \s-1IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.\s0 +.PP +SPDX-License-Identifier: \s-1MIT\s0 diff --git a/server/keytab-backend.8 b/server/keytab-backend.8 new file mode 100644 index 0000000..8de167b --- /dev/null +++ b/server/keytab-backend.8 @@ -0,0 +1,214 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings.  \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote.  \*(C+ will +.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and +.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +.    ds -- \(*W- +.    ds PI pi +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch +.    ds L" "" +.    ds R" "" +.    ds C` "" +.    ds C' "" +'br\} +.el\{\ +.    ds -- \|\(em\| +.    ds PI \(*p +.    ds L" `` +.    ds R" '' +.    ds C` +.    ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el       .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD.  Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +.    de IX +.    tm Index:\\$1\t\\n%\t"\\$2" +.. +.    if !\nF==2 \{\ +.        nr % 0 +.        nr F 2 +.    \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear.  Run.  Save yourself.  No user-serviceable parts. +.    \" fudge factors for nroff and troff +.if n \{\ +.    ds #H 0 +.    ds #V .8m +.    ds #F .3m +.    ds #[ \f1 +.    ds #] \fP +.\} +.if t \{\ +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m) +.    ds #V .6m +.    ds #F 0 +.    ds #[ \& +.    ds #] \& +.\} +.    \" simple accents for nroff and troff +.if n \{\ +.    ds ' \& +.    ds ` \& +.    ds ^ \& +.    ds , \& +.    ds ~ ~ +.    ds / +.\} +.if t \{\ +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +.    \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.    \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +.    \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +.    ds : e +.    ds 8 ss +.    ds o a +.    ds d- d\h'-1'\(ga +.    ds D- D\h'-1'\(hy +.    ds th \o'bp' +.    ds Th \o'LP' +.    ds ae ae +.    ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "KEYTAB-BACKEND 8" +.TH KEYTAB-BACKEND 8 "2018-06-03" "1.4" "wallet" +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +keytab\-backend \- Extract keytabs from the KDC without changing the key +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBkeytab-backend\fR retrieve \fIprincipal\fR +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBkeytab-backend\fR retrieves a keytab for an existing principal from the +\&\s-1KDC\s0 database without changing the current key.  It allows generation of a +keytab for a service without rekeying that service.  It requires a +\&\fBkadmin.local\fR patched to support the \fB\-norandkey\fR option to \fBktadd\fR. +.PP +This script is intended to run under \fBremctld\fR.  On success, it prints +the keytab to standard output, logs a success message to syslog (facility +auth, priority info), and exits with status 0.  On failure, it prints out +an error message, logs an error to syslog (facility auth, priority err), +and exits with a non-zero status. +.PP +The principal is checked for basic sanity (only accepting alphanumerics, +\&\f(CW\*(C`_\*(C'\fR, and \f(CW\*(C`\-\*(C'\fR with an optional instance and then only alphanumerics, +\&\f(CW\*(C`_\*(C'\fR, \f(CW\*(C`\-\*(C'\fR, and \f(CW\*(C`.\*(C'\fR in the realm) and then checked against a +configuration file that lists regexes of principals that can be retrieved. +When deploying this software, limit as tightly as possible which +principals can be downloaded in this fashion.  Generally only shared +service principals used on multiple systems should be made available in +this way. +.PP +\&\fBkeytab-backend\fR does not do any authorization checks.  Those should be +done by \fBremctld\fR before it is called. +.SH "FILES" +.IX Header "FILES" +.IP "\fI/etc/krb5kdc/allow\-extract\fR" 4 +.IX Item "/etc/krb5kdc/allow-extract" +The configuration file that controls which principals can have their +keytabs retrieved.  Blank lines and lines starting with \f(CW\*(C`#\*(C'\fR, as well as +anything after \f(CW\*(C`#\*(C'\fR on a line, are ignored.  All other lines should be +Perl regular expressions, one per line, that match principals whose +keytabs can be retrieved by \fBkeytab-backend\fR.  Any principal that does +not match one of those regular expressions cannot be retrieved. +.IP "\fI/var/lib/keytabs\fR" 4 +.IX Item "/var/lib/keytabs" +The temporary directory used for creating keytabs.  \fBkeytab-backend\fR will +create the keytab in this directory, make sure that was successful, and +then delete the temporary file after the results have been sent to +standard output. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery <eagle@eyrie.org> +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2006\-2008, 2010, 2013 The Board of Trustees of the Leland Stanford +Junior University +.PP +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the \*(L"Software\*(R"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: +.PP +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +.PP +\&\s-1THE SOFTWARE IS PROVIDED \*(L"AS IS\*(R", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\s0  \s-1IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.\s0 +.PP +SPDX-License-Identifier: \s-1MIT\s0 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fIkadmin.local\fR\|(8), \fIremctld\fR\|(8) +.PP +This program is part of the wallet system.  The current version is +available from <https://www.eyrie.org/~eagle/software/wallet/>. diff --git a/server/wallet-admin.8 b/server/wallet-admin.8 new file mode 100644 index 0000000..504fce2 --- /dev/null +++ b/server/wallet-admin.8 @@ -0,0 +1,226 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings.  \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote.  \*(C+ will +.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and +.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +.    ds -- \(*W- +.    ds PI pi +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch +.    ds L" "" +.    ds R" "" +.    ds C` "" +.    ds C' "" +'br\} +.el\{\ +.    ds -- \|\(em\| +.    ds PI \(*p +.    ds L" `` +.    ds R" '' +.    ds C` +.    ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el       .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD.  Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +.    de IX +.    tm Index:\\$1\t\\n%\t"\\$2" +.. +.    if !\nF==2 \{\ +.        nr % 0 +.        nr F 2 +.    \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear.  Run.  Save yourself.  No user-serviceable parts. +.    \" fudge factors for nroff and troff +.if n \{\ +.    ds #H 0 +.    ds #V .8m +.    ds #F .3m +.    ds #[ \f1 +.    ds #] \fP +.\} +.if t \{\ +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m) +.    ds #V .6m +.    ds #F 0 +.    ds #[ \& +.    ds #] \& +.\} +.    \" simple accents for nroff and troff +.if n \{\ +.    ds ' \& +.    ds ` \& +.    ds ^ \& +.    ds , \& +.    ds ~ ~ +.    ds / +.\} +.if t \{\ +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +.    \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.    \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +.    \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +.    ds : e +.    ds 8 ss +.    ds o a +.    ds d- d\h'-1'\(ga +.    ds D- D\h'-1'\(hy +.    ds th \o'bp' +.    ds Th \o'LP' +.    ds ae ae +.    ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "WALLET-ADMIN 8" +.TH WALLET-ADMIN 8 "2018-06-03" "1.4" "wallet" +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +wallet\-admin \- Wallet server administrative commands +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBwallet-admin\fR \fIcommand\fR [\fIargs\fR ...] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBwallet-admin\fR provides a command-line interface for performing +administrative actions for the wallet system, such as setting up a new +database or running reports.  It is intended to be run on the wallet +server as a user with access to the wallet database and configuration. +.PP +This program is a fairly thin wrapper around Wallet::Admin that translates +command strings into method calls and returns the results. +.SH "OPTIONS" +.IX Header "OPTIONS" +\&\fBwallet-admin\fR takes no traditional options. +.SH "COMMANDS" +.IX Header "COMMANDS" +.IP "destroy" 4 +.IX Item "destroy" +Deletes all data in the wallet database and drops all of the +wallet-created tables, restoring the database to its state prior to an +\&\f(CW\*(C`initialize\*(C'\fR command.  Since this command is destructive and cannot be +easily recovered from, \fBwallet-admin\fR will prompt first to be sure the +user intends to do this. +.IP "initialize <principal>" 4 +.IX Item "initialize <principal>" +Given an empty database, initializes it for use with the wallet server by +creating the necessary tables and initial metadata.  Also creates an \s-1ACL\s0 +with the name \s-1ADMIN,\s0 used for administrative privileges to the wallet +system, and adds an \s-1ACL\s0 entry to it with a scheme of \f(CW\*(C`krb5\*(C'\fR and an +instance of <principal>.  This bootstraps the authentication system and +allows that user to make further changes to the \s-1ADMIN ACL\s0 and the rest of +the wallet database.  \f(CW\*(C`initialize\*(C'\fR uses \f(CW\*(C`localhost\*(C'\fR as the hostname and +<principal> as the user when logging the history of the \s-1ADMIN ACL\s0 creation +and for any subsequent actions required to initialize the database. +.Sp +Before running \f(CW\*(C`initialize\*(C'\fR, the wallet system has to be configured.  See +\&\fIWallet::Config\fR\|(3) for more details.  Depending on the database backend +used, the database may also have to be created in advance. +.IP "register (object | verifier) <type> <class>" 4 +.IX Item "register (object | verifier) <type> <class>" +Registers an implementation of a wallet object or \s-1ACL\s0 verifier in the +wallet database.  The Perl class <class> is registered as the +implementation of an object of type <type> or an \s-1ACL\s0 verifier of scheme +<type>, allowing creation of objects with that type or \s-1ACL\s0 lines with that +scheme. +.Sp +All object and \s-1ACL\s0 implementations that come with wallet are registered by +default as part of database initialization, so this command is used +primarily to register local implementations of additional object types or +\&\s-1ACL\s0 schemes. +.IP "upgrade" 4 +.IX Item "upgrade" +Upgrades the database to the latest schema version, preserving data as +much as possible. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery <eagle@eyrie.org> +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2008\-2011, 2013 The Board of Trustees of the Leland Stanford Junior +University +.PP +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the \*(L"Software\*(R"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: +.PP +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +.PP +\&\s-1THE SOFTWARE IS PROVIDED \*(L"AS IS\*(R", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\s0  \s-1IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.\s0 +.PP +SPDX-License-Identifier: \s-1MIT\s0 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fIWallet::Admin\fR\|(3), \fIWallet::Config\fR\|(3), \fIwallet\-backend\fR\|(8) +.PP +This program is part of the wallet system.  The current version is +available from <https://www.eyrie.org/~eagle/software/wallet/>. diff --git a/server/wallet-backend.8 b/server/wallet-backend.8 new file mode 100644 index 0000000..ac72fd1 --- /dev/null +++ b/server/wallet-backend.8 @@ -0,0 +1,429 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings.  \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote.  \*(C+ will +.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and +.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +.    ds -- \(*W- +.    ds PI pi +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch +.    ds L" "" +.    ds R" "" +.    ds C` "" +.    ds C' "" +'br\} +.el\{\ +.    ds -- \|\(em\| +.    ds PI \(*p +.    ds L" `` +.    ds R" '' +.    ds C` +.    ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el       .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD.  Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +.    de IX +.    tm Index:\\$1\t\\n%\t"\\$2" +.. +.    if !\nF==2 \{\ +.        nr % 0 +.        nr F 2 +.    \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear.  Run.  Save yourself.  No user-serviceable parts. +.    \" fudge factors for nroff and troff +.if n \{\ +.    ds #H 0 +.    ds #V .8m +.    ds #F .3m +.    ds #[ \f1 +.    ds #] \fP +.\} +.if t \{\ +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m) +.    ds #V .6m +.    ds #F 0 +.    ds #[ \& +.    ds #] \& +.\} +.    \" simple accents for nroff and troff +.if n \{\ +.    ds ' \& +.    ds ` \& +.    ds ^ \& +.    ds , \& +.    ds ~ ~ +.    ds / +.\} +.if t \{\ +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +.    \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.    \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +.    \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +.    ds : e +.    ds 8 ss +.    ds o a +.    ds d- d\h'-1'\(ga +.    ds D- D\h'-1'\(hy +.    ds th \o'bp' +.    ds Th \o'LP' +.    ds ae ae +.    ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "WALLET-BACKEND 8" +.TH WALLET-BACKEND 8 "2018-06-03" "1.4" "wallet" +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +wallet\-backend \- Wallet server for storing and retrieving secure data +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBwallet-backend\fR [\fB\-q\fR] \fIcommand\fR [\fIargs\fR ...] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBwallet-backend\fR implements the interface between \fBremctld\fR and the +wallet system.  It is written to run under \fBremctld\fR and expects the +authenticated identity of the remote user in the \s-1REMOTE_USER\s0 environment +variable.  It uses \s-1REMOTE_HOST\s0 or \s-1REMOTE_ADDR\s0 if \s-1REMOTE_HOST\s0 isn't set for +additional trace information.  It accepts the command from \fBremctld\fR on +the command line, creates a Wallet::Server object, and calls the +appropriate methods. +.PP +This program is a fairly thin wrapper around Wallet::Server that +translates command strings into method calls and returns the results.  It +does check all arguments except for the <data> argument to the store +command and rejects any argument not matching \f(CW\*(C`^[\ew_/.\-]+\ez\*(C'\fR; in other +words, only alphanumerics, underscore (\f(CW\*(C`_\*(C'\fR), slash (\f(CW\*(C`/\*(C'\fR), period (\f(CW\*(C`.\*(C'\fR), +and hyphen (\f(CW\*(C`\-\*(C'\fR) are permitted in arguments.  This provides some +additional security over and above the checking already done by the rest +of the wallet code. +.SH "OPTIONS" +.IX Header "OPTIONS" +.IP "\fB\-\-quiet\fR, \fB\-q\fR" 4 +.IX Item "--quiet, -q" +If this option is given, \fBwallet-backend\fR will not log its actions to +syslog. +.SH "COMMANDS" +.IX Header "COMMANDS" +Most commands are only available to wallet administrators (users on the +\&\f(CW\*(C`ADMIN\*(C'\fR \s-1ACL\s0).  The exceptions are \f(CW\*(C`acl check\*(C'\fR, \f(CW\*(C`check\*(C'\fR, \f(CW\*(C`get\*(C'\fR, +\&\f(CW\*(C`store\*(C'\fR, \f(CW\*(C`show\*(C'\fR, \f(CW\*(C`destroy\*(C'\fR, \f(CW\*(C`flag clear\*(C'\fR, \f(CW\*(C`flag set\*(C'\fR, \f(CW\*(C`getattr\*(C'\fR, +\&\f(CW\*(C`setattr\*(C'\fR, and \f(CW\*(C`history\*(C'\fR.  \f(CW\*(C`acl check\*(C'\fR and \f(CW\*(C`check\*(C'\fR can be run by +anyone.  All of the rest of those commands have their own ACLs except +\&\f(CW\*(C`getattr\*(C'\fR and \f(CW\*(C`history\*(C'\fR, which use the \f(CW\*(C`show\*(C'\fR \s-1ACL,\s0 \f(CW\*(C`setattr\*(C'\fR, which +uses the \f(CW\*(C`store\*(C'\fR \s-1ACL,\s0 and \f(CW\*(C`comment\*(C'\fR, which uses the owner or \f(CW\*(C`show\*(C'\fR \s-1ACL\s0 +depending on whether one is setting or retrieving the comment.  If the +appropriate \s-1ACL\s0 is set, it alone is checked to see if the user has access. +Otherwise, \f(CW\*(C`destroy\*(C'\fR, \f(CW\*(C`get\*(C'\fR, \f(CW\*(C`store\*(C'\fR, \f(CW\*(C`show\*(C'\fR, \f(CW\*(C`getattr\*(C'\fR, \f(CW\*(C`setattr\*(C'\fR, +\&\f(CW\*(C`history\*(C'\fR, and \f(CW\*(C`comment\*(C'\fR access is permitted if the user is authorized +by the owner \s-1ACL\s0 of the object. +.PP +Administrators can run any command on any object or \s-1ACL\s0 except for \f(CW\*(C`get\*(C'\fR +and \f(CW\*(C`store\*(C'\fR.  For \f(CW\*(C`get\*(C'\fR and \f(CW\*(C`store\*(C'\fR, they must still be authorized by +either the appropriate specific \s-1ACL\s0 or the owner \s-1ACL.\s0 +.PP +If the locked flag is set on an object, no commands can be run on that +object that change data except the \f(CW\*(C`flags\*(C'\fR commands, nor can the \f(CW\*(C`get\*(C'\fR +command be used on that object.  \f(CW\*(C`show\*(C'\fR, \f(CW\*(C`history\*(C'\fR, \f(CW\*(C`getacl\*(C'\fR, +\&\f(CW\*(C`getattr\*(C'\fR, and \f(CW\*(C`owner\*(C'\fR, \f(CW\*(C`comment\*(C'\fR, or \f(CW\*(C`expires\*(C'\fR without an argument +can still be used on that object. +.PP +For more information on attributes, see \s-1ATTRIBUTES\s0. +.IP "acl add <id> <scheme> <identifier>" 4 +.IX Item "acl add <id> <scheme> <identifier>" +Add an entry with <scheme> and <identifier> to the \s-1ACL\s0 <id>.  <id> may be +either the name of an \s-1ACL\s0 or its numeric identifier. +.IP "acl check <id>" 4 +.IX Item "acl check <id>" +Check whether an \s-1ACL\s0 with the \s-1ID\s0 <id> already exists.  If it does, prints +\&\f(CW\*(C`yes\*(C'\fR; if not, prints \f(CW\*(C`no\*(C'\fR. +.IP "acl create <name>" 4 +.IX Item "acl create <name>" +Create a new, empty \s-1ACL\s0 with name <name>.  When setting an \s-1ACL\s0 on an +object with a set of entries that don't match an existing \s-1ACL,\s0 first +create a new \s-1ACL\s0 with \f(CW\*(C`acl create\*(C'\fR, add the appropriate entries to it +with \f(CW\*(C`acl add\*(C'\fR, and then set the \s-1ACL\s0 on an object with the \f(CW\*(C`owner\*(C'\fR or +\&\f(CW\*(C`setacl\*(C'\fR commands. +.IP "acl destroy <id>" 4 +.IX Item "acl destroy <id>" +Destroy the \s-1ACL\s0 <id>.  This \s-1ACL\s0 must no longer be referenced by any object +or the \s-1ACL\s0 destruction will fail.  The special \s-1ACL\s0 named \f(CW\*(C`ADMIN\*(C'\fR cannot +be destroyed. +.IP "acl history <id>" 4 +.IX Item "acl history <id>" +Display the history of the \s-1ACL\s0 <id>.  Each change to the \s-1ACL\s0 (not +including changes to the name of the \s-1ACL\s0) will be represented by two +lines.  The first line will have a timestamp of the change followed by a +description of the change, and the second line will give the user who made +the change and the host from which the change was made. +.IP "acl remove <id> <scheme> <identifier>" 4 +.IX Item "acl remove <id> <scheme> <identifier>" +Remove the entry with <scheme> and <identifier> from the \s-1ACL\s0 <id>.  <id> +may be either the name of an \s-1ACL\s0 or its numeric identifier.  The last +entry in the special \s-1ACL\s0 \f(CW\*(C`ADMIN\*(C'\fR cannot be removed to protect against +accidental lockout, but administrators can remove themselves from the +\&\f(CW\*(C`ADMIN\*(C'\fR \s-1ACL\s0 and can leave only a non-functioning entry on the \s-1ACL.\s0  Use +caution when removing entries from the \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL.\s0 +.IP "acl rename <id> <name>" 4 +.IX Item "acl rename <id> <name>" +Renames the \s-1ACL\s0 identified by <id> to <name>.  This changes the +human-readable name, not the underlying numeric \s-1ID,\s0 so the \s-1ACL\s0's +associations with objects will be unchanged.  The \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL\s0 may not be +renamed.  <id> may be either the current name or the numeric \s-1ID.\s0  <name> +must not be all-numeric.  To rename an \s-1ACL,\s0 the current user must be +authorized by the \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL.\s0 +.IP "acl replace <id> <new\-id>" 4 +.IX Item "acl replace <id> <new-id>" +Find any objects owned by <id>, and then change their ownership to +<new_id> instead.  <new\-id> should already exist, and may already have +some objects owned by it.  <id> is not deleted afterwards, though in +most cases that is probably your next step.  The \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL\s0 may not be +replaced from.  <id> and <new\-id> may be either the current name or the +numeric \s-1ID.\s0  To replace an \s-1ACL,\s0 the current user must be authorized by +the \f(CW\*(C`ADMIN\*(C'\fR \s-1ACL.\s0 +.IP "acl show <id>" 4 +.IX Item "acl show <id>" +Display the name, numeric \s-1ID,\s0 and entries of the \s-1ACL\s0 <id>. +.IP "autocreate <type> <name>" 4 +.IX Item "autocreate <type> <name>" +Create a new object of type <type> with name <name>.  The user must be +listed in the default \s-1ACL\s0 for an object with that type and name, and the +object will be created with that default \s-1ACL\s0 set as the object owner. +.IP "check <type> <name>" 4 +.IX Item "check <type> <name>" +Check whether an object of type <type> and name <name> already exists.  If +it does, prints \f(CW\*(C`yes\*(C'\fR; if not, prints \f(CW\*(C`no\*(C'\fR. +.IP "comment <type> <name> [<comment>]" 4 +.IX Item "comment <type> <name> [<comment>]" +If <comment> is not given, displays the current comment for the object +identified by <type> and <name>, or \f(CW\*(C`No comment set\*(C'\fR if none is set. +.Sp +If <comment> is given, sets the comment on the object identified by +<type> and <name> to <comment>.  If <comment> is the empty string, clears +the comment. +.IP "create <type> <name>" 4 +.IX Item "create <type> <name>" +Create a new object of type <type> with name <name>.  With some backends, +this will trigger creation of an entry in an external system as well. +The new object will have no ACLs and no owner set, so usually the +administrator will want to then set an owner with \f(CW\*(C`owner\*(C'\fR so that the +object will be usable. +.IP "destroy <type> <name>" 4 +.IX Item "destroy <type> <name>" +Destroy the object identified by <type> and <name>.  With some backends, +this will trigger destruction of an object in an external system as well. +.IP "expires <type> <name> [<date> [<time>]]" 4 +.IX Item "expires <type> <name> [<date> [<time>]]" +If <date> is not given, displays the current expiration of the object +identified by <type> and <name>, or \f(CW\*(C`No expiration set\*(C'\fR if none is set. +The expiration will be displayed in seconds since epoch. +.Sp +If <date> is given, sets the expiration on the object identified by <type> +and <name> to <date> and (if given) <time>.  <date> and <time> must be in +some format that can be parsed by the Perl Date::Parse module.  Most +common formats are supported; if in doubt, use \f(CW\*(C`YYYY\-MM\-DD HH:MM:SS\*(C'\fR.  If +<date> is the empty string, clears the expiration of the object. +.Sp +Currently, the expiration of an object is not used. +.IP "flag clear <type> <name> <flag>" 4 +.IX Item "flag clear <type> <name> <flag>" +Clears the flag <flag> on the object identified by <type> and <name>. +.IP "flag set <type> <name> <flag>" 4 +.IX Item "flag set <type> <name> <flag>" +Sets the flag <flag> on the object identified by <type> and <name>. +Recognized flags are \f(CW\*(C`locked\*(C'\fR, which prevents all further actions on that +object until the flag is cleared, and \f(CW\*(C`unchanging\*(C'\fR, which tells the +object backend to not generate new data on get but instead return the same +data as previously returned.  The \f(CW\*(C`unchanging\*(C'\fR flag is not meaningful for +objects that do not generate new data on the fly. +.IP "get <type> <name>" 4 +.IX Item "get <type> <name>" +Prints to standard output the data associated with the object identified +by <type> and <name>.  This may trigger generation of new data and +invalidate old data for that object depending on the object type. +.IP "getacl <type> <name> <acl>" 4 +.IX Item "getacl <type> <name> <acl>" +Prints the \s-1ACL\s0 <acl>, which must be one of \f(CW\*(C`get\*(C'\fR, \f(CW\*(C`store\*(C'\fR, \f(CW\*(C`show\*(C'\fR, +\&\f(CW\*(C`destroy\*(C'\fR, or \f(CW\*(C`flags\*(C'\fR, for the object identified by <type> and <name>. +Prints \f(CW\*(C`No ACL set\*(C'\fR if that \s-1ACL\s0 isn't set on that object.  Remember that +if the \f(CW\*(C`get\*(C'\fR, \f(CW\*(C`store\*(C'\fR, or \f(CW\*(C`show\*(C'\fR ACLs aren't set, authorization falls +back to checking the owner \s-1ACL.\s0  See the \f(CW\*(C`owner\*(C'\fR command for displaying +or setting it. +.IP "getattr <type> <name> <attr>" 4 +.IX Item "getattr <type> <name> <attr>" +Prints the object attribute <attr> for the object identified by <type> and +<name>.  Attributes are used to store backend-specific information for a +particular object type, and <attr> must be an attribute type known to the +underlying object implementation.  The attribute values, if any, are +printed one per line.  If the attribute is not set on this object, nothing +is printed. +.IP "history <type> <name>" 4 +.IX Item "history <type> <name>" +Displays the history for the object identified by <type> and <name>.  This +human-readable output will have two lines for each action that changes the +object, plus for any get action.  The first line has the timestamp of the +action and the action, and the second line gives the user who performed +the action and the host from which they performed it. +.IP "owner <type> <name> [<owner>]" 4 +.IX Item "owner <type> <name> [<owner>]" +If <owner> is not given, displays the current owner \s-1ACL\s0 of the object +identified by <type> and <name>, or \f(CW\*(C`No owner set\*(C'\fR if none is set.  The +result will be the name of an \s-1ACL.\s0 +.Sp +If <owner> is given, sets the owner of the object identified by <type> and +<name> to <owner>.  If <owner> is the empty string, clears the owner of +the object. +.IP "rename <type> <name> <new\-name>" 4 +.IX Item "rename <type> <name> <new-name>" +Renames an existing object.  This currently only supports file objects, +where it renames the object itself, then the name and location of the +object in the file store. +.IP "setacl <type> <name> <acl> <id>" 4 +.IX Item "setacl <type> <name> <acl> <id>" +Sets the \s-1ACL\s0 <acl>, which must be one of \f(CW\*(C`get\*(C'\fR, \f(CW\*(C`store\*(C'\fR, \f(CW\*(C`show\*(C'\fR, +\&\f(CW\*(C`destroy\*(C'\fR, or \f(CW\*(C`flags\*(C'\fR, to <id> on the object identified by <type> and +<name>.  If <id> is the empty string, clears that \s-1ACL\s0 on the object. +.IP "setattr <type> <name> <attr> <value> [<value> ...]" 4 +.IX Item "setattr <type> <name> <attr> <value> [<value> ...]" +Sets the object attribute <attr> for the object identified by <type> and +<name>.  Attributes are used to store backend-specific information for a +particular object type, and <attr> must be an attribute type known to the +underlying object implementation.  To clear the attribute for this object, +pass in a <value> of the empty string (\f(CW\*(Aq\*(Aq\fR). +.IP "show <type> <name>" 4 +.IX Item "show <type> <name>" +Displays the current object metadata for the object identified by <type> +and <name>.  This human-readable output will show the object type and +name, the owner, any specific ACLs set on the object, the expiration if +any, and the user, remote host, and time when the object was created, last +stored, and last downloaded. +.IP "store <type> <name> [<data>]" 4 +.IX Item "store <type> <name> [<data>]" +Stores <data> for the object identified by <type> and <name> for later +retrieval with \f(CW\*(C`get\*(C'\fR.  Not all object types support this.  If <data> is +not given as an argument, it will be read from standard input. +.IP "update <type> <name>" 4 +.IX Item "update <type> <name>" +Prints to standard output the data associated with the object identified +by <type> and <name>.  If the object is one that can have changing +information, such as a keytab or password, then we generate new data for +that object regardless of whether there is current data or the unchanging +flag is set. +.SH "ATTRIBUTES" +.IX Header "ATTRIBUTES" +Object attributes store additional properties and configuration +information for objects stored in the wallet.  They are displayed as part +of the object data with \f(CW\*(C`show\*(C'\fR, retrieved with \f(CW\*(C`getattr\*(C'\fR, and set with +\&\f(CW\*(C`setattr\*(C'\fR. +.SS "Keytab Attributes" +.IX Subsection "Keytab Attributes" +Keytab objects support the following attributes: +.IP "enctypes" 4 +.IX Item "enctypes" +Restricts the generated keytab to a specific set of encryption types.  The +values of this attribute must be enctype strings recognized by Kerberos +(strings like \f(CW\*(C`aes256\-cts\-hmac\-sha1\-96\*(C'\fR or \f(CW\*(C`des\-cbc\-crc\*(C'\fR).  Note that +the salt should not be included; since the salt is irrelevant for keytab +keys, it will always be set to \f(CW\*(C`normal\*(C'\fR by the wallet. +.Sp +If this attribute is set, the specified enctype list will be passed to +ktadd when \fIget()\fR is called for that keytab.  If it is not set, the default +set in the \s-1KDC\s0 will be used. +.Sp +This attribute is ignored if the \f(CW\*(C`unchanging\*(C'\fR flag is set on a keytab. +Keytabs retrieved with \f(CW\*(C`unchanging\*(C'\fR set will contain all keys present in +the \s-1KDC\s0 for that Kerberos principal and therefore may contain different +enctypes than those requested by this attribute. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery <eagle@eyrie.org> +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2007\-2008, 2010\-2013 The Board of Trustees of the Leland Stanford +Junior University +.PP +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the \*(L"Software\*(R"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: +.PP +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +.PP +\&\s-1THE SOFTWARE IS PROVIDED \*(L"AS IS\*(R", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\s0  \s-1IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.\s0 +.PP +SPDX-License-Identifier: \s-1MIT\s0 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fIWallet::Server\fR\|(3), \fIremctld\fR\|(8) +.PP +This program is part of the wallet system.  The current version is +available from <https://www.eyrie.org/~eagle/software/wallet/>. diff --git a/server/wallet-report.8 b/server/wallet-report.8 new file mode 100644 index 0000000..6b4a90b --- /dev/null +++ b/server/wallet-report.8 @@ -0,0 +1,349 @@ +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings.  \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote.  \*(C+ will +.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and +.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +.    ds -- \(*W- +.    ds PI pi +.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch +.    ds L" "" +.    ds R" "" +.    ds C` "" +.    ds C' "" +'br\} +.el\{\ +.    ds -- \|\(em\| +.    ds PI \(*p +.    ds L" `` +.    ds R" '' +.    ds C` +.    ds C' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el       .ds Aq ' +.\" +.\" If the F register is >0, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD.  Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX +.. +.if !\nF .nr F 0 +.if \nF>0 \{\ +.    de IX +.    tm Index:\\$1\t\\n%\t"\\$2" +.. +.    if !\nF==2 \{\ +.        nr % 0 +.        nr F 2 +.    \} +.\} +.\" +.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). +.\" Fear.  Run.  Save yourself.  No user-serviceable parts. +.    \" fudge factors for nroff and troff +.if n \{\ +.    ds #H 0 +.    ds #V .8m +.    ds #F .3m +.    ds #[ \f1 +.    ds #] \fP +.\} +.if t \{\ +.    ds #H ((1u-(\\\\n(.fu%2u))*.13m) +.    ds #V .6m +.    ds #F 0 +.    ds #[ \& +.    ds #] \& +.\} +.    \" simple accents for nroff and troff +.if n \{\ +.    ds ' \& +.    ds ` \& +.    ds ^ \& +.    ds , \& +.    ds ~ ~ +.    ds / +.\} +.if t \{\ +.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" +.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' +.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' +.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' +.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' +.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' +.\} +.    \" troff and (daisy-wheel) nroff accents +.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' +.ds 8 \h'\*(#H'\(*b\h'-\*(#H' +.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] +.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' +.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' +.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] +.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] +.ds ae a\h'-(\w'a'u*4/10)'e +.ds Ae A\h'-(\w'A'u*4/10)'E +.    \" corrections for vroff +.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' +.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' +.    \" for low resolution devices (crt and lpr) +.if \n(.H>23 .if \n(.V>19 \ +\{\ +.    ds : e +.    ds 8 ss +.    ds o a +.    ds d- d\h'-1'\(ga +.    ds D- D\h'-1'\(hy +.    ds th \o'bp' +.    ds Th \o'LP' +.    ds ae ae +.    ds Ae AE +.\} +.rm #[ #] #H #V #F C +.\" ======================================================================== +.\" +.IX Title "WALLET-REPORT 8" +.TH WALLET-REPORT 8 "2018-06-03" "1.4" "wallet" +.\" For nroff, turn off justification.  Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +wallet\-report \- Wallet server reporting interface +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +\&\fBwallet-report\fR \fItype\fR [\fIargs\fR ...] +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBwallet-report\fR provides a command-line interface for running reports on +the wallet database.  It is intended to be run on the wallet server as a +user with access to the wallet database and configuration, but can also be +made available via remctl to users who should have reporting privileges. +.PP +This program is a fairly thin wrapper around Wallet::Report that +translates command strings into method calls and returns the results. +.SH "OPTIONS" +.IX Header "OPTIONS" +\&\fBwallet-report\fR takes no traditional options. +.SH "COMMANDS" +.IX Header "COMMANDS" +.IP "acls" 4 +.IX Item "acls" +.PD 0 +.IP "acls duplicate" 4 +.IX Item "acls duplicate" +.IP "acls empty" 4 +.IX Item "acls empty" +.IP "acls entry <scheme> <identifier>" 4 +.IX Item "acls entry <scheme> <identifier>" +.IP "acls unused" 4 +.IX Item "acls unused" +.PD +Returns a list of ACLs in the database.  Except for the \f(CW\*(C`duplicate\*(C'\fR +report, ACLs will be listed in the form: +.Sp +.Vb 1 +\&    <name> (ACL ID: <id>) +.Ve +.Sp +where <name> is the human-readable name and <id> is the numeric \s-1ID.\s0  The +numeric \s-1ID\s0 is what's used internally by the wallet system.  There will be +one line per \s-1ACL.\s0 +.Sp +For the \f(CW\*(C`duplicate\*(C'\fR report, the output will instead be one duplicate set +per line.  This will be a set of ACLs that all have the same entries. +Only the names will be given, separated by spaces. +.Sp +If no search type is given, all the ACLs in the database will be returned. +If a search type (and possible search arguments) are given, then the ACLs +will be limited to those that match the search. +.Sp +The currently supported \s-1ACL\s0 search types are: +.RS 4 +.IP "acls duplicate" 4 +.IX Item "acls duplicate" +Returns all sets of ACLs that are duplicates, meaning that they contain +exactly the same entries.  Each line will be the names of the ACLs in a +set of duplicates, separated by spaces. +.IP "acls empty" 4 +.IX Item "acls empty" +Returns all ACLs which have no entries, generally so that abandoned ACLs +can be destroyed. +.IP "acls entry <scheme> <identifier>" 4 +.IX Item "acls entry <scheme> <identifier>" +Returns all ACLs containing an entry with given scheme and identifier. +The scheme must be an exact match, but the <identifier> string will match +any identifier containing that string. +.IP "acls nested <acl>" 4 +.IX Item "acls nested <acl>" +Returns all ACLs that contain this \s-1ACL\s0 as a nested entry. +.IP "acls unused" 4 +.IX Item "acls unused" +Returns all ACLs that are not referenced by any of the objects in the +wallet database, either as an owner or on one of the more specific ACLs. +.RE +.RS 4 +.RE +.IP "audit acls name" 4 +.IX Item "audit acls name" +.PD 0 +.IP "audit objects name" 4 +.IX Item "audit objects name" +.PD +Returns all ACLs or objects that violate the current site naming policy. +Objects will be listed in the form: +.Sp +.Vb 1 +\&    <type> <name> +.Ve +.Sp +and ACLs in the form: +.Sp +.Vb 1 +\&    <name> (ACL ID: <id>) +.Ve +.Sp +where <name> is the human-readable name and <id> is the numeric \s-1ID.\s0  The +numeric \s-1ID\s0 is what's used internally by the wallet system.  There will be +one line per object or \s-1ACL.\s0 +.IP "help" 4 +.IX Item "help" +Displays a summary of all available commands. +.IP "objects" 4 +.IX Item "objects" +.PD 0 +.IP "objects acl <acl>" 4 +.IX Item "objects acl <acl>" +.IP "objects flag <flag>" 4 +.IX Item "objects flag <flag>" +.IP "objects owner <owner>" 4 +.IX Item "objects owner <owner>" +.IP "objects type <type>" 4 +.IX Item "objects type <type>" +.IP "objects unused" 4 +.IX Item "objects unused" +.IP "objects unstored" 4 +.IX Item "objects unstored" +.PD +Returns a list of objects in the database.  Objects will be listed in the +form: +.Sp +.Vb 1 +\&    <type> <name> +.Ve +.Sp +There will be one line per object. +.Sp +If no search type is given, all objects in the database will be returned. +If a search type (and possible search arguments) are given, the objects +will be limited to those that match the search. +.Sp +The currently supported object search types are: +.RS 4 +.IP "objects acl <acl>" 4 +.IX Item "objects acl <acl>" +Returns all objects for which the given \s-1ACL\s0 name or \s-1ID\s0 has any +permissions.  This includes those objects owned by the \s-1ACL\s0 as well as +those where that \s-1ACL\s0 has any other, more limited permissions. +.IP "objects flag <flag>" 4 +.IX Item "objects flag <flag>" +Returns all objects which have the given flag set. +.IP "objects host <hostname>" 4 +.IX Item "objects host <hostname>" +Returns all objects that belong to the given host.  This requires adding +local configuration to identify objects that belong to a given host.  See +\&\*(L"\s-1OBJECT\s0 HOST-BASED \s-1NAMES\*(R"\s0 in Wallet::Config for more information. +.IP "objects owner <acl>" 4 +.IX Item "objects owner <acl>" +Returns all objects owned by the given \s-1ACL\s0 name or \s-1ID.\s0 +.IP "objects type <type>" 4 +.IX Item "objects type <type>" +Returns all objects of the given type. +.IP "objects unused" 4 +.IX Item "objects unused" +Returns all objects that have never been downloaded (have never been the +target of a get command). +.RE +.RS 4 +.RE +.IP "owners <type\-pattern> <name\-pattern>" 4 +.IX Item "owners <type-pattern> <name-pattern>" +Returns a list of all \s-1ACL\s0 entries in owner ACLs for all objects matching +both <type\-pattern> and <name\-pattern>.  These can be the type or name of +objects or they can be patterns using \f(CW\*(C`%\*(C'\fR as the wildcard character +following the normal rules of \s-1SQL\s0 patterns. +.Sp +The output will be one line per \s-1ACL\s0 line in the form: +.Sp +.Vb 1 +\&    <scheme> <identifier> +.Ve +.Sp +with duplicates suppressed. +.IP "schemes" 4 +.IX Item "schemes" +Returns a list of all registered \s-1ACL\s0 schemes. +.IP "types" 4 +.IX Item "types" +Returns a list of all registered object types. +.SH "AUTHOR" +.IX Header "AUTHOR" +Russ Allbery <eagle@eyrie.org> +.SH "COPYRIGHT AND LICENSE" +.IX Header "COPYRIGHT AND LICENSE" +Copyright 2016 Russ Allbery <eagle@eyrie.org> +.PP +Copyright 2008\-2010, 2013, 2015 The Board of Trustees of the Leland Stanford +Junior University +.PP +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the \*(L"Software\*(R"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: +.PP +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +.PP +\&\s-1THE SOFTWARE IS PROVIDED \*(L"AS IS\*(R", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\s0  \s-1IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.\s0 +.PP +SPDX-License-Identifier: \s-1MIT\s0 +.SH "SEE ALSO" +.IX Header "SEE ALSO" +\&\fIWallet::Config\fR\|(3), \fIWallet::Report\fR\|(3), \fIwallet\-backend\fR\|(8) +.PP +This program is part of the wallet system.  The current version is +available from <https://www.eyrie.org/~eagle/software/wallet/>.  | 
