2 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <https://www.gnu.org/licenses/>.
18 package Automake::Config;
24 our @ISA = qw (Exporter);
25 our @EXPORT = qw ($APIVERSION $PACKAGE $PACKAGE_BUGREPORT $VERSION
26 $RELEASE_YEAR $libdir $perl_threads);
28 # Parameters set by configure. Not to be changed. NOTE: assign
29 # VERSION as string so that e.g. version 0.30 will print correctly.
30 our $APIVERSION = '@APIVERSION@';
31 our $PACKAGE = '@PACKAGE@';
32 our $PACKAGE_BUGREPORT = '@PACKAGE_BUGREPORT@';
33 our $VERSION = '@VERSION@';
34 our $RELEASE_YEAR = '@RELEASE_YEAR@';
35 our $libdir = $ENV{"AUTOMAKE_LIBDIR"} || '@datadir@/@PACKAGE@-@APIVERSION@';
37 our $perl_threads = 0;
38 # We need at least this version for CLONE support.
39 if (eval { require 5.007_002; })
42 $perl_threads = $Config{useithreads};