Separate misc functions and headers checks into m4 file
This commit is contained in:
parent
550a791396
commit
274e5dc51d
@ -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
27
m4/moo-funcs.m4
Normal 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
|
||||
################################################################################
|
||||
])
|
Loading…
x
Reference in New Issue
Block a user