1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-09 06:20:45 +00:00

error out on empty perlmodlib, for example non-existant vendor

reported by Xogium
This commit is contained in:
Ailin Nemui 2021-01-03 23:07:27 +01:00
parent 581c43ed1e
commit 06396e9c8f

View File

@ -403,6 +403,7 @@ int main()
with_perl_lib = 'vendor'
endif
endif
perlmoddir = ''
if with_perl_lib in ['site', 'vendor', 'module']
set_perl_use_lib = false
perl_library_dir = with_perl_lib + ' default'
@ -426,7 +427,8 @@ int main()
set_perl_use_lib = true
perl_library_dir = 'custom'
perlmoddir = with_perl_lib
else
endif
if perlmoddir == ''
error('Unrecognised with-perl-lib value: ' + with_perl_lib)
endif