/[LeafOK_CVS]/lbbs/configure.ac
ViewVC logotype

Diff of /lbbs/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.23 by sysadm, Wed Jul 2 04:17:33 2025 UTC Revision 1.47 by sysadm, Fri Nov 7 04:51:06 2025 UTC
# Line 2  Line 2 
2  # Process this file with autoconf to produce a configure script.  # Process this file with autoconf to produce a configure script.
3    
4  AC_PREREQ([2.69])  AC_PREREQ([2.69])
5  AC_INIT([bbsd],[1.3])  AC_INIT([lbbs],[1.5.2])
6  AC_CONFIG_SRCDIR([src/])  AC_CONFIG_SRCDIR([src/])
 # AM_CONFIG_HEADERS(config.h)  
7  AC_CONFIG_MACRO_DIRS([m4])  AC_CONFIG_MACRO_DIRS([m4])
8  AM_INIT_AUTOMAKE([foreign])  AM_INIT_AUTOMAKE([foreign])
9    AM_SILENT_RULES(yes)
10    
11  AC_USE_SYSTEM_EXTENSIONS  AC_USE_SYSTEM_EXTENSIONS
12  # Checks for programs.  # Checks for programs.
 AC_PROG_GCC_TRADITIONAL  
13  LT_INIT  LT_INIT
14  AC_PROG_CXX  AC_PROG_CXX
15  AC_PROG_CC  AC_PROG_CC
# Line 19  AC_PROG_INSTALL Line 18  AC_PROG_INSTALL
18  AC_PROG_LN_S  AC_PROG_LN_S
19  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
20    
21    AC_SUBST([PKG_CONFIG_PATH])
22    PKG_PROG_PKG_CONFIG
23    PKG_CHECK_MODULES([LIBSSH], [libssh])
24    PKG_CHECK_MODULES([MYSQLCLIENT], [mysqlclient])
25    PKG_CHECK_MODULES([SYSTEMD], [libsystemd])
26    PKG_CHECK_MODULES([LIBPCRE2], [libpcre2-8])
27    
28  # Checks for libraries.  # Checks for libraries.
29  AC_CHECK_LIB([mysqlclient], [mysql_connect])  AC_CHECK_LIB([mysqlclient], [mysql_connect])
30  AC_CHECK_LIB([z], [unzip])  AC_CHECK_LIB([z], [unzip])
# Line 29  AC_PROG_EGREP Line 35  AC_PROG_EGREP
35    
36  AC_HEADER_RESOLV  AC_HEADER_RESOLV
37  AC_HEADER_SYS_WAIT  AC_HEADER_SYS_WAIT
38  AC_CHECK_HEADERS([arpa/inet.h dflcn.h fcntl.h libssh/libssh.h libssh/server.h memory.h mysql/mysql.h net/if.h netdb.h netinet/in.h signal.h \  AC_CHECK_HEADERS([arpa/inet.h dflcn.h fcntl.h iconv.h libssh/libssh.h libssh/server.h memory.h mysql/mysql.h net/if.h netdb.h netinet/in.h \
39                                          stdint.h stdlib.h string.h sys/epoll.h sys/ioctl.h sys/ipc.h sys/mman.h sys/param.h sys/socket.h \                                          pty.h signal.h stdint.h stdlib.h string.h sys/epoll.h sys/ioctl.h sys/ipc.h sys/mman.h sys/param.h sys/socket.h \
40                                          sys/time.h sys/types.h sys/sem.h sys/shm.h sys/stat.h sys/syscall.h sys/wait.h systemd/sd-daemon.h unistd.h])                                          sys/time.h sys/types.h sys/sem.h sys/shm.h sys/stat.h sys/syscall.h sys/wait.h systemd/sd-daemon.h \
41                                            unistd.h utmp.h])
42    
43  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
44  AC_C_CONST  AC_C_CONST
# Line 58  AC_CONFIG_FILES([Makefile Line 65  AC_CONFIG_FILES([Makefile
65                  src/Makefile                  src/Makefile
66                  utils/Makefile                  utils/Makefile
67          utils/game/Makefile])          utils/game/Makefile])
68    
69    AC_ARG_ENABLE([debug],
70      [AS_HELP_STRING([--enable-debug], [Enable debug log])],
71      [AS_IF([test "x$enable_debug" = xyes],
72        [AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled])])])
73    
74  AC_OUTPUT  AC_OUTPUT


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1