1# 2# Copyright (C) 2004-2010 Loic Dachary <loic@dachary.org> 3# Copyright (C) 2008 Bradley M. Kuhn <bkuhn@ebb.org> 4# Copyright (C) 2004-2006 Mekensleep <licensing@mekensleep.com> 5# 24 rue vieille du temple, 75004 Paris 6# 7# This program gives you software freedom; you can copy, convey, 8# propagate, redistribute and/or modify this program under the terms of 9# the GNU General Public License (GPL) as published by the Free Software 10# Foundation (FSF), either version 3 of the License, or (at your option) 11# any later version of the GPL published by the FSF. 12# 13# This program is distributed in the hope that it will be useful, but 14# WITHOUT ANY WARRANTY; without even the implied warranty of 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16# General Public License for more details. 17# 18# You should have received a copy of the GNU General Public License along 19# with this program in a file in the toplevel directory called "GPLv3". 20# If not, see <http://www.gnu.org/licenses/>. 21# 22# Authors: 23# Loic Dachary <loic@dachary.org> 24# Bradley M. Kuhn <bkuhn@ebb.org> 25 26# Process this file with autoconf to produce a configure script. 27 28AC_PREREQ(2.53) 29AC_INIT(poker-eval, 138.0) 30AC_CONFIG_AUX_DIR(config) 31AC_CANONICAL_SYSTEM 32AM_INIT_AUTOMAKE() 33AM_CONFIG_HEADER([include/config.h include/poker_config.h]) 34AC_CONFIG_SRCDIR([lib/deck.c]) 35 36# Checks for programs. 37AC_PROG_MAKE_SET 38AC_GNU_SOURCE 39AC_PROG_CC 40AC_PROG_LIBTOOL 41AC_PATH_PROG([AWK], [awk]) 42 43# Mac OS X uses md5 instead of md5sum 44AC_PATH_PROG([MD5SUM], [md5sum]) 45if test x"$MD5SUM" = x ; then 46 AC_PATH_PROG([MD5SUM], [md5]) 47fi 48 49AC_PATH_PROG([VALGRIND], [valgrind]) 50 51if test "$GCC" = "yes" ; then 52 CPPFLAGS="$CPPFLAGS -Wall -Wpointer-arith -Wstrict-prototypes" 53fi 54 55AC_EXEEXT 56AC_OBJEXT 57AC_ISC_POSIX 58AC_HEADER_STDC 59AC_C_INLINE 60 61AC_C_CONST 62AC_C_INLINE 63AC_C_BIGENDIAN 64AM_PROG_CC_C_O 65AC_CHECK_SIZEOF(long) 66AC_CHECK_HEADERS(unistd.h) 67AC_CHECK_HEADERS(sys/stat.h) 68AC_CHECK_TYPES([long long, uint64_t, int8]) 69 70AM_PATH_CCACHE 71AM_GCOV 72 73# Generate files 74AC_CONFIG_FILES([tests/run], [chmod 544 tests/run]) 75AC_CONFIG_FILES([Makefile 76 poker-eval.pc 77 poker-eval.spec 78 lib/Makefile 79 include/Makefile 80 examples/Makefile 81 tests/Makefile 82 ]) 83AC_OUTPUT 84