[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional modules and libraries.

From: Bill Moseley
Subject: Re: Conditional modules and libraries.
Date: Wed, 26 Mar 2003 14:02:43 -0800 (PST)

On Wed, 26 Mar 2003, Alexandre Duret-Lutz wrote:

> [mfu2: address@hidden

Ok, although sending mail to address@hidden doesn't indicated
that I'm confirmed.[see below]

Thanks for all the references.  That helps.  And thank you very much for

BTW -- automake 1.4-p4 autoconf 2.57.

> To set per-library CPPFLAGS and LDFLAGS, use
> libswishindex_la_LDFLAGS and libswishindex_la_CPPFLAGS.  These
> are documented here.

I tried that before, and fell back to AM_CPPFLAGS.  Perhaps I'm missing
the point:

If I try:

libswishindex_la_LIBADD =  sw_expat/ $(LIBXML2_OBJS)
libswishindex_la_LDFLAGS = $(LIBXML2_LIB)
libswishindex_la_CPPFLAGS = $(LIBXML2_CFLAGS)

libswishindex_la_DEPENDENCIES = $(LIBXML2_OBJS)
EXTRA_libswishindex_la_SOURCES = parser.c parser.h

libswishindex_la_SOURCES = \
        fs.c fs.h \
        http.c http.h \

The flags are set:

~/swish-e/src$ fgrep LIBXML2_CFLAGS Makefile
LIBXML2_CFLAGS = -I/usr/include/libxml2/libxml -I/usr/include/libxml2
libswishindex_la_CPPFLAGS = $(LIBXML2_CFLAGS)

But when building the LIBXML2_CFLAGS are not passed to gcc:

gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wp,-MD,.deps/parser.pp -c parser.c
-fPIC -DPIC -o .libs/parser.lo
parser.c:67: libxml/HTMLparser.h: No such file or directory
parser.c:68: libxml/xmlerror.h: No such file or directory
parser.c:69: libxml/uri.h: No such file or directory

~/swish-e/src$ fgrep libswishindex_la_CPPFLAGS Makefile  
libswishindex_la_CPPFLAGS = $(LIBXML2_CFLAGS)

The second method of conditionals looks ok, but if I have multiple options
it might require a lot of "elses".

>  Bill> By the way, how can I force the complete rebuiding of just one
>  Bill> (convenience) library without rebuilding everything?
> You can use sub-directories to make partial cleaning easier or
> write your own clean rule.  I fail to see why you want to do
> that, though (hidden dependencies?)

If I update, then run ./bootstrap && ./configure && make the
library is not rebuilt.  I guessed that there would be dependency on the


This is the reply I get from address@hidden:

Date: Wed, 26 Mar 2003 16:24:38 -0500
From: address@hidden
To: address@hidden
Subject: The results of your email commands
   1   Shown      9 lines  Text
   2   Shown    771 bytes  Message
   2.1 Shown      6 lines  Text

The results of your email command are provided below. Attached is your
original message.

- Unprocessed:
    Bill Moseley address@hidden

- Done.

    [ Part 2: "Included Message" ]

Date: Wed, 26 Mar 2003 13:21:21 -0800 (PST)
From: Bill Moseley <address@hidden>
To: address@hidden

Bill Moseley address@hidden

Bill Moseley address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]