diff options
Diffstat (limited to '')
7 files changed, 1591 insertions, 0 deletions
diff --git a/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&only_with_tag=MAIN&rev=1.8 b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&only_with_tag=MAIN&rev=1.8 new file mode 100644 index 00000000..2e3d5729 --- /dev/null +++ b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&only_with_tag=MAIN&rev=1.8 @@ -0,0 +1,270 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> +<HEAD><style> A { color:black }</style> +<!-- hennerik CVSweb $Revision: 1.93 $ --> +<TITLE>code/nelns/configure.in - view - 1.8</TITLE></HEAD> +<BODY BGCOLOR="#eeeeee"> +<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="configure.in?only_with_tag=MAIN"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="configure.in?only_with_tag=MAIN">configure.in</A> + CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/?only_with_tag=MAIN">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?only_with_tag=MAIN">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/?only_with_tag=MAIN">nelns</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/?only_with_tag=MAIN">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?only_with_tag=MAIN">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/?only_with_tag=MAIN">nelns</a> / <a href="/cvs/cvsweb.cgi/code/nelns/configure.in?only_with_tag=MAIN">configure.in</a> (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.8&only_with_tag=MAIN" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.8','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR> +Revision <B>1.8</B>, <i>Mon Oct 29 14:00:28 2001 UTC</i> (8 months, 3 weeks ago) by <i>valignat</i> +<BR>Branch: <b>MAIN</b> +<BR>Changes since <b>1.7: +3 -5 + lines</b><PRE> +REMOVED references to the Log service and the Time service. +</PRE> +</td></tr></table><HR noshade><PRE>dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.8 2001/10/29 14:00:28 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(admin_service/admin_service.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nelns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport=<path> path to the STLPort install directory. + e.g. /usr/local/stlport] +) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include=<path> + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport] +) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib=<path> + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib] +) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlpo +rt_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel=<prefix> prefix to the NeL files installation. + e.g. /usr/local], + [ NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include <nel/net.h> +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) +) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include <algorithm> +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + naming_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in +</PRE>
\ No newline at end of file diff --git a/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.12 b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.12 new file mode 100644 index 00000000..1540dc37 --- /dev/null +++ b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.12 @@ -0,0 +1,145 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> +<HEAD><style> A { color:black }</style> +<!-- hennerik CVSweb $Revision: 1.93 $ --> +<TITLE>code/nelns/configure.in - view - 1.12</TITLE></HEAD> +<BODY BGCOLOR="#eeeeee"> +<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="configure.in"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="configure.in">configure.in</A> + CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/">nelns</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/">nelns</a> / <a href="/cvs/cvsweb.cgi/code/nelns/configure.in">configure.in</a> (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.12" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.12','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR> +Revision <B>1.12</B>, <i>Thu Mar 21 10:54:37 2002 UTC</i> (3 months ago) by <i>valignat</i> +<BR>Branch: <b>MAIN</b> +<BR>Changes since <b>1.11: +3 -3 + lines</b><PRE> +Add Georges in the GNU/Linux compilation proccess. It nned to be activated with the configure option --enable-georges. AM_PATH_NEL takes a nwe argument (yes/no value) for the cheking of NeL Georges. +</PRE> +</td></tr></table><HR noshade><PRE>dnl ==================================================================== +dnl Configuration script for NeLNS +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.12 2002/03/21 10:54:37 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(admin_service/admin_service.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nelns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +AC_CHECK_LIB(crypt, crypt) + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl NeL + +dnl misc net 3d pacs sound ai georges +AM_PATH_NEL("yes", "yes", "no", "no", "no", "no", "no") + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + +dnl ==================================================================== +dnl nelns configuration and logs file location +dnl ==================================================================== + +pkgsysconfdir='${sysconfdir}/nelns' +AC_SUBST(pkgsysconfdir) + +eval NELNS_STATE=\"$localstatedir/games/nelns/\" +AC_DEFINE_UNQUOTED(NELNS_STATE, "$NELNS_STATE") + +eval NELNS_CONFIG=\"$sysconfdir/nelns/\" +AC_DEFINE_UNQUOTED(NELNS_CONFIG, "$NELNS_CONFIG") + +eval NELNS_LOGS=\"$localstatedir/log/nelns/\" +AC_DEFINE_UNQUOTED(NELNS_LOGS, "$NELNS_LOGS") + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + naming_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in + +</PRE>
\ No newline at end of file diff --git a/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.13&sortby=date b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.13&sortby=date new file mode 100644 index 00000000..84803b74 --- /dev/null +++ b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.13&sortby=date @@ -0,0 +1,165 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> +<HEAD><style> A { color:black }</style> +<!-- hennerik CVSweb $Revision: 1.93 $ --> +<TITLE>code/nelns/configure.in - view - 1.13</TITLE></HEAD> +<BODY BGCOLOR="#eeeeee"> +<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="configure.in?sortby=date"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="configure.in?sortby=date">configure.in</A> + CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/?sortby=date">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?sortby=date">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/?sortby=date">nelns</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/?sortby=date">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?sortby=date">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/?sortby=date">nelns</a> / <a href="/cvs/cvsweb.cgi/code/nelns/configure.in?sortby=date">configure.in</a> (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.13&sortby=date" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.13','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR> +Revision <B>1.13</B>, <i>Wed Apr 10 07:33:07 2002 UTC</i> (3 months, 2 weeks ago) by <i>lecroart</i> +<BR>Branch: <b>MAIN</b> +<BR>Changes since <b>1.12: +26 -6 + lines</b><PRE> +CHANGED: update makefile to manage log and cfg dir (thanks to loic dachary) +</PRE> +</td></tr></table><HR noshade><PRE>dnl ==================================================================== +dnl Configuration script for NeLNS +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.13 2002/04/10 07:33:07 lecroart Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(admin_service/admin_service.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nelns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +AC_CHECK_LIB(crypt, crypt) + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl NeL + +dnl misc net 3d pacs sound ai georges +AM_PATH_NEL("yes", "yes", "no", "no", "no", "no", "no") + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + +dnl ==================================================================== +dnl nelns configuration and logs file location +dnl ==================================================================== + +test "x$prefix" = xNONE && prefix=$ac_default_prefix + +AC_ARG_WITH(sysconfdir, + [ --with-sysconfdir[=DIR] + use DIR instead of the default sysconfdir/nelns], + [pkgsysconfdir=$withval], + [pkgsysconfdir='${sysconfdir}/nelns']) +AC_SUBST(pkgsysconfdir) + +eval eval NELNS_CONFIG=\"$pkgsysconfdir/\" +AC_DEFINE_UNQUOTED(NELNS_CONFIG, "$NELNS_CONFIG") + +AC_ARG_WITH(localstatedir, + [ --with-localstatedir[=DIR] + use DIR instead of the default localstatedir/game/nelns], + [pkglocalstatedir=$withval], + [pkglocalstatedir=${localstatedir}/game/nelns]) +AC_SUBST(pkglocalstatedir) + +eval eval NELNS_STATE=\"$pkglocalstatedir/\" +AC_DEFINE_UNQUOTED(NELNS_STATE, "$NELNS_STATE") + +AC_ARG_WITH(logdir, + [ --with-logdir[=DIR] + use DIR instead of the default localstatedir/log/nelns], + [logdir=$withval], + [logdir='${localstatedir}/log/nelns']) +AC_SUBST(logdir) + +eval eval NELNS_LOGS=\"$logdir/\" +AC_DEFINE_UNQUOTED(NELNS_LOGS, "$NELNS_LOGS") + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + naming_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in + +</PRE>
\ No newline at end of file diff --git a/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.15&sortby=log b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.15&sortby=log new file mode 100644 index 00000000..3bf2e0df --- /dev/null +++ b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.15&sortby=log @@ -0,0 +1,167 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> +<HEAD><style> A { color:black }</style> +<!-- hennerik CVSweb $Revision: 1.93 $ --> +<TITLE>code/nelns/configure.in - view - 1.15</TITLE></HEAD> +<BODY BGCOLOR="#eeeeee"> +<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="configure.in?sortby=log"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="configure.in?sortby=log">configure.in</A> + CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/?sortby=log">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?sortby=log">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/?sortby=log">nelns</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/?sortby=log">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/?sortby=log">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/?sortby=log">nelns</a> / <a href="/cvs/cvsweb.cgi/code/nelns/configure.in?sortby=log">configure.in</a> (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.15&sortby=log" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.15','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR> +Revision <B>1.15</B>, <i>Tue Apr 16 12:01:39 2002 UTC</i> (2 months, 1 week ago) by <i>valignat</i> +<BR>Branch: <b>MAIN</b> +<BR>CVS Tags: <b>HEAD</b><BR>Changes since <b>1.14: +3 -6 + lines</b><PRE> +ADDED a configure option to explicitly activate the use of the ccache (<A HREF="http://ccache.samba.org">http://ccache.samba.org</A>) utility. +</PRE> +</td></tr></table><HR noshade><PRE>dnl ==================================================================== +dnl Configuration script for NeLNS +dnl ==================================================================== +dnl +dnl $Id: configure.in,v 1.15 2002/04/16 12:01:39 valignat Exp $ +dnl + + +dnl ==================================================================== +dnl Process this file with autoconf to produce a configure script. +dnl ==================================================================== + +AC_INIT(admin_service/admin_service.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nelns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. +dnl ==================================================================== + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + +AM_PATH_CCACHE + + +dnl ==================================================================== +dnl Configure Settings +dnl ==================================================================== + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Debug/optimized compilation mode +dnl ==================================================================== + +AM_NEL_DEBUG + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. +dnl ==================================================================== + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. +dnl ==================================================================== + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ==================================================================== +dnl Checks for libraries. +dnl ==================================================================== + +AC_CHECK_LIB(crypt, crypt) + +dnl ==================================================================== +dnl STLPort + +AM_PATH_STLPORT + + +dnl ==================================================================== +dnl NeL + +dnl misc net 3d pacs sound ai georges +AM_PATH_NEL("yes", "yes", "no", "no", "no", "no", "no") + +dnl ==================================================================== +dnl Checks for library functions. +dnl ==================================================================== + +dnl ==================================================================== +dnl nelns configuration and logs file location +dnl ==================================================================== + +test "x$prefix" = xNONE && prefix=$ac_default_prefix + +AC_ARG_WITH(sysconfdir, + [ --with-sysconfdir[=DIR] + use DIR instead of the default sysconfdir/nelns], + [pkgsysconfdir=$withval], + [pkgsysconfdir='${sysconfdir}/nelns']) +AC_SUBST(pkgsysconfdir) + +eval eval NELNS_CONFIG=\"$pkgsysconfdir/\" +AC_DEFINE_UNQUOTED(NELNS_CONFIG, "$NELNS_CONFIG") + +AC_ARG_WITH(localstatedir, + [ --with-localstatedir[=DIR] + use DIR instead of the default localstatedir/game/nelns], + [pkglocalstatedir=$withval], + [pkglocalstatedir=${localstatedir}/game/nelns]) +AC_SUBST(pkglocalstatedir) + +eval eval NELNS_STATE=\"$pkglocalstatedir/\" +AC_DEFINE_UNQUOTED(NELNS_STATE, "$NELNS_STATE") + +AC_ARG_WITH(logdir, + [ --with-logdir[=DIR] + use DIR instead of the default localstatedir/log/nelns], + [logdir=$withval], + [logdir='${localstatedir}/log/nelns']) +AC_SUBST(logdir) + +eval eval NELNS_LOGS=\"$logdir/\" +AC_DEFINE_UNQUOTED(NELNS_LOGS, "$NELNS_LOGS") + +dnl ==================================================================== +dnl Output files to generate. +dnl ==================================================================== + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + naming_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in + +</PRE>
\ No newline at end of file diff --git a/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.3 b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.3 new file mode 100644 index 00000000..61391f03 --- /dev/null +++ b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.3 @@ -0,0 +1,302 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> +<HEAD><style> A { color:black }</style> +<!-- hennerik CVSweb $Revision: 1.93 $ --> +<TITLE>code/nelns/configure.in - view - 1.3</TITLE></HEAD> +<BODY BGCOLOR="#eeeeee"> +<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="configure.in"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="configure.in">configure.in</A> + CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/">nelns</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/">nelns</a> / <a href="/cvs/cvsweb.cgi/code/nelns/configure.in">configure.in</a> (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.3" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.3','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR> +Revision <B>1.3</B>, <i>Mon Jun 18 14:04:46 2001 UTC</i> (12 months ago) by <i>valignat</i> +<BR>Branch: <b>MAIN</b> +<BR>Changes since <b>1.2: +1 -4 + lines</b><PRE> +REMOVED the agnet_service from NELNS compilatiom/install process. +</PRE> +</td></tr></table><HR noshade><PRE>dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.3 2001/06/18 14:04:46 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(log_service/log_service.h) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(netns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ========== +dnl Python +dnl ========== + +AC_ARG_WITH( python, + [ --with-python=<path> path to the Python prefix installation directory. + e.g. /usr/local], + [PYTHON_PREFIX=$withval + AC_MSG_RESULT(using Python located in $withval.)] +) + +if test ! "$PYTHON_PREFIX" = "" +then + PATH="$PYTHON_PREFIX/bin:$PATH" +fi + +AC_ARG_WITH( python-version, + [ --with-python-version=<version> + Python version to use, e.g. 1.5], + [PYTHON_VERSION=$withval + AC_MSG_RESULT(using Python $withval.)] +) + +if test ! "$PYTHON_VERSION" = "" +then + PYTHON_EXEC="python$PYTHON_VERSION" +else + PYTHON_EXEC="python python2.0 python1.5" +fi + +AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) +if test "$PYTHON" = "no"; +then + AC_MSG_ERROR([Python is needed to compile NeL (www.python.org)]) +fi + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport header files +AC_ARG_WITH( stlport, + [ --with-stlport=<path> path to the STLPort header files directory. + e.g. /usr/local/include/stlport], + [STLPORT_DIR=$with_stlport + AC_MSG_RESULT(using STLPort header files located in $with_stlport)], + AC_MSG_ERROR([You must call configure with the --with-stlport option. + This tells configure where to find the STLPort header files. + e.g. --with-stlport=/usr/local/include/stlport]) +) + +if test X"$STLPORT_DIR" != X""; +then + CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS" +fi + +dnl Ask user for path to the STLPort library files +AC_ARG_WITH( stllib, + [ --with-stllib=<path> path to the STLPort installation directory. + e.g. /usr/local/lib/stlport], + [STLLIB_DIR=$with_stllib + AC_MSG_RESULT(using STLPort library located in $with_stllib)] +) + +if test X"$STLLIB_DIR" != X""; +then + LIBS="-L$STLLIB_DIR $LIBS" +fi + +LIBS="$LIBS -lstlport_gcc" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for STLPort) +AC_EGREP_CPP( yo_stlport, +[#include <algorithm> +#ifdef __SGI_STL_PORT + yo_stlport +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([STLPort is needed to compile NeLNS (www.stlport.org)]) +) + +CPPFLAGS="$_CPPFLAGS" + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel=<prefix> prefix to the NeL files installation. + e.g. /usr/local/include], + [NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL header files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include <nel/net.h> +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) +) + + +dnl ========== +dnl Python +dnl ========== + +PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` +PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` + +PYTHON_CFLAGS="-I$PYTHON_PREFIX/include/python$PYTHON_VERSION" +PYTHON_LIBS="-L$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config -lpython$PYTHON_VERSION" + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}" + +AC_SUBST(PYTHON_CFLAGS) + +AC_MSG_CHECKING(for Python header files) +AC_EGREP_CPP( yo_python, +[#include <Python.h> + yo_python +], +[AC_MSG_RESULT(ok)], +AC_MSG_ERROR([Python is needed to compile NeL (www.python.org).]) +) + +CPPFLAGS="$_CPPFLAGS" + +AC_SUBST(PYTHON_CFLAGS) +AC_SUBST(PYTHON_LIBS) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + log_service/Makefile \ + naming_service/Makefile \ + time_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in +</PRE>
\ No newline at end of file diff --git a/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.6 b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.6 new file mode 100644 index 00000000..c70e6515 --- /dev/null +++ b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.6 @@ -0,0 +1,272 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> +<HEAD><style> A { color:black }</style> +<!-- hennerik CVSweb $Revision: 1.93 $ --> +<TITLE>code/nelns/configure.in - view - 1.6</TITLE></HEAD> +<BODY BGCOLOR="#eeeeee"> +<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="configure.in"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="configure.in">configure.in</A> + CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/">nelns</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/">nelns</a> / <a href="/cvs/cvsweb.cgi/code/nelns/configure.in">configure.in</a> (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.6" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.6','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR> +Revision <B>1.6</B>, <i>Wed Aug 8 10:23:32 2001 UTC</i> (10 months, 1 week ago) by <i>valignat</i> +<BR>Branch: <b>MAIN</b> +<BR>Changes since <b>1.5: +9 -9 + lines</b><PRE> +Fixed a bug with the STLPort install directories. +</PRE> +</td></tr></table><HR noshade><PRE>dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.6 2001/08/08 10:23:32 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(log_service/log_service.h) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(netns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport=<path> path to the STLPort install directory. + e.g. /usr/local/stlport] +) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include=<path> + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport] +) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib=<path> + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib] +) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlpo +rt_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="i-L$with_stlport_lib" +fi + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel=<prefix> prefix to the NeL files installation. + e.g. /usr/local/include], + [NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL header files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include <nel/net.h> +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) +) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include <algorithm> +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + log_service/Makefile \ + naming_service/Makefile \ + time_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in +</PRE>
\ No newline at end of file diff --git a/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.8 b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.8 new file mode 100644 index 00000000..f2228712 --- /dev/null +++ b/cvs/cvsweb.cgi/code/nelns/configure.in?content-type=text/x-cvsweb-markup&rev=1.8 @@ -0,0 +1,270 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> +<HEAD><style> A { color:black }</style> +<!-- hennerik CVSweb $Revision: 1.93 $ --> +<TITLE>code/nelns/configure.in - view - 1.8</TITLE></HEAD> +<BODY BGCOLOR="#eeeeee"> +<table width="100%" border=0 cellspacing=0 cellpadding=1 bgcolor="#aaaaaa"><tr valign=bottom><td><a href="configure.in"><IMG SRC="http://www.nevrax.org/inc/img/picto-up.gif" ALT="[BACK]" BORDER="0" WIDTH="14" HEIGHT="13"></a> <b>Return to <A HREF="configure.in">configure.in</A> + CVS log</b> <IMG SRC="http://www.nevrax.org/inc/img/picto-news.gif" ALT="[TXT]" BORDER="0" WIDTH="13" HEIGHT="15"></td><td align=right><IMG SRC="http://www.nevrax.org/inc/img/picto-dir.gif" ALT="[DIR]" BORDER="0" WIDTH="15" HEIGHT="13"> <b>Up to <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/">nelns</a></b></td></tr></table><HR noshade><table width="100%"><tr><td bgcolor="#ffffff">File: <a href="/cvs/cvsweb.cgi/">Nevrax</a> / <a href="/cvs/cvsweb.cgi/code/">code</a> / <a href="/cvs/cvsweb.cgi/code/nelns/">nelns</a> / <a href="/cvs/cvsweb.cgi/code/nelns/configure.in">configure.in</a> (<A HREF="/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.8" target="cvs_checkout" onClick="window.open('/cvs/cvsweb.cgi/~checkout~/code/nelns/configure.in?rev=1.8','cvs_checkout','resizeable,scrollbars');"><b>download</b></A>)<BR> +Revision <B>1.8</B>, <i>Mon Oct 29 14:00:28 2001 UTC</i> (7 months, 3 weeks ago) by <i>valignat</i> +<BR>Branch: <b>MAIN</b> +<BR>Changes since <b>1.7: +3 -5 + lines</b><PRE> +REMOVED references to the Log service and the Time service. +</PRE> +</td></tr></table><HR noshade><PRE>dnl +dnl Configuration script for NeLNS +dnl +dnl $Id: configure.in,v 1.8 2001/10/29 14:00:28 valignat Exp $ +dnl + +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(admin_service/admin_service.cpp) + +MAJOR_VERSION=0 +MINOR_VERSION=3 +PICO_VERSION=0 + +AM_INIT_AUTOMAKE(nelns, $MAJOR_VERSION.$MINOR_VERSION.$PICO_VERSION) + +AM_CONFIG_HEADER(config.h) + + +dnl The following hack should ensure that configure doesn't add optimizing +dnl or debugging flags to CFLAGS or CXXFLAGS +CFLAGS="$CFLAGS " +CXXFLAGS="$CXXFLAGS " + + +dnl ==================================================================== +dnl Checks for programs. + +AC_PROG_MAKE_SET + +AC_PROG_CC +AC_PROG_CXX + +AM_PROG_LIBTOOL + +AM_SANITY_CHECK + +AC_PROG_INSTALL + + +dnl ==================================================================== +dnl Configure Settings + +AC_LANG_CPLUSPLUS + + +dnl ==================================================================== +dnl Checks for typedefs, structures, and compiler characteristics. + +AC_C_CONST + +dnl Add the define _REENTRANT for a correct use of the threads +if test "X$CC" = "Xgcc"; +then + CXXFLAGS="$CXXFLAGS -D_REENTRANT" +fi + + +dnl ==================================================================== +dnl Checks for header files. + +AC_STDC_HEADERS +AC_CHECK_HEADERS(fcntl.h unistd.h) + + +dnl ========== +dnl STLPort +dnl ========== + +dnl Ask user for path to the STLport files location +AC_ARG_WITH( stlport, + [ --with-stlport=<path> path to the STLPort install directory. + e.g. /usr/local/stlport] +) + +AC_ARG_WITH( stlport-include, + [ --with-stlport-include=<path> + path to the STLPort header files directory. + e.g. /usr/local/stlport/stlport] +) + +AC_ARG_WITH( stlport-lib, + [ --with-stlport-lib=<path> + path to the STLPort library files directory. + e.g. /usr/local/stlport/lib] +) + +if test "$with_stlport" != "no" +then + if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlpo +rt_include" + then + AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options. +This tells configure where to find the STLPort files.]) + fi + + if test $with_stlport + then + AC_MSG_RESULT(using STLPort files located in $with_stlport) + + STLPORT_CFLAGS="-I$with_stlport/stlport" + STLPORT_LIB="-L$with_stlport/lib" + fi +else + no_stlport="no" + AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***) +fi + +if test -z "$no_stlport" -a "$with_stlport_include" +then + AC_MSG_RESULT(using STLPort header files located in $with_stlport_include) + STLPORT_CFLAGS="-I$with_stlport_include" +fi + +if test -z "$no_stlport" -a "$with_stlport_lib" +then + AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib) + STLPORT_LIB="-L$with_stlport_lib" +fi + + +dnl ========== +dnl NeL +dnl ========== + +dnl Ask user for path to the NeL header files +AC_ARG_WITH( nel, + [ --with-nel=<prefix> prefix to the NeL files installation. + e.g. /usr/local], + [ NEL_DIR=$with_nel + AC_MSG_RESULT(using NeL files located in $with_nel)] +) + +if test X"$NEL_DIR" != X""; +then + CXXFLAGS="-I$NEL_DIR/include $CXXFLAGS" + LIBS="-L$NEL_DIR/lib $LIBS" +fi + +_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CXXFLAGS" + +AC_MSG_CHECKING(for NeL) +AC_EGREP_CPP( yo_nel, +[#include <nel/net.h> +#ifdef NL_NET_H + yo_nel +#endif], +[AC_MSG_RESULT(yes)], +AC_MSG_ERROR([NeL is needed to compile the NeLNS (www.nevrax.org)]) +) + + +dnl ========== +dnl Debug/optimized compilation mode +dnl ========== + +MAX_C_OPTIMIZE="-O6" + +dnl Build optimized or debug version ? +dnl First check for gcc and g++ +if test "$ac_cv_prog_gcc" = "yes" +then + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="-O" + OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE" +else + DEBUG_CFLAGS="-g" + DEBUG_OPTIMIZE_CC="" + OPTIMIZE_CFLAGS="-O" +fi +if test "$ac_cv_prog_cxx_g" = "yes" +then + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="-O" + OPTIMIZE_CXXFLAGS="-O3" +else + DEBUG_CXXFLAGS="-g" + DEBUG_OPTIMIZE_CXX="" + OPTIMIZE_CXXFLAGS="-O" +fi +AC_ARG_WITH(debug, + [ --with-debug[=full] Build a debug version (huge libraries) + --without-debug Build withoug debugging code (default)], + [with_debug=$withval], + [with_debug=no]) +if test "$with_debug" = "yes" +then + dnl Medium debug. + CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $CXXFLAGS" +elif test "$with_debug" = "full" +then + dnl Full debug. Very slow in some cases + CFLAGS="$DEBUG_CFLAGS $CFLAGS" + CXXFLAGS="$DEBUG_CXXFLAGS $CXXFLAGS" +else + dnl Optimized version. No debug + CFLAGS="$OPTIMIZE_CFLAGS $CFLAGS" + CXXFLAGS="$OPTIMIZE_CXXFLAGS $CXXFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for libraries. + +dnl ========== +dnl STLPort +dnl ========== + +if test -z "$no_stlport" +then + + if test X"$STLPORT_CFLAGS" != X + then + CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS" + fi + + if test X"$STLPORT_LIB" != X + then + LIBS="$STLPORT_LIB $LIBS -lstlport_gcc" + fi + + _CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS" + + AC_MSG_CHECKING(for STLPort) + AC_EGREP_CPP( yo_stlport, + [#include <algorithm> +#ifdef __SGI_STL_PORT + yo_stlport +#endif], + [ AC_MSG_RESULT(yes)], + AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) ) + + CPPFLAGS="$_CPPFLAGS" +fi + + +dnl ==================================================================== +dnl Checks for library functions. + + +dnl ==================================================================== +dnl Output files to generate. + +AC_OUTPUT( Makefile \ + login_service/Makefile \ + naming_service/Makefile \ + admin_executor_service/Makefile \ + admin_service/Makefile \ + welcome_service/Makefile \ +) + + +dnl End of configure.in +</PRE>
\ No newline at end of file |