X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=configure.ac;h=34a68ee09bd050e653d33ed514251a3f9092fac5;hb=8baea05c6e9e63f8b1b57891b67b5ac0e1961b81;hp=981f05878baf3979d30e9d90f3959d9ab909286e;hpb=50439f8be999b82243f850c952c0557f2a57bf58;p=xboard.git diff --git a/configure.ac b/configure.ac index 981f058..34a68ee 100644 --- a/configure.ac +++ b/configure.ac @@ -147,11 +147,6 @@ AC_ARG_WITH([Xaw], [with_Xaw=yes], [with_Xaw=no]) -dnl | make results available in Makefile.am -AM_CONDITIONAL([withGTK], [test x"$with_GTK" = x"yes"]) -AM_CONDITIONAL([withXaw], [test x"$with_Xaw3d" = x"yes"]) -AM_CONDITIONAL([withXaw], [test x"$with_Xaw" = x"yes"]) - dnl | check for libraries if test x"$with_GTK" = x"yes" ; then PKG_CHECK_MODULES([GTK], [ gtk+-2.0 >= 2.16.0 gmodule-2.0 ]) @@ -191,8 +186,9 @@ dnl | check availability of Xaw3d [AC_MSG_ERROR([--with-Xaw3d was given, but test for Xaw3d failed. Make sure that you have Xaw3d installed, else you might want to try the configure option --without-Xaw3d])], [-lXaw])]) -dnl | no Xaw3d, check for Xaw +dnl | no Xaw3d, check for Xaw; make it the default if test x"$with_Xaw3d" = x"no" ; then + with_Xaw=yes save_cflags="$CFLAGS" save_cppflags="$CPPFLAGS" CFLAGS="$CFLAGS $X_CFLAGS" @@ -210,6 +206,12 @@ dnl | no Xaw3d, check for Xaw fi +dnl | make results available in Makefile.am +AM_CONDITIONAL([withGTK], [test x"$with_GTK" = x"yes"]) +AM_CONDITIONAL([withXaw], [test x"$with_Xaw3d" = x"yes"]) +AM_CONDITIONAL([withXaw], [test x"$with_Xaw" = x"yes"]) + + AC_SUBST(FRONTEND_CFLAGS) AC_SUBST(FRONTEND_LIBS) @@ -446,14 +448,15 @@ AC_DEFINE_UNQUOTED(USE_PTYS, $USE_PTYS) dnl | define not to build zippy as a default, so that autoheader is happy -AC_DEFINE(ZIPPY, 0,[should zippy be enabled]) AC_ARG_ENABLE( [zippy], [AS_HELP_STRING([--enable-zippy],[support interfacing a chess program to ICS (default)])], [], - [enable_zippy="yes"]) + [enable_zippy="no"]) if test x"$enable_zippy" != xno; then AC_DEFINE(ZIPPY, 1,[should zippy be enabled]) +else + AC_DEFINE(ZIPPY, 0,[should zippy be enabled]) fi AM_CONDITIONAL([ZIPPY], [test x$enable_zippy != xno]) @@ -469,11 +472,13 @@ enable_sigint=$enableval AC_DEFINE(ATTENTION, 1)]) +if test x"$with_Xaw3d" = x"yes" -o x"$with_Xaw" = x"yes" ; then 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) +fi dnl | should we install desktop icons and mime associations? AC_ARG_ENABLE( [update-mimedb],