# This file is part of genrc. -*- Autoconf -*- # Copyright (C) 2018 Sergey Poznyakoff. # # Genrc 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. # # Genrc 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 genrc. If not, see . AC_PREREQ([2.69]) AC_INIT([genrc], [1.1], [gray@gnu.org]) AC_CONFIG_SRCDIR([src/genrc.c]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([1.11 foreign silent-rules]) AC_CONFIG_MACRO_DIR(grecs/am) # Enable silent rules by default AM_SILENT_RULES([yes]) # Checks for programs. AC_PROG_CC AC_PROG_RANLIB # Checks for libraries. AC_CHECK_LIB(pcre, main) # Checks for header files. AC_CHECK_HEADERS([getopt.h pcre.h]) # Checks for library functions. AC_CHECK_FUNCS([getdtablesize]) GRECS_SETUP(grecs, [all-parsers git2chg]) AM_CONDITIONAL([COND_PCRE], [test "$ac_cv_header_pcre_h" = yes && test "$ac_cv_lib_pcre_main" = yes]) if test -f /proc/$$/cmdline; then DEFAULT_PID_SOURCE='"PROC"' else DEFAULT_PID_SOURCE='"PS"' fi AC_DEFINE_UNQUOTED(DEFAULT_PID_SOURCE,$DEFAULT_PID_SOURCE, [Default PID source]) AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT