Separate misc functions and headers checks into m4 file

This commit is contained in:
Yevgen Muntyan 2005-10-30 23:30:22 +00:00
parent 550a791396
commit 274e5dc51d
2 changed files with 28 additions and 0 deletions

View File

@ -1,6 +1,7 @@
EXTRA_DIST = \
moo-debug.m4 \
moo-fam.m4 \
moo-funcs.m4 \
moo-gtk.m4 \
moo-os.m4 \
moo-pygtk.m4 \

27
m4/moo-funcs.m4 Normal file
View File

@ -0,0 +1,27 @@
##############################################################################
# MOO_AC_FUNCS()
# various checks needed in moo
#
AC_DEFUN([MOO_AC_FUNCS],[
# for pcre
AC_CHECK_FUNCS(memmove bcopy strerror)
#for GMappedFile
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_FUNCS(mmap)
#for moofileutils.c
AC_CHECK_FUNCS(unlink)
################################################################################
# Terminal stuff
AC_CHECK_HEADERS([poll.h errno.h io.h fcntl.h sys/types.h sys/wait.h signal.h])
AC_CHECK_HEADERS([sys/select.h sys/termios.h sys/un.h stropts.h termios.h wchar.h])
AC_CHECK_FUNCS([poll pipe _pipe kill signal posix_openpt])
AC_CHECK_FUNCS([cfmakeraw getpgid getpt grantpt unlockpt ptsname ptsname_r recvmsg])
AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
AC_TYPE_PID_T
AC_HEADER_TIOCGWINSZ
################################################################################
])