After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 548218 - OpenSolaris: $(expression) cause configure error on solaris
OpenSolaris: $(expression) cause configure error on solaris
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Build system
git-master
Other opensolaris
: Normal normal
: ---
Assigned To: Derek Atkins
Derek Atkins
Depends on:
Blocks: backport
 
 
Reported: 2008-08-18 07:25 UTC by Halton Huo
Modified: 2018-06-29 22:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for bug #548218 (1.77 KB, patch)
2008-08-22 06:25 UTC, Halton Huo
none Details | Review
new patch for bug #548218 (2.36 KB, patch)
2008-08-22 06:46 UTC, Halton Huo
committed Details | Review

Description Halton Huo 2008-08-18 07:25:17 UTC
I'm trying to build gnucash trunk r17473, after running ./autogen.sh and configure, I get following error:

$./configure --enable-compile-warnings --prefix=/export/home/halton/work/dist --enable-debug --enable-gui
./configure: syntax error at line 2665: `(' unexpected

Paste configure here:
 2664 for flag in $CFLAGS; do
 2665   if test -z $(echo $flag | sed -e 's,-O.,,'); then
 2666     USER_OPTIMIZATION="$USER_OPTIMIZATION ${flag}"
 2667   fi
 2668 done
Comment 1 Derek Atkins 2008-08-18 17:00:27 UTC
try using bash as your shell?
Comment 2 Halton Huo 2008-08-22 04:04:33 UTC
bash will help, but /bin/sh solairs is sh, not bash. I'd like to rewrite in configure.in to allow sh works for it.
Comment 3 Halton Huo 2008-08-22 06:25:33 UTC
Created attachment 117181 [details] [review]
patch for bug #548218
Comment 4 Halton Huo 2008-08-22 06:46:36 UTC
Created attachment 117184 [details] [review]
new patch for bug #548218

Add missing macros/as-scrub-include.m4 in this patch.
Comment 5 Andreas Köhler 2008-09-30 22:42:35 UTC
What version of Solaris is that, btw?
I do not know a lot about old unixes, but command substitution via $() is even part of http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html , which I regard as POSIX definition of a shell, i.e. the absolute minimum I think a shell should be able to do.
Comment 6 Christian Stimming 2008-11-07 21:27:16 UTC
From that document, backticks are "just as standarized" as the $() form. In that sense, I don't have a problem with the patch in comment 4 and would regard this as unifying the command substitution pattern in our scripts. Anyone else an opinion here?
Comment 7 Derek Atkins 2008-11-09 13:35:58 UTC
I think using backticks are better.
Comment 8 Andreas Köhler 2008-11-09 13:57:15 UTC
Backticks cannot be nested, but it seems we do not need that.
Feel free to commit.
Comment 9 Halton Huo 2008-11-09 15:07:48 UTC
I do not have commit acess for GnuCash, anyone could help to commit it? 
Comment 10 Christian Stimming 2008-11-26 13:33:05 UTC
Committed to trunk, r17720. Back-porting would be nice, but isn't strictly necessary.
Comment 11 Christian Stimming 2008-11-27 12:29:10 UTC
2.2-branch, r17742
Comment 12 John Ralls 2018-06-29 22:08:51 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=548218. Please update any external references or bookmarks.