On Thu, Jul 11, 2002 at 08:54:35AM -0500, Beatriz Silva wrote:
> I am sorry if this is a basic question but I wanted to find the file
> config.h but I could not. I understood that it is 'generated
> automatically by configure' but I do not know what it means.
> I have found:
> config.h.in
> config.h.win32
> config.nmake
>
> Can somebody explain what does it mean ?
It means that it's generated when you run the configure script.
If you have downloaded Ethereal source, and are building it on a
UNIX-flavored system, you *MUST* run "./configure" in the top-level
directory before compiling.
The configure script generates "config.h". The contents of "config.h"
depend on what the configure script discovers about your machine; it is
*NOT* the same for all machines.
> Where can I find the plain config.h ?
You can find the config.h that would be appropriate for a particular
machine after having run the configure script on that machine.
Note that if you have configured and built Ethereal on one machine, and
you plan to use the same source tree (if, for example, it's stored on an
file server mounted by more than one machine), you should do "make
distclean" before running "configure" on another machine, so that the
configure script doesn't remember what it discovered on the first
machine, as what it found to be true on that machine might *not* be true
on the second machine.
If you are building on Windows with Microsoft Visual C++, the
"Makefile.nmake" file should cause "config.h" to be copied from
"config.h.win32"; "config.h.win32" contains values valid for MSVC++ on
Windows (but many of the values in it are *NOT* valid for UNIX systems,
so do *NOT* use it when building on UNIX).