mirror of
https://github.com/nfc-tools/mfcuk.git
synced 2026-02-18 02:55:49 +00:00
Update autotools files to use libnfc >= 1.6.0
This commit is contained in:
parent
bb64564cad
commit
9d83e8a254
17
configure.ac
17
configure.ac
@ -1,4 +1,4 @@
|
|||||||
AC_INIT([mfcuk], [0.3.3], [zveriu@gmail.com])
|
AC_INIT([mfcuk], [0.3.4], [zveriu@gmail.com])
|
||||||
|
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
@ -6,20 +6,19 @@ AC_PROG_CC
|
|||||||
|
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR([src/mfcuk.c])
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
|
|
||||||
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
||||||
|
|
||||||
# Checks for pkg-config modules.
|
# Checks for pkg-config modules.
|
||||||
LIBNFC_REQUIRED_VERSION=1.5.1
|
LIBNFC_REQUIRED_VERSION=1.6.0
|
||||||
PKG_CHECK_MODULES([LIBNFC], [libnfc >= $LIBNFC_REQUIRED_VERSION], [], [AC_MSG_ERROR([libnfc >= $LIBNFC_REQUIRED_VERSION is mandatory.])])
|
PKG_CHECK_MODULES([libnfc], [libnfc >= $LIBNFC_REQUIRED_VERSION], [], [AC_MSG_ERROR([libnfc >= $LIBNFC_REQUIRED_VERSION is mandatory.])])
|
||||||
|
|
||||||
PKG_CONFIG_REQUIRES="libnfc"
|
PKG_CONFIG_REQUIRES="libnfc"
|
||||||
AC_SUBST([PKG_CONFIG_REQUIRES])
|
AC_SUBST([PKG_CONFIG_REQUIRES])
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_C_INLINE
|
||||||
AC_HEADER_STDBOOL
|
AC_HEADER_STDBOOL
|
||||||
AC_TYPE_SIZE_T
|
AC_TYPE_SIZE_T
|
||||||
AC_TYPE_UINT16_T
|
AC_TYPE_UINT16_T
|
||||||
@ -30,10 +29,16 @@ AC_TYPE_UINT8_T
|
|||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_MALLOC
|
AC_FUNC_MALLOC
|
||||||
AC_FUNC_REALLOC
|
AC_FUNC_REALLOC
|
||||||
AC_CHECK_FUNCS([memset strchr])
|
|
||||||
|
AC_CHECK_HEADERS([sys/time.h])
|
||||||
|
AC_CHECK_FUNCS([memset strchr strtoul])
|
||||||
|
|
||||||
# Checks for endianness convertion
|
# Checks for endianness convertion
|
||||||
AC_CHECK_HEADERS([endian.h sys/endian.h CoreFoundation/CoreFoundation.h])
|
AC_CHECK_HEADERS([endian.h sys/endian.h CoreFoundation/CoreFoundation.h])
|
||||||
|
if test $ac_cv_header_endian_h = "no" -a $ac_cv_header_sys_endian_h = "no" -a $ac_cv_header_CoreFoundation_CoreFoundation_h = "no"; then
|
||||||
|
AC_MSG_ERROR(["Can't locate usable header file for endianness convertions."]);
|
||||||
|
fi
|
||||||
|
|
||||||
AC_CHECK_HEADERS([byteswap.h])
|
AC_CHECK_HEADERS([byteswap.h])
|
||||||
|
|
||||||
AC_DEFINE([_XOPEN_SOURCE], [600], [Define to 500 if Single Unix conformance is wanted, 600 for sixth revision.])
|
AC_DEFINE([_XOPEN_SOURCE], [600], [Define to 500 if Single Unix conformance is wanted, 600 for sixth revision.])
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
AM_CFLAGS = @LIBNFC_CFLAGS@
|
AM_CFLAGS = @libnfc_CFLAGS@
|
||||||
AM_LDFLAGS = @LIBNFC_LIBS@
|
|
||||||
|
|
||||||
bin_PROGRAMS = mfcuk
|
bin_PROGRAMS = mfcuk
|
||||||
|
|
||||||
noinst_HEADERS = crapto1.h mifare.h nfc-utils.h mfcuk_mifare.h mfcuk_finger.h mfcuk_utils.h xgetopt.h mfcuk.h
|
noinst_HEADERS = crapto1.h mifare.h nfc-utils.h mfcuk_mifare.h mfcuk_finger.h mfcuk_utils.h xgetopt.h mfcuk.h
|
||||||
|
|
||||||
mfcuk_SOURCES = crapto1.c crypto1.c mifare.c nfc-utils.c mfcuk_mifare.c mfcuk_finger.c mfcuk_utils.c xgetopt.c mfcuk.c
|
mfcuk_SOURCES = crapto1.c crypto1.c mifare.c nfc-utils.c mfcuk_mifare.c mfcuk_finger.c mfcuk_utils.c xgetopt.c mfcuk.c
|
||||||
|
mfcuk_LDADD = @libnfc_LIBS@
|
||||||
|
|
||||||
# dist_man_MANS = mfcuk.1
|
# dist_man_MANS = mfcuk.1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user