diff --git a/meson.build b/meson.build
index 0174dc8b599517650b243b3c7494858fdd65ad7d..e05744b53e9791469ff7aee17745f6a458282938 100644
--- a/meson.build
+++ b/meson.build
@@ -508,7 +508,9 @@ _include_search_paths = [
     '/usr/local/include',
 ] 
 foreach idir : _include_search_paths
+    message('search ' + idir)
     _ret = run_command('meson/directory_exists.sh',idir).returncode()
+    message('ret = ' + _ret.to_string())
     if _ret == 0
         inc_arg = idir
         _Inc_arg = '-I' + idir
@@ -516,12 +518,16 @@ foreach idir : _include_search_paths
                                              args: _Inc_arg)
             my_incdirs += [inc_arg]
             found = true
+            message('found')
         endif
     endif
 endforeach
 
 incdirs += [ my_incdirs ]
 
+_i = ' '.join(my_incdirs)
+message('Incdirs are ' + _i)
+
 ############################################################
 # features which are converted into preprocessor flags (-D)
 #