* configure.ac: Remove support for --enable-fs and --disable-fs.
Remove support for --enable-Werror and --disable-Werror.
* README: Remove paragraph about --disable-fs and
--enable-discovery-only.
* libparted/libparted.c: Now that --disable-fs is gone (i.e.,
ENABLE_FS would be always 1), remove its #ifdefs.
(3) When space is important, we suggest --without-readline, --disable-shared,
and possibly --disable-nls and --disable-dynamic-loading.
-
-If Parted is only going to be used for probing / discovery (and not
-"editing"), there is a --enable-discovery-only and --disable-fs (when you're
-only interested in partition tables). Since it's readonly, --enable-debug
-gains you nothing wrt safety, so use --disable-debug ;) The "discover"
-program is about 35k (gzipped) when compiled this way (not counting libc
-and libuuid).
)
fi
-AC_ARG_ENABLE([fs],
- [ --enable-fs include filesystem support [default=yes]], ,
- enable_fs=yes
-)
-if test "$enable_fs" = yes; then
- AC_DEFINE([ENABLE_FS], [1],
- [Include file system support. i.e. libparted/fs_...])
-fi
-
AC_ARG_ENABLE([debug],
[ --enable-debug compile in assertions [default=yes]], ,
enable_debug=yes
collisions with msdos partition tables])
fi
-AC_ARG_ENABLE([Werror],
- [ --enable-Werror build with gcc -Werror [default=yes]], ,
- enable_Werror=yes
-)
-
AC_ARG_ENABLE([hfs-extract-fs],
[ --enable-hfs-extract-fs Extract special HFS files for debugging [default=no]], ,
enable_hfs_extract_fs=no
AC_CHECK_FUNCS([canonicalize_file_name])
-# CFLAGS="$CFLAGS -W -Wall -Wno-unused -Wno-switch -Wno-format"
-
-if test "$enable_Werror" = yes; then
- CFLAGS="$CFLAGS -Werror"
-fi
-
DATE=$(date '+%d %b %Y %H:%M')
USER=$(whoami)
HOST=$(hostname)
ped_disk_aix_init ();
}
-#ifdef ENABLE_FS
extern void ped_file_system_amiga_init (void);
extern void ped_file_system_xfs_init (void);
extern void ped_file_system_ufs_init (void);
ped_file_system_ext2_init ();
ped_file_system_nilfs2_init ();
}
-#endif /* ENABLE_FS */
extern void ped_disk_aix_done ();
extern void ped_disk_bsd_done ();
#endif
init_disk_types ();
-
-#ifdef ENABLE_FS
init_file_system_types ();
-#endif
ped_set_architecture ();
#ifdef DEBUG
memset (dodgy_memory_active, 0, sizeof (dodgy_memory_active));
#endif
}
-#ifdef ENABLE_FS
extern void ped_file_system_nilfs2_done (void);
extern void ped_file_system_ext2_done (void);
extern void ped_file_system_fat_done (void);
ped_file_system_xfs_done ();
ped_file_system_amiga_done ();
}
-#endif /* ENABLE_FS */
static void _done() __attribute__ ((destructor));
_done()
{
ped_device_free_all ();
-
done_disk_types ();
-
-#ifdef ENABLE_FS
done_file_system_types ();
-#endif
}
const char*