summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: fix tinfo congitionalKarel Zak2013-10-141-1/+1
| | | | | Reported-by: Andrej Ota <andrej@ota.si> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix {lib,sbin}dir pathsKarel Zak2013-10-141-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.24-rc2)Karel Zak2013-10-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use tinfo *or* ncurses for more(1), ul(1) and setterm(1)Karel Zak2013-10-041-4/+9
| | | | | | | | | | | | * it seems that we don't have to link the utils with ncurses, tinfo is enough. This change saves one unnecessary dependence. * libtinfo is also distributed with pkg-config files, so we can use PKG_CHECK_MODULES() as a primary source for LIBS and CFLAGS. * add TINFO_CFLAGS (although it's probably always empty) Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: Check for type sighandler_t and use if presentMichael Forney2013-10-041-0/+4
| | | | | | | __sighandler_t is libc implementation specific and should not be relied upon. Instead, we fall back upon void (*)(int), as specified by POSIX. Signed-off-by: Karel Zak <kzak@redhat.com>
* include: Add missing includesMichael Forney2013-10-041-0/+1
| | | | | | | | sys/types.h: For u_char typedef sys/params.h: For MAXNAMLEN sys/ttydefaults.h: For various tty definitions (also add configure check) Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: Use _POSIX_VERSION to determine support for %mMichael Forney2013-10-041-1/+7
| | | | | | | %m is included in POSIX 2008, so we can check if the libc implements that before failing. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: simplify python detectionSami Kerola2013-09-301-12/+7Star
| | | | | | | | This allows './configure --enable-most-builds' and 'make distcheck' to work when both python2 and python3 are installed, and user has set python version preference using symlink and PATH order. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* clean up term lib handlingMike Frysinger2013-09-301-13/+40
| | | | | | | | | | | | | | | | | The ncurses package has been providing pkg-config files for a while now. So let's start using them to get the proper linker & compiler flags. It can make a difference when ncurses is configured in a way that requires extra link time flags but util-linux doesn't provide them, or when the headers live in a weird place and util-linux can't find them. Since the NCURSES_LIBS is always defined for the Makefile, there's no need to gate on the HAVE_NCURSES conditional. When it's disabled, the var will simply be empty. With a minor tweak to how tinfo is handled, we can do the same thing -- we just always use TINFO_LIBS in the Makefile's. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* nologin: add new commandKarel Zak2013-09-301-0/+8
| | | | | | | Currently it's maintained as distro specific (or people use impolite /bin/false way). Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.24-rc1)Karel Zak2013-09-271-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: one install dir for all pylibmount stuffKarel Zak2013-09-271-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix static buildsKarel Zak2013-09-271-4/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix ${prefix} usage, be more verbose about py pathsKarel Zak2013-09-261-7/+11
| | | | | | | | | | | - incorrect ${prefix} and ${exec_prefix} usage in AC_CASE (bug introduced by commit 9f57e6e8) - disable python by default (you have to use --with-python) - add python paths to the finale ./configure info message Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: install to the correct python dirsKarel Zak2013-09-261-2/+1Star
| | | | | | | It seems we have to call AM_PATH_PYTHON() monster to get pyexec (shared libs) and python (scripts) directories. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: support --with-python[={2,3}]Karel Zak2013-09-201-16/+25
| | | | | | | | | | | | | | * we use pkg-config to get CGLAGS and LIBS, use package specific config (e.g. python-config) is non-sense. * default is to follow distribution and use pkg-config module name "python". This is probably symlink to python2.pc or python3.pc. * --with-python=2 forces to pkg-module "python2 >= 2" * --with-python=3 forces to pkg-module "python3 >= 3" Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: pylibmount will not work when python3 is presentSami Kerola2013-08-291-0/+6
| | | | | | | | | | | | | | | While compiling with up to date Archlinux I notice the recently added pylibmount does not link correctly. Failures inform fundamental types such as PyFileObject and PyFile_Type being missing. It seems automake AM_PATH_PYTHON will prefer the python in path, which for this distribution right now is python3. As some sort of go-around one can install older python, and symlink it to earlier in PATH lookup. $ ln -s /usr/bin/python2 $HOME/bin/python $ export PATH=$HOME/bin:$PATH Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: add CFLAGS and LDFLAGS for daemons and shared libsKarel Zak2013-08-271-0/+10
| | | | | | | | This is necessary for paranoid security guys who believe that things like "-Wl,-z,relro" or "-Wl,-z,bind_now" is a way how to make the world a safer place... Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add pylibmountKarel Zak2013-08-191-0/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove deprecated elvtune commandKarel Zak2013-08-131-10/+0Star
| | | | | | The command is deprecated for years and useless with 2.6.x kernels. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: enable mesg(1) by defaultKarel Zak2013-08-131-2/+2
| | | | | | | It seems that our mesg(1) implementation is compatible with sysvinit, let's use it by default in mainstream distros. Signed-off-by: Karel Zak <kzak@redhat.com>
* last: clean up the begin of the fileKarel Zak2013-08-121-2/+2
| | | | | | .. and improve last(1) stuff in configure script. Signed-off-by: Karel Zak <kzak@redhat.com>
* last: merge sysvinit last/lastbOndrej Oprala2013-08-121-3/+11
| | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use backticks rather than $() for commands in configureSami Kerola2013-08-011-3/+3
| | | | | | | | | | The configure had both backticks and $() in use. These command susbstitutions are mutually interchangeable, so one should pick only one form. In this case backticks were favored because they are known with greater range of shells, making the backticks to be more portable. References: https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Shell-Substitutions.html#index-g_t_0024_0028_0040var_007bcommands_007d_0029-1632 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: prefer AS_IF rather than shell 'if'Sami Kerola2013-08-011-85/+85
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: prefer AS_CASE rather than shell 'case'Sami Kerola2013-08-011-89/+72Star
| | | | | References: http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Builtins.html#case Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: use m4 quoting consistentlySami Kerola2013-08-011-200/+200
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setarch: prefer preprocessor rather than autotools checkSami Kerola2013-08-011-12/+0Star
| | | | | | | It seems to be pointless to spend time in ./configure phase when preprocessor has to perform #ifndef check anyway. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* util-linux minor typo fixesGilles Espinasse2013-05-211-1/+1
| | | | Signed-off-by: Gilles Espinasse <g.esp@free.fr>
* build-sys: always check for setns() and unshare() libs functionsKarel Zak2013-05-211-6/+2Star
| | | | | | | | | | | | | | | | | | | | $ ./configure --disable-unshare $ make nsenter CC sys-utils/nsenter.o In file included from sys-utils/nsenter.c:36:0: ./include/namespace.h:31:19: error: static declaration of ‘unshare’ follows non-static declaration In file included from /usr/include/sched.h:42:0, from sys-utils/nsenter.c:23: /usr/include/bits/sched.h:86:12: note: previous declaration of ‘unshare’ was here make: *** [sys-utils/nsenter.o] Error 1 We have to always check for the libc function independently on --disable-{unshare,nsenter} to avoid collision between local and libc declarations. Reported-by: "Gabor Z. Papp" <gzp@papp.hu> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use -Wno-clobbered for some BSD crapKarel Zak2013-05-071-0/+3
| | | | | | | | * extend UL_WARN_ADD() for accept non-default CFLAGS variable * add BSD_WARN_CFLAGS with -Wno-clobbered * use all this for pg(1) and more(1) Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-settermKarel Zak2013-04-261-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.23)Karel Zak2013-04-251-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use 'check' for all utils with dependenciesKarel Zak2013-04-251-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix non-linux buildSamuel Thibault2013-04-251-1/+1
| | | | | | Make enabling fdformat depend on being a linux build. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* build-sys: use pkg-config results for libuserKarel Zak2013-04-181-7/+7
| | | | | | | | | Our code depends on libuser >= 0.58, it's better to completely rely on pkg-config results rather than also call UL_CHECK_LIB (that overwrites previous pkg-config have_user= result independently on libuser version). Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix UL_REQUIRES_HAVEKarel Zak2013-04-181-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisks: fix compiler warningKarel Zak2013-04-171-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix nsenter requirementsKarel Zak2013-04-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.23-rc2)Karel Zak2013-04-101-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-fdformatKarel Zak2013-04-101-1/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-hwclockKarel Zak2013-04-101-3/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-bfsKarel Zak2013-04-101-0/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-cytuneKarel Zak2013-04-101-0/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-bash-completionKarel Zak2013-04-051-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* bash-completion: add bash completetion configure optionSami Kerola2013-03-301-0/+13
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: release++ (v2.23-rc1)Karel Zak2013-03-221-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: keep libuser optionalKarel Zak2013-03-221-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: set dependence fdisk -> libfdisk -> libuuidKarel Zak2013-03-211-0/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: lslocks depends on libmountKarel Zak2013-03-211-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>