1
0
mirror of https://invent.kde.org/network/krfb synced 2024-07-05 17:38:38 +00:00
krfb/configure.in.in
Adriaan de Groot 3eaaf8e907 Fixup getifaddrs() detection for BSD, and use the results properly.
svn path=/trunk/kdenetwork/krfb/; revision=199586
2003-01-13 13:31:52 +00:00

22 lines
704 B
Plaintext

KDE_CHECK_HEADER(X11/extensions/XTest.h,
[],
AC_MSG_ERROR([XTest extension header not found / no xlib headers]))
#check for getifaddrs(3) (as in glibc >= 2.3 and newer bsds)
AC_MSG_CHECKING(for getifaddrs support)
AC_TRY_LINK( [
#include <sys/types.h>
#include <sys/socket.h>
#include <ifaddrs.h>
],[
getifaddrs(0);
],[
AC_DEFINE(HAVE_GETIFADDRS,1,[Define if getifaddrs is available])
AC_MSG_RESULT(yes)
COMPILE_GETIFADDRS=""
],[
AC_MSG_RESULT(no)
COMPILE_GETIFADDRS="getifaddrs.cpp"
])
AC_SUBST(COMPILE_GETIFADDRS)