AC_INIT([modetw],[0.1-alpha],[paumars@protonmail.com]) AM_INIT_AUTOMAKE([-Wall]) AC_PROG_CC AC_PROG_LIBTOOL AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([ Makefile src/Makefile tests/Makefile ]) AM_PATH_XML2(2.4.0) AM_PATH_GLIB_2_0([2.7.1], [ac_glib_test="yes"], [ac_glib_test="no"], [gprintf]) AM_PATH_CHECK() AC_CHECK_FUNCS([munmap]) AC_CHECK_FUNCS([strstr]) AC_CHECK_HEADERS([fcntl.h]) AC_FUNC_MALLOC AC_FUNC_MMAP AC_FUNC_REALLOC AC_TYPE_SIZE_T # Find OpenSSL AX_CHECK_OPENSSL AC_CHECK_LIB([crypto],[MD5], [], [AC_MSG_ERROR([OpenSSL libraries required])]) AC_CHECK_HEADERS([openssl/md5.h],[],[AC_MSG_ERROR([OpenSSL headers required])]) AC_OUTPUT