-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
46 lines (38 loc) · 1.17 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([glauber_dynamics], [1.0], [yannick.couzinie@uniroma3.it])
AC_CONFIG_SRCDIR([src/glauber_dynamics.c])
AC_CONFIG_HEADERS([config.h])
# Program inits
AM_INIT_AUTOMAKE([subdir-objects])
LT_INIT([])
CFLAGS+=" -std=c11"
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
# Checks for libraries.
AC_CHECK_LIB([m], [ldexp])
AC_CHECK_LIB([pcg_random], [pcg32_srandom_r])
AC_CHECK_LIB([glib-2.0], [g_assert])
AC_CHECK_LIB([gvc], [gvRender])
PKG_CHECK_MODULES([libgvc], [libgvc])
PKG_CHECK_MODULES([libglib], [glib-2.0])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h inttypes.h stddef.h stdint.h stdlib.h string.h])
AC_CHECK_HEADERS([unistd.h math.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([pow log ldexp pcg32_srandom_r pcg32_boundedrand_r pcg32_random_r])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT