1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.61)
5AC_INIT(tgif, 4.2.5, bill.cheng@acm.org)
6AC_CONFIG_SRCDIR([wb_seg.c])
7AM_INIT_AUTOMAKE
8AM_CONFIG_HEADER([config.h])
9
10# Checks for programs.
11AC_PROG_CC
12
13# Checks for libraries.
14AC_CHECK_LIB([X11], [XOpenDisplay])
15AC_CHECK_LIB([Xt], [XtInitialize])
16AC_CHECK_LIB([socket], [socket])
17AC_CHECK_LIB([nsl], [inet_addr])
18AC_CHECK_LIB([dl], [dlsym])
19AC_CHECK_LIB([idn], [stringprep_convert])
20AC_CHECK_LIB([m], [pow])
21AC_CHECK_LIB([z], [deflate])
22AC_CHECK_LIB([pthread], [pthread_create])
23
24# Checks for header files.
25AC_PATH_X
26AC_HEADER_DIRENT
27AC_HEADER_STDC
28AC_HEADER_SYS_WAIT
29AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h sys/timeb.h unistd.h])
30
31# Checks for typedefs, structures, and compiler characteristics.
32AC_C_CONST
33AC_TYPE_MODE_T
34AC_TYPE_SIZE_T
35AC_HEADER_TIME
36AC_TYPE_UINT16_T
37AC_TYPE_UINT32_T
38
39# Checks for library functions.
40AC_FUNC_CLOSEDIR_VOID
41AC_FUNC_FORK
42AC_PROG_GCC_TRADITIONAL
43AC_FUNC_LSTAT
44AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
45AC_FUNC_MALLOC
46AC_FUNC_MEMCMP
47AC_FUNC_REALLOC
48AC_FUNC_SELECT_ARGTYPES
49AC_TYPE_SIGNAL
50AC_FUNC_STAT
51AC_FUNC_STRTOD
52AC_CHECK_FUNCS([ftime getcwd gethostbyname gethostname gettimeofday memmove memset mkdir pow putenv select setlocale socket sqrt strchr strpbrk strrchr strstr strtol])
53
54AC_CONFIG_FILES([Makefile])
55# BC: skipping AC_CONFIG_SUBDIRS([rmcast])
56AC_OUTPUT
57