File tree Expand file tree Collapse file tree 2 files changed +31
-5
lines changed Expand file tree Collapse file tree 2 files changed +31
-5
lines changed Original file line number Diff line number Diff line change @@ -1460,8 +1460,10 @@ Optional Features:
14601460Optional Packages:
14611461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
14621462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1463- --with-fftw3 Use fftw3 library
1463+ --with-fftw3 Use fftw3 library
1464+ --without-fftw3 to disable fftw3 library
14641465 --with-libpng Use libpng library
1466+ --without-libpng to disable libpng library
14651467 --with-hdf5=yes/no/PATH full path of h5pcc for parallel HDF5 configuration
14661468 --with-blas=<lib> use BLAS library <lib>
14671469 --with-zlib=DIR root directory path of zlib installation defaults to
@@ -4053,17 +4055,26 @@ fi
40534055# Check whether --with-fftw3 was given.
40544056if test ${with_fftw3+y}
40554057then :
4056- withval=$with_fftw3 ; USE_fftw3=' yes'
4058+ withval=$with_fftw3 ; if test " $withval " ! = no ; then
4059+ USE_fftw3=' yes'
4060+ else
4061+ USE_fftw3=' no'
4062+ fi
40574063else case e in # (
40584064 e) USE_fftw3=' no' ;;
40594065esac
40604066fi
40614067
40624068
4069+
40634070# Check whether --with-libpng was given.
40644071if test ${with_libpng+y}
40654072then :
4066- withval=$with_libpng ; USE_libpng=' yes'
4073+ withval=$with_libpng ; if test " $withval " ! = no ; then
4074+ USE_libpng=' yes'
4075+ else
4076+ USE_libpng=' no'
4077+ fi
40674078else case e in # (
40684079 e) USE_libpng=' no' ;;
40694080esac
Original file line number Diff line number Diff line change @@ -38,9 +38,24 @@ AC_CONFIG_SRCDIR([src/programs/SPH_MHD/main_sph_MHD_w_psf.f90])
3838# AC_CONFIG_HEADER([config.h])
3939
4040AC_ARG_WITH ( fftw3 ,
41- [ --with-fftw3 Use fftw3 library] ,[ USE_fftw3='yes'] ,[ USE_fftw3='no'] )
41+ [ --with-fftw3 Use fftw3 library
42+ --without-fftw3 to disable fftw3 library] ,
43+ [ if test "$withval" != no ; then
44+ USE_fftw3='yes'
45+ else
46+ USE_fftw3='no'
47+ fi] ,
48+ [ USE_fftw3='no'] )
49+
4250AC_ARG_WITH ( libpng ,
43- [ --with-libpng Use libpng library] ,[ USE_libpng='yes'] ,[ USE_libpng='no'] )
51+ [ --with-libpng Use libpng library
52+ --without-libpng to disable libpng library] ,
53+ [ if test "$withval" != no ; then
54+ USE_libpng='yes'
55+ else
56+ USE_libpng='no'
57+ fi] ,
58+ [ USE_libpng='no'] )
4459
4560AC_MSG_RESULT ( with-fftw3... "${USE_fftw3}" )
4661AC_MSG_RESULT ( enable-libpng..."${USE_libpng}" )
You can’t perform that action at this time.
0 commit comments