New checks.

1998-08-06  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (HAVE_SOCKETS, HAVE_SOCKADDR_SUN_LEN): New checks.
This commit is contained in:
Martin Baulig
1998-08-06 22:53:45 +00:00
committed by Martin Baulig
parent 0a7bd78704
commit 20016762a6
3 changed files with 20 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
1998-08-06 Martin Baulig <martin@home-of-linux.org> 1998-08-06 Martin Baulig <martin@home-of-linux.org>
* configure.in (HAVE_SOCKETS, HAVE_SOCKADDR_SUN_LEN): New checks.
* include/glibtop/*.h: Using `GLIBTOP_GUILE' instead of `HAVE_GUILE' * include/glibtop/*.h: Using `GLIBTOP_GUILE' instead of `HAVE_GUILE'
so one should be able to use libgtop without guile in an application so one should be able to use libgtop without guile in an application
even if guile is installed. even if guile is installed.

View File

@@ -95,6 +95,9 @@
/* to fix a bug in autoheader on DEC OSF1. */ /* to fix a bug in autoheader on DEC OSF1. */
#undef HAVE_PROGRAM_INVOCATION_NAME #undef HAVE_PROGRAM_INVOCATION_NAME
#undef HAVE_SOCKETS
#undef HAVE_SOCKADDR_SUN_LEN
#undef HAVE_LIBJPEG #undef HAVE_LIBJPEG
#undef HAVE_LIBGIF #undef HAVE_LIBGIF
#undef HAVE_LIBTIFF #undef HAVE_LIBTIFF

View File

@@ -97,6 +97,21 @@ AC_CHECK_LIB(kvm, kvm_open)
dnl For DEC OSF1 dnl For DEC OSF1
AC_CHECK_LIB(mach, vm_statistics) AC_CHECK_LIB(mach, vm_statistics)
dnl Check for Internet sockets.
AC_CHECK_FUNC(socket,
[AC_CHECK_HEADER(netinet/in.h,
[AC_CHECK_HEADER(arpa/inet.h, [
AC_DEFINE(HAVE_SOCKETS)
AC_MSG_CHECKING("for sun_len member in struct sockaddr_un")
AC_TRY_LINK([
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
],
[static struct sockaddr_un x; x.sun_len = 1;],
[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)],
[AC_MSG_RESULT(no)])])])])
dnl Checks for library functions. dnl Checks for library functions.
AC_FUNC_ALLOCA AC_FUNC_ALLOCA
AC_FUNC_MMAP AC_FUNC_MMAP