Преглед на файлове

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

Samuel Thibault преди 10 години
родител
ревизия
faa46d1089
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  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`"