#! /bin/sh
-# From configure.in Id.
+# From configure.in Id: configure.in 1594 2006-05-30 04:42:11Z sirvulcan .
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for X3 1.4.
+# Generated by GNU Autoconf 2.59 for X3 1.5.
#
-# Report bugs to <x2serv-general@lists.sourceforge.net>.
+# Report bugs to <evilnet-devel@lists.sourceforge.net>.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# Identity of this package.
PACKAGE_NAME='X3'
PACKAGE_TARNAME='x3'
-PACKAGE_VERSION='1.4'
-PACKAGE_STRING='X3 1.4'
-PACKAGE_BUGREPORT='x2serv-general@lists.sourceforge.net'
+PACKAGE_VERSION='1.5'
+PACKAGE_STRING='X3 1.5'
+PACKAGE_BUGREPORT='evilnet-devel@lists.sourceforge.net'
ac_unique_file="src/opserv.c"
# Factoring default headers for most tests.
# include <unistd.h>
#endif"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA MODULE_OBJS MY_SUBDIRS RX_INCLUDES RX_LIBS LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MAKER ALLOCA TREINCDIR TRELIBS MODULE_OBJS MY_SUBDIRS RX_INCLUDES RX_LIBS TRACK LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures X3 1.4 to adapt to many kinds of systems.
+\`configure' configures X3 1.5 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of X3 1.4:";;
+ short | recursive ) echo "Configuration of X3 1.5:";;
esac
cat <<\_ACEOF
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
-Report bugs to <x2serv-general@lists.sourceforge.net>.
+Report bugs to <evilnet-devel@lists.sourceforge.net>.
_ACEOF
fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-X3 configure 1.4
+X3 configure 1.5
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by X3 $as_me 1.4, which was
+It was created by X3 $as_me 1.5, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
# Define the identity of the package.
PACKAGE='x3'
- VERSION='1.4'
+ VERSION='1.5'
cat >>confdefs.h <<_ACEOF
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
-## --------------------------------------------------- ##
-## Report this to x2serv-general@lists.sourceforge.net ##
-## --------------------------------------------------- ##
+## -------------------------------------------------- ##
+## Report this to evilnet-devel@lists.sourceforge.net ##
+## -------------------------------------------------- ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
fi
fi
+# Extract the first word of "gmake", so it can be a program name with args.
+set dummy gmake; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_prog_MAKER+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test -n "$MAKER"; then
+ ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_MAKER="gmake"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
+fi
+fi
+MAKER=$ac_cv_prog_MAKER
+if test -n "$MAKER"; then
+ echo "$as_me:$LINENO: result: $MAKER" >&5
+echo "${ECHO_T}$MAKER" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
case $target in
*-freebsd2* | *-freebsdelf2* | *-freebsd*out3*)
;;
*-freebsd3* | *-freebsdelf3* | *-freebsd*out3*)
ANSI_SRC=""
-
-cat >>confdefs.h <<\_ACEOF
-#define BROKEN_REGEX 1
-_ACEOF
-
- BROKEN_REGEX=yes
;;
*-solaris*)
EXTRA_DEFINE="-D__SOLARIS__"
-
-for ac_header in fcntl.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h regex.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
+for ac_header in fcntl.h tgmath.h malloc.h netdb.h netinet/in.h sys/resource.h sys/timeb.h sys/times.h sys/param.h sys/socket.h sys/time.h sys/types.h sys/wait.h unistd.h getopt.h memory.h arpa/inet.h sys/mman.h sys/stat.h dirent.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
-## --------------------------------------------------- ##
-## Report this to x2serv-general@lists.sourceforge.net ##
-## --------------------------------------------------- ##
+## -------------------------------------------------- ##
+## Report this to evilnet-devel@lists.sourceforge.net ##
+## -------------------------------------------------- ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
-
-
-
-for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long regcomp regexec regfree sysconf
+for ac_func in freeaddrinfo getaddrinfo getnameinfo getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit getopt getopt_long sysconf
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
-## --------------------------------------------------- ##
-## Report this to x2serv-general@lists.sourceforge.net ##
-## --------------------------------------------------- ##
+## -------------------------------------------------- ##
+## Report this to evilnet-devel@lists.sourceforge.net ##
+## -------------------------------------------------- ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
#define WITH_MALLOC_SYSTEM 1
_ACEOF
+ x3_malloc="System"
elif test "x$withval" = "xdmalloc" ; then
echo "$as_me:$LINENO: result: dmalloc" >&5
echo "${ECHO_T}dmalloc" >&6
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
-## --------------------------------------------------- ##
-## Report this to x2serv-general@lists.sourceforge.net ##
-## --------------------------------------------------- ##
+## -------------------------------------------------- ##
+## Report this to evilnet-devel@lists.sourceforge.net ##
+## -------------------------------------------------- ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
#define WITH_MALLOC_DMALLOC 1
_ACEOF
+ x3_malloc="DMalloc"
elif test "x$withval" = "xmpatrol" ; then
echo "$as_me:$LINENO: result: mpatrol" >&5
echo "${ECHO_T}mpatrol" >&6
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
-## --------------------------------------------------- ##
-## Report this to x2serv-general@lists.sourceforge.net ##
-## --------------------------------------------------- ##
+## -------------------------------------------------- ##
+## Report this to evilnet-devel@lists.sourceforge.net ##
+## -------------------------------------------------- ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
#define WITH_MALLOC_MPATROL 1
_ACEOF
+ x3_malloc="MPatrol"
elif test "x$withval" = "xboehm-gc" ; then
echo "$as_me:$LINENO: result: boehm-gc" >&5
echo "${ECHO_T}boehm-gc" >&6
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
(
cat <<\_ASBOX
-## --------------------------------------------------- ##
-## Report this to x2serv-general@lists.sourceforge.net ##
-## --------------------------------------------------- ##
+## -------------------------------------------------- ##
+## Report this to evilnet-devel@lists.sourceforge.net ##
+## -------------------------------------------------- ##
_ASBOX
) |
sed "s/^/$as_me: WARNING: /" >&2
#define WITH_MALLOC_BOEHM_GC 1
_ACEOF
+ x3_malloc="Boehm"
elif test "x$withval" = "xx3" ; then
echo "$as_me:$LINENO: result: x3" >&5
echo "${ECHO_T}x3" >&6
_ACEOF
MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)"
+ x3_malloc="X3"
elif test "x$withval" = "xslab" ; then
echo "$as_me:$LINENO: result: slab" >&5
echo "${ECHO_T}slab" >&6
_ACEOF
MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)"
+ x3_malloc="Slab"
else
{ { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5
echo "$as_me: error: Unknown malloc type $withval" >&2;}
MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)"
PROTO_FILES=proto-p10.c
+ x3_ircd="P10"
elif test "x$withval" = "xbahamut" ; then
echo "$as_me:$LINENO: result: Bahamut" >&5
echo "${ECHO_T}Bahamut" >&6
_ACEOF
MODULE_OBJS="$MODULE_OBJS proto-bahamut.\$(OBJEXT)"
+ x3_ircd="Bahamut"
else
{ { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5
echo "$as_me: error: Unknown IRC dialect $withval" >&2;}
CPPFLAGS="$CPPFLAGS"
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
+ x3_debug="Enabled"
else
CPPFLAGS="$CPPFLAGS -DNDEBUG"
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
+ x3_debug="Disabled"
fi;
EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)"
module_list="$module_list $module"
echo "WITH_MODULE($module)" >> $MODULE_DEFINES
+ if test "x$module" = "xtrack" ; then
+ TRACK="-D HAVE_TRACK"
+ fi
done
IFS="$OIFS"
MODULE_OBJS="$MODULE_OBJS $EXTRA_MODULE_OBJS"
CFLAGS="$CFLAGS -Werror"
fi
+tre_version="0.7.4"
+echo "$as_me:$LINENO: result: extracting TRE regex library" >&5
+echo "${ECHO_T}extracting TRE regex library" >&6
+cur_dir=`pwd`
+cd tools
+rm -rf tre-$tre_version
+if test "x$ac_cv_path_GUNZIP" = "x" ; then
+ tar xfz tre.tar.gz
+else
+ cp tre.tar.gz tre.tar.gz.bak
+ gunzip -f tre.tar.gz
+ cp tre.tar.gz.bak tre.tar.gz
+ tar xf tre.tar
+fi
+echo "$as_me:$LINENO: result: configuring TRE regex library" >&5
+echo "${ECHO_T}configuring TRE regex library" >&6
+cd tre-$tre_version
+./configure --disable-agrep --disable-shared --disable-system-abi --disable-wchar --disable-multibyte --prefix=$prefix || exit 1
+echo "$as_me:$LINENO: result: compiling TRE regex library" >&5
+echo "${ECHO_T}compiling TRE regex library" >&6
+$ac_cv_prog_MAKER || exit 1
+echo "$as_me:$LINENO: result: installing TRE regex library" >&5
+echo "${ECHO_T}installing TRE regex library" >&6
+$ac_cv_prog_MAKER install || exit 1
+TREINCDIR="$prefix/include"
+
+if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
+ TRELIBS="-L$prefix/lib -ltre"
+else
+ TRELIBS=`$ac_cv_path_PKGCONFIG --libs tre.pc`
+fi
+
+cd $cur_dir
+
cat >>confdefs.h <<_ACEOF
#define CODENAME "${CODENAME}"
+
ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile"
cat >confcache <<\_ACEOF
} >&5
cat >&5 <<_CSEOF
-This file was extended by X3 $as_me 1.4, which was
+This file was extended by X3 $as_me 1.5, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-X3 config.status 1.4
+X3 config.status 1.5
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
s,@FFLAGS@,$FFLAGS,;t t
s,@ac_ct_F77@,$ac_ct_F77,;t t
s,@LIBTOOL@,$LIBTOOL,;t t
+s,@MAKER@,$MAKER,;t t
s,@ALLOCA@,$ALLOCA,;t t
+s,@TREINCDIR@,$TREINCDIR,;t t
+s,@TRELIBS@,$TRELIBS,;t t
s,@MODULE_OBJS@,$MODULE_OBJS,;t t
s,@MY_SUBDIRS@,$MY_SUBDIRS,;t t
s,@RX_INCLUDES@,$RX_INCLUDES,;t t
s,@RX_LIBS@,$RX_LIBS,;t t
+s,@TRACK@,$TRACK,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF
$ac_cs_success || { (exit 1); exit 1; }
fi
+
+
+
+cat <<EOF
+
+Configuration summary
+=====================
+
+X3 is now configured as follows:
+
+* Compilation environment
+
+ CC = $CC
+ CFLAGS = $CFLAGS
+ CPP = $CPP
+ CPPFLAGS = $CPPFLAGS
+ LD = $LD
+ LDFLAGS = $LDFLAGS
+ LIBS = $LIBS
+
+* X3 options
+
+ Debug: $x3_debug
+ Extra Modules: $module_list
+ Malloc: $x3_malloc
+ Protocol: $x3_ircd
+ Regexp Library TRE $tre_version
+
+Now you can proceed with compiling X3
+
+EOF
+