Deprecate uname() in favour of (Posix) gethostname().
[mmh] / configure.ac
index efae9fc..4bedb05 100644 (file)
@@ -4,6 +4,7 @@ dnl
 
 dnl Move this up a bit
 AC_PREREQ(2.61)
+dnl (I was able to configure with autoconf-2.59 --meillo 2012-03-22)
 
 AC_INIT(mmh, m4_normalize(m4_include([VERSION])))
 AC_CONFIG_SRCDIR(h/nmh.h)
@@ -342,7 +343,7 @@ AC_HEADER_TIOCGWINSZ
 AC_CHECK_HEADERS(string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
                  limits.h crypt.h termcap.h termio.h termios.h locale.h \
                  langinfo.h wchar.h wctype.h iconv.h netdb.h \
-                 sys/param.h sys/time.h sys/utsname.h sys/stream.h \
+                 sys/param.h sys/time.h sys/stream.h \
                  arpa/inet.h arpa/ftp.h)
 
 dnl
@@ -364,10 +365,9 @@ AC_CHECK_HEADER([sys/ptem.h], AC_DEFINE(WINSIZE_IN_PTEM,1,
 dnl ---------------
 dnl CHECK FUNCTIONS
 dnl ---------------
-AC_FUNC_VFORK
 AC_CHECK_LIB(mkstemp,mkstemp)
-AC_CHECK_FUNCS(waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
-               sighold sigrelse lstat uname tzset killpg mkstemp \
+AC_CHECK_FUNCS(waitpid sigaction sigprocmask sigblock sigsetmask \
+               sighold sigrelse lstat tzset mkstemp \
                getutent nl_langinfo mbtowc wcwidth)
 
 dnl sigsetjmp may be a macro