# Process this file with autoconf to produce a configure script. AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS) top_srcdir=`pwd` sinclude(./build/python.m4) sinclude(./build/ssl.m4) AC_PREFIX_DEFAULT(/usr/local/badca) PY_PYTHON_VERSION() PY_PYTHON_PREFIX() PY_PYTHON_EXEC_PREFIX() dnl We don't yet require this module, so comment this test out dnl until we do - soon, but not quite yet! dnl PY_PYTHON_IMPORT_CHECK(gpgme, [ dnl from pyme import core, constants dnl dnl plain = core.Data('Testing availability of gpgme.') dnl ]) AC_CHECK_HEADER(Python.h) BADCA_CHECK_OPENSSL dnl Use a simple paython script to find the path that our extensions dnl will be built in. This is used to allow tests to be run without the dnl need to install the extensions. EXT_PATH=`$PYTHON $top_srcdir/build/extensionPath.py` AC_MSG_RESULT([Extensions will be built in $EXT_PATH]) AC_SUBST(EXT_PATH) AC_SUBST(top_srcdir) AC_CONFIG_FILES([Makefile openssl/setup.py openssl/Makefile]) AC_OUTPUT() echo " All looks good to build BaDCA! To build BaDCA, type make To test BaDCA, type make test "