* [Ada] Add check for sys/capability.h
@ 2017-05-22 7:27 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2017-05-22 7:27 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 360 bytes --]
In preparation for an upcoming improvement.
Tested on x86_64-suse-linux, applied on the mainline.
2017-05-22 Eric Botcazou <ebotcazou@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
[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 988 bytes --]
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-22 7:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-22 7:27 [Ada] Add check for sys/capability.h Eric Botcazou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).