X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d3fceabf56dcf34b96af5ec69d424e57013f0c2d..17e4d28ec48db02784eebbf107b79d4331848090:/configure diff --git a/configure b/configure old mode 100644 new mode 100755 index 1e66f20..030b39d --- a/configure +++ b/configure @@ -1,9 +1,9 @@ #! /bin/sh -# From configure.in Id: configure.in,v 1.2 2004/06/28 22:45:19 r33d Exp . +# From configure.in Id: configure.in 1317 2005-09-05 06:25:25Z sirvulcan . # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for srvx 1.3. +# Generated by GNU Autoconf 2.59 for X3 1.4. # -# Report bugs to . +# Report bugs to . # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation @@ -268,11 +268,11 @@ SHELL=${CONFIG_SHELL-/bin/sh} : ${ac_max_here_lines=38} # Identity of this package. -PACKAGE_NAME='srvx' -PACKAGE_TARNAME='srvx' -PACKAGE_VERSION='1.3' -PACKAGE_STRING='srvx 1.3' -PACKAGE_BUGREPORT='srvx-bugs@lists.sourceforge.net' +PACKAGE_NAME='X3' +PACKAGE_TARNAME='x3' +PACKAGE_VERSION='1.4' +PACKAGE_STRING='X3 1.4' +PACKAGE_BUGREPORT='x2serv-general@lists.sourceforge.net' ac_unique_file="src/opserv.c" # Factoring default headers for most tests. @@ -781,7 +781,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 srvx 1.3 to adapt to many kinds of systems. +\`configure' configures X3 1.4 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -848,7 +848,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of srvx 1.3:";; + short | recursive ) echo "Configuration of X3 1.4:";; esac cat <<\_ACEOF @@ -868,7 +868,7 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-malloc=type Enables use of a special malloc library; one of: - system (the default), boehm-gc, dmalloc, mpatrol + system (the default), boehm-gc, dmalloc, mpatrol, x3, slab --with-protocol=name Choose IRC dialect to support; one of: p10 (the default), bahamut --without-getopt Disables building of the GNU getopt library @@ -885,7 +885,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 @@ -981,7 +981,7 @@ fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -srvx configure 1.3 +X3 configure 1.4 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. @@ -995,7 +995,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 srvx $as_me 1.3, which was +It was created by X3 $as_me 1.4, which was generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -1331,7 +1331,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -CODENAME=surge +CODENAME=X3 ac_config_headers="$ac_config_headers src/config.h" @@ -1723,8 +1723,8 @@ fi # Define the identity of the package. - PACKAGE='srvx' - VERSION='1.3' + PACKAGE='x3' + VERSION='1.4' cat >>confdefs.h <<_ACEOF @@ -5223,7 +5223,8 @@ done -for ac_header in fcntl.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 regex.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 @@ -5343,9 +5344,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 srvx-bugs@lists.sourceforge.net ## -## ---------------------------------------------- ## +## --------------------------------------------------- ## +## Report this to x2serv-general@lists.sourceforge.net ## +## --------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 @@ -5683,8 +5684,8 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then _ACEOF else - { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. srvx build will fail." >&5 -echo "$as_me: error: ftime or gettimeofday required. srvx build will fail." >&2;} + { { echo "$as_me:$LINENO: error: ftime or gettimeofday required. X3 build will fail." >&5 +echo "$as_me: error: ftime or gettimeofday required. X3 build will fail." >&2;} { (exit 1); exit 1; }; } fi done @@ -5706,7 +5707,8 @@ fi -for ac_func in bcopy memcpy memset strdup strerror strsignal localtime_r setrlimit inet_ntoa getopt getopt_long regcomp regexec regfree sysconf + +for ac_func in bcopy getpagesize memcpy memset strdup strerror strsignal localtime_r setrlimit inet_ntoa getopt getopt_long regcomp regexec regfree sysconf do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_func" >&5 @@ -5911,8 +5913,8 @@ if test `eval echo '${'$as_ac_var'}'` = yes; then _ACEOF else - { { echo "$as_me:$LINENO: error: a required function was not found. srvx build will fail." >&5 -echo "$as_me: error: a required function was not found. srvx build will fail." >&2;} + { { echo "$as_me:$LINENO: error: a required function was not found. X3 build will fail." >&5 +echo "$as_me: error: a required function was not found. X3 build will fail." >&2;} { (exit 1); exit 1; }; } fi done @@ -6396,9 +6398,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 srvx-bugs@lists.sourceforge.net ## -## ---------------------------------------------- ## +## --------------------------------------------------- ## +## Report this to x2serv-general@lists.sourceforge.net ## +## --------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 @@ -6762,6 +6764,138 @@ _ACEOF fi +echo "$as_me:$LINENO: checking for socklen_t" >&5 +echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 +if test "${ac_cv_type_socklen_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include + +int +main () +{ +if ((socklen_t *) 0) + return 0; +if (sizeof (socklen_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_socklen_t=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_type_socklen_t=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 +echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 +if test $ac_cv_type_socklen_t = yes; then + : +else + + echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5 +echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6 + if test "${curl_cv_socklen_t_equiv+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + curl_cv_socklen_t_equiv= + for arg2 in "struct sockaddr" void ; do + for t in int size_t unsigned long "unsigned long" ; do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +int getpeername (int $arg2 *, $t *); +int +main () +{ +$t len; + getpeername(0, 0, &len); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + curl_cv_socklen_t_equiv="$t" + break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + done + done + +fi + + echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5 +echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6 + +cat >>confdefs.h <<_ACEOF +#define socklen_t $curl_cv_socklen_t_equiv +_ACEOF + +fi + + OLD_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -W -Wall -Werror" @@ -7132,9 +7266,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 srvx-bugs@lists.sourceforge.net ## -## ---------------------------------------------- ## +## --------------------------------------------------- ## +## Report this to x2serv-general@lists.sourceforge.net ## +## --------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 @@ -7370,9 +7504,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 srvx-bugs@lists.sourceforge.net ## -## ---------------------------------------------- ## +## --------------------------------------------------- ## +## Report this to x2serv-general@lists.sourceforge.net ## +## --------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 @@ -7681,9 +7815,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 srvx-bugs@lists.sourceforge.net ## -## ---------------------------------------------- ## +## --------------------------------------------------- ## +## Report this to x2serv-general@lists.sourceforge.net ## +## --------------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 @@ -7872,6 +8006,24 @@ cat >>confdefs.h <<\_ACEOF #define WITH_MALLOC_BOEHM_GC 1 _ACEOF +elif test "x$withval" = "xx3" ; then + echo "$as_me:$LINENO: result: x3" >&5 +echo "${ECHO_T}x3" >&6 + +cat >>confdefs.h <<\_ACEOF +#define WITH_MALLOC_X3 1 +_ACEOF + + MODULE_OBJS="$MODULE_OBJS alloc-x3.\$(OBJEXT)" +elif test "x$withval" = "xslab" ; then + echo "$as_me:$LINENO: result: slab" >&5 +echo "${ECHO_T}slab" >&6 + +cat >>confdefs.h <<\_ACEOF +#define WITH_MALLOC_SLAB 1 +_ACEOF + + MODULE_OBJS="$MODULE_OBJS alloc-slab.\$(OBJEXT)" else { { echo "$as_me:$LINENO: error: Unknown malloc type $withval" >&5 echo "$as_me: error: Unknown malloc type $withval" >&2;} @@ -7896,7 +8048,7 @@ cat >>confdefs.h <<\_ACEOF #define WITH_PROTOCOL_P10 1 _ACEOF - MODULE_OBJS="$MODULE_OBJS proto-p10.\$(OBJEXT)" + MODULE_OBJS="$MODULE_OBJS proto-p10.o" PROTO_FILES=proto-p10.c elif test "x$withval" = "xbahamut" ; then echo "$as_me:$LINENO: result: Bahamut" >&5 @@ -7906,7 +8058,7 @@ cat >>confdefs.h <<\_ACEOF #define WITH_PROTOCOL_BAHAMUT 1 _ACEOF - MODULE_OBJS="$MODULE_OBJS proto-bahamut.\$(OBJEXT)" + MODULE_OBJS="$MODULE_OBJS proto-bahamut.o" else { { echo "$as_me:$LINENO: error: Unknown IRC dialect $withval" >&5 echo "$as_me: error: Unknown IRC dialect $withval" >&2;} @@ -7990,7 +8142,7 @@ if test "${enable_modules+set}" = set; then module_list="" for module in $enableval ; do module=`echo $module | sed -e s/^mod-// -e s/\.c\$//` - EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.\$(OBJEXT)" + EXTRA_MODULE_OBJS="$EXTRA_MODULE_OBJS mod-$module.o" module_list="$module_list $module" echo "WITH_MODULE($module)" >> $MODULE_DEFINES done @@ -8421,7 +8573,7 @@ _ASBOX } >&5 cat >&5 <<_CSEOF -This file was extended by srvx $as_me 1.3, which was +This file was extended by X3 $as_me 1.4, which was generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -8484,7 +8636,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -srvx config.status 1.3 +X3 config.status 1.4 configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"