bump version
[buildroot.git] / package / ruby / ruby-configure.patch
blobab44ebeca8fe16431035c83e73ee034e9cca8302
1 --- ruby-1.8.3/configure.in.orig 2005-11-29 11:18:27.000000000 +0100
2 +++ ruby-1.8.3/configure.in 2005-11-29 11:19:46.000000000 +0100
3 @@ -529,7 +529,25 @@
4 fi
6 AC_FUNC_GETPGRP
7 -AC_FUNC_SETPGRP
9 +dnl AC_FUNC_SETPGRP does not work if cross compiling
10 +dnl Instead, assume we will have a prototype for setpgrp if cross compiling.
11 +if test "$cross_compiling" = no; then
12 + AC_FUNC_SETPGRP
13 +else
14 + AC_CACHE_CHECK([whether setpgrp takes no argument], ac_cv_func_setpgrp_void,
15 + [AC_TRY_COMPILE([
16 +#include <unistd.h>
17 +], [
18 + if (setpgrp(1,1) == -1)
19 + exit (0);
20 + else
21 + exit (1);
22 +], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes)])
23 +if test $ac_cv_func_setpgrp_void = yes; then
24 + AC_DEFINE(SETPGRP_VOID, 1)
25 +fi
26 +fi
28 AC_C_BIGENDIAN
29 AC_C_CONST