File: configure.ac

package info (click to toggle)
libident 0.32-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,464 kB
  • sloc: sh: 8,260; ansic: 840; makefile: 27
file content (57 lines) | stat: -rw-r--r-- 1,562 bytes parent folder | download | duplicates (3)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT([libident], [0.32], [rdenis@simphalempin.com])
AC_CONFIG_SRCDIR([ident.c])
AC_CONFIG_AUX_DIR([admin])
AM_INIT_AUTOMAKE([1.7 check-news dist-bzip2 std-options])
AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([sys/types.h sys/select.h sys/time.h fcntl.h netdb.h netinet/in.h sys/socket.h syslog.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
RDC_STRUCT_SOCKADDR_LEN
RDC_STRUCT_SOCKADDR_STORAGE

# Checks for library functions.
AC_TYPE_SIGNAL
RDC_FUNC_SOCKET


AH_TEMPLATE(DEBUG, [Define to 1 to compile debugging code.])
AC_ARG_ENABLE(debug,
	      [  --enable-debug          Turn on debugging],
	      [case "${enableval}" in
		yes) debug=true ;;
		no) debug=false ;;
		*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
	       esac],[debug=false])
if test x$debug = xtrue; then
	AC_DEFINE(DEBUG, 1)
fi

AC_ARG_ENABLE(testers,
	      [  --enable-testers        Turn on tests program compilation],
	      [case "${enableval}" in
		yes) testers=true ;;
		no) testers=false ;;
		*) AC_MSG_ERROR(bad value ${enableval} for --enable-testers) ;;
	       esac],[testers=false])
if test x$testers = xtrue; then
	RDC_TYPE_SOCKLEN_T
	RDC_FUNC_GETADDRINFO
fi
AM_CONDITIONAL(TESTERS, test x$testers = xtrue)

AC_CONFIG_FILES([Makefile])
AC_OUTPUT