diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2005-12-01 01:05:12 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2005-12-01 01:05:12 +0000 |
commit | f9c07ec61cb09dde465e02ea35b3cc9f832b369c (patch) | |
tree | af3b2b3cf16e4d121605a92a81a1fce6cb6e40c1 /configure.in | |
parent | e5b45d0e143bd3dbfb870cbe9fd33977db1a2b19 (diff) | |
download | monitoring-plugins-f9c07ec61cb09dde465e02ea35b3cc9f832b369c.tar.gz |
Run longer test on redhat for spopen/pthread problem. Allow enable/disable of
pthread fix via configure option
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1292 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/configure.in b/configure.in index be9fe83a..9303850a 100644 --- a/configure.in +++ b/configure.in | |||
@@ -1680,17 +1680,26 @@ dnl Wierd problem where ECHILD is returned from a wait call in error | |||
1680 | dnl Only appears to affect nslookup and dig calls. Only affects redhat around | 1680 | dnl Only appears to affect nslookup and dig calls. Only affects redhat around |
1681 | dnl 2.6.9-11 (okay in 2.6.9-5). Redhat investigating root cause | 1681 | dnl 2.6.9-11 (okay in 2.6.9-5). Redhat investigating root cause |
1682 | dnl We patch plugins/popen.c | 1682 | dnl We patch plugins/popen.c |
1683 | dnl Need to add smp because uname different on those. May need to check | 1683 | dnl Need to add smp because uname different on those |
1684 | dnl Fedora Core too in future | 1684 | dnl Can force patch to be applied with --enable-redhat-pthread-workaround |
1685 | if echo $ac_cv_uname_r | egrep "\.EL(smp)?$" >/dev/null 2>&1 ; then | 1685 | AC_ARG_ENABLE(redhat-pthread-workaround, |
1686 | AC_MSG_CHECKING(for redhat spopen problem) | 1686 | AC_HELP_STRING([--enable-redhat-pthread-workaround], |
1687 | ( cd config_test && make && make test ) > /dev/null 2>&1 | 1687 | [force Redhat patch to be applied (default: test system)]), |
1688 | if test $? -eq 0 ; then | 1688 | [ac_cv_enable_redhat_pthread_workaround=$enableval], |
1689 | AC_MSG_RESULT(okay) | 1689 | [ac_cv_enable_redhat_pthread_workaround=test]) |
1690 | else | 1690 | if test "$ac_cv_enable_redhat_pthread_workaround" = "test" ; then |
1691 | AC_MSG_RESULT(error) | 1691 | if echo $ac_cv_uname_r | egrep "\.EL(smp)?$" >/dev/null 2>&1 ; then |
1692 | AC_DEFINE(REDHAT_SPOPEN_ERROR, 1, "Problem on redhat with spopen") | 1692 | AC_MSG_CHECKING(for redhat spopen problem) |
1693 | ( cd config_test && make && make test ) > /dev/null 2>&1 | ||
1694 | if test $? -eq 0 ; then | ||
1695 | AC_MSG_RESULT(okay) | ||
1696 | else | ||
1697 | AC_MSG_RESULT(error) | ||
1698 | AC_DEFINE(REDHAT_SPOPEN_ERROR, 1, [Workaround on redhat in spopen]) | ||
1699 | fi | ||
1693 | fi | 1700 | fi |
1701 | elif test "$ac_cv_enable_redhat_pthread_workaround" = "yes" ; then | ||
1702 | AC_DEFINE(REDHAT_SPOPEN_ERROR, 1, [Forced workaround on redhat in spopen]) | ||
1694 | fi | 1703 | fi |
1695 | 1704 | ||
1696 | dnl External libraries - see ACKNOWLEDGEMENTS | 1705 | dnl External libraries - see ACKNOWLEDGEMENTS |