[MPlayer-dev-eng] [PATCH] fix configure check for NAS
Bernd Ernesti
mplayer-dev-eng at lists.veego.de
Sat Sep 2 18:44:48 CEST 2006
On Sat, Sep 02, 2006 at 05:52:14PM +0200, Diego Biurrun wrote:
> On Sat, Sep 02, 2006 at 05:26:17PM +0200, Bernd Ernesti wrote:
> >
> > configure doesn't find the NAS suport because of the linking order for the
> > optional math library.
>
> Thanks, applied.
Thank you. Now I need to find out why the X11 library directories are missing
while linking vidix/drivers.
>From config.mak:
EXTRA_LIB = -Wl,-z,noexecstack -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
X_LIB = -lGL -lXxf86dga -lXv -lXxf86vm -lXinerama -lXext -lX11 -lpthread -Wl,-R
NAS_LIB = -laudio -lXt -lXext -lX11 -lpthread -Wl,-R
It seems that $_ld_x11 is wrong for NetBSD.
Ah, I think I know why it fails, but have no idea how to fix it at the moment.
I use the following options for configure:
./configure --prefix=/usr/pkg --with-extraincdir=/usr/X11R6/include/freetype2:/usr/pkg/include --with-extralibdir=/usr/X11R6/lib:/usr/pkg/lib --with-win32libdir=/usr/pkg/lib/win32 --with-reallibdir=/usr/pkg/lib/RealPlayer8-Codecs --disable-inet6 --disable-ftp --disable-xvid --disable-libcdio --enable-termcap
I need the extralib pointing to /usr/X11R6/lib to find the correct freetype library,
but this will cause a problem for this configure test:
for I in $_ld_x11 "" -L/usr/X11R6/lib -L/usr/lib/X11R6 -L/usr/X11/lib \
-L/usr/lib32 -L/usr/openwin/lib -L/usr/X11R6/lib64 -L/usr/lib ; do
_ld_x11="$I -lXext -lX11 $_ld_sock $_ld_pthread"
if netbsd; then
_ld_x11="$_ld_x11 -Wl,-R`echo $I | sed s/^-L//`"
fi
cc_check $_ld_x11 && _x11=yes && break
done
Note that it first checks for an empty $_ld_x11, so the test 'works' because
the extralibdir is allready including the X11 libarary directory.
This worked at one point in the last weeks. At least at the begining of
August.
Bernd
More information about the MPlayer-dev-eng
mailing list