public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: 好 <swdtian@163.com>, gdb@sourceware.org
Subject: Re: 【question】steps to regenerate configure file
Date: Sun, 10 Jul 2022 15:47:30 -0400	[thread overview]
Message-ID: <64c4f8cb-993e-b32a-a918-af7ea05db912@simark.ca> (raw)
In-Reply-To: <27d7ad72.adff.181dd6354bf.Coremail.swdtian@163.com>



On 2022-07-08 06:38, 好 via Gdb wrote:
> Hi ,
> 
> 
> I want to modify some code of gdb, so I have to regenerate the configure file, but I didn't find the relevant documentation, I'm not sure which version of autogen to use? 
> This is a bit confusing for newbies like me.
> I am going to regenerate the configuration as follows:
> ```
> 
> autogen Makefile.def
> 
> autogen Makefile.tpl
> 
> aclocal
> 
> autoheader
> 
> autoconf
> 
> ./configure
> 
> make
> ```
> 
> 
> When I type the command    ```autogen Makefile.def```      the following error will appear,     is my step wrong?

So, we're talking about top-level files here.  I just tried with:

  $ autogen --version
autogen (GNU AutoGen) 5.18.16

This:

  $ autogen Makefile.def

re-generates Makefile.in exactly as the version checked in the repo.

If you need to modify the configure files in gdbsupport, gdbserver and
gdb, I suggest using autoreconf, that will call all the right tools.
However, you must use the right version (2.69, at the moment) and use
the upstream version of autoconf/automake, not those packaged in
distros.  Those often contain patches that modify the output, so you'll
get different results that don't match what is checked in the repo.

For example, in the gdb/ directory, I run:

  $ autoreconf -f

Simon

      reply	other threads:[~2022-07-10 19:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-08 10:38 
2022-07-10 19:47 ` Simon Marchi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=64c4f8cb-993e-b32a-a918-af7ea05db912@simark.ca \
    --to=simark@simark.ca \
    --cc=gdb@sourceware.org \
    --cc=swdtian@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).