summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: release++ (v2.28)Karel Zak2016-04-121-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix cap-ng configure flag handlingMike Frysinger2016-04-121-2/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build-sys: add --disable-logger and --disable-lsloginsRuediger Meier2016-04-061-3/+10
| | | | | | | | Now we are able to disable all programs which have systemd/journald support. This feature is needed by openSUSE packagers who are building util-linux in 2 stages to avoid build cycles. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* getopt: make sure setprogname provided by non-Linux systemKarel Zak2016-04-041-0/+1
| | | | | | | based on suggestion from Ruediger Meier. Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: happy new year...Karel Zak2016-03-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.28-rc2)Karel Zak2016-03-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: improve uuidd and script build conditionsRuediger Meier2016-03-131-1/+5
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: use AC_PROG_MKDIR_P and remove a few gnuismsRuediger Meier2016-03-131-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: add missing "not found" stringsRuediger Meier2016-03-131-2/+2
| | | | | | | Otherwise configure output looks like this: configure: WARNING: not found; not building cfdisk Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: fix again UL_SCANF_TYPE_MODIFIERRuediger Meier2016-03-131-6/+4Star
| | | | | | | | | | | | | | | | | This reverts commit c8494d88: "build-sys: fix UL_SCANF_TYPE_MODIFIER for icc" plus fix the check prog, because it found "%as" to be valid on systems where "%a" is used for float conversion. icc warns about "%ms" but it works anyways. Our AC_RUN_IFELSE prog should do it right now regardless of compiler warnings. Note "%ms" is POSIX.1-2008 standard but still not available on many systems. Maybe it's time to remove "%as" fallback for old glibc which is even less portable. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: release++ (v2.28-rc1)Karel Zak2016-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add and use openat build conditionalsRuediger Meier2016-03-071-1/+6
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* lib: provide fallback if mkostemp(3) missingRuediger Meier2016-02-291-0/+1
| | | | | | | It's missing on OSX. CC: Yuriy M. Kaminskiy <yumkam@gmail.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: chrt requires a sched_set* functionRuediger Meier2016-02-291-0/+7
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: add --disable-ipcrm --disable-ipcsRuediger Meier2016-02-291-2/+10
| | | | | | | | ipcs's source history looks like some people are using it on BSD but it won't build on most non-Linux systems. That's why it's nice let "./configure --disable-ipcrm --disable-ipcs" work. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: disable login-utils if shadow.h or utmp.h is missingRuediger Meier2016-02-291-4/+21
| | | | | | | | | | | | | Actually we could have also used UL_REQUIRES_LINUX because our utmp usage and the shadow.h header is unlikely to be portable. However only requiring these headers may help others who are curious what needs to be done to port something. Note, we could easily make the utmp stuff more portable by using utmpx which is POSIX standard and on LINUX (glibc) basically just renaming work. See getutxent(3). Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: build_init should check for flockRuediger Meier2016-02-291-1/+1
| | | | | | | To let a plain ./configure work on systems without create_timer(). see 254743e4 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: fix some includesRuediger Meier2016-02-291-1/+0Star
| | | | | | | | | features.h: any glibc header includes this already libgen.h: was unused there sys/uio.h: for writev(3p) sys/queue.h seems like it was never used Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: disable unused parameter warnings for some test progsRuediger Meier2016-02-231-0/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: fix typoRomain Naour2016-02-221-1/+1
| | | | | | | | | | | | When timer_create is available have_timer must be set to "yes". But instead have_time is used. Replace have_time by have_timer. Fixes: http://autobuild.buildroot.net/results/993/9935cd0522d4f978ba2e788a690f66790686b76b Signed-off-by: Romain Naour <romain.naour@gmail.com>
* lib: fix ismounted includes for FreeBSDRuediger Meier2016-02-181-0/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* include: check for sys/sysmacros.hRuediger Meier2016-02-181-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* include: provide MAP_ANONYMOUS on OSXRuediger Meier2016-02-181-0/+6
| | | | | | | Hope there are no side effect when defining _DARWIN_C_SOURCE globally. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: check linker support for version scriptsRuediger Meier2016-02-181-0/+3
| | | | | | | The macro AX_CHECK_VSCRIPT was taken from gnu autoconf archive. http://www.gnu.org/software/autoconf-archive/ Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: Properly order install dependencies of pylibmountFilipe Brandenburger2016-02-051-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a dependency so that libmount.so is installed before pylibmount.so, so that when libtool tries to relink it, it can find libmount.so in the destdir. We introduce this additional make rule through an AC_SUBST variable, to prevent automake from trying to interpret that. This trick has been suggested in http://stackoverflow.com/a/8643550. This fixes a failure of `make install DESTDIR=...` when trying to relink pylibmount against libmount.la. libtool will look for libmount.so under ${DESTDIR}/${libdir} in that case, but if it is not yet present there, libtool assumes it is a system installed library and use -lmount instead, which causes the following failure if libmount is not installed on the base system yet: libtool: install: warning: relinking `pylibmount.la' libtool: install: (... libtool --mode=relink gcc -o pylibmount.la \ -rpath /usr/lib/python2.7/dist-packages/libmount \ libmount/python/*.lo libmount.la ... -lpython2.7 \ -inst-prefix-dir /path/to/destdir) /usr/bin/ld: cannot find -lmount collect2: error: ld returned 1 exit status libtool: install: error: relink `pylibmount.la' ... make[3]: *** [install-pylibmountexecLTLIBRARIES] Error 1 This seems to be a previously encountered issue, since automake includes a hack to insert such a dependency rule to install all libLTLIBRARIES before attempting to install binPROGRAMS, initially introduced in the commit below: http://git.savannah.gnu.org/cgit/automake.git/commit/?id=bd4a1d5ad1a72fa780a8b7fd6c365a5dad2e6220 Also related bug from Ubuntu tracker: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1442076 Tested that `make install` starts working again after this commit, even when libmount-dev is not installed on the system. Also confirmed that `make distcheck` is now functional. Confirmed that the all the files expected in the Python directory (both __init__.py and pylibmount.so) are present after an install. Tested that parallel install works, the dependency is always respected since it's explicit. Inspected the generated Makefile and confirmed that the definition of install-pylibmountexecLTLIBRARIES (generated by automake) and the explicit dependency we introduced are both present. Signed-off-by: Filipe Brandenburger <filbranden@google.com>
* buildsys: fix static configuration and buildingLada Trimasova2016-01-261-1/+8
| | | | | | | | | | | | | | In case of uClibc librt depends on libpthread. In particular timer_create() function uses pthread_XXX(). That means in case of static builds it's required to link not librt alone but together with libpthread. So if checking timer_create function in librt fails, it is necessary to check if timer_create function successfully links with "-lpthread". That issues was spotted in Buldroot autobuilder failures: http://autobuild.buildroot.net/results/759/75960db671807091fe9155aee9e46a6245e32590/ http://autobuild.buildroot.org/results/112/112e8b85783f5aaba42a937a6eb064317615a21b/ Signed-off-by: Lada Trimasova <ltrimas@synopsys.com>
* libmount: consolidate btrfs stuff, make it more portableKarel Zak2016-01-261-0/+22
| | | | | | | | | - add --with-btrfs (enabled by default) - check for linux/btrfs.h - add "btrfs" to libmount features list (see mount -V) - #ifdef HAVE_BTRFS_SUPPORT for all btrfs stuff in libmount Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove libtermcap supportSami Kerola2016-01-261-11/+0Star
| | | | | | | | | | It is unlikely anyone is going to build this project on system where libtermcap is available. Fedora project obsoleted libtermcap 2007-12-12 in favour of ncurses. Debian made same move 2005. Reference: https://fedoraproject.org/wiki/Deprecated_packages Reference: https://www.debian.org/doc/manuals/debian-faq/ch-compat.en.html#s-termcap Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libsmartcols: add samples directoryKarel Zak2016-01-251-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: use sched_setattr() if availableKarel Zak2016-01-201-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix typo and more all RT to the same placeKarel Zak2015-12-081-8/+10
| | | | | | typo : s/timer_createx/timer_create/ Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: Print physical cpu informationSukadev Bhattiprolu2015-12-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lscpu currently prints information for CPUs configured in the system. In case of KVM or other virtualized guest operating systems, this refers to the virtual system, and bears no relation to the physical topology of the system. It would be useful if lscpu could also display the physical topology info when available: $ ./lscpu Architecture: ppc64le Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 16 NUMA node(s): 1 Model: IBM pSeries (emulated by qemu) Hypervisor vendor: KVM Virtualization type: para L1d cache: 64K L1i cache: 32K NUMA node0 CPU(s): 0-15 Physical sockets: 2 <<< New Physical chips: 4 <<< New Physical cores/chip: 4 <<< New For now, physical topology information is available on platforms that support the following RTAS (Real time abstraction service) call provided by librtas: rtas_get_sysparm(PROCESSOR_MODULE_INFO). Currently this call is available to the PowerVM (pHYP) guests on PowerPC. With a patch propoosed to PowerKVM, this RTAS call would also be available to PowerKVM guests. Based on input from Nishanth Aravamudan and Karel Zak. Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
* lsns: new commandKarel Zak2015-11-261-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ctrlaltdel: use reboot() provided by libc, assuming it is 1-adic.Casper Ti. Vector2015-11-191-0/+6
|
* build-sys: bump also PACKAGE_VERSION_RELEASE numberKarel Zak2015-11-041-1/+5
| | | | | | | | | | | | | | | | | Now we bump only PACKAGE_VERSION_MAJOR and PACKAGE_VERSION_MINOR numbers. The PACKAGE_VERSION_RELEASE is always zero. These numbers are used for LIBxxx_VERSION strings and Version: field in the .pc files. Unfortunately, if we keep PACKAGE_VERSION_RELEASE= always zero then our bugfix releases are invisible for pkg-config. (Although I don't think it's good idea to depend in code on any library bugfix release, code should be about APIs). Addresses: https://github.com/systemd/systemd/pull/1754 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.27)Karel Zak2015-09-071-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: include errno.h instead of argp.hChen Qi2015-08-311-1/+1
| | | | | | | | | | | | | | | | | | | configure should include errno.h instead of argp.h when checking for presence of program_invocation_short_name uclibc defines this to be const char* unlike util-linux-ng which defines this to be char* so this error goes unnoticed on glibc/eglibc systems. here is the error it fixes in file included from mountP.h:14:0, from cache.c:29: /home/kraj/work/slugos/build/tmp-slugos-uclibc/sysroots/nslu2le/usr/include/errno.h:55:46: error: conflicting types for '__progname' ../../../include/c.h:118:14: note: previous declaration of '__progname' was here make[3]: *** [cache.lo] Error 1 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Jonathan Liu <net147@gmail.com>
* build-sys: release++ (v2.27-rc2)Karel Zak2015-08-241-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-assertKarel Zak2015-08-041-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: mark script(1) as Linux only due to signalfd()Karel Zak2015-07-311-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.27-rc1)Karel Zak2015-07-311-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-calKarel Zak2015-07-271-1/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: new command to list IPC facilitiesKarel Zak2015-07-201-0/+5
| | | | | | Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* last-deprecated: remove from source treeSami Kerola2015-06-291-10/+0Star
| | | | | | | | | The last/lastb(1) from sysvinit has been around for about two years, and the better implementation is already part of releases 2.24 to 2.26. It should be safe to remove the unused last code from the source tree. Reference: ce60272039ea11952b15fefb653892dd0da02217 Signed-off-by: Sami Kerola <sami.kerola@lastminute.com>
* build-sys: add --without-* for all libsKarel Zak2015-05-221-17/+55
| | | | | | | | | It's necessary for people who want to compile util-linux in very unusual environment and disable as much as possible dependencies. For example distro bootstrap. References: https://bugzilla.redhat.com/show_bug.cgi?id=1223894 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: support unshare.staticGeorg Schiesser2015-05-181-1/+1
| | | | | | | | | | This patch adds support for building a static version of unshare. We need to add unshare to the list of possible static programs, and provide build flags for the compiler and linker, which are equivalent to the flags of the non-static program, except additional static linking. See also: commit 2fa60c5 build-sys: support nsenter.static Signed-off-by: Georg Schiesser <georg.schiesser@opentech.at>
* Merge branch 'fix-tinfo-typo' of https://github.com/rudimeier/util-linuxKarel Zak2015-04-071-1/+1
|\ | | | | | | | | * 'fix-tinfo-typo' of https://github.com/rudimeier/util-linux: build-sys: typo -ltinfo
| * build-sys: typo -ltinfoRuediger Meier2015-03-281-1/+1
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | build-sys: define cfdisk dependence on open_memstreamKarel Zak2015-03-301-1/+2
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add HAVE_LIBMOUNTKarel Zak2015-03-271-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>