From: Yu Watanabe Date: Thu, 3 May 2018 09:07:43 +0000 (+0900) Subject: timedatectl: add timesync-status and show-timesync commands X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dce6bf50cb716938ab0caf3efd2bf505dc7b091e;p=elogind.git timedatectl: add timesync-status and show-timesync commands Closes #1589. --- diff --git a/meson.build b/meson.build index ef7071094..cf5db8b52 100644 --- a/meson.build +++ b/meson.build @@ -1405,6 +1405,13 @@ foreach term : ['utmp', m4_defines += have ? ['-D' + name] : [] endforeach +if get_option('timedated') or get_option('timesyncd') + conf.set10('ENABLE_TIMEDATECTL', true) + m4_defines += ['-DENABLE_TIMEDATECTL'] +else + conf.set10('ENABLE_TIMEDATECTL', false) +endif + want_tests = get_option('tests') install_tests = get_option('install-tests') slow_tests = get_option('slow-tests') @@ -2131,12 +2138,15 @@ endif # install_rpath : rootlibexecdir, # install : true, # install_dir : rootlibexecdir) +# endif # +# if conf.get('ENABLE_TIMEDATECTL') == 1 # exe = executable('timedatectl', # 'src/timedate/timedatectl.c', # include_directories : includes, # install_rpath : rootlibexecdir, # link_with : [libshared], +# dependencies : [libm], # install : true) # public_programs += [exe] # endif