X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.ac;h=9fd84c85228e64697fee89db630321a2c84e5c15;hb=0c648c7c1509760370d4c4267a45a5a305885e7f;hp=1c1b400b79762db7f6911d3a57a6c4915d956857;hpb=0052f1024deb0a0a2fc2e5bacf93d45a5a9c9b32;p=mmh diff --git a/configure.ac b/configure.ac index 1c1b400..9fd84c8 100644 --- a/configure.ac +++ b/configure.ac @@ -337,7 +337,6 @@ AC_SUBST(OURDEFS) AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_TIME -AC_HEADER_SYS_WAIT AC_HEADER_STAT AC_HEADER_TIOCGWINSZ AC_CHECK_HEADERS(fcntl.h crypt.h termcap.h \ @@ -363,9 +362,8 @@ AC_CHECK_HEADER([sys/ptem.h], AC_DEFINE(WINSIZE_IN_PTEM,1, dnl --------------- dnl CHECK FUNCTIONS dnl --------------- -AC_CHECK_LIB(mkstemp,mkstemp) -AC_CHECK_FUNCS(waitpid sigaction sigprocmask sigblock sigsetmask \ - sighold sigrelse lstat tzset mkstemp \ +AC_CHECK_FUNCS(sigaction sigprocmask sigblock sigsetmask \ + sighold sigrelse lstat tzset \ getutent nl_langinfo mbtowc wcwidth) dnl sigsetjmp may be a macro @@ -575,34 +573,6 @@ AC_CHECK_MEMBERS(struct tm.tm_gmtoff,,, AC_CHECK_MEMBERS(struct utmp.ut_type,,,[#include ]) -AC_MSG_CHECKING(for union wait) -AC_CACHE_VAL(nmh_cv_union_wait, [dnl - AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include -#include ]], - [[union wait status; int pid; pid = wait (&status); -#ifdef WEXITSTATUS -/* Some POSIXoid systems have both the new-style macros and the old - union wait type, and they do not work together. If union wait - conflicts with WEXITSTATUS et al, we don't want to use it at all. */ - if (WEXITSTATUS (status) != 0) pid = -1; -#ifdef WTERMSIG - /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */ - -- blow chunks here -- -#endif -#endif -#ifdef HAVE_WAITPID - /* Make sure union wait works with waitpid. */ - pid = waitpid (-1, &status, 0); -#endif - ]])], - [nmh_cv_union_wait=yes], - [nmh_cv_union_wait=no])]) -if test "$nmh_cv_union_wait" = yes; then - AC_DEFINE(HAVE_UNION_WAIT, 1, - [Define to 1 if you have the \`union wait' type in .]) -fi -AC_MSG_RESULT($nmh_cv_union_wait) - CHECK_TYPE_STRUCT_DIRENT_D_TYPE() dnl -------------