summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 6b7fdb7b088ee77af7b6d6c6983305ba6ff40a0d (plain)
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
# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2009 Kay Sievers <kay.sievers@vrfy.org>

AC_INIT([usbutils],
	[017],
	[linux-usb@vger.kernel.org])
AC_PREREQ(2.60)
AM_INIT_AUTOMAKE([check-news foreign 1.9 dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PREFIX_DEFAULT([/usr])

AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE

AC_CHECK_HEADERS([byteswap.h])
AC_CHECK_FUNCS([nl_langinfo iconv])

PKG_INSTALLDIR

PKG_CHECK_MODULES(LIBUSB, libusb-1.0 >= 1.0.14)

PKG_CHECK_MODULES(UDEV, libudev >= 196)

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
	usbutils.pc
	Makefile
])
AC_CONFIG_SUBDIRS([usbhid-dump])

AC_OUTPUT
AC_MSG_RESULT([
	usbutils $VERSION
	=============

	prefix:                 ${prefix}
	datarootdir:            ${datarootdir}
	datadir:                ${datadir}
	pkgconfigdir:		${pkgconfigdir}
	mandir:                 ${mandir}

	usb.ids:                ${datadir}/usb.ids

	compiler:               ${CC}
	cflags:                 ${CFLAGS}
	ldflags:                ${LDFLAGS}
])