This commit is contained in:
Michiel Broek 2007-05-27 12:20:00 +00:00
parent 9194c113f2
commit 9e3e85c9de
2 changed files with 77 additions and 39 deletions

38
configure vendored
View File

@ -1715,6 +1715,10 @@ ac_config_commands="$ac_config_commands default-1"
SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbutils mbnntp mbtask mbsetup unix lang examples html script" SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbutils mbnntp mbtask mbsetup unix lang examples html script"
#
# General settings for MBSE BBS
# After changeing the version number, run autoconf!
#
PACKAGE="mbsebbs" PACKAGE="mbsebbs"
MAJOR="0" MAJOR="0"
MINOR="91" MINOR="91"
@ -1765,6 +1769,10 @@ SYSTEM="`uname -s`"
CPU="`uname -m`" CPU="`uname -m`"
LDFLAGS="-I /usr/local/include" LDFLAGS="-I /usr/local/include"
#
# Checks for programs.
# Try to find GNU make
#
# Extract the first word of "gmake", so it can be a program name with args. # Extract the first word of "gmake", so it can be a program name with args.
set dummy gmake; ac_word=$2 set dummy gmake; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 { echo "$as_me:$LINENO: checking for $ac_word" >&5
@ -1839,6 +1847,7 @@ echo "${ECHO_T}no" >&6; }
fi fi
# Alternate awk check, I skip mawk because it doesn't work for MBSE.
# Extract the first word of "gawk", so it can be a program name with args. # Extract the first word of "gawk", so it can be a program name with args.
set dummy gawk; ac_word=$2 set dummy gawk; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 { echo "$as_me:$LINENO: checking for $ac_word" >&5
@ -1950,6 +1959,7 @@ echo "${ECHO_T}no" >&6; }
fi fi
# Try to find GNU install
# Extract the first word of "ginstall", so it can be a program name with args. # Extract the first word of "ginstall", so it can be a program name with args.
set dummy ginstall; ac_word=$2 set dummy ginstall; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 { echo "$as_me:$LINENO: checking for $ac_word" >&5
@ -4264,6 +4274,9 @@ esac
#
# Additional commandline switches
#
# Check whether --enable-experiment was given. # Check whether --enable-experiment was given.
if test "${enable_experiment+set}" = set; then if test "${enable_experiment+set}" = set; then
enableval=$enable_experiment; experiment=$enableval enableval=$enable_experiment; experiment=$enableval
@ -4316,6 +4329,9 @@ echo "${ECHO_T}$CPUFLAGS" >&6; }
fi fi
#
# Enable full newsgate, this was default upto 0.50.0
#
# Check whether --enable-newsgate was given. # Check whether --enable-newsgate was given.
if test "${enable_newsgate+set}" = set; then if test "${enable_newsgate+set}" = set; then
enableval=$enable_newsgate; newsgate=$enableval enableval=$enable_newsgate; newsgate=$enableval
@ -4334,6 +4350,9 @@ else
fi fi
#
# Checks for libraries and functions.
#
{ echo "$as_me:$LINENO: checking for re_comp in -lcompat" >&5 { echo "$as_me:$LINENO: checking for re_comp in -lcompat" >&5
echo $ECHO_N "checking for re_comp in -lcompat... $ECHO_C" >&6; } echo $ECHO_N "checking for re_comp in -lcompat... $ECHO_C" >&6; }
if test "${ac_cv_lib_compat_re_comp+set}" = set; then if test "${ac_cv_lib_compat_re_comp+set}" = set; then
@ -4743,6 +4762,7 @@ fi
SHADOW_PASSWORD=1 SHADOW_PASSWORD=1
LIBSHADOW=1 LIBSHADOW=1
else else
# some libc's (glibc 2.x) keep shadow functions in -lc
{ echo "$as_me:$LINENO: checking for setspent in -lc" >&5 { echo "$as_me:$LINENO: checking for setspent in -lc" >&5
echo $ECHO_N "checking for setspent in -lc... $ECHO_C" >&6; } echo $ECHO_N "checking for setspent in -lc... $ECHO_C" >&6; }
if test "${ac_cv_lib_c_setspent+set}" = set; then if test "${ac_cv_lib_c_setspent+set}" = set; then
@ -5598,6 +5618,9 @@ done
fi fi
#
# Support for zlib and bzlib transfers compression
#
ZLIBSUP=No ZLIBSUP=No
{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
@ -6105,6 +6128,9 @@ done
fi fi
#
# Checks for header files.
#
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
if test "${ac_cv_header_stdc+set}" = set; then if test "${ac_cv_header_stdc+set}" = set; then
@ -7977,6 +8003,9 @@ _ACEOF
fi fi
#
# Checks for typedefs, structures, and compiler characteristics.
#
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
if test "${ac_cv_c_const+set}" = set; then if test "${ac_cv_c_const+set}" = set; then
@ -8734,6 +8763,9 @@ _ACEOF
fi fi
#
# Checks for library functions.
#
@ -9477,6 +9509,9 @@ fi
done done
#
# Check for usefull external programs
#
# Extract the first word of "compress", so it can be a program name with args. # Extract the first word of "compress", so it can be a program name with args.
set dummy compress; ac_word=$2 set dummy compress; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 { echo "$as_me:$LINENO: checking for $ac_word" >&5
@ -10720,6 +10755,9 @@ fi
#
# FIX DEL for Del!=207, this was default upto 207 or 126 if no argument
#
# Check whether --enable-gbkdel was given. # Check whether --enable-gbkdel was given.
if test "${enable_gbkdel+set}" = set; then if test "${enable_gbkdel+set}" = set; then
enableval=$enable_gbkdel; gbkdel=$enableval enableval=$enable_gbkdel; gbkdel=$enableval

View File

@ -6,10 +6,10 @@ AM_CONFIG_HEADER(config.h)
SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbutils mbnntp mbtask mbsetup unix lang examples html script" SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbutils mbnntp mbtask mbsetup unix lang examples html script"
AC_SUBST(SUBDIRS) AC_SUBST(SUBDIRS)
dnl #
dnl General settings for MBSE BBS # General settings for MBSE BBS
dnl After changeing the version number, run autoconf! # After changeing the version number, run autoconf!
dnl #
PACKAGE="mbsebbs" PACKAGE="mbsebbs"
MAJOR="0" MAJOR="0"
MINOR="91" MINOR="91"
@ -42,17 +42,17 @@ SYSTEM="`uname -s`"
CPU="`uname -m`" CPU="`uname -m`"
LDFLAGS="-I /usr/local/include" LDFLAGS="-I /usr/local/include"
dnl #
dnl Checks for programs. # Checks for programs.
dnl Try to find GNU make # Try to find GNU make
dnl #
AC_CHECK_PROG(MAKE, gmake, gmake) AC_CHECK_PROG(MAKE, gmake, gmake)
AC_CHECK_PROG(MAKE, make, make) AC_CHECK_PROG(MAKE, make, make)
dnl Alternate awk check, I skip mawk because it doesn't work for MBSE. # Alternate awk check, I skip mawk because it doesn't work for MBSE.
AC_CHECK_PROG(AWK, gawk, gawk) AC_CHECK_PROG(AWK, gawk, gawk)
AC_CHECK_PROG(AWK, nawk, nawk) AC_CHECK_PROG(AWK, nawk, nawk)
AC_CHECK_PROG(AWK, awk, awk) AC_CHECK_PROG(AWK, awk, awk)
dnl Try to find GNU install # Try to find GNU install
AC_CHECK_PROG(INSTALL, ginstall, ginstall) AC_CHECK_PROG(INSTALL, ginstall, ginstall)
AC_CHECK_PROG(INSTALL, install, install) AC_CHECK_PROG(INSTALL, install, install)
AC_PROG_CC AC_PROG_CC
@ -65,9 +65,9 @@ AC_PATH_PROG(CHOWN, chown, chown, /bin:/sbin:/usr/bin:/usr/sbin:)
AC_C_BIGENDIAN AC_C_BIGENDIAN
dnl #
dnl Additional commandline switches # Additional commandline switches
dnl #
AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ]) AC_ARG_ENABLE(experiment, [ --enable-experiment Compile experimental code], [ experiment=$enableval ], [ experiment=no ])
if test "$experiment" = "yes"; then if test "$experiment" = "yes"; then
AC_DEFINE(USE_EXPERIMENT) AC_DEFINE(USE_EXPERIMENT)
@ -96,9 +96,9 @@ AC_MSG_CHECKING(for cpuflags)
fi fi
dnl #
dnl Enable full newsgate, this was default upto 0.50.0 # Enable full newsgate, this was default upto 0.50.0
dnl #
AC_ARG_ENABLE(newsgate, [ --enable-newsgate Compile with newsgate], [ newsgate=$enableval ], [ newsgate=no ]) AC_ARG_ENABLE(newsgate, [ --enable-newsgate Compile with newsgate], [ newsgate=$enableval ], [ newsgate=no ])
if test "$newsgate" = "yes"; then if test "$newsgate" = "yes"; then
AC_DEFINE(USE_NEWSGATE) AC_DEFINE(USE_NEWSGATE)
@ -108,9 +108,9 @@ else
fi fi
dnl #
dnl Checks for libraries and functions. # Checks for libraries and functions.
dnl #
AC_CHECK_LIB(compat,re_comp,result=yes,result=no) AC_CHECK_LIB(compat,re_comp,result=yes,result=no)
if test "$result" = "yes"; then if test "$result" = "yes"; then
LIBS="$LIBS -lcompat" LIBS="$LIBS -lcompat"
@ -140,7 +140,7 @@ else
SHADOW_PASSWORD=1 SHADOW_PASSWORD=1
LIBSHADOW=1 LIBSHADOW=1
else else
dnl some libc's (glibc 2.x) keep shadow functions in -lc # some libc's (glibc 2.x) keep shadow functions in -lc
AC_CHECK_LIB(c,setspent,result=yes,result=no) AC_CHECK_LIB(c,setspent,result=yes,result=no)
if test "$result" = "yes"; then if test "$result" = "yes"; then
if test -f /etc/shadow; then if test -f /etc/shadow; then
@ -176,9 +176,9 @@ if test "$result" = "yes"; then
fi fi
dnl #
dnl Support for zlib and bzlib transfers compression # Support for zlib and bzlib transfers compression
dnl #
ZLIBSUP=No ZLIBSUP=No
AC_CHECK_LIB(z,compress2,result=yes,result=no) AC_CHECK_LIB(z,compress2,result=yes,result=no)
if test "$result" = "yes"; then if test "$result" = "yes"; then
@ -192,9 +192,9 @@ if test "$result" = "yes"; then
AC_CHECK_HEADERS(bzlib.h,BZLIBSUP=Yes,BZLIBSUP=No) AC_CHECK_HEADERS(bzlib.h,BZLIBSUP=Yes,BZLIBSUP=No)
fi fi
dnl #
dnl Checks for header files. # Checks for header files.
dnl #
AC_HEADER_STDC AC_HEADER_STDC
AC_HEADER_DIRENT AC_HEADER_DIRENT
AC_HEADER_TIME AC_HEADER_TIME
@ -206,9 +206,9 @@ AC_CHECK_HEADERS(limits.h utmp.h utmpx.h lastlog.h rpc/key_prot.h)
AC_CHECK_HEADERS(iconv.h) AC_CHECK_HEADERS(iconv.h)
AC_STRUCT_TIMEZONE AC_STRUCT_TIMEZONE
dnl #
dnl Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.
dnl #
AC_C_CONST AC_C_CONST
AC_TYPE_UID_T AC_TYPE_UID_T
AC_TYPE_OFF_T AC_TYPE_OFF_T
@ -219,9 +219,9 @@ AC_STRUCT_ST_BLKSIZE
AC_HEADER_STAT AC_HEADER_STAT
AC_STRUCT_TM AC_STRUCT_TM
dnl #
dnl Checks for library functions. # Checks for library functions.
dnl #
AC_CHECK_FUNCS(c64i a64l fchmod fchown fdatasync fsync lckpwdf strcasestr putpwent) AC_CHECK_FUNCS(c64i a64l fchmod fchown fdatasync fsync lckpwdf strcasestr putpwent)
AC_PROG_GCC_TRADITIONAL AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP AC_FUNC_MEMCMP
@ -231,9 +231,9 @@ AC_CHECK_FUNCS(gettimeofday re_comp select)
AC_CHECK_FUNCS(getspnam initgroups updwtmp updwtmpx) AC_CHECK_FUNCS(getspnam initgroups updwtmp updwtmpx)
AC_CHECK_FUNCS(iconv_open) AC_CHECK_FUNCS(iconv_open)
dnl #
dnl Check for usefull external programs # Check for usefull external programs
dnl #
AC_PATH_PROG(COMPRESS,compress,no-compress-found-during-configure) AC_PATH_PROG(COMPRESS,compress,no-compress-found-during-configure)
AC_PATH_PROG(GZIP,gzip,no-gzip-found-during-configure) AC_PATH_PROG(GZIP,gzip,no-gzip-found-during-configure)
AC_PATH_PROG(ARC,arc) AC_PATH_PROG(ARC,arc)
@ -266,9 +266,9 @@ AC_PATH_PROG(GOLDNODE,goldnode)
AC_PATH_PROG(GOLDNODE,gnlnx) AC_PATH_PROG(GOLDNODE,gnlnx)
AC_PATH_PROG(CONVERT,convert) AC_PATH_PROG(CONVERT,convert)
dnl #
dnl FIX DEL for Del!=207, this was default upto 207 or 126 if no argument # FIX DEL for Del!=207, this was default upto 207 or 126 if no argument
dnl #
AC_ARG_ENABLE(gbkdel, [ --enable-gbkdel Delete key is 126 (default is 207)], [ gbkdel=$enableval ], [ gbkdel=no ]) AC_ARG_ENABLE(gbkdel, [ --enable-gbkdel Delete key is 126 (default is 207)], [ gbkdel=$enableval ], [ gbkdel=no ])
if test "$gbkdel" = "yes"; then if test "$gbkdel" = "yes"; then
GBK_DEL=126 GBK_DEL=126