diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-29 21:50:38 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-29 22:17:52 +0100 |
commit | ddbb0c2c35ca1070387b975e85f4fd12f4aaf93a (patch) | |
tree | 40d64b608462551c82215007bb9cb799d2513143 | |
parent | 03b773b701e8d2502449396214751131abd0dda5 (diff) |
Add HTOP_$platform defines to config.h header
Can be used to conditionally compile platform specific code.
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b10d819a..bc8592d0 100644 --- a/configure.ac +++ b/configure.ac @@ -26,24 +26,31 @@ AC_USE_SYSTEM_EXTENSIONS case "$target_os" in linux*|gnu*) my_htop_platform=linux + AC_DEFINE([HTOP_LINUX], [], [Building for Linux]) ;; freebsd*|kfreebsd*) my_htop_platform=freebsd + AC_DEFINE([HTOP_FREEBSD], [], [Building for FreeBSD]) ;; openbsd*) my_htop_platform=openbsd + AC_DEFINE([HTOP_OPENBSD], [], [Building for OpenBSD]) ;; dragonfly*) my_htop_platform=dragonflybsd + AC_DEFINE([HTOP_DRAGONFLYBSD], [], [Building for DragonFlyBSD]) ;; darwin*) my_htop_platform=darwin + AC_DEFINE([HTOP_DARWIN], [], [Building for Darwin]) ;; solaris*) my_htop_platform=solaris + AC_DEFINE([HTOP_SOLARIS], [], [Building for Solaris]) ;; *) my_htop_platform=unsupported + AC_DEFINE([HTOP_UNSUPPORTED], [], [Building for an unsupported platform]) ;; esac |