mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r20891] Purpose:
Changes configure/configure.in to use the same CFLAGS and CPPFLAGS in the configure tests that are used to build the library. Description: Only AM_CPPFLAGS was propagated to the CPPFLAGS that were used to build the library. Now H5_CPPFLAGS, AM_CFLAGS and H5_CFLAGS are used in the configure tests. Tested on: jam(linux32-LE) freedom(bsd63-LE) linew(solaris-BE) tejeda(darwin32 LE)
This commit is contained in:
parent
0db46e50d2
commit
c8d91d05a4
5
configure
vendored
5
configure
vendored
@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.in Id: configure.in 20720 2011-05-04 16:43:16Z lrknox .
|
||||
# From configure.in Id: configure.in 20890 2011-05-23 14:19:26Z hdftest .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.68 for HDF5 1.9.82.
|
||||
#
|
||||
@ -22499,7 +22499,8 @@ case "$host_cpu-$host_vendor-$host_os" in
|
||||
;;
|
||||
esac
|
||||
|
||||
CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS"
|
||||
CPPFLAGS="$H5_CPPFLAGS $AM_CPPFLAGS $CPPFLAGS"
|
||||
CFLAGS="$H5_CFLAGS $AM_CFLAGS $CFLAGS"
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
@ -1391,9 +1391,11 @@ case "$host_cpu-$host_vendor-$host_os" in
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl Need to add AM_CPPFLAGS into CPPFLAGS to make them visible for configure checks.
|
||||
dnl Note: CPPFLAGS will be restored by the end of configure.
|
||||
CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS"
|
||||
dnl Need to add the AM_ and H5_ into CPFLAGS/CPPFLAGS to make them visible
|
||||
dnl for configure checks.
|
||||
dnl Note: Both will be restored by the end of configure.
|
||||
CPPFLAGS="$H5_CPPFLAGS $AM_CPPFLAGS $CPPFLAGS"
|
||||
CFLAGS="$H5_CFLAGS $AM_CFLAGS $CFLAGS"
|
||||
|
||||
AC_TRY_COMPILE([#include <sys/types.h>],
|
||||
[off64_t n = 0;],
|
||||
|
Loading…
Reference in New Issue
Block a user