## DYNAMIC PREREQS ###########################################################
-if (! parse_args()->{PUREPERL_ONLY}) {
- # we require Cpanel::JSON::XS whenever a compiler is available.
- # (we also always recommend Cpanel::JSON::XS, just to make sure.)
- $MM_ARGS{PREREQ_PM}{'Cpanel::JSON::XS'} = '2.3310'
- if eval { require Cpanel::JSON::XS; 1 }
- or can_compile_loadable_object(quiet => 1);
-
- # JSON::XS 3 changed its boolean handling - update it
- # if JSON::XS is installed and < 3.0
- $MM_ARGS{PREREQ_PM}{'JSON::XS'} = '3.00'
- if eval { require JSON::XS; 1 }
- and not eval { JSON::XS->VERSION('3.0'); 1 };
+if (! parse_args()->{PUREPERL_ONLY} && can_compile_loadable_object(quiet => 1)) {
+ $MM_ARGS{PREREQ_PM}{'Cpanel::JSON::XS'} = '2.3310';
}
use Text::ParseWords;