Copyright (C) 2000-2012 |
Manpages DevSection: User Contributed Perl Documentation (3)Updated: 2001-11-20 Index Return to Main Contents NAMEPDL::Core::Dev - PDL development moduleDESCRIPTIONThis module encapsulates most of the stuff useful for PDL development and is often used from within Makefile.PL's.SYNOPSISuse PDL::Core::Dev; if ($^O =~ /win32/i) { warn "Win32 systems not yet supported. Will not build PDL::IO::Browser"; write_dummy_make(unsupported('PDL::XXX','win32')); return; } FUNCTIONSisbigendianIs the machine big or little endian?
print "Your machins is big endian.\n" if isbigendian();returns 1 if the machine is big endian, 0 if little endian, or dies if neither. It uses the "byteorder" element of perl's %Config array.
my $retval = isbigendian(); trylinka perl configure clone
if (trylink 'libGL', '', 'char glBegin(); glBegin();', '-lGL') { $libs = '-lGLU -lGL'; $have_GL = 1; } else { $have_GL = 0; } $maybe = trylink 'libwhatever', $inc, $body, $libs, {MakeMaker=>1, Hide=>0};Try to link some C-code making up the body of a function with a given set of library specifiers return 1 if successful, 0 otherwise
trylink $infomsg, $include, $progbody, $libs [,{OPTIONS}];Takes 4 + 1 optional argument.
IndexThis document was created by man2html, using the manual pages. Time: 03:30:06 GMT, April 19, 2024 |