]>
err.no Git - util-linux/log
Karel Zak [Fri, 15 Jun 2007 13:55:10 +0000 (15:55 +0200)]
tests: add support for suid programs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 15 Jun 2007 13:47:22 +0000 (15:47 +0200)]
mount: rewrite getfs_by_specdir() without mem leaks
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 15 Jun 2007 13:24:45 +0000 (15:24 +0200)]
mount: fix typo in error message
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 15 Jun 2007 09:29:04 +0000 (11:29 +0200)]
tests: fix ts_fstab_add function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 15 Jun 2007 08:17:51 +0000 (10:17 +0200)]
tools: add codecheck-config that checks for {HAVE,ENABLE}_ orphans
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jun 2007 12:50:14 +0000 (14:50 +0200)]
getopt: remove old unused files
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jun 2007 12:43:41 +0000 (14:43 +0200)]
mcookie: remove non-linux code
Something like #ifdef __linux__ is non-sense in util-linux where
everything depend on linux.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jun 2007 11:55:37 +0000 (13:55 +0200)]
mkfs.cramfs: cleanup HAVE_ macros usage
It's bad to use any HAVE_* macros for anything other than
for build-system (autotools) stuff.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jun 2007 11:32:32 +0000 (13:32 +0200)]
build-sys: fix HAVE_NCURSES
The HAVE_NCURSES in config.h is required by the misc-utils/cal.c.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jun 2007 09:53:39 +0000 (11:53 +0200)]
swapon: cleanup PATH_ macros and tailing white-spaces
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 13 Jun 2007 19:43:41 +0000 (21:43 +0200)]
misc-utils: remove old cal test
Signed-off-by: Karel Zak <kzak@redhat.com>
Mike Frysinger [Wed, 13 Jun 2007 09:52:55 +0000 (05:52 -0400)]
swapon: fix swapon headers and syscalls
This patch scrubs anything related to SWAPON_NEEDS_TWO_ARGS as this is only
relevant for < linux-1.3.2 and i say it's about time we let it go.
I also cleaned up the system call fallback logic as the _syscall#() macros are
the deprecated interface in favor of the real syscall() function.
The asm/page.h gets the boot as nothing in swapon.c utilizes defines from it
while unistd.h gets always included as defines/functions are used from it other
than just swapon().
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Karel Zak [Tue, 12 Jun 2007 15:46:16 +0000 (17:46 +0200)]
cal: widechar code cleanup
This patch make widechar code (cal headers initialization) more
robust. That's possible to format wide char strings by swprintf() and
non-widechar version by sprintf(). This is better than the old
solution with wcscat().
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 12 Jun 2007 14:59:03 +0000 (16:59 +0200)]
docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 12 Jun 2007 14:45:32 +0000 (16:45 +0200)]
cal: ifdef cleanup, non-curses/tempcap code fixes
This patche:
- removes extra #ifdef-s,
- fixes \n usage when compiled without curses/termcap
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 12 Jun 2007 14:08:58 +0000 (16:08 +0200)]
cal: fix a segfault and -3m highlighting
Fixes a segfault for certain values of $TERM
Fixes alignment issues when the highlighted day (today)
is in the last week of the month.
Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 12 Jun 2007 11:26:05 +0000 (13:26 +0200)]
tests: add cal -y test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 12 Jun 2007 11:05:00 +0000 (13:05 +0200)]
tests: add cal -3 test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 12 Jun 2007 10:48:36 +0000 (12:48 +0200)]
tests: add cal -1 test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 11 Jun 2007 12:45:32 +0000 (14:45 +0200)]
tests: pass all arguments to ts_init, add ts_has_option function
This patch:
- replaces "$1" with "$*" for ts_init function
- add ts_has_option function
- removes some tailing white-spaces
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 5 Jun 2007 19:53:55 +0000 (21:53 +0200)]
docs: clean up TODO file and add a new resuest for 2.14
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 4 Jun 2007 13:16:18 +0000 (15:16 +0200)]
text-utils: fix the more command compilation against termcap
The build-sys (text-utils/Makefile.am) allows to compile against
ncurses and termcap. The termcap version is broken in more.c.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 4 Jun 2007 10:58:39 +0000 (12:58 +0200)]
sys-utils: add note about obsolete ramsize option to rdev.8
The 2.0.x kernels and newer dynamically allocate the ramdisk
and do not need this setting.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 31 May 2007 12:31:51 +0000 (14:31 +0200)]
fdisk: add GPT detection code
The GPT (GUID Partition Table) is unsupported by fdisk, sfdisk and
cfdisk. Unfortunately, the fdisk doesn't complain about GPT.. that's
dangerous, because user is able to blindly edit PT with unexpected
results.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2007 18:55:02 +0000 (20:55 +0200)]
fdisk: Makefile.am refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2007 15:57:30 +0000 (17:57 +0200)]
fdisk: cleanup full disk detection code
The full disk (e.g. /dev/hda) detection code is duplicated on two places and
the code doesn't work correctly with devices which don't support HDIO_GETGEO.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2007 15:41:14 +0000 (17:41 +0200)]
fdisk: fix "type qualifiers ignored on function return type"
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2007 15:10:43 +0000 (17:10 +0200)]
fdisk: use unsigned long long instead int for sectors
The patch is originally based on an old Suse patch.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2007 10:10:07 +0000 (12:10 +0200)]
mount: clean up info about NFS in mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2007 09:44:50 +0000 (11:44 +0200)]
mount: add note about fcntl/ioctl unreliability on NFS to mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 30 May 2007 09:42:55 +0000 (11:42 +0200)]
mount: add note about /etc/mtab unreliability to mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 May 2007 23:30:50 +0000 (01:30 +0200)]
tests: add mount by uuid with label in fstab
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 May 2007 23:29:25 +0000 (01:29 +0200)]
tests: add mount by uuid with devname in fstab
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 May 2007 23:28:06 +0000 (01:28 +0200)]
tests: add mount by label with uuid in fstab
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 May 2007 23:26:17 +0000 (01:26 +0200)]
tests: add mount by label with devname in fstab
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 May 2007 23:08:04 +0000 (01:08 +0200)]
tests: add mount by devname with uuid in fstab
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 May 2007 23:07:28 +0000 (01:07 +0200)]
tests: add mount by devname with label in fstab
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 May 2007 13:15:55 +0000 (15:15 +0200)]
tests: add more variants to {mount,fstab}-by-{label,uuid,devname}
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 May 2007 12:48:23 +0000 (14:48 +0200)]
mount: add support for mixed usage of SPECes
This patch improves a way how the mount works with SPECes (devname,
LABEL or UUID) and nodes (mountpoints) from command line.
The patch adds support for mixed usage of SPECes -- it means on
command line is different SPEC than in the /etc/fstab file. For
example:
command line:
mount LABEL=foo
fstab:
UID=
915b048a -998d-4ee5-9e6b-
7fcaaf34d3c5 /mnt/foo auto default
The mount command doesn't strictly require same SPEC on command line
and in fstab anymore. You can be more creative and mix UUID, LABEL
or device name.
This implementation is more effective that convert *all* entries from
/etc/fstab to a real devnames.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 May 2007 11:20:27 +0000 (13:20 +0200)]
mount: getfs_* (fstab) interface has to work with canonicalize()
The getfs_by_dir() and getfs_by_devname() have to be able to work
with canonicalized and also with non-canonicalized paths.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 25 May 2007 12:53:22 +0000 (14:53 +0200)]
tests: cleanup blkid cache after test device deinitialization
The libblkid reuses cached information when a cache entry is younger
than 2 secs. That's wrong, because util-linux tests use devices
more quickly.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 25 May 2007 11:33:22 +0000 (13:33 +0200)]
mount: use verbose mode instead debug mode
The patch:
commit
61d9d2ff1cb0e28e2b88099bbc5b919fa5004fce
Date: Wed Dec 27 23:35:56 2006 +0100
added debug mode to the mount command. It was mistake. It's better to
use old verbose mode instead a new debug mode. This patch transform
all staff from debug mode to to verbose mode.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 25 May 2007 10:28:49 +0000 (12:28 +0200)]
mount: parse SPEC before search in fstab
The mount blindly uses a SPEC from command line and tries to found the
SPEC in /etc/fstab. It's better to parse the SPEC and search by UUID,
LABEL or devname only.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 25 May 2007 09:09:44 +0000 (11:09 +0200)]
mount: clean up getfs* (fstab.c) interface
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 May 2007 22:04:24 +0000 (00:04 +0200)]
build-sys: minor fixes in configure.in
Signed-off-by: Karel Zak <kzak@redhat.com>
Stepan Kasal [Tue, 22 May 2007 11:00:23 +0000 (13:00 +0200)]
build-sys: factor out common parts from mount/Makefile.am
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 May 2007 20:00:01 +0000 (22:00 +0200)]
tests: add mount by devname from fstab
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 May 2007 19:44:14 +0000 (21:44 +0200)]
tests: add mount by UUID from fstab test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 May 2007 14:06:24 +0000 (16:06 +0200)]
tests: add mount by label from fstab test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 May 2007 14:01:55 +0000 (16:01 +0200)]
tests: add support for fstab modification
The patch adds ts_fstab_add and ts_fstab_clean routines.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 May 2007 09:46:32 +0000 (11:46 +0200)]
tests: add mount by devname test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 May 2007 13:00:54 +0000 (15:00 +0200)]
tests: add mount by LABEL test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 May 2007 12:31:51 +0000 (14:31 +0200)]
tests: fix Makefile.am (add missing tests)
The patch adds missing tests to Makefile.am.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 May 2007 12:28:01 +0000 (14:28 +0200)]
tests: add mount by UUID test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 May 2007 13:34:28 +0000 (15:34 +0200)]
tests: add ts_log and --verbose support
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 May 2007 13:00:22 +0000 (15:00 +0200)]
tests: "if [...]" clean up
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 May 2007 12:00:21 +0000 (14:00 +0200)]
tests: add swapon by devname test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 May 2007 11:54:43 +0000 (13:54 +0200)]
tests: add swapon by UUID test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 May 2007 11:49:15 +0000 (13:49 +0200)]
tests: simplify devices usage
The patch simplifies devices usage in the tests. The patch also improves
errors checking and reporting.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 May 2007 18:16:25 +0000 (20:16 +0200)]
tests: add functions for label, uuid and fstype detection
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 16 May 2007 00:07:07 +0000 (02:07 +0200)]
tests: code refactoring -- new ts_udev_loop_support function
The patch moves generic and duplicated code to a new
ts_udev_loop_support function.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 15 May 2007 23:38:13 +0000 (01:38 +0200)]
tests: code refactoring -- new ts_device_init function
The patch moves generic loop device (de)initialization code to
ts_device_init and ts_device_deinit functions.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 15 May 2007 22:41:14 +0000 (00:41 +0200)]
tests: code refactoring -- new ts_skip_nonroot function
The patch moves "if $UID != 0" test to a new function. That's better
than duplicate the code on many places.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 15 May 2007 10:34:39 +0000 (12:34 +0200)]
tests: fix dependence on blkid
The util-linux-ng tests have to be useful with blkid and also with
volume_id.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 14 May 2007 22:52:07 +0000 (00:52 +0200)]
mount: fsprobe: add libvolume_id support
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 9 May 2007 15:35:27 +0000 (17:35 +0200)]
mount: fsprobe: add libvolume_id support to configure.ac
The patch add new option --with-fsprobe=<name> (where the <name> is
blkid or volume_id). The blkid is default. The mount cannot be
compiled without a filesystem detection library.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 14 May 2007 22:22:56 +0000 (00:22 +0200)]
mount: fix has_* functions (CVE-2007-0822)
The functions have to check for NULL pointer.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 May 2007 10:10:57 +0000 (12:10 +0200)]
mount: fsprobe: use blkid cache only when really necessary
The blkid_get_cache() parses /etc/blkid.tab, it's better do it only
when we really need to resolve a spec (label or uuid).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 14 May 2007 12:31:28 +0000 (14:31 +0200)]
mount: fsprobe: make fsprobe_get_devname functions more generic
The blkid supports NAME=value parsing, but use the library for
this simple task is overkill. (The libblkid requires initialized
blkid cache all time, for all calls.)
This patch makes the fsprobe_get_devname_for_mounting() and
fsprobe_get_devname() generic for all fsprobe implementations.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 May 2007 09:21:35 +0000 (11:21 +0200)]
mount: fsprobe: rename the rest of API routines to fsprobe_*
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 9 May 2007 23:47:28 +0000 (01:47 +0200)]
mount: fsprobe: remove mount_guess_fstype.{c,h}
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 9 May 2007 14:29:27 +0000 (16:29 +0200)]
mount: fsprobe: remove non-blkid code
This patch removes old FS detection code and enables
blkid code only when HAVE_BLKID is defined.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 9 May 2007 13:38:16 +0000 (15:38 +0200)]
mount: fsprobe: rename files to fsprobe_*
Signed-off-by: Karel Zak <kzak@redhat.com>
Matthias Koenig [Mon, 7 May 2007 08:56:50 +0000 (10:56 +0200)]
disk-utils: fix libuuid usage in mkswap
Fix libuuid usage in mkswap.
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Karel Zak [Wed, 16 May 2007 11:55:02 +0000 (13:55 +0200)]
sys-utils: fix man page headers
The man pages have been moved from man8 to man1, but the
headers still refer to man1.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 16 May 2007 11:42:07 +0000 (13:42 +0200)]
docs: refresh AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Stepan Kasal [Tue, 15 May 2007 19:57:10 +0000 (21:57 +0200)]
mount: kill mount_guess_rootdev
It's not used.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Karel Zak [Wed, 16 May 2007 10:56:28 +0000 (12:56 +0200)]
build-sys: add AC_GNU_SOURCE
The widechar code doesn't compile correctly without _GNU_SOURCE (at
least according to reports from testers. I don't see the problem on
FC6.)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 16 May 2007 09:58:22 +0000 (11:58 +0200)]
build-sys: remove -fomit-frame-pointer
The -fomit-frame-pointer option makes debugging impossible on some
machines. It is automatically enabled by -O<n> optimizations.
Signed-off-by: Karel Zak <kzak@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:34 +0000 (20:46 +0200)]
build-sys: add Automake option dist-bzip2
We distribute .tar.bz2 along with .tar.gz .
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:33 +0000 (20:46 +0200)]
build-sys: in configure.ac, change "po" -> "$srcdir/po"
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:31 +0000 (20:46 +0200)]
build-sys: use dist_noinst_HEADERS in include/Makefile.am
It is slightly more appropriate.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:30 +0000 (20:46 +0200)]
build-sys: in the clean targets use "find ... | xargs rm -f"
"find ... -exec rm {}" is unnecessarily slow.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:29 +0000 (20:46 +0200)]
build-sys: remove po/Makevars.template from EXTRA_DIST
The is no point in distributing it.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:28 +0000 (20:46 +0200)]
build-sys: remove config/include-Makefile.am from EXTRA_DIST
It gets distributed automaticaly.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:27 +0000 (20:46 +0200)]
build-sys: do not use wildcards in EXTRA_DIST
Wildcards in EXTRA_DIST break "make dist" for vpath build.
But plain directory names are ok.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:26 +0000 (20:46 +0200)]
build-sys: use dist_usrbinexec_SCRIPTS in misc-utils/Makefile.am
A slightly more concise way to distribute the script "reset".
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:25 +0000 (20:46 +0200)]
build-sys: let configure instantiate the misc-utils/*.pl scripts
The substitution of @PERL@ is most done with AC_CONFIG_FILES.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:24 +0000 (20:46 +0200)]
build-sys: --prefix defaults to /usr
Use prefix=/usr as the default setting. If prefix is /usr, make
bindir and sbindir default to /bin and /sbin, respectively.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:23 +0000 (20:46 +0200)]
build-sys: set DISTCHECK_CONFIGURE_FLAGS in top-level makefile
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:22 +0000 (20:46 +0200)]
build-sys: make the getopt example directory relative to datadir
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:21 +0000 (20:46 +0200)]
build-sys: amend .gitignore
Add several built files to .gitignore files.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:20 +0000 (20:46 +0200)]
build-sys: remove swapargs.h, move the tests to main configure.ac
Do not use header swapargs.h, generated by script swap.configure;
use the standard AC_DEFINE method in configure.ac.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:19 +0000 (20:46 +0200)]
build-sys: replace AC_TRY_* by AC_*_IFELSE
The AC_TRY_* macros are deprecated. Following the suggestion from
autoupdate, I have replaced them by AC_*_IFELSE.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:18 +0000 (20:46 +0200)]
build-sys: s/AC_HELP_STRING/AS_HELP_STRING/
The macro has been renamed.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:17 +0000 (20:46 +0200)]
build-sys: do not use internal Autoconf variables
This is a cleanup of configure.ac removing the internal ac_cv_*
variables.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:16 +0000 (20:46 +0200)]
build-sys: merge adjacent AC_CONFIG_HEADERS and AC_CONFIG_FUNCS calls
Merge adjacent calls to AC_CONFIG_HEADERS--the generated configure is
then smaller. Likewise for AC_CONFIG_FUNCS.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:15 +0000 (20:46 +0200)]
build-sys: move -D flags to *_CPPFLAGS
Preprocessor options belong to *_CPPFLAGS; add $(AM_CPPFLAGS) as we
want to amend it, not override.
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:14 +0000 (20:46 +0200)]
build-sys: do not set with_foo twice
It's redundant to set with_slang=$withval, and similar.
(Inspect the generated configure; it contains
withval=$with_slang; with_slang=$withval
:-)
Signed-off-by: Stepan Kasal <skasal@redhat.com>
Stepan Kasal [Tue, 15 May 2007 18:46:13 +0000 (20:46 +0200)]
swapon: simplify an #if
Replace two immerced #ifdef's by an #if with a compound conditional.
Signed-off-by: Stepan Kasal <skasal@redhat.com>