mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
ENH: add configure options for makeFFTW
This commit is contained in:
16
makeFFTW
16
makeFFTW
@ -54,7 +54,7 @@ usage() {
|
|||||||
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
while [ "$#" -ge 1 ]; do echo "$1"; shift; done
|
||||||
cat<<USAGE
|
cat<<USAGE
|
||||||
|
|
||||||
usage: ${0##*/} [OPTION] [fftw-VERSION]
|
usage: ${0##*/} [OPTION] [fftw-VERSION] [-- configure-options]
|
||||||
options:
|
options:
|
||||||
-gcc Force gcc/g++ instead of the values from \$WM_CC, \$WM_CXX
|
-gcc Force gcc/g++ instead of the values from \$WM_CC, \$WM_CXX
|
||||||
-help
|
-help
|
||||||
@ -75,6 +75,7 @@ while [ "$#" -gt 0 ]
|
|||||||
do
|
do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
'') ;; # Ignore empty
|
'') ;; # Ignore empty
|
||||||
|
--) break;; # Extra configure options (leave on $@ for later detection)
|
||||||
-h | -help) usage ;;
|
-h | -help) usage ;;
|
||||||
-gcc) useGcc ;;
|
-gcc) useGcc ;;
|
||||||
|
|
||||||
@ -124,6 +125,18 @@ else
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
(
|
(
|
||||||
|
# Configuration options:
|
||||||
|
unset configOpt
|
||||||
|
|
||||||
|
# Additional configure options
|
||||||
|
if [ "$1" = "--" ]
|
||||||
|
then
|
||||||
|
shift
|
||||||
|
configOpt="$configOpt $@"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# End of configuration options
|
||||||
|
# ----------------------------
|
||||||
buildDIR=$buildBASE/$fftwPACKAGE
|
buildDIR=$buildBASE/$fftwPACKAGE
|
||||||
|
|
||||||
cd $FFTW_SOURCE_DIR || exit 1
|
cd $FFTW_SOURCE_DIR || exit 1
|
||||||
@ -140,6 +153,7 @@ else
|
|||||||
--libdir=$FFTW_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH \
|
--libdir=$FFTW_ARCH_PATH/lib$WM_COMPILER_LIB_ARCH \
|
||||||
--enable-shared --disable-static \
|
--enable-shared --disable-static \
|
||||||
--disable-fortran \
|
--disable-fortran \
|
||||||
|
$configOpt \
|
||||||
&& set +x \
|
&& set +x \
|
||||||
&& make -j $WM_NCOMPPROCS \
|
&& make -j $WM_NCOMPPROCS \
|
||||||
&& make install \
|
&& make install \
|
||||||
|
|||||||
Reference in New Issue
Block a user