2 # Empire - A multi-player, client/server Internet based war game.
3 # Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
4 # Ken Stevens, Steve McClure
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 # See files README, COPYING and CREDITS in the root of the source
23 # tree for related information and legal notices. It is expected
24 # that future projects/authors will amend these files as needed.
28 # configure.ac: Autoconf input file
30 # Known contributors to this file:
31 # Markus Armbruster, 2005-2009
33 # Process this file with autoconf to produce a configure script.
35 # Autoconf makes checking for and programming around assorted ancient
36 # crap relatively painless. But why bother? Just rely on C89 and
37 # POSIX, and when something breaks on some oddball machine, see
38 # whether it's worth fixing.
41 AC_INIT([Empire Client], [4.3.23], [wolfpack@wolfpackempire.com])
42 AC_CONFIG_SRCDIR([empire.6])
43 AC_CONFIG_HEADERS([config.h])
46 ### Checks for programs.
50 # Not a program, but need to check this early
54 ### Checks for libraries.
55 LIBS="$LIBS_SOCKETS $LIBS"
57 if test "$Windows_API" = yes; then
58 AC_LIBOBJ([w32/w32io])
59 AC_LIBOBJ([w32/w32sockets])
63 ### Checks for header files.
66 ### Checks for typedefs, structures, and compiler characteristics.
68 if test "$Windows_API" = yes; then
69 CPPFLAGS="$CPPFLAGS -Iw32"
70 CFLAGS="$CFLAGS -mthreads"
74 ### Checks for library functions.
76 AC_CHECK_FUNCS(getaddrinfo getpass)
79 ### Site configuration
81 AC_ARG_VAR([EMPIREHOST], [Default host [blitz.wolfpackempire.com]])
82 test "$EMPIREHOST" || EMPIREHOST=blitz.wolfpackempire.com
84 AC_ARG_VAR([EMPIREPORT], [Default port [6789]])
85 test "$EMPIREPORT" || EMPIREPORT=6789
91 AC_CONFIG_FILES([Makefile ipglob.c])
95 AC_MSG_NOTICE([-= Configuration summary =-])
96 AC_MSG_NOTICE([ terminfo: $with_terminfo])
97 AC_MSG_NOTICE([ EMPIREHOST: $EMPIREHOST])
98 AC_MSG_NOTICE([ EMPIREPORT: $EMPIREPORT])