This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
forked from bagder/spindly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
58 lines (47 loc) · 1.4 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
55
56
57
58
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.64)
AC_INIT([spindly],[-],[spdy-library@cool.haxx.se])
AC_COPYRIGHT([Copyright (c) .. fill in])
AC_CONFIG_SRCDIR([src/spdy_data.c])
AM_CONFIG_HEADER([src/spdy_config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_MAINTAINER_MODE
# Checks for programs.
AC_PROG_CC
dnl libtool setup
AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE
dnl figure out the spindly version
SPINDLYVER=`$SED -ne 's/^#define SPINDLY_VERSION *"\(.*\)"/\1/p' ${srcdir}/include/spindly.h`
AC_MSG_CHECKING([spindly version])
AC_MSG_RESULT($SPINDLYVER)
AC_SUBST(SPINDLYVER)
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h netinet/in.h stdint.h stdlib.h string.h \
sys/types.h stdbool.h sys/socket.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
# check for bool type
AC_CHECK_TYPE([bool],[
AC_DEFINE(HAVE_BOOL_T, 1,
[Define to 1 if bool is an available type.])
], ,[
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#endif
])
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset])
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile doc/Makefile \
include/Makefile bin/Makefile demo/Makefile])
AC_OUTPUT