Skip to content

configure.ac: fix TEXI2DVI check to handle missing program case#52

Open
Zetsyog wants to merge 1 commit intoperiscop:masterfrom
Zetsyog:build-fix
Open

configure.ac: fix TEXI2DVI check to handle missing program case#52
Zetsyog wants to merge 1 commit intoperiscop:masterfrom
Zetsyog:build-fix

Conversation

@Zetsyog
Copy link

@Zetsyog Zetsyog commented Nov 26, 2024

The AC_CHECK_PROG macro is misused.
The third argument specifies the default value to assign if the program provided as the second argument is not found. However, the line AM_CONDITIONAL(HAVE_TEXI2DVI, test -n "$TEXI2DVI") incorrectly checks whether the variable $TEXI2DVI is empty, which never occurs.
As a result, documentation is always attempted to be built, even if texi2dvi is not installed, causing compilation errors.

This issue is resolved by assigning an empty string as the third argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments