getting it to compile on linux...

This commit is contained in:
psyc://psyced.org/~lynX 2011-08-23 19:13:08 +02:00
parent adc7990a40
commit 912a78bcd6
3 changed files with 24 additions and 27 deletions

15
INSTALL
View File

@ -95,20 +95,13 @@ Unix or Unix-like system
install-headers: install the driver header files in ${includedir}.
install-all: compile and install everything.
To actually run this, you need either psyced or a mudlib.
To actually use psyclpc, you need either psyced or a mudlib.
pthreads:
If your systems supports pthreads, --enable-use-pthreads will allow to
compile the driver with pthread support. Currently this means that
background threads will be used to write data to the network.
WARNING: pthreads support is still experimental and might crash
your driver!
Debian/Ubuntu Linux:
apt-get install libssl-dev libidn11-dev libpcre3 bison autoconf
FreeBSD:
When using gcc, it could happen that the compiler aborts with signal 10
or 11. The reasons are unknown, but you can restart the compilation
process by typing "make" again (and again...).
...
AIX 3.4:
The native compiler comes in several forms, of which only the

4
TODO
View File

@ -3,6 +3,10 @@ FROM LDMUD
that we are active in. syncing with ldmud is a good idea.
BUGS
- configure should warn more vehemently when libidn is missing
- libpsyc isnt recognized even if properly installed
- x86_64 seems to require -ldl explicitly at the end of libs
- sometimes -lpsyc and -lpcre are added twice to $LIBS !?
- should autoconf to sysmalloc also for osol (OpenSolaris)
- #define USE_EXPAT und JSON werden trotzdem gesetzt in config.h
auch wenn configure keine libs gefunden hat (egal, wir verwenden beide nicht)

View File

@ -1389,27 +1389,27 @@ int main(void)
lp_cv_need_lib_iconv=no,
lp_cv_need_lib_iconv=yes
))
if test "$lp_cv_need_lib_iconv" = "yes"; then
# Search the libraries
# if test "$lp_cv_need_lib_iconv" = "yes"; then
# # Search the libraries
tmp=""
# tmp=""
AC_CHECK_LIB(iconv,libiconv_close, tmp="$PKGLIBS -liconv")
# AC_CHECK_LIB(iconv,libiconv_close, tmp="$PKGLIBS -liconv")
if test "x$tmp" = "x"; then
CFLAGS="$saveflags -L/usr/local/lib"
AC_CHECK_LIB(iconv,libiconv_close, tmp="$PKGLIBS -L/usr/local/lib -liconv")
fi
# if test "x$tmp" = "x"; then
# CFLAGS="$saveflags -L/usr/local/lib"
# AC_CHECK_LIB(iconv,libiconv_close, tmp="$PKGLIBS -L/usr/local/lib -liconv")
# fi
if test "x$tmp" = "x"; then
echo "iconv library not found."
lp_cv_has_iconv="no"
else
PKGLIBS="$tmp"
fi
# if test "x$tmp" = "x"; then
# echo "iconv library not found."
# lp_cv_has_iconv="no"
# else
# PKGLIBS="$tmp"
# fi
CFLAGS="$saveflags"
fi
# CFLAGS="$saveflags"
# fi
fi
if test "x$lp_cv_has_iconv" = "xyes"; then