Commit 3219b51f authored by mbionchi's avatar mbionchi

add --enable-unicode to configure

parent bd1ae8da
......@@ -5,10 +5,21 @@ AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_PROG_CC_STDC
AC_CONFIG_FILES([Makefile src/Makefile])
AC_ARG_ENABLE([follow-links],
AS_HELP_STRING([--disable-follow-links], [Disable following symbolic links when reading site sections]))
AS_HELP_STRING([--disable-follow-links], [Disable following symbolic links when reading content files]))
AS_IF([test "x$enable_follow_links" != "xno"], [
AC_DEFINE([FOLLOW_LINKS], [], [Do not follow links when traversing directories])
AC_DEFINE([FOLLOW_LINKS], [], [Follow symbolic links when traversing directories])
])
PKG_CHECK_MODULES([ncurses], [ncurses])
AC_ARG_ENABLE([unicode],
AS_HELP_STRING([--enable-unicode], [Enable unicode support for content files (note: not filenames)]))
AS_IF([test "x$enable_unicode" = "xyes"],
[
PKG_CHECK_MODULES([ncurses], [ncursesw])
AC_DEFINE([ENABLE_WCHAR], [], [Enable wide character (unicode) support])
],[
PKG_CHECK_MODULES([ncurses], [ncurses])
])
AC_OUTPUT
......@@ -20,7 +20,6 @@
#endif
#include "data.h"
#include "module.h"
#include <dlfcn.h>
......
......@@ -18,6 +18,9 @@
#ifndef _TELNET_SITE_DATA_H
#define _TELNET_SITE_DATA_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <dirent.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment