lists.c lists.h \
moves.c moves.h \
parser.l parser.h \
- pgntags.c \
+ pgntags.c \
uci.c \
xboard.c xboard.h \
xedittags.c xedittags.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 \
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!
dnl| add some libs for OS X
*-apple-* )
- X_LIBS="$X_LIBS -lXmu -lX11 -lXt "
;;
esac
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])