aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-05-13 17:24:13 +0000
committertradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-05-13 17:24:13 +0000
commita673f41c377c4599bd714049a36a50e63e59a793 (patch)
tree2cb0371ac4d8e259af0ba27bb25225f2735e169d
parent94997fad8da6ce88535b9fc960b4a62e488c8031 (diff)
Added '-s' as an option to grep when checking for LFS in the HDF5 installation.
This prevents a warning from grep if the HDF5 configuration file doesn't exist. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@133 4825ed28-b72c-4eae-9704-e50c059e567d
-rw-r--r--src/make.code.defn2
-rw-r--r--src/make.configuration.deps2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/make.code.defn b/src/make.code.defn
index 160fa54..623786d 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -5,7 +5,7 @@
SRCS = Startup.c Output.c Write.c DumpGH.c RecoverGH.c
# Extend CFLAGS if HDF5 library was built with LFS support
-LFS_support := $(shell grep _LARGEFILE_SOURCE $(strip $(HDF5_LIB_DIRS))/libhdf5.settings)
+LFS_support := $(shell grep -s _LARGEFILE_SOURCE $(strip $(HDF5_LIB_DIRS))/libhdf5.settings)
ifneq ($(strip $(LFS_support)),)
CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
diff --git a/src/make.configuration.deps b/src/make.configuration.deps
index 8de1c6b..3a50abe 100644
--- a/src/make.configuration.deps
+++ b/src/make.configuration.deps
@@ -1,5 +1,5 @@
# Extend CFLAGS if HDF5 library was built with LFS support
-LFS_support := $(shell grep _LARGEFILE_SOURCE $(strip $(HDF5_LIB_DIRS))/libhdf5.settings)
+LFS_support := $(shell grep -s _LARGEFILE_SOURCE $(strip $(HDF5_LIB_DIRS))/libhdf5.settings)
ifneq ($(strip $(LFS_support)),)
CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64