From 599cf81a1bcc9dbbe5e9a088b766ca8af662be1c Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 19 Dec 2007 11:44:16 +0000 Subject: [PATCH] Define datarootdir, docdir, htmldir and pdfdir if not defined by autoconf (first defined in autoconf-2.59c). --- configure.ac | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configure.ac b/configure.ac index 1acc52e..bc9f62d 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,27 @@ COMEDILIB_LIBS="$COMEDILIB_LIBS \$(top_builddir)/lib/libcomedi.la -lm" AC_SUBST(COMEDILIB_CFLAGS) AC_SUBST(COMEDILIB_LIBS) +# autoconf backwards compatibility +if test "$datarootdir" = ""; then + datarootdir='${datadir}' + AC_SUBST(datarootdir) +fi + +if test "$docdir" = ""; then + docdir='${datarootdir}/doc/${PACKAGE}' + AC_SUBST(docdir) +fi + +if test "$htmldir" = ""; then + htmldir='${docdir}' + AC_SUBST(htmldir) +fi + +if test "$pdfdir" = ""; then + pdfdir='${docdir}' + AC_SUBST(pdfdir) +fi + #swig AC_PATH_PROG(SWIG, swig, "no") if test "$SWIG" == "no" ; then -- 2.26.2