Browse Source

Refuse spaces in pwd, libtool doesn't actually properly manage them

Samuel Thibault 10 years ago
parent
commit
faa46d1089
1 changed files with 6 additions and 0 deletions
  1. 6 0
      configure.ac

+ 6 - 0
configure.ac

@@ -20,6 +20,12 @@ AC_INIT([StarPU], [1.2.0], [starpu-devel@lists.gforge.inria.fr], [starpu], [http
 AC_CONFIG_SRCDIR(include/starpu.h)
 AC_CONFIG_AUX_DIR([build-aux])
 
+# libtool doesn't actually properly manage a space in the workdir
+case `pwd` in
+  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
+    AC_MSG_ERROR([unsafe absolute working directory name]);;
+esac
+
 dnl Versioning.
 
 STARPU_MAJOR_VERSION="`echo $PACKAGE_VERSION | cut -d . -f 1`"