X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=config%2Facinclude.m4i;h=bbb5fcd2d3f332dbbaa0dedc3e6cb0095adc43a8;hb=c9bb64dd8260123d77b6f7be0f051f450b193e66;hp=bcc27129d7fbe091d831cadbab11be3e3f9197e6;hpb=9e3f8b799b5cfbbd61ce528e5a73794fc1bb8000;p=debian%2Famanda diff --git a/config/acinclude.m4i b/config/acinclude.m4i index bcc2712..bbb5fcd 100644 --- a/config/acinclude.m4i +++ b/config/acinclude.m4i @@ -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],