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