comparison configure.in @ 5:ccf40fd3b050

autoconf cleanup from libpst changes
author Carl Byington <carl@five-ten-sg.com>
date Sat, 07 Feb 2009 11:33:07 -0800
parents 48d06780cf77
children
comparison
equal deleted inserted replaced
4:180d26aa2a17 5:ccf40fd3b050
15 AC_PROG_CC 15 AC_PROG_CC
16 AC_PROG_CPP 16 AC_PROG_CPP
17 AC_PROG_AWK 17 AC_PROG_AWK
18 AC_PROG_INSTALL 18 AC_PROG_INSTALL
19 AC_PROG_LN_S 19 AC_PROG_LN_S
20 AC_PROG_LIBTOOL
20 AC_PROG_MAKE_SET 21 AC_PROG_MAKE_SET
21 AC_PROG_RANLIB 22 AC_PROG_RANLIB
22 23
23 # Checks for libraries. 24 # Checks for libraries.
24 25
25 # Checks for header files. 26 # Checks for header files.
26 AC_HEADER_SYS_WAIT 27 AC_HEADER_SYS_WAIT
27 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h sys/socket.h syslog.h unistd.h]) 28 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h regex.h sys/socket.h syslog.h unistd.h])
28 29
29 # Checks for typedefs, structures, and compiler characteristics. 30 # Checks for typedefs, structures, and compiler characteristics.
30 AC_HEADER_STDBOOL 31 AC_HEADER_STDBOOL
31 AC_C_CONST 32 AC_C_CONST
32 33
34 AC_FUNC_FORK 35 AC_FUNC_FORK
35 AC_FUNC_GETPGRP 36 AC_FUNC_GETPGRP
36 AC_HEADER_STDC 37 AC_HEADER_STDC
37 AC_FUNC_STAT 38 AC_FUNC_STAT
38 AC_CHECK_FUNCS([daemon gethostbyname inet_ntoa memchr memmove memset regcomp strdup strtol]) 39 AC_CHECK_FUNCS([daemon gethostbyname inet_ntoa memchr memmove memset regcomp strdup strtol])
40
41 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec,
42 [REGEXLIB=-lregex
43 AC_DEFINE(HAVE_REGEXEC,1,[Define to 1 if you have the regexec function.])],
44 [AC_MSG_ERROR([No regex library found])])])
45 AC_SUBST(REGEXLIB)
39 46
40 # check for posix threads 47 # check for posix threads
41 ACX_PTHREAD 48 ACX_PTHREAD
42 49
43 AC_CONFIG_FILES([Makefile 50 AC_CONFIG_FILES([Makefile