Mailing List Archive

python/dist/src configure,1.340,1.341 configure.in,1.351,1.352
Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv25615

Modified Files:
configure configure.in
Log Message:
Also look in -lposix4 for sem_init. Fixes #618615.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.340
retrieving revision 1.341
diff -C2 -d -r1.340 -r1.341
*** configure 4 Oct 2002 10:21:59 -0000 1.340
--- configure 6 Oct 2002 11:48:08 -0000 1.341
***************
*** 1,4 ****
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
--- 1,4 ----
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
***************
*** 9220,9231 ****
fi
# Dynamic linking for HP-UX
!
! echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
! echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6
! if test "${ac_cv_lib_rt_sem_init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
! ac_check_lib_save_LIBS=$LIBS
! LIBS="-lrt $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
--- 9220,9230 ----
fi
# Dynamic linking for HP-UX
! echo "$as_me:$LINENO: checking for library containing sem_init" >&5
! echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
! if test "${ac_cv_search_sem_init+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
! ac_func_search_save_LIBS=$LIBS
! ac_cv_search_sem_init=no
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
***************
*** 9265,9288 ****
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
! ac_cv_lib_rt_sem_init=yes
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
- ac_cv_lib_rt_sem_init=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! LIBS=$ac_check_lib_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
! echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6
! if test $ac_cv_lib_rt_sem_init = yes; then
! cat >>confdefs.h <<_ACEOF
! #define HAVE_LIBRT 1
! _ACEOF

! LIBS="-lrt $LIBS"

fi

# checks for system dependent C++ extensions support
--- 9264,9332 ----
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
! ac_cv_search_sem_init="none required"
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! if test "$ac_cv_search_sem_init" = no; then
! for ac_lib in rt posix4; do
! LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! cat >conftest.$ac_ext <<_ACEOF
! #line $LINENO "configure"
! #include "confdefs.h"

! /* Override any gcc2 internal prototype to avoid an error. */
! #ifdef __cplusplus
! extern "C"
! #endif
! /* We use char because int might match the return type of a gcc2
! builtin and then its argument prototype would still apply. */
! char sem_init ();
! #ifdef F77_DUMMY_MAIN
! # ifdef __cplusplus
! extern "C"
! # endif
! int F77_DUMMY_MAIN() { return 1; }
! #endif
! int
! main ()
! {
! sem_init ();
! ;
! return 0;
! }
! _ACEOF
! rm -f conftest.$ac_objext conftest$ac_exeext
! if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! (eval $ac_link) 2>&5
! ac_status=$?
! echo "$as_me:$LINENO: \$? = $ac_status" >&5
! (exit $ac_status); } &&
! { ac_try='test -s conftest$ac_exeext'
! { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! (eval $ac_try) 2>&5
! ac_status=$?
! echo "$as_me:$LINENO: \$? = $ac_status" >&5
! (exit $ac_status); }; }; then
! ac_cv_search_sem_init="-l$ac_lib"
! break
! else
! echo "$as_me: failed program was:" >&5
! cat conftest.$ac_ext >&5
! fi
! rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! done
! fi
! LIBS=$ac_func_search_save_LIBS
! fi
! echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
! echo "${ECHO_T}$ac_cv_search_sem_init" >&6
! if test "$ac_cv_search_sem_init" != no; then
! test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"

fi

# checks for system dependent C++ extensions support

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.351
retrieving revision 1.352
diff -C2 -d -r1.351 -r1.352
*** configure.in 4 Oct 2002 10:22:02 -0000 1.351
--- configure.in 6 Oct 2002 11:48:09 -0000 1.352
***************
*** 1094,1098 ****
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
! AC_CHECK_LIB(rt, sem_init) # 'Real Time' functions on Solaris

# checks for system dependent C++ extensions support
--- 1094,1099 ----
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
! AC_SEARCH_LIBS(sem_init, rt posix4) # 'Real Time' functions on Solaris,
! # posix4 on Solaris 2.6

# checks for system dependent C++ extensions support