tweaks: move the checks for git and gettext to a far earlier point
parent
6bead051d2
commit
cad8493e24
41
configure.ac
41
configure.ac
|
@ -56,6 +56,28 @@ dnl Data location.
|
||||||
pkgdatadir=${datadir}/${PACKAGE}
|
pkgdatadir=${datadir}/${PACKAGE}
|
||||||
AC_DEFINE_DIR([PKGDATADIR], [pkgdatadir], [Where data are placed to.])
|
AC_DEFINE_DIR([PKGDATADIR], [pkgdatadir], [Where data are placed to.])
|
||||||
|
|
||||||
|
dnl Whether this is a git repository.
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether building from git])
|
||||||
|
if test -d .git ; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
from_git=yes
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
from_git=no
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BUILDING_FROM_GIT, test x$from_git = xyes)
|
||||||
|
|
||||||
|
dnl Check for gettext when building from git.
|
||||||
|
|
||||||
|
if test x$from_git = xyes; then
|
||||||
|
if test "$ac_cv_path_MSGFMT" = ":"; then
|
||||||
|
AC_MSG_ERROR([
|
||||||
|
*** The msgfmt program is missing. ***
|
||||||
|
*** The gettext package needs to be installed when building from git. ***])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
|
|
||||||
AC_CHECK_HEADERS(libintl.h limits.h pwd.h termios.h sys/param.h)
|
AC_CHECK_HEADERS(libintl.h limits.h pwd.h termios.h sys/param.h)
|
||||||
|
@ -751,25 +773,6 @@ else
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL(GROFF_HTML, test x$groff_html_support = xyes)
|
AM_CONDITIONAL(GROFF_HTML, test x$groff_html_support = xyes)
|
||||||
|
|
||||||
# Check whether this is a git repository.
|
|
||||||
AC_MSG_CHECKING([whether building from git])
|
|
||||||
if test -d .git ; then
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
from_git=yes
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
from_git=no
|
|
||||||
fi
|
|
||||||
AM_CONDITIONAL(BUILDING_FROM_GIT, test x$from_git = xyes)
|
|
||||||
|
|
||||||
if test x$from_git = xyes; then
|
|
||||||
if test "$ac_cv_path_MSGFMT" = ":"; then
|
|
||||||
AC_MSG_ERROR([
|
|
||||||
*** The msgfmt program is missing. ***
|
|
||||||
*** The gettext package needs to be installed when building from git. ***])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
|
|
Loading…
Reference in New Issue