-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
60 lines (51 loc) · 1.59 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
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([libnfsidmap-regex],[0.1],[[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
LT_INIT
# Checks for programs.
AC_PROG_CC
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([strchr strdup])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h unistd.h errno.h])
AC_CHECK_HEADERS([nfsidmap_internal.h], [], [], [[#include <sys/types.h>
#include <stddef.h>
#include "nfsidmap.h"]])
AC_CHECK_HEADERS([nfsidmap_plugin.h], [], [], [[#include <sys/types.h>
#include <stddef.h>
#include "nfsidmap.h"]])
AC_CHECK_DECLS([conf_get_str], [], [], [[#include <sys/types.h>
#include <stddef.h>
#include "nfsidmap.h"
#ifdef HAVE_NFSIDMAP_INTERNAL_H
#include "nfsidmap_internal.h"
#endif
#ifdef HAVE_NFSIDMAP_PLUGIN_H
#include "nfsidmap_plugin.h"
#endif
]])
AC_CHECK_DECLS([nfsidmap_config_get], [], [], [[#include <sys/types.h>
#include <stddef.h>
#include "nfsidmap.h"
#ifdef HAVE_NFSIDMAP_INTERNAL_H
#include "nfsidmap_internal.h"
#endif
#ifdef HAVE_NFSIDMAP_PLUGIN_H
#include "nfsidmap_plugin.h"
#endif
]])
#Set the NFSv4 idmapd library install path
AC_ARG_ENABLE([nfsidmaplibdir], [AS_HELP_STRING([--enable-nfsidmaplibdir],
[Where to install libnfsidmap libraries ($libdir/libnfsidmap)])],
[nfsidmaplibdir=$enableval],
[nfsidmaplibdir=$libdir/libnfsidmap])
AC_SUBST(nfsidmaplibdir)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT