On Tue, 21 Sep 2010, Andreas Tscharner wrote: > > if (strlcat is in libc) > > define HAVE_STRLCAT > > else if (strlcat is in libbsd) > > define HAVE_STRLCAT > > define HAVE_LIBBSD > > add -lbsd to LIBS (wutil libs) > > else > > just move along > > > > and likewise for strlcpy (or, up to you, we could just assume > > whereever there's strlcat, there's also strlcpy, and only check for > > one of them). > > > > anyone likes a nice challenge? :) > > What about AC_CHECK_LIB? As far as I can see, it looks like you could use it > and it does by default what you need. > For detailed information see here: > http://www.gnu.org/software/hello/manual/autoconf/Libraries.html
yep, theoretically i know, practically i couldn't ;) i tried. what i was unable to describe the autoconf way is that in the `strlcat is in libbsd' case there are two actions to take, define both HAVE_STRLCAT and HAVE_LIBBSD (the libs addition could probably be shoved in later). -- [-] mkdir /nonexistent -- To unsubscribe, send mail to [email protected].
