On Thursday, 25 בMay 2006 09:17, Ami Chayun wrote:
> Oron, Thanks for the answer. It was indeed the mistake.
> The situation is a bit more complicated though.
> My api.h is generated from api.h.in
OK, but it does not affect the Makefile.am hierarchy or
content -- it is handled only by autoconf/autoheader
(through definitions in configure.ac) and then by configure.
> I decided to go for the following solution (in the top level Makefile.am):
> pkginclude_HEADERS = include/something.h include/api.h
> This is in order to avoid include/Makefile.am
It's not bad, but if you decided to have include/Makefile.am than
it would contain only a single line:
pkginclude_HEADERS = something.h api.h
(a single line Makefile.am)
> In the beginning of my configure.ac I have:
> AM_CONFIG_HEADER(include/api.h)
That's stays regardless of your Makefile.am layout.
> When I run ./configure && make I get errors in the spirit of:
>
> autoheader2.50: warning: missing template: SOCK_PATH
> autoheader2.50: Use AC_DEFINE([SOCK_PATH], [], [Description])
>
> If I remove include/api.h from the Makefile.am, everything works
> like a charm.
Did you forget running aclocal before autoconf/automake/autoheader?
Looks like your configure.ac reference this macro (SOCK_PATH)
and your project does not contain a local version of the macro
definition.
--
Oron Peled Voice/Fax: +972-4-8228492
[EMAIL PROTECTED] http://www.actcom.co.il/~oron
ICQ UIN: 16527398
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
-- Isaac Asimov
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]