2010-11-18 11:20:55 +00:00
|
|
|
AC_INIT([mfoc], [0.10], [mifare@nethemba.com])
|
2010-09-14 09:34:51 +00:00
|
|
|
|
2010-09-14 09:38:43 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2010-09-14 09:34:51 +00:00
|
|
|
|
2010-09-14 09:38:43 +00:00
|
|
|
AC_PROG_CC
|
2010-09-14 09:34:51 +00:00
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
2010-09-14 09:38:43 +00:00
|
|
|
AC_CONFIG_SRCDIR([src/mfoc.c])
|
2010-09-14 09:34:51 +00:00
|
|
|
|
2010-09-14 09:38:43 +00:00
|
|
|
AM_INIT_AUTOMAKE
|
2010-09-14 09:34:51 +00:00
|
|
|
|
2010-09-14 09:38:43 +00:00
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
2010-09-14 09:34:51 +00:00
|
|
|
|
2010-09-14 09:38:43 +00:00
|
|
|
# Checks for pkg-config modules.
|
2010-11-18 11:20:55 +00:00
|
|
|
LIBNFC_REQUIRED_VERSION=1.4.0
|
|
|
|
PKG_CHECK_MODULES([LIBNFC], [libnfc >= $LIBNFC_REQUIRED_VERSION], [], [AC_MSG_ERROR([libnfc >= $LIBNFC_REQUIRED_VERSION is mandatory.])])
|
2010-09-14 09:34:51 +00:00
|
|
|
|
2010-11-18 11:20:55 +00:00
|
|
|
PKG_CONFIG_REQUIRES="libnfc"
|
|
|
|
AC_SUBST([PKG_CONFIG_REQUIRES])
|
2010-09-14 09:34:51 +00:00
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_TYPE_UINT32_T
|
|
|
|
AC_TYPE_UINT64_T
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_FUNC_REALLOC
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
src/Makefile])
|
|
|
|
AC_OUTPUT
|