-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfigure.ac
44 lines (28 loc) · 1006 Bytes
/
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
AC_PREREQ([2.69])
AC_INIT(limit-fs, 0.1, [email protected])
AC_PREFIX_DEFAULT(/usr)
AC_CONFIG_SRCDIR([src/limit-fs.c])
AM_INIT_AUTOMAKE
#AC_CONFIG_sHEADERS([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
PKG_CHECK_MODULES([FUSE3], [fuse3 >= 3], [have_fuse3=yes], [
PKG_CHECK_MODULES([FUSE], [fuse < 3], [have_fuse3=no])
])
AM_CONDITIONAL([FUSE3], [test "$have_fuse3" = "yes"])
# Checks for header files.
#AC_CHECK_HEADERS([fcntl.h stddef.h stdlib.h string.h sys/file.h sys/time.h unistd.h])
AC_CHECK_HEADERS([fuse.h stdio.h stdlib.h string.h unistd.h fcntl.h sys/stat.h dirent.h errno.h sys/time.h sys/file.h stddef.h assert.h ftw.h])
AC_OUTPUT([Makefile src/Makefile])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([fdatasync ftruncate memset mkfifo realpath strdup strerror strrchr])
AC_OUTPUT