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
5 dnl Board of Trustees, Leland Stanford Jr. 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 silent-rules -Wall -Werror])
18 AC_USE_SYSTEM_EXTENSIONS
25 AC_CHECK_HEADERS([sys/bittypes.h])
26 AC_CHECK_DECLS([snprintf, vsnprintf])
32 AC_REPLACE_FUNCS([asprintf strlcat strlcpy])
35 AC_SEARCH_LIBS([dlopen], [dl], [DL_LIBS="$LIBS"])
41 AC_CHECK_HEADERS([kadm5-pwcheck.h krb5/pwcheck_plugin.h])
42 AC_CHECK_TYPES([krb5_realm], , , [#include <krb5.h>])
45 dnl Create the tests/data directory for builds outside the source directory.
46 AC_CONFIG_COMMANDS([tests/data/.placeholder], [touch tests/data/.placeholder])
48 AC_CONFIG_FILES([Makefile])
49 AC_CONFIG_HEADER([config.h])