mirror of https://gitlab.com/ita1024/waf.git
xsubpp misconfiguration on redhat systems
This commit is contained in:
parent
0c0e0388a0
commit
ba7295d555
|
@ -63,7 +63,6 @@ def check_perl_version(self, minver=None):
|
|||
minver is supposed to be a tuple
|
||||
"""
|
||||
res = True
|
||||
|
||||
if minver:
|
||||
cver = '.'.join(map(str,minver))
|
||||
else:
|
||||
|
@ -75,11 +74,10 @@ def check_perl_version(self, minver=None):
|
|||
|
||||
if not perl:
|
||||
perl = self.find_program('perl', var='PERL')
|
||||
|
||||
if not perl:
|
||||
self.end_msg("Perl not found", color="YELLOW")
|
||||
return False
|
||||
|
||||
|
||||
self.env['PERL'] = perl
|
||||
|
||||
version = self.cmd_and_log(self.env.PERL + ["-e", 'printf \"%vd\", $^V'])
|
||||
|
@ -141,9 +139,14 @@ def check_perl_ext_devel(self):
|
|||
env['LINKFLAGS_PERLEXT'] = cfg_lst('$Config{lddlflags}')
|
||||
env['INCLUDES_PERLEXT'] = cfg_lst('$Config{archlib}/CORE')
|
||||
env['CFLAGS_PERLEXT'] = cfg_lst('$Config{ccflags} $Config{cccdlflags}')
|
||||
env['XSUBPP'] = cfg_lst('$Config{privlib}/ExtUtils/xsubpp$Config{exe_ext}')
|
||||
env['XSUBPP'] = xsubpp = cfg_lst('$Config{privlib}/ExtUtils/xsubpp$Config{exe_ext}')
|
||||
env['EXTUTILS_TYPEMAP'] = cfg_lst('$Config{privlib}/ExtUtils/typemap')
|
||||
|
||||
if len(xsubpp) == 1 and not os.path.isfile(xsubpp[0]):
|
||||
# oh Fedora
|
||||
env.XSUBPP = []
|
||||
self.find_program('xsubpp')
|
||||
|
||||
if not getattr(Options.options, 'perlarchdir', None):
|
||||
env['ARCHDIR_PERL'] = cfg_str('$Config{sitearch}')
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue