In preparation for an upcoming improvement.
Tested on x86_64-suse-linux, applied on the mainline.
2017-05-22 Eric Botcazou <ebotca...@adacore.com>
libada/
* configure.ac: Add check for sys/capability.h header.
(have_capability): New substitution.
* configure: Regenerate.
* Makefile.in (GNATLIBCFLAGS_FOR_C): Add @have_capability@.
--
Eric Botcazou
Index: Makefile.in
===================================================================
--- Makefile.in (revision 248140)
+++ Makefile.in (working copy)
@@ -61,7 +61,7 @@ PICFLAG = @PICFLAG@
GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc
GNATLIBCFLAGS= -g -O2
GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(CFLAGS_FOR_TARGET) \
- -fexceptions -DIN_RTS @have_getipinfo@
+ -fexceptions -DIN_RTS @have_getipinfo@ @have_capability@
host_subdir = @host_subdir@
GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
Index: configure.ac
===================================================================
--- configure.ac (revision 248140)
+++ configure.ac (working copy)
@@ -144,6 +144,10 @@ if test x$have_unwind_getipinfo = xyes;
fi
AC_SUBST(have_getipinfo)
+# Check for <sys/capability.h>
+AC_CHECK_HEADER([sys/capability.h], have_capability=-DHAVE_CAPABILITY, have_capability=)
+AC_SUBST(have_capability)
+
# Determine what GCC version number to use in filesystem paths.
GCC_BASE_VER