2009-12-18 21:32:25 +01:00
|
|
|
AC_INIT([libfreefare], [0.0.0])
|
|
|
|
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
|
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
|
|
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_HEADER_STDBOOL
|
|
|
|
AC_TYPE_INT16_T
|
|
|
|
AC_TYPE_INT32_T
|
|
|
|
AC_TYPE_UINT8_T
|
|
|
|
AC_TYPE_UINT16_T
|
|
|
|
AC_TYPE_UINT32_T
|
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
|
|
|
|
# Checks for library functions.
|
|
|
|
AC_FUNC_MALLOC
|
|
|
|
AC_FUNC_REALLOC
|
2009-12-19 23:55:50 +01:00
|
|
|
AC_CHECK_FUNCS([memset])
|
2009-12-18 21:32:25 +01:00
|
|
|
|
|
|
|
# Checks for pkg-config modules.
|
|
|
|
PKG_CHECK_MODULES([LIBNFC], [libnfc], [], [AC_MSG_ERROR([libnfc is mandatory.])])
|
|
|
|
|
2009-12-18 22:31:45 +01:00
|
|
|
PKG_CONFIG_REQUIRES="libnfc"
|
|
|
|
AC_SUBST([PKG_CONFIG_REQUIRES])
|
|
|
|
|
|
|
|
AC_OUTPUT([Makefile libfreefare.pc])
|