Commit 7429fbc1 authored by Youness Alaoui's avatar Youness Alaoui

Set HAVE_GETIFADDRS only if ifaddrs.h is found, not if any of arpa/inet.h...

Set HAVE_GETIFADDRS only if ifaddrs.h is found, not if any of arpa/inet.h net/in.h and ifaddrs.h are found
parent 1fe527be
...@@ -79,7 +79,8 @@ AC_HEADER_ASSERT ...@@ -79,7 +79,8 @@ AC_HEADER_ASSERT
AC_HEADER_STDBOOL AC_HEADER_STDBOOL
AC_DEFINE([_FORTIFY_SOURCE], [2], [Define to `2' to get GNU/libc warnings.]) AC_DEFINE([_FORTIFY_SOURCE], [2], [Define to `2' to get GNU/libc warnings.])
AC_DEFINE([NICEAPI_EXPORT], [ ], [Public library function implementation]) AC_DEFINE([NICEAPI_EXPORT], [ ], [Public library function implementation])
AC_CHECK_HEADERS([arpa/inet.h net/in.h ifaddrs.h], \ AC_CHECK_HEADERS([arpa/inet.h net/in.h])
AC_CHECK_HEADERS([ifaddrs.h], \
[AC_DEFINE(HAVE_GETIFADDRS, [1], \ [AC_DEFINE(HAVE_GETIFADDRS, [1], \
[Whether getifaddrs() is available on the system])]) [Whether getifaddrs() is available on the system])])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment