2011-06-14 08:16:26 -04:00
|
|
|
dnl *********************************************************************
|
|
|
|
dnl * *
|
|
|
|
dnl * Star Traders: A Game of Interstellar Trading *
|
2024-01-01 20:33:37 -05:00
|
|
|
dnl * Copyright (C) 1990-2024, John Zaitseff *
|
2011-06-14 08:16:26 -04:00
|
|
|
dnl * *
|
|
|
|
dnl *********************************************************************
|
|
|
|
dnl
|
2011-06-14 09:01:15 -04:00
|
|
|
dnl Author: John Zaitseff <J.Zaitseff@zap.org.au>
|
2024-05-25 16:05:27 -04:00
|
|
|
dnl SPDX-License-Identifier: GPL-3.0-or-later
|
2011-06-14 08:16:26 -04:00
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
dnl This file, configure.ac, contains information required by autoconf to
|
|
|
|
dnl generate the corresponding configure script.
|
|
|
|
dnl
|
|
|
|
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 as published by
|
|
|
|
dnl the Free Software Foundation, either version 3 of the License, or (at
|
|
|
|
dnl your option) any later version.
|
|
|
|
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 GNU
|
|
|
|
dnl General Public License for more details.
|
|
|
|
dnl
|
|
|
|
dnl You should have received a copy of the GNU General Public License
|
2018-03-29 21:46:37 -04:00
|
|
|
dnl along with this program. If not, see https://www.gnu.org/licenses/.
|
2011-06-14 08:16:26 -04:00
|
|
|
|
2011-06-14 08:55:48 -04:00
|
|
|
|
2024-01-30 22:26:08 -05:00
|
|
|
AC_INIT([Star Traders], [7.21], [J.Zaitseff@zap.org.au], [trader],
|
2019-11-07 04:21:34 -05:00
|
|
|
[https://www.zap.org.au/projects/trader/])
|
2011-06-23 08:43:31 -04:00
|
|
|
AC_DEFINE([PACKAGE_AUTHOR], ["John Zaitseff"], [Package author])
|
2011-06-14 08:55:48 -04:00
|
|
|
|
2022-07-31 20:01:41 -04:00
|
|
|
AC_PREREQ([2.71])
|
2024-05-20 14:36:37 -04:00
|
|
|
AC_CONFIG_MACRO_DIRS([m4])
|
2011-06-23 08:43:31 -04:00
|
|
|
AC_CONFIG_SRCDIR([src/trader.c])
|
2011-06-14 08:55:48 -04:00
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
2011-07-26 05:57:13 -04:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2024-01-01 21:00:02 -05:00
|
|
|
AM_INIT_AUTOMAKE([1.16 -Wall -Werror foreign dist-xz])
|
2017-05-19 19:06:00 -04:00
|
|
|
AM_MAINTAINER_MODE([enable])
|
2011-06-23 08:43:31 -04:00
|
|
|
AC_CONFIG_LIBOBJ_DIR([lib])
|
2011-06-14 08:55:48 -04:00
|
|
|
|
|
|
|
AC_PROG_CC
|
2022-07-31 20:01:41 -04:00
|
|
|
AS_CASE(["$ac_prog_cc_stdc"],
|
|
|
|
[c17|c11|c99], [], [
|
2011-07-28 07:19:33 -04:00
|
|
|
AC_MSG_ERROR([requires an ISO/IEC 9899:1999 (C99) compiler])
|
|
|
|
])
|
2011-07-26 07:13:12 -04:00
|
|
|
|
2011-07-23 03:19:07 -04:00
|
|
|
gl_EARLY
|
|
|
|
|
2011-06-23 08:43:31 -04:00
|
|
|
AX_CFLAGS_WARN_ALL
|
2011-06-30 02:09:13 -04:00
|
|
|
AX_C___ATTRIBUTE__
|
2011-07-22 00:19:05 -04:00
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_SSIZE_T
|
|
|
|
|
2018-07-24 07:25:37 -04:00
|
|
|
AM_GNU_GETTEXT([external], [need-ngettext])
|
2024-01-01 21:00:02 -05:00
|
|
|
AM_GNU_GETTEXT_VERSION([0.21])
|
2011-08-07 21:15:44 -04:00
|
|
|
|
2011-07-23 03:19:07 -04:00
|
|
|
gl_INIT
|
|
|
|
|
2018-08-07 19:57:25 -04:00
|
|
|
AS_IF([test "x$ac_cv_header_monetary_h" != xyes], [
|
|
|
|
AC_MSG_ERROR([requires <monetary.h> to exist in the C library])
|
|
|
|
])
|
|
|
|
|
2018-08-09 04:05:39 -04:00
|
|
|
USE_LATEST_XOPEN_SOURCE
|
|
|
|
AS_IF([test "x$x_cv_latest_xopen_source" = xunknown], [
|
|
|
|
AC_MSG_ERROR([requires X/Open SUSv4/XPG7 or SUSv3/XPG6])
|
|
|
|
])
|
|
|
|
|
2011-06-30 06:31:19 -04:00
|
|
|
AX_WITH_CURSES
|
2011-07-28 07:19:33 -04:00
|
|
|
AS_IF([test "x$ax_cv_curses" != xyes || test "x$ax_cv_curses_color" != xyes], [
|
|
|
|
AC_MSG_ERROR([requires an X/Open-compatible Curses library with colour])
|
|
|
|
])
|
2018-07-25 01:04:59 -04:00
|
|
|
AS_IF([test "x$ax_cv_curses_enhanced" = xyes], [],
|
|
|
|
[test "x$USE_NLS" = xyes], [
|
2012-03-27 20:08:38 -04:00
|
|
|
AC_MSG_WARN([no X/Open-compatible Enhanced Curses library found
|
|
|
|
|
|
|
|
***************** Locales with multibyte character sequences (such as
|
|
|
|
*** WARNING *** UTF-8) require a wide-character version of Curses,
|
|
|
|
***************** such as NcursesW, to work correctly.
|
|
|
|
])
|
|
|
|
])
|
2011-06-30 06:31:19 -04:00
|
|
|
|
2017-05-17 06:12:44 -04:00
|
|
|
AC_SUBST([desktopdir],['${datadir}/applications'])
|
2024-01-03 03:34:25 -05:00
|
|
|
AC_SUBST([metainfodir],['${datadir}/metainfo'])
|
2017-05-19 09:54:56 -04:00
|
|
|
AC_SUBST([iconsdir],['${datadir}/icons/hicolor'])
|
2017-05-17 06:12:44 -04:00
|
|
|
|
2011-06-14 08:55:48 -04:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
|
|
|
lib/Makefile
|
2011-06-23 08:43:31 -04:00
|
|
|
src/Makefile
|
2016-03-11 00:47:14 -05:00
|
|
|
data/Makefile
|
2011-06-14 08:55:48 -04:00
|
|
|
doc/Makefile
|
2011-08-01 04:17:02 -04:00
|
|
|
po/Makefile.in
|
2011-06-15 20:49:55 -04:00
|
|
|
m4/Makefile
|
2011-06-14 08:55:48 -04:00
|
|
|
])
|
2011-06-14 08:16:26 -04:00
|
|
|
AC_OUTPUT
|
2018-07-25 01:10:08 -04:00
|
|
|
|
|
|
|
AC_MSG_NOTICE([
|
|
|
|
|
2018-08-05 22:37:32 -04:00
|
|
|
Configuration summary for AC_PACKAGE_NAME AC_PACKAGE_VERSION:
|
2018-07-25 01:10:08 -04:00
|
|
|
|
|
|
|
Building for host: $host
|
2018-08-05 22:37:32 -04:00
|
|
|
Using C compiler with options: $CC $CFLAGS
|
2018-07-25 01:10:08 -04:00
|
|
|
Installation prefix: $prefix
|
|
|
|
Native Language Support enabled: $USE_NLS
|
|
|
|
Curses library selected: $ax_cv_curses_which
|
|
|
|
])
|