]> sjero.net Git - linphone/commitdiff
fix missing X11 library in some cases
authorSimon Morlat <simon.morlat@linphone.org>
Tue, 8 Feb 2011 09:09:40 +0000 (10:09 +0100)
committerSimon Morlat <simon.morlat@linphone.org>
Tue, 8 Feb 2011 09:09:40 +0000 (10:09 +0100)
configure.ac
console/Makefile.am

index 3e0eefcc9e22259abfdc2e789e2a5e6c5a4020ca..2d43692ce8fdfcd9e48fef03a0f3b991a84d9305 100644 (file)
@@ -298,7 +298,9 @@ AC_ARG_ENABLE(x11,
 if test "$video" = "true"; then
        
        if test "$enable_x11" = "true"; then
-          AC_CHECK_HEADERS(X11/Xlib.h)
+               AC_CHECK_HEADERS(X11/Xlib.h)
+               AC_CHECK_LIB(X11,XUnmapWindow, X11_LIBS="-lX11")
+               AC_SUBST(X11_LIBS)
        fi
        AC_DEFINE(VIDEO_ENABLED,1,[defined if video support is available])
 fi
index 4ae2c794751de551b4d588f184e3e8936605ec9f..bbc310967e43b6b0090968975514ad26ef20de48 100644 (file)
@@ -23,7 +23,8 @@ linphonec_LDADD = $(top_builddir)/coreapi/liblinphone.la $(READLINE_LIBS)  \
                $(MEDIASTREAMER_LIBS) \
                $(ORTP_LIBS) \
                $(SPEEX_LIBS) \
-               $(OSIP_LIBS)
+               $(OSIP_LIBS) \
+               $(X11_LIBS)
 
 if BUILD_WIN32
 #special build of linphonec to detach from the windows console