* RFA: fix rdi-share subdir selection in configure
@ 2005-01-19 20:37 Jim Blandy
2005-01-19 20:41 ` Daniel Jacobowitz
0 siblings, 1 reply; 8+ messages in thread
From: Jim Blandy @ 2005-01-19 20:37 UTC (permalink / raw)
To: Richard.Earnshaw, Scott Bambrough; +Cc: gdb-patches
In this thread:
http://sources.redhat.com/ml/gdb-patches/2005-01/msg00038.html
the configury for the rdi-share subdirectory was disabled, because the
configure.tgt and configure.ac scripts handled it in a way which is no
longer kosher in Autoconf 2.59. The patch below changes that to work
in a 2.59-friendly way, and allows embedded arm-elf to build again.
Here's the portion of the autoconf 2.59 manual that explains how it
wants us to handle optional subdirectories:
Configuring Other Packages in Subdirectories
============================================
In most situations, calling `AC_OUTPUT' is sufficient to produce
`Makefile's in subdirectories. However, `configure' scripts that
control more than one independent package can use `AC_CONFIG_SUBDIRS'
to run `configure' scripts for other packages in subdirectories.
- Macro: AC_CONFIG_SUBDIRS (DIR ...)
Make `AC_OUTPUT' run `configure' in each subdirectory DIR in the
given whitespace-separated list. Each DIR should be a literal,
i.e., please do not use:
if test "$package_foo_enabled" = yes; then
$my_subdirs="$my_subdirs foo"
fi
AC_CONFIG_SUBDIRS($my_subdirs)
because this prevents `./configure --help=recursive' from
displaying the options of the package `foo'. Rather, you should
write:
if test "$package_foo_enabled" = yes; then
AC_CONFIG_SUBDIRS(foo)
fi
2005-01-19 Jim Blandy <jimb@redhat.com>
* configure.tgt: Set build_rdi_share to "yes" on those targets
that use that debugging protocol.
* configure.ac: If build_rdi_share is "yes", then configure the
rdi-share subdirectory.
Index: gdb/configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.3
diff -c -p -r1.3 configure.ac
*** gdb/configure.ac 16 Jan 2005 22:51:49 -0000 1.3
--- gdb/configure.ac 19 Jan 2005 20:28:16 -0000
*************** if test "x$target" = "x$host"; then
*** 1508,1513 ****
--- 1508,1518 ----
fi
fi
+ # We build rdi-share on ARM-based targets, as instructed by configure.tgt.
+ if test "x$build_rdi_share" = xyes; then
+ AC_CONFIG_SUBDIRS(rdi-share)
+ fi
+
# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
# to an empty version.
Index: gdb/configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.157
diff -c -p -r1.157 configure.tgt
*** gdb/configure.tgt 7 Jan 2005 16:22:33 -0000 1.157
--- gdb/configure.tgt 19 Jan 2005 20:28:16 -0000
*************** arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
*** 56,71 ****
arm-*-nto*) gdb_target=nto ;;
arm*-*-* | thumb*-*-* | strongarm*-*-*)
gdb_target=embed
! # FIXME: cagney/2005-01-07: The configdirs
! # variable doesn't work with autoconf 2.59.
! # Disabled.
! # configdirs="$configdirs rdi-share"
;;
xscale-*-*) gdb_target=embed
! # FIXME: cagney/2005-01-07: The configdirs
! # variable doesn't work with autoconf 2.59.
! # Disabled.
! # configdirs="$configdirs rdi-share"
;;
avr-*-*) gdb_target=avr ;;
--- 56,65 ----
arm-*-nto*) gdb_target=nto ;;
arm*-*-* | thumb*-*-* | strongarm*-*-*)
gdb_target=embed
! build_rdi_share=yes
;;
xscale-*-*) gdb_target=embed
! build_rdi_share=yes
;;
avr-*-*) gdb_target=avr ;;
*************** i[34567]86-*-linux*) gdb_target=linux
*** 96,105 ****
;;
i[34567]86-*-gnu*) gdb_target=i386gnu ;;
i[34567]86-*-netware*) gdb_target=i386
! # FIXME: cagney/2005-01-07: The configdirs
! # variable doesn't work with autoconf 2.59.
! # Disabled.
! # configdirs="${configdirs} nlm"
;;
i[34567]86-*-cygwin*) gdb_target=cygwin ;;
i[34567]86-*-*) gdb_target=i386 ;;
--- 90,96 ----
;;
i[34567]86-*-gnu*) gdb_target=i386gnu ;;
i[34567]86-*-netware*) gdb_target=i386
! build_rdi_share=yes
;;
i[34567]86-*-cygwin*) gdb_target=cygwin ;;
i[34567]86-*-*) gdb_target=i386 ;;
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: RFA: fix rdi-share subdir selection in configure
2005-01-19 20:37 RFA: fix rdi-share subdir selection in configure Jim Blandy
@ 2005-01-19 20:41 ` Daniel Jacobowitz
2005-01-19 21:41 ` Jim Blandy
2005-01-19 21:53 ` Eli Zaretskii
0 siblings, 2 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2005-01-19 20:41 UTC (permalink / raw)
To: Jim Blandy; +Cc: Richard.Earnshaw, Scott Bambrough, gdb-patches
Two problems.
On Wed, Jan 19, 2005 at 03:31:39PM -0500, Jim Blandy wrote:
> gdb_target=embed
> ! build_rdi_share=yes
My mailer says you've got the whitespace disease.
> ;;
> xscale-*-*) gdb_target=embed
> ! build_rdi_share=yes
> ;;
>
> avr-*-*) gdb_target=avr ;;
> *************** i[34567]86-*-linux*) gdb_target=linux
> *** 96,105 ****
> ;;
> i[34567]86-*-gnu*) gdb_target=i386gnu ;;
> i[34567]86-*-netware*) gdb_target=i386
> ! # FIXME: cagney/2005-01-07: The configdirs
> ! # variable doesn't work with autoconf 2.59.
> ! # Disabled.
> ! # configdirs="${configdirs} nlm"
> ;;
> i[34567]86-*-cygwin*) gdb_target=cygwin ;;
> i[34567]86-*-*) gdb_target=i386 ;;
> --- 90,96 ----
> ;;
> i[34567]86-*-gnu*) gdb_target=i386gnu ;;
> i[34567]86-*-netware*) gdb_target=i386
> ! build_rdi_share=yes
> ;;
> i[34567]86-*-cygwin*) gdb_target=cygwin ;;
> i[34567]86-*-*) gdb_target=i386 ;;
>
I don't think the netware target wants the ARM RDI protocol...
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: RFA: fix rdi-share subdir selection in configure
2005-01-19 20:41 ` Daniel Jacobowitz
@ 2005-01-19 21:41 ` Jim Blandy
2005-01-19 21:47 ` Daniel Jacobowitz
2005-01-20 4:40 ` Eli Zaretskii
2005-01-19 21:53 ` Eli Zaretskii
1 sibling, 2 replies; 8+ messages in thread
From: Jim Blandy @ 2005-01-19 21:41 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Richard.Earnshaw, Scott Bambrough, gdb-patches
Daniel Jacobowitz <drow@false.org> writes:
> Two problems.
>
> On Wed, Jan 19, 2005 at 03:31:39PM -0500, Jim Blandy wrote:
> > gdb_target=embed
> > ! build_rdi_share=yes
>
> My mailer says you've got the whitespace disease.
Hmm. I think I've fixed that. What's the rule? Just to leave what
one found unchanged, or to always use tabs, or to never use tabs?
> I don't think the netware target wants the ARM RDI protocol...
I don't see why not. It's friendly enough --- and pretty in pink.
2005-01-19 Jim Blandy <jimb@redhat.com>
* configure.tgt: Set build_rdi_share to "yes" on those targets
that use that debugging protocol.
Set build_nlm to yes to build NLM stub for Netware targets.
* configure.ac: If build_rdi_share is "yes", then configure the
rdi-share subdirectory.
If build_nlm is "yes", the configure the "nlm" subdirectory.
* configure: Regenerated.
Index: gdb/configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.157
diff -c -p -r1.157 configure.tgt
*** gdb/configure.tgt 7 Jan 2005 16:22:33 -0000 1.157
--- gdb/configure.tgt 19 Jan 2005 21:33:34 -0000
*************** arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
*** 56,71 ****
arm-*-nto*) gdb_target=nto ;;
arm*-*-* | thumb*-*-* | strongarm*-*-*)
gdb_target=embed
! # FIXME: cagney/2005-01-07: The configdirs
! # variable doesn't work with autoconf 2.59.
! # Disabled.
! # configdirs="$configdirs rdi-share"
;;
xscale-*-*) gdb_target=embed
! # FIXME: cagney/2005-01-07: The configdirs
! # variable doesn't work with autoconf 2.59.
! # Disabled.
! # configdirs="$configdirs rdi-share"
;;
avr-*-*) gdb_target=avr ;;
--- 56,65 ----
arm-*-nto*) gdb_target=nto ;;
arm*-*-* | thumb*-*-* | strongarm*-*-*)
gdb_target=embed
! build_rdi_share=yes
;;
xscale-*-*) gdb_target=embed
! build_rdi_share=yes
;;
avr-*-*) gdb_target=avr ;;
*************** i[34567]86-*-linux*) gdb_target=linux
*** 96,105 ****
;;
i[34567]86-*-gnu*) gdb_target=i386gnu ;;
i[34567]86-*-netware*) gdb_target=i386
! # FIXME: cagney/2005-01-07: The configdirs
! # variable doesn't work with autoconf 2.59.
! # Disabled.
! # configdirs="${configdirs} nlm"
;;
i[34567]86-*-cygwin*) gdb_target=cygwin ;;
i[34567]86-*-*) gdb_target=i386 ;;
--- 90,96 ----
;;
i[34567]86-*-gnu*) gdb_target=i386gnu ;;
i[34567]86-*-netware*) gdb_target=i386
! build_nlm=yes
;;
i[34567]86-*-cygwin*) gdb_target=cygwin ;;
i[34567]86-*-*) gdb_target=i386 ;;
Index: gdb/configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.3
diff -c -p -r1.3 configure.ac
*** gdb/configure.ac 16 Jan 2005 22:51:49 -0000 1.3
--- gdb/configure.ac 19 Jan 2005 21:33:34 -0000
*************** if test "x$target" = "x$host"; then
*** 1508,1513 ****
--- 1508,1524 ----
fi
fi
+ # We build rdi-share on ARM-based targets, as instructed by configure.tgt.
+ if test "x$build_rdi_share" = xyes; then
+ AC_CONFIG_SUBDIRS(rdi-share)
+ fi
+
+ # We configure the nlm subdirectory on netware targets, as instructed
+ # by configure.tgt.
+ if test "x$build_nlm" = xyes; then
+ AC_CONFIG_SUBDIRS(nlm)
+ fi
+
# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
# to an empty version.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: RFA: fix rdi-share subdir selection in configure
2005-01-19 21:41 ` Jim Blandy
@ 2005-01-19 21:47 ` Daniel Jacobowitz
2005-01-19 22:05 ` Jim Blandy
2005-01-20 4:40 ` Eli Zaretskii
1 sibling, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2005-01-19 21:47 UTC (permalink / raw)
To: Jim Blandy; +Cc: Richard.Earnshaw, Scott Bambrough, gdb-patches
On Wed, Jan 19, 2005 at 04:35:53PM -0500, Jim Blandy wrote:
>
> Daniel Jacobowitz <drow@false.org> writes:
> > Two problems.
> >
> > On Wed, Jan 19, 2005 at 03:31:39PM -0500, Jim Blandy wrote:
> > > gdb_target=embed
> > > ! build_rdi_share=yes
> >
> > My mailer says you've got the whitespace disease.
>
> Hmm. I think I've fixed that. What's the rule? Just to leave what
> one found unchanged, or to always use tabs, or to never use tabs?
I don't much care :-) I usually pick door #1.
> > I don't think the netware target wants the ARM RDI protocol...
>
> I don't see why not. It's friendly enough --- and pretty in pink.
>
> 2005-01-19 Jim Blandy <jimb@redhat.com>
>
> * configure.tgt: Set build_rdi_share to "yes" on those targets
> that use that debugging protocol.
> Set build_nlm to yes to build NLM stub for Netware targets.
> * configure.ac: If build_rdi_share is "yes", then configure the
> rdi-share subdirectory.
> If build_nlm is "yes", the configure the "nlm" subdirectory.
> * configure: Regenerated.
OK.
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RFA: fix rdi-share subdir selection in configure
2005-01-19 21:47 ` Daniel Jacobowitz
@ 2005-01-19 22:05 ` Jim Blandy
0 siblings, 0 replies; 8+ messages in thread
From: Jim Blandy @ 2005-01-19 22:05 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Richard.Earnshaw, Scott Bambrough, gdb-patches
Daniel Jacobowitz <drow@false.org> writes:
> On Wed, Jan 19, 2005 at 04:35:53PM -0500, Jim Blandy wrote:
> >
> > Daniel Jacobowitz <drow@false.org> writes:
> > > Two problems.
> > >
> > > On Wed, Jan 19, 2005 at 03:31:39PM -0500, Jim Blandy wrote:
> > > > gdb_target=embed
> > > > ! build_rdi_share=yes
> > >
> > > My mailer says you've got the whitespace disease.
> >
> > Hmm. I think I've fixed that. What's the rule? Just to leave what
> > one found unchanged, or to always use tabs, or to never use tabs?
>
> I don't much care :-) I usually pick door #1.
>
> > > I don't think the netware target wants the ARM RDI protocol...
> >
> > I don't see why not. It's friendly enough --- and pretty in pink.
> >
> > 2005-01-19 Jim Blandy <jimb@redhat.com>
> >
> > * configure.tgt: Set build_rdi_share to "yes" on those targets
> > that use that debugging protocol.
> > Set build_nlm to yes to build NLM stub for Netware targets.
> > * configure.ac: If build_rdi_share is "yes", then configure the
> > rdi-share subdirectory.
> > If build_nlm is "yes", the configure the "nlm" subdirectory.
> > * configure: Regenerated.
>
> OK.
Committed, thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RFA: fix rdi-share subdir selection in configure
2005-01-19 21:41 ` Jim Blandy
2005-01-19 21:47 ` Daniel Jacobowitz
@ 2005-01-20 4:40 ` Eli Zaretskii
1 sibling, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2005-01-20 4:40 UTC (permalink / raw)
To: Jim Blandy; +Cc: drow, Richard.Earnshaw, scottb, gdb-patches
> Cc: Richard.Earnshaw@arm.com, Scott Bambrough <scottb@netwinder.org>,
> gdb-patches@sources.redhat.com
> From: Jim Blandy <jimb@redhat.com>
> Date: 19 Jan 2005 16:35:53 -0500
>
> Daniel Jacobowitz <drow@false.org> writes:
> > Two problems.
> >
> > On Wed, Jan 19, 2005 at 03:31:39PM -0500, Jim Blandy wrote:
> > > gdb_target=embed
> > > ! build_rdi_share=yes
> >
> > My mailer says you've got the whitespace disease.
>
> Hmm. I think I've fixed that. What's the rule? Just to leave what
> one found unchanged, or to always use tabs, or to never use tabs?
I don't think it's important, as long as we don't have any mandatory
rules. It's IMHO impractical to request contributors to preserve the
whitespace convention of every file they change.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RFA: fix rdi-share subdir selection in configure
2005-01-19 20:41 ` Daniel Jacobowitz
2005-01-19 21:41 ` Jim Blandy
@ 2005-01-19 21:53 ` Eli Zaretskii
2005-01-19 22:04 ` Daniel Jacobowitz
1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2005-01-19 21:53 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: jimb, Richard.Earnshaw, scottb, gdb-patches
> Date: Wed, 19 Jan 2005 15:41:29 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Richard.Earnshaw@arm.com, Scott Bambrough <scottb@netwinder.org>,
> gdb-patches@sources.redhat.com
>
> On Wed, Jan 19, 2005 at 03:31:39PM -0500, Jim Blandy wrote:
> > gdb_target=embed
> > ! build_rdi_share=yes
>
> My mailer says you've got the whitespace disease.
??? Care to explain?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RFA: fix rdi-share subdir selection in configure
2005-01-19 21:53 ` Eli Zaretskii
@ 2005-01-19 22:04 ` Daniel Jacobowitz
0 siblings, 0 replies; 8+ messages in thread
From: Daniel Jacobowitz @ 2005-01-19 22:04 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: jimb, Richard.Earnshaw, scottb, gdb-patches
On Wed, Jan 19, 2005 at 11:48:11PM +0200, Eli Zaretskii wrote:
> > Date: Wed, 19 Jan 2005 15:41:29 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: Richard.Earnshaw@arm.com, Scott Bambrough <scottb@netwinder.org>,
> > gdb-patches@sources.redhat.com
> >
> > On Wed, Jan 19, 2005 at 03:31:39PM -0500, Jim Blandy wrote:
> > > gdb_target=embed
> > > ! build_rdi_share=yes
> >
> > My mailer says you've got the whitespace disease.
>
> ??? Care to explain?
Tab vs. space mismatch with the context. It doesn't normally show up
in a text editor, but in an appropriate mailer, it is visible because
of the leading characters "diff" adds to each line (although it won't
be visible in this reply - three layers of quotes masks it back out
again for eight-space tabs).
It looked like this in the first version:
gdb_target=embed
! build_rdi_share=yes
instead of this:
gdb_target=embed
! build_rdi_share=yes
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-01-20 4:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-19 20:37 RFA: fix rdi-share subdir selection in configure Jim Blandy
2005-01-19 20:41 ` Daniel Jacobowitz
2005-01-19 21:41 ` Jim Blandy
2005-01-19 21:47 ` Daniel Jacobowitz
2005-01-19 22:05 ` Jim Blandy
2005-01-20 4:40 ` Eli Zaretskii
2005-01-19 21:53 ` Eli Zaretskii
2005-01-19 22:04 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox