mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #1244 from ailin-nemui/empty-perl-lib
error out on empty perlmodlib, for example non-existant vendor
This commit is contained in:
commit
cfc2ddf56a
@ -403,6 +403,7 @@ int main()
|
|||||||
with_perl_lib = 'vendor'
|
with_perl_lib = 'vendor'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
perlmoddir = ''
|
||||||
if with_perl_lib in ['site', 'vendor', 'module']
|
if with_perl_lib in ['site', 'vendor', 'module']
|
||||||
set_perl_use_lib = false
|
set_perl_use_lib = false
|
||||||
perl_library_dir = with_perl_lib + ' default'
|
perl_library_dir = with_perl_lib + ' default'
|
||||||
@ -426,7 +427,8 @@ int main()
|
|||||||
set_perl_use_lib = true
|
set_perl_use_lib = true
|
||||||
perl_library_dir = 'custom'
|
perl_library_dir = 'custom'
|
||||||
perlmoddir = with_perl_lib
|
perlmoddir = with_perl_lib
|
||||||
else
|
endif
|
||||||
|
if perlmoddir == ''
|
||||||
error('Unrecognised with-perl-lib value: ' + with_perl_lib)
|
error('Unrecognised with-perl-lib value: ' + with_perl_lib)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user