summaryrefslogtreecommitdiffstats
path: root/configure.ac
AgeCommit message (Collapse)Author
2020-09-03Bump version, changelog for minor htop-3.0.1 release3.0.1Nathan Scott
2020-08-28Print configured stateChristian Göttsche
2020-08-28Improve indentChristian Göttsche
2020-08-28Drop configure option --enable-procChristian Göttsche
Move to HTOP_LINUX, as --enable-proc implies my_htop_platform=linux, and the Linux features do not work without a proc fs.
2020-08-24Fix in AC_CONFIG_FILES, try #2Daniel Lange
2020-08-24Nope, configure works but make breaks.Daniel Lange
This reverts commit dad62b6c9e8a9e962b31175d4a768b37e1f8f3ec.
2020-08-24Put Makeheader.py.in into AC_CONFIG_FILESDaniel Lange
2020-08-23Generate an appropriate shebang line for MakeHeader script3.0.0rc2Nathan Scott
Use configure.ac to handle platform differences where some build hosts have only a python3, or only python, binary. Related to https://github.com/htop-dev/htop/pull/6
2020-08-21Remove trailing whitespacesChristian Göttsche
2020-08-21configure: add option --enable-werrorChristian Göttsche
Adds the compiler flag -Werror to fail on warnings. Useful for CI runs.
2020-08-20Documentation updates to reflect community maintainershipNathan Scott
Document the htop.dev site, #htop and htop@groups.io for contacting the community maintainers, and the upcoming 3.0.0 release.
2019-06-14Fix configure 'major' workaround causing <sys/sysmacros.h> to miss.Explorer09
A logic mistake in pull request #746 causes <sys/sysmacro.h> to be *not* included when AC_HEADER_MAJOR (before autoconf-2.70) finds 'major' in <sys/types.h>. Though this would still build htop, it would still bring deprecation warning in systems using glibc 2.25-2.27. Fix the logic and suppress the warning. Also, include config.h in Process.c for the sake of strengthening the code. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2018-05-22Disable 'make dist' when pkg.m4 is unused in configureExplorer09
This would prevent a careless future package maintainer from creating a release tarball with a defective configure script. :) Also, add a warning in the autogen.sh phase if pkg.m4 is unused. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2018-04-10Bump version to 2.2.02.2.0Hisham Muhammad
2018-04-06Require pkg-config as an optional build dependency on Linux (#775)Hisham Muhammad
With this commit: * if pkgconfig is installed, it will expand the code inside the shell if, adding the pkgconfig-based tests for the dependencies of Linux delay accounting. * if pkgconfig is not installed, it will add an error message inside the test of Linux delay accounting, telling the user to install pkgconfig and rebuild the configure script if they want to use Linux delay accounting. The end result is: * people running Linux * will not need pkgconfig when not using delay accounting * will need pkgconfig when using delay accounting * if they don't have it * they are told by configure they need to install it and re-run autogen.sh when running from Git * they are told by configure they need to install it and re-run configure when running from the tarball * people not running Linux * will never need pkgconfig ...and in none of the above scenarios the generated configure script produces unexpanded macros for users checking out the sources from Git.
2018-04-05Solaris: get completely out of the file handling business using libprocGuy M. Broome
2018-03-16Solaris: Link against libmalloc to fix various crashesGuy M. Broome
2018-03-02Import Solaris support (#741)gmbroome
This commit adds support for Solaris, squashed from PR #741: Summary of additions: * Initial setup of Solaris platform directory * Add Solaris platform into autoconf template * Uptime and load averages * Add dependency on libkstat * Basic process listing * Zone name display * CPU detection * Per-process memory and CPU usage parsed correctly * Uses sysconf to discover number of CPUs, instead of more complex libkstat code * Simple memory display working * Reduce repetitive calls to the PAGE_SIZE macro when reading memory info * Add Project, Contract, Task, and Pool into process properties * Use system major()/minor() implementations and remove extraneous definition of mkdev() * Get the STARTTIME column working properly, using the Linux implementation as a guide
2018-02-26Fix bashisms (#749)Jesin
The configure script relied on bash-specific extensions to shell syntax and behavior, causing build failures on systems with other /bin/sh implementations. This commit replaces those with equivalent constructs that should work in all POSIX shells.
2018-02-26use CFLAGS from ncurses*-config, if present (#745)Michael Klein
Fixes #695.
2018-02-26Fix build failure ('major' undefined) in glibc 2.28. (#746)Kang-Che Sung (宋岡哲)
glibc 2.28 no longer defines 'major' and 'minor' in <sys/types.h> and requires us to include <sys/sysmacros.h>. (glibc 2.25 starts deprecating the macros in <sys/types.h>.) Now do include the latter if found on the system. At the moment, let's also utilize AC_HEADER_MAJOR in configure script. However as Autoconf 2.69 has not yet updated the AC_HEADER_MAJOR macro to reflect the glibc change [1], so add a workaround code. Fixes #663. Supersedes pull request #729. Reference: [1] https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=e17a30e987d7ee695fb4294a82d987ec3dc9b974 Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
2018-02-17Fix preservation of LDFLAGS value during configure scriptHisham Muhammad
Fixes #738.
2018-02-05Check for pkgconfig's presence before using it.Hisham Muhammad
Fixes #710.
2018-02-04Bump version to 2.1.02.1.0Hisham Muhammad
2017-12-04Adds support for linux delay accounting (#667)André Carvalho
Adds support for showing columns with linux delay accounting. This information can be read from the netlink interface, and thus we set up a socket to read from that when initializing the LinuxProcessList (LinuxProcessList_initNetlinkSocket). After that, for each process we call LinuxProcessList_readDelayAcctData, which sends a message thru the socket after setting up a callback to get the answer from the Kernel. That callback sets the process total delay time attribute. We then set the delay percent as the percentage of time process cpu time since last scan.
2017-09-22Remove libtool referencesEmil Velikov
The project builds a single standalone binary. There are no libraries created - be that static or shared ones. Thus there's no need for libtool. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2017-07-26Security review: make privilege dropping-restoring optional.Hisham Muhammad
This is/was necessary only on macOS, because you needed root in order to read the process list. This was never necessary on Linux, and it also raises security concerns, so now it needs to be enabled explicitly at build time.
2017-07-10Add a clear warning about unsupported platforms.Hisham Muhammad
Closes #648.
2017-04-19Initial addition of dragonflybsd (based on FreeBSD)Diederik de Groot
2016-09-11Downgrade requirement to Libtool 2.4.0.Hisham
Courtesy to OpenWRT environments as requested by @champtar in #540.
2016-07-21Preparing release 2.0.2, a minor bugfix release.Hisham
2016-07-12Merge pull request #524 from ricardo0y/cross_compile_with_ncurses_configHisham Muhammad
Allow to override ncurses*-config path
2016-07-11Allow to override ncurses*-config pathRicardo Martincoski
This will be used when cross-compiling with ncurses*-config generated for the target, using constructs like HTOP_NCURSES_CONFIG_SCRIPT=/path/to/ncurses5-config Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
2016-05-19Fail early if libtool is not present.Hisham
2016-05-08Reorder configure macros to avoid "missing script" warning.Explorer09
3 effects in this commit, with the first being the main one: 1. Fix the "`missing' script is too old or missing" warning. See: <https://lists.gnu.org/archive/html/automake/2010-08/msg00108.html> 2. By moving AC_CANONICAL_TARGET down in order, we are now able to set the directory for auxiliary scripts. For now it's still './'. I added the line "AC_CONFIG_AUX_DIR([.])" to show that the directory change is possible. 3. AC_USE_SYSTEM_EXTENSIONS includes checks from AC_PROG_CC, by moving the former macro down, we can save size in 'configure' by not generating repeated checks.
2016-05-08Replace deprecated autoconf macros.Explorer09
AC_HELP_STRING -> AS_HELP_STRING AC_TRY_COMPILE -> AC_COMPILE_IFELSE([AC_LANG_PROGRAM([...])],...) AC_CONFIG_HEADER -> AC_CONFIG_HEADERS AC_PROG_LIBTOOL -> LT_INIT Note: There might be more deprecated macros that I haven't noticed. I just wish to avoid painful highlighting from my text editor (gedit) that complains about them. :)
2016-05-04Merge pull request #472 from jrtc27/hurdHisham Muhammad
Use Linux backend on the Hurd
2016-05-04Improve reproducible builds.Hisham
Use a SOURCE_DATA_EPOCH friendly date. Suggested by @fasterit in #476.
2016-04-18Use Linux backend on the HurdJames Clarke
2016-04-18Use $target_os instead of $target in configure.acJames Clarke
2016-03-07Prepare for release 2.0.1.2.0.1Hisham
2016-02-14Portable affinity using hwlocHisham
2016-02-02Try to make threads less confusing.Hisham
2016-01-05use AC_HELP_STRING for proc dirChristian Hesse
2015-12-09Oops!Hisham Muhammad
2015-12-09More thorough checks for ncurses*-config scripts.Hisham Muhammad
See #198.
2015-12-06If ncurses*-config script is present, use it in configureHisham Muhammad
when testing for ncurses library. See #198.
2015-11-30Use ncurses*-config scripts bundled with ncurses.Hisham Muhammad
Ensure that all necessary libs and flags are passed along, such as adding -ltinfo when needed. Closes #198.
2015-11-19Test for unicode-enabled libncursesHisham Muhammad
2015-09-18(Very) initial working OpenBSD portMichael McConville