-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
33 lines (26 loc) · 876 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([PIIR], [1.0.0], [https://github.com/mortenmathiasen/piir/issues])
AC_CONFIG_SRCDIR([src/parson.c])
AC_CONFIG_HEADERS([config.h])
# AutoMake
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
# Checks for programs.
AC_PROG_CC
# Checks for header files.
AC_CHECK_HEADERS([stddef.h stdlib.h string.h unistd.h])
AC_CHECK_HEADERS([gpiod.h],[LINK_GPIOD=-lgpiod])
AC_SUBST(LINK_GPIOD)
AC_CHECK_HEADERS([pigpio.h],[LINK_PIGPIO=-lpigpio])
AC_SUBST(LINK_PIGPIO)
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_STRTOD
AC_CHECK_FUNCS([memmove strchr strdup strstr])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT