X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=configure;h=6f4da1a1234bb60dc48030cdd40b59f7f7127ebe;hb=2ba05753f70db32618b4e97d5351aa4d359bcdee;hp=f5092e3b6fd93c57da3fbc24a4748862a930bf42;hpb=49715704499ad3c3fed48e304c016c07f124bde6;p=tools%2Fe2fsprogs.git diff --git a/configure b/configure index f5092e3..6f4da1a 100755 --- a/configure +++ b/configure @@ -640,7 +640,6 @@ CFLAGS_STLIB CFLAGS_SHLIB BUILD_LDFLAGS BUILD_CFLAGS -MKINSTALLDIRS INCLUDES DO_TEST_SUITE LDFLAGS_STATIC @@ -767,6 +766,8 @@ DEFRAG_CMT RESIZER_CMT IMAGER_CMT DEBUGFS_CMT +SUBSET_CMT +ALL_CMT BLKID_CMT DEPPROFILED_LIBBLKID PROFILED_LIBBLKID @@ -784,6 +785,7 @@ LIBUUID PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG +DEV_FEATURES_CMT TEST_IO_CMT PRIVATE_LIBS_CMT LDFLAG_DYNAMIC @@ -893,8 +895,10 @@ enable_hardening enable_jbd_debug enable_blkid_debug enable_testio_debug +enable_developer_features enable_libuuid enable_libblkid +enable_subset enable_backtrace enable_debugfs enable_imager @@ -1578,8 +1582,10 @@ Optional Features: --enable-jbd-debug enable journal debugging --enable-blkid-debug enable blkid debugging --disable-testio-debug disable the use of the test I/O manager for debugging + --enable-developer-features enable features for use by ext4 developers --enable-libuuid build and use private uuid library --enable-libblkid build and use private blkid library + --enable-subset enable subset-only build --disable-backtrace disable use backtrace --disable-debugfs disable support of debugfs program --disable-imager disable support of e2image program @@ -5165,6 +5171,30 @@ TEST_IO_CMT= fi +# Check whether --enable-developer-features was given. +if test "${enable_developer_features+set}" = set; then : + enableval=$enable_developer_features; +if test "$enableval" = "yes" +then + DEV_FEATURES_CMT= + $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5 +$as_echo "Enabling ext4 developer features" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5 +$as_echo "Disabling ext4 developer features" >&6; } + DEV_FEATURES_CMT="#" +fi + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5 +$as_echo "Disabling ext4 developer features by default" >&6; } +DEV_FEATURES_CMT= + +fi + + @@ -5694,6 +5724,25 @@ fi +ALL_CMT= +SUBSET_CMT= +# Check whether --enable-subset was given. +if test "${enable_subset+set}" = set; then : + enableval=$enable_subset; if test "$enableval" = "no" +then + SUBSET_CMT=# + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5 +$as_echo "Disabling subset-only build" >&6; } +else + ALL_CMT=# + { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5 +$as_echo "Enabling subset-only-build" >&6; } +fi + +fi + + + # Check whether --enable-backtrace was given. if test "${enable_backtrace+set}" = set; then : @@ -11640,6 +11689,7 @@ $as_echo "no" >&6; } fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s @@ -13090,12 +13140,13 @@ _ACEOF fi if test -n "$BLKID_CMT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 -$as_echo_n "checking for library containing blkid_probe_all... " >&6; } -if ${ac_cv_search_blkid_probe_all+:} false; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5 +$as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; } +if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then : $as_echo_n "(cached) " >&6 else - ac_func_search_save_LIBS=$LIBS + ac_check_lib_save_LIBS=$LIBS +LIBS="-lblkid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -13105,44 +13156,71 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #ifdef __cplusplus extern "C" #endif -char blkid_probe_all (); +char blkid_probe_get_topology (); int main () { -return blkid_probe_all (); +return blkid_probe_get_topology (); ; return 0; } _ACEOF -for ac_lib in '' blkid; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_blkid_probe_all=$ac_res +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_blkid_blkid_probe_get_topology=yes +else + ac_cv_lib_blkid_blkid_probe_get_topology=no fi rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_blkid_probe_all+:} false; then : - break + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -done -if ${ac_cv_search_blkid_probe_all+:} false; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5 +$as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; } +if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then : + +$as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h +fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5 +$as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; } +if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then : + $as_echo_n "(cached) " >&6 else - ac_cv_search_blkid_probe_all=no + ac_check_lib_save_LIBS=$LIBS +LIBS="-lblkid $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char blkid_probe_enable_partitions (); +int +main () +{ +return blkid_probe_enable_partitions (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_blkid_blkid_probe_enable_partitions=yes +else + ac_cv_lib_blkid_blkid_probe_enable_partitions=no fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 -$as_echo "$ac_cv_search_blkid_probe_all" >&6; } -ac_res=$ac_cv_search_blkid_probe_all -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5 +$as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; } +if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then : + +$as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h fi @@ -13150,7 +13228,7 @@ fi if test -n "$DLOPEN_LIB" ; then ac_cv_func_dlopen=yes fi -for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc +for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" @@ -13751,11 +13829,145 @@ $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h ;; esac + + if test "x$ac_cv_header_sys_mount_h" = x; then : + for ac_header in sys/mount.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_mount_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_MOUNT_H 1 +_ACEOF + +fi + +done + +fi + if test "x$ac_cv_header_sys_mount_h" = xno; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "error: sys/mount.h not present on your system! +See \`config.log' for more details" "$LINENO" 5; } +fi + $as_echo_n "checking for mount 'nosuid' option... " + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +void *temp = (void *)(MS_NOSUID); (void) temp; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h + + ac_cv_mount_nosuid=yes + $as_echo "yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +void *temp = (void *)(MNT_NOSUID); (void) temp; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h + + ac_cv_mount_nosuid=yes + $as_echo "yes" +else + ac_cv_mount_nosuid=no + $as_echo "no" + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + + if test "x$ac_cv_header_sys_mount_h" = x; then : + for ac_header in sys/mount.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_mount_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_SYS_MOUNT_H 1 +_ACEOF + +fi + +done + +fi + if test "x$ac_cv_header_sys_mount_h" = xno; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "error: sys/mount.h not present on your system! +See \`config.log' for more details" "$LINENO" 5; } +fi + $as_echo_n "checking for mount 'nodev' option... " + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +void *temp = (void *)(MS_NODEV); (void) temp; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h + + ac_cv_mount_nodev=yes + $as_echo "yes" +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main () +{ +void *temp = (void *)(MNT_NODEV); (void) temp; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h + + ac_cv_mount_nodev=yes + $as_echo "yes" +else + ac_cv_mount_nodev=no + $as_echo "no" + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + # Check whether --enable-lto was given. if test "${enable_lto+set}" = set; then : enableval=$enable_lto; else - enable_lto=probe + enable_lto=no fi if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then @@ -14185,19 +14397,6 @@ if test -n "$WITH_DIET_LIBC" ; then INCLUDES="$INCLUDES -D_REENTRANT" fi - - MKINSTALLDIRS= - if test -n "$ac_aux_dir"; then - case "$ac_aux_dir" in - /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; - *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; - esac - fi - if test -z "$MKINSTALLDIRS"; then - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" - fi - - if test $cross_compiling = no; then BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" BUILD_LDFLAGS="$LDFLAGS" @@ -14341,6 +14540,8 @@ if test "x${with_crond_dir}" != "xno"; then : if test -d "/etc/cron.d"; then : with_crond_dir="/etc/cron.d" +else + have_crond="no"; with_crond_dir="" fi fi @@ -14498,7 +14699,7 @@ if test -z "$BLKID_CMT" ; then blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ lib/blkid/blkid_types.h" fi -for i in MCONFIG Makefile e2fsprogs.spec \ +for i in MCONFIG Makefile \ util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \