From: Ian Abbott Date: Wed, 19 Dec 2007 11:44:16 +0000 (+0000) Subject: Define datarootdir, docdir, htmldir and pdfdir if not defined by autoconf X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=599cf81a1bcc9dbbe5e9a088b766ca8af662be1c;p=comedilib.git Define datarootdir, docdir, htmldir and pdfdir if not defined by autoconf (first defined in autoconf-2.59c). --- 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