Merge branch 'minor'
[automake.git] / lib / Automake / Config.in
blob4abef3dbf6dd22a2e0dd44f533a5bef965576516
1 #  -*- Perl -*-
2 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
3 # @configure_input@
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)
8 # any later version.
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;
19 use strict;
21 use 5.006;
22 require Exporter;
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; })
40   {
41     use Config;
42     $perl_threads = $Config{useithreads};
43   }
47 ### Setup "GNU" style for perl-mode and cperl-mode.
48 ## Local Variables:
49 ## perl-indent-level: 2
50 ## perl-continued-statement-offset: 2
51 ## perl-continued-brace-offset: 0
52 ## perl-brace-offset: 0
53 ## perl-brace-imaginary-offset: 0
54 ## perl-label-offset: -2
55 ## cperl-indent-level: 2
56 ## cperl-brace-offset: 0
57 ## cperl-continued-brace-offset: 0
58 ## cperl-label-offset: -2
59 ## cperl-extra-newline-before-brace: t
60 ## cperl-merge-trailing-else: nil
61 ## cperl-continued-statement-offset: 2
62 ## End: