summaryrefslogtreecommitdiff
path: root/configure.in
blob: 807b872e2704bf98a5391a7c8564d76207485466 (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
# 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
AM_PROG_LIBTOOL

# 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