comprehensive checking for help2man and gengetopt

This commit is contained in:
Frank Morgner
2012-10-26 22:04:24 +02:00
parent 38f2f363bf
commit cc3095a2f0
2 changed files with 36 additions and 5 deletions

View File

@@ -27,9 +27,20 @@ AC_PROG_INSTALL
AC_PROG_SED
AM_PROG_CC_C_O
PKG_PROG_PKG_CONFIG
AC_PATH_PROG(HELP2MAN, help2man, false // No help2man //)
AC_PATH_PROG(GENGETOPT, gengetopt, false // No gengetopt //)
AC_PATH_PROG(GENGETOPT, doxygen, false // No gengetopt //)
AC_ARG_VAR([HELP2MAN],
[absolute path to help2man used for man page generation of npa-tool])
AC_PATH_PROG(HELP2MAN, help2man, not found)
if test ! -r src/npa-tool.1 -a "${HELP2MAN}" = "not found"
then
AC_MSG_ERROR([Need help2man to generate man page for npa-tool])
fi
AC_ARG_VAR([GENGETOPT],
[absolute path to gengetopt used for command line parsing of npa-tool])
AC_PATH_PROG(GENGETOPT, gengetopt, not found)
if test ! -r src/cmdline.h -a "${GENGETOPT}" = "not found"
then
AC_MSG_ERROR([Need gengetopt for parsing command line of npa-tool])
fi
# If you need to see the details, just run make V=1.
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
@@ -125,6 +136,10 @@ OPENSSL_LIBS: ${OPENSSL_LIBS}
OPENPACE_CFLAGS: ${OPENPACE_CFLAGS}
OPENPACE_LIBS: ${OPENPACE_LIBS}
HELP2MAN: ${HELP2MAN}
GENGETOPT: ${GENGETOPT}
EOF
AC_CONFIG_FILES([