build: Add option to specify path to perl binary

This commit is contained in:
Rainer Müller
2018-03-23 01:36:35 +01:00
committed by TingPing
parent ee85129a9b
commit ed6f544572
4 changed files with 5 additions and 5 deletions

View File

@ -25,7 +25,7 @@ if get_option('with-perl-legacy-api')
perl_cflags += '-DOLD_PERL'
endif
perl = find_program('perl')
perl = find_program(get_option('with-perl'))
ret = run_command([perl, '-MExtUtils::Embed', '-e', 'ccopts'])
if ret.returncode() != 0