diff --git a/configure.ac b/configure.ac index 3b8a7e5803..598e44a367 100644 --- a/configure.ac +++ b/configure.ac @@ -51,8 +51,6 @@ AC_PROG_CPP dnl get 64-int interfaces on 32-bit platforms CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64" -AC_TYPE_UID_T - dnl Support building Win32 DLLs (must appear *before* AM_PROG_LIBTOOL) AC_LIBTOOL_WIN32_DLL @@ -207,19 +205,6 @@ LIBVIRT_CHECK_YAJL AC_CHECK_SIZEOF([long]) -AC_CHECK_TYPE([struct ifreq], - [AC_DEFINE([HAVE_STRUCT_IFREQ],[1], - [Defined if struct ifreq exists in net/if.h])], - [], [[#include - #include - ]]) - -AC_CHECK_TYPE([struct sockpeercred], - [AC_DEFINE([HAVE_STRUCT_SOCKPEERCRED], [1], - [Defined if struct sockpeercred is available])], - [], [[#include - ]]) - AC_CHECK_LIB([intl],[gettext],[]) AC_CHECK_LIB([util],[openpty],[]) diff --git a/meson.build b/meson.build index 9776630128..18f85ab514 100644 --- a/meson.build +++ b/meson.build @@ -821,6 +821,33 @@ if (cc.has_header_symbol('mach/clock.h', 'clock_serv_t') and endif +# check various types + +types = [ + [ 'struct ifreq', '#include \n#include '] , + [ 'struct sockpeercred', '#include ') + conf.set(type, 'int') + endif + endforeach +endif + + # define top include directory top_inc_dir = include_directories('.')