--- gnutrition/configure.ac 2026/05/17 20:09:43 1.2 +++ gnutrition/configure.ac 2026/05/18 19:36:06 1.4 @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later # -# $Id: configure.ac,v 1.2 2026/05/17 20:09:43 asm Exp $ +# $Id: configure.ac,v 1.4 2026/05/18 19:36:06 asm Exp $ # # configure.ac for GNUtrition # @@ -41,9 +41,14 @@ PKG_CHECK_MODULES([GIO], [gio-2.0], [hav AM_CONDITIONAL([BUILD_GTK], [test "x$have_gtk" = xyes -a "x$have_gio" = xyes]) # Optional: TexInfo tools. -AC_CHECK_PROGS([TEXI2HTML], [texi2html], [have_texi2html=yes], [have_texi2html=no]) -AC_CHECK_PROGS([TEXI2PDF], [texi2pdf], [have_texi2pdf=yes], [have_texi2pdf=no]) -AM_CONDITIONAL([HAVE_TEXINFO], [test "x$have_texi2html" != "no" && test "x$texi2pdf" != "no"]) +AC_CHECK_PROGS([MAKEINFO], [makeinfo], [no]) +AC_CHECK_PROGS([TEXIHTML], [texi2html], [no]) +AC_CHECK_PROGS([TEXIPDF], [texi2pdf], [no]) +AM_CONDITIONAL([HAVE_TEXINFO], [test "$MAKEINFO" != "no" && test "$TEXIHTML" != "no" && test "$TEXIPDF" != "no"]) + +# Optional: check if local manual copies should get install +AM_CONDITIONAL([INSTALL_HTML], [test -f "$srcdir/gnutrition.html"]) +AM_CONDITIONAL([INSTALL_PDF], [test -f "$srcdir/gnutrition.pdf"]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_HEADERS([config.h])