diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-10 13:03:03 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-10 13:03:03 -0600 |
commit | 899586da27ae7a85cea8637849a964a88f3df8b2 (patch) | |
tree | ed2ce938233aad12be11d1f7c423153bc6326ea0 | |
parent | 30686633eb66ebcee88adad37352fef6f9e77a92 (diff) | |
download | amarok-899586da27ae7a85cea8637849a964a88f3df8b2.tar.gz amarok-899586da27ae7a85cea8637849a964a88f3df8b2.zip |
Fix inotify detection
-rw-r--r-- | ConfigureChecks.cmake | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 0e143112..090c73b7 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -21,7 +21,25 @@ check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY ) check_include_file( stdint.h HAVE_STDINT_H ) check_include_file( systems.h HAVE_SYSTEMS_H ) -check_include_file( linux/inotify.h HAVE_INOTIFY ) + +##### check for inotify ########################### + +# if( WITH_INOTIFY ) + check_include_file( "inotify.h" INOTIFY_FOUND ) + check_include_file( "sys/inotify.h" INOTIFY_SYS_FOUND ) + if( NOT INOTIFY_FOUND ) + if( NOT INOTIFY_SYS_FOUND ) + message(FATAL_ERROR "\ninotify support was requested, but inotify was not found on your system" ) + endif( NOT INOTIFY_SYS_FOUND ) + endif( NOT INOTIFY_FOUND ) + if( INOTIFY_FOUND ) + set( HAVE_INOTIFY 1 ) + endif( INOTIFY_FOUND ) + if( INOTIFY_SYS_FOUND ) + set( HAVE_INOTIFY 1 ) + set( HAVE_SYS_INOTIFY 1 ) + endif( INOTIFY_SYS_FOUND ) +# endif( ) check_function_exists( statvfs HAVE_STATVFS ) |