configure script can't handle blanks in paths (CVS version)

Hello, I get this error message when running configure: [11]yo@Antonio:~/mis cosas/haskel/nhc98$ ./configure Configuring for nhc98... [ v1.17 (CVS version) ] -------- Looking for already-installed Haskell compilers: Found C compiler: /usr/bin/gcc C compiler version: gcc (GCC) 3.3.3 (Debian 20040401) Looking for hbc... (not found) Note: LMLDIR/HBCDIR variables must be set to enable detection of hbc. Looking for ghc... found 6.2.1 Looking for nhc98... found v1.16 I am guessing that you want to use ghc to build hmake. Now I'm creating targets/ix86-Linux/hmake3.config for your installation. Done. -------- Configuration report for nhc98. (You can re-run configure to change settings before proceeding.) You wish (eventually) to install the following components in these locations: (Installation directories are not created/checked at this stage.) Final install root: /usr/local nhc98 binaries/libs: /usr/local/lib/nhc98/ix86-Linux hmake binaries: /usr/local/lib/hmake/ix86-Linux Interfaces/includes: /usr/local/include/nhc98 Scripts: /usr/local/bin Man pages: /usr/local/man/man1 Html documents: (none) Now we check/create your build directories: Config directory: targets/ix86-Linux Build directory root: /home/yo/mis cosas/haskel/nhc98/targets./configure: line 256: [: /home/yo/mis: binary operator expected (exists) Object files build in: /home/yo/mis cosas/haskel/nhc98/targets/ix86-Linux./configure: line 262: [: /home/yo/mis: binary operator expected (exists) Executables and libs: /home/yo/mis cosas/haskel/nhc98/lib/ix86-Linux./configure: line 268: [: /home/yo/mis: binary operator expected (exists) I am guessing you will build nhc98 with: ghc nhc98comp uses RTS delimiters? yes This machine's endian-ness is: -DLOW_BYTE_FIRST (detected) Executables need .exe suffix? no (detected) Testing for the curses library: -lncurses (detected) Testing for the readline library: -lreadline (detected) Reading /usr/include/errno.h: updated DErrNo.hs Default heap for compiled programs is: 100000 words (cached) Adding Makefile config script to /home/yo/mis cosas/haskel/nhc98/lib/ix86-Linux... ./configure: line 783: /home/yo/mis cosas/haskel/nhc98/lib/ix86-Linux/config: No such file or directory Adding build scripts to /home/yo/mis cosas/haskel/nhc98/script... nhc98 hmake hmake-config hi greencard hsc2hs cp: `cosas/haskel/nhc98/script': specified destination directory does not exist Try `cp --help' for more information. cpphs ./configure: line 560: [: /home/yo/mis: binary operator expected chmod: failed to get attributes of `/home/yo/mis': No such file or directory chmod: failed to get attributes of `cosas/haskel/nhc98/script/nhc98': No such file or directory chmod: failed to get attributes of `/home/yo/mis': No such file or directory chmod: failed to get attributes of `cosas/haskel/nhc98/script/greencard-nhc98': No such file or directory chmod: failed to get attributes of `/home/yo/mis': No such file or directory chmod: failed to get attributes of `cosas/haskel/nhc98/script/hmake': No such file or directory chmod: failed to get attributes of `/home/yo/mis': No such file or directory chmod: failed to get attributes of `cosas/haskel/nhc98/script/hi': No such file or directory chmod: failed to get attributes of `/home/yo/mis': No such file or directory chmod: failed to get attributes of `cosas/haskel/nhc98/script/hmake-config': No such file or directory chmod: failed to get attributes of `/home/yo/mis': No such file or directory chmod: failed to get attributes of `cosas/haskel/nhc98/script/hsc2hs': No such file or directory chmod: failed to get attributes of `/home/yo/mis': No such file or directory chmod: failed to get attributes of `cosas/haskel/nhc98/script/cpphs': No such file or directory Creating src/runtime/nhc98heap.c ... Updating targets/ix86-Linux/hmake3.config... Saving current configuration in targets/ix86-Linux/config.cache Done. Greetings, Antonio Regidor Garcia ______________________________________________ Renovamos el Correo Yahoo!: ¡250 MB GRATIS! Nuevos servicios, más seguridad http://correo.yahoo.es

Antonio Regidor García
[The] configure script can't handle blanks in paths
Good point. It is not just the configure script that will fail, but also the driver scripts for nhc98, hmake, and so on. I have fixed these scripts, and will commit then to CVS once they have been tested. Regards, Malcolm

[The] configure script can't handle blanks in paths
Good point. It is not just the configure script that will fail, but also the driver scripts for nhc98, hmake, and so on. I have fixed these scripts, and will commit then to CVS once they have been tested.
In fact my modifications failed, and it turns out to be rather more complicated than I imagined to support directory names with spaces, everywhere they might required. Shell scripts and Makefiles end up with multiple levels of quoting around almost everything, and I'm not sure it is worth adding the bother to the normal case, just to handle an extremely rare case. Instead, I am inclined to detect a build path with spaces early on, and reject it. Regards, Malcolm
participants (2)
-
Antonio Regidor García
-
Malcolm Wallace