X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/2f61d1d75ac52f239e760ecea02332eedc4682bd..5f1600ab20e3f14e3330552b83976280c1049907:/configure diff --git a/configure b/configure index 8c8254b..67e696f 100755 --- a/configure +++ b/configure @@ -1,9 +1,9 @@ #! /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 . +# Report bugs to . # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation @@ -424,9 +424,9 @@ SHELL=${CONFIG_SHELL-/bin/sh} # 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. @@ -466,7 +466,7 @@ ac_includes_default="\ # include #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. @@ -955,7 +955,7 @@ if test "$ac_init_help" = "long"; then # 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]... @@ -1022,7 +1022,7 @@ fi 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 @@ -1076,7 +1076,7 @@ Some influential environment variables: 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 . +Report bugs to . _ACEOF fi @@ -1172,7 +1172,7 @@ 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. @@ -1186,7 +1186,7 @@ cat >&5 <<_ACEOF 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 $@ @@ -1915,7 +1915,7 @@ fi # Define the identity of the package. PACKAGE='x3' - VERSION='1.4' + VERSION='1.5' cat >>confdefs.h <<_ACEOF @@ -5703,9 +5703,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 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 @@ -19918,6 +19918,42 @@ echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 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*) @@ -19925,12 +19961,6 @@ case $target in ;; *-freebsd3* | *-freebsdelf3* | *-freebsd*out3*) ANSI_SRC="" - -cat >>confdefs.h <<\_ACEOF -#define BROKEN_REGEX 1 -_ACEOF - - BROKEN_REGEX=yes ;; *-solaris*) EXTRA_DEFINE="-D__SOLARIS__" @@ -20476,8 +20506,7 @@ fi - -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 @@ -20597,9 +20626,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 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 @@ -21073,10 +21102,7 @@ fi - - - -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 @@ -21766,9 +21792,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 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 @@ -22510,6 +22536,7 @@ cat >>confdefs.h <<\_ACEOF #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 @@ -22634,9 +22661,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 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 @@ -22748,6 +22775,7 @@ cat >>confdefs.h <<\_ACEOF #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 @@ -22872,9 +22900,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 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 @@ -23059,6 +23087,7 @@ cat >>confdefs.h <<\_ACEOF #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 @@ -23183,9 +23212,9 @@ echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 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 @@ -23374,6 +23403,7 @@ cat >>confdefs.h <<\_ACEOF #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 @@ -23383,6 +23413,7 @@ cat >>confdefs.h <<\_ACEOF _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 @@ -23392,6 +23423,7 @@ cat >>confdefs.h <<\_ACEOF _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;} @@ -23418,6 +23450,7 @@ _ACEOF 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 @@ -23427,6 +23460,7 @@ cat >>confdefs.h <<\_ACEOF _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;} @@ -23477,12 +23511,14 @@ if test "${enable_debug+set}" = set; then 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; @@ -23513,6 +23549,9 @@ if test "${enable_modules+set}" = set; then 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" @@ -23540,6 +23579,40 @@ if test "z$USE_MAINTAINER_MODE" = zyes ; then 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}" @@ -23549,6 +23622,7 @@ _ACEOF + ac_config_files="$ac_config_files Makefile rx/Makefile src/Makefile" cat >confcache <<\_ACEOF @@ -23948,7 +24022,7 @@ _ASBOX } >&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 @@ -24011,7 +24085,7 @@ _ACEOF 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'`\\" @@ -24283,11 +24357,15 @@ s,@F77@,$F77,;t t 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 @@ -25006,3 +25084,35 @@ if test "$no_create" != yes; then $ac_cs_success || { (exit 1); exit 1; } fi + + + +cat <