AC_INIT(configure.in) CONFIG_RULES AC_PROG_ARCHIVE AC_PROG_ARCHIVE_ADD AC_PROG_RANLIB AC_PROG_INSTALL AC_CONST KRB5_POSIX_LOCKS AC_CHECK_HEADERS(sys/select.h time.h unistd.h) dnl Could check for full stdc environment, but will only test dnl for stdlib.h AC_CHECK_HEADERS(stdlib.h) AC_C_CROSS dnl pretty up output, eval this before AC_TRY_RUN dnl need MSBFIRST, LSBFIRST, BITS16, BITS32 AC_MSG_CHECKING([if system is msbfirst]) AC_CACHE_VAL(krb5_cv_is_msbfirst, [AC_TRY_RUN( [#include int main() { int one = 1; exit (*(char*) &one); /* MSBFIRST iff 1 */ }], krb5_cv_is_msbfirst=yes, krb5_cv_is_msbfirst=no )])dnl fail on cross for now AC_MSG_RESULT($krb5_cv_is_msbfirst) if test $krb5_cv_is_msbfirst = yes; then AC_DEFINE(MSBFIRST) else AC_DEFINE(LSBFIRST) fi dnl dnl check int, set bits16/bits32 based on it AC_CHECK_SIZEOF(int) if test $ac_cv_sizeof_int = 2; then AC_DEFINE(BITS16) else AC_DEFINE(BITS32) fi AC_DEFINE(KRB4_USE_KEYTAB) AC_HAVE_FUNCS(strsave seteuid setreuid setresuid) AC_PROG_AWK CopyHeader(krb_err.h,$(EHDRDIR)) KRB5_BUILD_LIBOBJS KRB5_BUILD_LIBRARY_WITH_DEPS V5_AC_OUTPUT_MAKEFILE