741741H5CC
742742GREP
743743SED
744+ LIBZ_LIBS
745+ LIBZ_CFLAGS
744746FFTW_FLAGS
745747FOUND_FFTW
746748FFTW_LIBS
@@ -3117,7 +3119,7 @@ then
31173119 # we assume that the conda metadata is correct, and that if it isn't there's
31183120 # an expert packager who can fix things.
31193121 printf " %s\n" " Conda package build detected, skipping checks for dependencies."
3120- ASSUME_FEATURES=" c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 netcdf4 sapporo_light"
3122+ ASSUME_FEATURES=" c c++ fortran java python tar unzip gunzip bunzip2 unxz bison perl gmake cmake install download mpi openmp cuda opencl blas lapack gsl gmp mpfr fftw hdf5 libz netcdf4 sapporo_light"
31213123
31223124else
31233125 if test " x" ! = " x$CONDA_DEFAULT_ENV "
@@ -4509,6 +4511,27 @@ else $as_nop
45094511 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
45104512printf " %s\n" " no" >&6 ; }
45114513
4514+ fi
4515+
4516+
4517+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for conda package zlib" >&5
4518+ printf %s " checking for conda package zlib... " >&6 ; }
4519+ ax_conda_package_line=" $( echo $amuse_conda_list | tr ' ^' ' \n' | grep ' ^zlib ' ) "
4520+ if test " $? " = " 0"
4521+ then :
4522+
4523+ # FOUND_LIBZ="$(AS_ECHO("$ax_conda_package_line") | tr -s ' ' | cut -f 2 -d ' ')"
4524+
4525+ FOUND_LIBZ=" yes"
4526+
4527+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
4528+ printf " %s\n" " yes" >&6 ; }
4529+
4530+ else $as_nop
4531+
4532+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
4533+ printf " %s\n" " no" >&6 ; }
4534+
45124535fi
45134536
45144537
@@ -13551,6 +13574,73 @@ fi
1355113574
1355213575
1355313576
13577+
13578+ amuse_libz_save_libs=" $LIBS "
13579+
13580+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for libz" >&5
13581+ printf %s " checking for libz... " >&6 ; }
13582+
13583+ ac_ext=c
13584+ ac_cpp=' $CPP $CPPFLAGS'
13585+ ac_compile=' $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13586+ ac_link=' $CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13587+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
13588+
13589+
13590+ LIBS=" -lz"
13591+
13592+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
13593+ /* end confdefs.h. */
13594+
13595+
13596+ #include <zlib.h>
13597+
13598+ #ifdef F77_DUMMY_MAIN
13599+
13600+ # ifdef __cplusplus
13601+ extern "C"
13602+ # endif
13603+ int F77_DUMMY_MAIN() { return 1; }
13604+
13605+ #endif
13606+ int
13607+ main (void)
13608+ {
13609+
13610+ z_stream strm;
13611+ deflateInit(&strm, 0);
13612+
13613+ ;
13614+ return 0;
13615+ }
13616+
13617+ _ACEOF
13618+ if ac_fn_c_try_link " $LINENO "
13619+ then :
13620+
13621+ FOUND_LIBZ=" yes"
13622+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
13623+ printf " %s\n" " yes" >&6 ; }
13624+
13625+ else $as_nop
13626+
13627+ { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: no" >&5
13628+ printf " %s\n" " no" >&6 ; }
13629+
13630+ fi
13631+ rm -f core conftest.err conftest.$ac_objext conftest.beam \
13632+ conftest$ac_exeext conftest.$ac_ext
13633+
13634+ ac_ext=c
13635+ ac_cpp=' $CPP $CPPFLAGS'
13636+ ac_compile=' $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13637+ ac_link=' $CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13638+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
13639+
13640+
13641+
13642+
13643+
1355413644 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking for a sed that does not truncate output" >&5
1355513645printf %s " checking for a sed that does not truncate output... " >&6 ; }
1355613646if test ${ac_cv_path_SED+y}
@@ -15494,7 +15584,7 @@ if test "x" != "x${HAVE_LAPACK}"
1549415584then :
1549515585 FEATURES=" ${FEATURES} lapack"
1549615586fi
15497- if test " x" ! = " x ${FOUND_GSL} "
15587+ if test " x${FOUND_GSL} " = " xyes "
1549815588then :
1549915589 FEATURES=" ${FEATURES} gsl"
1550015590fi
@@ -15510,7 +15600,11 @@ if test "x${FOUND_FFTW}" = "xyes"
1551015600then :
1551115601 FEATURES=" ${FEATURES} fftw"
1551215602fi
15513- if test " x" ! = " x${with_hdf5} "
15603+ if test " x${FOUND_LIBZ} " = " xyes"
15604+ then :
15605+ FEATURES=" ${FEATURES} libz"
15606+ fi
15607+ if test " x${with_hdf5} " = " xyes"
1551415608then :
1551515609 FEATURES=" ${FEATURES} hdf5"
1551615610fi
0 commit comments