| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 1 | # -*- Autoconf -*- |
| 2 | # Process this file with autoconf to produce a configure script. |
| 3 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 4 | # ---------------------------------------------------------------------- |
| 5 | # Autoconf initialization. |
| 6 | # ---------------------------------------------------------------------- |
| 7 | |
| 8 | AC_PREREQ([2.65]) |
| 9 | AC_INIT([htop], [3.0.6-dev], [htop@groups.io]) |
| Hisham Muhammad | 3383d8e | 2015-01-21 23:27:31 -0200 | [diff] [blame] | 10 | |
| Explorer09 | b71b07f | 2016-03-12 12:02:06 +0800 | [diff] [blame] | 11 | AC_CONFIG_SRCDIR([htop.c]) |
| 12 | AC_CONFIG_AUX_DIR([.]) |
| 13 | AC_CONFIG_HEADERS([config.h]) |
| Explorer09 | b71b07f | 2016-03-12 12:02:06 +0800 | [diff] [blame] | 14 | |
| 15 | # Required by hwloc scripts |
| Hisham Muhammad | ec17b70 | 2011-09-24 00:30:47 +0000 | [diff] [blame] | 16 | AC_CANONICAL_TARGET |
| 17 | |
| 18 | AM_INIT_AUTOMAKE([1.11]) |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 19 | |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 20 | # ---------------------------------------------------------------------- |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 21 | |
| 22 | |
| 23 | # ---------------------------------------------------------------------- |
| 24 | # Checks for platform. |
| 25 | # ---------------------------------------------------------------------- |
| 26 | |
| 27 | case "$target_os" in |
| 28 | linux*|gnu*) |
| 29 | my_htop_platform=linux |
| 30 | AC_DEFINE([HTOP_LINUX], [], [Building for Linux.]) |
| 31 | ;; |
| 32 | freebsd*|kfreebsd*) |
| 33 | my_htop_platform=freebsd |
| 34 | AC_DEFINE([HTOP_FREEBSD], [], [Building for FreeBSD.]) |
| 35 | ;; |
| 36 | openbsd*) |
| 37 | my_htop_platform=openbsd |
| 38 | AC_DEFINE([HTOP_OPENBSD], [], [Building for OpenBSD.]) |
| 39 | ;; |
| 40 | dragonfly*) |
| 41 | my_htop_platform=dragonflybsd |
| 42 | AC_DEFINE([HTOP_DRAGONFLYBSD], [], [Building for DragonFlyBSD.]) |
| 43 | ;; |
| 44 | darwin*) |
| 45 | my_htop_platform=darwin |
| 46 | AC_DEFINE([HTOP_DARWIN], [], [Building for Darwin.]) |
| 47 | ;; |
| 48 | solaris*) |
| 49 | my_htop_platform=solaris |
| 50 | AC_DEFINE([HTOP_SOLARIS], [], [Building for Solaris.]) |
| 51 | ;; |
| 52 | *) |
| 53 | my_htop_platform=unsupported |
| 54 | AC_DEFINE([HTOP_UNSUPPORTED], [], [Building for an unsupported platform.]) |
| 55 | ;; |
| 56 | esac |
| Hisham Muhammad | 4df76d1 | 2008-03-05 09:46:47 +0000 | [diff] [blame] | 57 | |
| Explorer09 | b71b07f | 2016-03-12 12:02:06 +0800 | [diff] [blame] | 58 | # Required by hwloc scripts |
| 59 | AC_USE_SYSTEM_EXTENSIONS |
| 60 | |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 61 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 62 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 63 | |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 64 | # ---------------------------------------------------------------------- |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 65 | # Checks for compiler. |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 66 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | e46f142 | 2006-07-12 01:15:14 +0000 | [diff] [blame] | 67 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 68 | AC_PROG_CC |
| 69 | AM_PROG_CC_C_O |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 70 | |
| Hisham Muhammad | 4df76d1 | 2008-03-05 09:46:47 +0000 | [diff] [blame] | 71 | save_cflags="${CFLAGS}" |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 72 | CFLAGS="${CFLAGS} -std=c99" |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 73 | AC_MSG_CHECKING([whether cc -std=c99 option works]) |
| Explorer09 | f0df28a | 2016-03-12 11:58:30 +0800 | [diff] [blame] | 74 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
| 75 | [AC_INCLUDES_DEFAULT], [[char *a; a = strdup("foo"); int i = 0; i++; // C99]])], |
| 76 | [AC_MSG_RESULT([yes])], |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 77 | [AC_MSG_ERROR([htop is written in C99. A newer compiler is required.])]) |
| Hisham Muhammad | 4df76d1 | 2008-03-05 09:46:47 +0000 | [diff] [blame] | 78 | CFLAGS="$save_cflags" |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 79 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 80 | # ---------------------------------------------------------------------- |
| 81 | |
| 82 | |
| 83 | # ---------------------------------------------------------------------- |
| 84 | # Checks for generic header files. |
| 85 | # ---------------------------------------------------------------------- |
| 86 | |
| 87 | AC_HEADER_DIRENT |
| 88 | AC_HEADER_STDC |
| 89 | AC_CHECK_HEADERS([ \ |
| 90 | stdlib.h \ |
| 91 | string.h \ |
| 92 | strings.h \ |
| 93 | sys/param.h \ |
| 94 | sys/time.h \ |
| 95 | unistd.h |
| 96 | ], [], [missing_headers="$missing_headers $ac_header"]) |
| 97 | |
| 98 | AC_HEADER_MAJOR |
| 99 | dnl glibc 2.25 deprecates 'major' and 'minor' in <sys/types.h> and requires to |
| 100 | dnl include <sys/sysmacros.h>. However the logic in AC_HEADER_MAJOR has not yet |
| 101 | dnl been updated in Autoconf 2.69, so use a workaround: |
| 102 | m4_version_prereq([2.70], [], |
| 103 | [if test "x$ac_cv_header_sys_mkdev_h" != xyes; then |
| 104 | AC_CHECK_HEADER([sys/sysmacros.h], [AC_DEFINE([MAJOR_IN_SYSMACROS], [1], |
| 105 | [Define to 1 if `major', `minor', and `makedev' are declared in <sys/sysmacros.h>.])]) |
| 106 | fi]) |
| 107 | |
| 108 | # Optional Section |
| 109 | |
| 110 | AC_CHECK_HEADERS([execinfo.h]) |
| 111 | |
| 112 | if test "$my_htop_platform" = darwin; then |
| 113 | AC_CHECK_HEADERS([mach/mach_time.h]) |
| 114 | fi |
| 115 | |
| 116 | # ---------------------------------------------------------------------- |
| 117 | |
| 118 | |
| 119 | # ---------------------------------------------------------------------- |
| 120 | # Checks for typedefs, structures, and compiler characteristics. |
| 121 | # ---------------------------------------------------------------------- |
| 122 | |
| 123 | AC_HEADER_STDBOOL |
| 124 | AC_C_CONST |
| 125 | AC_TYPE_PID_T |
| 126 | AC_TYPE_UID_T |
| 127 | AC_TYPE_UINT8_T |
| 128 | AC_TYPE_UINT16_T |
| 129 | AC_TYPE_UINT32_T |
| 130 | AC_TYPE_UINT64_T |
| 131 | |
| 132 | # ---------------------------------------------------------------------- |
| 133 | |
| 134 | |
| 135 | # ---------------------------------------------------------------------- |
| 136 | # Checks for generic library functions. |
| 137 | # ---------------------------------------------------------------------- |
| 138 | |
| 139 | AC_FUNC_CLOSEDIR_VOID |
| 140 | AC_FUNC_STAT |
| 141 | |
| 142 | AC_CHECK_LIB([m], [ceil], [], [missing_libraries="$missing_libraries libm"]) |
| 143 | |
| 144 | if test "$my_htop_platform" = dragonflybsd; then |
| 145 | AC_SEARCH_LIBS([kvm_open], [kvm], [], [missing_libraries="$missing_libraries libkvm"]) |
| 146 | fi |
| 147 | |
| 148 | if test "$my_htop_platform" = freebsd; then |
| 149 | AC_SEARCH_LIBS([kvm_open], [kvm], [], [missing_libraries="$missing_libraries libkvm"]) |
| 150 | AC_SEARCH_LIBS([devstat_checkversion], [devstat], [], [missing_libraries="$missing_libraries libdevstat"]) |
| 151 | fi |
| 152 | |
| 153 | if test "$my_htop_platform" = linux; then |
| 154 | AC_SEARCH_LIBS([dlopen], [dl dld], [], [missing_libraries="$missing_libraries libdl/libdld"]) |
| 155 | fi |
| 156 | |
| 157 | if test "$my_htop_platform" = openbsd; then |
| 158 | AC_SEARCH_LIBS([kvm_open], [kvm], [], [missing_libraries="$missing_libraries libkvm"]) |
| 159 | fi |
| 160 | |
| 161 | if test "$my_htop_platform" = solaris; then |
| 162 | AC_SEARCH_LIBS([kstat_open], [kstat], [], [missing_libraries="$missing_libraries libkstat"]) |
| 163 | AC_SEARCH_LIBS([Pgrab_error], [proc], [], [missing_libraries="$missing_libraries libproc"]) |
| 164 | AC_SEARCH_LIBS([free], [malloc], [], [missing_libraries="$missing_libraries libmalloc"]) |
| 165 | fi |
| 166 | |
| 167 | # Optional Section |
| 168 | |
| 169 | AC_SEARCH_LIBS([clock_gettime], [rt]) |
| 170 | |
| 171 | AC_CHECK_FUNCS([ \ |
| 172 | clock_gettime \ |
| 173 | faccessat \ |
| 174 | fstatat \ |
| 175 | host_get_clock_service \ |
| 176 | openat \ |
| 177 | readlinkat \ |
| 178 | ]) |
| 179 | |
| Christian Göttsche | 1d00893 | 2020-10-15 21:12:57 +0200 | [diff] [blame] | 180 | # Add -lexecinfo if needed |
| 181 | AC_SEARCH_LIBS([backtrace], [execinfo]) |
| 182 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 183 | if test "$my_htop_platform" = darwin; then |
| 184 | AC_CHECK_FUNCS([mach_timebase_info]) |
| 185 | fi |
| Christian Goettsche | c2fdfd9 | 2020-10-21 17:06:32 +0200 | [diff] [blame] | 186 | |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 187 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 188 | |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 189 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 190 | # ---------------------------------------------------------------------- |
| 191 | # Checks for cross-platform features and flags. |
| 192 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | a5dfaa2 | 2008-09-23 04:31:13 +0000 | [diff] [blame] | 193 | |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 194 | # HTOP_CHECK_SCRIPT(LIBNAME, FUNCTION, DEFINE, CONFIG_SCRIPT, ELSE_PART) |
| 195 | m4_define([HTOP_CHECK_SCRIPT], |
| Hisham Muhammad | 96c929f | 2015-11-30 16:36:22 -0200 | [diff] [blame] | 196 | [ |
| Ricardo Martincoski | 78b82d0 | 2016-07-11 20:12:07 -0300 | [diff] [blame] | 197 | if test ! -z "m4_toupper($HTOP_[$1]_CONFIG_SCRIPT)"; then |
| 198 | # to be used to set the path to ncurses*-config when cross-compiling |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 199 | htop_config_script_libs=$(m4_toupper($HTOP_[$1]_CONFIG_SCRIPT) --libs 2> /dev/null) |
| 200 | htop_config_script_cflags=$(m4_toupper($HTOP_[$1]_CONFIG_SCRIPT) --cflags 2> /dev/null) |
| Ricardo Martincoski | 78b82d0 | 2016-07-11 20:12:07 -0300 | [diff] [blame] | 201 | else |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 202 | htop_config_script_libs=$([$4] --libs 2> /dev/null) |
| 203 | htop_config_script_cflags=$([$4] --cflags 2> /dev/null) |
| Ricardo Martincoski | 78b82d0 | 2016-07-11 20:12:07 -0300 | [diff] [blame] | 204 | fi |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 205 | htop_script_success=no |
| 206 | htop_save_LDFLAGS="$LDFLAGS" |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 207 | htop_save_CFLAGS="$CFLAGS" |
| 208 | if test ! "x$htop_config_script_libs" = x; then |
| 209 | LDFLAGS="$htop_config_script_libs $LDFLAGS" |
| 210 | CFLAGS="$htop_config_script_cflags $CFLAGS" |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 211 | AC_CHECK_LIB([$1], [$2], [ |
| 212 | AC_DEFINE([$3], 1, [The library is present.]) |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 213 | LIBS="$htop_config_script_libs $LIBS " |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 214 | htop_script_success=yes |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 215 | ], [ |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 216 | CFLAGS="$htop_save_CFLAGS" |
| Michael Klein | bc5d469 | 2018-02-26 14:19:01 +0100 | [diff] [blame] | 217 | ]) |
| Hisham Muhammad | df9922a | 2018-02-17 14:50:55 -0200 | [diff] [blame] | 218 | LDFLAGS="$htop_save_LDFLAGS" |
| Hisham Muhammad | c237702 | 2015-12-06 19:06:23 -0200 | [diff] [blame] | 219 | fi |
| Hisham Muhammad | cccc18d | 2015-12-09 17:34:57 -0200 | [diff] [blame] | 220 | if test "x$htop_script_success" = xno; then |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 221 | [$5] |
| 222 | fi |
| 223 | ]) |
| 224 | |
| 225 | # HTOP_CHECK_LIB(LIBNAME, FUNCTION, DEFINE, ELSE_PART) |
| 226 | m4_define([HTOP_CHECK_LIB], |
| 227 | [ |
| Hisham Muhammad | 96c929f | 2015-11-30 16:36:22 -0200 | [diff] [blame] | 228 | AC_CHECK_LIB([$1], [$2], [ |
| 229 | AC_DEFINE([$3], 1, [The library is present.]) |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 230 | LIBS="-l[$1] $LIBS " |
| 231 | ], [$4]) |
| Hisham Muhammad | 96c929f | 2015-11-30 16:36:22 -0200 | [diff] [blame] | 232 | ]) |
| 233 | |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 234 | AC_ARG_ENABLE([unicode], |
| 235 | [AS_HELP_STRING([--enable-unicode], |
| 236 | [enable Unicode support @<:@default=yes@:>@])], |
| 237 | [], |
| 238 | [enable_unicode=yes]) |
| Hisham Muhammad | 8fa33dc | 2008-03-09 02:33:23 +0000 | [diff] [blame] | 239 | if test "x$enable_unicode" = xyes; then |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 240 | HTOP_CHECK_SCRIPT([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw6-config", |
| Diederik de Groot | b258d6e | 2017-04-19 16:12:17 +0200 | [diff] [blame] | 241 | HTOP_CHECK_SCRIPT([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw6-config", |
| 242 | HTOP_CHECK_SCRIPT([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], "ncursesw5-config", |
| 243 | HTOP_CHECK_SCRIPT([ncurses], [addnwstr], [HAVE_LIBNCURSESW], "ncurses5-config", |
| 244 | HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW], |
| 245 | HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW], |
| 246 | HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW], |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 247 | missing_libraries="$missing_libraries libncursesw" |
| 248 | AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.]) |
| Diederik de Groot | b258d6e | 2017-04-19 16:12:17 +0200 | [diff] [blame] | 249 | ))))))) |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 250 | |
| Hisham Muhammad | a7bcf1d | 2011-09-08 01:45:16 +0000 | [diff] [blame] | 251 | AC_CHECK_HEADERS([ncursesw/curses.h],[:], |
| Hisham Muhammad | a081056 | 2013-02-26 17:10:11 +0000 | [diff] [blame] | 252 | [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], |
| 253 | [AC_CHECK_HEADERS([ncurses/curses.h],[:], |
| 254 | [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) |
| Christian Göttsche | ead978b | 2020-12-07 15:30:56 +0100 | [diff] [blame] | 255 | |
| 256 | # check if additional linker flags are needed for keypad(3) |
| 257 | # (at this point we already link against a working ncurses library with wide character support) |
| 258 | AC_SEARCH_LIBS([keypad], [tinfow tinfo]) |
| Hisham Muhammad | 8fa33dc | 2008-03-09 02:33:23 +0000 | [diff] [blame] | 259 | else |
| Hisham Muhammad | db68286 | 2015-12-09 17:17:30 -0200 | [diff] [blame] | 260 | HTOP_CHECK_SCRIPT([ncurses6], [refresh], [HAVE_LIBNCURSES], "ncurses6-config", |
| 261 | HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config", |
| 262 | HTOP_CHECK_LIB([ncurses6], [refresh], [HAVE_LIBNCURSES], |
| 263 | HTOP_CHECK_LIB([ncurses], [refresh], [HAVE_LIBNCURSES], |
| 264 | missing_libraries="$missing_libraries libncurses" |
| 265 | )))) |
| Christian Göttsche | b92f62f | 2020-08-21 10:37:33 +0200 | [diff] [blame] | 266 | |
| Hisham Muhammad | a081056 | 2013-02-26 17:10:11 +0000 | [diff] [blame] | 267 | AC_CHECK_HEADERS([curses.h],[:], |
| 268 | [AC_CHECK_HEADERS([ncurses/curses.h],[:], |
| 269 | [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], |
| 270 | [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) |
| Christian Göttsche | ead978b | 2020-12-07 15:30:56 +0100 | [diff] [blame] | 271 | |
| 272 | # check if additional linker flags are needed for keypad(3) |
| 273 | # (at this point we already link against a working ncurses library) |
| 274 | AC_SEARCH_LIBS([keypad], [tinfo]) |
| Hisham Muhammad | 4c51ad0 | 2007-08-10 05:07:14 +0000 | [diff] [blame] | 275 | fi |
| 276 | |
| gmbroome | 697f5bb | 2018-03-02 16:20:46 -0500 | [diff] [blame] | 277 | |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 278 | AC_ARG_ENABLE([hwloc], |
| 279 | [AS_HELP_STRING([--enable-hwloc], |
| 280 | [enable hwloc support for CPU affinity; disables Linux affinity; requires libhwloc @<:@default=no@:>@])], |
| 281 | [], |
| 282 | [enable_hwloc=no]) |
| 283 | case "$enable_hwloc" in |
| 284 | no) |
| 285 | ;; |
| 286 | yes) |
| 287 | AC_CHECK_LIB([hwloc], [hwloc_get_proc_cpubind], [], [missing_libraries="$missing_libraries libhwloc"]) |
| 288 | AC_CHECK_HEADERS([hwloc.h], [], [missing_headers="$missing_headers $ac_header"]) |
| 289 | ;; |
| 290 | *) |
| 291 | AC_MSG_ERROR([bad value '$enable_hwloc' for --enable-hwloc]) |
| 292 | ;; |
| 293 | esac |
| Christian Göttsche | 005c4d1 | 2020-09-08 16:25:22 +0200 | [diff] [blame] | 294 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 295 | |
| 296 | AC_ARG_ENABLE([setuid], |
| 297 | [AS_HELP_STRING([--enable-setuid], |
| 298 | [enable setuid support for privilege dropping @<:@default=no@:>@])], |
| 299 | [], |
| 300 | [enable_setuid=no]) |
| 301 | if test "x$enable_setuid" = xyes; then |
| 302 | AC_DEFINE([HAVE_SETUID_ENABLED], [1], [Define if setuid support should be enabled.]) |
| 303 | fi |
| 304 | |
| 305 | # ---------------------------------------------------------------------- |
| 306 | |
| 307 | |
| 308 | # ---------------------------------------------------------------------- |
| 309 | # Checks for Linux features and flags. |
| 310 | # ---------------------------------------------------------------------- |
| 311 | |
| 312 | AC_ARG_WITH([proc], |
| 313 | [AS_HELP_STRING([--with-proc=DIR], |
| 314 | [location of a Linux-compatible proc filesystem @<:@default=/proc@:>@])], |
| 315 | [], |
| 316 | [with_proc=/proc]) |
| 317 | if test -z "$with_proc"; then |
| 318 | AC_MSG_ERROR([bad empty value for --with-proc option]) |
| 319 | fi |
| 320 | AC_DEFINE_UNQUOTED([PROCDIR], ["$with_proc"], [Path of proc filesystem.]) |
| 321 | |
| 322 | |
| 323 | AC_ARG_ENABLE([openvz], |
| 324 | [AS_HELP_STRING([--enable-openvz], |
| 325 | [enable OpenVZ support @<:@default=no@:>@])], |
| 326 | [], |
| 327 | [enable_openvz=no]) |
| 328 | if test "x$enable_openvz" = xyes; then |
| 329 | AC_DEFINE([HAVE_OPENVZ], [1], [Define if openvz support enabled.]) |
| 330 | fi |
| 331 | |
| 332 | |
| 333 | AC_ARG_ENABLE([vserver], |
| 334 | [AS_HELP_STRING([--enable-vserver], |
| 335 | [enable VServer support @<:@default=no@:>@])], |
| 336 | [], |
| 337 | [enable_vserver=no]) |
| 338 | if test "x$enable_vserver" = xyes; then |
| 339 | AC_DEFINE([HAVE_VSERVER], [1], [Define if VServer support enabled.]) |
| 340 | fi |
| 341 | |
| 342 | |
| 343 | AC_ARG_ENABLE([ancient_vserver], |
| 344 | [AS_HELP_STRING([--enable-ancient-vserver], |
| 345 | [enable ancient VServer support (implies --enable-vserver) @<:@default=no@:>@])], |
| 346 | [], |
| 347 | [enable_ancient_vserver=no]) |
| 348 | if test "x$enable_ancient_vserver" = xyes; then |
| 349 | AC_DEFINE([HAVE_VSERVER], [1], [Define if VServer support enabled.]) |
| 350 | AC_DEFINE([HAVE_ANCIENT_VSERVER], [1], [Define if ancient vserver support enabled.]) |
| 351 | fi |
| 352 | |
| 353 | |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 354 | AC_ARG_ENABLE([linux_affinity], |
| 355 | [AS_HELP_STRING([--enable-linux-affinity], |
| 356 | [enable Linux sched_setaffinity and sched_getaffinity for affinity support, conflicts with hwloc @<:@default=check@:>@])], |
| 357 | [], |
| 358 | [enable_linux_affinity=check]) |
| Christian Göttsche | 005c4d1 | 2020-09-08 16:25:22 +0200 | [diff] [blame] | 359 | if test "x$enable_linux_affinity" = xcheck; then |
| 360 | if test "x$enable_hwloc" = xyes; then |
| 361 | enable_linux_affinity=no |
| 362 | else |
| 363 | AC_MSG_CHECKING([for usable sched_setaffinity]) |
| 364 | AC_RUN_IFELSE([ |
| 365 | AC_LANG_PROGRAM([[ |
| 366 | #include <sched.h> |
| 367 | #include <errno.h> |
| 368 | static cpu_set_t cpuset; |
| 369 | ]], [[ |
| 370 | CPU_ZERO(&cpuset); |
| 371 | sched_setaffinity(0, sizeof(cpu_set_t), &cpuset); |
| 372 | if (errno == ENOSYS) return 1; |
| 373 | ]])], |
| 374 | [enable_linux_affinity=yes |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 375 | AC_MSG_RESULT([yes])], |
| Christian Göttsche | 005c4d1 | 2020-09-08 16:25:22 +0200 | [diff] [blame] | 376 | [enable_linux_affinity=no |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 377 | AC_MSG_RESULT([no])], |
| Christian Göttsche | 005c4d1 | 2020-09-08 16:25:22 +0200 | [diff] [blame] | 378 | [AC_MSG_RESULT([yes (assumed while cross compiling)])]) |
| 379 | fi |
| Hisham Muhammad | dfad0af | 2011-11-23 18:43:35 +0000 | [diff] [blame] | 380 | fi |
| Hisham | 474d26c | 2016-02-14 19:57:29 -0200 | [diff] [blame] | 381 | if test "x$enable_linux_affinity" = xyes; then |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 382 | if test "x$enable_hwloc" = xyes; then |
| 383 | AC_MSG_ERROR([--enable-hwloc and --enable-linux-affinity are mutual exclusive. Specify at most one of them.]) |
| 384 | fi |
| 385 | AC_DEFINE([HAVE_LINUX_AFFINITY], [1], [Define if Linux sched_setaffinity and sched_getaffinity are to be used.]) |
| Hisham Muhammad | 7ca1081 | 2011-11-18 06:08:56 +0000 | [diff] [blame] | 386 | fi |
| 387 | |
| Hisham Muhammad | 543d65c | 2017-07-26 15:40:55 -0300 | [diff] [blame] | 388 | |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 389 | AC_ARG_ENABLE([capabilities], |
| 390 | [AS_HELP_STRING([--enable-capabilities], |
| 391 | [enable Linux capabilities support; requires libcap @<:@default=check@:>@])], |
| 392 | [], |
| 393 | [enable_capabilities=check]) |
| 394 | case "$enable_capabilities" in |
| 395 | no) |
| 396 | ;; |
| 397 | check) |
| 398 | enable_capabilities=yes |
| 399 | AC_CHECK_LIB([cap], [cap_init], [], [enable_capabilities=no]) |
| 400 | AC_CHECK_HEADERS([sys/capability.h], [], [enable_capabilities=no]) |
| 401 | ;; |
| 402 | yes) |
| 403 | AC_CHECK_LIB([cap], [cap_init], [], [missing_libraries="$missing_libraries libcap"]) |
| 404 | AC_CHECK_HEADERS([sys/capability.h], [], [missing_headers="$missing_headers $ac_header"]) |
| 405 | ;; |
| 406 | *) |
| 407 | AC_MSG_ERROR([bad value '$enable_capabilities' for --enable-capabilities]) |
| 408 | ;; |
| 409 | esac |
| Christian Göttsche | f4404ef | 2020-09-02 14:39:25 +0200 | [diff] [blame] | 410 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 411 | |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 412 | AC_ARG_ENABLE([delayacct], |
| 413 | [AS_HELP_STRING([--enable-delayacct], |
| 414 | [enable Linux delay accounting support; requires pkg-config, libnl-3 and libnl-genl-3 @<:@default=check@:>@])], |
| 415 | [], |
| 416 | [enable_delayacct=check]) |
| 417 | case "$enable_delayacct" in |
| 418 | no) |
| 419 | ;; |
| 420 | check) |
| 421 | m4_ifdef([PKG_PROG_PKG_CONFIG], [ |
| 422 | enable_delayacct=yes |
| 423 | PKG_PROG_PKG_CONFIG() |
| 424 | PKG_CHECK_MODULES(LIBNL3, libnl-3.0, [], [enable_delayacct=no]) |
| 425 | PKG_CHECK_MODULES(LIBNL3GENL, libnl-genl-3.0, [], [enable_delayacct=no]) |
| 426 | if test "$enable_delayacct" = yes; then |
| 427 | CFLAGS="$CFLAGS $LIBNL3_CFLAGS $LIBNL3GENL_CFLAGS" |
| 428 | LIBS="$LIBS $LIBNL3_LIBS $LIBNL3GENL_LIBS" |
| 429 | AC_DEFINE([HAVE_DELAYACCT], [1], [Define if delay accounting support should be enabled.]) |
| 430 | fi |
| 431 | ], [ |
| 432 | enable_delayacct=no |
| 433 | AC_MSG_NOTICE([Linux delay accounting support can not be enabled, cause pkg-config is required for checking its availability]) |
| 434 | ]) |
| 435 | ;; |
| 436 | yes) |
| 437 | m4_ifdef([PKG_PROG_PKG_CONFIG], [ |
| 438 | PKG_PROG_PKG_CONFIG() |
| 439 | PKG_CHECK_MODULES(LIBNL3, libnl-3.0, [], [missing_libraries="$missing_libraries libnl-3"]) |
| 440 | PKG_CHECK_MODULES(LIBNL3GENL, libnl-genl-3.0, [], [missing_libraries="$missing_libraries libnl-genl-3"]) |
| 441 | CFLAGS="$CFLAGS $LIBNL3_CFLAGS $LIBNL3GENL_CFLAGS" |
| 442 | LIBS="$LIBS $LIBNL3_LIBS $LIBNL3GENL_LIBS" |
| 443 | AC_DEFINE([HAVE_DELAYACCT], [1], [Define if delay accounting support should be enabled.]) |
| 444 | ], [ |
| 445 | pkg_m4_absent=1 |
| 446 | m4_warning([configure is generated without pkg.m4. 'make dist' target will be disabled.]) |
| 447 | AC_MSG_ERROR([htop on Linux requires pkg-config for checking delayacct requirements. Please install pkg-config and run ./autogen.sh to rebuild the configure script.]) |
| 448 | ]) |
| 449 | ;; |
| 450 | *) |
| 451 | AC_MSG_ERROR([bad value '$enable_delayacct' for --enable-delayacct]) |
| 452 | ;; |
| 453 | esac |
| André Carvalho | b7b66b7 | 2017-12-04 00:15:29 -0200 | [diff] [blame] | 454 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 455 | |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 456 | AC_ARG_ENABLE([sensors], |
| 457 | [AS_HELP_STRING([--enable-sensors], |
| 458 | [enable libsensors support for reading temperature data; requires only libsensors headers at compile time, at runtime libsensors is loaded via dlopen @<:@default=check@:>@])], |
| 459 | [], |
| 460 | [enable_sensors=check]) |
| 461 | case "$enable_sensors" in |
| 462 | no) |
| 463 | ;; |
| 464 | check) |
| 465 | enable_sensors=yes |
| 466 | AC_CHECK_HEADERS([sensors/sensors.h], [], [enable_sensors=no]) |
| 467 | ;; |
| 468 | yes) |
| 469 | AC_CHECK_HEADERS([sensors/sensors.h], [], [missing_headers="$missing_headers $ac_header"]) |
| 470 | ;; |
| 471 | *) |
| 472 | AC_MSG_ERROR([bad value '$enable_sensors' for --enable-sensors]) |
| 473 | ;; |
| 474 | esac |
| 475 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 476 | # ---------------------------------------------------------------------- |
| 477 | |
| 478 | |
| 479 | # ---------------------------------------------------------------------- |
| 480 | # Checks for compiler warnings. |
| 481 | # ---------------------------------------------------------------------- |
| Christian Göttsche | 1b225cd | 2020-09-10 19:56:33 +0200 | [diff] [blame] | 482 | |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 483 | AM_CFLAGS="\ |
| 484 | -Wall\ |
| 485 | -Wcast-align\ |
| Christian Göttsche | db47207 | 2020-10-04 14:30:35 +0200 | [diff] [blame] | 486 | -Wcast-qual\ |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 487 | -Wextra\ |
| Benny Baumann | ba0fca1 | 2020-09-18 16:58:03 +0200 | [diff] [blame] | 488 | -Wfloat-equal\ |
| Christian Göttsche | c150e4b | 2020-12-18 15:49:37 +0100 | [diff] [blame] | 489 | -Wformat=2\ |
| Christian Göttsche | 4dadbe3 | 2021-01-21 19:49:07 +0100 | [diff] [blame] | 490 | -Winit-self\ |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 491 | -Wmissing-format-attribute\ |
| 492 | -Wmissing-noreturn\ |
| Christian Göttsche | 4e282eb | 2020-09-25 14:03:55 +0200 | [diff] [blame] | 493 | -Wmissing-prototypes\ |
| Christian Göttsche | f4602f7 | 2020-09-08 14:25:46 +0200 | [diff] [blame] | 494 | -Wpointer-arith\ |
| 495 | -Wshadow\ |
| 496 | -Wstrict-prototypes\ |
| 497 | -Wundef\ |
| 498 | -Wunused\ |
| 499 | -Wwrite-strings" |
| 500 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 501 | dnl https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html |
| 502 | AC_DEFUN([AX_CHECK_COMPILE_FLAG], |
| 503 | [AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF |
| 504 | AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl |
| 505 | AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [ |
| 506 | ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS |
| 507 | _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1" |
| 508 | AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], |
| 509 | [AS_VAR_SET(CACHEVAR,[yes])], |
| 510 | [AS_VAR_SET(CACHEVAR,[no])]) |
| 511 | _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags]) |
| 512 | AS_VAR_IF(CACHEVAR,yes, |
| 513 | [m4_default([$2], :)], |
| 514 | [m4_default([$3], :)]) |
| 515 | AS_VAR_POPDEF([CACHEVAR])dnl |
| 516 | ])dnl AX_CHECK_COMPILE_FLAGS |
| 517 | |
| Benny Baumann | 2cde4a7 | 2020-09-18 19:32:41 +0200 | [diff] [blame] | 518 | AX_CHECK_COMPILE_FLAG([-Wnull-dereference], [AM_CFLAGS="$AM_CFLAGS -Wnull-dereference"], , [-Werror]) |
| 519 | |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 520 | AC_ARG_ENABLE([werror], |
| 521 | [AS_HELP_STRING([--enable-werror], |
| 522 | [Treat warnings as errors @<:@default=no@:>@])], |
| 523 | [], |
| 524 | [enable_werror=no]) |
| 525 | if test "x$enable_werror" = xyes; then |
| 526 | AM_CFLAGS="$AM_CFLAGS -Werror" |
| 527 | fi |
| 528 | |
| 529 | AC_ARG_ENABLE([debug], |
| 530 | [AS_HELP_STRING([--enable-debug], |
| 531 | [Enable asserts and internal sanity checks @<:@default=no@:>@])], |
| 532 | [], |
| 533 | [enable_debug=no]) |
| 534 | if test "x$enable_debug" != xyes; then |
| 535 | AM_CPPFLAGS="$AM_CPPFLAGS -DNDEBUG" |
| 536 | fi |
| Christian Göttsche | b7f6329 | 2020-09-17 22:23:05 +0200 | [diff] [blame] | 537 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 538 | |
| Christian Göttsche | 57254cd | 2020-08-21 10:37:20 +0200 | [diff] [blame] | 539 | AC_SUBST([AM_CFLAGS]) |
| Christian Göttsche | b7f6329 | 2020-09-17 22:23:05 +0200 | [diff] [blame] | 540 | AC_SUBST([AM_CPPFLAGS]) |
| 541 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 542 | # ---------------------------------------------------------------------- |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 543 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 544 | |
| 545 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 546 | # Bail out on errors. |
| 547 | # ---------------------------------------------------------------------- |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 548 | |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 549 | if test ! -z "$missing_libraries"; then |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 550 | AC_MSG_ERROR([missing libraries: $missing_libraries]) |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 551 | fi |
| 552 | if test ! -z "$missing_headers"; then |
| Benny Baumann | 880eeca | 2020-12-12 19:49:52 +0100 | [diff] [blame] | 553 | AC_MSG_ERROR([missing headers: $missing_headers]) |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 554 | fi |
| 555 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 556 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | 3383d8e | 2015-01-21 23:27:31 -0200 | [diff] [blame] | 557 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 558 | |
| 559 | # ---------------------------------------------------------------------- |
| Hisham Muhammad | 300af4b | 2014-11-19 23:17:16 -0200 | [diff] [blame] | 560 | # We're done, let's go! |
| 561 | # ---------------------------------------------------------------------- |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 562 | |
| 563 | AC_DEFINE_UNQUOTED([COPYRIGHT], ["(C) 2004-2019 Hisham Muhammad. (C) 2020-2021 htop dev team."], [Copyright message.]) |
| 564 | |
| Hisham Muhammad | a75161f | 2014-11-24 20:11:33 -0200 | [diff] [blame] | 565 | AM_CONDITIONAL([HTOP_LINUX], [test "$my_htop_platform" = linux]) |
| Hisham Muhammad | 8915b29 | 2014-11-27 16:27:34 -0200 | [diff] [blame] | 566 | AM_CONDITIONAL([HTOP_FREEBSD], [test "$my_htop_platform" = freebsd]) |
| Diederik de Groot | b258d6e | 2017-04-19 16:12:17 +0200 | [diff] [blame] | 567 | AM_CONDITIONAL([HTOP_DRAGONFLYBSD], [test "$my_htop_platform" = dragonflybsd]) |
| Michael McConville | a9a5a53 | 2015-09-18 00:46:48 -0400 | [diff] [blame] | 568 | AM_CONDITIONAL([HTOP_OPENBSD], [test "$my_htop_platform" = openbsd]) |
| David Hunt | 70e7c8d | 2015-07-12 13:47:43 -0500 | [diff] [blame] | 569 | AM_CONDITIONAL([HTOP_DARWIN], [test "$my_htop_platform" = darwin]) |
| gmbroome | 697f5bb | 2018-03-02 16:20:46 -0500 | [diff] [blame] | 570 | AM_CONDITIONAL([HTOP_SOLARIS], [test "$my_htop_platform" = solaris]) |
| Hisham Muhammad | a75161f | 2014-11-24 20:11:33 -0200 | [diff] [blame] | 571 | AM_CONDITIONAL([HTOP_UNSUPPORTED], [test "$my_htop_platform" = unsupported]) |
| Hisham Muhammad | eb229d9 | 2014-11-24 18:55:03 -0200 | [diff] [blame] | 572 | AC_SUBST(my_htop_platform) |
| Daniel Lange | e172282 | 2020-08-24 21:37:28 +0200 | [diff] [blame] | 573 | AC_CONFIG_FILES([Makefile htop.1]) |
| Hisham Muhammad | d6231ba | 2006-03-04 18:16:49 +0000 | [diff] [blame] | 574 | AC_OUTPUT |
| Hisham Muhammad | c39f18a | 2017-07-10 20:14:25 -0300 | [diff] [blame] | 575 | |
| Christian Göttsche | f3623b7 | 2021-01-22 19:14:50 +0100 | [diff] [blame^] | 576 | if test "$my_htop_platform" = unsupported; then |
| Hisham Muhammad | c39f18a | 2017-07-10 20:14:25 -0300 | [diff] [blame] | 577 | echo "" |
| 578 | echo "****************************************************************" |
| 579 | echo "WARNING! This platform is not currently supported by htop." |
| 580 | echo "" |
| 581 | echo "The code will build, but it will produce a dummy version of htop" |
| 582 | echo "which shows no processes, using the files from the unsupported/" |
| 583 | echo "directory. This is meant to be a skeleton, to be used as a" |
| 584 | echo "starting point if you are porting htop to a new platform." |
| 585 | echo "****************************************************************" |
| 586 | echo "" |
| 587 | fi |
| Christian Göttsche | 3b084db | 2020-08-28 12:10:31 +0200 | [diff] [blame] | 588 | |
| 589 | AC_MSG_RESULT([ |
| 590 | ${PACKAGE_NAME} ${VERSION} |
| 591 | |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 592 | platform: $my_htop_platform |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 593 | (Linux) proc directory: $with_proc |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 594 | (Linux) openvz: $enable_openvz |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 595 | (Linux) vserver: $enable_vserver |
| 596 | (Linux) ancient vserver: $enable_ancient_vserver |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 597 | (Linux) affinity: $enable_linux_affinity |
| 598 | (Linux) delay accounting: $enable_delayacct |
| Christian Göttsche | 5e103ff | 2021-01-22 19:14:46 +0100 | [diff] [blame] | 599 | (Linux) sensors: $enable_sensors |
| 600 | (Linux) capabilities: $enable_capabilities |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 601 | unicode: $enable_unicode |
| Daniel Lange | 309f1d7 | 2020-11-16 13:29:37 +0100 | [diff] [blame] | 602 | hwloc: $enable_hwloc |
| Christian Göttsche | ffd90c2 | 2020-10-05 12:29:31 +0200 | [diff] [blame] | 603 | setuid: $enable_setuid |
| Daniel Lange | a8a723f | 2020-11-16 17:01:51 +0100 | [diff] [blame] | 604 | debug: $enable_debug |
| Christian Göttsche | 3b084db | 2020-08-28 12:10:31 +0200 | [diff] [blame] | 605 | ]) |