lalsuite cannot build on vanilla SL6 image
During automated testing for PyCBC we've found that the latest versions of lalsuite cannot build on a vanilla SL6 docker image, in particular it seems to be after this patch.
It appears to generate something like.
if test "${with_nvcc_cflags+set}" = set; then
withval=$with_nvcc_cflags;
NVCC_CFLAGS="$NVCC_CFLAGS ${with_nvcc_cflags}"
else
fi
We get the following error output. Is there something that can be done in lalsuite to make it compatible with SL6?
==================================================
00boot has been run successfully.
Now run './configure' with appropriate options
to configure LALSuite.
==================================================
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for gawk... (cached) gawk
checking for a sed that does not truncate output... /bin/sed
checking for a Python interpreter with version >= 2.6... python
checking for python... /pycbc/build/pycbc-build/environment/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
configure: creating ./config.status
config.status: creating Makefile
config.status: creating wheel/Makefile
config.status: creating wheel/setup.py
=== configuring in lal (/pycbc/build/pycbc-sources/lalsuite-build/lal)
configure: running /bin/sh ../../lalsuite/lal/configure --disable-option-checking '--prefix=/pycbc/build/pycbc-build/environment' 'CPPFLAGS= -I/pycbc/build/pycbc-build/environment/include -I/pycbc/build/pycbc-build/include ' '--disable-gcc-flags' '--enable-shared' '--disable-static' '--disable-silent-rules' '--disable-all-lal' '--enable-lalframe' '--enable-lalmetaio' '--enable-lalsimulation' '--enable-lalinspiral' '--disable-lal-pulsar' '--enable-swig-python' --cache-file=/dev/null --srcdir=../../lalsuite/lal
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for git... /usr/bin/git
checking whether building from a git repository... yes
../../lalsuite/lal/configure: line 3424: syntax error near unexpected token `fi'
../../lalsuite/lal/configure: line 3424: `fi'
configure: error: ../../lalsuite/lal/configure failed for lal