]> eyrie.org Git - kerberos/krb5-strength.git/blob - configure.ac
Merge commit 'upstream/1.0' into debian
[kerberos/krb5-strength.git] / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
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
6 dnl
7 dnl See LICENSE for licensing terms.
8
9 AC_PREREQ([2.64])
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])
15 AM_MAINTAINER_MODE
16
17 AC_PROG_CC
18 AC_USE_SYSTEM_EXTENSIONS
19 AM_PROG_CC_C_O
20 AC_PROG_INSTALL
21 AM_DISABLE_STATIC
22 AC_PROG_LIBTOOL
23
24 AC_HEADER_STDBOOL
25 AC_CHECK_HEADERS([sys/bittypes.h])
26 AC_CHECK_DECLS([snprintf, vsnprintf])
27 AC_TYPE_LONG_LONG_INT
28 RRA_FUNC_SNPRINTF
29 AC_REPLACE_FUNCS([asprintf strlcat strlcpy])
30
31 save_LIBS="$LIBS"
32 AC_SEARCH_LIBS([dlopen], [dl], [DL_LIBS="$LIBS"])
33 LIBS="$save_LIBS"
34 AC_SUBST([DL_LIBS])
35
36 RRA_LIB_KRB5
37 RRA_LIB_KRB5_SWITCH
38 AC_CHECK_HEADERS([kadm5-pwcheck.h krb5/pwcheck_plugin.h])
39 AC_CHECK_TYPES([krb5_realm], , , [#include <krb5.h>])
40 RRA_LIB_KRB5_RESTORE
41
42 dnl Create the tests/data directory for builds outside the source directory.
43 AC_CONFIG_COMMANDS([tests/data/.placeholder], [touch tests/data/.placeholder])
44
45 AC_CONFIG_FILES([Makefile])
46 AC_CONFIG_HEADER([config.h])
47 AC_OUTPUT