forked from openucx/xpmem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
65 lines (57 loc) · 1.92 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.63])
AC_INIT([xpmem], [2.7], [http://github.com/openucx/xpmem/issues])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_SRCDIR([include/xpmem.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AM_SILENT_RULES
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_AR
LT_INIT
AC_PROG_LN_S
# 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_KERNEL_CHECKS
AC_CONFIG_FILES([Makefile
cray-xpmem.pc
module
include/Makefile
kernel/Kbuild
kernel/Makefile
kernel/xpmem
lib/Makefile
test/Makefile])
AC_CONFIG_LINKS([kernel/xpmem_attach.c:kernel/xpmem_attach.c
kernel/xpmem_get.c:kernel/xpmem_get.c
kernel/xpmem_main.c:kernel/xpmem_main.c
kernel/xpmem_make.c:kernel/xpmem_make.c
kernel/xpmem_misc.c:kernel/xpmem_misc.c
kernel/xpmem_mmu_notifier.c:kernel/xpmem_mmu_notifier.c
kernel/xpmem_pfn.c:kernel/xpmem_pfn.c
kernel/xpmem_private.h:kernel/xpmem_private.h
test/run.sh:test/run.sh])
AC_OUTPUT