On Fri, Apr 28, 2006 at 10:16:56AM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes:
> 
> Enrico> Strictly speaking, the LDFLAGS thing is a quick hack in order
> Enrico> to have configure test for Qt succeeding, otherwise libtool is
> Enrico> able to figure out what libraries are needed from libqt.la.
> 
> Looks like we need a version of AC_CHECK_LIB that uses libtool instead
> of CC to link, like GGI_CHECK_LIB here:
> http://cvs.sourceforge.net/viewcvs.py/*checkout*/ggi/tools/buildframework/m4/check4libggi.m4?rev=1.7
> 
> Of course, we should find a more generic one or do our own LYX_CHECK_LIB.
> 
> Does Qt always have .la files for the cases that interest us? Does it
> mean that we could do without the check for X11?
> 
> What does libqt-mt.la look like for mingw? cygwin? mac osx?

I attach here the .la files I get when compiling Qt for cygwin.
The one tagged 'cygwin-' is relative to -platform cygwin-g++-win32,
while the one tagged 'x11-' to -platform cygwin-g++.

I don't obtain an .la file when compiling Qt for mingw, but my
"compiler" (ie, g++ -mno-cygwin) leaves in the lib directory a
.prl file containing that info. This is the one tagged 'mingw-'.

-- 
Enrico
# libqt.la - a libtool library file
# Generated by qmake/libtool (1.07a) (Qt 3.3.5) on: Sat Apr  8 21:19:04 2006

# The name that we can dlopen(3).
dlname=''


# Names of this library.
library_names=''

# The name of the static archive.
old_library='libqt.a'

# Libraries that this one depends upon.
dependency_libs=' -lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32 
-lole32 -loleaut32 -luuid -limm32 -lwinmm -lwsock32 -lwinspool -lopengl32 '

# Version information for libqt.la
current=30
age=0
revision=0

# Is this an already installed library.
installed=yes

# Files to dlopen/dlpreopen.
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/local/qt-cygwin/lib'
# libqt.la - a libtool library file
# Generated by qmake/libtool (1.07a) (Qt 3.3.5) on: Fri Mar 10 01:20:05 2006

# The name that we can dlopen(3).
dlname=''


# Names of this library.
library_names=''

# The name of the static archive.
old_library='libqt.a'

# Libraries that this one depends upon.
dependency_libs='-L/usr/X11R6/lib -lXrender -lXrandr -lXcursor -lXft -lfreetype 
-lfontconfig -lXext -lX11 '

# Version information for libqt.la
current=30
age=0
revision=0

# Is this an already installed library.
installed=yes

# Files to dlopen/dlpreopen.
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/local/qt-x11/lib'
QMAKE_PRL_BUILD_DIR = C:/cygwin/usr/local/src/qt-3/src
QMAKE_PRO_INPUT = C:\cygwin\usr\local\src\qt-3\src\qt.pro
QMAKE_PRL_TARGET = libqt
QMAKE_PRL_DEFINES = QT_ACCESSIBILITY_SUPPORT QT_NO_DEBUG
QMAKE_PRL_CONFIG = qt warn_on release link_prl static release stl rtti 
enterprise nocrosscompiler stl rtti warn_off create_prl link_prl minimal-config 
small-config medium-config large-config full-config release staticlib 
no-exceptions no-incremental no-thread no-largefile no-gif no-tablet zlib 
no-opengl sound precompile_header bigcodecs styles tools kernel widgets dialogs 
iconview workspace canvas table xml accessibility sound png mng jpeg png jpeg 
mng qt warn_on depend_includepath qmake_cache staticlib zlib staticlib windows 
moc
QMAKE_PRL_VERSION = 3
QMAKE_PRL_LIBS = -lkernel32 -luser32 -lgdi32 -lcomdlg32 -ladvapi32 -lshell32 
-lole32 -loleaut32 -luuid -limm32 -lwinmm -lwsock32 -lwinspool 

Reply via email to