# -*- Autoconf -*- # This file is part of fileserv. # Copyright (C) 2017, 2018 Sergey Poznyakoff # # Fileserv is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # Fileserv is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with fileserv. If not, see . AC_INIT([fileserv], 0.2.90, [gray+fileserv@gnu.org.ua]) AC_CONFIG_SRCDIR([src/fileserv.c]) AM_INIT_AUTOMAKE([1.11 foreign tar-ustar dist-xz silent-rules]) # Enable silent rules by default: AM_SILENT_RULES([yes]) # Checks for programs. AC_PROG_CC AC_PROG_RANLIB AC_PROG_YACC if ! $YACC --version 2>/dev/null | grep -q '^bison '; then YACC="$SHELL $missing_dir/missing bison" fi AC_PROG_LEX if ! $LEX --version 2>/dev/null | grep -q '^flex '; then LEX="$SHELL $missing_dir/missing flex" AC_SUBST([LEX_OUTPUT_ROOT], [lex.yy]) AC_SUBST([LEXLIB], ['']) fi AC_CHECK_LIB([microhttpd],[MHD_start_daemon],[], [AC_MSG_ERROR([required library microhttpd not found Please see https://www.gnu.org/software/libmicrohttpd for download instructions.])]) AC_CHECK_LIB([pthread],[pthread_sigmask]) AC_CHECK_LIB([wrap], [main]) AC_CHECK_LIB([nsl], [main]) AM_CONDITIONAL([FSRV_WRAP],[test x$ac_cv_lib_wrap_main = xyes]) AM_MISSING_PROG([AUTOM4TE],[autom4te]) AC_CONFIG_TESTDIR([mimetypes/tests]) AC_CONFIG_FILES([mimetypes/tests/Makefile mimetypes/tests/atlocal]) AC_CONFIG_FILES([Makefile mimetypes/Makefile src/Makefile]) AC_OUTPUT