* configure.in: use different variable names for each AC_CHECK_PROG macro,
authorArt Cancro <ajc@citadel.org>
Wed, 21 Dec 2005 15:24:39 +0000 (15:24 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 21 Dec 2005 15:24:39 +0000 (15:24 +0000)
  because autoconf will see the same variable name as used before, pull some
  value from cache, and assume it knows the answer.  This causes NLS to be
  enabled on systems that have, for example, xgettext but not msgfmt (such as
  Mandrake).  Fixed.

webcit/ChangeLog
webcit/configure.in

index aaf1f5331f5a66fb56456dc8b826d9a54b7a244b..c06d91b625a33f999d7ca7235dfd46179ea87595 100644 (file)
@@ -1,5 +1,12 @@
 $Id$
 
+Wed Dec 21 10:22:51 EST 2005 ajc
+* configure.in: use different variable names for each AC_CHECK_PROG macro,
+  because autoconf will see the same variable name as used before, pull some
+  value from cache, and assume it knows the answer.  This causes NLS to be
+  enabled on systems that have, for example, xgettext but not msgfmt (such as
+  Mandrake).  Fixed.
+
 Wed Dec 21 10:08:18 EST 2005 ajc
 * Makefile.in: target 'distclean' - do not remove po/Makefile.in 
 
index de39baae765c18e6d1e41f2b4d218b45df7b0d55..07b75866f67f76e518f3726951a321ad0be8eb73 100644 (file)
@@ -317,21 +317,25 @@ if test "$ok_nls" != "no"; then
                        exit(0);
                }
        ],
-               ok_nls=yes,
-               ok_nls=no
+               ok_uselocale=yes,
+               ok_uselocale=no
        )
+       ok_nls=$ok_uselocale
 fi
 
 if test "$ok_nls" != "no"; then
-       AC_CHECK_PROG(ok_nls, xgettext, yes, no)
+       AC_CHECK_PROG(ok_xgettext, xgettext, yes, no)
+       ok_nls=$ok_xgettext
 fi
 
 if test "$ok_nls" != "no"; then
-       AC_CHECK_PROG(ok_nls, msgmerge, yes, no)
+       AC_CHECK_PROG(ok_msgmerge, msgmerge, yes, no)
+       ok_nls=$ok_msgmerge
 fi
 
 if test "$ok_nls" != "no"; then
-       AC_CHECK_PROG(ok_nls, msgfmt, yes, no)
+       AC_CHECK_PROG(ok_msgfmt, msgfmt, yes, no)
+       ok_nls=$ok_msgfmt
 fi
 
 if test "$ok_nls" != "no"; then