[cairo] config.h ?

Emmanuele Bassi ebassi at gmail.com
Wed May 19 14:50:51 UTC 2021


On Wed, 19 May 2021 at 15:46, John Emmas <john at creativepost.co.uk> wrote:

> On 19/05/2021 14:15, Emmanuele Bassi wrote:
> >
> > The `config.h` file is generated by the build system—either Autotools
> > or Meson.
> >
> > Ciao,
> >  Emmanuele.
> >
> Thanks Emmanuele,
>
> If I'm reading the makefiles correctly it looks like the top-level
> source folder should contain a file called 'config.h.in' but I'm not
> seeing that here (or does that file also get auto-generated?)
>

Yes, it's generated by the `configure` script in Autotools, just like Meson.

Basically I need to know what command(s) I'd need to execute in order to
> end up with config.h
>

If you are building Cairo with Autotools, then:

```
./configure
```

will generate a `config.h` header file in the current directory. If you are
building from Git, then I recommend using:

```
NOCONFIGURE=1 ./autogen.sh
mkdir _build && cd _build
../configure
```

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20210519/64ec87af/attachment.htm>


More information about the cairo mailing list