forked from hpc/xpmem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
61 lines (51 loc) · 1.5 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([xpmem], [0.2], [http://github.com/hjelmn/xpmem/issues])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_SRCDIR([include/xpmem.h])
AC_CONFIG_MACRO_DIR([m4])
AM_CONFIG_HEADER([config.h])
AM_SILENT_RULES
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_AR
AM_PROG_LIBTOOL
AC_PROG_LN_S
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_C_VOLATILE
# Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MMAP
AC_CHECK_FUNCS([getpagesize memset])
AC_ARG_WITH([module-prefix],
[AS_HELP_STRING([--with-module-prefix],
[Prefix for kernel module installation])],
[],
[with_module_prefix=$prefix])
AC_SUBST([moduleprefix], [${with_module_prefix%%/}])
AC_SUBST([initdir], [${sysconfdir}/init.d])
AC_SUBST([ldsoconfdir], [/etc/ld.so.conf.d])
AC_SUBST([pkgconfigdir], [${libdir}/pkgconfig])
AC_PATH_KERNEL_SOURCE
AC_CONFIG_FILES([Makefile
cray-xpmem.pc
module
include/Makefile
kernel/Kbuild
kernel/Makefile
kernel/xpmem
lib/Makefile
test/Makefile])
AC_OUTPUT