diff options
author | Po Lu <luangruo@yahoo.com> | 2023-04-26 04:57:31 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-26 04:57:31 +0200 |
commit | 3ef794d11bcbea3b8ae57767772a3255b669b8ce (patch) | |
tree | 8a9c6350de418fd421083955d4be7c3e538ff797 /pygnulib | |
parent | 446cbd49a361d875b602d68979c8983d3b32c512 (diff) | |
download | gnulib-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.py | 2 |
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 |