diff --git a/src/Makeall b/src/Makeall index 94c8a95a6..71a11c629 100755 --- a/src/Makeall +++ b/src/Makeall @@ -68,10 +68,16 @@ if [ "X${ARGV}" = "Xall" -o "X${ARGV}" = "Xrootcheck" -o "X${ARGV}" = "Xlibs" ]; # Checking for inotify if [ "X$OS" = "XLinux" ]; then - ls /usr/include/sys/inotify.h > /dev/null 2>&1 - if [ $? = 0 ]; then + #ls /usr/include/sys/inotify.h > /dev/null 2>&1 + #if [ $? = 0 ]; then + # echo "EEXTRA=-DUSEINOTIFY" >> Config.OS + #fi + + if [ -e /usr/include/sys/inotify.h ]; then echo "EEXTRA=-DUSEINOTIFY" >> Config.OS - fi + elif [ -e /usr/include/x86_64-linux-gnu/sys/inotify.h ]; then + echo "EEXTRA=-DUSEINOTIFY" >> Config.OS + fi fi