HomeFreeBSD

Don't use AC_LANG_SOURCE for conftest.h source

Description

Don't use AC_LANG_SOURCE for conftest.h source

Using AC_LANG_SOURCE with some versions of autoconf is problematic if
the given source is to be written to a header file. Such versions assume
the contents are to be written to conftest.c and generate shell code to
that effect. The contents of the test program to detect support for
Linux tracepoints were consequently malformed (containing the source for
conftest.h) so the build system incorrectly disabled tracepoints
support. Fix this in ZFS_LINUX_TRY_COMPILE_HEADER by passing the header
source directly to ZFS_LINUX_COMPILE_IFELSE.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2953

Details

Provenance
Ned Bass <bass6@llnl.gov>Authored on Dec 15 2014, 9:53 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 7 2015, 12:53 AM
Parents
rG49ee64e5e6ec: Remove duplicate typedefs from trace.h
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG4e30e68cafdd: Don't use AC_LANG_SOURCE for conftest.h source (authored by Ned Bass <bass6@llnl.gov>).Jan 7 2015, 12:53 AM