summaryrefslogtreecommitdiffstats
path: root/configure.ac
AgeCommit message (Collapse)Author
2024-01-10Release 3.3.03.3.0Daniel Lange
2024-01-01Updates for 2024. Happy New Year!Daniel Lange
2023-12-26Fix code styleBenny Baumann
2023-12-26Check for large file support and some types we useBenny Baumann
2023-12-26Do not touch CFLAGS in configure.acBenny Baumann
This fixes an inconsistency between tests run by ./configure and actual make
2023-10-11Add configure check for nonnull attributeExplorer09
The main reason I do this is to document the minimum compiler version (GCC 3.3) for the attribute. But it may work with other compilers, too. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2023-10-10strchrnul is a GNU libc extension, add a wrapper for other platformsNathan Scott
2023-08-18Add a check and warning about signaling NaN support to 'configure.ac'Explorer09
Add a check of the '__SUPPORT_SNAN__' predefined macro and print a warning message if the compiler defines it. The warning is not printed with '--enable-debug' specified as we assume users know what they are doing. :) Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2023-08-18Replace isnan() with better comparisons (isgreater(), etc.)Explorer09
The standard isnan() function is defined to never throw FP exceptions even when the argument is a "signaling" NaN. This makes isnan() more expensive than (x != x) expression unless the compiler flag '-fno-signaling-nans' is given. Introduce functions isNaN(), isNonnegative(), isPositive(), sumPositiveValues() and compareRealNumbers(), and replace isnan() in htop's codebase with the new functions. These functions utilize isgreater() and isgreaterequal() comparisons, which do not throw FP exceptions on "quiet" NaNs, which htop uses extensively. With isnan() removed, there is no need to suppress the warning '-Wno-c11-extensions' in FreeBSD. Remove the code from 'configure.ac'. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2023-08-18configure.ac minor improvementsExplorer09
* Shorter result message for "assume yes (cross compiling)" * Replace grave accent + apostrophe quoting with just apostrophes. It is expected that Autoconf 2.72 updates the quoting as well and the old style has confused a syntax highlighter (Vim). Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2023-05-22Changes in configuration to identify location of 'term.h'Sahil Siddiq
* ProvideTerm.h: New file * Update configure.ac to detect term.h * Update iwyu/htop.imp * Add ProvideTerm.h to Makefile Co-authored-by: BenBE <BenBE@geshi.org>
2023-04-22Darwin: add DiskIOMeter supportUeiWang
2023-04-05configure: restore hwloc supportChristian Göttsche
If the pkg-config check for hwloc succeeds, actually define HAVE_LIBHWLOC to enable the conditional code. Fixes: 4ccad460 ("configure.ac: fix static build with hwloc")
2023-02-18Annotate functions with access attributeChristian Göttsche
Supported by GCC since version 10.
2023-02-05Add support for scheduling policiesChristian Göttsche
Add a process column for scheduling policy to show the current scheduling policy of the process. Add a the ability to change the scheduling policy of a process via the key 'Y'. Currently implemented on Linux and FreeBSD only but should be portable, since sched_getscheduler(2) is part of POSIX.1-2001. Closes: #1161
2023-02-05Update configure.ac for next planned release versionNathan Scott
2023-02-05Drop -dev version suffix in configure.ac for release3.2.2Nathan Scott
2023-01-10Put a -dev release version into configure.ac againDaniel Lange
2023-01-08Updates for 2023. Happy New Year!Daniel Lange
2022-09-14Use pmLookupDescs(3) function if available from libpcpNathan Scott
This is a relative new, single-round-trip variant of the pmLookupDesc(3) function for metric descriptors lookup.
2022-08-09configure: support ceil builtinChristian Göttsche
ceil(3) might be supplied by the compiler as a builtin. Use AC_SEARCH_LIBS instead of AC_CHECK_LIB, see https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Libraries.html. Related: #1054
2022-06-03Update changelog in preparation for htop-3.2.1 release3.2.1Nathan Scott
2022-04-29Add changelog entries for pending htop-3.2.0 release, update versionNathan Scott
2022-04-26Merge branch 'main' of thesamesam/htopDaniel Lange
2022-04-03configure.ac: fix static build with hwlocFabrice Fontaine
Retrieve hwloc dependencies through pkg-config to avoid the following static build failure: checking for hwloc_get_proc_cpubind in -lhwloc... no configure: error: can not find required library libhwloc This build failure is raised because without pkg-config, hwloc dependencies such as libxml2 are not retrieved: configure:8999: checking for hwloc_get_proc_cpubind in -lhwloc configure:9022: /home/autobuild/autobuild/instance-0/output-1/host/bin/powerpc-buildroot-linux-uclibc-gcc -o conftest -D_GNU_SOURCE -I/home/autobuild/autobuild/instance-0/output-1/host/powerpc-buildroot-linux-uclibc/sysroot/usr/bin/../../usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Og -g0 -static -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -static conftest.c -lhwloc -llzma -L/home/autobuild/autobuild/instance-0/output-1/host/powerpc-buildroot-linux-uclibc/sysroot/usr/bin/../../usr/lib -lncurses -lm >&5 /home/autobuild/autobuild/instance-0/output-1/host/lib/gcc/powerpc-buildroot-linux-uclibc/10.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: /home/autobuild/autobuild/instance-0/output-1/host/powerpc-buildroot-linux-uclibc/sysroot/usr/bin/../../usr/lib/libhwloc.a(topology-xml-libxml.o): in function `hwloc_libxml_free_buffer': topology-xml-libxml.c:(.text+0x6a): undefined reference to `xmlFree' Fixes: - http://autobuild.buildroot.org/results/5d815ec08c580005a863df6ac9ac29deff7d4128 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-01-22build: use AC_CANONICAL_HOST, not AC_CANONICAL_TARGETSam James
htop is a program which will be run on CHOST after cross-compilation; CTARGET is only for a small number of cases where a program itself outputs code (so you might cross-compile a compiler which spits out code for a third architecture/platform). We want to use AC_CANONICAL_HOST to check CHOST for the platform currently being used to build htop. The confusion around this issue was compounded by a mistake in autoconf-archive which has since been fixed (AX_PTHREAD pulled it in incorrectly). See: https://github.com/libstatgrab/libstatgrab/pull/131 See: https://github.com/fenrus75/powertop/pull/90#discussion_r705803725 Signed-off-by: Sam James <sam@gentoo.org>
2022-01-03Year 2022 updatesDaniel Lange
2021-12-16configure: support libunwind of LLVMChristian Göttsche
The libunwind headers of LLVM are located in the subdirectory /usr/include/libunwind. Search that subdirectory when the default header test fails. Also extend the include path due to the transitive include of `<__libunwind_config.h>`. Closes: #894
2021-11-30Update version number to 3.2.0-dev to identify git repo buildsNathan Scott
2021-11-30Release 3.1.23.1.2Nathan Scott
2021-10-14Update version number to 3.2.0-dev to identify git repo buildsBenny Baumann
2021-10-14Release 3.1.13.1.1Benny Baumann
2021-10-01Linux: improve tryRead macro safetyChristian Göttsche
Add an explicit else clause so a following else branch for a prior if condition does not get mixed up. Also force a trailing semicolon and thereby silence current -Wextra-semi-stmt warnings. Improve readability of the hwloc_bitmap_foreach_begin loop macro.
2021-10-01Resolve -Wimplicit-int-conversion warningsChristian Göttsche
Panel.c:414:49: error: implicit conversion loses integer precision: 'int' to 'short' [-Werror,-Wimplicit-int-conversion] this->scrollH = MAXIMUM(this->selectedLen - this->w, 0); ~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~ ./Macros.h:11:54: note: expanded from macro 'MAXIMUM' #define MAXIMUM(a, b) ((a) > (b) ? (a) : (b)) ^ IncSet.c:159:38: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wimplicit-int-conversion] mode->buffer[mode->index] = ch; ~ ^~ Panel.c:456:24: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wimplicit-int-conversion] buffer[len] = ch; ~ ^~ Panel.c:473:22: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wimplicit-int-conversion] buffer[0] = ch; ~ ^~
2021-09-22Update version to 3.1.1-devDaniel Lange
2021-09-21Use libunwind for printing backtraceChristian Göttsche
2021-09-21Release 3.1.03.1.0Nathan Scott
2021-09-20Bump to rc3, likely final release commits for 3.1.0Nathan Scott
2021-09-08Fix a typo in a configure.ac commentNathan Scott
2021-09-05Update configure to reflect rc2 in the version3.1.0rc2Benny Baumann
2021-09-04configure: output vserver as implied if ancient-vserver is enabledChristian Göttsche
The build time configuration ancient-vserver implies the configuration vserver; say so in the configure status report if only ancient-vserver has been specified. Also indent with 3 spaces.
2021-08-27Update configure to reflect rc1 in the versionNathan Scott
2021-08-25configure: resolve autotools 2.70 deprecation warningsChristian Göttsche
configure.ac:72: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:72: You should run autoupdate. ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... configure.ac:72: the top level configure.ac:134: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:134: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.ac:134: the top level
2021-08-14Build pcp-htop.5 only when --enable-pcpDaniel Lange
2021-08-13Merge pull request #705 from natoscott/pcp-htop-manualNathan Scott
docs: updates and new manual page for pcp-htop
2021-08-08configure: check for NaN compiler supportChristian Göttsche
Compilers might due to optimizations, like -ffast-math (included in -Ofast) expect floating point variables to be never NaN and replace each call to isnan() with false. Htop uses the value NaN for signaling no data available for various information. Warn at configure time if the compiler will ignore NaN values. Note: this can not be implemented as a compile time static assert, as some compilers handle compile NaNs differently than runtime NaNs.
2021-08-05netbsd: Add battery supportnia
This uses proplib and sysmon_envsys to determine the total charge percentage of any number of connected batteries as well as the AC adapter state. Should work with ACPI and non-ACPI systems.
2021-08-03docs: updates and new manual page for pcp-htopNathan Scott
Add some words about pcp-htop to the main man page, and add a new man page describing the pcp-htop configuration files that allow new meters and columns to be defined at runtime.
2021-07-18Enable affinity support for non-LinuxChristian Göttsche
sched_getaffinity() and sched_setaffinity() are also available on BSDs. Remove the Linux restraint.
2021-07-15netbsd: Support curses libraries without ncurses mouse supportnia
This adds a configure check for the ncurses getmouse() function and disables mouse-related code paths when mouse support is not present in the curses library. This is necessary for stable versions of NetBSD's libcurses, the development version has stub mouse functions for compatibility with ncurses. Signed-off-by: Nia Alarie <nia@NetBSD.org>