dnl Process this file with autoconf to produce a configure script.
AC_INIT(regex.c)

AC_CANONICAL_SYSTEM

AC_PROG_CC
AC_PROG_INSTALL

dnl I'm not sure if AC_AIX and AC_DYNIX_SEQ are really necessary.  The
dnl Autoconf documentation isn't specific about which BSD functions they
dnl provide.
AC_AIX
AC_DYNIX_SEQ
AC_ISC_POSIX
AC_MINIX

AC_STDC_HEADERS
AC_HAVE_HEADERS(string.h)

AC_ALLOCA
AC_CONST

AC_PREFIX(gcc)

case "$target_os" in 

*darwin*)
	AC_DEFINE(regcomp,  regcomp1)
	AC_DEFINE(regexec,  regexec1)
	AC_DEFINE(regfree,  regfree1)
	AC_DEFINE(regerror, regerror1)

	;;

esac

AC_OUTPUT(Makefile doc/Makefile test/Makefile)
