daemon: contrib fails to build when path contains dir with spaces
Issue generated from Tuleap's migration script. Originally submitted by: Stepan Salenikovich (ssalenik)
Some or all contrib dependencies will fail to build if the contrib path contains a dir name with a whitespace in it, for example:
cd gmp && CC="gcc" CXX="g++" LD="ld" AR="ar" CCAS="gcc -c" RANLIB="ranlib" STRIP="strip" PATH="/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/bin:/home/ssalenikovich/projects/test daemon/ring-daemon/extras/tools/build/bin:/home/ssalenikovich/bin:/usr/lib/ccache:/home/ssalenikovich/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/java-oracle/jdk1.7.0\_79/bin" CPPFLAGS=" -I/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include -fPIC" CFLAGS=" -I/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include -fPIC" CXXFLAGS=" -I/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include -fPIC" LDFLAGS=" -L/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/lib" ./configure --prefix="/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu" --datarootdir="/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/share" --includedir="/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include" --libdir="/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/lib" --build="x86\_64-linux-gnu" --host="x86\_64-linux-gnu" --target="x86\_64-linux-gnu" --program-prefix="" --disable-dependency-tracking --enable-static --disable-shared --with-pic configure: WARNING: unrecognized options: --disable-dependency-tracking checking build system type... x86\_64-pc-linux-gnu checking host system type... x86\_64-pc-linux-gnu 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 whether to enable maintainer-specific portions of Makefiles... no checking ABI=64 checking compiler gcc -I/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include -fPIC -I/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include -fPIC... no checking ABI=x32 checking compiler gcc -I/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include -fPIC -I/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include -fPIC... no checking ABI=32 checking compiler gcc -I/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include -fPIC -I/home/ssalenikovich/projects/test daemon/ring-daemon/contrib/x86\_64-linux-gnu/include -fPIC... no configure: error: could not find a working compiler, see config.log for details ../../contrib/src/gmp/rules.mak:19: recipe for target '.gmp' failed make: \*\*\* [.gmp] Error 1