X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=acinclude.m4;h=8d31a3f7b3e64b48917480b9bfe1a60a203bb29c;hb=0de2ad0a86685398621fb8ffa6990c029681bb3a;hp=60b9aec691902383da50a25f44be3128d475a97b;hpb=3ab887b9bc819a846c75dd7f2ee5d41fac22b19f;p=debian%2Famanda diff --git a/acinclude.m4 b/acinclude.m4 index 60b9aec..8d31a3f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -439,7 +439,33 @@ if test $cf_cv_arg_union_wait = yes; then AC_DEFINE(WAIT_USES_UNION,1,[Defined if wait() puts the status in a union wait instead of int. ]) fi ])dnl +AC_DEFUN([CF_WAIT_INT], +[ +AC_REQUIRE([AC_TYPE_PID_T]) +AC_HAVE_HEADERS(sys/wait.h wait.h) +AC_CACHE_CHECK([whether wait uses int], [cf_cv_arg_int], + [AC_TRY_COMPILE([ +#include +#if HAVE_SYS_WAIT_H +# include +#else +# if HAVE_WAIT_H +# include +# endif +#endif + +#ifdef __STDC__ +pid_t wait(int *); +#endif +], [ + int x; int i; + wait(&x); i = WIFEXITED(x) +], [cf_cv_arg_int=yes], [cf_cv_arg_int=no])]) +if test $cf_cv_arg_int = yes; then + AC_DEFINE(WAIT_USES_INT,1,[Defined if wait() puts the status in a int instead of a union wait. ]) +fi +])dnl dnl @synopsis AX_CREATE_STDINT_H [( HEADER-TO-GENERATE [, HEDERS-TO-CHECK])] dnl @@ -473,7 +499,7 @@ dnl Remember, if the system already had a valid , the generated dnl file will include it directly. No need for fuzzy HAVE_STDINT_H things... dnl dnl @, (status: used on new platforms) (see http://ac-archive.sf.net/gstdint/) -dnl @version $Id: acinclude.m4i,v 1.1.2.5.6.2 2004/04/29 20:47:40 martinea Exp $ +dnl @version $Id: acinclude.m4i,v 1.1.2.5.8.3 2004/04/29 20:47:22 martinea Exp $ dnl @author Guido Draheim AC_DEFUN([AX_CREATE_STDINT_H],