Date: Mon, 24 Jul 2000 19:16:40 +0600 (LKT) From: Kalum Somaratna aka Grendel X-Sender: kalum AT roadrunner DOT grendel DOT net To: Hans-Bernhard Broeker cc: djgpp AT delorie DOT com Subject: Re: Porting software using Autoconf? Easing the pain... In-Reply-To: <8lh6h7$9pm$1@nets3.rz.RWTH-Aachen.DE> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 24 Jul 2000, Hans-Bernhard Broeker spoke the following immortal words, > Kalum Somaratna aka Grendel wrote: > > > Some functions like strdup are not available on some platforms. > > So when GNU autoconf detects that it can set a particular #define, which > > says that strdup is not on that system. Then you can supply your own > > strdup function. > > Yes. Most GNU packages do exactly that. The FSF actually maintains a > special mini library for this very purpose: a collection of stand-ins > or replacements for missing or unusable functions in the system > libc. It's called 'libiberty', for the fun of linking it by the gcc > option '-liberty'. > > You'll find 'libiberty', or parts of it, in many GNU packages, as a > subdirectory. If you program is going to be GPLed, I think you can use > libiberty in it, and avoid implementing your own. Thank's a lot Hans-Bernhard, for that tip, it will save a lot of my time. Strangely enough I have not come across this library, or more likely I have overlooked it (come to think of it I think I may have seen the -liberty option when compiling some packages, but I am not sure), anyway I'm sure a search at fsf.org would do the needful. Best Wishes, Grendel Hi, I'm a signature virus. plz set me as your signature and help me spread :)