From: Warren <ve3wwg@gmail.com>
Subject: Re: Autoconf & gnat Help Needed
Date: Fri, 23 Apr 2010 13:44:11 +0000 (UTC)
Date: 2010-04-23T13:44:11+00:00 [thread overview]
Message-ID: <Xns9D63630CB894FWarrensBlatherings@188.40.43.245> (raw)
In-Reply-To: 82ochamzq1.fsf@stephe-leake.org
Stephen Leake expounded in news:82ochamzq1.fsf@stephe-leake.org:
> Warren <ve3wwg@gmail.com> writes:
>> Stephen Leake expounded in news:82sk6nn4vn.fsf@stephe-leake.org:
>>> Warren <ve3wwg@gmail.com> writes:
>>>
>>>> Has anyone here had experience using GNAT with autoconf/automake?
>>>
>>> My advice is to stop using the autotools, and use gprbuild instead.
>>>
>>> gprbuild knows how to build C libraries and link them with Ada. It
can
>>> also use a C main, if necessary.
>>
>> Unfortunately, there is more to this than just the build.
>> I am mostly concerned about the ./configure and the generated
>> config.h file. Autoconf is critical for wide platform support.
>
> Apparently you have source code in C as well as Ada? My sympathies :).
For a basic interpreter, making use of ncurses, libgmp, libgsl,
and PostgreSQL etc., it is unavoidable. :) I tried to avoid C++
like the plague, but ncurses requires a C++ main, if GNAT exceptions
are to work correctly. I'm not sure of the details why, but a GNAT
exception + ncurses and a C or gnat main leads to an abort.
Switching to a C++ main program has corrected that.
>> I still need to use the libtool's library libtdl (I think it was), but
>> that shouldn't be a problem.
>
> I'm not familiar with that tool; what does it do?
It's main claim to fame is to provide a uniform way of dealing
with shared libraries and dlls on a given platform. I mainly
need the libtool's library for working with dynamic library
loading in a platform neutral way, which it does very well.
I may need to create shared library components down the
road, but that is on hold for now.
>> That way I can still use make (gmake), as I have always done.
>
> I always run gprbuild from Gnu make.
As you can see from my other post yesterday, I did manage to
get things working. I posted the relevant details.
Warren
next prev parent reply other threads:[~2010-04-23 13:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 19:54 Autoconf & gnat Help Needed Warren
2010-04-21 20:31 ` Charmed Snark
2010-04-22 10:23 ` Georg Bauhaus
2010-04-22 15:19 ` Warren
2010-04-22 10:44 ` Stephen Leake
2010-04-22 15:27 ` Warren
2010-04-22 15:59 ` Warren
2010-04-23 6:48 ` Stephen Leake
2010-04-23 13:44 ` Warren [this message]
2010-04-23 18:39 ` Vadim Godunko
2010-04-23 20:13 ` Warren
2010-04-24 11:18 ` Stephen Leake
2010-04-26 15:01 ` Warren
2010-04-27 6:57 ` Alex R. Mosteo
2010-04-27 13:21 ` Warren
2010-04-23 18:41 ` Vadim Godunko
2010-04-23 20:18 ` Warren
2010-04-24 0:11 ` Ludovic Brenta
2010-04-26 15:06 ` Charmed Snark
2010-04-26 18:30 ` Robert A Duff
2010-04-24 12:54 ` Vadim Godunko
2010-04-26 15:25 ` Warren
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox