From: <ebo...@us...> - 2003-06-28 14:08:29
|
Update of /cvsroot/alleg/allegro In directory sc8-pr-cvs1:/tmp/cvs-serv1104 Modified Files: Tag: allegro_4_0_branch aclocal.m4 Log Message: Reworked test for sched_yield(). Index: aclocal.m4 =================================================================== RCS file: /cvsroot/alleg/allegro/aclocal.m4,v retrieving revision 1.26.2.7 retrieving revision 1.26.2.8 diff -u -d -r1.26.2.7 -r1.26.2.8 --- aclocal.m4 17 May 2003 12:58:35 -0000 1.26.2.7 +++ aclocal.m4 28 Jun 2003 14:08:27 -0000 1.26.2.8 @@ -435,27 +435,11 @@ dnl dnl Test where is sched_yield (SunOS). dnl -dnl Variables: -dnl allegro_sched_yield_lib -dnl dnl LIBS can be modified. dnl AC_DEFUN(ALLEGRO_ACTEST_SCHED_YIELD, -[AC_MSG_CHECKING(for sched_yield) -allegro_sched_yield_lib="no" -AC_TRY_LINK([ extern void sched_yield (); ], - [ sched_yield (); ], - AC_DEFINE(ALLEGRO_USE_SCHED_YIELD) - allegro_sched_yield_lib="-lc", - AC_CHECK_LIB(posix4, sched_yield, - [ LIBS="-lposix4 $LIBS" - AC_DEFINE(ALLEGRO_USE_SCHED_YIELD) - allegro_sched_yield_lib="-lposix4"], - AC_CHECK_LIB(rt, sched_yield, - [ LIBS="-lrt $LIBS" - AC_DEFINE(ALLEGRO_USE_SCHED_YIELD) - allegro_sched_yield_lib="-lrt"]))) -AC_MSG_RESULT($allegro_sched_yield_lib)]) +[AC_CHECK_LIB(c, sched_yield,, +AC_SEARCH_LIBS(sched_yield, posix4 rt))]) dnl dnl Test for constructor attribute support. |