summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index da1fd45..f6aa08a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -224,6 +224,17 @@ AC_HEADER_TIME
AC_HEADER_SYS_WAIT
AC_TYPE_SOCKLEN_T
AC_CREATE_STDINT_H(rfb/rfbint.h)
+AC_CACHE_CHECK([for in_addr_t],
+ inaddrt, [
+ AC_TRY_COMPILE([#include <sys/types.h>
+#include <netinet/in.h>],
+ [in_addr_t foo; return 0;],
+ [inaddrt=yes],
+ [inaddrt=no]),
+ ])
+if test $inaddrt = no ; then
+ AC_CHECK_TYPE(in_addr_t, uint32_t)
+fi
# Checks for library functions.
AC_FUNC_MALLOC