Edit

kc3-lang/automake/lib/Automake/Config.in

Branch :

  • Show log

    Commit

  • Author : Zack Weinberg
    Date : 2020-08-31 18:31:04
    Hash : 5cafaafd
    Message : perl: use warnings instead of -w; consistent ordering of use, etc. Per thread at: https://lists.gnu.org/archive/html/automake-patches/2020-08/msg00009.html * bin/aclocal.in: use warnings instead of #!...-w; consistent ordering of basic "use" directives, then BEGIN block, then standard modules in ASCII order, then Automake:: modules (not sort), finally use vars. Also sort @ISA lists and use qw(...) in ASCII order. * bin/automake.in: likewise. * lib/Automake/ChannelDefs.pm: likewise. * lib/Automake/Channels.pm: likewise. * lib/Automake/Condition.pm: likewise. * lib/Automake/Config.in: likewise. * lib/Automake/Configure_ac.pm: likewise. * lib/Automake/DisjConditions.pm: likewise. * lib/Automake/FileUtils.pm: likewise. * lib/Automake/General.pm: likewise. * lib/Automake/Getopt.pm: likewise. * lib/Automake/Item.pm: likewise. * lib/Automake/ItemDef.pm: likewise. * lib/Automake/Language.pm: likewise. * lib/Automake/Location.pm: likewise. * lib/Automake/Options.pm: likewise. * lib/Automake/Rule.pm: likewise. * lib/Automake/RuleDef.pm: likewise. * lib/Automake/VarDef.pm: likewise. * lib/Automake/Variable.pm: likewise. * lib/Automake/Version.pm: likewise. * lib/Automake/Wrap.pm: likewise. * lib/Automake/XFile.pm: remove unnecessary imports of Carp, DynaLoader, and File::Basename.

  • lib/Automake/Config.in
  • #  -*- Perl -*-
    # Copyright (C) 2003-2020 Free Software Foundation, Inc.
    # @configure_input@
    
    # This program 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 2, or (at your option)
    # any later version.
    
    # This program 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 this program.  If not, see <https://www.gnu.org/licenses/>.
    
    package Automake::Config;
    
    use 5.006;
    use strict;
    use warnings FATAL => 'all';
    
    use Exporter;
    
    our @ISA = qw (Exporter);
    our @EXPORT = qw ($APIVERSION $PACKAGE $PACKAGE_BUGREPORT $VERSION
                      $RELEASE_YEAR $libdir $perl_threads);
    
    # Parameters set by configure.  Not to be changed.  NOTE: assign
    # VERSION as string so that e.g. version 0.30 will print correctly.
    our $APIVERSION = '@APIVERSION@';
    our $PACKAGE = '@PACKAGE@';
    our $PACKAGE_BUGREPORT = '@PACKAGE_BUGREPORT@';
    our $VERSION = '@VERSION@';
    our $RELEASE_YEAR = '@RELEASE_YEAR@';
    our $libdir = $ENV{"AUTOMAKE_LIBDIR"} || '@datadir@/@PACKAGE@-@APIVERSION@';
    
    our $perl_threads = 0;
    # We need at least this version for CLONE support.
    if (eval { require 5.007_002; })
      {
        use Config;
        $perl_threads = $Config{useithreads};
      }
    
    1;