BSON-XS

 view release on metacpan or  search on metacpan

inc/BSONConfig.pm  view on Meta::CPAN

262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# check for 64-bit
if ( $Config{use64bitint} ) {
    $ccflags .= " -DMONGO_USE_64_BIT_INT";
}
 
# check for big-endian
my $endianess = $Config{byteorder};
if ( $endianess == 4321 || $endianess == 87654321 ) {
    $ccflags .= " -DMONGO_BIG_ENDIAN=1 ";
    if ( $] lt '5.010' ) {
        die "OS unsupported: Perl 5.10 or greater is required for big-endian platforms";
    }
}
 
# needed to compile bson library
$ccflags .= " -DBSON_COMPILATION ";
 
my $conf = configure_bson();
 
if ( $conf->{BSON_WITH_OID32_PT} || $conf->{BSON_WITH_OID64_PT} ) {



( run in 0.227 second using v1.01-cache-2.11-cpan-e9199f4ba4c )