From 7b9ce8a96c8d0a493f09054220ccb7d44d4c417a Mon Sep 17 00:00:00 2001 From: Paul Harten Date: Tue, 19 Jan 1999 10:00:30 -0500 Subject: [svn-r1024] Purpose: Bug fix Problem: When -with-hdf4 option is selected during configure, no machine type found for HDF4 header file hdfi.h. Solution: Modify hdf5/config/linux file: -D__i386 to be added to CPPFLAGS. Platform tested: linux(penfold) --- config/linux | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/config/linux b/config/linux index 6f025e7..d0d8620 100644 --- a/config/linux +++ b/config/linux @@ -14,6 +14,7 @@ fi ARCH="-mcpu=pentiumpro -march=pentiumpro -malign-double" NOFP="-fomit-frame-pointer" +HDF4_FLAGS="-D__i386" # Compiler flags. We use `-v' to get the version number because it almost # always works on Linux systems. @@ -26,49 +27,49 @@ case `$CC -v 2>&1 |grep 'gcc version' |sed 's/.*gcc version //'` in echo " +------------------------------------------------+" sleep 5 CFLAGS="$CFLAGS -ansi" - PROD_CFLAGS="$ARCH -O3 $NOFP -finline-functions -fschedule-insns2" - PROD_CPPFLAGS= - DEBUG_CFLAGS="-g -fverbose-asm" - DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" + PROD_CFLAGS="$ARCH -O3 $NOFP -finline-functions -fschedule-insns2 -Wno-shadow" + PROD_CPPFLAGS="$HDF4_FLAGS" + DEBUG_CFLAGS="-g -fverbose-asm -Wno-shadow" + DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" PROFILE_CFLAGS=-pg PROFILE_CPPFLAGS= ;; 2.8.*) CFLAGS="$CFLAGS -Wsign-compare" - PROD_CFLAGS="$ARCH -O3 $NOFP -finline-functions -fschedule-insns2" - PROD_CPPFLAGS= - DEBUG_CFLAGS="-g -fverbose-asm" - DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" + PROD_CFLAGS="$ARCH -O3 $NOFP -finline-functions -fschedule-insns2 -Wno-shadow" + PROD_CPPFLAGS="$HDF4_FLAGS" + DEBUG_CFLAGS="-g -fverbose-asm -Wno-shadow" + DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" PROFILE_CFLAGS=-pg PROFILE_CPPFLAGS= ;; egcs-*) CFLAGS="$CFLAGS -Wsign-compare" - PROD_CFLAGS="$ARCH -O6 $NOFP" - PROD_CPPFLAGS= - DEBUG_CFLAGS="-g -fverbose-asm" - DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" + PROD_CFLAGS="$ARCH -O6 $NOFP -Wno-shadow" + PROD_CPPFLAGS="$HDF4_FLAGS" + DEBUG_CFLAGS="-g -fverbose-asm -Wno-shadow" + DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" PROFILE_CFLAGS=-pg PROFILE_CPPFLAGS= ;; pgcc-*) CFLAGS="$CFLAGS -Wsign-compare" - PROD_CFLAGS="$ARCH -O6 $NOFP" - PROD_CPPFLAGS= - DEBUG_CFLAGS="-g -fverbose-asm" - DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" + PROD_CFLAGS="$ARCH -O6 $NOFP -Wno-shadow" + PROD_CPPFLAGS="$HDF4_FLAGS" + DEBUG_CFLAGS="-g -fverbose-asm -Wno-shadow" + DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" PROFILE_CFLAGS=-pg PROFILE_CPPFLAGS= ;; *) PROD_CFLAGS=-O - PROD_CPPFLAGS= + PROD_CPPFLAGS="$HDF4_FLAGS" DEBUG_CFLAGS="-g" - DEBUG_CPPFLAGS="-DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" + DEBUG_CPPFLAGS="$HDF4_FLAGS -DH5F_OPT_SEEK=0 -DH5F_LOW_DFLT=H5F_LOW_SEC2" PROFILE_CFLAGS=-pg PROFILE_CPPFLAGS= ;; -- cgit v0.12