+2024-03-03 Collin Funk <collin.funk1@gmail.com>
+ Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool.py: Fix output of gnulib-comp.m4.
+ * pygnulib/GLEmiter.py (GLEmiter.autoconfSnippets): Fix indentation.
+ Don't print nonstring values into gnulib-comp.m4.
+
2024-03-03 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Make output of test Makefile.am match gnulib-tool.
if moduletable.isConditional(depmodule):
shellfunc = depmodule.getShellFunc()
condition = moduletable.getCondition(module, depmodule)
- if condition != None:
- emit += ' if %s; then\n' % condition
- emit += ' %s\n' % shellfunc
- emit += ' fi\n'
- else: # if condition == None
- emit += ' %s\n' % shellfunc
+ if condition != None and condition != True:
+ emit += ' if %s; then\n' % condition
+ emit += ' %s\n' % shellfunc
+ emit += ' fi\n'
+ else: # if condition == None or condition == True
+ emit += ' %s\n' % shellfunc
# if not moduletable.isConditional(depmodule)
else:
# The autoconf code for $dep has already been emitted above and
if moduletable.isConditional(depmodule):
shellfunc = depmodule.getShellFunc()
condition = moduletable.getCondition(module, depmodule)
- if condition != None:
+ if condition != None and condition != True:
emit += ' if %s; then\n' % condition
emit += ' %s\n' % shellfunc
emit += ' fi\n'
- else: # if condition == None
+ else: # if condition == None or condition == True
emit += ' %s\n' % shellfunc
# if not moduletable.isConditional(depmodule)
else: