summaryrefslogtreecommitdiffstats
path: root/m4/ul.m4
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: add UL_REQUIRES_ARCH()Karel Zak2019-07-151-1/+41
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: fix typos using codespellRuediger Meier2018-02-161-1/+1
| | | | | | Some more funny typos, please review carefully. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* build-sys: add libtinfow checkKarel Zak2017-09-191-0/+27
| | | | | | | | | | | | It seems some systems differentiate between tinfo and tinfow. And it seems that mix ncursesw and tinfo (wide vs. non-wide char) is problem for the systems. Note that for example Fedora have ncursesw as well as ncurses, but only one tinfo library. So, we need fallback this scenario. Reported-by: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: prefer ncurses-config rather than pkg-configKarel Zak2017-05-311-12/+12
| | | | | | | | | | | | | | If you have installed: ii libncurses5:i386 5.9+20140913-1+b1 i386 shared libraries for terminal handling ii libncurses5-dev:i386 5.9+20140913-1+b1 i386 developer's libraries for ncurses ii libncursesw5:i386 5.9+20140913-1+b1 i386 shared libraries for terminal handling (wide character support) then pkg-config blindly follows ncursesw although there are not header files for this library. It seems better to use pkg-config as fallback solution only. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: simplify UL_ENABLE_ALIAS() semanticKarel Zak2017-02-211-2/+2
| | | | | | | | Let's follow only $enable_ variables. In this case the MASTERNAME (e.g. [schedutils] for --enable-schedutils) has to be without UL_BUILD_INIT. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix --disable-all-programs --enable-schedutilsKarel Zak2017-02-201-0/+15
| | | | | | | | | | | | | * add UL_ENABLE_ALIAS(NAME, MASTERNAME) to initialize $enable_<name> according to MASTERNAME. Note that we have to use $build_<mastername>, the $enable_<mastername> is just AC_ARG_ENABLE() stuff only. The $build_ is evaluated and modified by our UL_...() functions. * add enable-schedutils.conf to have build-system regression test for this use-case Addresses: https://github.com/karelzak/util-linux/issues/415 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup UL_NCURSES_CHECKKarel Zak2016-12-131-21/+33
| | | | | | | | * use SUFFIX for upper-case suffix * use AC_CHECK_TOOL() to search for ncurses-config (thanks to Mike Frysinger) * separate checks by AS_IF() Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: prefer pkg-config for ncursesKarel Zak2016-12-121-20/+28
| | | | | | and use ncurses{5,6}-config as fallback only. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix typo on ncurses-config command lineKarel Zak2016-10-201-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use ncurses-config rather than pkg-configKarel Zak2016-10-201-0/+35
| | | | | | | | | | It's painful, but ncurses upstream does not distribute .pc files by default and it seems that ncurses{6,5}-config is the preferred solution. For better compatibility lets use ncurses-config. Reported-by: Ruediger Meier <sweet_f_a@gmx.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_REQUIRES_COMPILE macroKarel Zak2016-06-031-0/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix comments in ul.m4Karel Zak2016-06-031-8/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use $PKG_CONFIGKarel Zak2016-02-161-2/+2
| | | | | | Reported-by: Helmut Grohne <helmut@subdivi.de> References: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=811546 Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove AM_CONDITIONAL from UL_CHECK_SYSCALLKarel Zak2016-02-101-8/+0Star
| | | | | | | Unused, unnecessary, wrong. Reported-by: J William Piggott <elseifthen@gmx.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: allow autoconf < 2.64 to be usedKir Kolyshkin2015-09-031-0/+26
| | | | | | | | | | | | | | | | | | | | | | | Since commit 50d096a macro m4_ifblank is used, but as it is only available in autoconf-2.64, on CentOS 6 system we end up with: > $ ./autogen.sh > configure:25396: error: possibly undefined macro: m4_ifblank > If this token and others are legitimate, please use > m4_pattern_allow. > See the Autoconf documentation. > [root@kir-ovz2 util-linux]# autoconf --version > autoconf (GNU Autoconf) 2.63 So, the obvious thing to do would be to raise AC_PREREQ to 2.64 in configure.ac. But, given the facts that - autoconf 2.64 is not available for RHEL/CentOS 6, - the only need is one small macro, it's better to just add the missing macro. While at it, add the m4_ifnblank, too. Signed-off-by: Kir Kolyshkin <kir@openvz.org>
* build-sys: improve the informative message when not building some utilBenno Schulenberg2014-07-141-5/+5
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: fix "behaviour" vs. "behavior"Karel Zak2014-06-061-1/+1
| | | | | | | | Sometimes we use "behaviour" and "behavior" in the same text, let's use "behavior" only everywhere. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1011068 Signed-off-by: Karel Zak <kzak@redhat.com>
* buil-sys: disable in UL_BUILD_INIT() on --disable-all-programsKarel Zak2014-06-021-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build_sys: fix default estate usageKarel Zak2014-05-271-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix UL_BUILD_INIT()Karel Zak2014-05-271-9/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_DEFAULT_ENABLE() and $ul_default_estateKarel Zak2014-05-271-5/+30
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_EXCLUDE_ARCH()Karel Zak2014-05-211-0/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-minixKarel Zak2014-05-211-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: improbe UL_CONFLICT_BUILD macroKarel Zak2013-08-121-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix UL_REQUIRES_HAVEKarel Zak2013-04-181-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: support list of variables for UL_REQUIRES_HAVE macroKarel Zak2013-01-241-1/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_CONFLICTS_BUILD m4 macroKarel Zak2012-06-261-0/+30
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix UL_INIT_BUILD macroKarel Zak2011-11-041-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_BUILD_INIT macroKarel Zak2011-11-031-5/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add UL_REQUIRES_* macrosKarel Zak2011-11-031-0/+127
| | | | | | | | UL_REQUIRES_{LINUX,BUILD,HAVE} macros check for dependence between --enable-* state and OS type, another build (e.g. libblkid), function or library. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: rename and move macrosKarel Zak2011-11-031-0/+126
- use m4/ul.m4 for util-linux macros - use UL_ prefix for all util-linux macros Signed-off-by: Karel Zak <kzak@redhat.com>