1 dnl Process this file with autoconf to produce a configure script.
3 dnl Written by Russ Allbery <rra@stanford.edu>
4 dnl Copyright 2006, 2007, 2009, 2010, 2012
5 dnl The Board of Trustees of the Leland Stanford Junior University
7 dnl See LICENSE for licensing terms.
10 AC_INIT([krb5-strength], [1.0], [rra@stanford.edu])
11 AC_CONFIG_AUX_DIR([build-aux])
12 AC_CONFIG_LIBOBJ_DIR([portable])
13 AC_CONFIG_MACRO_DIR([m4])
14 AM_INIT_AUTOMAKE([1.11 check-news foreign silent-rules subdir-objects \
19 AC_USE_SYSTEM_EXTENSIONS
26 AC_CHECK_HEADERS([sys/bittypes.h])
27 AC_CHECK_DECLS([snprintf, vsnprintf])
29 AC_CHECK_TYPES([ssize_t], [], [],
30 [#include <sys/types.h>])
35 AC_REPLACE_FUNCS([asprintf strlcat strlcpy])
38 AC_SEARCH_LIBS([dlopen], [dl], [DL_LIBS="$LIBS"])
45 AC_CHECK_HEADERS([kadm5-pwcheck.h krb5/pwcheck_plugin.h])
46 AC_CHECK_TYPES([krb5_realm], [], [], [RRA_INCLUDES_KRB5])
49 dnl Create the tests/data directory for builds outside the source directory.
50 AC_CONFIG_COMMANDS([tests/data/.placeholder], [touch tests/data/.placeholder])
52 AC_CONFIG_FILES([Makefile])
53 AC_CONFIG_HEADER([config.h])