From 8784de181c08a53be3501c3b18020aa357bf606c Mon Sep 17 00:00:00 2001 From: "sjoelund.se" Date: Thu, 7 Aug 2014 08:59:57 +0000 Subject: [PATCH] Use TABLE_SHARE by default git-svn-id: https://svn.modelica.org/projects/Modelica/trunk@7805 7ce873d0-865f-4ce7-a662-4bb36ea78beb --- .../Resources/BuildProjects/autotools/configure.ac | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Modelica/Resources/BuildProjects/autotools/configure.ac b/Modelica/Resources/BuildProjects/autotools/configure.ac index 1f698635d1..b801ec3c70 100644 --- a/Modelica/Resources/BuildProjects/autotools/configure.ac +++ b/Modelica/Resources/BuildProjects/autotools/configure.ac @@ -17,9 +17,13 @@ AC_SEARCH_LIBS([floor],[m]) ZLIB="Yes" STATIC_ZLIB="No" -AC_ARG_ENABLE(hdf5, [ --enable-hdf5[=yes] Adds support for HDF5 and MAT7.3 formats],[test "xno" = x"$enableval" && HDF5="No"],[HDF5="Yes"]) -AC_ARG_ENABLE(zlib, [ --enable-zlib[=yes] Adds support for the MAT7 format],[test "xno" = x"$enableval" && ZLIB="No"],[ZLIB="Yes"]) -AC_ARG_ENABLE(static-zlib, [ --enable-static-zlib[=no]],[test "xyes" = x"$enableval" && STATIC_ZLIB="Yes"],[STATIC_ZLIB="No"]) +AC_ARG_ENABLE(hdf5, + [ --enable-hdf5[=yes] Adds support for HDF5 and MAT7.3 formats],[test "xno" = x"$enableval" && HDF5="No"],[HDF5="Yes"]) +AC_ARG_ENABLE(zlib, + [ --enable-zlib[=yes] Adds support for the MAT7 format],[test "xno" = x"$enableval" && ZLIB="No"],[ZLIB="Yes"]) +AC_ARG_ENABLE(shared-tables, + [ --enable-shared-tables[=yes] Adds support for shared tables, reducing file I/O and reducing memory footprint],[test "xyes" = x"$enableval" && SHARED_TABLES="Yes"],[SHARED_TABLES="Yes"]) +AC_ARG_ENABLE(static-zlib, [ --enable-static-zlib[=no]],[test "xyes" = x"$enableval" && STATIC_ZLIB="Yes"],[STATIC_ZLIB="No"]) if test "$ZLIB" = "Yes"; then AC_CHECK_HEADERS(zlib.h,[AC_SEARCH_LIBS([gzclose], [z], [ZLIB="Yes"], [ZLIB="No"])],[ZLIB="No"]) @@ -90,6 +94,9 @@ fi if test "$HDF5" = "Yes"; then CPPFLAGS="$CPPFLAGS -DHAVE_HDF5=1" fi +if test "$SHARED_TABLES" = "Yes"; then +CPPFLAGS="$CPPFLAGS -DTABLE_SHARE=1" +fi echo "Modelica Standard Tables may use ZLIB: $ZLIB" echo "Modelica Standard Tables may use HDF5: $HDF5"