This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] 6.1: Add missing autoheader 2.5x templates
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: Daniel Jacobowitz <drow at false dot org>,gdb-patches at sources dot redhat dot com
- Date: Wed, 19 May 2004 16:25:10 +0200 (CEST)
- Subject: [patch] 6.1: Add missing autoheader 2.5x templates
- Organization: Technical University of Gdansk
Hello,
As of autoconf 2.5x autoheader verifies templates for all cpp macros are
provided either by acconfig.h (which is obsolete) or by the third argument
to AC_DEFINE. This is a patch to add them in sim/ -- copied from
gettext.m4 at the top level.
2004-05-19 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* aclocal.m4: Add autoheader templates throughout.
* configure: Regenerate.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
gdb-6.0-ah.patch
diff -up --recursive --new-file gdb-6.0.macro/sim/common/aclocal.m4 gdb-6.0/sim/common/aclocal.m4
--- gdb-6.0.macro/sim/common/aclocal.m4 2002-06-16 16:33:12.000000000 +0000
+++ gdb-6.0/sim/common/aclocal.m4 2003-11-06 19:15:52.000000000 +0000
@@ -904,7 +904,7 @@ AC_DEFUN(CY_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 NLS 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],
@@ -938,7 +938,8 @@ AC_DEFUN(CY_WITH_NLS,
if test "$gt_cv_func_gettext_libc" = "yes" \
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
- AC_DEFINE(HAVE_GETTEXT)
+ AC_DEFINE(HAVE_GETTEXT, 1,
+ [Define as 1 if you have gettext and don't want to use GNU gettext.])
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
@@ -1059,7 +1060,7 @@ __argz_count __argz_stringify __argz_nex
AC_CHECK_FUNCS(stpcpy)
fi
if test "${ac_cv_func_stpcpy}" = "yes"; then
- AC_DEFINE(HAVE_STPCPY)
+ AC_DEFINE(HAVE_STPCPY, 1, [Define if you have the stpcpy function])
fi
AM_LC_MESSAGES
@@ -1217,7 +1218,8 @@ 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 contains LC_MESSAGES.])
fi
fi])