diff options
author | dscho <dscho> | 2005-03-07 12:53:14 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-03-07 12:53:14 +0000 |
commit | a86e7fed5f29fe20f4eb5855db567d7699b6f073 (patch) | |
tree | 8acb32aba6e623014a5d4efeb57109859d73b311 | |
parent | a20d0817efe5fa169339372aa365e6fd2cd29faa (diff) | |
download | libtdevnc-a86e7fed5f29fe20f4eb5855db567d7699b6f073.tar.gz libtdevnc-a86e7fed5f29fe20f4eb5855db567d7699b6f073.zip |
check for in_addr_t
-rw-r--r-- | configure.ac | 11 |
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 |