/[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.6 by sysadm, Sun May 4 09:41:37 2025 UTC Revision 1.50 by sysadm, Sun Nov 9 11:08:08 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.0])  AC_INIT([lbbs],[1.5.4])
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()  AM_INIT_AUTOMAKE([foreign])
9    AM_SILENT_RULES(yes)
10    
11    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 18  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])
31    AC_CHECK_LIB([ssh], [ssh_init])
32    
33    AC_HEADER_STAT
34    AC_PROG_EGREP
35    
36    AC_HEADER_RESOLV
37  AC_HEADER_SYS_WAIT  AC_HEADER_SYS_WAIT
38  AC_CHECK_HEADERS([arpa/inet.h dflcn.h fcntl.h memory.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h mysql.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                                            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 \
41                                            unistd.h utmp.h wchar.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 36  AC_STRUCT_TM Line 51  AC_STRUCT_TM
51  AC_FUNC_FORK  AC_FUNC_FORK
52  AC_FUNC_MALLOC  AC_FUNC_MALLOC
53  AC_FUNC_SELECT_ARGTYPES  AC_FUNC_SELECT_ARGTYPES
54    AC_FUNC_MMAP
55    AC_FUNC_MKTIME
56    
57  AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers  AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
58                      (`int' or `void').])                      (`int' or `void').])
59    
60  AC_FUNC_STRFTIME  AC_FUNC_STRFTIME
61  AC_FUNC_VPRINTF  AC_FUNC_VPRINTF
62  AC_CHECK_FUNCS([bzero dup2 gethostbyname inet_ntoa memset mkdir rmdir regcomp select socket strstr])  AC_CHECK_FUNCS([dup2 gethostbyname inet_ntoa memset mkdir rmdir regcomp select socket strstr])
63    
64  AC_CONFIG_FILES([Makefile  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