+Sun Aug 24 15:51:12 1997 Mikael Djurfeldt <mdj@kenneth>
+
+ * configure.in (AC_CHECK_HEADERS): Test for rxposix.h,
+ rx/rxposix.h. Add library rx only if regcomp can't be found
+ without it.
+
+ * acconfig.h (HAVE_REGCOMP): Added it here since autoheader misses
+ it for some reason!
+
Fri Aug 22 21:21:49 1997 Jim Blandy <jimb@totoro.red-bean.com>
* THANKS: New file.
AC_HEADER_DIRENT
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h regex.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/utime.h time.h unistd.h utime.h)
+AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h regex.h rxposix.h rx/rxposix.h sys/ioctl.h sys/select.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/utime.h time.h unistd.h utime.h)
GUILE_HEADER_LIBC_WITH_UNISTD
AC_TYPE_GETGROUPS
AC_TYPE_MODE_T
AC_CHECK_LIB(m, main)
-AC_CHECK_LIB(rx, main)
AC_CHECK_FUNC(gethostbyname)
if test $ac_cv_func_gethostbyname = no; then
AC_CHECK_LIB(nsl, gethostbyname)
AC_DEFINE(HAVE_RESTARTS)
fi
-if test "$ac_cv_header_regex_h" = yes; then
- AC_CHECK_FUNCS(regcomp, [LIBOBJS="regex-posix.o $LIBOBJS"])
+if test "$ac_cv_header_regex_h" = yes ||
+ test "$ac_cv_header_rxposix_h" = yes ||
+ test "$ac_cv_header_rx_rxposix_h" = yes; then
+ unset ac_cv_func_regcomp
+ AC_CHECK_FUNC(regcomp, [LIBOBJS="regex-posix.o $LIBOBJS"])
+ if test "$ac_cv_func_regcomp" != yes; then
+ AC_CHECK_LIB(rx, main)
+ unset ac_cv_func_regcomp
+ AC_CHECK_FUNC(regcomp, [LIBOBJS="regex-posix.o $LIBOBJS"])
+ fi
+ dnl The following should not be necessary, but for some reason
+ dnl autoheader misses it if we don't include it!
+ if test "$ac_cv_func_regcomp" = yes; then
+ AC_DEFINE(HAVE_REGCOMP)
+ fi
fi
AC_REPLACE_FUNCS(inet_aton putenv strerror)