oc-facho/experimental/facho-signer/configure.ac
bit4bit 27ebbecc01 facho-signer: se usa autoconf
FossilOrigin-Name: 5a7e25376d54d22f8d955c9b6827785d2efd673fee9813b27f4ce39d4a3e8f7e
2021-12-15 23:05:31 +00:00

40 lines
1.1 KiB
Plaintext

# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.71])
AC_INIT([facho-signer], [0.0.1], [bit4bit@riseup.net])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/facho_signer.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([clock_gettime gethrtime gettimeofday memset strdup])
PKG_CHECK_MODULES([XMLSEC1], [xmlsec1-openssl])
AC_ARG_ENABLE([xmlsec-crypto-dynamic-loading],
AS_HELP_STRING([--enable-xmlsec-crypto-dynamic-loading],
[enable crypto xmlsec dynamic loading])
)
if test "x$enable_xmlsec_crypto_dynamic_loading" == xyes; then
AC_DEFINE([XMLSEC_CRYPTO_DYNAMIC_LOADING], [1], [enable xmlsec crypto dynamic loading])
else
AC_DEFINE([XMLSEC_NO_CRYPTO_DYNAMIC_LOADING], [1], [disable xmlsec crypto dynamic loading])
fi
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT