if BSD people put everything in /usr/local, why don't they tell gcc?

This commit is contained in:
psyc://loupsycedyglgamf.onion/~lynX 2016-08-10 17:44:50 +02:00
parent 1d0eaabeff
commit e3ddc0685d
4 changed files with 9 additions and 30 deletions

View File

@ -1261,7 +1261,6 @@ echo "--- libpsyc"
lp_cv_has_psyc_lib="no"
AC_CHECK_LIB(psyc,main, lp_cv_has_psyc_lib="yes")
# dont know why this fails on bsd, had to patch machine.h manually... FIXME
if test $lp_cv_has_psyc_lib = yes; then
LIBS="-lpsyc"
AC_CACHE_CHECK(for libpsyc functionality,lp_cv_has_psyc,
@ -1463,10 +1462,8 @@ int main(void)
fi
if test "x$tmp" = "x"; then
# echo "iconv library not found."
# lp_cv_has_iconv="no"
# FIXME: cheating here
PKGLIBS="$PKGLIBS -L/usr/local/lib -liconv"
echo "iconv library not found."
lp_cv_has_iconv="no"
else
PKGLIBS="$PKGLIBS $tmp"
fi

4
src/configure vendored
View File

@ -5,5 +5,9 @@ if test ! -f "configure-do" ; then
(cd autoconf;make)
fi
# some systems still expect you to manually add /usr/local.. c'mon!
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib"
# then run it with psyced defaults
settings/psyced $*

View File

@ -540,8 +540,7 @@ tls_global_init (void)
SSL_CTX_set_options(context, SSL_OP_NO_SSLv2);
if (SSL_CTX_set_cipher_list(context, "HIGH:!DSS:!aNULL@STRENGTH") != 1) {
debug_message("SSL_CTX_set_cipher_list failed."
, time_stamp());
debug_message("%s SSL_CTX_set_cipher_list failed.", time_stamp());
goto ssl_init_err;
}
@ -991,27 +990,6 @@ v_tls_init_connection (svalue_t *sp, int num_arg)
if (!tls_available)
errorf("tls_init_connection(): TLS layer hasn't been initialized.\n");
#if 1
if (num_arg > 0)
{
obj = argp->u.ob;
put_number(argp, 0); /* remove obj reference from the stack */
}
else
{
obj = ref_object(current_object, "tls_init_connection");
}
if (!O_SET_INTERACTIVE(ip, obj))
{
free_object(obj, "tls_init_connection");
errorf("Bad arg 1 to tls_init_connection(): "
"object not interactive.\n");
}
free_object(obj, "tls_init_connection");
/* ip has another reference to obj, so this is safe to do */
#else
if (num_arg > 0)
{
obj = argp->u.ob;
@ -1029,7 +1007,7 @@ v_tls_init_connection (svalue_t *sp, int num_arg)
errorf("Bad arg 1 to tls_init_connection(): "
"object not interactive.\n");
}
#endif
if (ip->tls_status != TLS_INACTIVE)
errorf("tls_init_connection(): Interactive already has a secure "
"connection.\n");

View File

@ -17,7 +17,7 @@ version_longtype="stable"
# A timestamp, to be used by bumpversion and other scripts.
# It can be used, for example, to 'touch' this file on every build, thus
# forcing revision control systems to add it on every checkin automatically.
version_stamp="Wed Aug 10 17:20:27 CEST 2016"
version_stamp="Wed Aug 10 17:23:36 CEST 2016"
# Okay, LDMUD is using 3.x.x so to avoid conflicts let's just use 4.x.x
version_major=4