-
Notifications
You must be signed in to change notification settings - Fork 5
/
configure.ac
66 lines (55 loc) · 1.66 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
59
60
61
62
63
64
65
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
## AC_PREREQ(2.60)
AC_PREREQ(2.59)
AC_INIT(MEDDLY, 0.17.7, [asminer@iastate.edu], meddly, [https://asminer.github.io/meddly/])
AM_INIT_AUTOMAKE([-Wall foreign parallel-tests color-tests subdir-objects])
# Allow silent builds, and make it the default, if we can:
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_SRCDIR([src/meddly.h])
AC_CONFIG_MACRO_DIR([m4])
AC_PREFIX_DEFAULT([$PWD])
# Checks for programs.
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX(11)
AC_PROG_CC
# Add AM_PROG_AR, if we can...
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AM_PROG_LIBTOOL
# Checks for libraries.
AC_ARG_WITH([gmp],
[AS_HELP_STRING([--without-gmp], [disable support for gmp])],
[],
[with_gmp=yes])
LIBGMP=
AS_IF([test "x$with_gmp" != xno],
[AC_CHECK_LIB([gmp], [__gmpz_init], [],
[AC_MSG_FAILURE([gmp test failed (--without-gmp to disable)])],
[])])
# Checks for header files.
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
## AC_TYPE_UINT32_T
# Checks for library functions.
AC_FUNC_FORK
AC_HEADER_STDC
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_REALLOC
AC_TYPE_SIGNAL
AC_FUNC_STRTOD
AC_CHECK_FUNCS([getrusage gettimeofday memmove memset strtol malloc_size malloc_good_size malloc_usable_size])
AC_CONFIG_FILES([Makefile
examples/Makefile
src/Makefile
tests/Makefile
timing/Makefile])
AC_OUTPUT