2001-08-17 05:46:24 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2001-11-03 22:45:03 +00:00
|
|
|
dnl $Id$
|
2001-11-03 21:57:45 +00:00
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_INIT(lib/libs.h)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
2002-05-10 20:40:33 +00:00
|
|
|
SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbtask mbsetup unix lang examples html script"
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_SUBST(SUBDIRS)
|
2003-12-17 22:16:08 +00:00
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
dnl General settings for MBSE BBS
|
2001-11-08 22:18:03 +00:00
|
|
|
dnl After changeing the version number, run autoconf!
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-11-03 21:57:45 +00:00
|
|
|
PACKAGE="mbsebbs"
|
2003-02-23 21:00:12 +00:00
|
|
|
MAJOR="0"
|
2003-10-09 19:38:55 +00:00
|
|
|
MINOR="39"
|
2004-01-14 21:22:57 +00:00
|
|
|
REVISION="7"
|
2003-02-23 21:00:12 +00:00
|
|
|
VERSION="$MAJOR.$MINOR.$REVISION"
|
2004-01-01 13:55:34 +00:00
|
|
|
COPYRIGHT="Copyright (C) 1997-2004 Michiel Broek, All Rights Reserved"
|
|
|
|
SHORTRIGHT="Copyright (C) 1997-2004 M. Broek"
|
2001-08-17 05:46:24 +00:00
|
|
|
GROUP="bbs"
|
|
|
|
OWNER="mbse"
|
2003-12-23 14:01:22 +00:00
|
|
|
ROWNER="`id -un root`"
|
|
|
|
RGROUP="`id -gn root`"
|
2001-11-03 21:57:45 +00:00
|
|
|
AC_SUBST(PACKAGE)
|
2003-02-23 21:00:12 +00:00
|
|
|
AC_SUBST(MAJOR)
|
|
|
|
AC_SUBST(MINOR)
|
|
|
|
AC_SUBST(REVISION)
|
2001-11-03 21:57:45 +00:00
|
|
|
AC_SUBST(COPYRIGHT)
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_SUBST(GROUP)
|
|
|
|
AC_SUBST(OWNER)
|
2003-12-23 14:01:22 +00:00
|
|
|
AC_SUBST(ROWNER)
|
|
|
|
AC_SUBST(RGROUP)
|
2001-11-03 21:57:45 +00:00
|
|
|
AC_PREFIX_DEFAULT(/opt/mbse)
|
|
|
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
|
2003-02-23 21:00:12 +00:00
|
|
|
AC_DEFINE_UNQUOTED(VERSION_MAJOR, $MAJOR)
|
|
|
|
AC_DEFINE_UNQUOTED(VERSION_MINOR, $MINOR)
|
|
|
|
AC_DEFINE_UNQUOTED(VERSION_REVISION, $REVISION)
|
2001-11-03 21:57:45 +00:00
|
|
|
AC_DEFINE_UNQUOTED(COPYRIGHT, "$COPYRIGHT")
|
2001-11-04 16:41:54 +00:00
|
|
|
AC_DEFINE_UNQUOTED(SHORTRIGHT, "$SHORTRIGHT")
|
2003-10-03 20:38:21 +00:00
|
|
|
AC_SUBST(VERSION)
|
2003-12-17 22:16:08 +00:00
|
|
|
SYSTEM="`uname -s`"
|
|
|
|
CPU="`uname -m`"
|
2001-08-17 05:46:24 +00:00
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
dnl Checks for programs.
|
2003-08-03 20:23:48 +00:00
|
|
|
dnl Try to find GNU make
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2003-08-03 20:23:48 +00:00
|
|
|
AC_CHECK_PROG(MAKE, gmake, gmake)
|
|
|
|
AC_CHECK_PROG(MAKE, make, make)
|
2001-11-03 21:57:45 +00:00
|
|
|
dnl Alternate awk check, I skip mawk because it doesn't work for MBSE.
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_CHECK_PROG(AWK, gawk, gawk)
|
|
|
|
AC_CHECK_PROG(AWK, nawk, nawk)
|
|
|
|
AC_CHECK_PROG(AWK, awk, awk)
|
2001-11-03 21:57:45 +00:00
|
|
|
dnl Try to find GNU install
|
|
|
|
AC_CHECK_PROG(INSTALL, ginstall, ginstall)
|
|
|
|
AC_CHECK_PROG(INSTALL, install, install)
|
2003-12-17 22:16:08 +00:00
|
|
|
AC_PROG_CC
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_RANLIB
|
2001-11-03 21:57:45 +00:00
|
|
|
AC_CHECK_PROG(TAR, tar, tar)
|
|
|
|
AC_CHECK_PROG(ZIP, zip, zip)
|
2001-08-25 19:53:11 +00:00
|
|
|
AC_PATH_PROG(CHOWN, chown, chown, /bin:/sbin:/usr/bin:/usr/sbin:)
|
2003-12-17 22:16:08 +00:00
|
|
|
AC_C_BIGENDIAN
|
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2003-11-22 21:42:44 +00:00
|
|
|
dnl Additional commandline switches
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2003-11-26 21:47:52 +00:00
|
|
|
AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ])
|
|
|
|
if test "$experiment" = "yes"; then
|
|
|
|
AC_DEFINE(USE_EXPERIMENT)
|
2003-11-22 21:42:44 +00:00
|
|
|
fi
|
2003-12-04 22:07:33 +00:00
|
|
|
AC_ARG_ENABLE(debugging, [ --enable-debugging Compile for debugging], [ debugging=$enableval ], [ debugging=no ])
|
|
|
|
if test "$debugging" = "yes"; then
|
2003-12-23 14:01:22 +00:00
|
|
|
CFLAGS="-O -g -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT"
|
2003-12-04 22:07:33 +00:00
|
|
|
else
|
2003-12-23 14:01:22 +00:00
|
|
|
CFLAGS="-O3 -Wall -Wshadow -Wwrite-strings -Wstrict-prototypes -D_REENTRANT"
|
2003-12-04 22:07:33 +00:00
|
|
|
fi
|
2003-12-27 16:51:42 +00:00
|
|
|
AC_ARG_ENABLE(newbinkp, [ --enable-newbinkp Compile New Binkp code], [ newbinkp=$enableval ], [ newbinkp=no ])
|
|
|
|
if test "$newbinkp" = "yes"; then
|
|
|
|
AC_DEFINE(USE_NEWBINKP)
|
|
|
|
fi
|
2003-12-04 22:07:33 +00:00
|
|
|
|
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
dnl Defines for MBSE BBS (must use tests or --enable-stuff later)
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_DEFINE_UNQUOTED(RESTAMP_OLD_POSTINGS, 21)
|
|
|
|
AC_DEFINE(RESTAMP_FUTURE_POSTINGS)
|
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
|
|
|
dnl Checks for libraries and functions.
|
|
|
|
dnl
|
2001-08-25 19:53:11 +00:00
|
|
|
AC_CHECK_LIB(compat,re_comp,result=yes,result=no)
|
|
|
|
if test "$result" = "yes"; then
|
|
|
|
LIBS="$LIBS -lcompat"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CACHE_CHECK(for pw_age in struct passwd, ac_cv_struct_passwd_pw_age, AC_TRY_COMPILE([#include <pwd.h>],
|
|
|
|
[ struct passwd pw; pw.pw_age = ""; ], ac_cv_struct_passwd_pw_age=yes, ac_cv_struct_passwd_pw_age=no))
|
|
|
|
if test "$ac_cv_struct_passwd_pw_age" = "yes"; then
|
|
|
|
AC_DEFINE(ATT_AGE)
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_CACHE_CHECK(for pw_comment in struct passwd, ac_cv_struct_passwd_pw_comment, AC_TRY_COMPILE([#include <pwd.h>],
|
|
|
|
[ struct passwd pw; pw.pw_comment = ""; ], ac_cv_struct_passwd_pw_comment=yes, ac_cv_struct_passwd_pw_comment=no))
|
|
|
|
if test "$ac_cv_struct_passwd_pw_comment" = "yes"; then
|
|
|
|
AC_DEFINE(ATT_COMMENT)
|
|
|
|
fi
|
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_CHECK_LIB(shadow,setspent,result=yes,result=no)
|
|
|
|
if test "$result" = "yes"; then
|
|
|
|
LIBS="$LIBS -lshadow"
|
|
|
|
SHADOW_PASSWORD=1
|
|
|
|
LIBSHADOW=1
|
|
|
|
else
|
|
|
|
AC_CHECK_LIB(shadow,getspnam,result=yes,result=no)
|
|
|
|
if test "$result" = "yes"; then
|
|
|
|
LIBS="$LIBS -lshadow"
|
|
|
|
SHADOW_PASSWORD=1
|
|
|
|
LIBSHADOW=1
|
|
|
|
else
|
|
|
|
dnl some libc's (glibc 2.x) keep shadow functions in -lc
|
|
|
|
AC_CHECK_LIB(c,setspent,result=yes,result=no)
|
|
|
|
if test "$result" = "yes"; then
|
|
|
|
if test -f /etc/shadow; then
|
|
|
|
SHADOW_PASSWORD=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2001-08-25 19:53:11 +00:00
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
if test "$SHADOW_PASSWORD" = "1"; then
|
|
|
|
if test "$ac_cv_func_fgetspent" != "yes"; then
|
|
|
|
AC_CHECK_LIB(shadow,fgetspent,result=yes,result=no)
|
|
|
|
if test "$result" = "yes"; then
|
|
|
|
if test "$LIBSHADOW" != "1"; then
|
|
|
|
LIBS="$LIBS -lshadow"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_DEFINE(SHADOW_PASSWORD)
|
|
|
|
fi
|
2001-08-25 19:53:11 +00:00
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_CHECK_LIB(crypt,crypt,result=yes,result=no)
|
|
|
|
if test "$result" = "yes"; then
|
|
|
|
LIBS="$LIBS -lcrypt"
|
|
|
|
fi
|
|
|
|
|
2002-01-06 13:24:23 +00:00
|
|
|
AC_CHECK_LIB(util,login,result=yes,result=no)
|
|
|
|
if test "$result" = "yes"; then
|
|
|
|
LIBS="$LIBS -lutil"
|
2002-01-11 21:47:22 +00:00
|
|
|
AC_CHECK_HEADERS(util.h)
|
2002-01-06 13:24:23 +00:00
|
|
|
AC_CHECK_HEADERS(libutil.h)
|
2002-01-11 21:47:22 +00:00
|
|
|
AC_CHECK_HEADERS(sys/types.h)
|
2002-01-06 13:24:23 +00:00
|
|
|
fi
|
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Support for zlib transfers compression
|
|
|
|
dnl
|
2003-11-29 15:07:04 +00:00
|
|
|
ZLIBSUP=No
|
2003-10-17 18:51:28 +00:00
|
|
|
AC_CHECK_LIB(z,compress2,result=yes,result=no)
|
2003-10-13 10:52:58 +00:00
|
|
|
if test "$result" = "yes"; then
|
|
|
|
LIBS="$LIBS -lz"
|
2003-11-07 19:59:17 +00:00
|
|
|
AC_CHECK_HEADERS(zlib.h,ZLIBSUP=Yes,ZLIBSUP=No)
|
2003-10-13 10:52:58 +00:00
|
|
|
fi
|
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
|
2003-12-23 14:01:22 +00:00
|
|
|
dnl
|
|
|
|
dnl The last library to add, according to Sun the -lpthread must be the
|
|
|
|
dnl very last library specified on the gcc command line.
|
|
|
|
dnl
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl On NetBSD we need to add the pkg dirs for posix threads
|
|
|
|
dnl
|
|
|
|
if test "$SYSTEM" = "NetBSD"; then
|
|
|
|
CFLAGS="$CFLAGS `pthread-config --cflags`"
|
|
|
|
LDFLAGS="$LDFLAGS `pthread-config --ldflags`"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl For FreeBSD we need -pthread for gcc and don't need libpthread
|
|
|
|
dnl
|
|
|
|
if test "$SYSTEM" = "FreeBSD"; then
|
|
|
|
CFLAGS="-pthread $CFLAGS"
|
|
|
|
else
|
|
|
|
AC_CHECK_LIB(pthread,pthread_create,result=yes,result=no)
|
|
|
|
if test "$result" = "yes"; then
|
|
|
|
LIBS="$LIBS -lpthread"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
dnl Checks for header files.
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_HEADER_STDC
|
2001-11-03 21:57:45 +00:00
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_TIME
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_HEADER_SYS_WAIT
|
2003-12-23 18:33:42 +00:00
|
|
|
AC_CHECK_HEADERS(sys/time.h termios.h sys/vfs.h unistd.h netinet/in.h regex.h)
|
|
|
|
AC_CHECK_HEADERS(sys/resource.h usersec.h gshadow.h shadow.h)
|
2002-01-04 21:38:54 +00:00
|
|
|
AC_CHECK_HEADERS(limits.h utmp.h utmpx.h lastlog.h rpc/key_prot.h)
|
2003-12-23 21:49:37 +00:00
|
|
|
AC_STRUCT_TIMEZONE
|
2001-08-17 05:46:24 +00:00
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_C_CONST
|
|
|
|
AC_TYPE_UID_T
|
|
|
|
AC_TYPE_OFF_T
|
|
|
|
AC_TYPE_PID_T
|
2001-08-25 19:53:11 +00:00
|
|
|
AC_TYPE_MODE_T
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_STRUCT_ST_BLKSIZE
|
2001-08-25 19:53:11 +00:00
|
|
|
AC_HEADER_STAT
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_STRUCT_TM
|
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
dnl Checks for library functions.
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
2003-05-10 14:14:16 +00:00
|
|
|
AC_CHECK_FUNCS(c64i a64l fchmod fchown fdatasync fsync lckpwdf strcasestr putpwent)
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
AC_FUNC_MEMCMP
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
AC_FUNC_UTIME_NULL
|
2003-12-23 18:33:42 +00:00
|
|
|
AC_CHECK_FUNCS(gettimeofday re_comp select)
|
2003-05-10 14:14:16 +00:00
|
|
|
AC_CHECK_FUNCS(getspnam initgroups updwtmp updwtmpx)
|
2001-08-17 05:46:24 +00:00
|
|
|
|
2003-12-18 20:19:40 +00:00
|
|
|
dnl
|
|
|
|
dnl Check for usefull external programs
|
|
|
|
dnl
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_PATH_PROG(COMPRESS,compress,no-compress-found-during-configure)
|
2002-10-19 12:21:37 +00:00
|
|
|
AC_PATH_PROG(GZIP,gzip,no-gzip-found-during-configure)
|
2002-06-15 14:09:15 +00:00
|
|
|
AC_PATH_PROG(ARC,arc)
|
2002-10-27 21:12:52 +00:00
|
|
|
AC_PATH_PROG(NOMARCH,nomarch)
|
2002-06-15 14:09:15 +00:00
|
|
|
AC_PATH_PROG(ARJ,arj)
|
|
|
|
AC_PATH_PROG(UNARJ,unarj)
|
|
|
|
AC_PATH_PROG(LHA,lha)
|
|
|
|
AC_PATH_PROG(RAR,rar)
|
|
|
|
AC_PATH_PROG(UNRAR,unrar)
|
|
|
|
AC_PATH_PROG(TAR,tar)
|
|
|
|
AC_PATH_PROG(ZIP,zip)
|
|
|
|
AC_PATH_PROG(UNZIP,unzip)
|
|
|
|
AC_PATH_PROG(ZOO,zoo)
|
2002-08-09 20:35:38 +00:00
|
|
|
AC_PATH_PROG(HA,ha)
|
2002-06-15 14:09:15 +00:00
|
|
|
AC_PATH_PROG(ANTIVIR,antivir)
|
|
|
|
AC_PATH_PROG(FPROT,f-prot)
|
|
|
|
AC_PATH_PROG(UVSCAN,uvscan)
|
|
|
|
AC_PATH_PROG(RB,rb)
|
2002-12-11 22:22:45 +00:00
|
|
|
AC_PATH_PROG(RB,lrb)
|
2002-06-15 14:09:15 +00:00
|
|
|
AC_PATH_PROG(SB,sb)
|
2002-12-11 22:22:45 +00:00
|
|
|
AC_PATH_PROG(SB,lsb)
|
2002-06-15 14:09:15 +00:00
|
|
|
AC_PATH_PROG(RZ,rz)
|
2002-12-11 22:22:45 +00:00
|
|
|
AC_PATH_PROG(RZ,lrz)
|
2002-06-15 14:09:15 +00:00
|
|
|
AC_PATH_PROG(SZ,sz)
|
2002-12-11 22:22:45 +00:00
|
|
|
AC_PATH_PROG(SZ,lsz)
|
2002-06-24 20:34:07 +00:00
|
|
|
AC_PATH_PROG(GOLDEDBIN,golded)
|
2002-08-11 19:22:04 +00:00
|
|
|
AC_PATH_PROG(GOLDEDBIN,gedlnx)
|
2002-06-24 20:34:07 +00:00
|
|
|
AC_PATH_PROG(GOLDNODE,goldnode)
|
2002-08-11 19:22:04 +00:00
|
|
|
AC_PATH_PROG(GOLDNODE,gnlnx)
|
2003-01-06 13:44:30 +00:00
|
|
|
AC_PATH_PROG(CONVERT,convert)
|
2002-06-24 20:34:07 +00:00
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
dnl
|
|
|
|
AC_ARG_WITH(log-compress,[ --with-log-compress=METHOD Log compression method (default gzip)], LOG_COMPRESS=$with_log_compress, LOG_COMPRESS=gzip)
|
|
|
|
case "$LOG_COMPRESS" in
|
|
|
|
gzip)
|
|
|
|
LOG_COMPRESS=$GZIP
|
|
|
|
LOG_COMPRESSEXT=".gz" ;;
|
|
|
|
compress)
|
|
|
|
LOG_COMPRESS=$COMPRESS
|
|
|
|
LOG_COMPRESSEXT=".Z" ;;
|
|
|
|
*)
|
|
|
|
LOG_COMPRESS=$LOG_COMPRESS
|
|
|
|
LOG_COMPRESSEXT=".unknown" ;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(LOG_COMPRESS)
|
|
|
|
AC_SUBST(LOG_COMPRESSEXT)
|
|
|
|
dnl
|
|
|
|
|
2002-07-27 20:09:37 +00:00
|
|
|
AC_MSG_CHECKING(location of joe editor)
|
2002-07-27 20:49:32 +00:00
|
|
|
for joebin in /usr/bin /usr/local/bin /usr/pkg/bin NONE; do
|
2002-07-27 20:09:37 +00:00
|
|
|
if test "$joebin" = "NONE"; then
|
2002-08-07 20:20:26 +00:00
|
|
|
AC_MSG_RESULT(not found)
|
2002-07-27 20:09:37 +00:00
|
|
|
elif test -x $joebin/joe; then
|
|
|
|
AC_SUBST(joebin)
|
|
|
|
AC_MSG_RESULT($joebin)
|
2002-07-27 20:49:32 +00:00
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
AC_MSG_CHECKING(location of joe rc files)
|
2002-08-10 21:31:49 +00:00
|
|
|
for joelib in /etc/joe /usr/lib/joe /usr/local/etc /usr/local/etc/joe /usr/local/lib/joe /usr/pkg/lib /usr/pkg/etc NONE; do
|
2002-07-27 20:49:32 +00:00
|
|
|
if test "$joelib" = "NONE"; then
|
2002-08-07 20:20:26 +00:00
|
|
|
AC_MSG_RESULT(not found)
|
2002-07-27 20:49:32 +00:00
|
|
|
elif test -f $joelib/joerc; then
|
|
|
|
AC_SUBST(joelib)
|
|
|
|
AC_MSG_RESULT($joelib)
|
2002-07-27 20:09:37 +00:00
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-01-02 22:17:58 +00:00
|
|
|
AC_MSG_CHECKING(location of utmp)
|
|
|
|
for utmpdir in /var/run /var/adm /usr/adm /etc NONE; do
|
|
|
|
if test "$utmpdir" = "NONE"; then
|
|
|
|
AC_MSG_WARN(utmp file not found)
|
|
|
|
elif test -f $utmpdir/utmp; then
|
|
|
|
AC_DEFINE_UNQUOTED(_UTMP_FILE, "$utmpdir/utmp")
|
|
|
|
AC_MSG_RESULT($utmpdir)
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-01-04 21:38:54 +00:00
|
|
|
AC_MSG_CHECKING(location of lastlog/wtmp)
|
2002-01-02 22:17:58 +00:00
|
|
|
for logdir in /var/log /var/adm /usr/adm /etc; do
|
|
|
|
if test -d $logdir; then
|
|
|
|
AC_DEFINE_UNQUOTED(_WTMP_FILE, "$logdir/wtmp")
|
|
|
|
AC_DEFINE_UNQUOTED(LASTLOG_FILE, "$logdir/lastlog")
|
|
|
|
AC_MSG_RESULT($logdir)
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2002-02-24 21:20:25 +00:00
|
|
|
AC_MSG_CHECKING(location of vpopmail)
|
|
|
|
for vpop in /var/qmail/vpopmail/bin NONE; do
|
|
|
|
if test "$vpop" = "NONE"; then
|
|
|
|
AC_MSG_RESULT(not found)
|
|
|
|
elif test -x $vpop/vadduser; then
|
|
|
|
AC_DEFINE_UNQUOTED(_VPOPMAIL_PATH, "$vpop")
|
|
|
|
AC_MSG_RESULT($vpop)
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
2002-01-02 22:17:58 +00:00
|
|
|
|
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
AC_OUTPUT(
|
2001-11-03 21:57:45 +00:00
|
|
|
Makefile.global
|
2002-06-15 14:09:15 +00:00
|
|
|
paths.h
|
2002-01-05 13:57:10 +00:00
|
|
|
unix/login.defs
|
2001-08-17 05:46:24 +00:00
|
|
|
INSTALL
|
|
|
|
FILE_ID.DIZ
|
2002-07-27 20:15:07 +00:00
|
|
|
script/editor
|
2003-11-03 12:26:58 +00:00
|
|
|
html/index.htm
|
|
|
|
html/basic.html
|
2004-01-21 20:32:00 +00:00
|
|
|
html/upgrade.html
|
2001-08-17 05:46:24 +00:00
|
|
|
)
|
|
|
|
|
2003-05-10 14:27:25 +00:00
|
|
|
#=================================================================================
|
|
|
|
|
|
|
|
AC_MSG_RESULT([
|
|
|
|
-=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
|
|
|
|
|
|
|
|
Configuration summary :
|
|
|
|
|
|
|
|
Version : ..................... ${VERSION}
|
2003-11-07 19:59:17 +00:00
|
|
|
Hydra zlib compression : ...... ${ZLIBSUP}
|
2003-11-29 14:45:39 +00:00
|
|
|
|
2003-05-10 14:27:25 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
if test x$ac_cv_c_compiler_gnu = xyes ; then
|
|
|
|
echo -e " Tools :\n"
|
|
|
|
echo " Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_MSG_RESULT([
|
|
|
|
Installation directories :
|
|
|
|
|
|
|
|
Main directory : ........... ${prefix}
|
2003-08-03 20:23:48 +00:00
|
|
|
Owner and group : ........... ${OWNER}.${GROUP}
|
2003-05-10 14:27:25 +00:00
|
|
|
|
|
|
|
Now type 'make' and as root 'make install'
|
|
|
|
])
|