Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: (PR#4130) Compile problems on Solaris 9
Home

[Freeciv-Dev] Re: (PR#4130) Compile problems on Solaris 9

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: paul@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4130) Compile problems on Solaris 9
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 May 2003 08:28:56 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Sun, May 18, 2003 at 12:45:58PM -0700, Jason Short wrote:
> Mike Kaufman wrote:
> 
> Two possible problems:
> 
> 1.  If libm isn't present at all, you'll be told that you need libpng.
> 2.  If libm isn't needed, you'll link against it unnecessarily.
> 
> The only really bad situation would be where #1 and #2 were both true: 
> i.e., on platforms that don't use libm at all.  Is this ever the case? 
> Who is familiar with libpng?

it's possible that on older versions of png, they didn't need libm. I can't
think of any system nowadays (or even years ago) that doesn't possess a
math library.

> The patch is at least better than the current situation, which we *know* 
> fails sometime.  So if we can't do any better it should go in.

well, it depends on how correct you want to be:

1. check for libm
2. check for libpng without libm
3. if works, yay, if not, check for libpng with libm only if libm was found.

will you write this up?

-mike



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