summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 2fd8ca444f1b3da6b0ca15f6d77964e1a06d2f90 (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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([snoop], [1.0], [http://osdyson.org])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_nfs_acl.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([dhcputil], [dhcpv6_find_option])
AC_CHECK_LIB([dlpi], [dlpi_bind])
AC_CHECK_LIB([tsol], [bsltos])

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

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h \
                  limits.h malloc.h netdb.h netinet/in.h stddef.h \
                  stdlib.h string.h strings.h sys/param.h sys/socket.h \
                  sys/time.h unistd.h values.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_FUNC_REALLOC
AC_CHECK_FUNCS([alarm bzero gethostname inet_ntoa \
                isascii memchr memmove memset munmap \
                socket strchr strdup strerror strpbrk \
                strspn strtoul])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT