[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question on AC_CHECK_HEADERS/AC_DEFINE interaction
From: |
Pádraig Brady |
Subject: |
Question on AC_CHECK_HEADERS/AC_DEFINE interaction |
Date: |
Thu, 23 Jul 2015 16:29:17 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
At line 40 we AC_DEFINE(HAVE_SELINUX_SELINUX_H,0)
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=m4/selinux-selinux-h.m4;h=fd09b299;hb=HEAD#l40
However that may already defined to 1 which is the case
when compiling in -m32 mode but with only the first of these installed:
$ rpm -qf /usr/include/selinux/selinux.h
libselinux-devel-2.3-9.fc22.x86_64
libselinux-devel-2.3-9.fc22.i686
In that edge case, -Werror will fail due to the redefinition,
thus causing -Werror to not be used in the build.
Quite the edge case I know, but I'm not sure how best to avoid.
Perhaps we should not use AC_CHECK_HEADERS here,
instead going lower level with AC_PREPROC_IFELSE(.. AC_DEFINE ..) ?
cheers,
Pádraig.
- Question on AC_CHECK_HEADERS/AC_DEFINE interaction,
Pádraig Brady <=