be achieved with the GNU autoconf/automake
/libtool/make/gcc toolchain?
many thanks in advance...
-allen
Apologies if this is a FAQ: I've searched the mailing list and other
standard places but not found the answer.
I am working on a project which is 'stock' autoconf/automake but with one
twist. There is a single routine (that lives by itself in dhrystone.C)
which must ALWAYS be compiled to an object
Alexandre,
> bin_PROGRAMS = foo
> foo_SOURCES = bar.c bar.h main.c
> foo_CFLAGS = -some -flags
> foo_LDADD = libfoo.a
> noinst_LIBRARIES = libfoo.a
> libfoo_a_SOURCES = foo.c foo.h
> libfoo_a_CFLAGS = -some -other -flags
Well, like all 'good answers' this one is
Alexandre,
this comes *really* close to working. Problem is that in the Makefile one
ends up with:
$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES)
$(libboincbenchmark_a_CPPFLAGS) $(CPPFLAGS) $(libboincbenchmark_a_CXXFLAGS)
$(CXXFLAGS)
Notice (g!!) that user's $(CXXFLAGS) is *last*. So I c
Hi,
I have two libraries liba and libb. I would like liba to call a
function in libb but libb is linked with liba. So I have a circular
dependency. Normally this is not a problem because the linker doesn't
try to resolve dependencies when linking libraries.
But here's the problem: liba uses libto
Hey,
I have a package that uses AC and checks for a lib but the package
also has it's own implementation of that lib. I have the said lib
installed on the system but I want autoconf to fail that check and
used the one provided in the package.
So is there a way to tell a specific check to fail?
M
Nuts.
On 10/20/07, Bob Friesenhahn <[EMAIL PROTECTED]> wrote:
> My best advice is to change the design of your libraries to avoid the
> circular dependencies.
On 10/20/07, Andreas Schwab <[EMAIL PROTECTED]> wrote:
> > So is there a way to tell a specific check to fail?
>
> You can preset the cache variable before running configure.
Excellent!
So how to do I preset a cache variable before running configure?
Mike
On 10/20/07, Andreas Schwab <[EMAIL PROTECTED]> wrote:
> "Michael B Allen" <[EMAIL PROTECTED]> writes:
>
> > So how to do I preset a cache variable before running configure?
>
> You can put it in the environment, or use config.site. See
> (autoconf)Site
On 10/20/07, Ben Pfaff <[EMAIL PROTECTED]> wrote:
> "Michael B Allen" <[EMAIL PROTECTED]> writes:
>
> > But here's the problem: liba uses libtool / automake and builds a
> > number of test programs not just by configure but by liba's test suite
&g
10 matches
Mail list logo