-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfigure.ac
More file actions
40 lines (32 loc) · 961 Bytes
/
configure.ac
File metadata and controls
40 lines (32 loc) · 961 Bytes
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT(cpuaff,1.0.6,dcdillon@gmail.com,cpuaff)
AM_INIT_AUTOMAKE
AC_OUTPUT(Makefile include/Makefile examples/Makefile tests/Makefile)
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
# Checks for library functions.
AC_CANONICAL_HOST
case $host in
*linux*)
;;
*)
AC_CHECK_LIB(hwloc, hwloc_topology_init)
;;
esac
AC_ARG_WITH([hwloc], AS_HELP_STRING([--with-hwloc],
[Use hwloc library even if this platform doesn't require it]),
CPPFLAGS="$CPPFLAGS -DCPUAFF_USE_HWLOC" LIBS="$LIBS -lhwloc")
CXXFLAGS="$CXXFLAGS -Wall -Werror -pedantic"
AC_OUTPUT