summaryrefslogtreecommitdiff
path: root/configure.in
blob: 9a3d42a8dd022c63b8d4dffe42541c239deff797 (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
# Process this file with autoconf to produce a configure script.
AC_INIT(p11-tests, 0.1, stef@memberwebs.com)
AM_INIT_AUTOMAKE(p11-tests, 0.1)

AC_CONFIG_SRCDIR([src/p11-tests.c])
AM_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL

# Depend on openssl
AC_CHECK_LIB(crypto, BN_new, ,
         [echo "ERROR: Must have openssl library."; exit 1]
)

AC_CHECK_HEADERS([openssl/rsa.h], ,
		[echo "ERROR: Must have openssl headers"; exit 1]
)

CFLAGS="$CFLAGS -g -O0 -Wall"

AC_CONFIG_FILES([
Makefile
doc/Makefile
src/Makefile
])
AC_OUTPUT