Annotation of freem/configure.ac, revision 1.12
1.1 snw 1: #
1.12 ! snw 2: # $Id: configure.ac,v 1.11 2025/03/27 03:31:16 snw Exp $
1.1 snw 3: # autoconf rules for FreeM
4: #
5: #
1.4 snw 6: # Author: Serena Willis <jpw@coherent-logic.com>
1.1 snw 7: # Copyright (C) 1998 MUG Deutschland
1.5 snw 8: # Copyright (C) 2020, 2025 Coherent Logic Development LLC
1.1 snw 9: #
10: #
11: # This file is part of FreeM.
12: #
13: # FreeM is free software: you can redistribute it and/or modify
14: # it under the terms of the GNU Affero Public License as published by
15: # the Free Software Foundation, either version 3 of the License, or
16: # (at your option) any later version.
17: #
18: # FreeM is distributed in the hope that it will be useful,
19: # but WITHOUT ANY WARRANTY; without even the implied warranty of
20: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21: # GNU Affero Public License for more details.
22: #
23: # You should have received a copy of the GNU Affero Public License
24: # along with FreeM. If not, see <https://www.gnu.org/licenses/>.
25: #
1.6 snw 26: # $Log: configure.ac,v $
1.12 ! snw 27: # Revision 1.11 2025/03/27 03:31:16 snw
! 28: # Prepare for release of FreeM cvs-current
! 29: #
1.11 snw 30: # Revision 1.10 2025/03/23 19:42:18 snw
1.12 ! snw 31: # Back to cvs-current versioning for continued development work
1.11 snw 32: #
1.10 snw 33: # Revision 1.9 2025/03/23 04:42:33 snw
1.12 ! snw 34: # Prepare for release of FreeM cvs-current
1.10 snw 35: #
1.9 snw 36: # Revision 1.8 2025/03/16 16:08:26 snw
1.12 ! snw 37: # Back on cvs-current versioning for continued development
1.9 snw 38: #
1.8 snw 39: # Revision 1.7 2025/03/15 03:19:33 snw
1.12 ! snw 40: # Fix broken build and update to cvs-current
1.8 snw 41: #
1.7 snw 42: # Revision 1.6 2025/03/15 02:26:35 snw
1.12 ! snw 43: # Prepare for cvs-current release
1.7 snw 44: #
1.6 snw 45: # Revision 1.5 2025/03/09 19:14:24 snw
46: # First phase of REUSE compliance and header reformat
47: #
1.1 snw 48: #
1.5 snw 49: # SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC
50: # SPDX-License-Identifier: AGPL-3.0-or-later
51:
1.1 snw 52:
1.12 ! snw 53: AC_INIT([freem],[cvs-current],[snw@coherent-logic.com])
1.1 snw 54: AC_CONFIG_HEADERS([src/config.h])
55: AC_CONFIG_MACRO_DIR([m4])
56:
57: AX_LIB_READLINE
58:
59: # check for libm
60: AC_CHECK_LIB([m], [powf])
61: AC_CHECK_LIB([m], [pow])
62:
63: AC_CANONICAL_HOST
64:
65: # find out if we need to link with -lsocket and/or -lnsl to get
66: # BSD sockets support
67:
68: AU_ALIAS([LIB_SOCKET_NSL], [AX_LIB_SOCKET_NSL])
69:
70: AC_DEFUN([AX_LIB_SOCKET_NSL],
71: [
72: AC_SEARCH_LIBS([gethostbyname], [nsl])
73: AC_SEARCH_LIBS([socket], [socket], [], [
74: AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"],
75: [], [-lnsl])])
76: ])
77:
78: AX_LIB_SOCKET_NSL
79:
80: #
81: # check for getopt.h and getopt_long
82: #
83: AC_CHECK_HEADERS(getopt.h)
84: AC_CHECK_FUNCS([getopt_long])
85:
86: #
87: # bring in X11, X Toolkit, and Motif if --enable-mwapi is passed to configure
88: #
89: AC_ARG_ENABLE([mwapi], AS_HELP_STRING([--enable-mwapi], [Enable MWAPI (OSF/Motif) support (EXPERIMENTAL)]))
90:
91: AS_IF([test "x$enable_mwapi" = "xyes"], [
92: AX_LIB_MOTIF
93: ])
94:
95: # check for wiringPi headers and library linkage for
96: # ^$ZRPI ssv on Raspberry Pi SBCs
97: AC_CHECK_HEADERS(wiringPi.h)
98:
99: AC_DEFUN([AX_LIB_WIRINGPI],
100: [
101: AC_SEARCH_LIBS([wiringPiSetup], [wiringPi], [], [
102: AC_CHECK_LIB([wiringPi], [wiringPiSetup], [LIBS="-lwiringPi $LIBS"],
103: [], [-lwiringPi])])
104: ])
105:
106: AX_LIB_WIRINGPI
107:
108: AC_ENABLE_SHARED
109: AC_DISABLE_STATIC
110: LT_INIT
111: AM_INIT_AUTOMAKE
112: AC_CONFIG_FILES(Makefile src/Makefile doc/Makefile)
113: AC_PROG_CC
114: # AC_PATH_XTRA
115: AC_OUTPUT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>