forked from wd8rde/libExtio_genesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
54 lines (44 loc) · 1.33 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
49
50
51
52
53
54
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.60)
AC_INIT(extio_genesis, new, [[email protected]>])
#AM_INIT_AUTOMAKE([-Wall -Werror foreign])
#AM_INIT_AUTOMAKE([-Werror foreign])
AM_INIT_AUTOMAKE([])
AC_CONFIG_SRCDIR([genesis.cpp])
#AC_CONFIG_HEADER([config.h])
AC_CANONICAL_HOST
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
LT_INIT([dlopen])
dnl XXX we need to cover Intel as well as PowerPC
if test $host_cpu = "powerpc" && test $host_vendor = "apple"; then
dnl set specific macosx paths (fink)
CFLAGS="$CFLAGS -I/sw/include"
LDFLAGS="$LDFLAGS -L/sw/lib"
CPPFLAGS="$CPPFLAGS -I/sw/include"
fi
# Checks for libraries.
AC_CHECK_LIB([hidapi-libusb], [hid_get_serial_number_string], ,
[AC_MSG_ERROR("Could not find library hidapi-libusb.")])
AC_CHECK_LIB([pthread], [pthread_create])
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_HEADER_STDBOOL
AC_TYPE_UID_T
# Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_STAT
AC_CHECK_FUNCS([memset])
PKG_CHECK_MODULES(HID, hidapi-libusb >= 0.8)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT