From: Mark Wooding Date: Mon, 11 Jul 2016 10:10:50 +0000 (+0100) Subject: configure.ac: Use modern version of `AC_CHECK_TYPES'. X-Git-Tag: 2.2.5~4 X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/commitdiff_plain/2527c2f7749b27399392afdb84b50c0d939fc723?hp=9ba8a1d0e7e7549d9beee48fcd177a4b2fc50055 configure.ac: Use modern version of `AC_CHECK_TYPES'. Also, check for `socklen_t' in , so that we can find it on Android. I don't expect this to be the last Android portability failure, because I've not even tried building it there yet. --- diff --git a/configure.ac b/configure.ac index 8b6ca53d..6171efd2 100644 --- a/configure.ac +++ b/configure.ac @@ -216,10 +216,19 @@ dnl Find out if we're cross-compiling. AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = yes]) dnl Various standard types. -AC_CHECK_TYPE([pid_t], [int]) +AC_CHECK_TYPE([pid_t], [], + [AC_DEFINE([pid_t], [int], + [Define to `int' if does not define])]) AC_TYPE_UID_T -AC_CHECK_TYPE([ssize_t], [int]) -AC_CHECK_TYPE([socklen_t], [int]) +AC_CHECK_TYPE([ssize_t], [], + [AC_DEFINE([ssize_t], [int], + [Define to `int' if does not define])]) +AC_CHECK_TYPE([socklen_t], [], + [AC_DEFINE([socklen_t], [int], + [Define to `int' if does not define])], + [AC_INCLUDES_DEFAULT +#include +]) dnl The maths library. mdw_ORIG_LIBS=$LIBS LIBS=