-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
49 lines (37 loc) · 1.08 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
m4_define([PACKAGE_MAJOR_VERSION], [1])
m4_define([PACKAGE_MINOR_VERSION], [8])
m4_define([PACKAGE_PATCH_VERSION], [1])
AC_INIT(json,[PACKAGE_MAJOR_VERSION.PACKAGE_MINOR_VERSION.PACKAGE_PATCH_VERSION])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/json.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE
CXX=no
F77=no
# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL
# Checks for libraries.
PKG_CHECK_MODULES([CHECK], [check >= 0.9.10])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([locale.h memory.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_STDBOOL
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset setlocale])
# The pkgconfig file
MILESTONE=PACKAGE_MAJOR_VERSION.PACKAGE_MINOR_VERSION
AC_SUBST([MILESTONE])
AC_CONFIG_FILES([mjson.pc])
AC_CONFIG_FILES([Makefile
src/Makefile
tests/Makefile])
AC_OUTPUT