BSON-XS
view release on metacpan or search on metacpan
inc/BSONConfig.pm view on Meta::CPAN
262263264265266267268269270271272273274275276277278279280281282# 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 )