Configure: do not force -lsz while checking HDF5 25/16225/1
Clément DAVID [Mon, 23 Mar 2015 16:27:31 +0000 (17:27 +0100)]
The SZ compression option is usually not packaged (checked on Fedora and
Debian / Ubuntu). Linking against it will always fails.

Change-Id: Idf1ee9d80e688b9fbe396d2787439b625efa1ce2

scilab/configure
scilab/m4/hdf5.m4

index d231e89..13eafb1 100755 (executable)
@@ -10390,7 +10390,7 @@ if ${ac_cv_lib_hdf5_H5Fopen+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lhdf5 -lsz -lz
+LIBS="-lhdf5 -lz
              $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
@@ -10496,7 +10496,7 @@ if ${ac_cv_lib_hdf5_H5Fopen+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lhdf5 -lsz -lz
+LIBS="-lhdf5 -lz
                  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
index 283163c..397e13c 100644 (file)
@@ -63,7 +63,7 @@ if test "x$with_hdf5_library" != "xyes"; then
     AC_CHECK_LIB([hdf5], [H5Fopen],
             [],
             [AC_MSG_ERROR([libhdf5 or libhdf5_hl: library missing. (Cannot find symbol H5Fopen) in $with_hdf5_library. Check if libhdf5 is installed and if the version is correct])],
-            [-lsz -lz]
+            [-lz]
             )
 else
     if $WITH_DEVTOOLS; then # Scilab thirparties
@@ -83,7 +83,7 @@ else
             AC_CHECK_LIB([hdf5], [H5Fopen],
                 [],
                 [AC_MSG_ERROR([libhdf5 or libhdf5_hl: library missing. (Cannot find symbol H5Fopen). Check if libhdf5 is installed and if the version is correct])],
-                [-lsz -lz]
+                [-lz]
                 )
         fi
     fi