/[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.64 by sysadm, Fri Nov 21 02:49:26 2025 UTC Revision 1.69 by sysadm, Fri Nov 21 12:19:15 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([lbbs],[1.5.6])  AC_INIT([lbbs],[1.6.0])
6  AC_CONFIG_SRCDIR([src/])  AC_CONFIG_SRCDIR([src/])
7  AC_CONFIG_HEADERS([config.h])  AC_CONFIG_HEADERS([config.h])
8  AC_CONFIG_MACRO_DIRS([m4])  AC_CONFIG_MACRO_DIRS([m4])
# Line 21  AC_PROG_MAKE_SET Line 21  AC_PROG_MAKE_SET
21    
22  AC_ARG_WITH([sysv],  AC_ARG_WITH([sysv],
23              [AS_HELP_STRING([--with-sysv], [Use System V specific APIs])],              [AS_HELP_STRING([--with-sysv], [Use System V specific APIs])],
24              [AS_IF([test "x$with_sysv" = xyes],              [AS_IF([test "x$with_sysv" != xno],
25                     [AC_DEFINE([HAVE_SYSTEM_V], [1], [Define if System V is available])])])                     [AC_DEFINE([HAVE_SYSTEM_V], [1], [Define if System V is available [default=yes]])])],
26                [AC_DEFINE([HAVE_SYSTEM_V], [1], [Define if System V is available])])
27  AC_ARG_ENABLE([debug],  AC_ARG_ENABLE([debug],
28                [AS_HELP_STRING([--enable-debug], [Enable debug log])],                [AS_HELP_STRING([--enable-debug], [Enable debug log [default=no]])],
29                [AS_IF([test "x$enable_debug" = xyes],                [AS_IF([test "x$enable_debug" = xyes],
30                       [AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled])])])                       [AC_DEFINE([_DEBUG], [1], [Define if debug log is enabled])])])
   
31  AC_ARG_WITH([iconv],  AC_ARG_WITH([iconv],
32              [AS_HELP_STRING([--with-iconv], [Use iconv library package config])],              [AS_HELP_STRING([--with-iconv], [Use iconv library package config [default=no]])],
33              [],              [],
34              [with_iconv="no"])              [with_iconv="no"])
35  AC_ARG_WITH([mariadb],  AC_ARG_WITH([mariadb],
36              [AS_HELP_STRING([--with-mariadb], [Use MariaDB library instead of MySQL client library])],              [AS_HELP_STRING([--with-mariadb], [Use MariaDB library instead of MySQL client library [default=no]])],
37              [AS_IF([test "x$with_mariadb" = xyes],              [AS_IF([test "x$with_mariadb" = xyes],
38                     [AC_DEFINE([HAVE_MARIADB_CLIENT], [1], [Define if MariaDB client is used])])],                     [AC_DEFINE([HAVE_MARIADB_CLIENT], [1], [Define if MariaDB client is used])])],
39              [with_mariadb="no"])              [with_mariadb="no"])
40  AC_ARG_ENABLE([systemd],  AC_ARG_ENABLE([systemd],
41                [AS_HELP_STRING([--enable-systemd], [Enable systemd daemon])],                [AS_HELP_STRING([--enable-systemd], [Enable systemd daemon [default=no]])],
42                [],                [],
43                [enable_systemd="no"])                [enable_systemd="no"])
44  AC_ARG_WITH([epoll],  AC_ARG_WITH([epoll],
45              [AS_HELP_STRING([--with-epoll], [Use epoll instead of poll])],              [AS_HELP_STRING([--with-epoll], [Use epoll instead of poll [default=yes]])],
46              [],              [],
47              [with_epoll="yes"])              [with_epoll="yes"])
48    
# Line 61  AS_IF([test "x$with_mariadb" = xyes], Line 61  AS_IF([test "x$with_mariadb" = xyes],
61  AS_IF([test "x$enable_systemd" = xyes],  AS_IF([test "x$enable_systemd" = xyes],
62        [PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [], [AC_MSG_ERROR([libsystemd is required.])])])        [PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [], [AC_MSG_ERROR([libsystemd is required.])])])
63    
64    AS_IF([test "x$enable_shared" = xyes],
65          [AC_DEFINE([_ENABLE_SHARED], [1], [Define if shared library is enabled])])
66    AM_CONDITIONAL([USE_SO], [test "x$enable_shared" = xyes])
67    
68  CPPFLAGS="$CPPFLAGS $LIBSSH_CFLAGS $MYSQLCLIENT_CFLAGS $SYSTEMD_CFLAGS $LIBPCRE2_CFLAGS $ICONV_CFLAGS"  CPPFLAGS="$CPPFLAGS $LIBSSH_CFLAGS $MYSQLCLIENT_CFLAGS $SYSTEMD_CFLAGS $LIBPCRE2_CFLAGS $ICONV_CFLAGS"
69    
70  # Checks for libraries.  # Checks for libraries.


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

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