Check for unistd.h in waf, update cache on (un)install only

This commit is contained in:
Christian Dywan 2008-06-01 15:16:40 +02:00
parent 8495ffa571
commit 4e5afd5041

View file

@ -39,6 +39,8 @@ def configure (conf):
conf.check_pkg ('libxml-2.0', destvar='LIBXML', vnum='2.6', mandatory=True) conf.check_pkg ('libxml-2.0', destvar='LIBXML', vnum='2.6', mandatory=True)
conf.check_pkg ('libsexy', destvar='LIBSEXY', vnum='0.1', mandatory=True) conf.check_pkg ('libsexy', destvar='LIBSEXY', vnum='0.1', mandatory=True)
conf.check_header ('unistd.h', 'HAVE_UNISTD_H')
if conf.find_program ('convert', var='CONVERT'): if conf.find_program ('convert', var='CONVERT'):
icons = 'yes' icons = 'yes'
else: else:
@ -85,6 +87,7 @@ def build (bld):
install_files ('DATADIR', 'applications', 'midori.desktop') install_files ('DATADIR', 'applications', 'midori.desktop')
def shutdown (): def shutdown ():
if Params.g_commands['install'] or Params.g_commands['uninstall']:
dir = Common.path_install ('DATADIR', 'icons/hicolor') dir = Common.path_install ('DATADIR', 'icons/hicolor')
icon_cache_updated = False icon_cache_updated = False
if not Params.g_options.destdir: if not Params.g_options.destdir: