[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] neon.m4

From: Ben Collins <bcollins_at_debian.org>
Date: 2002-03-11 02:24:41 CET

On Sun, Mar 10, 2002 at 04:06:55PM -0800, Greg Stein wrote:
> On Sun, Mar 10, 2002 at 06:41:43PM -0500, Garrett Rooney wrote:
> >...
> > I don't feet stronly about this one way or the other (I mean hell,
> > it's just one little text file), but others seem to, and it doesn't
> > seem like we lose anything by just using -lneon, and we gain the
> > ability to be able to build when that file (for whatever reason) is
> > not installed.
>
> .la files provide further dependencies for the application. Thus, we *do*
> lose functionality by avoiding them.
>
> Instead, the patch should test for the .la. If it is present, then use it.
> Otherwise, set up a -L and -l pair for linking.

Actually, you don't need to special handle this. Libtool does it for
you. Passing -lneon to a libtool link line is all you need to do
(libtool will search for the .la itself).

(from libtool)

for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  # Search the libtool library
  lib="$searchdir/lib${name}.la"
  if test -f "$lib"; then
    found=yes
    break
  fi
done

Ben

-- 
 .----------=======-=-======-=========-----------=====------------=-=-----.
/       Ben Collins    --    Debian GNU/Linux    --    WatchGuard.com      \
`          bcollins@debian.org   --   Ben.Collins@watchguard.com           '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 11 02:28:40 2002

This is an archived mail posted to the Subversion Dev mailing list.