check if DOCDIR has not already injected from the command line.
This commit is contained in:
parent
63db43519c
commit
9dd3340f78
15
configure.ac
15
configure.ac
@ -1212,11 +1212,16 @@ else
|
||||
INSTALLDIR="${prefix}"
|
||||
fi
|
||||
|
||||
if test -d "${INSTALLDIR}/doc"
|
||||
then
|
||||
DOCDIR="${INSTALLDIR}/doc/musrfit"
|
||||
else
|
||||
DOCDIR="${INSTALLDIR}/share/doc/musrfit"
|
||||
dnl only define DOCDIR if not already present. This allows
|
||||
dnl to feed DOCDIR on the configure level which is useful when
|
||||
dnl for instance building a rpm.
|
||||
if test "x${DOCDIR}" = "x"
|
||||
if test -d "${INSTALLDIR}/doc"
|
||||
then
|
||||
DOCDIR="${INSTALLDIR}/doc/musrfit"
|
||||
else
|
||||
DOCDIR="${INSTALLDIR}/share/doc/musrfit"
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST(DOCDIR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user