summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 97dd419a643d7e7b2502697ae666c9cbcab267c8 (plain)
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
66
67
68
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([truss], [0.9], [http://osdyson.org])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([usr/src/cmd/truss/main.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([foreign dist-xz subdir-objects])

# Checks for programs.
AC_PROG_CC_C99

# Checks for libraries.
AC_CHECK_LIB([nvpair], [nvlist_unpack])
AC_CHECK_LIB([tsol], [label_to_str])

AC_CHECK_LIB([proc], [proc_lwp_in_set])
AC_CHECK_LIB([c_db], [td_ta_new]) dnl c_db needs proc
AC_CHECK_LIB([rtld_db], [rd_event_getmsg])

AC_SEARCH_LIBS([socket], [socket])
AC_SEARCH_LIBS([inet_ntop], [nsl])

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h \
                  memory.h netdb.h netinet/in.h \
                  stddef.h stdio_ext.h stdlib.h string.h \
                  sys/acl.h sys/file.h sys/fstyp.h sys/mount.h \
                  sys/socket.h sys/statfs.h sys/statvfs.h \
                  sys/systeminfo.h sys/time.h termio.h unistd.h])

AC_CHECK_HEADERS([sys/scsi/impl/uscsi.h sys/zfs_ioctl.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_CHECK_MEMBERS([struct stat.st_blksize])
AC_STRUCT_ST_BLOCKS
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_TYPE_UID_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T

AC_CHECK_MEMBERS([zfs_cmd_t.zc_flags], [], [],
    [[
     #ifdef HAVE_SYS_ZFS_IOCTL_H
     #include <sys/zfs_ioctl.h>
     #endif
    ]]
)

# Checks for library functions.
AC_FUNC_CHOWN
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_FUNC_REALLOC
AC_CHECK_FUNCS([gethrtime gettimeofday isascii \
                memset strchr strdup strrchr \
                strspn strstr strtol])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT