Add autoconf test for regex.h

darcs-hash:20060124181205-ac50b-3bd50ce2b55f58994633556af790c06c4205798b.gz
This commit is contained in:
axel 2006-01-25 04:12:05 +10:00
parent fef420d648
commit b7ef6852c7

View file

@ -155,6 +155,11 @@ AC_CHECK_LIB(intl, gettext)
# Check for various header files
AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h term.h ncurses/term.h libintl.h])
AC_CHECK_HEADER([regex.h],
[AC_DEFINE([HAVE_REGEX_H])],
[AC_MSG_ERROR([Could not find the header regex.h, needed to build fish])])
# Check for various functions, and insert results into config.h
AC_CHECK_FUNCS( wcsdup wcsndup wcslen wcscasecmp wcsncasecmp gettext fwprintf )
AC_CHECK_FUNCS( futimes wcwidth wcswidth getopt_long wcstok fputwc fgetwc )