File: configure.ac

package info (click to toggle)
tmpreaper 1.5.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 352 kB
  • ctags: 110
  • sloc: ansic: 1,506; sh: 355; makefile: 70
file content (41 lines) | stat: -rw-r--r-- 1,281 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
# Process this file with autoconf to produce a configure script.
AC_INIT(tmpreaper, 1.5.0, tmpreaper@packages.debian.org)
AM_INIT_AUTOMAKE(tmpreaper, 1.5.0)
AC_CONFIG_SRCDIR([tmpreaper.c])
AM_CONFIG_HEADER(config.h)

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL

# Checks for libraries.

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([errno.h limits.h stdlib.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
# AC_C_CONST

# Checks for library functions.
# AC_FUNC_FORK
# AC_PROG_GCC_TRADITIONAL
# AC_FUNC_LSTAT
# AC_FUNC_MALLOC
AC_FUNC_SETVBUF_REVERSED
# AC_FUNC_UTIME_NULL
# AC_FUNC_VPRINTF
# AC_CHECK_FUNCS([getcwd memmove memset rmdir strerror utime])

# AC_TRY_COMPILE([#include <glob.h>], [int x = GLOB_BRACE], HAVE_GLOB_BRACE=true, HAVE_GLOB_BRACE=false)
AC_CHECK_DECL(GLOB_BRACE, HAVE_GLOB_BRACE=true, HAVE_GLOB_BRACE=false, [#include <glob.h>])

AC_CHECK_FUNC(getopt_long, HAVE_GETOPT_LONG=true, HAVE_GETOPT_LONG=false)

AM_CONDITIONAL(HAVE_GETOPT_LONG, $HAVE_GETOPT_LONG)

AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(tmpreaper.8, [if $HAVE_GLOB_BRACE; then cp tmpreaper.8.in tmpreaper.8; else sed 's,^\.\\" ,,' tmpreaper.8.in > tmpreaper.8; fi], HAVE_GLOB_BRACE=$HAVE_GLOB_BRACE)
AC_OUTPUT