mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
configure.in: X11 - try link an executable using -lX11.
[ Backported from commit 6bbd8e1686
in
ELinks 0.12.GIT on 2007-07-05, for bug 959. --KON ]
This commit is contained in:
parent
4d6df8128d
commit
2fe43f275d
10
configure.in
10
configure.in
@ -1008,16 +1008,26 @@ dnl ===================================================================
|
|||||||
|
|
||||||
AC_PATH_X
|
AC_PATH_X
|
||||||
if test x"$no_x" != xyes; then
|
if test x"$no_x" != xyes; then
|
||||||
|
EL_SAVE_FLAGS
|
||||||
if test -n "$x_includes"; then
|
if test -n "$x_includes"; then
|
||||||
X_CFLAGS="-I$x_includes"
|
X_CFLAGS="-I$x_includes"
|
||||||
CPPFLAGS="$CPPFLAGS -I$x_includes"
|
CPPFLAGS="$CPPFLAGS -I$x_includes"
|
||||||
fi
|
fi
|
||||||
|
if test -n "$x_libraries"; then
|
||||||
|
LDFLAGS="$LDFLAGS -L$x_libraries"
|
||||||
|
fi
|
||||||
|
LIBS="-lX11 $LIBS"
|
||||||
|
AC_TRY_LINK([#include <X11/Xlib.h>],[XrmInitialize()],
|
||||||
|
cf_result=yes, cf_result=no)
|
||||||
|
EL_RESTORE_FLAGS
|
||||||
|
if test "$cf_result" = yes; then
|
||||||
if test -n "$x_libraries"; then
|
if test -n "$x_libraries"; then
|
||||||
LDFLAGS="$LDFLAGS -L$x_libraries"
|
LDFLAGS="$LDFLAGS -L$x_libraries"
|
||||||
fi
|
fi
|
||||||
LIBS="-lX11 $LIBS"
|
LIBS="-lX11 $LIBS"
|
||||||
EL_DEFINE(HAVE_X11, [X11 for restoring window titles])
|
EL_DEFINE(HAVE_X11, [X11 for restoring window titles])
|
||||||
AC_SUBST(X_CFLAGS)
|
AC_SUBST(X_CFLAGS)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user