parrotcode: Configuration Step Utilities | |
Contents | Perl Modules |
Parrot::Configure::Utils - Configuration Step Utilities
The Parrot::Configure::Utils
module contains utility functions for use by the configuration step classes found under config/.
The subroutines found in this module do not require the Parrot::Configure object as an argument. Those subroutines formerly found in this module which do require the Parrot::Configure object as an argument have been moved into Parrot::Configure::Compiler.
_run_command($command, $out, $err)
$out
,
warnings and errors are directed to the file specified by $err
._build_compile_command( $cc, $ccflags, $cc_args )
integrate($orig, $new)
$new
into $orig
.
Returns $orig
if $new
is undefined.prompt($message, $value)
ENTER
.file_checksum($filename, $ignore_pattern)
$ignore_pattern
are not included in the checksum.copy_if_diff($from, $to, $ignore_pattern)
$from
to the location specified by $to
if its contents have changed.$ignore_pattern
is passed to file_checksum()
when comparing the files.move_if_diff($from, $to, $ignore_pattern)
$from
to the location specified by $to
if its contents have changed.capture_output($command)
check_progs([$programs])
$programs
may be either a scalar with the name of a single program or an array ref of programs to search the current PATH
for.
The first matching program name is returned or undef
on failure.
Note: this function only returns the name of the program and not its complete path.autoconf
's AC_CHECK_PROGS
macro._slurp($filename)
$filename
into memory and returns it as a string.
|