|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_INIT(libsntl, 0.1.0)
|
|
|
|
|
|
|
|
#LDFLAGS="$LDFLAGS -L/mingw/lib -L/local/lib"
|
|
|
|
|
|
|
|
AC_CONFIG_MACRO_DIR(['aclocal'])
|
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([1.11])
|
|
|
|
|
|
|
|
AM_SILENT_RULES([yes])
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
LT_INIT
|
|
|
|
|
|
|
|
dnl *****************
|
|
|
|
dnl ***** options *****
|
|
|
|
dnl *****************
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([build_examples],
|
|
|
|
AS_HELP_STRING([--enable-build-examples], [Enable examples build]))
|
|
|
|
|
|
|
|
AS_IF([test "x$enable_build_examples" = "xyes"], [
|
|
|
|
AC_DEFINE([BUILD_EXAMPLES], 1, [build of examples enabled])
|
|
|
|
])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_build_examples" = "xyes")
|
|
|
|
|
|
|
|
dnl ************win32*********
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([win32],
|
|
|
|
AS_HELP_STRING([--enable-win32-build], [Enable win32 build mode]))
|
|
|
|
|
|
|
|
AS_IF([test "x$enable_win32_build" = "xyes"], [
|
|
|
|
AC_DEFINE([BUILD_WIN32], 1, [build for win32]),
|
|
|
|
LDFLAGS="$LDFLAGS -L/mingw/lib -L/local/lib"
|
|
|
|
],
|
|
|
|
[
|
|
|
|
PKG_CHECK_MODULES(LIBUUID, [uuid])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(OPENSSL, [openssl])
|
|
|
|
dnl PKG_CHECK_MODULES(LIBUUID, [uuid])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(LIBTDATA, [libtdata])
|
|
|
|
PKG_CHECK_MODULES(LIBSEXPR, [libsexpr])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_WIN32, test "x$enable_win32_build" = "xyes")
|
|
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
lib/libsntl.pc
|
|
|
|
lib/Makefile
|
|
|
|
include/Makefile
|
|
|
|
examples/Makefile])
|