1 dnl Process this file with autoconf to produce a configure script.
3 dnl Written by Russ Allbery <eagle@eyrie.org>
4 dnl Copyright 2006, 2007, 2009, 2010, 2012, 2013, 2014
5 dnl The Board of Trustees of the Leland Stanford Junior University
7 dnl See LICENSE for licensing terms.
9 dnl Basic Autoconf configuration.
11 AC_INIT([krb5-strength], [3.0], [eagle@eyrie.org])
12 AC_CONFIG_AUX_DIR([build-aux])
13 AC_CONFIG_LIBOBJ_DIR([portable])
14 AC_CONFIG_MACRO_DIR([m4])
15 AM_INIT_AUTOMAKE([1.11 check-news dist-xz foreign silent-rules subdir-objects
19 dnl Probe for basic build system tools.
21 AC_USE_SYSTEM_EXTENSIONS
25 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
29 dnl External libraries.
32 AS_IF([test x"$rra_system_cracklib" = xyes],
33 [RRA_LIB_CRACKLIB_SWITCH
34 AC_CHECK_HEADERS([crack.h])
35 RRA_LIB_CRACKLIB_RESTORE])
38 AC_CHECK_HEADERS([kadm5/kadm5-pwcheck.h kadm5/kadm5_err.h], [], [],
40 AC_CHECK_HEADERS([krb5/pwqual_plugin.h], [], [], [RRA_INCLUDES_KRB5])
41 AC_CHECK_TYPES([krb5_realm], [], [], [RRA_INCLUDES_KRB5])
42 AC_CHECK_FUNCS([krb5_free_default_realm \
44 krb5_get_init_creds_opt_alloc \
45 krb5_get_init_creds_opt_set_default_flags \
46 krb5_principal_get_realm \
48 AC_CHECK_FUNCS([krb5_get_init_creds_opt_free],
49 [RRA_FUNC_KRB5_GET_INIT_CREDS_OPT_FREE_ARGS])
50 AC_CHECK_DECLS([krb5_kt_free_entry], [], [], [RRA_INCLUDES_KRB5])
51 AC_LIBOBJ([krb5-extra])
53 RRA_LIB_SQLITE_OPTIONAL
55 dnl Probe for libdl, which is used for the test suite.
57 AC_SEARCH_LIBS([dlopen], [dl], [DL_LIBS="$LIBS"])
61 dnl Checks for basic C functionality.
63 AC_CHECK_HEADERS([sys/bittypes.h sys/select.h syslog.h])
64 AC_CHECK_DECLS([snprintf, vsnprintf])
71 AC_CHECK_TYPES([ssize_t], [], [],
72 [#include <sys/types.h>])
74 AC_CHECK_FUNCS([setrlimit])
75 AC_REPLACE_FUNCS([asprintf mkstemp strndup])
77 dnl Write out the results.
78 AC_CONFIG_FILES([Makefile])
79 AC_CONFIG_HEADER([config.h])