>>>>> "David" == David Petrou <[EMAIL PROTECTED]> writes:
David> include_HEADERS = pdl_config.h
David> This seems to imply that config.h should _not_ be distributed,
David> like I'm doing above. What's wrong with what I'm doing? If
David> it's really so bad, how do I get around the problem that users
David> of my library need things defined by configure?
`includedir' is for system-independent headers. See the GNU coding
standards.
These days most people write a little `*-config' script (see, eg,
gnome-config) which prints info required by a package.
Or you could try to find a system-dependent place to install the
header.
Or you could just ignore the problem, but I advise against that.
David> So, question #2: what's a good way to set the name and version
David> of my software if I can't do it through AM_INIT_AUTOMAKE? How
David> much will life suck if I make up new defines called
David> PDL_VERSION, PDL_PACKAGE and not update the package and version
David> information in AM_INIT_AUTOMAKE?
If you do this then `make dist' won't work.
Instead put this in configure.in:
AM_INIT_AUTOMAKE(..., no-define)
AC_DEFINE_UNQUOTED(PDL_VERSION, "$VERSION")
AC_DEFINE_UNQUOTED(PDL_PACKAGE, "$PACKAGE")
Then you still only have to update in one place.
Tom