aboutsummaryrefslogtreecommitdiff
path: root/configure.in
blob: d21157361807c6d19e88c0aff600a692a693e215 (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
dnl $Id$

dnl Process this file with autoconf to produce a configure script.

AC_INIT(src/main.c)
dnl Every other copy of the package version number gets its value from here
AM_INIT_AUTOMAKE(tgeb, 0.3)

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_CC
AC_PROG_RANLIB
AC_PROG_INSTALL

dnl Checks for libraries.
AC_CHECK_LIB(z, inflate)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(arpa/inet.h limits.h netdb.h netinet/in.h stddef.h stdlib.h string.h strings.h sys/socket.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_STRUCT_TM

dnl Checks for library functions.
dnl AC_FUNC_MALLOC
dnl AC_FUNC_REALLOC
AC_CHECK_FUNCS(bzero gethostbyname memset mkdir socket strstr)

AC_OUTPUT(Makefile include/Makefile lib/Makefile src/Makefile)