summaryrefslogtreecommitdiffabout
path: root/configure.ac
blob: 90107a2506b8591c5e41155609839e347d51bf5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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 <http://www.gnu.org/licenses/>. 

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

Return to:

Send suggestions and report system problems to the System administrator.