Because this information is not stored within the perl executable
itself it is possible (but unlikely) that the information does not
relate to the actual perl binary which is being used to access it.
The Config module is installed into the architecture and version
specific library directory ($Config{installarchlib}) and it checks the
perl version number when loaded.
The values stored in config.sh may be either single-quoted or
double-quoted. Double-quoted strings are handy for those cases where you
need to include escape sequences in the strings. To avoid runtime variable
interpolation, any $ and @ characters are replaced by \$ and
\@, respectively. This isn't foolproof, of course, so don't embed \$
or \@ in double-quoted strings unless you're willing to deal with the
consequences. (The slashes will end up escaped and the $ or @ will
trigger variable interpolation)
Most Config variables are determined by the Configure script
on platforms supported by it (which is most UNIX platforms). Some
platforms have custom-made Config variables, and may thus not have
some of the variables described below, or may have extraneous variables
specific to that particular port. See the port specific documentation
in such cases.
This variable is set to true if AFS (Andrew File System) is used
on the system, false otherwise. It is possible to override this
with a hint value or command line option, but you'd better know
what you are doing.
This variable holds the number of bytes required to align a
double-- or a long double when applicable. Usual values are
2, 4 and 8. The default is eight, for safety.
This variable contains the command which can be used to compute the
host name. The command is fully qualified by its absolute path, to make
it safe when used by a process with super-user privileges.
The three variables, api_revision, api_version, and
api_subversion, specify the version of the oldest perl binary
compatible with the present perl. In a full version string
such as 5.6.1, api_revision is the 5.
Prior to 5.5.640, the format was a floating point number,
like 5.00563.
F<perl.c>:incpush() and F<lib/lib.pm> will automatically search in
$F<sitelib/.>. for older directories back to the limit specified
by these api_ variables. This is only useful if you have a
perl library directory tree structured like the default one.
See C<INSTALL> for how this works. The versioned site_perl
directory was introduced in 5.005, so that is the lowest
possible value. The version list appropriate for the current
system is determined in F<inc_version_list.U>.
C<XXX> To do: Since compatibility can depend on compile time
options (such as bincompat, longlong, F<etc.>) it should
(perhaps) be set by Configure, but currently it isn't.
Currently, we read a hard-wired value from F<patchlevel.h>.
Perhaps what we ought to do is take the hard-wired value from
F<patchlevel.h> but then modify it if the current Configure
options warrant. F<patchlevel.h> then would use an #ifdef guard.
The three variables, api_revision, api_version, and
api_subversion, specify the version of the oldest perl binary
compatible with the present perl. In a full version string
such as 5.6.1, api_subversion is the 1. See api_revision for
full details.
The three variables, api_revision, api_version, and
api_subversion, specify the version of the oldest perl binary
compatible with the present perl. In a full version string
such as 5.6.1, api_version is the 6. See api_revision for
full details. As a special case, 5.5.0 is rendered in the
old-style as 5.005. (In the 5.005_0x maintenance series,
this was the only versioned directory in $sitelib.)
This variable combines api_revision, api_version, and
api_subversion in a format such as 5.6.1 (or 5_6_1) suitable
for use as a directory name. This is filesystem dependent.
This variable is used internally by Configure to determine the
full pathname (if any) of the ar program. After Configure runs,
the value is reset to a plain ar and is not useful.
This variable holds the name of the directory in which the user wants
to put architecture-dependent public library files for $package.
It is most often a local directory such as /usr/local/lib.
Programs using this variable must be prepared to deal
with filename expansion.
This variable defines any additional objects that must be linked
in with the program on this architecture. On unix, it is usually
empty. It is typically used to include emulations of unix calls
or other facilities. For perl on OS/2, for example, this would
include os2/os2.obj.
This variable is used internally by Configure to determine the
full pathname (if any) of the awk program. After Configure runs,
the value is reset to a plain awk and is not useful.
This variable holds the name of the directory in which the user wants
to put publicly executable images for the package in question. It
is most often a local directory such as /usr/local/bin. Programs using
this variable must be prepared to deal with ~name substitution.
This variable is used internally by Configure to determine the
full pathname (if any) of the byacc program. After Configure runs,
the value is reset to a plain byacc and is not useful.
This variable holds the byte order. In the following, larger digits
indicate more significance. The variable byteorder is either 4321
on a big-endian machine, or 1234 on a little-endian, or 87654321
on a Cray ... or 3412 with weird order !
This variable contains the \c string if that is what causes the echo
command to suppress newline. Otherwise it is null. Correct usage is
$echo $n ``prompt for a question: $c''.
This variable contains a flag that precise difficulties the
compiler has casting odd floating values to unsigned long:
0 = ok
1 = couldn't cast < 0
2 = couldn't cast >= 0x80000000
4 = couldn't cast in argument expression list
This variable is used internally by Configure to determine the
full pathname (if any) of the cat program. After Configure runs,
the value is reset to a plain cat and is not useful.
This variable holds the name of a command to execute a C compiler which
can resolve multiple global references that happen to have the same
name. Usual values are cc, Mcc, cc -M, and gcc.
This variable contains any special flags that might need to be
passed with cc -c to compile modules to be used to create a shared
library that will be used for dynamic loading. For hpux, this
should be +z. It is up to the makefile to use it.
This variable contains any special flags that might need to be
passed to cc to link with a shared library for dynamic loading.
It is up to the makefile to use it. For sunos 4.1, it should
be empty.
The variable contains the symbols defined by the C compiler alone.
The symbols defined by cpp or by cc when it calls cpp are not in
this list, see cppsymbols and cppccsymbols.
The list is a space-separated list of symbol=value tokens.
This variable is used internally by Configure to determine the
full pathname (if any) of the comm program. After Configure runs,
the value is reset to a plain comm and is not useful.
This variable holds the command to do a grep with a proper return
status. On most sane systems it is simply grep. On insane systems
it is a grep followed by a cat followed by a test. This variable
is primarily for the use of other Configure units.
This variable is used internally by Configure to determine the
full pathname (if any) of the cp program. After Configure runs,
the value is reset to a plain cp and is not useful.
This variable is used internally by Configure to determine the
full pathname (if any) of the cpp program. After Configure runs,
the value is reset to a plain cpp and is not useful.
The variable contains the symbols defined by the C compiler
when it calls cpp. The symbols defined by the cc alone or cpp
alone are not in this list, see ccsymbols and cppsymbols.
The list is a space-separated list of symbol=value tokens.
This variable contains the second part of the string which will invoke
the C preprocessor on the standard input and produce to standard
output. This variable will have the value - if cppstdin needs
a minus to specify standard input, otherwise the value is ``''.
This variable contains the command which will invoke a C preprocessor
on standard input and put the output to stdout. It is guaranteed not
to be a wrapper and may be a null string if no preprocessor can be
made directly available. This preprocessor might be different from the
one used by the C compiler. Don't forget to append cpplast after the
preprocessor options.
This variable contains the command which will invoke the C
preprocessor on standard input and put the output to stdout.
It is primarily used by other Configure units that ask about
preprocessor symbols.
The variable contains the symbols defined by the C preprocessor
alone. The symbols defined by cc or by cc when it calls cpp are
not in this list, see ccsymbols and cppccsymbols.
The list is a space-separated list of symbol=value tokens.
This variable conditionally defines the CROSSCOMPILE symbol
which signifies that the build process is be a cross-compilation.
This is normally set by hints files or from Configure command line.
This variable holds -lcrypt or the path to a libcrypt.a archive if
the crypt() function is not defined in the standard C library. It is
up to the Makefile to use this.
This variable is used internally by Configure to determine the
full pathname (if any) of the csh program. After Configure runs,
the value is reset to a plain csh and is not useful.
This variable conditionally defines ARCHLIB to hold the pathname
of architecture-dependent library files for $package. If
$archlib is the same as $privlib, then this is set to undef.
This variable conditionally defines BINCOMPAT5005 so that embed.h
can take special action if this version of Perl should be
binary-compatible with Perl 5.005. This is impossible for builds
that use features like threads and multiplicity it is always $undef
for those versions.
This variable conditionally defines USE_BSD_SETPGRP if
setpgrp needs two arguments whereas USG one needs none.
See also d_setpgid for a POSIX interface.
This variable conditionally defines CHARVSPRINTF if this system
has vsprintf returning type (char*). The trend seems to be to
declare it as ``int vsprintf()''.
This variable conditionally defines the CHSIZE symbol, which
indicates to the C program that the chsize() routine is available
to truncate files. You might need a -lx to get this routine.