Annotation of freem/configure.ac, revision 1.33

1.1       snw         1: #
1.33    ! snw         2: #   $Id: configure.ac,v 1.32 2025/04/15 03:42:30 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.33    ! snw        27: #   Revision 1.32  2025/04/15 03:42:30  snw
        !            28: #   Remove -fno-stack-protector to fix dynamic executable builds on SunCC on Solaris
        !            29: #
1.32      snw        30: #   Revision 1.31  2025/04/15 03:37:30  snw
                     31: #   Remove -fno-mudflap to fix Solaris builds
                     32: #
1.31      snw        33: #   Revision 1.30  2025/04/12 00:54:16  snw
                     34: #   Set -fno-stack-protector and -fno-mudflap where available, and set _FORTIFY_SOURCE to 0 everywhere
                     35: #
1.30      snw        36: #   Revision 1.29  2025/04/12 00:42:05  snw
                     37: #   Remove -Wall and all supporting directives
                     38: #
1.29      snw        39: #   Revision 1.28  2025/04/11 20:55:47  snw
                     40: #   Disable -Wunused-result where possible
                     41: #
1.28      snw        42: #   Revision 1.27  2025/04/10 18:01:34  snw
                     43: #   Further tweaks to the autoconf configuration
                     44: #
1.27      snw        45: #   Revision 1.26  2025/04/10 01:24:38  snw
                     46: #   Remove C++ style comments
                     47: #
1.26      snw        48: #   Revision 1.25  2025/04/09 21:10:14  snw
                     49: #   Only use -Wno-format-truncation et al when the compiler supports them
                     50: #
1.25      snw        51: #   Revision 1.24  2025/04/09 20:06:02  snw
                     52: #   Add macros to check for compiler flags to suppress unavoidable warnings
                     53: #
1.24      snw        54: #   Revision 1.23  2025/04/07 23:40:30  snw
1.33    ! snw        55: #   Move to 0.64.0-rc1 and prepare to optimize global file lookup
1.24      snw        56: #
1.23      snw        57: #   Revision 1.22  2025/04/07 21:19:38  snw
1.33    ! snw        58: #   Release FreeM 0.64.0-rc1
1.23      snw        59: #
1.22      snw        60: #   Revision 1.21  2025/04/04 18:00:00  snw
                     61: #   *** empty log message ***
                     62: #
1.21      snw        63: #   Revision 1.20  2025/04/04 12:46:13  snw
1.33    ! snw        64: #   Patch Solaris 8 crash and bump version to 0.64.0-rc1
1.21      snw        65: #
1.20      snw        66: #   Revision 1.19  2025/04/04 02:40:32  snw
1.33    ! snw        67: #   Release 0.64.0-rc1
1.20      snw        68: #
1.19      snw        69: #   Revision 1.18  2025/04/04 02:12:24  snw
1.33    ! snw        70: #   Bump to 0.64.0-rc1 and make sure m_log function is never empty
1.19      snw        71: #
1.18      snw        72: #   Revision 1.17  2025/04/04 01:18:20  snw
1.33    ! snw        73: #   Remove vestigial logging code and bump to 0.64.0-rc1
1.18      snw        74: #
1.17      snw        75: #   Revision 1.16  2025/04/03 20:48:14  snw
1.33    ! snw        76: #   Improve daemon error diagnostics and bump to 0.64.0-rc1
1.17      snw        77: #
1.16      snw        78: #   Revision 1.15  2025/04/03 15:51:17  snw
                     79: #   Add fmadm man page and apply minor updates to freem man page
                     80: #
1.15      snw        81: #   Revision 1.14  2025/04/03 01:41:01  snw
1.33    ! snw        82: #   New features frozen; prepare 0.64.0-rc1
1.15      snw        83: #
1.14      snw        84: #   Revision 1.13  2025/03/30 01:36:58  snw
                     85: #   Make it easier to bring back fma_gedit, fix double-free in global handler, limit $CHAR to 7-bit ASCII
                     86: #
1.13      snw        87: #   Revision 1.12  2025/03/29 16:50:42  snw
1.33    ! snw        88: #   Back to 0.64.0-rc1 as version for development; temp fix for double-free issue in global_dispatch
1.13      snw        89: #
1.12      snw        90: #   Revision 1.11  2025/03/27 03:31:16  snw
1.33    ! snw        91: #   Prepare for release of FreeM 0.64.0-rc1
1.12      snw        92: #
1.11      snw        93: #   Revision 1.10  2025/03/23 19:42:18  snw
1.33    ! snw        94: #   Back to 0.64.0-rc1 versioning for continued development work
1.11      snw        95: #
1.10      snw        96: #   Revision 1.9  2025/03/23 04:42:33  snw
1.33    ! snw        97: #   Prepare for release of FreeM 0.64.0-rc1
1.10      snw        98: #
1.9       snw        99: #   Revision 1.8  2025/03/16 16:08:26  snw
1.33    ! snw       100: #   Back on 0.64.0-rc1 versioning for continued development
1.9       snw       101: #
1.8       snw       102: #   Revision 1.7  2025/03/15 03:19:33  snw
1.33    ! snw       103: #   Fix broken build and update to 0.64.0-rc1
1.8       snw       104: #
1.7       snw       105: #   Revision 1.6  2025/03/15 02:26:35  snw
1.33    ! snw       106: #   Prepare for 0.64.0-rc1 release
1.7       snw       107: #
1.6       snw       108: #   Revision 1.5  2025/03/09 19:14:24  snw
                    109: #   First phase of REUSE compliance and header reformat
                    110: #
1.1       snw       111: #
1.5       snw       112: # SPDX-FileCopyrightText:  (C) 2025 Coherent Logic Development LLC
                    113: # SPDX-License-Identifier: AGPL-3.0-or-later
                    114: 
1.1       snw       115: 
1.33    ! snw       116: AC_INIT([freem],[0.64.0-rc1],[snw@coherent-logic.com])
1.1       snw       117: AC_CONFIG_HEADERS([src/config.h])
                    118: AC_CONFIG_MACRO_DIR([m4])
                    119: 
                    120: AX_LIB_READLINE
1.32      snw       121: ##
                    122: # The following may be needed once we get back to enabling -Wall -Wextra -pedantic
                    123: #
1.29      snw       124: # AX_CHECK_COMPILE_FLAG([-Wno-format-truncation], [AX_APPEND_FLAG([-Wno-format-truncation])])
                    125: # AX_CHECK_COMPILE_FLAG([-Wno-format-contains-nul], [AX_APPEND_FLAG([-Wno-format-contains-nul])])
                    126: # AX_CHECK_COMPILE_FLAG([-Wno-stringop-truncation], [AX_APPEND_FLAG([-Wno-stringop-truncation])])
                    127: # AX_CHECK_COMPILE_FLAG([-Wno-parentheses], [AX_APPEND_FLAG([-Wno-parentheses])])
                    128: # AX_CHECK_COMPILE_FLAG([-Wno-pointer-sign], [AX_APPEND_FLAG([-Wno-pointer-sign])])
1.1       snw       129: 
                    130: # check for libm
                    131: AC_CHECK_LIB([m], [powf])
                    132: AC_CHECK_LIB([m], [pow])
                    133: 
                    134: AC_CANONICAL_HOST
1.13      snw       135: #AX_WITH_CURSES
1.1       snw       136: 
                    137: # find out if we need to link with -lsocket and/or -lnsl to get
                    138: # BSD sockets support
                    139: 
                    140: AU_ALIAS([LIB_SOCKET_NSL], [AX_LIB_SOCKET_NSL])
                    141: 
                    142: AC_DEFUN([AX_LIB_SOCKET_NSL],
                    143: [
                    144:         AC_SEARCH_LIBS([gethostbyname], [nsl])
                    145:         AC_SEARCH_LIBS([socket], [socket], [], [
                    146:                 AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"],
                    147:                 [], [-lnsl])])
                    148: ])
                    149: 
                    150: AX_LIB_SOCKET_NSL
                    151: 
                    152: #
                    153: # check for getopt.h and getopt_long
                    154: #
                    155: AC_CHECK_HEADERS(getopt.h)
                    156: AC_CHECK_FUNCS([getopt_long])
                    157: 
                    158: #
                    159: # bring in X11, X Toolkit, and Motif if --enable-mwapi is passed to configure
                    160: #
                    161: AC_ARG_ENABLE([mwapi],  AS_HELP_STRING([--enable-mwapi], [Enable MWAPI (OSF/Motif) support (EXPERIMENTAL)]))
                    162: 
                    163: AS_IF([test "x$enable_mwapi" = "xyes"], [
                    164:   AX_LIB_MOTIF
                    165: ]) 
                    166: 
                    167: # check for wiringPi headers and library linkage for
                    168: # ^$ZRPI ssv on Raspberry Pi SBCs
                    169: AC_CHECK_HEADERS(wiringPi.h)
                    170: 
                    171: AC_DEFUN([AX_LIB_WIRINGPI],
                    172: [
                    173:         AC_SEARCH_LIBS([wiringPiSetup], [wiringPi], [], [
                    174:                 AC_CHECK_LIB([wiringPi], [wiringPiSetup], [LIBS="-lwiringPi $LIBS"],
                    175:                 [], [-lwiringPi])])
                    176: ])
                    177: 
                    178: AX_LIB_WIRINGPI
                    179: 
                    180: AC_ENABLE_SHARED
                    181: AC_DISABLE_STATIC
                    182: LT_INIT
                    183: AM_INIT_AUTOMAKE
                    184: AC_CONFIG_FILES(Makefile src/Makefile doc/Makefile)
                    185: AC_PROG_CC
                    186: # AC_PATH_XTRA
                    187: AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>