autoconf 2.x changes

took out HAVE_FLEX (no longer used)
added check for dirent/dir/ndir.h
This commit is contained in:
Todd C. Miller
1995-03-28 02:15:39 +00:00
parent d24022cdef
commit dbc0ddbdff

View File

@@ -185,16 +185,13 @@ fi
dnl dnl
dnl C compiler checks (to be done after os checks) dnl C compiler checks (to be done after os checks)
dnl dnl
AC_GCC_TRADITIONAL AC_PROG_GCC_TRADITIONAL
AC_CONST AC_C_CONST
dnl dnl
dnl Program checks dnl Program checks
dnl dnl
AC_PROG_YACC AC_PROG_YACC
AC_PROG_LEX AC_PROG_LEX
if test "$LEX" = "flex"; then
AC_DEFINE(HAVE_FLEX)
fi
SUDO_PROG_INSTALL SUDO_PROG_INSTALL
SUDO_PROG_SENDMAIL SUDO_PROG_SENDMAIL
SUDO_PROG_PWD SUDO_PROG_PWD
@@ -203,8 +200,9 @@ SUDO_PROG_VI
dnl dnl
dnl Header file checks dnl Header file checks
dnl dnl
AC_STDC_HEADERS AC_HEADER_STDC
AC_HAVE_HEADERS(string.h strings.h unistd.h malloc.h paths.h dirent.h sys/sockio.h) AC_HEADER_DIRENT
AC_HAVE_HEADERS(string.h strings.h unistd.h malloc.h paths.h sys/sockio.h)
dnl ultrix termio/termios are broken dnl ultrix termio/termios are broken
if test "$OS" != "ultrix" ; then if test "$OS" != "ultrix" ; then
AC_HAVE_HEADERS(termio.h termios.h) AC_HAVE_HEADERS(termio.h termios.h)
@@ -212,34 +210,35 @@ fi
dnl dnl
dnl typedef checks dnl typedef checks
dnl dnl
AC_MODE_T AC_TYPE_MODE_T
AC_UID_T AC_TYPE_UID_T
AC_SIZE_T AC_TYPE_SIZE_T
SUDO_SSIZE_T SUDO_SSIZE_T
dnl dnl
dnl only set RETSIGTYPE if it is not set already dnl only set RETSIGTYPE if it is not set already
dnl dnl
case "$DEFS" in case "$DEFS" in
*"RETSIGTYPE"*) ;; *"RETSIGTYPE"*) ;;
*) AC_RETSIGTYPE;; *) AC_TYPE_SIGNAL;;
esac esac
dnl dnl
dnl Function checks dnl Function checks
dnl dnl
AC_HAVE_FUNCS(getwd strchr strrchr memcpy sysconf sigaction bzero tzset tcsetattr) AC_CHECK_FUNCS(getwd strchr strrchr memcpy sysconf sigaction bzero tzset tcsetattr)
AC_FUNC_CHECK(strdup, AC_DEFINE(HAVE_STRDUP), LIBOBJS="$LIBOBJS strdup.o") AC_CHECK_FUNC(strdup, AC_DEFINE(HAVE_STRDUP), LIBOBJS="$LIBOBJS strdup.o")
AC_FUNC_CHECK(getcwd, AC_DEFINE(HAVE_GETCWD), LIBOBJS="$LIBOBJS getcwd.o") AC_CHECK_FUNC(getcwd, AC_DEFINE(HAVE_GETCWD), LIBOBJS="$LIBOBJS getcwd.o")
AC_FUNC_CHECK(setenv, AC_DEFINE(HAVE_SETENV), AC_FUNC_CHECK(putenv, AC_DEFINE(HAVE_PUTENV), LIBOBJS="$LIBOBJS putenv.o")) AC_CHECK_FUNC(lsearch, AC_DEFINE(HAVE_LSEARCH), LIBOBJS="$LIBOBJS lsearch.o")
AC_CHECK_FUNC(setenv, AC_DEFINE(HAVE_SETENV), AC_FUNC_CHECK(putenv, AC_DEFINE(HAVE_PUTENV), LIBOBJS="$LIBOBJS putenv.o"))
dnl dnl
dnl library checks dnl library checks
dnl dnl
dnl Irix 5.2 (at least) has bugs in -lnsl and -lsocket dnl Irix 5.2 (at least) has bugs in -lnsl and -lsocket
if test "$OS" != "irix" -o $OSREV -ne 5 ; then if test "$OS" != "irix" -o $OSREV -ne 5 ; then
AC_CHECK_LIB(nsl) AC_HAVE_LIBRARY(nsl)
AC_CHECK_LIB(socket) AC_HAVE_LIBRARY(socket)
fi fi
dnl For those w/o crypt(3) dnl For those w/o crypt(3)
AC_CHECK_LIB(ufc) AC_HAVE_LIBRARY(ufc)
dnl dnl
dnl OS-dependent libraries dnl OS-dependent libraries
dnl dnl