]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Speed up configure a bit.
authorBruno Haible <bruno@clisp.org>
Sun, 27 Nov 2011 13:10:32 +0000 (14:10 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 27 Nov 2011 13:10:32 +0000 (14:10 +0100)
gettext-tools/ChangeLog
gettext-tools/configure.ac

index 2003338e0d95400c9147c28e36fff7f7b85e486c..627c0f5d8daef661d4bd512b639bc5cf8059d137 100644 (file)
@@ -1,3 +1,10 @@
+2011-11-27  Bruno Haible  <bruno@clisp.org>
+
+       Speed up configure a bit.
+       * configure.ac: Don't invoke AM_PATH_LISPDIR if the user specified
+       --without-emacs.
+       Based on a patch by DJ Lucas <dj@linuxfromscratch.org>.
+
 2011-06-03  Bruno Haible  <bruno@clisp.org>
 
        Update after gl_PROG_ANSI_CXX changed in gnulib.
index 81037b3a7c227d76d2cdb5895b57b33eecf32a8c..8db84d362044adccfb3c67fe4336937361101397 100644 (file)
@@ -288,7 +288,6 @@ dnl Check for nm output filter that yields the exported symbols.
 gt_GLOBAL_SYMBOL_PIPE
 
 dnl Check for Emacs and where to install .elc files.
-AM_PATH_LISPDIR
 dnl Sometimes Emacs is badly installed. Allow the user to work around it.
 AC_ARG_WITH([emacs],
   [  --without-emacs         do not use Emacs, don't install po-mode],
@@ -301,6 +300,11 @@ if test "$EMACS" != no; then
     EMACS=no
   fi
 fi
+dnl If $EMACS = no, we won't install any Emacs Lisp (*.el) files,
+dnl therefore it's useless to determine $(lispdir).
+if test "$EMACS" != no; then
+  AM_PATH_LISPDIR
+fi
 
 aclocaldir='${datadir}/aclocal'
 AC_SUBST([aclocaldir])