configure.ac 906 Bytes
Newer Older
1 2 3
AC_INIT([telnet-site], [0.4], [https://gitlab.com/mb])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([configure.ac])
mbionchi's avatar
mbionchi committed
4
AC_CONFIG_HEADERS([config.h])
5
AC_PROG_CC
mbionchi's avatar
mbionchi committed
6
AC_PROG_CC_STDC
7
AC_CONFIG_FILES([Makefile src/Makefile])
8

mbionchi's avatar
mbionchi committed
9
AC_ARG_ENABLE([follow-links],
10
              AS_HELP_STRING([--disable-follow-links], [Disable following symbolic links when reading content files]))
mbionchi's avatar
mbionchi committed
11
AS_IF([test "x$enable_follow_links" != "xno"], [
12
       AC_DEFINE([FOLLOW_LINKS], [], [Follow symbolic links when traversing directories])
mbionchi's avatar
mbionchi committed
13
])
14 15 16 17 18 19 20 21 22 23 24

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])
      ])

25
AC_OUTPUT