X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=configure.ac;h=7f592e54cd2575c62bf965d4fa09e94dd73e20b4;hb=84a046a1ad4157428b59831a32892b7978290c5f;hp=b312ce85049ab7dc5dfac4a0b92ccb1418db712b;hpb=35b5979113b95569469056e8ea9bf3f79a4ff279;p=gnushogi.git diff --git a/configure.ac b/configure.ac index b312ce8..7f592e5 100644 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT([gnushogi],[1.4.1+],[https://savannah.gnu.org/bugs/?group=gnushogi]) +AC_INIT([gnushogi],[1.4.2+],[https://savannah.gnu.org/bugs/?group=gnushogi]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([gnushogi/gnushogi.h]) AC_CONFIG_HEADER(config.h) @@ -13,6 +13,7 @@ AC_CONFIG_HEADER(config.h) ########## AC_MSG_NOTICE([C compiler]) AC_PROG_CC +AC_CANONICAL_BUILD AC_PROG_INSTALL ########## @@ -91,7 +92,6 @@ AC_CHECK_SIZEOF(long) AC_MSG_NOTICE([library functions]) AC_PROG_GCC_TRADITIONAL -AC_FUNC_MALLOC AC_TYPE_SIGNAL AC_CHECK_FUNCS([gettimeofday memset pow]) AC_CHECK_FUNCS([strchr strerror strrchr strstr strtol]) @@ -113,8 +113,15 @@ AC_SUBST([PROGNAME], [gnuminishogi]) ]) ########## + +# don't build pat2inc when cross-compiling, we don't need it +if test "$cross_compiling" = no; then + AC_SUBST([PAT2INC], [pat2inc]) + AC_SUBST([PAT2INCEXE], [pat2inc$EXEEXT]) +fi + +########## AC_CONFIG_FILES([Makefile gnushogi/Makefile - win32/config.h doc/Makefile]) AC_OUTPUT