Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-06 10:59 FYI: gdb/common/Makefile calling aclocal & autoconf Joel Brobecker
@ 2011-03-06  7:19 ` Joel Brobecker
  2011-03-06  7:45 ` Joel Brobecker
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 15+ messages in thread
From: Joel Brobecker @ 2011-03-06  7:19 UTC (permalink / raw)
  To: gdb-patches

FYI: I haven't had a chance to look at what the problem is, but
it seems to me that the gdb/common makefile seems to be calling
aclocal and autoconf even when it doesn't need to. I noticed that
yesterday when trying to build from scratch on a machine that did
not have these tools, and I'm seeing that again today while trying
to fix today's snapshot script (again, due to an issue related
to gdb/common/).

-- 
Joel


^ permalink raw reply	[flat|nested] 15+ messages in thread

* FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-06 10:59 FYI: gdb/common/Makefile calling aclocal & autoconf Joel Brobecker
  2011-03-06  7:19 ` Joel Brobecker
@ 2011-03-06  7:45 ` Joel Brobecker
  2011-03-06 10:04 ` Jan Kratochvil
  2011-03-06 11:55 ` Mark Kettenis
  3 siblings, 0 replies; 15+ messages in thread
From: Joel Brobecker @ 2011-03-06  7:45 UTC (permalink / raw)
  To: gdb-patches

FYI: I haven't had a chance to look at what the problem is, but
it seems to me that the gdb/common makefile seems to be calling
aclocal and autoconf even when it doesn't need to. I noticed that
yesterday when trying to build from scratch on a machine that did
not have these tools, and I'm seeing that again today while trying
to fix today's snapshot script (again, due to an issue related
to gdb/common/).

-- 
Joel


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-06 10:59 FYI: gdb/common/Makefile calling aclocal & autoconf Joel Brobecker
  2011-03-06  7:19 ` Joel Brobecker
  2011-03-06  7:45 ` Joel Brobecker
@ 2011-03-06 10:04 ` Jan Kratochvil
  2011-03-07  4:39   ` Build regression: " Jan Kratochvil
  2011-03-06 11:55 ` Mark Kettenis
  3 siblings, 1 reply; 15+ messages in thread
From: Jan Kratochvil @ 2011-03-06 10:04 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches, Yao Qi

On Sun, 06 Mar 2011 05:54:12 +0100, Joel Brobecker wrote:
> FYI: I haven't had a chance to look at what the problem is, but
> it seems to me that the gdb/common makefile seems to be calling
> aclocal and autoconf even when it doesn't need to.

I have also seen it, I had to undo some unexpected configure&co. files
changes.  There is missing @MAINTAINER_MODE_TRUE@:

gdb/Makefile.in:
$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(configure_deps)
	  cd $(srcdir) && $(AUTOCONF)
gdb/common/Makefile.in:
$(srcdir)/configure: $(srcdir)/aclocal.m4
	cd $(srcdir) && $(AUTOCONF)

plus in various other autotools generated files/rules around.


Thanks,
Jan


^ permalink raw reply	[flat|nested] 15+ messages in thread

* FYI: gdb/common/Makefile calling aclocal & autoconf...
@ 2011-03-06 10:59 Joel Brobecker
  2011-03-06  7:19 ` Joel Brobecker
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Joel Brobecker @ 2011-03-06 10:59 UTC (permalink / raw)
  To: gdb-patches

FYI: I haven't had a chance to look at what the problem is, but
it seems to me that the gdb/common makefile seems to be calling
aclocal and autoconf even when it doesn't need to. I noticed that
yesterday when trying to build from scratch on a machine that did
not have these tools, and I'm seeing that again today while trying
to fix today's snapshot script (again, due to an issue related
to gdb/common/).

-- 
Joel


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-06 10:59 FYI: gdb/common/Makefile calling aclocal & autoconf Joel Brobecker
                   ` (2 preceding siblings ...)
  2011-03-06 10:04 ` Jan Kratochvil
@ 2011-03-06 11:55 ` Mark Kettenis
  2011-03-07  5:12   ` Joel Brobecker
  3 siblings, 1 reply; 15+ messages in thread
From: Mark Kettenis @ 2011-03-06 11:55 UTC (permalink / raw)
  To: brobecker; +Cc: gdb-patches

> Date: Sun, 6 Mar 2011 08:54:12 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> FYI: I haven't had a chance to look at what the problem is, but
> it seems to me that the gdb/common makefile seems to be calling
> aclocal and autoconf even when it doesn't need to. I noticed that
> yesterday when trying to build from scratch on a machine that did
> not have these tools, and I'm seeing that again today while trying
> to fix today's snapshot script (again, due to an issue related
> to gdb/common/).

The continued streem of issues with having a configure in the common/
directory makes me convinced that Ppedro is right and we should go
back to explicitly list things in the gdb and gdbserver Makefiles.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Build regression: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-06 10:04 ` Jan Kratochvil
@ 2011-03-07  4:39   ` Jan Kratochvil
  0 siblings, 0 replies; 15+ messages in thread
From: Jan Kratochvil @ 2011-03-07  4:39 UTC (permalink / raw)
  To: Yao Qi; +Cc: gdb-patches, Joel Brobecker

Hi Yao,

as you asked the Solaris build is now also broken due to (as autoconf is
usually not present there):
	Re: [rfa/rfc] Build libcommon.a for gdb and gdbserver
	http://sourceware.org/ml/gdb-patches/2011-01/msg00419.html
	commit 8c5a634bffb212fadf96c090f12551160fffca3f
	Author: qiyao <qiyao>
	Date:   Fri Feb 11 09:57:23 2011 +0000


Thanks,
Jan


On Sun, 06 Mar 2011 09:08:02 +0100, Jan Kratochvil wrote:
> I have also seen it, I had to undo some unexpected configure&co. files
> changes.  There is missing @MAINTAINER_MODE_TRUE@:
> 
> gdb/Makefile.in:
> $(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(configure_deps)
> 	  cd $(srcdir) && $(AUTOCONF)
> gdb/common/Makefile.in:
> $(srcdir)/configure: $(srcdir)/aclocal.m4
> 	cd $(srcdir) && $(AUTOCONF)
> 
> plus in various other autotools generated files/rules around.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-06 11:55 ` Mark Kettenis
@ 2011-03-07  5:12   ` Joel Brobecker
  2011-03-07  5:24     ` Jan Kratochvil
  2011-03-07  7:06     ` Yao Qi
  0 siblings, 2 replies; 15+ messages in thread
From: Joel Brobecker @ 2011-03-07  5:12 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb-patches

Yao:

> The continued streem of issues with having a configure in the common/
> directory makes me convinced that Ppedro is right and we should go
> back to explicitly list things in the gdb and gdbserver Makefiles.

I think Mark are right. We are probably on the second or third "one
last push" to make things work, and we're still not done. I'm really
sorry, but we have 3 Global Maintainers (Mark, Pedro, myself) who
think that this is the wrong way to go. We tried to perservere in
this direction despite our reservations, but it's still not working.

We've learnt a lot in the process, but I think it's time to head
in the other direction (no configure & make in common/).


Anyone strongly opposed to that move, please speak up now.
It's important, IMO, to do that soon, because we're not guarantied
that we will make everything work instantly either.  I will see if
I can produce some patches for review within a day or two (anyone
wanting to take care of that can, of course!).

-- 
Joel


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-07  5:12   ` Joel Brobecker
@ 2011-03-07  5:24     ` Jan Kratochvil
  2011-03-07 10:00       ` Joel Brobecker
  2011-03-07  7:06     ` Yao Qi
  1 sibling, 1 reply; 15+ messages in thread
From: Jan Kratochvil @ 2011-03-07  5:24 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: Mark Kettenis, gdb-patches, Yao Qi

On Mon, 07 Mar 2011 05:48:38 +0100, Joel Brobecker wrote:
> Anyone strongly opposed to that move, please speak up now.

I would be for:
	Re: Change gdb/common/ to use Automake
	http://sourceware.org/ml/gdb-patches/2011-02/msg00493.html

with a hope for gdb/Makefile.am later; but I have enough other patches to work
on myself.


Thanks,
Jan


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-07  5:12   ` Joel Brobecker
  2011-03-07  5:24     ` Jan Kratochvil
@ 2011-03-07  7:06     ` Yao Qi
  2011-03-07  9:51       ` Joel Brobecker
  2011-03-08  9:54       ` Jan Kratochvil
  1 sibling, 2 replies; 15+ messages in thread
From: Yao Qi @ 2011-03-07  7:06 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: Mark Kettenis, gdb-patches

On 03/07/2011 12:48 PM, Joel Brobecker wrote:
> I think Mark are right. We are probably on the second or third "one
> last push" to make things work, and we're still not done. I'm really
> sorry, but we have 3 Global Maintainers (Mark, Pedro, myself) who
> think that this is the wrong way to go. We tried to perservere in
> this direction despite our reservations, but it's still not working.
> 
> We've learnt a lot in the process, but I think it's time to head
> in the other direction (no configure & make in common/).

OK, I agree with this decision, given the other direction makes us more
productive on `real code', instead of configure/make stuff.

Shall I do something, for example, revert my patch, etc?

-- 
Yao (齐尧)


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-07  7:06     ` Yao Qi
@ 2011-03-07  9:51       ` Joel Brobecker
  2011-03-08  9:54       ` Jan Kratochvil
  1 sibling, 0 replies; 15+ messages in thread
From: Joel Brobecker @ 2011-03-07  9:51 UTC (permalink / raw)
  To: Yao Qi; +Cc: Mark Kettenis, gdb-patches

> Shall I do something, for example, revert my patch, etc?

If you can propose a patch that removes the configury, and adjusts
gdb/Makefile.in + gdbserver/Makefile.in, that's be awesome! I would
wait 24hours, however, to make sure we don't have a strong objection.

-- 
Joel


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-07  5:24     ` Jan Kratochvil
@ 2011-03-07 10:00       ` Joel Brobecker
  0 siblings, 0 replies; 15+ messages in thread
From: Joel Brobecker @ 2011-03-07 10:00 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: Mark Kettenis, gdb-patches, Yao Qi

> I would be for:
> 	Re: Change gdb/common/ to use Automake
> 	http://sourceware.org/ml/gdb-patches/2011-02/msg00493.html
> 
> with a hope for gdb/Makefile.am later; but I have enough other patches
> to work on myself.

I am not opposed to the experiment, but I would defer that for later,
after we have stabilized the situation (and after we've branched 7.3!).
It would also be interesting to verify that automake solves some of
the issues that we actually faced - I don't know automake much...

-- 
Joel


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-07  7:06     ` Yao Qi
  2011-03-07  9:51       ` Joel Brobecker
@ 2011-03-08  9:54       ` Jan Kratochvil
  2011-03-08 11:12         ` Yao Qi
  1 sibling, 1 reply; 15+ messages in thread
From: Jan Kratochvil @ 2011-03-08  9:54 UTC (permalink / raw)
  To: Yao Qi; +Cc: Joel Brobecker, Mark Kettenis, gdb-patches

On Mon, 07 Mar 2011 06:21:32 +0100, Yao Qi wrote:
> Shall I do something, for example, revert my patch, etc?

I would welcome temporarily to at least put those @MAINTAINER_MODE_TRUE@ at
their right places, having to undo the diff changes in every archer+gdb branch
laying around.


Thanks,
Jan


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-08  9:54       ` Jan Kratochvil
@ 2011-03-08 11:12         ` Yao Qi
  2011-03-08 18:24           ` Jan Kratochvil
  0 siblings, 1 reply; 15+ messages in thread
From: Yao Qi @ 2011-03-08 11:12 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: Joel Brobecker, Mark Kettenis, gdb-patches

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

On 03/08/2011 04:26 PM, Jan Kratochvil wrote:
> I would welcome temporarily to at least put those @MAINTAINER_MODE_TRUE@ at
> their right places, having to undo the diff changes in every archer+gdb branch
> laying around.
> 

I've sent out my revert patch, see
http://sourceware.org/ml/gdb-patches/2011-03/msg00521.html

b.t.w, I drafted a patch yesterday as this problem was reported.  I
didn't send it for review, because we decided to give up on this
direction.  If it is useful to you, please pick it up.

-- 
Yao (齐尧)

[-- Attachment #2: maintainer-mode.patch --]
[-- Type: text/x-patch, Size: 10719 bytes --]

gdb/
	* common/Makefile.in: Add @MAINTAINER_MODE_TRUE@ in some
	make targets.
	* common/configure.ac: Add AM_MAINTAINER_MODE.  Remove
	checking to AUTOHEADER, AUTOCONF, and ACLOCAL.
	* common/aclocal.m4: Regenreated.
	* common/configure: Regnerated.

diff --git a/gdb/common/Makefile.in b/gdb/common/Makefile.in
index 9230b87..410885d 100644
--- a/gdb/common/Makefile.in
+++ b/gdb/common/Makefile.in
@@ -17,9 +17,6 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 srcdir = @srcdir@
-ACLOCAL = @ACLOCAL@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
 RANLIB = @RANLIB@
 COMMON_CPU_OBJ = @COMMON_CPU_OBJ@
 
@@ -66,7 +63,8 @@ Makefile: $(srcdir)/Makefile.in config.status
 config.status: $(srcdir)/configure
 	$(SHELL) ./config.status --recheck
 
-$(srcdir)/configure: $(srcdir)/aclocal.m4
+AUTOCONF = autoconf
+$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/aclocal.m4
 	cd $(srcdir) && $(AUTOCONF)
 
 aclocal_deps = \
@@ -75,7 +73,8 @@ aclocal_deps = \
 	$(srcdir)/../../config/override.m4 \
 	$(srcdir)/configure.ac
 
-$(srcdir)/aclocal.m4: $(aclocal_deps)
+ACLOCAL = aclocal
+$(srcdir)/aclocal.m4: @MAINTAINER_MODE_TRUE@ $(aclocal_deps)
 	cd $(srcdir) && $(ACLOCAL) -I ../config
 
 config.h: stamp-h1
@@ -85,7 +84,8 @@ stamp-h1: $(srcdir)/config.in config.status
 	-rm -f stamp-h1
 	$(SHELL) ./config.status config.h
 
-$(srcdir)/config.in: $(srcdir)/configure
+AUTOHEADER = autoheader
+$(srcdir)/config.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure
 	cd $(srcdir) && $(AUTOHEADER)
 	-rm -f stamp-h1
 
diff --git a/gdb/common/aclocal.m4 b/gdb/common/aclocal.m4
index ee3ded7..a3d6cb3 100644
--- a/gdb/common/aclocal.m4
+++ b/gdb/common/aclocal.m4
@@ -47,6 +47,46 @@ AC_CONFIG_COMMANDS_PRE(
 Usually this means the macro was only invoked conditionally.]])
 fi])])
 
+# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
+# From Jim Meyering
+
+# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# AM_MAINTAINER_MODE([DEFAULT-MODE])
+# ----------------------------------
+# Control maintainer-specific portions of Makefiles.
+# Default is to disable them, unless `enable' is passed literally.
+# For symmetry, `disable' may be passed as well.  Anyway, the user
+# can override the default with the --enable/--disable switch.
+AC_DEFUN([AM_MAINTAINER_MODE],
+[m4_case(m4_default([$1], [disable]),
+       [enable], [m4_define([am_maintainer_other], [disable])],
+       [disable], [m4_define([am_maintainer_other], [enable])],
+       [m4_define([am_maintainer_other], [enable])
+        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
+AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
+  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
+  AC_ARG_ENABLE([maintainer-mode],
+[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
+			  (and sometimes confusing) to the casual installer],
+      [USE_MAINTAINER_MODE=$enableval],
+      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
+  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
+  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
+  MAINT=$MAINTAINER_MODE_TRUE
+  AC_SUBST([MAINT])dnl
+]
+)
+
+AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
+
 # Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
diff --git a/gdb/common/configure b/gdb/common/configure
index 957dcc3..9caf1a2 100755
--- a/gdb/common/configure
+++ b/gdb/common/configure
@@ -561,9 +561,6 @@ SET_MAKE
 GMAKE_FALSE
 GMAKE_TRUE
 MAKE
-AUTOHEADER
-AUTOCONF
-ACLOCAL
 RANLIB
 OBJEXT
 EXEEXT
@@ -584,6 +581,9 @@ build_os
 build_vendor
 build_cpu
 build
+MAINT
+MAINTAINER_MODE_FALSE
+MAINTAINER_MODE_TRUE
 target_alias
 host_alias
 build_alias
@@ -625,6 +625,7 @@ SHELL'
 ac_subst_files=''
 ac_user_opts='
 enable_option_checking
+enable_maintainer_mode
 enable_gdbserver
 '
       ac_precious_vars='build_alias
@@ -1248,6 +1249,8 @@ Optional Features:
   --disable-option-checking  ignore unrecognized --enable/--with options
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --enable-maintainer-mode  enable make rules and dependencies not useful
+			  (and sometimes confusing) to the casual installer
   --enable-gdbserver       build libcommon.a for gdbserver
 
 Some influential environment variables:
@@ -1728,6 +1731,29 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
+$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
+    # Check whether --enable-maintainer-mode was given.
+if test "${enable_maintainer_mode+set}" = set; then :
+  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
+else
+  USE_MAINTAINER_MODE=no
+fi
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
+$as_echo "$USE_MAINTAINER_MODE" >&6; }
+   if test $USE_MAINTAINER_MODE = yes; then
+  MAINTAINER_MODE_TRUE=
+  MAINTAINER_MODE_FALSE='#'
+else
+  MAINTAINER_MODE_TRUE='#'
+  MAINTAINER_MODE_FALSE=
+fi
+
+  MAINT=$MAINTAINER_MODE_TRUE
+
+
+
 ac_aux_dir=
 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   for ac_t in install-sh install.sh shtool; do
@@ -2722,136 +2748,6 @@ else
 fi
 
 
-for ac_prog in aclocal
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ACLOCAL"; then
-  ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ACLOCAL="$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ACLOCAL=$ac_cv_prog_ACLOCAL
-if test -n "$ACLOCAL"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
-$as_echo "$ACLOCAL" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  test -n "$ACLOCAL" && break
-done
-test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
-
-for ac_prog in autoconf
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$AUTOCONF"; then
-  ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_AUTOCONF="$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-AUTOCONF=$ac_cv_prog_AUTOCONF
-if test -n "$AUTOCONF"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
-$as_echo "$AUTOCONF" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  test -n "$AUTOCONF" && break
-done
-test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
-
-for ac_prog in autoheader
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$AUTOHEADER"; then
-  ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_AUTOHEADER="$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-AUTOHEADER=$ac_cv_prog_AUTOHEADER
-if test -n "$AUTOHEADER"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
-$as_echo "$AUTOHEADER" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  test -n "$AUTOHEADER" && break
-done
-test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
-
-
 # Check for the 'make' the user wants to use.
 for ac_prog in make
 do
@@ -3109,6 +3005,10 @@ LIBOBJS=$ac_libobjs
 LTLIBOBJS=$ac_ltlibobjs
 
 
+if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
+  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
   as_fn_error "conditional \"GMAKE\" was never defined.
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
diff --git a/gdb/common/configure.ac b/gdb/common/configure.ac
index 1ef85fe..5ea5d5f 100644
--- a/gdb/common/configure.ac
+++ b/gdb/common/configure.ac
@@ -19,6 +19,7 @@
 
 AC_PREREQ(2.59)
 AC_INIT(.)
+AM_MAINTAINER_MODE
 
 AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
@@ -27,10 +28,6 @@ AC_CANONICAL_TARGET
 AC_PROG_CC
 AC_PROG_RANLIB
 
-AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
-AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
-AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
-
 # Check for the 'make' the user wants to use.
 AC_CHECK_PROGS(MAKE, make)
 MAKE_IS_GNU=

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-08 11:12         ` Yao Qi
@ 2011-03-08 18:24           ` Jan Kratochvil
  2011-03-08 18:51             ` Mark Kettenis
  0 siblings, 1 reply; 15+ messages in thread
From: Jan Kratochvil @ 2011-03-08 18:24 UTC (permalink / raw)
  To: Yao Qi; +Cc: Joel Brobecker, Mark Kettenis, gdb-patches

On Tue, 08 Mar 2011 11:01:56 +0100, Yao Qi wrote:
> b.t.w, I drafted a patch yesterday as this problem was reported.  I
> didn't send it for review, because we decided to give up on this
> direction.  If it is useful to you, please pick it up.

> gdb/
> 	* common/Makefile.in: Add @MAINTAINER_MODE_TRUE@ in some
> 	make targets.
> 	* common/configure.ac: Add AM_MAINTAINER_MODE.  Remove
> 	checking to AUTOHEADER, AUTOCONF, and ACLOCAL.
> 	* common/aclocal.m4: Regenreated.
> 	* common/configure: Regnerated.

When the revert vs. automake etc. is not decided could this patch go in?

This patch is safe enough regarding the current state of things.

I hope someone may comment it more but otherwise tomorrow please check it in.


Thanks,
Jan


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: FYI: gdb/common/Makefile calling aclocal & autoconf...
  2011-03-08 18:24           ` Jan Kratochvil
@ 2011-03-08 18:51             ` Mark Kettenis
  0 siblings, 0 replies; 15+ messages in thread
From: Mark Kettenis @ 2011-03-08 18:51 UTC (permalink / raw)
  To: jan.kratochvil; +Cc: yao, brobecker, gdb-patches

> Date: Tue, 8 Mar 2011 19:02:37 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> 
> On Tue, 08 Mar 2011 11:01:56 +0100, Yao Qi wrote:
> > b.t.w, I drafted a patch yesterday as this problem was reported.  I
> > didn't send it for review, because we decided to give up on this
> > direction.  If it is useful to you, please pick it up.
> 
> > gdb/
> > 	* common/Makefile.in: Add @MAINTAINER_MODE_TRUE@ in some
> > 	make targets.
> > 	* common/configure.ac: Add AM_MAINTAINER_MODE.  Remove
> > 	checking to AUTOHEADER, AUTOCONF, and ACLOCAL.
> > 	* common/aclocal.m4: Regenreated.
> > 	* common/configure: Regnerated.
> 
> When the revert vs. automake etc. is not decided could this patch go in?

As far as I understand, the consensus among the global maintainers is
to revert.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-03-08 18:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-06 10:59 FYI: gdb/common/Makefile calling aclocal & autoconf Joel Brobecker
2011-03-06  7:19 ` Joel Brobecker
2011-03-06  7:45 ` Joel Brobecker
2011-03-06 10:04 ` Jan Kratochvil
2011-03-07  4:39   ` Build regression: " Jan Kratochvil
2011-03-06 11:55 ` Mark Kettenis
2011-03-07  5:12   ` Joel Brobecker
2011-03-07  5:24     ` Jan Kratochvil
2011-03-07 10:00       ` Joel Brobecker
2011-03-07  7:06     ` Yao Qi
2011-03-07  9:51       ` Joel Brobecker
2011-03-08  9:54       ` Jan Kratochvil
2011-03-08 11:12         ` Yao Qi
2011-03-08 18:24           ` Jan Kratochvil
2011-03-08 18:51             ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox