[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] Re: Checking for makeinfo in configure
From: |
Aleksander Morgado |
Subject: |
Re: [pdf-devel] Re: Checking for makeinfo in configure |
Date: |
Thu, 20 Dec 2007 20:53:43 +0100 |
>
> - You dont have installed makeinfo nor texi2html. It should crash
> with the current `configure.ac'. A patch seeking for makeinfo will be
> able to provide a convenient error message in configure time.
>
>
A simple patch to check for 'makeinfo' at configure time.
I also corrected the way AC_MSG_ERROR is called when AC_CHECK_PROG
fails to find the required program.
Regards,
Aleks.
Index: configure.ac
===================================================================
RCS file: /sources/pdf/libgnupdf/configure.ac,v
retrieving revision 1.21
diff -c -r1.21 configure.ac
*** configure.ac 20 Nov 2007 11:56:05 -0000 1.21
--- configure.ac 20 Dec 2007 18:00:49 -0000
***************
*** 53,59 ****
AC_CHECK_LIB([check],[suite_create],[have_check=yes],[have_check=no],)
AM_CONDITIONAL([CHECK], [test "x$have_check" = "xyes"])
! dnl Search for programs
AC_CHECK_PROG([have_texi2html], [texi2html], [yes], [no],,)
AM_CONDITIONAL([TEXI2HTML], [test "x$have_texi2html" = "xyes"])
if test "x$have_texi2html" = "xyes" ; then
--- 53,64 ----
AC_CHECK_LIB([check],[suite_create],[have_check=yes],[have_check=no],)
AM_CONDITIONAL([CHECK], [test "x$have_check" = "xyes"])
! dnl Search for programs for building documentation
! AC_CHECK_PROG([have_makeinfo], [makeinfo], [yes], [no],,)
! if test "x$have_makeinfo" = "xno"; then
! AC_MSG_ERROR([cannot find the `makeinfo' program. Please install the
texinfo package and rerun `configure'.])
! fi
!
AC_CHECK_PROG([have_texi2html], [texi2html], [yes], [no],,)
AM_CONDITIONAL([TEXI2HTML], [test "x$have_texi2html" = "xyes"])
if test "x$have_texi2html" = "xyes" ; then
***************
*** 78,91 ****
AC_PATH_PROG([PATH_TO_AWK],$AWK)
AC_SUBST(PATH_TO_AWK)
! AC_CHECK_PROG([have_taskjuggler], [taskjuggler], [yes],
! [AC_MSG_ERROR([cannot find the `taskjuggler' program.
Please install it and rerun `configure'.])],,)
! AC_CHECK_PROG([have_dot], [dot], [yes],
! [AC_MSG_ERROR([cannot find the `dot' program. Please
install the graphviz package and rerun `configure'.])],,)
! AC_CHECK_PROG([have_fdp], [fdp], [yes],
! [AC_MSG_ERROR([cannot find the `fdp' program. Please
install the graphviz package and rerun `configure'.])],,)
! AC_CHECK_PROG([have_pmccabe], [pmccabe], [yes],
! [AC_MSG_ERROR([cannot find the `pmccabe' program.
Please install it and rerun `configure'.])],,)
fi # prmgt_mode
dnl Generate output files
--- 83,104 ----
AC_PATH_PROG([PATH_TO_AWK],$AWK)
AC_SUBST(PATH_TO_AWK)
! AC_CHECK_PROG([have_taskjuggler], [taskjuggler], [yes], [no],,)
! if test "x$have_taskjuggler" = "xno"; then
! AC_MSG_ERROR([cannot find the `taskjuggler' program. Please install
it and rerun `configure'.])
! fi
! AC_CHECK_PROG([have_dot], [dot], [yes], [no],,)
! if test "x$have_dot" = "xno"; then
! AC_MSG_ERROR([cannot find the `dot' program. Please install the
graphviz package and rerun `configure'.])
! fi
! AC_CHECK_PROG([have_fdp], [fdp], [yes], [no],,)
! if test "x$have_fdp" = "xno"; then
! AC_MSG_ERROR([cannot find the `fdp' program. Please install the
graphviz package and rerun `configure'.])
! fi
! AC_CHECK_PROG([have_pmccabe], [pmccabe], [yes], [no],,)
! if test "x$have_pmccabe" = "xno"; then
! AC_MSG_ERROR([cannot find the `pmccabe' program. Please install it
and rerun `configure'.])
! fi
fi # prmgt_mode
dnl Generate output files