]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
PR binutils/12110
authorAlan Modra <amodra@bigpond.net.au>
Tue, 2 Nov 2010 00:22:10 +0000 (00:22 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Tue, 2 Nov 2010 00:22:10 +0000 (00:22 +0000)
* configure.ac: Error when source path contains spaces.
* configure: Regenerate.

ChangeLog
configure
configure.ac

index 54fb1bdea3fb500a3733768af0d231b22a2513d7..9f06897f8b97bbb725cd4109aa1496b669ace1ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-02  Alan Modra  <amodra@gmail.com>
+
+       PR binutils/12110
+       * configure.ac: Error when source path contains spaces.
+       * configure: Regenerate.
+
 2010-10-20  Ian Lance Taylor  <iant@google.com>
 
        * Makefile.def (target_modules): Set lib_path to src/.libs for
index b1fbfaa73d087f2f81e62407f1b19e9981933ec4..6c3d5d6f68ac53c347626909dd3247102e7a6e6b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1393,6 +1393,11 @@ fi
 case $srcdir in
 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 esac
+case $srcdir in
+  *" "*)
+    as_fn_error "path to source, $srcdir, contains spaces"
+    ;;
+esac
 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
 
 for ac_var in $ac_precious_vars; do
index bf5fe3ad83285a1bbc7addba0ed39b484ba48bef..ac44863917d35be30e864cdeb646903ca83121da 100644 (file)
@@ -221,7 +221,14 @@ target_configdirs=`echo ${target_libraries} ${target_tools}`
 build_configdirs=`echo ${build_libs} ${build_tools}`
 
 m4_divert_text([PARSE_ARGS],
-[ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
+[case $srcdir in
+  *" "*)
+m4_pushdef([AS_MESSAGE_LOG_FD], [])dnl
+    AC_MSG_ERROR([path to source, $srcdir, contains spaces])
+m4_popdef([AS_MESSAGE_LOG_FD])dnl
+    ;;
+esac
+ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
 ])
 
 ################################################################################