Commit 2487ccea authored by Alexandre Julliard's avatar Alexandre Julliard

Removed check for union semun; cleaned up a bit.

parent 1ae869c9
......@@ -232,17 +232,6 @@ then
AC_DEFINE(HAVE_OSS)
fi
dnl **** Check for union semun ****
AC_CACHE_CHECK("for union semun", ac_cv_c_union_semun,
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/sem.h>],[union semun foo],
ac_cv_c_union_semun="yes", ac_cv_c_union_semun="no"))
if test "$ac_cv_c_union_semun" = "yes"
then
AC_DEFINE(HAVE_UNION_SEMUN)
fi
dnl **** If ln -s doesn't work, use cp instead ****
if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
......@@ -445,21 +434,67 @@ then
AC_DEFINE(NO_REENTRANT_X11)
fi
dnl **** Check for functions and header files ****
AC_CHECK_FUNCS(rfork clone _lwp_create getpagesize memmove sendmsg sigaltstack strerror stricmp tcgetattr timegm usleep wait4 waitpid vfscanf)
AC_CHECK_HEADERS(wctype.h sys/syscall.h syscall.h sys/param.h sys/vfs.h sys/mount.h sys/statfs.h float.h linux/cdrom.h linux/ucdrom.h sys/cdio.h sys/filio.h sys/modem.h strings.h sys/strtio.h dlfcn.h unistd.h sys/sockio.h net/if.h netinet/in.h sys/file.h libio.h curses.h ncurses.h elf.h arpa/nameser.h resolv.h sys/lwp.h ucontext.h)
dnl **** Check for functions ****
AC_CHECK_FUNCS(\
_lwp_create \
clone \
getpagesize \
memmove \
rfork \
sendmsg \
sigaltstack \
strerror \
stricmp \
tcgetattr \
timegm \
usleep \
vfscanf \
wait4 \
waitpid \
)
dnl **** Check for header files ****
AC_CHECK_HEADERS(\
arpa/nameser.h \
curses.h \
dlfcn.h \
elf.h \
float.h \
libio.h \
linux/cdrom.h \
linux/ucdrom.h \
ncurses.h \
net/if.h \
netinet/in.h \
resolv.h \
strings.h \
sys/cdio.h \
sys/file.h \
sys/filio.h \
sys/lwp.h \
sys/modem.h \
sys/mount.h \
sys/param.h \
sys/sockio.h \
sys/statfs.h \
sys/strtio.h \
sys/syscall.h \
sys/vfs.h \
syscall.h \
ucontext.h \
unistd.h \
wctype.h \
)
AC_HEADER_STAT()
dnl **** Check for types ****
AC_C_CONST()
AC_TYPE_SIZE_T()
AC_CHECK_SIZEOF(long long,0)
dnl **** Check for sendmsg in -lsocket if not found above ****
if test $ac_cv_func_sendmsg = no; then
AC_CHECK_LIB(socket,sendmsg)
fi
dnl **** statfs checks ****
if test "$ac_cv_header_sys_vfs_h" = "yes"
......
......@@ -9,9 +9,6 @@
/* Define to use .string instead of .ascii */
#undef HAVE_ASM_STRING
/* Define if union semun is defined in sys/sem.h */
#undef HAVE_UNION_SEMUN
/* Define if struct msghdr contains msg_accrights */
#undef HAVE_MSGHDR_ACCRIGHTS
......
......@@ -21,9 +21,6 @@
/* Define to use .string instead of .ascii */
#undef HAVE_ASM_STRING
/* Define if union semun is defined in sys/sem.h */
#undef HAVE_UNION_SEMUN
/* Define if struct msghdr contains msg_accrights */
#undef HAVE_MSGHDR_ACCRIGHTS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment