• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Need 8.1 configure source file for compiling to LINUX- rep.

Bam

Active Member
Joined
Aug 11, 2007
Messages
1,446
Reaction score
39
Location
Sweden
If anyone got the 8.1 / 8.11 source file called configure in order to compile to linux, I would be glad.

rep+ ofc.
 
there you go:
it's taken from my IRC Server, I dont know what libs 8.1 uses, so here:
create configure.in then put in it:
Code:
AC_INIT(otserv.cpp)

PACKAGE=otserv
VERSION=0.1.0

AM_INIT_AUTOMAKE($PACKAGE, $VERSION)

INTI_REQUIRED_VERSION=1.0.7
AC_SUBST(INTI_CFLAGS)
AC_SUBST(INTI_LIBS)
AC_CHECK_HEADERS(boost/thread.hpp)
AC_CHECK_HEADERS(boost/bind.hpp)
AC_CHECK_HEADERS(boost/asio.hpp)
AC_CHECK_LIB(boost_system-gcc-mt, main, , [
	AC_CHECK_LIB(boost_system-mt, main, , [
		AC_CHECK_LIB(boost_system, main, , [
			AC_MSG_ERROR("Linking against boost::system library failed.")
		])
	])
])

AC_CHECK_LIB(boost_thread-gcc-mt, main, , [
	AC_CHECK_LIB(boost_thread-mt, main, , [
		AC_CHECK_LIB(boost_thread, main, , [
			AC_MSG_ERROR("Linking against boost::thread library failed.")
		])
	])
])

AC_CHECK_LIB(cryptopp, main)
AC_CHECK_LIB(mysqlclient, main)

AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_STRUCT_TM
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])

AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_REALLOC
AC_CHECK_FUNCS([ceil floor ftime gethostbyname gethostname memset pow sqrt strcasecmp strncasecmp strstr strtol])

AC_PROG_CXX

AC_OUTPUT(Makefile)

echo Configure is now complete type make to build it
then create Makefile.am and put in it:
Code:
bin_PROGRAMS = otserv

AM_CXXFLAGS =  $(INTI_CFLAGS) -D__DEBUG__
#put your sources here 
otserv_SOURCES = 
otserv_LDADD = $(INTI_LIBS)
then run "autoconf configure.in" then ./configure
 
Back
Top