diff options
author | Raja R Harinath <harinath@src.gnome.org> | 1998-06-11 00:12:59 +0000 |
---|---|---|
committer | Raja R Harinath <harinath@src.gnome.org> | 1998-06-11 00:12:59 +0000 |
commit | 8d99ec411e2b2971d16656907c2275642faa15c8 (patch) | |
tree | 334417f9edc1b535b05e9c312b7b8f47dad96732 /configure.in | |
parent | 122ca000b5807b8d24a430196f76af5a76c00a97 (diff) | |
download | gtk+-8d99ec411e2b2971d16656907c2275642faa15c8.tar.gz |
Explain check better.
* configure.in (fd_set): Explain check better.
* acinclude.m4: New file. Contains `libtool.m4' from libtool-1.2,
the version from which gtk+'s libtool forked. Needed for people
who use post-1.2 alphas of libtool.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/configure.in b/configure.in index 20021703cc..0f6df07a34 100644 --- a/configure.in +++ b/configure.in @@ -365,21 +365,22 @@ AC_C_CONST AC_TYPE_SIGNAL AC_FUNC_MMAP -# Check for sys/select.h - -AC_MSG_CHECKING([fd_set and sys/select]) +# Check if <sys/select.h> needs to be included for fd_set +AC_MSG_CHECKING([for fd_set]) AC_TRY_COMPILE([#include <sys/types.h>], [fd_set readMask, writeMask;], gtk_ok=yes, gtk_ok=no) -if test $gtk_ok = no; then +if test $gtk_ok = yes; then + AC_MSG_RESULT([yes, found in sys/types.h]) +else AC_HEADER_EGREP(fd_mask, sys/select.h, gtk_ok=yes) if test $gtk_ok = yes; then AC_DEFINE(HAVE_SYS_SELECT_H) + AC_MSG_RESULT([yes, found in sys/select.h]) + else + AC_DEFINE(NO_FD_SET) + AC_MSG_RESULT(no) fi fi -AC_MSG_RESULT($gtk_ok) -if test $gtk_ok = no; then - AC_DEFINE(NO_FD_SET) -fi AC_OUTPUT([ Makefile |