[RFC] Update to current automake/autoconf/libtool versions.

Klee Dienes
2002-12-05T06:04:40Z

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]

The following patch updates the following directories to use the latest
versions of libtool, autoconf, and automake:

bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils

ltmain.sh (GNU libtool) 1.4.3
autoconf (GNU Autoconf) 2.56
automake (GNU automake) 1.7.1
gettext (GNU gettext) 0.11.5

To apply the patch, I put the following four files in a directory, and
ran 'files.sh' in the top-level directory of the GDB/Binutils tree,
then configured and built with 'build.sh' (the script was necessary in
order to pass --enable-maintainer-mode to only the subdirectories for
which it was appropriate). I then did a full build to verify that
maintainer-mode was working, and used the files generated by
--enable-maintainer-mode as the final versions. I'm not including the
ChangeLog entries for all of the auto-generated files, as they're not
overly interesting; I plan to generate them with a perl script based on
the result of the build. I'm also not including the diffs to the
generated files, since they were about 6Mb, and not all that
interesting. I'm happy to provide either if requested.

[-- Attachment #2: ChangeLog --]
[-- Type: application/octet-stream, Size: 2582 bytes --]

.
2002-12-04 Klee Dienes <kdienes@apple.com>

* .cvsignore: Add autom4te.cache.

bfd
2002-12-04 Klee Dienes <kdienes@apple.com>

* acinclude.m4: Remove include of libtool.m4.
* configure.in: Use AC_DISABLE_SHARED and AC_PROG_LIBTOOL
instead of the AM_ versions.

binutils
2002-12-04 Klee Dienes <kdienes@apple.com>

* Makefile.am (YLWRAP): Refer to the top-level ylwrap.
* acinclude.m4: Remove include of libtool.m4.
* configure.in: Use AC_PROG_LEX instead of AM_PROG_LEX.
* configure: Pass --build=$host_alias to sub-makes if no other
value is specified.

gas
2002-12-04 Klee Dienes <kdienes@apple.com>

* acinclude.m4: Remove include of libtool.m4.
* configure.in: Pass explicit value to AC_CONFIG_FILES, not
${GDBINIT}. Use AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and
AC_OUTPUT, not the multi-argument AC_OUTPUT.

gdb
2002-12-04 Klee Dienes <kdienes@apple.com>

* Makefile.in: Update to new ylwrap calling conventions.
* configure.in: Pass description string to AC_DEFINE.

gdb/testsuite
2002-12-04 Klee Dienes <kdienes@apple.com>

* gdb.hp/gdb.objdbg/configure.in: Remove objdbg0* from
AC_CONFIG_SUBDIRS.

gprof
2002-12-04 Klee Dienes <kdienes@apple.com>

* acinclude.m4: Remove include of libtool.m4.

ld
2002-12-04 Klee Dienes <kdienes@apple.com>

* Makefile.am (YLWRAP): Refer to the top-level ylwrap.
* acinclude.m4: Remove include of libtool.m4.

libiberty
2002-12-04 Klee Dienes <kdienes@apple.com>

* aclocal.m4: Use AC_LIBOBJ instead of setting LIBOBJS directly.
Use _AC_LANG_COMPILER_GNU and $ac_compiler_gnu instead of
AC_PROG_CC_GNU and $ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to
get the object file extension. Use AC_PROG_CC_G instead of
_AC_PROG_CC_G.
* configure.in: Use AC_LIBOBJ instead of setting LIBOBJS directly.

opcodes
2002-12-04 Klee Dienes <kdienes@apple.com>

* acinclude.m4: Remove include of libtool.m4.

rda
2002-12-04 Klee Dienes <kdienes@apple.com>

* configure.in: Use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL.

rda/lib
2002-12-04 Klee Dienes <kdienes@apple.com>

* lib/Makefile.am: Remove noinst_LIBRARIES and librda_a_SOURCES
(it's not possible to specify both a libtool version and a
non-libtool version using the same object files).

rda/unix
2002-12-04 Klee Dienes <kdienes@apple.com>

* unix/configure.in: Pass description strings to AC_DEFINE.

rda/win32
2002-12-04 Klee Dienes <kdienes@apple.com>

* win32/configure.in: Pass description strings to AC_DEFINE.

sim/common
2002-12-04 Klee Dienes <kdienes@apple.com>

* aclocal.m4: Pass description strings to AC_DEFINE.

[-- Attachment #3: bfd.txt --]
[-- Type: text/plain, Size: 32188 bytes --]

--- .cvsignore 2002-12-04 12:16:15.000000000 -0500
+++ .cvsignore 2002-12-04 23:18:08.000000000 -0500
@@ -6,6 +6,7 @@
*-src
*-stamp-*
*-tagged
+autom4te.cache
blockit
cfg-paper.info
config.status
--- bfd/acinclude.m4 2002-12-04 12:16:19.000000000 -0500
+++ bfd/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -108,16 +108,6 @@
AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_member_$1_$2)
])

-sinclude(../libtool.m4)
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_DEFUN([AM_DISABLE_SHARED],)
-AC_SUBST(LIBTOOL)
-])
-
sinclude(../gettext.m4)
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- bfd/configure.in 2002-12-04 12:16:20.000000000 -0500
+++ bfd/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -23,16 +23,16 @@
AC_SUBST(bfd_version)
AC_SUBST(bfd_version_string)

-dnl These must be called before AM_PROG_LIBTOOL, because it may want
+dnl These must be called before AC_PROG_LIBTOOL, because it may want
dnl to call AC_CHECK_PROG.
AC_CHECK_TOOL(AR, ar)
AC_CHECK_TOOL(RANLIB, ranlib, :)

dnl Default to a non shared library. This may be overridden by the
dnl configure option --enable-shared.
-AM_DISABLE_SHARED
+AC_DISABLE_SHARED

-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL

AC_ARG_ENABLE(64-bit-bfd,
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
--- binutils/Makefile.am 2002-12-04 12:16:22.000000000 -0500
+++ binutils/Makefile.am 2002-12-04 23:18:08.000000000 -0500
@@ -15,6 +15,8 @@
CC_FOR_BUILD = @CC_FOR_BUILD@
EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@

+YLWRAP = $(srcdir)/../ylwrap
+
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
YFLAGS = -d
LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
--- binutils/acinclude.m4 2002-12-04 12:16:23.000000000 -0500
+++ binutils/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,14 +1,5 @@
sinclude(../bfd/acinclude.m4)

-dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_SUBST(LIBTOOL)
-])
-
dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- binutils/configure.in 2002-12-04 12:16:23.000000000 -0500
+++ binutils/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -62,7 +62,7 @@
AC_PROG_CC

AC_PROG_YACC
-AM_PROG_LEX
+AC_PROG_LEX

ALL_LINGUAS="fr tr ja es sv da"
CY_GNU_GETTEXT
--- configure 2002-12-02 23:55:04.000000000 -0500
+++ configure 2002-12-04 23:18:08.000000000 -0500
@@ -1473,6 +1473,10 @@

### The recursion line is here.
if [ ! -z "${recprog}" ] ; then
+ if [ -z "$buildopt" ]
+ then
+ buildopt="--build=$host_alias"
+ fi
if eval ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${tgt_alias} \
${prefixoption} ${tmpdiroption} ${exec_prefixoption} \
${srcdiroption} ${diroptions} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${floating_pointoption} ${cache_file_option} ${other_options} ${redirect} ; then
--- gas/acinclude.m4 2002-12-04 12:16:34.000000000 -0500
+++ gas/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -55,16 +55,6 @@
$1=[$]_gas_uniq_newlist
])dnl

-sinclude(../libtool.m4)
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_DEFUN([AC_CHECK_LIBM],)
-AC_SUBST(LIBTOOL)
-])
-
sinclude(../gettext.m4)
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- gas/configure.in 2002-12-04 12:16:35.000000000 -0500
+++ gas/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -70,10 +70,14 @@

# If we are on a DOS filesystem, we must use gdb.ini rather than
# .gdbinit.
-GDBINIT=".gdbinit"
case "${host}" in
*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
GDBINIT="gdb.ini"
+ AC_CONFIG_FILES(gdb.ini:gdbinit.in)
+ ;;
+ *)
+ GDBINIT=".gdbinit"
+ AC_CONFIG_FILES(.gdbinit:gdbinit.in)
;;
esac
AC_SUBST(GDBINIT)
@@ -993,7 +997,9 @@
dnl the old symlinks don't exist, so that a reconfigure in an existing
dnl directory behaves reasonably.

-AC_OUTPUT(Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in,
+AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in)
+
+AC_CONFIG_COMMANDS([default],
[rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
@@ -1008,3 +1014,5 @@
cgen_cpu_prefix=${cgen_cpu_prefix}
obj_format=${obj_format}
te_file=${te_file}])
+
+AC_OUTPUT
\ No newline at end of file
--- gdb/Makefile.in 2002-12-04 23:11:12.000000000 -0500
+++ gdb/Makefile.in 2002-12-04 23:18:08.000000000 -0500
@@ -1218,7 +1218,7 @@
.PRECIOUS: c-exp.tab.c
c-exp.tab.o: c-exp.tab.c
c-exp.tab.c: c-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1234,7 +1234,7 @@
.PRECIOUS: objc-exp.tab.c
objc-exp.tab.o: objc-exp.tab.c
objc-exp.tab.c: objc-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/objc-exp.y y.tab.c objc-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/objc-exp.y y.tab.c objc-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1250,7 +1250,7 @@
.PRECIOUS: jv-exp.tab.c
jv-exp.tab.o: jv-exp.tab.c
jv-exp.tab.c: jv-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/jv-exp.y y.tab.c jv-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/jv-exp.y y.tab.c jv-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1266,7 +1266,7 @@
.PRECIOUS: f-exp.tab.c
f-exp.tab.o: f-exp.tab.c
f-exp.tab.c: f-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/f-exp.y y.tab.c f-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/f-exp.y y.tab.c f-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1282,7 +1282,7 @@
.PRECIOUS: m2-exp.tab.c
m2-exp.tab.o: m2-exp.tab.c
m2-exp.tab.c: m2-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/m2-exp.y y.tab.c m2-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/m2-exp.y y.tab.c m2-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1298,7 +1298,7 @@
.PRECIOUS: ada-exp.tab.c
ada-exp.tab.o: ada-exp.tab.c
ada-exp.tab.c: ada-exp.y
- $(YACC) $(YFLAGS) $(srcdir)/ada-exp.y
+ $(SHELL) $(YLWRAP) $(srcdir)/ada-exp.y y.tab.c ada-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
@@ -1327,7 +1327,7 @@
.PRECIOUS: p-exp.tab.c
p-exp.tab.o: p-exp.tab.c
p-exp.tab.c: p-exp.y
- $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/p-exp.y y.tab.c p-exp.tmp -- $(YFLAGS)
+ $(SHELL) $(YLWRAP) $(srcdir)/p-exp.y y.tab.c p-exp.tmp -- "$(YACC)" $(YFLAGS)
-sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
--- gdb/configure.in 2002-12-04 12:16:47.000000000 -0500
+++ gdb/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -472,7 +472,7 @@
ac_cv_c_long_double=yes, ac_cv_c_long_double=no)])
AC_MSG_RESULT($ac_cv_c_long_double)
if test $ac_cv_c_long_double = yes; then
- AC_DEFINE(HAVE_LONG_DOUBLE)
+ AC_DEFINE([HAVE_LONG_DOUBLE], [], [Define if the `long double' type works])
fi

dnl See if the compiler and runtime support printing long doubles
--- gdb/testsuite/gdb.hp/gdb.objdbg/configure.in 2002-12-04 12:17:00.000000000 -0500
+++ gdb/testsuite/gdb.hp/gdb.objdbg/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -11,6 +11,5 @@
AC_SUBST(CC)
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../../../..)
AC_CANONICAL_SYSTEM
-AC_CONFIG_SUBDIRS(objdbg01 objdbg02 objdbg03 objdbg04)

AC_OUTPUT(Makefile)
--- gprof/acinclude.m4 2002-12-04 12:17:02.000000000 -0500
+++ gprof/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,12 +1,3 @@
-sinclude(../libtool.m4)
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_SUBST(LIBTOOL)
-])
-
sinclude(../gettext.m4)
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- ld/Makefile.am 2002-12-04 12:17:11.000000000 -0500
+++ ld/Makefile.am 2002-12-04 23:18:08.000000000 -0500
@@ -9,6 +9,8 @@

tooldir = $(exec_prefix)/$(target_alias)

+YLWRAP = $(srcdir)/../ylwrap
+
YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi`
YFLAGS = -d
LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi`
--- ld/acinclude.m4 2002-12-04 12:17:11.000000000 -0500
+++ ld/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,14 +1,5 @@
sinclude(../bfd/acinclude.m4)

-dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_SUBST(LIBTOOL)
-])
-
dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- libiberty/aclocal.m4 2002-12-04 12:17:23.000000000 -0500
+++ libiberty/aclocal.m4 2002-12-04 23:18:08.000000000 -0500
@@ -69,7 +69,7 @@
ac_cv_func_strncmp_works=no)
rm -f core core.* *.core])
if test $ac_cv_func_strncmp_works = no ; then
- LIBOBJS="$LIBOBJS strncmp.o"
+ AC_LIBOBJ(strncmp)
fi
])

@@ -102,9 +102,10 @@
test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
fi

-AC_PROG_CC_GNU
+_AC_COMPILER_OBJEXT
+_AC_LANG_COMPILER_GNU

-if test $ac_cv_prog_gcc = yes; then
+if test $ac_compiler_gnu = yes; then
GCC=yes
ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
dnl Check whether -g works, even if CFLAGS is set, in case the package
@@ -113,7 +114,7 @@
ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
- AC_PROG_CC_G
+ _AC_PROG_CC_G
if test "$ac_test_CFLAGS" = set; then
CFLAGS="$ac_save_CFLAGS"
elif test $ac_cv_prog_cc_g = yes; then
--- libiberty/configure.in 2002-12-04 12:17:23.000000000 -0500
+++ libiberty/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -240,7 +240,12 @@
# newlib provide and which ones we will be expected to provide.

if test "x${with_newlib}" = "xyes"; then
- LIBOBJS="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o"
+ AC_LIBOBJ(asprintf)
+ AC_LIBOBJ(basename)
+ AC_LIBOBJ(insque)
+ AC_LIBOBJ(random)
+ AC_LIBOBJ(strdup)
+ AC_LIBOBJ(vasprintf)

for f in $funcs; do
case "$f" in
@@ -308,8 +313,16 @@
# Handle VxWorks configuration specially, since on VxWorks the
# libraries are actually on the target board, not in the file
# system.
- LIBOBJS="basename.o getpagesize.o insque.o random.o strcasecmp.o"
- LIBOBJS="$LIBOBJS strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o"
+ AC_LIBOBJ(basename)
+ AC_LIBOBJ(getpagesize)
+ AC_LIBOBJ(insque)
+ AC_LIBOBJ(random)
+ AC_LIBOBJ(strcasecmp)
+ AC_LIBOBJ(strncasecmp)
+ AC_LIBOBJ(strdup)
+ AC_LIBOBJ(vfork)
+ AC_LIBOBJ(waitpid)
+ AC_LIBOBJ(vasprintf)
for f in $funcs; do
case "$f" in
basename | getpagesize | insque | random | strcasecmp)
@@ -356,7 +369,7 @@
if test -n "${with_target_subdir}"
then
funcs="`echo $funcs | sed -e 's/random//'`"
- LIBOBJS="$LIBOBJS random.o"
+ AC_LIBOBJ(random)
vars="`echo $vars | sed -e 's/sys_siglist//'`"
checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
fi
@@ -392,12 +405,12 @@

# We haven't set the list of objects yet. Use the standard autoconf
# tests. This will only work if the compiler works.
- AC_PROG_CC_WORKS
+ AC_PROG_CC
AC_REPLACE_FUNCS($funcs)
libiberty_AC_FUNC_C_ALLOCA
AC_FUNC_VFORK
if test $ac_cv_func_vfork_works = no; then
- LIBOBJS="$LIBOBJS vfork.o"
+ AC_LIBOBJ(vfork)
fi
# We only need _doprnt if we might use it to implement v*printf.
if test $ac_cv_func_vprintf != yes \
--- opcodes/acinclude.m4 2002-12-04 12:17:45.000000000 -0500
+++ opcodes/acinclude.m4 2002-12-04 23:18:08.000000000 -0500
@@ -1,15 +1,5 @@
sinclude(../bfd/acinclude.m4)

-dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4
-dnl The lines below arrange for aclocal not to bring libtool.m4
-dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
-dnl to add a definition of LIBTOOL to Makefile.in.
-ifelse(yes,no,[
-AC_DEFUN([AM_PROG_LIBTOOL],)
-AC_DEFUN([AM_DISABLE_SHARED],)
-AC_SUBST(LIBTOOL)
-])
-
dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4
ifelse(yes,no,[
AC_DEFUN([CY_WITH_NLS],)
--- rda/configure.in 2002-12-04 12:17:46.000000000 -0500
+++ rda/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -7,7 +7,7 @@
dnl automake support
AM_MAINTAINER_MODE
dnl AC_LIBTOOL_WIN32_DLL
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
AC_EXEEXT
AC_LANG_C

--- rda/lib/Makefile.am 2002-12-04 12:17:46.000000000 -0500
+++ rda/lib/Makefile.am 2002-12-04 23:18:08.000000000 -0500
@@ -9,7 +9,6 @@
# Create a libtool convenience archive
# ... and a plain library archive for non-libtool clients
noinst_LTLIBRARIES = librda.la
-noinst_LIBRARIES = librda.a

INCLUDES = -I$(srcdir) -I$(srcdir)/../include \
-I$(srcdir)/../../include
@@ -17,4 +16,3 @@
THESOURCES=gdbserv-input.c gdbserv-output.c gdbserv-state.c gdbserv-utils.c gdbsocket.c gdblog.c stdio-log.c gdbserv-log.c gdbloop.c gdbsched.c gdbserv-target.c

librda_la_SOURCES = $(THESOURCES)
-librda_a_SOURCES = $(THESOURCES)
--- rda/unix/configure.in 2002-12-04 12:17:47.000000000 -0500
+++ rda/unix/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -9,7 +9,7 @@

dnl automake support
AM_MAINTAINER_MODE
-AM_PROG_LIBTOOL
+AC_PROG_LIBTOOL
AC_EXEEXT
AC_LANG_C

@@ -32,43 +32,43 @@
case "$target" in
mips64*linux*)
TARGET_MODULES="linux-target.o no-threads.o ptrace-target.o"
- AC_DEFINE(LINUX_TARGET)
- AC_DEFINE(GREGSET_T, prgregset_t)
- AC_DEFINE(FPREGSET_T, prfpregset_t)
- AC_DEFINE(HAVE_LWPID_T)
- AC_DEFINE(HAVE_PSADDR_T)
- AC_DEFINE(HAVE_PRGREGSET_T)
- AC_DEFINE(HAVE_PRFPREGSET_T)
+ AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux])
+ AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset])
+ AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset])
+ AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t])
+ AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t])
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
i?86*linux* | \
powerpc*linux* | \
arm*linux* | \
mips*linux*)
TARGET_MODULES="linux-target.o thread-db.o ptrace-target.o"
- AC_DEFINE(LINUX_TARGET)
- AC_DEFINE(GREGSET_T, prgregset_t)
- AC_DEFINE(FPREGSET_T, prfpregset_t)
- AC_DEFINE(HAVE_LWPID_T)
- AC_DEFINE(HAVE_PSADDR_T)
- AC_DEFINE(HAVE_PRGREGSET_T)
- AC_DEFINE(HAVE_PRFPREGSET_T)
+ AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux])
+ AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset])
+ AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset])
+ AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t])
+ AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t])
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
*linux*)
TARGET_MODULES="linux-target.o no-threads.o ptrace-target.o"
- AC_DEFINE(LINUX_TARGET)
- AC_DEFINE(GREGSET_T, prgregset_t)
- AC_DEFINE(FPREGSET_T, prfpregset_t)
- AC_DEFINE(HAVE_LWPID_T)
- AC_DEFINE(HAVE_PSADDR_T)
- AC_DEFINE(HAVE_PRGREGSET_T)
- AC_DEFINE(HAVE_PRFPREGSET_T)
+ AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux])
+ AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset])
+ AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset])
+ AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t])
+ AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t])
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
*solaris*)
TARGET_MODULES="solaris-target.o dummy-target.o"
- AC_DEFINE(SOLARIS_TARGET)
-# Place-holders -- not necessarily correct...
- AC_DEFINE(GREGSET_T, gregset_t)
- AC_DEFINE(FPREGSET_T, fpregset_t)
+ AC_DEFINE(SOLARIS_TARGET, [], [Define if target is any Solaris])
+ # Place-holders -- not necessarily correct...
+ AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t])
+ AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t])
;;
esac

@@ -77,116 +77,116 @@
case "$target" in
*solaris*)
dnl FIXME: differentiate between flavors of Solaris!
- AC_DEFINE(SPARC32_SOLARIS_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(SPARC32_SOLARIS_TARGET, [], [Define is target is Sparc32])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
sh*linux*)
- AC_DEFINE(SH_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(SH_LINUX_TARGET, [], [Define if target is SH (3? 4?) Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips64*linux*n64)
- AC_DEFINE(MIPS64_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_N64)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux])
+ AC_DEFINE(MIPS_ABI_N64, [], [Define if target uses MIPS n64 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips64*linux*n32)
- AC_DEFINE(MIPS64_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_N32)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+ AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux])
+ AC_DEFINE(MIPS_ABI_N32, [], [Define if target uses MIPS n32 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips64*linux*o32)
- AC_DEFINE(MIPS64_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_O32)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux])
+ AC_DEFINE(MIPS_ABI_O32, [], [Define if target uses MIPS o32 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
mips*linux*)
- AC_DEFINE(MIPS_LINUX_TARGET)
- AC_DEFINE(MIPS_ABI_O32)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(MIPS_LINUX_TARGET, [], [Define if target is (32-bit) MIPS Linux])
+ AC_DEFINE(MIPS_ABI_O32, [], [Define if target uses MIPS o32 ABI])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
i?86*linux*)
- AC_DEFINE(X86_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(X86_LINUX_TARGET, [], [Define if target is x86 Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
powerpc*linux*)
- AC_DEFINE(PPC_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(PPC_LINUX_TARGET, [], [Define if target is powerpc Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
m68k*linux*)
- AC_DEFINE(M68K_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(M68K_LINUX_TARGET, [], [Define if target is m68k Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
alpha*linux*)
- AC_DEFINE(ALPHA_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+ AC_DEFINE(ALPHA_LINUX_TARGET, [], [Define if target is alpha Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
;;
arm*linux*)
if test "$arm32" = "yes"; then
- AC_DEFINE(ARM_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 4)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG)
+ AC_DEFINE(ARM_LINUX_TARGET, [], [Define if target is arm Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
else
- AC_DEFINE(ARM_LINUX_TARGET)
- AC_DEFINE(PTRACE_XFER_SIZE, 8)
- AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG)
- AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG)
+ AC_DEFINE(ARM_LINUX_TARGET, [], [Define if target is arm Linux])
+ AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.])
+ AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.])
+ AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.])
+ AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.])
fi
;;
esac
--- rda/win32/configure.in 2002-12-04 12:17:47.000000000 -0500
+++ rda/win32/configure.in 2002-12-04 23:18:08.000000000 -0500
@@ -24,14 +24,10 @@
case "$target" in
*cygwin*)
dnl FIXME: differentiate between flavors of Solaris!
- AC_DEFINE(WIN32_TARGET)
+ AC_DEFINE(WIN32_TARGET, [], [Define if target is Win32])
;;
esac

-if test -f /usr/include/foo.h; then
- AC_DEFINE(HAVE_AC_DEFINE, 1, [define if have AC_DEFINE])
-fi
-
dnl Outputs
AC_OUTPUT(Makefile)

--- sim/common/aclocal.m4 2002-12-04 12:17:54.000000000 -0500
+++ sim/common/aclocal.m4 2002-12-04 23:18:08.000000000 -0500
@@ -904,7 +904,7 @@

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 @@

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
@@ -1217,7 +1218,8 @@
[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])

[-- Attachment #4: files.sh --]
[-- Type: application/octet-stream, Size: 1167 bytes --]

echo "Versions:"

dir=`echo $0 | sed -e 's/\/[^\/]*$//'`
echo $dir

libtool --version | grep \. | grep '(' | grep -v Copy 2>&1
autoconf --version | grep \. | grep '(' | grep -v Copy 2>&1
automake --version | grep \. | grep '(' | grep -v Copy 2>&1
gettext --version | grep \. | grep '(' | grep -v Copy 2>&1

update=`grep '+++' $dir/bfd.txt | sed -e 's/+++ //' -e 's/[ ].*//'`
echo; echo Resetting:
echo Removing $update
rm -f $update
cvs -z9 -q update $update

find . -name autom4te.cache | xargs rm -rf

echo; echo "Patching:"

patch -p0 < $dir/bfd.txt

cp -p /usr/share/automake-1.7/depcomp .
cp -p /usr/share/automake-1.7/missing .
cp -p /usr/share/automake-1.7/mkinstalldirs .
cp -p /usr/share/automake-1.7/ylwrap .

cp -p /usr/share/libtool/ltmain.sh .

rm -f ltcf-c.sh
rm -f ltcf-cxx.sh
rm -f ltcf-gcj.sh
rm -f ltconfig
rm -f libtool.m4

echo; echo "Configuring:"

dirs="bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils"
for i in $dirs; do
dirs=`find $i -type d`
dirs=`for j in $dirs; do if [ -f $j/configure.in ]; then echo $j; fi; done`
for j in $dirs; do
echo "Configuring $j"
autoreconf -f -I`pwd` $j
done
done

[-- Attachment #5: build.sh --]
[-- Type: application/octet-stream, Size: 246 bytes --]

#! /bin/sh

set -e

src=$1

$src/configure

dirs="bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils"
for i in $dirs; do
rm -f config.cache
(cd $i && $src/$i/configure --enable-maintainer-mode)
done

rm -f config.cache

[-- Attachment #6: Type: text/plain, Size: 1080 bytes --]

On Wednesday, November 13, 2002, at 01:32 PM, Klee Dienes wrote:

> I believe libtool-1.4.3 already has correct Darwin support, although I
> haven't done overly much testing with it.
>
> I submitted a patch to the current GDB/binutils libtool because it was
> unclear when the next libtool merge might be, because I didn't want to
> get in the way of the folks doing the autoconfiscation work, and
> because there was existing precedent (see the ChangeLog entries for
> 2002-01-27 and 2001-11-13, for example).
>
> I'm certainly willing to try to push through an upgrade of the
> GDB/binutils libtool to 1.4.3 if that's what's necessary, though; let
> me know and I'll put together a patch.
>
> On Wednesday, November 13, 2002, at 12:57 PM, Andrew Cagney wrote:
>
>> These files are part of libtool. From src/MAINTAINERS.
>>
>> Andrew
>>
>> ltconfig; ltmain.sh
>> libtool: http://gnu.org
>> Changes need to be done in tandem with the official LIBTOOL
>> sources or submitted to the master file maintainer and brought
>> in via a merge.