From 819ddc4704ef24665ca1ca160da3b1324e860488 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 15 Aug 2011 14:08:08 +0000 Subject: [PATCH] work around to use env.vars removed --- configure.ac | 56 ---------------------------------------------------- 1 file changed, 56 deletions(-) diff --git a/configure.ac b/configure.ac index e258d60..5cb1700 100644 --- a/configure.ac +++ b/configure.ac @@ -54,20 +54,6 @@ AC_ARG_WITH( [path to HDF5 installation [default=""]])], [HDF5PATH=$withval], [HDF5PATH=""]) -############################################################################### -################# A SIMPLE WORK AROUND TO USE ENV. VARS ####################### -############################################################################### - -SAVE_CC=$CC -SAVE_CXX=$CXX -SAVE_FC=$FC -SAVE_CFLAGS=$CFLAGS -SAVE_CXXFLAGS=$CXXFLAGS -SAVE_FFLAGS=$FFLAGS -SAVE_INCLUDES=$INCLUDES -SAVE_LDFLAGS=$LDFLAGS -SAVE_LIBS=$LIBS - ############################################################################### ############### PATH SERACH FUNCTION - to be used later... #################### ############################################################################### @@ -316,48 +302,6 @@ AC_TYPE_SSIZE_T AC_FUNC_MALLOC AC_CHECK_FUNCS([memset pow strchr strdup]) - -############################################################################### -################# A SIMPLE WORK AROUND TO USE ENV. VARS ####################### -############################################################################### - -#if there was an external input for the variable... -if test -n "$SAVE_CC"; then - CC="$SAVE_CC" -fi - -if test -n "$SAVE_CXX"; then - CXX="$SAVE_CXX" -fi - -if test -n "$SAVE_FC"; then - FC="$SAVE_FC" -fi - -if test -n "$SAVE_CFLAGS"; then - CFLAGS="$SAVE_CFLAGS" -fi - -if test -n "$SAVE_CXXFLAGS"; then - CFLAGS="$SAVE_CXXFLAGS" -fi - -if test -n "$SAVE_FFLAGS"; then - FFLAGS="$SAVE_FFLAGS" -fi - -if test -n "$SAVE_INCLUDES"; then - INCLUDES="$SAVE_INCLUDES" -fi - -if test -n "$SAVE_LDFLAGS"; then - LDFLAGS="$SAVE_LDFLAGS" -fi - -if test -n "$SAVE_LIBS"; then - LIBS="$SAVE_LIBS" -fi - ############################################################################### ############## EXPORTING VARIABLES & CREATING OUTPUT FILES #################### ###############################################################################