Lines Matching +full:- +full:- +full:enable +full:- +full:libraries
16 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[[1-9]]$/s/^/0/')
17 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
18 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
45 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
50 *-WIP|pre-*)
71 AC_ARG_WITH([diet-libc],
72 [ --with-diet-libc use diet libc],
73 CC="diet cc -nostdinc"
75 if test -z "$LIBS"
77 LIBS="-lcompat"
79 LIBS="$LIBS -lcompat"
88 AC_CHECK_LIB(dl, dlopen,DLOPEN_LIB=-ldl)
92 AC_HELP_STRING([--with-cc],[no longer supported, use CC= instead]),
93 AC_MSG_ERROR([--with-cc no longer supported; use CC= instead]))
96 AC_HELP_STRING([--with-ccopts],[no longer supported, use CFLAGS= instead]),
97 AC_MSG_ERROR([--with-ccopts no longer supported; use CFLAGS= instead]))
100 AC_HELP_STRING([--with-ldopts],[no longer supported, use LDFLAGS= instead]),
101 AC_MSG_ERROR([--with-ldopts no longer supported; use LDFLAGS= instead]))
105 RDYNAMIC="-rdynamic"
116 alpha) addcflags="-mieee" ;;
137 AC_ARG_WITH([root-prefix],
138 [ --with-root-prefix=PREFIX override prefix variable for files to be placed in the root],
142 dnl handle --enable-maintainer-mode
144 AC_ARG_ENABLE([maintainer-mode],
145 [ --enable-maintainer-mode enable makefile rules useful for maintainers],
160 dnl handle --enable-symlink-install
162 AC_ARG_ENABLE([symlink-install],
163 [ --enable-symlink-install use symlinks when installing instead of hard links],
166 LINK_INSTALL_FLAGS=-f
169 LINK_INSTALL_FLAGS=-sf
173 LINK_INSTALL_FLAGS=-f
178 dnl handle --enable-relative-symlinks
181 AC_ARG_ENABLE([relative-symlinks],
182 [ --enable-relative-symlinks use relative symlinks when installing],
189 SYMLINK_RELATIVE=--relative
193 AC_ARG_ENABLE([symlink-relative-symlinks],,
199 SYMLINK_RELATIVE=--relative
203 if test -z "$relative_symlink_defined"
211 dnl handle --enable-symlink-build
213 AC_ARG_ENABLE([symlink-build],
214 [ --enable-symlink-build use symlinks while building instead of hard links],
220 LINK_BUILD_FLAGS=-s
229 dnl handle --enable-verbose-makecmds
231 AC_ARG_ENABLE([verbose-makecmds],
232 [ --enable-verbose-makecmds enable verbose make command output],
255 dnl This needs to be before all of the --enable-*-shlibs options
257 E2_PKG_CONFIG_STATIC=--static
261 dnl handle --enable-elf-shlibs
263 AC_ARG_ENABLE([elf-shlibs],
264 [ --enable-elf-shlibs select ELF shared libraries],
269 AC_MSG_RESULT([Disabling ELF shared libraries])
273 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
276 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
282 LDFLAG_DYNAMIC=['-Wl,-rpath-link,$(top_builddir)/lib']
283 AC_MSG_RESULT([Enabling ELF shared libraries])
288 AC_MSG_RESULT([Disabling ELF shared libraries by default])
293 dnl handle --enable-bsd-shlibs
295 AC_ARG_ENABLE([bsd-shlibs],
296 [ --enable-bsd-shlibs select BSD shared libraries],
301 AC_MSG_RESULT([Disabling BSD shared libraries])
305 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
309 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
313 AC_MSG_RESULT([Enabling BSD shared libraries])
318 AC_MSG_RESULT([Disabling BSD shared libraries by default])
323 dnl handle --enable-profile
326 [ --enable-profile build profiling libraries],
331 AC_MSG_RESULT([Disabling profiling libraries])
336 AC_MSG_RESULT([Building profiling libraries])
341 AC_MSG_RESULT([Disabling profiling libraries by default])
346 dnl handle --enable-gcov
349 [ --enable-gcov build for coverage testing using gcov],
352 CFLAGS="-g -fprofile-arcs -ftest-coverage"
353 LDFLAGS="-fprofile-arcs -ftest-coverage"
358 dnl handle --enable-hardening
360 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
361 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
362 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
363 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
365 [ --enable-hardening build for coverage testing using gcov],
368 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
369 HARDEN_LDFLAGS=["-Wl,-z,relro -Wl,-z,now"]
370 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
372 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
373 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
388 dnl handle --enable-jbd-debug
390 AC_ARG_ENABLE([jbd-debug],
391 [ --enable-jbd-debug enable journal debugging],
404 dnl handle --enable-blkid-debug
406 AC_ARG_ENABLE([blkid-debug],
407 [ --enable-blkid-debug enable blkid debugging],
420 dnl handle --enable-testio-debug
422 AC_ARG_ENABLE([testio-debug],
423 [ --disable-testio-debug disable the use of the test I/O manager for debugging],
442 dnl handle --disable-libuuid
453 [ --enable-libuuid build and use private uuid library],
456 if test -z "$PKG_CONFIG"; then
457 AC_MSG_ERROR([pkg-config not installed; please install it.])
461 [LIBUUID=`$PKG_CONFIG --libs uuid`;
462 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`],
477 if test -n "$PKG_CONFIG"; then
479 [LIBUUID=`$PKG_CONFIG --libs uuid`;
480 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`])
482 if test -n "$LIBUUID"; then
504 dnl handle --disable-libblkid
516 [ --enable-libblkid build and use private blkid library],
519 if test -z "$PKG_CONFIG"; then
520 AC_MSG_ERROR([pkg-config not installed; please install it.])
524 [LIBBLKID=`$PKG_CONFIG --libs blkid`;
525 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`],
526 [AC_MSG_ERROR([external blkid library not found])], -luuid)
541 if test -n "$PKG_CONFIG"; then
543 [LIBBLKID=`$PKG_CONFIG --libs blkid`;
544 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`])
546 if test -n "$LIBBLKID"; then
569 dnl handle --enable-subset
574 [ --enable-subset enable subset-only build],
578 AC_MSG_RESULT([Disabling subset-only build])
581 AC_MSG_RESULT([Enabling subset-only-build])
587 dnl handle --disable-backtrace
591 [ --disable-backtrace disable use backtrace],
603 dnl handle --enable-debugfs
606 [ --disable-debugfs disable support of debugfs program],
621 dnl handle --enable-imager
624 [ --disable-imager disable support of e2image program],
639 dnl handle --enable-resizer
642 [ --disable-resizer disable support of e2resize program],
657 dnl handle --enable-defrag
660 [ --disable-defrag disable support of e4defrag program],
670 if test -z "$WITH_DIET_LIBC"
684 [ --enable-fsck build fsck wrapper program],
707 dnl See whether to install the `e2initrd-helper' program
709 AC_ARG_ENABLE([e2initrd-helper],
710 [ --enable-e2initrd-helper build e2initrd-helper program],
729 [ --disable-tls disable use of thread local support],
739 if test -n "$WITH_DIET_LIBC"
757 [ --disable-uuidd disable building the uuid daemon],
769 if test -z "$UUID_CMT"
780 dnl handle --disable-mmp
782 AH_TEMPLATE([CONFIG_MMP], [Define to 1 to enable mmp support])
784 [ --disable-mmp disable support mmp, Multi Mount Protection],
797 dnl handle --disable-tdb
799 AH_TEMPLATE([CONFIG_TDB], [Define to 1 to enable tdb support])
801 [ --disable-tdb disable tdb support],
822 dnl handle --disable-bmap-stats
824 AH_TEMPLATE([ENABLE_BMAP_STATS], [Define to 1 to enable bitmap stats.])
825 AC_ARG_ENABLE([bmap-stats],
826 [ --disable-bmap-stats disable collection of bitmap stats.],
839 dnl handle --enable-bmap-stats-ops
841 AH_TEMPLATE([ENABLE_BMAP_STATS_OPS], [Define to 1 to enable bitmap stats.])
842 AC_ARG_ENABLE([bmap-stats-ops],
843 [ --enable-bmap-stats-ops enable collection of additional bitmap stats],
850 AC_MSG_FAILURE([Error --enable-bmap-stats-ops requires bmap-stats]))
981 if test -n "$DD" ; then
986 AC_MSG_WARN([No GNU-compatible dd(1) program found, expect some self-test failures.])
1023 dnl Warning! Use of --enable-gcc-wall may throw off this test.
1054 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
1056 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
1076 rm -f tmp_config.$$
1117 dnl This will add -lblkid to the AC_CHECK_FUNCS search if we are using
1118 dnl the system-provided blkid library
1120 if test -n "$BLKID_CMT"; then
1124 if test -n "$DLOPEN_LIB" ; then
1194 dnl Check to see if -lsocket is required (solaris) to make something
1198 AC_CHECK_LIB(socket, socket, [SOCKET_LIB=-lsocket])
1203 AC_CHECK_LIB(magic, magic_file, [MAGIC_LIB=-lmagic
1212 AC_CHECK_LIB(rt, clock_gettime, [CLOCK_GETTIME_LIB=-lrt])
1215 dnl Check to see if the FUSE library is -lfuse or -losxfuse
1221 [ --disable-fuse2fs do not build fuse2fs],
1241 AC_CHECK_LIB(osxfuse, fuse_main, [FUSE_LIB=-losxfuse],
1242 [AC_CHECK_LIB(fuse, fuse_main, [FUSE_LIB=-lfuse],
1255 if test -z "$FUSE_CMT"
1257 AC_CHECK_LIB(osxfuse, fuse_main, [FUSE_LIB=-losxfuse],
1258 [AC_CHECK_LIB(fuse, fuse_main, [FUSE_LIB=-lfuse], [FUSE_CMT="#"])])
1260 if test -z "$FUSE_CMT"
1289 SEM_INIT_LIB=-lpthread,
1292 SEM_INIT_LIB=-lrt,
1295 SEM_INIT_LIB=-lposix4))))dnl
1302 if diff -u $0 $0 > /dev/null 2>&1 ; then
1303 UNI_DIFF_OPTS=-u
1305 UNI_DIFF_OPTS=-c
1318 dnl Enable LTO for all packages
1321 [ --enable-lto enable link time optimization],,
1327 LTO_FLAGS="-g -flto -ffat-lto-objects"
1334 [AC_PATH_PROG(gcc_ar, gcc-ar,,)]
1335 [AC_PATH_PROG(gcc_ranlib, gcc-ranlib,,)],
1337 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
1352 dnl Enable UBSAN for all packages
1355 [ --enable-ubsan enable undefined behavior sanitizer],,
1361 UBSAN_FLAGS="-fsanitize=undefined"
1380 dnl Enable ADDRSAN for all packages
1383 [ --enable-addrsan enable address sanitizer],,
1389 ADDRSAN_FLAGS="-fsanitize=address"
1408 dnl Enable THREADSAN for all packages
1411 [ --enable-threadsan enable thread sanitizer],,
1417 THREADSAN_FLAGS="-fsanitize=thread"
1439 dnl OS-specific uncomment control
1465 linux* | gnu* | k*bsd*-gnu)
1466 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
1476 linux* | gnu* | k*bsd*-gnu)
1528 [ --with-multiarch=ARCH specify the multiarch triplet],
1539 dnl See if -static works. This could fail if the linker does not
1540 dnl support -static, or if required external libraries are not available
1543 AC_MSG_CHECKING([whether we can link with -static])
1545 [SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
1550 dnl Regardless of how the test turns out, Solaris doesn't handle -static
1552 dnl requires the -dl library, which only works for dynamically linked
1563 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
1590 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
1591 if test -n "$CPPFLAGS" ; then
1595 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
1597 if test -n "$WITH_DIET_LIBC" ; then
1598 INCLUDES="$INCLUDES -D_REENTRANT"
1605 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
1611 dnl Define CFLAGS and LDFLAGS for shared libraries
1613 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
1614 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
1615 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
1624 [AS_HELP_STRING([--with-udev-rules-dir@<:@=DIR@:>@],
1634 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
1641 AS_IF([test -n "${pkg_udev_rules_dir}"],
1661 [AS_HELP_STRING([--with-crond-dir@<:@=DIR@:>@],
1669 AS_IF([test -d "/etc/cron.d"],
1674 AS_IF([test -n "${crond_dir}"],
1694 [AS_HELP_STRING([--with-systemd-unit-dir@<:@=DIR@:>@],
1704 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
1712 AS_IF([test -n "${systemd_system_unit_dir}"],
1732 test -d lib || mkdir lib
1733 test -d include || mkdir include
1734 test -d include/linux || mkdir include/linux
1735 test -d include/asm || mkdir include/asm
1736 if test -z "$UUID_CMT" ; then
1740 if test -z "$BLKID_CMT" ; then
1745 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
1754 if test -d `dirname ${srcdir}/$i` ; then
1759 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi