[go: up one dir, main page]

File: configure.in

package info (click to toggle)
corewars 0.9.12-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,212 kB
  • ctags: 1,062
  • sloc: ansic: 7,154; yacc: 1,376; sh: 397; makefile: 109; lex: 104; lisp: 68
file content (83 lines) | stat: -rw-r--r-- 2,639 bytes parent folder | download
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
dnl  Core Wars.
dnl  Copyright (C) 1999  Walter Hofmann
dnl
dnl  This program is free software; you can redistribute it and/or modify
dnl  it under the terms of the GNU General Public License version 2 as 
dnl  published by the Free Software Foundation.
dnl
dnl  This program is distributed in the hope that it will be useful,
dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
dnl  GNU General Public License for more details.
dnl
dnl  You should have received a copy of the GNU General Public License
dnl  along with this program; if not, write to the Free Software
dnl  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
dnl
AC_INIT(src/main.h)
AM_INIT_AUTOMAKE(corewars, 0.9.12)
AM_CONFIG_HEADER(src/config.h)

AC_PROG_MAKE_SET

dnl Checks for programs.
AC_PROG_CC
AC_PROG_AWK
AC_PROG_YACC
AM_PROG_LEX
AC_PROG_INSTALL
AC_PROG_LN_S

COREWARS=corewars
AM_PATH_GLIB(1.2.0,,COREWARS=;AC_MSG_ERROR([

   ************************************************************************
   *** GLIB >= 1.2.0 not installed - cannot build GUI client without it ***
   ************************************************************************
]))
AM_PATH_GTK(1.2.0,,COREWARS=;AC_MSG_ERROR([

   ************************************************************************
   *** GTK+ >= 1.2.0 not installed - cannot build GUI client without it ***
   ************************************************************************
]))

CFLAGS=$GTK_CFLAGS
LIBS=$GTK_LIBS

dnl Checks for libraries.

dnl Checks for header files.
AC_HEADER_DIRENT
AC_STDC_HEADERS
AC_CHECK_HEADERS(limits.h malloc.h string.h unistd.h)

dnl Check for libc >= 2.1
COREWARSCMD=
AC_CHECK_HEADERS(argp.h,COREWARSCMD=corewars-cmd,AC_MSG_WARN([

   ********************************************************************************
   *** glibc >= 2.1 not installed - cannot build command line client without it ***
   ***                        (but this is ok if you want the GTK+ client only) ***
   ********************************************************************************
]))

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_CHECK_FUNCS(strdup)
AC_CHECK_FUNCS(get_current_dir_name strdup)

dnl Select programs
AC_SUBST(COREWARS)
AC_SUBST(COREWARSCMD)

dnl if test -z "$COREWARS"; then
dnl   if test -z "$COREWARSCMD"; then
dnl     { echo "configure: error: nothing left that could be built" 1>&2; exit 1; }
dnl   fi
dnl fi

AC_OUTPUT(Makefile programs/Makefile contrib/Makefile src/Makefile)