complex configure tests involving multiple files and possibly libtool/automake

2017-01-26 Thread Václav Haisman
Hi. I have a test that I would like to run during configure time which basically involves compiling two files and linking a shared object/DLL out of them. I think I would like to be using automake/libtool to compile and link the configure test itself. Is there a good practice or good example on ho

Re: autoconf: AC_SYS_LARGEFILE documentation misleading

2017-01-26 Thread Thorsten Glaser
Dixi quod… > On Wed, 25 Jan 2017, Eric Blake wrote: > > > I also think we can try harder to point out the need for config.h to > > appear first. How about the following counter-proposal: […] > Nice, but I think I can improve on that a bit (later, I’m almost > dropping down due to tiredness), it s

Re: autoconf: AC_SYS_LARGEFILE documentation misleading

2017-01-26 Thread Thorsten Glaser
Dixi quod… > What do you think about this? I tried several variants and ended Arrgh, forgot the attachment, sorry. bye, //mirabilos -- 15:41⎜ Somebody write a testsuite for helloworld :-)From 9676611494d6dc1bf2a87fd4e2646dc366bb1e5e Mon Sep 17 00:00:00 2001 From: mirabilos Date: Thu, 26 Jan 20

Defining data files to install

2017-01-26 Thread Julie Marchant
Hi, I'm a little confused about how to set up Autoconf to install data files for the program to use later, and I wondered if someone can clear up my confusion. For reference, the pertinent program is Project: Starfighter: http://starfighter.nongnu.org Starfighter has a few different directories

Re: Defining data files to install

2017-01-26 Thread Eric Blake
On 01/26/2017 03:22 PM, Julie Marchant wrote: > Hi, > > I'm a little confused about how to set up Autoconf to install data files > for the program to use later, and I wondered if someone can clear up my > confusion. > > For reference, the pertinent program is Project: Starfighter: > > http://sta

Re: complex configure tests involving multiple files and possibly libtool/automake

2017-01-26 Thread Eric Blake
On 01/26/2017 02:35 AM, Václav Haisman wrote: > Hi. > > I have a test that I would like to run during configure time which > basically involves compiling two files and linking a shared object/DLL > out of them. I think I would like to be using automake/libtool to > compile and link the configure t

Re: complex configure tests involving multiple files and possibly libtool/automake

2017-01-26 Thread Eric Blake
On 01/26/2017 03:42 PM, Eric Blake wrote: > > I'm not directly aware of a way to do it, but you CAN use AC_TRY_COMPILE > and then in the 'action-if-true' branch you can copy conftest.o to a > safe location, then try and figure out how to make the subsequent > AC_TRY_LINK refer back to the .o file

Re: Defining data files to install

2017-01-26 Thread Julie Marchant
On 01/26/2017 04:33 PM, Eric Blake wrote: > Automake lets you define new targets that are subdirectories. In fact, > a quick search for $(pkgdatadir) found an example that might be > pertinent to your use case: > > https://www.gnu.org/software/automake/manual/automake.html#Alternative Thanks, th

Re: complex configure tests involving multiple files and possibly libtool/automake

2017-01-26 Thread Peter Johansson
On 01/27/2017 07:42 AM, Eric Blake wrote: On 01/26/2017 02:35 AM, Václav Haisman wrote: Hi. I have a test that I would like to run during configure time which basically involves compiling two files and linking a shared object/DLL out of them. I think I would like to be using automake/libtool