From: Arun Persaud Date: Wed, 25 Nov 2009 05:09:30 +0000 (-0800) Subject: fix for bug #28077: xboard needs to link against x11 X-Git-Tag: hgm-4.20100107~31 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=04886e8f191744d287b126d97cf198694ffab97d;p=xboard.git fix for bug #28077: xboard needs to link against x11 hopefully fixed automake to take care of this --- diff --git a/Makefile.am b/Makefile.am index d973700..49e7e15 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,7 +16,7 @@ xboard_SOURCES = backend.c backend.h backendz.h \ lists.c lists.h \ moves.c moves.h \ parser.l parser.h \ - pgntags.c \ + pgntags.c \ uci.c \ xboard.c xboard.h args.h \ xedittags.c xedittags.h \ @@ -26,7 +26,7 @@ xboard_SOURCES = backend.c backend.h backendz.h \ xhistory.c xhistory.h \ xoptions.c \ $(ZPY) -xboard_LDADD = -lm @X_PRE_LIBS@ @XAW_LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ +xboard_LDADD = -lm @XAW_LIBS@ @X_LIBS@ EXTRA_DIST = pixmaps bitmaps winboard\ xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man \ diff --git a/configure.ac b/configure.ac index fb0d991..533ccfd 100644 --- a/configure.ac +++ b/configure.ac @@ -107,6 +107,8 @@ AC_CHECK_FUNC(setlocale, [], AC_CHECK_LIB(seq, getpseudotty) + +dnl | check for X-libraries AC_PATH_XTRA if test -n "$no_x" ; then echo $PACKAGE requires the X Window System header files and libraries! @@ -331,7 +333,6 @@ dnl| USE_PTYS=1 dnl| add some libs for OS X *-apple-* ) - X_LIBS="$X_LIBS -lXmu -lX11 -lXt " ;; esac @@ -408,6 +409,13 @@ enable_sigint=$enableval AC_DEFINE(ATTENTION, 1)]) +dnl | save all information for X in X_LIBS, also add the libraries themself +dnl | since AC_PATH_XTRA only adds the paths +X_LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lXmu -lX11 -lXt " +AC_SUBST(X_CFLAGS) +AC_SUBST(X_LIBS) + + AC_CONFIG_FILES([Makefile cmail]) AC_CONFIG_COMMANDS([test-stamp-h],[test -z "$CONFIG_HEADERS" || date > stamp-h]) AC_CONFIG_COMMANDS([chmod-cmail],[chmod 755 cmail])