]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Upgrade to autoconf 2.13. Make acconfig.h as small as possible.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Jan 2001 13:55:20 +0000 (13:55 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 24 Jan 2001 13:55:20 +0000 (13:55 +0000)
ChangeLog
acconfig.h
configure.in
m4/gettext.m4
m4/lcmessage.m4

index c682cc00f4bf66398c75e4518d697d4a18229053..c0c916d2f51c531040a889cb72a72d5de0b2d891 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2001-01-20  Bruno Haible  <haible@clisp.cons.org>
+
+       * configure.in: Add a third argument to AC_DEFINE.
+       Require autoconf-2.13.
+       * acconfig.h (_GNU_SOURCE): Remove, now done in configure.in.
+       (HAVE_PARSE_PRINTF_FORMAT): Likewise.
+       (ENABLE_NLS): Remove, now done in m4/gettext.m4.
+       (HAVE_GETTEXT): Likewise.
+       (HAVE_STPCPY): Likewise.
+       (HAVE_LC_MESSAGES): Remove, now done in m4/lcmessage.m4.
+       (HAVE_PTRDIFF_T): Remove, now done in automake-1.4's ptrdiff.m4.
+       (HAVE_OBSTACK): Remove, not set by configure.
+       (HAVE_CATGETS): Likewise.
+
 2001-01-07  Bruno Haible  <haible@clisp.cons.org>
 
        * Makefile.am (DISTCLEANFILES): Remove. Now done in intl/Makefile.in.
index e3fd778b8c49b34b610c6a4c323d6b4840bfadfb..2de2b9ec5cc888fb10f88af19551717d85c83980 100644 (file)
 
 @TOP@
 
-/* Make sure we see all GNU extensions.  */
-#undef _GNU_SOURCE
-
 /* Define to the name of the distribution.  */
 #undef PACKAGE
 
 /* Define to the version of the distribution.  */
 #undef VERSION
 
-/* Define if you have obstacks.  */
-#undef HAVE_OBSTACK
-
-/* Define if <stddef.h> defines ptrdiff_t.  */
-#undef HAVE_PTRDIFF_T
-
-/* Define if your locale.h file contains LC_MESSAGES.  */
-#undef HAVE_LC_MESSAGES
-
-/* Define if you have the parse_printf_format function.  */
-#undef HAVE_PARSE_PRINTF_FORMAT
-
-/* Define to 1 if NLS is requested.  */
-#undef ENABLE_NLS
-
-/* Define as 1 if you have catgets and don't want to use GNU gettext.  */
-#undef HAVE_CATGETS
-
-/* Define as 1 if you have gettext and don't want to use GNU gettext.  */
-#undef HAVE_GETTEXT
-
-/* Define as 1 if you have the stpcpy function.  */
-#undef HAVE_STPCPY
-
 @BOTTOM@
 
 /* We don't test for the basename function but still want to use the
 # define HAVE_BASENAME 1
 #endif
 
-/* On GNU systems we want to use the extensions.  */
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE   1
-#endif
-
 
 /* A file name cannot consist of any character possible.  INVALID_PATH_CHAR
    contains the characters not allowed.  */
index 9f72dd3d63e3822029eb02a1e3baa6c1b4baad59..8abd7027f5dcdfafdf7287028cff47c98b1edf9c 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.12)
-AC_REVISION($Revision: 1.7 $)
+AC_PREREQ(2.13)
+AC_REVISION($Revision: 1.8 $)
 AC_INIT(src/msgfmt.c)
 AM_INIT_AUTOMAKE(gettext, 0.10.36)
 AM_CONFIG_HEADER(config.h)
@@ -15,8 +15,7 @@ AC_ISC_POSIX
 AC_PROG_INSTALL
 AC_PROG_YACC
 
-dnl Make sure we see all GNU extensions.
-AC_DEFINE(_GNU_SOURCE)
+AC_DEFINE(_GNU_SOURCE, 1, [Make sure we see all GNU extensions.])
 
 dnl Checks for libraries.
 
@@ -47,7 +46,8 @@ fi
 AC_CHECK_FUNC(parse_printf_format, gt_cv_func_parse_printf_format=yes,
   gt_cv_func_parse_printf_format=no)
 if test $gt_cv_func_parse_printf_format = yes; then
-  AC_DEFINE(HAVE_PARSE_PRINTF_FORMAT)
+  AC_DEFINE(HAVE_PARSE_PRINTF_FORMAT, 1,
+    [Define if you have the parse_printf_format() function.])
 else
   LIBOBJS="$LIBOBJS printf-prs.o"
 fi
index 64759beb999ad6091dfc54870d86801d7bdcff2d..6edd7fa2ee630765186f94899efadc4533aff350 100644 (file)
@@ -41,7 +41,9 @@ AC_DEFUN(AM_WITH_NLS,
 
     dnl If we use NLS figure out what method
     if test "$USE_NLS" = "yes"; then
-      AC_DEFINE(ENABLE_NLS)
+      AC_DEFINE(ENABLE_NLS, 1,
+        [Define to 1 if translation of program messages to the user's native language
+   is requested.])
       AC_MSG_CHECKING([whether included gettext is requested])
       AC_ARG_WITH(included-gettext,
         [  --with-included-gettext use the GNU gettext library included here],
@@ -81,7 +83,8 @@ return (int) gettext ("") + _nl_msg_cat_cntr],
 
           if test "$gt_cv_func_gnugettext_libc" = "yes" \
              || test "$gt_cv_func_gnugettext_libintl" = "yes"; then
-             AC_DEFINE(HAVE_GETTEXT)
+             AC_DEFINE(HAVE_GETTEXT, 1,
+                [Define if the GNU gettext() function is already present or preinstalled.])
              AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
                [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
              if test "$MSGFMT" != "no"; then
index e31bb5334b0930bbc5bff832b404044215388184..0a354f78760d6f8b2ab042af861fa8296981f00a 100644 (file)
@@ -6,7 +6,7 @@
 # but which still want to provide support for the GNU gettext functionality.
 # Please note that the actual code is *not* freely available.
 
-# serial 1
+# serial 2
 
 AC_DEFUN(AM_LC_MESSAGES,
   [if test $ac_cv_header_locale_h = yes; then
@@ -14,6 +14,7 @@ AC_DEFUN(AM_LC_MESSAGES,
       [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
        am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
     if test $am_cv_val_LC_MESSAGES = yes; then
-      AC_DEFINE(HAVE_LC_MESSAGES)
+      AC_DEFINE(HAVE_LC_MESSAGES, 1,
+        [Define if your <locale.h> file defines LC_MESSAGES.])
     fi
   fi])