Mercurial > ~mikael > mcabber > hg
comparison mcabber/configure.ac @ 1454:6b98dc22946d
Add optional SIGWINCH handler (Markus Hennecke)
This patch from Markus Hennecke adds a configure option to
provide a SIGWINCH handler.
It is useful on some systems like OpenBSD where there is no
default handler for this signal.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 03 Apr 2008 21:20:56 +0200 |
parents | 844410b9b4cc |
children | 5e99e802656c |
comparison
equal
deleted
inserted
replaced
1453:f560710a6ad1 | 1454:6b98dc22946d |
---|---|
64 [#define _GNU_SOURCE | 64 [#define _GNU_SOURCE |
65 #include <time.h>]) | 65 #include <time.h>]) |
66 | 66 |
67 # Check for tm_gmtoff | 67 # Check for tm_gmtoff |
68 MC_TM_GMTOFF | 68 MC_TM_GMTOFF |
69 | |
70 # Check if we must provide a SIGWINCH handler | |
71 AC_ARG_ENABLE(sigwinch, | |
72 [ --enable-sigwinch compile with SIGWINCH handler], | |
73 [with_sigwinch=$enableval], | |
74 [with_sigwinch=$with_ext_funcs]) | |
75 AC_MSG_RESULT($with_sigwinch) | |
76 if test "$with_sigwinch" = yes; then | |
77 AC_DEFINE(USE_SIGWINCH, [], [Provide own SIGWINCH handler]) | |
78 fi | |
69 | 79 |
70 # Checks for libraries. | 80 # Checks for libraries. |
71 | 81 |
72 AC_CHECK_LIB(charset, locale_charset) | 82 AC_CHECK_LIB(charset, locale_charset) |
73 | 83 |