-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
33 lines (25 loc) · 998 Bytes
/
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([joystck_powerlink_cn], [0.1], [[email protected]])
AM_INIT_AUTOMAKE([-Wall, -Werror foreign subdir-objects])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([src/config.h])
# Checks for programs.
AC_PROG_CC
PKG_PROG_PKG_CONFIG
# Checks for modules:
PKG_CHECK_MODULES([NCURSES],[ncurses])
PKG_CHECK_MODULES([OPENPOWERLINK],[openpowerlink])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h limits.h stddef.h stdlib.h string.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_CHECK_HEADER_STDBOOL
# Checks for library functions.
AC_CHECK_FUNCS([memset select strerror strtoul])
# Powerlink defines:
#AC_DEFINE([CONFIG_KERNELSTACK_DIRECTLINK],[],[])
AC_DEFINE([CONFIG_USE_SYNCTHREAD],[],[Create separate thread for syncronous data exchange])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT