Problem building New GPC beta: gpc-971001 for DJGPP v2.1_(re)

Thu, 16 Oct 1997 00:12:49 +0100 (WET DST)


On Tue, 14 Oct 1997, Peter Gerwinski wrote:

[...]

> Obviously, the configuration stuff for DJGPP is completely broken. :-(
> 

Oops -- I hacked the autoconf stuff to add the "autopatch" stuff, and
while I generated the gpc-config.h for djgpp, I didn't adapt the djgpp
Makefiles, like the unix ones. 

> Since I am busy with other things right now, I would be really happy if
> somebody else could have a look at that.  (I am not an expert in
> configuration of C sources anyway.;-)
> 
> Normally (i.e. on UNIX), configuration is done by running a `configure'
> shell script in the `p' directory.  The `configure' script has in turn
> been produced by `autoconf' from a `configure.in' source file.  The goal
> of all this is to produce a `Makefile' from `Makefile.in' and
> `gpc-config.h' from `gpc-config.in'.

Generally speaking, this is true. However, for GPC, the Makefile is
generated by the toplevel (GCC) configure, with help from a language
specific configure fragment in the GPC dir. The (new) configure in the GPC
directory does some additional checks and writes only gpc-config.h

> 
> If you produce `Makefile' and `gpc-config.in' manually and let
> `configur.bat' copy them from `config/msdos' to the right places, it
> would be fine.  (* Jan-Jaap, is this the clean way for DJGPP
> configuration? *)
> 

I believe currently the Makefile is extracted from Makefile.in with the
help of a sed script in the config/msdos dir. This must be executed from
the toplevel configure.bat. That's how djgpp itself does it, and if GPC
follows this convention, it fits the djgpp scheme best.

> Personally, I would prefer to have `configur.bat' in the `p'
> subdirectory rather than in `config/msdos'; in fact I do not know which
> place is the "clean" one for this file according to GNU conventions.
> 

The reason it is "hidden" in config/msdos is because it's never run
directly by the end user, but by the configure.bat in the GCC toplevel
directory. It's supposed to be transparent.

I'm probably the person to fix all of this, but it may take a week or so,
because I'm busy hacking the win32 GPC right now.

JanJaap

---
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead.  -- RFC1925.


Jan-Jaap van der Heijden (janjaap@Wit381304.student.utwente.nl)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es