mirror of
https://gitlab.gnome.org/GNOME/evince
synced 2024-07-05 00:59:07 +00:00
build: Ony fail to build DVI by missing libkpathsea
libspectre usage in the dvi backend is used conditionally on a cairo device. Therefore, the lack of headers for libspectre should not disable the support for DVI files.
This commit is contained in:
parent
70cfab1923
commit
9560397180
|
@ -372,7 +372,7 @@ endif
|
|||
|
||||
# *** DVI ***
|
||||
kpathsea_dep = cc.find_library('kpathsea', required: get_option('dvi'))
|
||||
enable_dvi = libspectre_dep.found() and kpathsea_dep.found() and cc.has_function('kpse_init_prog', dependencies: kpathsea_dep)
|
||||
enable_dvi = kpathsea_dep.found() and cc.has_function('kpse_init_prog', dependencies: kpathsea_dep)
|
||||
if enable_dvi
|
||||
config_h.set10('STDC_HEADERS', true)
|
||||
|
||||
|
@ -395,7 +395,7 @@ if enable_dvi
|
|||
backends += {'dvi': mime_types_list.get('dvi')}
|
||||
evince_mime_types += mime_types_list.get('dvi')
|
||||
elif get_option('dvi').auto()
|
||||
warning('Dvi support is disabled since kpathsea library or libspectre are not found. Check your installation.')
|
||||
warning('Dvi support is disabled since kpathsea library was not found. Check your installation.')
|
||||
endif
|
||||
|
||||
# *** PDF ***
|
||||
|
|
Loading…
Reference in New Issue
Block a user