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 +#include ], + [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