Annotation of freem/configure.ac, revision 1.4

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

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