-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconfigure.ac
More file actions
69 lines (58 loc) · 1.99 KB
/
configure.ac
File metadata and controls
69 lines (58 loc) · 1.99 KB
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
66
67
68
69
# initial information about the project
AC_INIT([benchmark],[0.0],[olivier.bonaventure@uclouvain.be])
# automake initialization (mandatory) including a check
# for automake API version >= 1.9
# foreign is for ignoring that there is no NEWS, README, ...
AM_INIT_AUTOMAKE([1.9 -Wall foreign])
LT_INIT
AC_CONFIG_MACRO_DIR([m4])
# check for C++ preprocessor and compiler
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
# use the C++ compiler for the following checks
AC_LANG([C])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([error.h])
AC_CHECK_HEADERS([fcntl.h])
AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([stdio.h])
AC_CHECK_HEADERS([string.h])
AC_CHECK_HEADERS([time.h])
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([sys/stat.h])
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_HEADERS([sys/times.h])
AC_CHECK_HEADERS([sys/types.h])
AC_PATH_PROG([GNUPLOT], [gnuplot], [notfound])
AC_PATH_PROG([PERF], [perf], [notfound])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# distribute additional compiler and linker flags among Makefiles
# --> set and change these variables instead of CXXFLAGS or LDFLAGS (for user only)
AC_SUBST([AM_CFLAGS])
AC_SUBST([AM_LDFLAGS])
# files to generate via autotools (prepare .am or .in source files)
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([alloc/Makefile])
AC_CONFIG_FILES([io/Makefile])
AC_CONFIG_FILES([lib/Makefile])
AC_CONFIG_FILES([shell/Makefile])
AC_CONFIG_FILES([argfct/Makefile])
AC_CONFIG_FILES([memfork/Makefile])
AC_CONFIG_FILES([mutsem/Makefile])
AC_CONFIG_FILES([amdahl/Makefile])
AC_CONFIG_FILES([calloc/Makefile])
AC_CONFIG_FILES([file/Makefile])
AC_CONFIG_FILES([fork/Makefile])
AC_CONFIG_FILES([mmap/Makefile])
AC_CONFIG_FILES([pipe/Makefile])
AC_CONFIG_FILES([shm/Makefile])
AC_CONFIG_FILES([tab/Makefile])
AC_CONFIG_FILES([textbin/Makefile])
AC_CONFIG_FILES([thread/Makefile])
AC_CONFIG_FILES([types/Makefile])
AM_CONDITIONAL(OS_IS_MAC, [test $(uname -s) = Darwin])
# finally this generates the Makefiles etc. for the build
AC_OUTPUT