X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fconfigure.ac;h=5b0c0c9ece437456b7e3d1dcf71eccfadc90f4c4;hb=7e4eb1f4042323d42e9b7753714a6bf1becd9b5e;hp=699e6ef8aea627b36e597882029ca9c1eb37a1c5;hpb=62cdb81e0a92f7fae3c7da4f60c14d9a5339904e;p=PuTTY.git diff --git a/unix/configure.ac b/unix/configure.ac index 699e6ef8..5b0c0c9e 100644 --- a/unix/configure.ac +++ b/unix/configure.ac @@ -14,7 +14,7 @@ if test "X$GCC" = Xyes; then CFLAGS="$CFLAGS -Wall -Werror" fi -AC_CHECK_HEADERS([utmpx.h],,,[ +AC_CHECK_HEADERS([utmpx.h sys/select.h],,,[ #include #include ]) @@ -23,7 +23,7 @@ AC_SUBST([all_targets]) AC_SEARCH_LIBS([socket], [xnet]) -AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal]) +AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal updwtmpx]) AC_OUTPUT @@ -39,10 +39,13 @@ AH_BOTTOM([ #ifndef HAVE_STRSIGNAL # define HAVE_NO_STRSIGNAL #endif -#ifndef HAVE_UTMPX_H +#if !defined(HAVE_UTMPX_H) || !defined(HAVE_UPDWTMPX) # define OMIT_UTMP #endif #ifndef HAVE_PTSNAME # define BSD_PTYS #endif +#ifndef HAVE_SYS_SELECT_H +# define HAVE_NO_SYS_SELECT_H +#endif ])