Re: autoconf.h.in and friends

From: Danilov Nikita <NikitaDanilov@dont-contact.us>
Date: Thu, 7 Dec 2000 17:30:32 +0300 (MSK)

-----BEGIN PGP SIGNED MESSAGE-----

Robert Collins writes:
> Correct me if I'm wrong, but isn't autoconf.h.in used by autoheader?
>
> Also the squid one has a bunch of comments on the #defines... if it is generated by autoheader... are those comments recreated in
> toto? I don't see the new options I've added to configure.in come across automatically.

In my experience this all is done automatically:

- --------------------------------------------------
$ cd squidng
$ mv include/autoconf.h.in include/autoconf.h.in.playing-safe
$ autoheader
configure.in:919: warning: AC_TRY_RUN called without default to allow cross compiling
configure.in:1289: warning: AC_TRY_RUN called without default to allow cross compiling
$ cmp include/autoconf.h.in include/autoconf.h.in.playing-safe
$ echo $?
0
$ tail include/autoconf.h.in
#undef HAVE_LIBMALLOC

/* Define if you have the nsl library (-lnsl). */
#undef HAVE_LIBNSL

/* Define if you have the resolv library (-lresolv). */
#undef HAVE_LIBRESOLV

/* Define if you have the socket library (-lsocket). */
#undef HAVE_LIBSOCKET
- --------------------------------------------------
This is from `info autoconf':

       `autoheader' scans `configure.in' and figures out which C
    preprocessor symbols it might define. It copies comments and `#define'
    and `#undef' statements from a file called `acconfig.h', which comes
    with and is installed with Autoconf. It also uses a file called
    `acconfig.h' in the current directory, if present. If you `AC_DEFINE'

As for new options in configure.in you have to rerun autoheader and
autoconf to sync.

>
> Rob

Nikita.

>
- --
Mail me: NikitaDanilov@Yahoo.COM Web me: http://nikita.w3.to
PGP: B4DBBD61 4B B8 7B 9D E8 66 04 69 CB BC 76 8F AB 8A 57 02
Mathematics is like checkers in being suitable for the young,
not too difficult, amusing, and without peril to the state. // Plato

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Hello, Echelon!

iQCVAwUBOi+e5QuKNXy0271hAQGphAQA7B7uXC6mqoVOCiBs7YHKQgxo8BpNfqJ/
HL8tQxBEzBTqVykeME55TV6aBP1M7jQyjJCf7pMfowsTAYYXeuMODWbELTnWk+Zd
zrfmdNRsnWt6L9wVXEmrKsA0KucmlTif19+6OuuQjTuH1sqVnWU9BpWjwr6hY0Mz
5/U0lhN69/0=
=kF5S
-----END PGP SIGNATURE-----
Received on Thu Dec 07 2000 - 07:31:00 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:02 MST