[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
automake and dist data
From: |
dagecko |
Subject: |
automake and dist data |
Date: |
Tue, 10 Feb 2009 19:06:01 +0100 (CET) |
Hello,
I hope someone here will be able to help me.
I'm developping a middle-scale library that uses autoconf and automake. This
library comes
along with some demo and test programs. Those demo and test programs now
require some
input files in order to run. Those input files also have to be distributed with
the
package. I actually tried to put those input data files into the header
directory and
I also wondered if I could put them into the share subdirectory.
The problem I'm facing is this one:
The test programs will have to read those data, but I actually can't know where
those
input data are stored (it is top_srcdir/include) but it is somewhat impossible
from
what I know to give that directory to C/C++ file functions.
Of course, I can code that in the hard way. But that will work as long as the
project
is not installed. But once installed (on any uknown machine), I really can't
know
where to find those input files. If they are installed in the include
subdirectory,
then I can have a look at /usr/include, or it might be /usr/local/include, or
whatever directory a final user would have put to configure. It is the same
thing if
I put those data in the share subdirectory.
Does anyone has an advice, a hint, or a solution for me ?
Thanks
- automake and dist data,
dagecko <=