GNOME Bugzilla – Bug 116018
Nonstandard Bourne shell code in configure script
Last modified: 2018-06-29 20:34:29 UTC
The gnucash-1.8.4 configure script makes extensive use of $(...) (in 45 places). This is not a Bourne shell feature, but an extension of the Korn and Bash shells, ksh and bash. The script begins #! /bin/sh, and thus fails on many systems. Use `...` instead for shell portability.
This is the fault of intltool.m4 and not us. Hopefully future versions of intltool will get this fixed.
Actually, I just looked some more and it's not necessarily all intltool. I think some of it might be from libtool.m4. Can you grab a couple of snippets from the configure script and supply them here? Preferably find them from lots of different places in the script?
*** Bug 116615 has been marked as a duplicate of this bug. ***
Could this be what is causing 'configure' to bail on solaris 9? gnucash-1.8.9)$ ./configure --prefix=/opt --with-gnome=/usr --disable-nls --with-perl=/opt /bin/perl loading cache ./config.cache checking for non-GNU ld... /usr/ccs/bin/ld checking if the linker (/usr/ccs/bin/ld) is GNU ld... no checking for gcc... /opt/bin/gcc checking whether the C compiler (/opt/bin/gcc -L/opt/lib -L/opt/ssl/lib -L/opt/BerkeleyDB.4.1/lib) works... yes checking whether the C compiler (/opt/bin/gcc -L/opt/lib -L/opt/ssl/lib -L/opt/BerkeleyDB.4.1/lib) is a cross-compiler... no checking whether we are using GNU C... yes checking whether /opt/bin/gcc accepts -g... yes checking for a BSD compatible install... /opt/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found ./configure: syntax error at line 1384: `INTLTOOL_REQUIRED_VERSION_AS_INT=$' unexpected
yea, that's intltool. as I said, not much we can do about it now.. Use bash on Solaris.
The more recent intltool macros will have more standarized shell code. At least gnucash-1.8.12 comes with a configure from a recent enough libtool.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=116018. Please update any external references or bookmarks.