Import Upstream version 0.66.4
[hcoop/debian/courier-authlib.git] / libs / libhmac / configure.ac
CommitLineData
d9898ee8 1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl Copyright 1998 - 2001 Double Precision, Inc. See COPYING for
4dnl distribution information.
5
d9898ee8 6
7AC_INIT(libhmac, 1.00, [courier-users@lists.sourceforge.net])
8
9>confdefs.h # Kill PACKAGE_ macros
10
11AC_CONFIG_SRCDIR(hmac.h)
b0322a85 12AC_CONFIG_AUX_DIR(../..)
d9898ee8 13AM_INIT_AUTOMAKE([foreign no-define])
14
15
d50284c4 16AC_CONFIG_HEADERS(config.h)
d9898ee8 17
18dnl Checks for programs.
19AC_PROG_AWK
20AC_PROG_INSTALL
21AC_PROG_LN_S
22AC_PROG_CC
23AC_PROG_LIBTOOL
24
25if test "$GCC" = yes
26then
27 CFLAGS="-Wall $CFLAGS"
28fi
29
30CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.."
31
32dnl Checks for libraries.
33
34dnl Checks for header files.
35AC_HEADER_STDC
36
37dnl Checks for typedefs, structures, and compiler characteristics.
38AC_C_CONST
39AC_TYPE_SIZE_T
40
41dnl Checks for library functions.
42
43dnl Other checks
44
45TESTPROGS=""
46
47hmac_list=""
48
49hashlibs=""
50if test -d ${srcdir}/../md5
51then
52 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}"
53 hmac_list="$hmac_list &hmac_md5,"
54 hashlibs="$hashlibs ../md5/libmd5.la"
55fi
56
57if test -d ${srcdir}/../sha1
58then
59 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}"
60 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, "
61 hashlibs="$hashlibs ../sha1/libsha1.la"
62fi
63
64AC_SUBST(hashlibs)
65hmac_list="$hmac_list 0"
66
67AC_SUBST(TESTPROGS)
68AC_DEFINE_UNQUOTED(HMAC_LIST,$hmac_list,
69 [ Dynamically-generated list of installed HMAC hash functions ])
70
71AC_OUTPUT(Makefile)