summaryrefslogtreecommitdiffstats
path: root/libhmac/configure.ac
blob: 9b46b9ede20cfd3de8d80c782315373ccbbd09f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
dnl Process this file with autoconf to produce a configure script.
dnl
dnl Copyright 1998 - 2001 Double Precision, Inc.  See COPYING for
dnl distribution information.


AC_INIT([libhmac],[1.00],[courier-users@lists.sourceforge.net])

>confdefs.h  # Kill PACKAGE_ macros

AC_CONFIG_SRCDIR(hmac.h)
AC_CONFIG_AUX_DIR(../..)
AM_INIT_AUTOMAKE([foreign no-define])


AC_CONFIG_HEADERS(config.h)

dnl Checks for programs.
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_CC
LT_INIT

if test "$GCC" = yes
then
	CFLAGS="-Wall $CFLAGS"
fi

CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."

dnl Checks for libraries.

dnl Checks for header files.

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T

dnl Checks for library functions.

dnl Other checks

TESTPROGS=""

hmac_list=""

hashlibs=""
if test -d ${srcdir}/../md5
then
	TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
	hmac_list="$hmac_list &hmac_md5,"
	hashlibs="$hashlibs ../md5/libmd5.la"
fi

if test -d ${srcdir}/../sha1
then
	TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
	hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
	hashlibs="$hashlibs ../sha1/libsha1.la"
fi

AC_SUBST(hashlibs)
hmac_list="$hmac_list 0"

AC_SUBST(TESTPROGS)
AC_DEFINE_UNQUOTED(HMAC_LIST,$hmac_list,
	[ Dynamically-generated list of installed HMAC hash functions ])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT