# 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_ARG_ENABLE(strict, AC_HELP_STRING([--disable-strict], [Don't use -Werror while building])) AC_MSG_CHECKING([Use -Werror]) if test "$enable_strict" != "no"; then AC_MSG_RESULT(yes) CFLAGS="$CFLAGS -Werror" else AC_MSG_RESULT(no) fi AC_CONFIG_FILES([ Makefile p11-tests.pc doc/Makefile src/Makefile ]) AC_OUTPUT