X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=configure.ac;h=7401f6b8890b45794904c3bb71e74b149bc45e66;hb=76d2f540a0bc0a54bbb2aba5e29d5412e7f2191c;hp=87f71b2afc316dc18ed39ec5e0eba041b9bc850e;hpb=21b2748b7e01ca15af0c2dce7102df401dc2666f;p=xboard.git diff --git a/configure.ac b/configure.ac index 87f71b2..7401f6b 100644 --- a/configure.ac +++ b/configure.ac @@ -28,7 +28,7 @@ dnl| to regenerate configure. Then submit your changes to be folded into dnl| the standard version of xboard. dnl| define second argument as VERSION.PATCHLEVEL. e.g. 4.4.0j -AC_INIT([xboard],[4.4.0.beta1],[bug-xboard@gnu.org]) +AC_INIT([xboard],[4.4.1.pre],[bug-xboard@gnu.org]) AM_INIT_AUTOMAKE AC_CONFIG_HEADERS([config.h]) @@ -93,7 +93,7 @@ AC_HEADER_TIME AC_HEADER_SYS_WAIT AC_HEADER_DIRENT AC_TYPE_SIGNAL -AC_CHECK_HEADERS(stropts.h sys/time.h string.h unistd.h sys/systeminfo.h) +AC_CHECK_HEADERS(stropts.h sys/time.h string.h unistd.h sys/systeminfo.h malloc.h) AC_CHECK_HEADERS(fcntl.h sys/fcntl.h, break) AC_CHECK_HEADERS(sys/socket.h lan/socket.h, break) AC_CHECK_HEADER(stddef.h, [], AC_DEFINE(X_WCHAR, 1)) @@ -328,14 +328,19 @@ dnl| USE_PTYS=1 CONF_CFLAGS="-fwritable-strings" fi ;; + +dnl| add some libs for OS X + *-apple-* ) + X_LIBS="$X_LIBS -lX11 -lXt" + ;; esac -AC_ARG_ENABLE(xpm, -[ --enable-xpm libXpm will be used if found (default) - --disable-xpm libXpm will not be used], -[enable_xpm="$enableval"], [enable_xpm="yes"]) +AC_ARG_ENABLE( [xpm], + [AS_HELP_STRING([--enable-xpm],[libXpm will be used if found (default)])], + [enable_xpm="$enableval"], + [enable_xpm="yes"]) -if test "$enable_xpm" = "yes"; then +if test x"$enable_xpm" != "xno"; then save_cflags="$CFLAGS" CFLAGS="$CFLAGS $X_CFLAGS" CPPFLAGS="$CPPFLAGS $X_CFLAGS" @@ -357,48 +362,68 @@ AC_SUBST(CONF_CFLAGS) AC_SUBST(CONF_LDFLAGS) AC_MSG_CHECKING(whether ptys or pipes should be used) -AC_ARG_ENABLE(ptys, -[ --enable-ptys force use of pseudo-ttys with child processes - --disable-ptys force use of pipes with child processes], +AC_ARG_ENABLE( [ptys], + [AS_HELP_STRING([--enable-ptys],[force use of pseudo-ttys with child processes])], [if test "$enableval" = yes; then USE_PTYS=1 + enable_ptys="ptys" AC_MSG_RESULT([ptys (user override)]) fi if test "$enableval" = no; then USE_PTYS=0 + enable_ptys="pipes" AC_MSG_RESULT([pipes (user override)]) fi], [if test "$USE_PTYS" = 1; then AC_MSG_RESULT(ptys) + enable_ptys="ptys" else AC_MSG_RESULT(pipes) + enable_ptys="pipes" fi]) 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, -[ --enable-zippy support interfacing a chess program to ICS (default) - --disable-zippy do not support interfacing a chess program to ICS], -[enable_zippy="$enableval"], [enable_zippy="yes"]) -if test "$enable_zippy" = yes; then +AC_ARG_ENABLE( [zippy], + [AS_HELP_STRING([--enable-zippy],[support interfacing a chess program to ICS (default)])], + [], + [enable_zippy="yes"]) + +if test x"$enable_zippy" != xno; then AC_DEFINE(ZIPPY, 1,[should zippy be enabled]) - ZIPPY_O=zippy.o - ZIPPY_H=zippy.h fi -AC_SUBST(ZIPPY_O) -AC_SUBST(ZIPPY_H) +AM_CONDITIONAL([ZIPPY], [test x$enable_zippy != xno]) + AC_ARG_ENABLE(sigint, -[ --enable-sigint sending SIGINT (^C) wakes up GNU Chess (default) - --disable-sigint typing a command wakes up GNU Chess], +[AS_HELP_STRING([--enable-sigint],[sending SIGINT (^C) wakes up GNU Chess (default)])], [if test "$enableval" = yes; then AC_DEFINE(ATTENTION, 1) -fi], -[AC_DEFINE(ATTENTION, 1)]) +fi +enable_sigint=$enableval +], +[enable_sigint="yes" +AC_DEFINE(ATTENTION, 1)]) + 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]) AC_OUTPUT + +dnl +dnl Output a summary +dnl +echo "" +echo " Configurations summary:" +echo "" +echo " prefix: $prefix" +echo "" +echo " Xaw3d: $with_xaw3d" +echo "" +echo " xpm: $enable_xpm" +echo " ptys: $enable_ptys" +echo " zippy: $enable_zippy" +echo " sigint: $enable_sigint"