Config.pm 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # This file was created by configpm when Perl was built. Any changes
  2. # made to this file will be lost the next time perl is built.
  3. # for a description of the variables, please have a look at the
  4. # Glossary file, as written in the Porting folder, or use the url:
  5. # http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/Glossary
  6. package Config;
  7. use strict;
  8. use warnings;
  9. use vars '%Config', '$VERSION';
  10. $VERSION = "5.022001";
  11. # Skip @Config::EXPORT because it only contains %Config, which we special
  12. # case below as it's not a function. @Config::EXPORT won't change in the
  13. # lifetime of Perl 5.
  14. my %Export_Cache = (myconfig => 1, config_sh => 1, config_vars => 1,
  15. config_re => 1, compile_date => 1, local_patches => 1,
  16. bincompat_options => 1, non_bincompat_options => 1,
  17. header_files => 1);
  18. @Config::EXPORT = qw(%Config);
  19. @Config::EXPORT_OK = keys %Export_Cache;
  20. # Need to stub all the functions to make code such as print Config::config_sh
  21. # keep working
  22. sub bincompat_options;
  23. sub compile_date;
  24. sub config_re;
  25. sub config_sh;
  26. sub config_vars;
  27. sub header_files;
  28. sub local_patches;
  29. sub myconfig;
  30. sub non_bincompat_options;
  31. # Define our own import method to avoid pulling in the full Exporter:
  32. sub import {
  33. shift;
  34. @_ = @Config::EXPORT unless @_;
  35. my @funcs = grep $_ ne '%Config', @_;
  36. my $export_Config = @funcs < @_ ? 1 : 0;
  37. no strict 'refs';
  38. my $callpkg = caller(0);
  39. foreach my $func (@funcs) {
  40. die qq{"$func" is not exported by the Config module\n}
  41. unless $Export_Cache{$func};
  42. *{$callpkg.'::'.$func} = \&{$func};
  43. }
  44. *{"$callpkg\::Config"} = \%Config if $export_Config;
  45. return;
  46. }
  47. die "$0: Perl lib version (5.22.1) doesn't match executable '$^X' version ($])"
  48. unless $^V;
  49. $^V eq 5.22.1
  50. or die sprintf "%s: Perl lib version (5.22.1) doesn't match executable '$^X' version (%vd)", $0, $^V;
  51. sub FETCH {
  52. my($self, $key) = @_;
  53. # check for cached value (which may be undef so we use exists not defined)
  54. return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
  55. }
  56. sub TIEHASH {
  57. bless $_[1], $_[0];
  58. }
  59. sub DESTROY { }
  60. sub AUTOLOAD {
  61. require 'Config_heavy.pl';
  62. goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
  63. die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
  64. }
  65. # tie returns the object, so the value returned to require will be true.
  66. tie %Config, 'Config', {
  67. ar => 'x86_64-arago-linux-ar',
  68. archlibexp => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/perl/5.22.1/',
  69. archname => 'x86_64-linux',
  70. cc => 'x86_64-arago-linux-gcc ',
  71. cccdlflags => '-fPIC',
  72. ccdlflags => '-Wl,-E -Wl,-rpath,/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/perl/5.22.1//CORE',
  73. d_flexfnam => 'define',
  74. d_link => 'define',
  75. d_readlink => 'define',
  76. d_symlink => 'define',
  77. dlext => 'so',
  78. dlsrc => 'dl_dlopen.xs',
  79. dont_use_nlink => undef,
  80. eunicefix => ':',
  81. exe_ext => '',
  82. full_ar => 'x86_64-arago-linux/x86_64-arago-linux-ar',
  83. inc_version_list => ' ',
  84. installman1dir => '',
  85. installman3dir => '',
  86. installprivlib => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/perl/5.22.1',
  87. installscript => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin',
  88. installsitearch => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/perl/site_perl/5.22.1/',
  89. installsitebin => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin',
  90. installsiteman1dir => '',
  91. installsiteman3dir => '',
  92. installvendorman1dir => '',
  93. installvendorman3dir => '',
  94. intsize => '4',
  95. ld => 'x86_64-arago-linux-gcc ',
  96. lddlflags => '-Wl,-O1 -fstack-protector -shared',
  97. ldflags => '-Wl,-O1 -fstack-protector',
  98. ldlibpthname => 'LD_LIBRARY_PATH',
  99. lib_ext => '.a',
  100. libc => 'libc-2.21.so',
  101. libpth => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/lib',
  102. obj_ext => '.o',
  103. osname => 'linux',
  104. osvers => '3.19.5-yocto-standard',
  105. path_sep => ':',
  106. privlibexp => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/perl/5.22.1',
  107. ranlib => ':',
  108. scriptdir => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/bin',
  109. sitearchexp => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/perl/site_perl/5.22.1/',
  110. sitelibexp => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/perl/site_perl/5.22.1',
  111. so => 'so',
  112. useithreads => 'define',
  113. usevendorprefix => 'define',
  114. vendorarchexp => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/perl/vendor_perl/5.22.1/',
  115. vendorlibexp => '/opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/linux-devkit/sysroots/x86_64-arago-linux/usr/lib/perl/vendor_perl/5.22.1',
  116. version => '5.22.1',
  117. };