comparison configure @ 8111:b3b2951cbc1c

check for lrintf to avoid trouble compiling lavc!
author rfelker
date Tue, 05 Nov 2002 07:34:55 +0000
parents c34100c609ee
children dd58e58d1ef9
comparison
equal deleted inserted replaced
8110:884d233c25d5 8111:b3b2951cbc1c
1573 _ld_arch="-lposix4 $_ld_arch" 1573 _ld_arch="-lposix4 $_ld_arch"
1574 fi 1574 fi
1575 echores "$_posix4" 1575 echores "$_posix4"
1576 1576
1577 1577
1578 echocheck "lrintf"
1579 cat > $TMPC << EOF
1580 #include <math.h>
1581 int main(void) { (void) lrintf(0.0); return 0; }
1582 EOF
1583 _lrintf=no
1584 cc_check -lm && _lrintf=yes
1585 if test "$_lrintf" = yes ; then
1586 _def_lrintf="#define HAVE_LRINTF 1"
1587 else
1588 _def_lrintf="#undef HAVE_LRINTF"
1589 fi
1590 echores "$_lrintf"
1591
1592
1578 echocheck "nanosleep" 1593 echocheck "nanosleep"
1579 # also check for nanosleep 1594 # also check for nanosleep
1580 cat > $TMPC << EOF 1595 cat > $TMPC << EOF
1581 #include <time.h> 1596 #include <time.h>
1582 int main(void) { (void) nanosleep(0, 0); return 0; } 1597 int main(void) { (void) nanosleep(0, 0); return 0; }
4861 ** --enable/--disable options of the ./configure script! 4876 ** --enable/--disable options of the ./configure script!
4862 ** See ./configure --help for details. 4877 ** See ./configure --help for details.
4863 ** 4878 **
4864 *---------------------------------------------------------------------------*/ 4879 *---------------------------------------------------------------------------*/
4865 4880
4881 /* C99 lrintf function available */
4882 $_def_lrintf
4883
4866 /* nanosleep support */ 4884 /* nanosleep support */
4867 $_def_nanosleep 4885 $_def_nanosleep
4868 4886
4869 /* termcap flag for getch2.c */ 4887 /* termcap flag for getch2.c */
4870 $_def_termcap 4888 $_def_termcap