Commit 772cd694 by Eric Botcazou Committed by Eric Botcazou

configure.ac: Add check for sys/capability.h header.

	* configure.ac: Add check for sys/capability.h header.
	(have_capability): New substitution.
	* configure: Regenerate.
	* Makefile.in (GNATLIBCFLAGS_FOR_C): Add @have_capability@.

From-SVN: r248319
parent 6173a9e3
2017-05-22 Eric Botcazou <ebotcazou@adacore.com>
* configure.ac: Add check for sys/capability.h header.
(have_capability): New substitution.
* configure: Regenerate.
* Makefile.in (GNATLIBCFLAGS_FOR_C): Add @have_capability@.
2017-01-17 Jakub Jelinek <jakub@redhat.com> 2017-01-17 Jakub Jelinek <jakub@redhat.com>
PR other/79046 PR other/79046
......
...@@ -61,7 +61,7 @@ PICFLAG = @PICFLAG@ ...@@ -61,7 +61,7 @@ PICFLAG = @PICFLAG@
GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc
GNATLIBCFLAGS= -g -O2 GNATLIBCFLAGS= -g -O2
GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(CFLAGS_FOR_TARGET) \ 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@ host_subdir = @host_subdir@
GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc
......
...@@ -144,6 +144,10 @@ if test x$have_unwind_getipinfo = xyes; then ...@@ -144,6 +144,10 @@ if test x$have_unwind_getipinfo = xyes; then
fi fi
AC_SUBST(have_getipinfo) 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. # Determine what GCC version number to use in filesystem paths.
GCC_BASE_VER GCC_BASE_VER
......
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