On 14/07/2011, at 10:05 PM, Dan Kennedy wrote:

> On 07/14/2011 02:31 PM, Steve Bennett wrote:
>> Hi All,
>> 
>> I have worked with Ben Summers to resolve some small
>> issues with autosetup on Solaris (mostly related to the fact that Solaris
>> doesn't have a posix-compliant shell in /bin/sh).
>> 
>> The updates have been pushed to the autosetup repository
>> and a patch is attached here.
>> 
>> There are two additional changes:
>> 1. GNUmakefile.in is changed to remove the non-gnu := syntax
>> 2. The "no pager" modification is moved out into local.tcl so that
>>    it won't be undone by future autosetup updates.
>> 
>> Cheers,
>> Steve
> 
> I'm wondering about this, from the cc-check-function-in-lib header
> comment:
> 
>   # If additional libraries may be needed for linking, they should be
>   # specified
>   # as $extralibs as "-lotherlib1 -lotherlib2".
>   # These libraries are not automatically added to LIBS.
> 
> On Slackware (I guess other systems too) this seems to come up a lot.
> For example, you can't link the system SQLite without also explicitly
> linking libdl. And you can't link readline without also linking
> ncurses. And so on.
> 
> So how should, say, a test for readline() be written? So that -lncurses
> is added to LIBS if required?

This is modelled on the autoconf AC_SEARCH_LIBS.
I guess the assumption is that you know which additional libs may be needed.
If not, there is no alternative but to try various combinations of extra libs
until it works. The foreach approach you have used seems like a reasonable way
to do this.

PS I see the you didn't commit autosetup/local.tcl (attached)
You will want to do this to preserve drh's change to disable the pager.

Cheers,
Steve

--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au      P: +61 434 921 300
E: ste...@workware.net.au   F: +61 7 3391 6002




Attachment: local.tcl
Description: Binary data

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to