Skip to content
Snippets Groups Projects
Commit f37617cb authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Improved check for union wait.

Rev: src/configure.in:1.191
parent 206e5d6f
No related branches found
No related tags found
No related merge requests found
AC_REVISION("$Id: configure.in,v 1.190 1998/05/22 11:27:34 grubba Exp $") AC_REVISION("$Id: configure.in,v 1.191 1998/05/22 11:56:14 grubba Exp $")
AC_INIT(interpret.c) AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h) AC_CONFIG_HEADER(machine.h)
...@@ -1460,8 +1460,20 @@ AC_CACHE_VAL(pike_cv_union_wait, [ AC_TRY_COMPILE([ ...@@ -1460,8 +1460,20 @@ AC_CACHE_VAL(pike_cv_union_wait, [ AC_TRY_COMPILE([
AC_MSG_RESULT($pike_cv_union_wait) AC_MSG_RESULT($pike_cv_union_wait)
if test "x$pike_cv_union_wait" = "xyes" ; then if test "x$pike_cv_union_wait" = "xyes" ; then
AC_MSG_CHECKING([whether union wait is really needed])
AC_CACHE_VAL(pike_cv_union_wait_needed, [ AC_TRY_COMPILE([
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif /* HAVE_SYS_WAIT_H */
], [
int status;
return WIFEXITED(status) || 0;
], pike_cv_union_wait_needed=no, pike_cv_union_wait_needed=yes)
])
if test "x$pike_cv_union_wait_needed" = "xyes" ; then
AC_DEFINE(HAVE_UNION_WAIT) AC_DEFINE(HAVE_UNION_WAIT)
fi else :; fi
else :; fi
############################################################################# #############################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment