-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
39 lines (31 loc) · 1.03 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT(usbsoftrock.c)
AM_INIT_AUTOMAKE(usbsoftrock,1.0.2)
AC_CONFIG_SRCDIR([usbsoftrock.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
AC_PROG_INSTALL
# Checks for libraries.
AC_CHECK_LIB(ncurses, main,,echo "*** The ncurses library is required for interactive mode!")
PKG_CHECK_MODULES(libusb, libusb,
[
CFLAGS="$CFLAGS $libusb_CFLAGS"
CPPFLAGS="$CPPFLAGS $libusb_CFLAGS"
LIBS="$LIBS $libusb_LIBS"
],
[AC_CHECK_LIB(usb, main,, echo "*** The libusb library is required!"; exit 1)]
)
#AC_CHECK_LIB(usb, main,, echo "*** The libusb library is required!"; exit 1)
#PKG_CHECK_MODULES(libusb, libusb )
#AC_SUBST(libusb_CFLAGS)
#AC_SUBST(libusb_LIBS)
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile])
AC_OUTPUT