> > This used to work correctly, AFAICT, under mingw (and I think cygwin
> > too) so I suspect we have broken something. However, as you note, it
> > *seems* to be fine on Linux and OSX, so my be some 
> interaction with the
> > configure tools on win32?
> No I don't think it worked correctly before too because as I 
> said, the libjpeg has the same problem here when in auto 
> mode, meaning that auto mode leads to system lib even when no 
> system lib is present.
> And we didn't change the libjpeg code from a iota ...

Odd - that is not what I find. On this box, if I "move aside" my system
jpeg libs and then configure like this, so that we should "auto-detect"
the built-in jpeg lib:


$ ./configure --enable-threads CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib --disable-localpng


Then I get this result:



Configuration Summary
------------------------------------------------------------------------
-
    Directories: prefix=/usr/local
                 bindir=${exec_prefix}/bin
                 datadir=${prefix}/share
                 datarootdir=
                 exec_prefix=${prefix}
                 includedir=${prefix}/include
                 libdir=${exec_prefix}/lib
                 mandir=${prefix}/man
       Graphics: GDI
Image Libraries: JPEG=Builtin
                 PNG=System
                 ZLIB=System
    Large Files: YES
         OpenGL: YES
        Threads: YES


Which *has* correctly selected the built-in libjpeg...

And fltk-config returns:

$ ./fltk-config --use-images --ldflags
-L./lib -mwindows -L/usr/local/lib -mno-cygwin -lfltk_images -lpng -lz
-lfltk_jpeg -lfltk -lole32 -luuid -lcomctl32

Which again seems to be using the built-in lib. (And the built-in
libjpeg dies get built when I make the fltk library, too.)

So, at least in this case, it seems that configure has done the correct
thing, on this mingw setup.

(Of course, as Albrecht points out, the whole cygwin thing is
potentially *much* more complicated... That's part of why I don't use
cygwin any more!)


> It will only fix PNG lib to demonstrate the principle of the 
> changed configure.in code, then it will apply to libjpeg and libz.
> 
> Any thoughts ?

Sounds like a good idea.




SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to