summaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2011-11-28configure: check for msync() for portability reasonsTheodore Ts'o1-1/+1
Turns out the Hurd defines MS_SYNC but doesn't define msync(). Go figure. So check for both. Reported by Svante Signell. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-11-14Make quota support disabled by supportTheodore Ts'o1-80/+15
Quota support can be enabled using --enable-quota. There are still some buglets that we need to fix up before it can be considered 100% supported, so let's disable it for the 1.42 release. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-10-04libquota: clean up some gcc -Wall warningsTheodore Ts'o1-2/+2
Remove unused variables, places where 'return' was used with no value in a non-void function, missing function declarations, etc. Don't assume that all systems have quotactl(), and use <sys/quota.h> if it exists to define the quotactl interfaces. One of the unused variables also got rid of a non-portable use of PATH_MAX. Cc: Aditya Kali <adityakali@google.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-09-18debian: add support for multiarchTheodore Ts'o1-0/+9
Enhance the debian build rules so it will create multiarch compliant packages on those distributions that have support for it. Also remove e2initrd-helper from the e2fsprogs package since no one uses it any more. Also update the debian policy standards version to 3.9.2. Addresses-Debian-Bug: #632169 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-09-18Shorten compile commands run by the build systemTheodore Ts'o1-449/+578
The DEFS line in MCONFIG had gotten so long that it exceeded 4k, and this was starting to cause some tools heartburn. It also made "make V=1" almost useless, since trying to following the individual commands run by make was lost in the noise of all of the defines. So fix this by putting the configure-generated defines in lib/config.h and the directory pathnames to lib/dirpaths.h. In addition, clean up some vestigal defines in configure.in and in the Makefiles to further shorten the cc command lines. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-09-15e2fsprogs: Use punch hole as "discard" on regular filesLukas Czerner1-1/+1
If e2fsprogs tools (mke2fs, e2fsck) is run on regular file instead of on block device, we can use punch hole instead of regular discard command which would not work on regular file anyway. This gives us several advantages. First of all when e2fsck is run with '-E discard' parameter it will punch out all ununsed space from the image, hence trimming down the file system image. And secondly, when creating an file system on regular file (with '-E discard' which is default), we can use punch hole to clear the file content, hence we can skip inode table initialization, because reads from sparse area returns zeros. This will result in faster file system creation (without the need to specify lazy_itable_init) and smaller images. This commit also fixes some tests that would fail due to mke2fs showing discard progress, hence the output would differ. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2011-08-31e2fsprogs: add quota library to e2fsprogsAditya Kali1-1/+224
This patch adds the quota library (ported form Jan Kara's quota-tools) in e2fsprogs in order to make quotas as a first class supported feature in Ext4. This patch also provides interface in lib/quota/mkquota.h that will be used by mke2fs, tune2fs, e2fsck, etc. to initialize and update quota files. This first version of the quota library does not support reading existing quota files. This support will be added in the near future. Thanks to Jan Kara for his work on quota-tools. Most of the files in this patch are taken as-is from quota tools and were simply modified to work with libext2fs in e2fsprogs. Signed-off-by: Aditya Kali <adityakali@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2011-08-11e2fsck: catch termination signals and print information about themTheodore Ts'o1-2/+7
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-12-24configure: control whether e4defrag is built/installed via --disable-defragTheodore Ts'o1-0/+24
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2010-12-16e4defrag: Fix the overflow in e4defrag with > 2GB filesTheodore Ts'o1-1/+1
The fallocate() interface on 32-bit machines is defined to use off_t, not loff_t (even though the system call interface is 64-bit clean). This causes e4defrag to fail on files greater than 2GB. Fix this by trying to use fallocate64(), and using the hard-coded syscall if it does not exist. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-09-24Merge branch 'maint' into nextTheodore Ts'o1-96/+152
Conflicts: configure configure.in lib/ext2fs/ext2fs.h misc/mke2fs.c
2010-08-01badblocks: Deal with UTF-8 characters in progress messageTheodore Ts'o1-96/+152
Addresses-Gentoo-Bug: #309909 Addresses-Debian-Bug: #583782 Addresses-Debian-Bug: #587834 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-06-07Merge branch 'maint' into nextTheodore Ts'o1-1/+49
Conflicts: e2fsck/journal.c e2fsck/pass1.c e2fsck/pass2.c misc/mke2fs.c
2010-05-17Add configure options --enable-symlink-build and --enable-symlink-installTheodore Ts'o1-1/+49
These options allow e2fsprogs to be built using symlinks instead of hard links, and to be installed using symlinks instead of hard links, respectively. Addresses-Sourceforge-Bug: #1436294 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-01-31Merge branch 'maint' into nextTheodore Ts'o1-8680/+3030
Conflicts: configure lib/ext2fs/alloc_tables.c misc/mke2fs.c
2009-11-26configure: Work around bug in autoconf 2.64Theodore Ts'o1-8677/+3030
In autoconf 2.64, if AC_CHECK_LIB is first used in a conditional that evaluates to false, the helper function ac_fn_c_try_link gets defined inside that conditional, and then subsequent attempts to use ac_fn_c_try_link() will blow up. Work around this by moving an unconditional use of AC_CHECK_LIB to the beginning of configure.in. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-10-24Merge branch 'maint' into nextTheodore Ts'o1-1/+1
Conflicts: configure configure.in
2009-10-21configure.in: Fix typo: remove '2' from blkid_probe_get_topology2Eric Sandeen1-1/+1
I think vim <esc>wq turned into <esc>2wq or something; in any case blkid_probe_get_topology2 is not the right thing to search for. Signed-off-by: Eric Sandeen <sandeen@redhat.com>
2009-10-04Merge branch 'maint' into nextTheodore Ts'o1-1/+91
Conflicts: configure configure.in misc/mke2fs.c
2009-10-04mke2fs: get device topology values from blkidEric Sandeen1-1/+91
Handle automatic selection of stride/stripe: mke2fs 1.41.9 (22-Aug-2009) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=16 blocks, Stripe width=32 blocks ... And warn on block device misalignment: mke2fs 1.41.9 (22-Aug-2009) /dev/sdc1 alignment is offset by 32256 bytes. This may result in very poor performance, (re)-partitioning suggested. Proceed anyway? (y,n) Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-09-06configure.in, configure: Drop --with-cc, --with-ccopts, --with-ldoptsTheodore Ts'o1-42/+22
Remove the configure options --with-cc, --with-ccopts, --with-ldopts, and --with-ld (which never worked), since the first three can be replaced with CC=, CCFLAGS=, and LDFLAGS= on the configure command-line. The default for --with-cc caused the CC= to be overridden even with it was specified to the configure script. Addresses-Sourceforge-Bug: #2843248 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-09-07Merge branch 'maint' into nextTheodore Ts'o1-42/+22
2009-07-27e4defrag: remove a lot of cruftEric Sandeen1-1/+4
e4defrag.c had a lot of stuff copied into it from other places, redefinitions of existing interfaces, etc. We should be able to remove most of this, as the tool only works on recent kernels anyway, we should just pick up definitions from recent kernel headers whenever possible. I've left the local definitions of fallocate, fadvise (changed to posix_fadvise) and sync_file_range, and wrapped them in #ifdef configure-time tests - though really it seems like only fallocate should be necessary by now, and perhaps the others can be dropped. We still need some Makefile work so that it won't try to build e4defrag if the right pieces aren't there (and if the local definitions won't work...) Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-18Fix intl/ build: add E/Q/V macros, process intl/libgnuintl.hMatthias Andree1-1/+2
These were found necessary to build on FreeBSD 6.4. Signed-off-by: Matthias Andree <matthias.andree@gmx.de> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-07-02Enhance build system so that "make V=1" works like the Linux KernelTheodore Ts'o1-0/+31
If gmake is available, the developer can use "make V=1" instead of using a configure-time switch, --enable-verbose-makecmds, to see all of the commands executed by the Makefile. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-07-02Add support for configure --enable-verbose-makecmdsTheodore Ts'o1-0/+29
Some people don't want to see the concise "kernel-style" make output. This configure option allows build engines that want to see the full set of commands executed by the makefile to get what they want. Most people will find this more distracting than useful, unless they need to debug the Makefiles. (It is not necessary to rerun configure to enable this verbose make output temprarily; if a developer wants to do a quick debug of a directory's makefile, he or she can simply edit the definition of the $(E) and $(Q) variables in the Makefile; instructions can be found in the MCONFIG file which is included in at the beginning of every Makefile.) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-06-29configure.in: add --disable-libuuid optionScott James Remnant1-3075/+3820
Add an option to switch between the private (in-tree) libuuid and public (in-system installed) library. The private version is still enabled by default. Signed-off-by: Scott James Remnant <scott@netsplit.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2009-04-22configure.in: add --disable-libblkid optionTheodore Ts'o1-3/+270
Add an option to switch between the private (in-tree) libblkid and public (in-system installed) library. The private version is still enabled by default. If --disable-libblkid is specified the findfs(8) program, which is a variant of tune2fs, is also not built or installed. Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-04-15libuuid: Close all file descriptors before running uuiddTheodore Ts'o1-1/+3
This avoids problems when the calling program has open file descriptors (especially sockets) open. Also fix up some warn_unused_result warnings from gcc. Addresses-Launchpad-bug: #305057 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-09-12libcom_err: Use sem_post/sem_init to prevent race conditionsTheodore Ts'o1-2/+301
SuSE has been carrying a patch for a long time to prevent a largely theoretical race condition if a multi-threaded application adds and removes error tables in multiple threads. Unfortunately SuSE's approach breaks compatibility by forcing applications to link and compile with the -pthread option; using pthread mutexes has historically been problematic. This commit fixes things in a more portable way by using sem_post/sem_wait instead, which is an older interface that doesn't require the pthreads library. Linux happens to implement sem_post/sem_init using futexes, and -lrt ends up pulling in -lpthread, but the advantage of using POSIX semaphores is that applications don't have to be built using -pthread, unlike the use of pthread mutexes. The add_error_table() and remove_error_table() interfaces are the preferred interfaces and locking protection have been added to only these interfaces. I have not added locking protection to the generated initialize_xxx_error_table and initialize_xxx_error_table_r interfaces, to avoid adding symbol dependencies that would cause a library to fail to work when linking against older com_err libraries that do not export et_list_lock() and et_list_unlock(). Threaded applications shouldn't be using these interfaces in any case. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-09-02Improve ELF shared library handlingTheodore Ts'o1-4/+13
Pass in -rpath-link option to the linker so that blkid will build correctly on systems that don't have libcom_err.so.2 installed. Fix debugfs to only try to link with -ldl when building without shared libraries; with ELF shared libraries, the library which requires -ldl (libss.so) can required the library dependency itself. Fix how we build tune2fs.static so that we use @LDFLAG_STATIC@, via $(LDFLAGS_STATIC), instead of hard-coding the use of -static. Addresses-Sourceforge-Bug: #2088537 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-09-01Enable test_io debugging by defaultTheodore Ts'o1-5/+15
Test I/O debugging is incredibly useful for rooting out problems, so let's enable by default, especially now that its overhead is only incurred when it is needed. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-26Remove use of devmapper library by the blkid libraryTheodore Ts'o1-261/+2
The devmapper library is no longer needed given commit f4e89bcd. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-22configure.in: Respect LDFLAGS environment variable if passed into configureTheodore Ts'o1-2/+0
If the --with-ldopts option is not passed on the command line, respect the LDFLAGS environment variable instead of forcing LDFLAGS to be unset. "configure --help" documents LDFLAGS as part of the standard configure script calling convention. Addresses-Sourceforge-Feature-Request: #1937287 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-22libuuid: Windows portability fixesTheodore Ts'o1-1/+2
Make the uuid library (more) portable for Windows. Addresses-Sourceforge-Feature-Request: #1937287 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-22configure.in: use AC_MSG_{RESULT,WARN,ERROR} instead of echoTheodore Ts'o1-71/+141
This gives us standard behavior when using flags such as --quiet, and gives us standard warning output when showing warnings and errors. Addresses-Sourceforge-Patches: #2058794 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-13badblocks: If nanosleep() does not exist, try using usleep() insteadTheodore Ts'o1-1/+3
For portability on systems that don't have nanosleep(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-13blkid: Add new option -L which pretty-prints the device listTheodore Ts'o1-1/+2
Also accessed via -o list, this new output format is much more user-friendly and lists whether or not a particular device is mounted. Addresses-Debian-Bug #490527 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-10Don't use thread local storage if using diet libcTheodore Ts'o1-2/+10
...because the diet libc doesn't support TLS. Addresses-Sourceforge-Bug: #2000654 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-07debian: Create debian release tarball to obey new WIP naming conventionTheodore Ts'o1-2/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-06-07Merge branch 'maint'Theodore Ts'o1-6/+26
Conflicts: configure
2008-06-07Fix ext2fs_swap{16,32,64} for external applications on big-endian machinesTheodore Ts'o1-6/+26
The public header files depend on the the autoconf defines WORDS_BIGENDIAN and HAVE_SYS_TYPES_H, so we add them to ext2_types.h so that external programs which try to use ext2fs_swap*() will work correctly on big-endian systems. Fortunately, few if any programs need to use this libext2's byte-swap functions directly. Addresses-Debian-Bug: #484879 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-05-21Merge branch 'maint'Theodore Ts'o1-9/+0
Conflicts: README version.h
2008-05-21Remove default sizeof sizes in configure script when cross-compilingMaciej W. Rozycki1-9/+0
Since version 2.50 autoconf fully supports checking sizes of types (with AC_CHECK_SIZEOF) when cross-compiling. Therefore there is no need to preset the respective cache variables anymore. The following patch removes the special case. There is no need to adjust AC_PREREQ as it's set to 2.50 already. Tested successfully cross-building for the mips64el-linux-gnu host on an i386-linux-gnu build system, removing the following warning (because of a mismatch for the "long" type): Sizeof(__U64__TYPEDEF) is 4 should be 8 Problem detected with asm_types.h Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-04-21Merge branch 'maint'Theodore Ts'o1-1/+55
Conflicts: configure
2008-04-21Fix "make docs" rule in Makefile for doc folder.Manish Katiyar1-1/+55
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-04-06Merge branch 'maint' into nextTheodore Ts'o1-1/+1
2008-04-01Remove bashism from configure scriptTheodore Ts'o1-1/+1
Thanks to Mike Frysinger for pointing this out. Addresses-Sourceforge-Bug: 1921969 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-17Merge branch 'maint' into nextTheodore Ts'o1-2/+4
2008-02-17Add portability checks to support DJGPPChristophe GRENIER1-1/+3
DJGPP lacks sys/select.h and sys/un.h; add header checks to be more portable. Signed-off-by: Christophe Grenier <grenier@cgsecurity.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>