[PATCH 4/4] configure.in: add gentoo patch to fix header lookup
---
configure.in | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure.in b/configure.in
index 88da2de..d708e7b 100644
--- a/configure.in
+++ b/configure.in
@@ -2866,8 +2866,12 @@ EOF
* ) val=1 ;;
esac
dnl Avoid re-AC_DEFINE-ing xmkmf symbols we've already defined above.
- if grep "^#define $sym " confdefs.h >/dev/null; then :; else
- if test "$val" = "1"
+ if grep "^#define $sym " confdefs.h >/dev/null \
+ || test "$have_glibc" = "yes" -a "$sym" = "_BSD_SOURCE" \
+ || test "$have_glibc" = "yes" -a "$sym" = "_SVID_SOURCE"; \
+ then \
+ :; \
+ else if test "$val" = "1"
then AC_DEFINE_UNQUOTED($sym)
else AC_DEFINE_UNQUOTED($sym,$val)
fi
--
2.15.1
Reply to: