11#! /bin/sh
2- # From configure.in Revision: 1.328 .
2+ # From configure.in Revision: 1.329 .
33# Guess values for system-dependent variables and create Makefiles.
44# Generated by GNU Autoconf 2.53.
55#
@@ -12068,29 +12068,22 @@ rm -f conftest.$ac_objext conftest.$ac_ext
1206812068fi
1206912069done
1207012070
12071-
12072- for ac_func in setpgrp
12073- do
12074- as_ac_var=` echo " ac_cv_func_$ac_func " | $as_tr_sh `
12075- echo " $as_me :$LINENO : checking for $ac_func " >&5
12076- echo $ECHO_N " checking for $ac_func ... $ECHO_C " >&6
12077- if eval " test \"\$ {$as_ac_var +set}\" = set" ; then
12071+ echo " $as_me :$LINENO : checking whether setpgrp takes no argument" >&5
12072+ echo $ECHO_N " checking whether setpgrp takes no argument... $ECHO_C " >&6
12073+ if test " ${ac_cv_func_setpgrp_void+set} " = set ; then
1207812074 echo $ECHO_N " (cached) $ECHO_C " >&6
12075+ else
12076+ if test " $cross_compiling " = yes; then
12077+ { { echo " $as_me :$LINENO : error: cannot check setpgrp when cross compiling" >&5
12078+ echo " $as_me : error: cannot check setpgrp when cross compiling" >&2 ; }
12079+ { (exit 1); exit 1; }; }
1207912080else
1208012081 cat > conftest.$ac_ext << _ACEOF
1208112082#line $LINENO "configure"
1208212083#include "confdefs.h"
12083- /* System header to define __stub macros and hopefully few prototypes,
12084- which can conflict with char $ac_func (); below. */
12085- #include <assert.h>
12086- /* Override any gcc2 internal prototype to avoid an error. */
12087- #ifdef __cplusplus
12088- extern "C"
12084+ #if HAVE_UNISTD_H
12085+ # include <unistd.h>
1208912086#endif
12090- /* We use char because int might match the return type of a gcc2
12091- builtin and then its argument prototype would still apply. */
12092- char $ac_func ();
12093- char (*f) ();
1209412087
1209512088#ifdef F77_DUMMY_MAIN
1209612089# ifdef __cplusplus
@@ -12101,89 +12094,45 @@ char (*f) ();
1210112094int
1210212095main ()
1210312096{
12104- /* The GNU C library defines this for functions which it implements
12105- to always fail with ENOSYS. Some functions are actually named
12106- something starting with __ and the normal name is an alias. */
12107- #if defined (__stub_$ac_func ) || defined (__stub___$ac_func )
12108- choke me
12109- #else
12110- f = $ac_func ;
12111- #endif
12112-
12097+ /* If this system has a BSD-style setpgrp which takes arguments,
12098+ setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12099+ exit successfully. */
12100+ exit (setpgrp (1,1) == -1 ? 0 : 1);
1211312101 ;
1211412102 return 0;
1211512103}
1211612104_ACEOF
12117- rm -f conftest. $ac_objext conftest $ac_exeext
12105+ rm -f conftest$ac_exeext
1211812106if { (eval echo " $as_me :$LINENO : \" $ac_link \" " ) >&5
1211912107 (eval $ac_link ) 2>&5
1212012108 ac_status=$?
1212112109 echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
12122- (exit $ac_status ); } &&
12123- { ac_try=' test -s conftest$ac_exeext'
12110+ (exit $ac_status ); } && { ac_try=' ./conftest$ac_exeext'
1212412111 { (eval echo " $as_me :$LINENO : \" $ac_try \" " ) >&5
1212512112 (eval $ac_try ) 2>&5
1212612113 ac_status=$?
1212712114 echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
1212812115 (exit $ac_status ); }; }; then
12129- eval " $as_ac_var =yes "
12116+ ac_cv_func_setpgrp_void=no
1213012117else
12131- echo " $as_me : failed program was:" >&5
12118+ echo " $as_me : program exited with status $ac_status " >&5
12119+ echo " $as_me : failed program was:" >&5
1213212120cat conftest.$ac_ext >&5
12133- eval " $as_ac_var =no"
12121+ ( exit $ac_status )
12122+ ac_cv_func_setpgrp_void=yes
1213412123fi
12135- rm -f conftest. $ac_objext conftest$ac_exeext conftest.$ac_ext
12124+ rm -f core core. * * .core conftest$ac_exeext conftest. $ac_objext conftest.$ac_ext
1213612125fi
12137- echo " $as_me :$LINENO : result: ` eval echo ' ${' $as_ac_var ' }' ` " >&5
12138- echo " ${ECHO_T} ` eval echo ' ${' $as_ac_var ' }' ` " >&6
12139- if test ` eval echo ' ${' $as_ac_var ' }' ` = yes; then
12140- cat >> confdefs.h << _ACEOF
12141- #define ` echo " HAVE_$ac_func " | $as_tr_cpp ` 1
12142- _ACEOF
12143- cat > conftest.$ac_ext << _ACEOF
12144- #line $LINENO "configure"
12145- #include "confdefs.h"
12146- #include <unistd.h>
12147- #ifdef F77_DUMMY_MAIN
12148- # ifdef __cplusplus
12149- extern "C"
12150- # endif
12151- int F77_DUMMY_MAIN() { return 1; }
12152- #endif
12153- int
12154- main ()
12155- {
12156- setpgrp(0,0);
12157- ;
12158- return 0;
12159- }
12160- _ACEOF
12161- rm -f conftest.$ac_objext
12162- if { (eval echo " $as_me :$LINENO : \" $ac_compile \" " ) >&5
12163- (eval $ac_compile ) 2>&5
12164- ac_status=$?
12165- echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
12166- (exit $ac_status ); } &&
12167- { ac_try=' test -s conftest.$ac_objext'
12168- { (eval echo " $as_me :$LINENO : \" $ac_try \" " ) >&5
12169- (eval $ac_try ) 2>&5
12170- ac_status=$?
12171- echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
12172- (exit $ac_status ); }; }; then
12126+ fi
12127+ echo " $as_me :$LINENO : result: $ac_cv_func_setpgrp_void " >&5
12128+ echo " ${ECHO_T} $ac_cv_func_setpgrp_void " >&6
12129+ if test $ac_cv_func_setpgrp_void = yes; then
1217312130
1217412131cat >> confdefs.h << \_ACEOF
12175- #define SETPGRP_HAVE_ARG 1
12132+ #define SETPGRP_VOID 1
1217612133_ACEOF
1217712134
12178-
12179- else
12180- echo " $as_me : failed program was:" >&5
12181- cat conftest.$ac_ext >&5
12182- fi
12183- rm -f conftest.$ac_objext conftest.$ac_ext
12184-
1218512135fi
12186- done
1218712136
1218812137
1218912138for ac_func in gettimeofday
0 commit comments