-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
43 lines (35 loc) · 1.11 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# AC_PREREQ(2.57)
AC_INIT(TestU01, 1.2.3, lecuyer@iro.umontreal.ca)
AC_CONFIG_SRCDIR([mylib/num.c])
AM_INIT_AUTOMAKE([gnu subdir-objects foreign])
AC_CONFIG_HEADER([include/config.h])
AC_CONFIG_HEADER([include/gdefconf.h])
AC_CANONICAL_HOST
# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
AC_CHECK_PROG(have_mathematica,math, yes, no)
# Checks for libraries.
AC_CHECK_LIBM
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([sys/utsname.h unistd.h windows.h gmp.h stdint.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_C_BIGENDIAN
AC_CHECK_TYPES([long long, uint32_t, uint8_t])
# Checks for library functions.
# AC_FUNC_MALLOC
# AC_FUNC_REALLOC
LIBS="$LIBM $LIBS"
AC_CHECK_FUNCS([random erf lgamma log1p])
AC_CONFIG_FILES([Makefile include/Makefile mylib/Makefile examples/Makefile mylib-unit-tests/Makefile])
AC_SUBST([LIBM])
AC_OUTPUT