forked from katie-snow/Ultimarc-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
49 lines (35 loc) · 1.23 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(Ultimarc-linux, 1.1)
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE()
AC_PROG_CC
AM_PROG_CC_C_O
AC_CONFIG_MACRO_DIR([m4])
LT_INIT
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_UINT16_T
# Checks for library functions.
AC_CHECK_FUNCS([memset strcasecmp strncasecmp strtol])
# Kernel headers path.
AC_ARG_WITH(kernel-headers,
[AC_HELP_STRING([--with-kernel-headers=DIR],
[specify path of Linux kernel headers [/usr/src/kernel-headers]])],
[case "${withval}" in
yes | no) AC_MSG_ERROR([bad value ${withval} for --with-kernel-headers]) ;;
*) KERNEL_HEADERS_DIR="${withval}" ;;
esac],
[KERNEL_HEADERS_DIR="/usr/src/kernel-headers"])
CPPFLAGS="-I$KERNEL_HEADERS_DIR/include"
AX_PKG_CHECK_MODULES([JSON], [], [json-c >= 0.11])
AX_PKG_CHECK_MODULES([LIBUSB], [], [libusb-1.0 >= 1.0.18])
AC_SUBST([ULTIMARC_LIB_VERSION], [1.1])
AC_CONFIG_FILES([Makefile
src/libs/Makefile
src/umtool/Makefile
ultimarc-${ULTIMARC_LIB_VERSION}.pc:ultimarc.pc.in])
AC_OUTPUT