diff options
| author | Petr Spacek <pspacek@redhat.com> | 2016-12-13 10:52:46 +0100 |
|---|---|---|
| committer | Martin Babinsky <mbabinsk@redhat.com> | 2016-12-14 10:09:26 +0100 |
| commit | 19aba7c555edf065b9f2fa95142da81b92396264 (patch) | |
| tree | d2ab30dacc2b504b9d24dd98913fdd800d2d5472 | |
| parent | 74b8cf2c4a8dd36577d76c35a9ef08352ef025b7 (diff) | |
| download | freeipa-19aba7c555edf065b9f2fa95142da81b92396264.tar.gz freeipa-19aba7c555edf065b9f2fa95142da81b92396264.tar.xz freeipa-19aba7c555edf065b9f2fa95142da81b92396264.zip | |
Build: forbid builds in working directories containing white spaces
Spaces are causing problems in libtool, makefiles, autoconf itself, gettextize
framework etc. so this issue cannot be easily fixed.
Return on investment is too small to invest into this. Let's detect the
whitespace early and error out with descriptive error message.
https://fedorahosted.org/freeipa/ticket/6537
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
| -rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index cf4392bfe..3ea598355 100644 --- a/configure.ac +++ b/configure.ac @@ -5,6 +5,14 @@ AC_INIT([freeipa], IPA_VERSION, [https://hosted.fedoraproject.org/projects/freeipa/newticket]) +dnl Make sure the build directory name does not contain spaces! +dnl Spaces are causing problems in libtool, makefiles, autoconf itself, +dnl gettextize framework etc. +case "$PWD" in + *\ * | *\ *) + AC_MSG_ERROR([whitespace in working directory path is not supported]) ;; +esac + AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign 1.9 tar-ustar]) |
