Hello.

I'm struggling with figuring out a way to maintain my directory
structure for my header files.  I have the following structure

   file1.c ... fileN.c PackageName/ Makefile.am configure.in ...
                         |
                        file1.h ... fileN.h

I can build my code into a library and install the library correctly and
place the header files into the include directory with a Makefile.am
that resembles

  lib_LIBRARIES = libtest.a
  libtest_a_SOURCES = \
        file1.c \
        ... \
        fileN.c
  include_HEADERS = PackageName/file1.h \
                        ... \
                        PackageName/fileN.h

However, this does not maintain the directory PackageName in the
installed include directory.  For instance, if a person were to use this
library and needed to include a header file in their code, the line
would look like this:

        #include <PackageName/filei.h>

I've tried a couple different ways to use SUBDIRS to get the headers
included correctly, but I've not succeeded.  Are there any suggestions
as to how I could maintain the header file structure during the
installation?

Many thanks.

Pete
----------------------------------------------
Pete Willemsen        Department of Comp. Sci.
[EMAIL PROTECTED]       University of Iowa
----------------------------------------------

Reply via email to