Mercurial > mplayer.hg
comparison configure @ 5801:81fee5d61ddb
add headers detection for mpdvdkit
author | pontscho |
---|---|
date | Tue, 23 Apr 2002 16:29:13 +0000 |
parents | 31d67bcc713a |
children | d4bc84e7c0ad |
comparison
equal
deleted
inserted
replaced
5800:f2136a17b451 | 5801:81fee5d61ddb |
---|---|
1349 die "cannot find header inttypes.h (see in DOCS/faq.html)" | 1349 die "cannot find header inttypes.h (see in DOCS/faq.html)" |
1350 fi | 1350 fi |
1351 echores "$_inttypes" | 1351 echores "$_inttypes" |
1352 | 1352 |
1353 | 1353 |
1354 echocheck "stddef.h" | |
1355 cat > $TMPC << EOF | |
1356 #include <stddef.h> | |
1357 int main(void) { return 0; } | |
1358 EOF | |
1359 _stddef=no | |
1360 cc_check && _stddef=yes | |
1361 if test "$_stddef" = yes ; then | |
1362 _def_stddef='#define HAVE_STDDEF_H 1' | |
1363 else | |
1364 _def_stddef='#undef HAVE_STDDEF_H' | |
1365 fi | |
1366 echores "$_stddef" | |
1367 | |
1368 | |
1354 echocheck "malloc.h" | 1369 echocheck "malloc.h" |
1355 cat > $TMPC << EOF | 1370 cat > $TMPC << EOF |
1356 #include <malloc.h> | 1371 #include <malloc.h> |
1357 int main(void) { (void) malloc(0); return 0; } | 1372 int main(void) { (void) malloc(0); return 0; } |
1358 EOF | 1373 EOF |
1491 _def_sys_soundcard='#define HAVE_SYS_SOUNDCARD_H 1' | 1506 _def_sys_soundcard='#define HAVE_SYS_SOUNDCARD_H 1' |
1492 else | 1507 else |
1493 _def_sys_soundcard='#undef HAVE_SYS_SOUNDCARD_H' | 1508 _def_sys_soundcard='#undef HAVE_SYS_SOUNDCARD_H' |
1494 fi | 1509 fi |
1495 echores "$_sys_soundcard" | 1510 echores "$_sys_soundcard" |
1511 | |
1512 | |
1513 echocheck "sys/dvdio.h" | |
1514 cat > $TMPC << EOF | |
1515 #include <sys/dvdio.h> | |
1516 int main(void) { return 0; } | |
1517 EOF | |
1518 _dvdio=no | |
1519 cc_check && _dvdio=yes | |
1520 if test "$_dvdio" = yes ; then | |
1521 _def_dvdio='#define DVD_STRUCT_IN_SYS_DVDIO_H 1' | |
1522 else | |
1523 _def_dvdio='#undef DVD_STRUCT_IN_SYS_DVDIO_H' | |
1524 fi | |
1525 echores "$_dvdio" | |
1526 | |
1527 | |
1528 echocheck "sys/cdio.h" | |
1529 cat > $TMPC << EOF | |
1530 #include <sys/cdio.h> | |
1531 int main(void) { return 0; } | |
1532 EOF | |
1533 _cdio=no | |
1534 cc_check && _cdio=yes | |
1535 if test "$_cdio" = yes ; then | |
1536 _def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1' | |
1537 else | |
1538 _def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H' | |
1539 fi | |
1540 echores "$_cdio" | |
1541 | |
1542 | |
1543 echocheck "linux/cdrom.h" | |
1544 cat > $TMPC << EOF | |
1545 #include <linux/cdrom.h> | |
1546 int main(void) { return 0; } | |
1547 EOF | |
1548 _cdrom=no | |
1549 cc_check && _cdrom=yes | |
1550 if test "$_cdrom" = yes ; then | |
1551 _def_cdrom='#define DVD_STRUCT_IN_LINUX_CDROM_H 1' | |
1552 else | |
1553 _def_cdrom='#undef DVD_STRUCT_IN_LINUX_CDROM_H' | |
1554 fi | |
1555 echores "$_cdrom" | |
1556 | |
1557 | |
1558 echocheck "dvd.h" | |
1559 cat > $TMPC << EOF | |
1560 #include <dvd.h> | |
1561 int main(void) { return 0; } | |
1562 EOF | |
1563 _dvd=no | |
1564 cc_check && _dvd=yes | |
1565 if test "$_dvd" = yes ; then | |
1566 _def_dvd='#define DVD_STRUCT_IN_DVD_H 1' | |
1567 else | |
1568 _def_dvd='#undef DVD_STRUCT_IN_DVD_H' | |
1569 fi | |
1570 echores "$_dvd" | |
1571 | |
1572 | |
1573 echocheck "extras/BSDI_dvdioctl/dvd.h" | |
1574 cat > $TMPC << EOF | |
1575 #include <extras/BSDI_dvdioctl/dvd.h> | |
1576 int main(void) { return 0; } | |
1577 EOF | |
1578 _bsdi_dvd=no | |
1579 cc_check && _bsdi_dvd=yes | |
1580 if test "$_bsdi_dvd" = yes ; then | |
1581 _def_bsdi_dvd='#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1' | |
1582 else | |
1583 _def_bsdi_dvd='#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H' | |
1584 fi | |
1585 echores "$_bsdi_dvd" | |
1586 | |
1587 | |
1588 echocheck "Have userspace SCSI headers on Solaris" | |
1589 cat > $TMPC << EOF | |
1590 # include <unistd.h> | |
1591 # include <stropts.h> | |
1592 # include <sys/scsi/scsi_types.h> | |
1593 # include <sys/scsi/impl/uscsi.h> | |
1594 int main(void) { return 0; } | |
1595 EOF | |
1596 _sol_scsi_h=no | |
1597 cc_check && _sol_scsi_h=yes | |
1598 if test "$_sol_scsi_h" = yes ; then | |
1599 _def_sol_scsi_h='#define SOLARIS_USCSI 1' | |
1600 else | |
1601 _def_sol_scsi_h='#undef SOLARIS_USCSI' | |
1602 fi | |
1603 echores "$_sol_scsi_h" | |
1496 | 1604 |
1497 | 1605 |
1498 echocheck "termcap" | 1606 echocheck "termcap" |
1499 if test "$_termcap" = auto ; then | 1607 if test "$_termcap" = auto ; then |
1500 cat > $TMPC <<EOF | 1608 cat > $TMPC <<EOF |
2452 if test "$_dvdkit" = auto ; then | 2560 if test "$_dvdkit" = auto ; then |
2453 _dvdkit=no | 2561 _dvdkit=no |
2454 test -f "./libmpdvdkit/Makefile" && _dvdkit=yes | 2562 test -f "./libmpdvdkit/Makefile" && _dvdkit=yes |
2455 fi | 2563 fi |
2456 if test "$_dvdkit" = yes ; then | 2564 if test "$_dvdkit" = yes ; then |
2457 echores "yes" | 2565 test "$_dvd" = yes || test "$_cdrom" = yes || test "$_cdio" = yes || test "$_dvdio" = yes || test "$_bdsi_dvd" = yes && _dvdkit=yes |
2458 _inputmodules="mpdvdkit $_inputmodules" | 2566 if test "$_dvdkit" = yes ; then |
2459 _dvdread=included | 2567 _inputmodules="mpdvdkit $_inputmodules" |
2460 else | 2568 _dvdread=included |
2461 echores "no" | 2569 fi |
2570 if bsd ; then | |
2571 _def_dvd_bsd='#define HAVE_BSD_DVD_STRUCT 1' | |
2572 else | |
2573 _def_dvd_bsd='#undef HAVE_BSD_DVD_STRUCT' | |
2574 fi | |
2575 else | |
2462 _noinputmodules="mpdvdkit $_noinputmodules" | 2576 _noinputmodules="mpdvdkit $_noinputmodules" |
2463 fi | 2577 fi |
2578 echores "$_dvdkit" | |
2464 | 2579 |
2465 echocheck "DVD support (libcss - old style)" | 2580 echocheck "DVD support (libcss - old style)" |
2466 if test "$_css" = auto ; then | 2581 if test "$_css" = auto ; then |
2467 cat > $TMPC <<EOF | 2582 cat > $TMPC <<EOF |
2468 #include <sys/types.h> | 2583 #include <sys/types.h> |
3496 $_def_debug | 3611 $_def_debug |
3497 | 3612 |
3498 /* Indicates is Ogle's libdvdread is available for DVD playback */ | 3613 /* Indicates is Ogle's libdvdread is available for DVD playback */ |
3499 $_def_dvdread | 3614 $_def_dvdread |
3500 | 3615 |
3616 /* Additional options for libmpdvdkit*/ | |
3617 $_def_dvd | |
3618 $_def_cdrom | |
3619 $_def_cdio | |
3620 $_def_dvdio | |
3621 $_def_bsdi_dvd | |
3622 $_def_dvd_bsd | |
3623 $_def_sol_scsi_h | |
3624 $_def_stddef | |
3625 | |
3501 /* Common data directory (for fonts, etc) */ | 3626 /* Common data directory (for fonts, etc) */ |
3502 #define DATADIR "$_datadir" | 3627 #define DATADIR "$_datadir" |
3503 #define CONFDIR "$_confdir" | 3628 #define CONFDIR "$_confdir" |
3504 #define LIBDIR "$_libdir" | 3629 #define LIBDIR "$_libdir" |
3505 | 3630 |