File: configure.ac

package info (click to toggle)
ikeyd 0.6.0
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 600 kB
  • ctags: 41
  • sloc: sh: 3,417; ansic: 526; makefile: 58
file content (57 lines) | stat: -rw-r--r-- 1,651 bytes parent folder | download | duplicates (2)
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(ikeyd.c)
dnl Every other copy of the package version number gets its value from here
AM_INIT_AUTOMAKE(`sed 's/ .*$//; q' debian/changelog`, `sed 's/^.*(\(.*\)).*$/\1/; q' debian/changelog`)

dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
AM_CONFIG_HEADER(config.h)

AC_SUBST(VERSION)

ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)

AC_CANONICAL_HOST

dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
AC_PROG_AWK
AC_PROG_LN_S

dnl Checks for libraries.

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(errno.h, [], [echo "errno not found"; exit 1])
AC_CHECK_HEADERS(getopt.h, [], [ echo "getopt not found!"; exit 1])
AC_CHECK_HEADERS(alloca.h)
AC_CHECK_HEADERS(fcntl.h)
AC_CHECK_HEADERS(libintl.h)
AC_CHECK_HEADERS(locale.h)
AC_CHECK_HEADERS(memory.h)
AC_CHECK_HEADERS(stdlib.h)
AC_CHECK_HEADERS(string.h)
AC_CHECK_HEADERS(strings.h)
AC_CHECK_HEADERS(sys/file.h, [], [ echo "sys/file.h not found!"; exit 1])
AC_CHECK_HEADERS(sys/mount.h, [], [ echo "sys/mount.h not found!"; exit 1])
AC_CHECK_HEADERS(sys/param.h, [], [ echo "sys/param.h not found!"; exit 1])
AC_CHECK_HEADERS(sys/time.h, [], [ echo "sys/time.h not found!"; exit 1])
AC_CHECK_HEADERS(utime.h, [], [ echo "utime not found!"; exit 1])

dnl Checks for typedefs, structures, and compiler characteristics.

dnl Checks for library functions.
AC_CHECK_FUNCS([memchr])
AC_CHECK_FUNCS([stat])
AC_CHECK_FUNCS([umount])
AC_HEADER_MAJOR
AC_C_CONST
AC_FUNC_ALLOCA
AC_HEADER_DIRENT
AC_TYPE_OFF_T

AC_OUTPUT(Makefile debian/Makefile ikeyd.lsm)