summaryrefslogtreecommitdiff
path: root/pygnulib
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2023-04-26 04:57:31 +0200
committerBruno Haible <bruno@clisp.org>2023-04-26 04:57:31 +0200
commit3ef794d11bcbea3b8ae57767772a3255b669b8ce (patch)
tree8a9c6350de418fd421083955d4be7c3e538ff797 /pygnulib
parent446cbd49a361d875b602d68979c8983d3b32c512 (diff)
downloadgnulib-3ef794d11bcbea3b8ae57767772a3255b669b8ce.tar.gz
gnulib-tool: For conditional dependencies, generate portable sh code.
* gnulib-tool (func_emit_autoconf_snippets): Avoid sh syntax 'if ! variable', that does not work with Solaris /bin/sh. * pygnulib/GLEmiter.py (GLEmiter.autoconfSnippets): Likewise.
Diffstat (limited to 'pygnulib')
-rw-r--r--pygnulib/GLEmiter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygnulib/GLEmiter.py b/pygnulib/GLEmiter.py
index 93f50b728c..dc46ba89e9 100644
--- a/pygnulib/GLEmiter.py
+++ b/pygnulib/GLEmiter.py
@@ -283,7 +283,7 @@ class GLEmiter(object):
shellvar = module.getShellVar()
emit += ' %s ()\n' % shellfunc
emit += ' {\n'
- emit += ' if ! $%s; then\n' % shellvar
+ emit += ' if $%s; then :; else\n' % shellvar
emit += self.autoconfSnippet(module, toplevel,
disable_libtool, disable_gettext, replace_auxdir, ' ')
emit += ' %s=true\n' % shellvar