# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.67])
-AC_INIT([NeonServ], [5.2], [bugs@pk910.de], [neonserv], [http://neonserv.krypton-bouncer.de])
+AC_INIT([NeonServ], [5.3], [bugs@pk910.de], [neonserv], [http://neonserv.krypton-bouncer.de])
AC_PREFIX_DEFAULT([~/neonserv])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_HEADERS([config.h])
AC_DEFINE([HAVE_SSL], 1, [Define if you are using SSL])
fi
+AC_CHECK_LIB(pthread, pthread_create, [
+ AC_CHECK_HEADERS(pthread.h, [
+ LIBS="$LIBS -lpthread"
+ AC_DEFINE([HAVE_THREADS], 1, [Define if you have Threads])
+ ])
+])
+
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug], [debug mode (compile using -O0 -Wall -Wshadow -Werror)])],
[CFLAGS='-g -O0 -Wall -Wshadow -Werror'],