-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
39 lines (25 loc) · 1 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.69])
AC_INIT([gateway-demo], [0.0.1], [[email protected]])
# AC_CONFIG_SRCDIR([])
# AC_CONFIG_HEADERS([])
AM_INIT_AUTOMAKE([subdir-objects foreign -Wno-gnu -Werror])
# Checks for programs.
AC_PROG_CC
# AC_PROG_INSTALL
LT_INIT
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AX_PTHREAD
AC_CHECK_LIB(socket, connect)
dnl Checks for library functions.
AC_CHECK_FUNCS([malloc memset posix_memalign socket])
AC_CHECK_HEADERS([ev.h libev/ev.h], [], [])
AC_CHECK_LIB([ev], [ev_loop_destroy], [LIBS="-lev $LIBS"], [AC_MSG_ERROR([couldn't find libev])])
AC_CHECK_HEADERS([ev.h libev/ev.h], [], [])
AC_CHECK_LIB([json-c], [json_tokener_parse_ex], [LIBS="-ljson-c $LIBS"], [AC_MSG_ERROR([couldn't find json-c])])
AC_CONFIG_FILES([Makefile src/Makefile libmqtt/Makefile])
AC_OUTPUT