diff configure.in @ 55:d237bc6331ad

autoconf cleanup from libpst changes
author Carl Byington <carl@five-ten-sg.com>
date Sat, 07 Feb 2009 11:31:43 -0800
parents d6fb7fca0394
children b45dddebe8fc
line wrap: on
line diff
--- a/configure.in	Sun Jan 25 08:41:21 2009 -0800
+++ b/configure.in	Sat Feb 07 11:31:43 2009 -0800
@@ -17,6 +17,7 @@
 AC_PROG_AWK
 AC_PROG_INSTALL
 AC_PROG_LN_S
+AC_PROG_LIBTOOL
 AC_PROG_MAKE_SET
 AC_PROG_RANLIB
 
@@ -24,7 +25,7 @@
 
 # Checks for header files.
 AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h sys/socket.h syslog.h unistd.h])
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h regex.h sys/socket.h syslog.h unistd.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_STDBOOL
@@ -37,6 +38,12 @@
 AC_FUNC_STAT
 AC_CHECK_FUNCS([daemon gethostbyname inet_ntoa memchr memmove memset regcomp strdup strtol])
 
+AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec,
+               [REGEXLIB=-lregex
+                AC_DEFINE(HAVE_REGEXEC,1,[Define to 1 if you have the regexec function.])],
+               [AC_MSG_ERROR([No regex library found])])])
+AC_SUBST(REGEXLIB)
+
 # check for posix threads
 ACX_PTHREAD