Fixed <ntfs/*> include files check for the case of completely cleaned sourcedir.
authorshort <>
Tue, 4 Nov 2003 19:01:49 +0000 (19:01 +0000)
committershort <>
Tue, 4 Nov 2003 19:01:49 +0000 (19:01 +0000)
configure.in

index 0381ca5..0c92932 100644 (file)
@@ -380,7 +380,12 @@ GLADE_W_INIT([
 
                        have_libntfs_includes=true
                        AC_CHECK_HEADERS
+                       # '#include "config.h"' may be required by <ntfs/*> include files.
+                       test -r config.h || touch config.h
+                       captive_save_CPPFLAGS="$CPPFLAGS"
+                       CPPFLAGS="$CPPFLAGS -I."        # for "config.h" touched above
                        AC_CHECK_HEADERS(ntfs/types.h ntfs/volume.h,,[ have_libntfs_includes=false ])
+                       CPPFLAGS="$captive_save_CPPFLAGS"
                        if $have_libntfs_includes;then
 
                                captive_save_CPPFLAGS="$CPPFLAGS"