summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-15 21:12:57 +0200
committercgzones <cgzones@googlemail.com>2020-10-16 10:58:14 +0200
commit1d00893110bd7cc68b49c751d4fd734610eac959 (patch)
treee3c7d8f5b0403c7bc06877c2521cfdfa30d7be84 /configure.ac
parent846fe8a71fd8ee5d91b297610e885b93ca039cd6 (diff)
Automatically detect if backtrace(3) needs -lexecinfo
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 31d4a57c..b10d819a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,6 +92,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[AC_MSG_ERROR([htop is written in C99. A newer compiler is required.])])
CFLAGS="$save_cflags"
+# Add -lexecinfo if needed
+AC_SEARCH_LIBS([backtrace], [execinfo])
+
# Checks for features and flags.
# ----------------------------------------------------------------------
PROCDIR=/proc

© 2014-2024 Faster IT GmbH | imprint | privacy policy