• Show log

    Commit

  • Hash : c1b799a0
    Author : Mike Frysinger
    Date : 2022-01-24T02:53:13

    texi: pass automatic -I to dvi & pdf generation
    
    Fixes automake bug https://bugs.gnu.org/23599.
    
    When generating info/html pages, automake adds -I flags to source
    dirs that contain the texi files, but it doesn't do this for dvi or
    pdf formats.  Instead, automake has been relying on texi2dvi to use
    makeinfo for expanding macros, and it hasn't done that by default in
    a long time.
    
    Since adding --expand to the texi2dvi call is undesirable (due to bad
    and unpredictable BEHAVIOR), pass those automatic -I flags directly
    to TEXI2DVI & TEXI2PDF so they work regardless of --expand behavior.
    
    We have to keep the MAKEINFO= setting around as texi2dvi might itself
    fall back to it if the version of tex is old or broken.
    
    * bin/automake.in: Add comment about $makeinfoflags usage.
    * doc/automake.texi: Mention automatic -I subdir flags.
    * lib/am/texibuild.am: Pass %MAKEINFOFLAGS% to TEXI2DVI & TEXI2PDF.
    * t/txinfo-subdir-pr343.sh: Check for -I subdir usage.