Mercurial > mplayer.hg
changeset 32179:bfd250df736d
Simplify OS/2 header checks using header_check_broken().
author | diego |
---|---|
date | Thu, 16 Sep 2010 11:26:16 +0000 |
parents | f65b5ba494a2 |
children | ee16bbd816a9 |
files | configure |
diffstat | 1 files changed, 3 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Sep 16 11:23:42 2010 +0000 +++ b/configure Thu Sep 16 11:26:16 2010 +0000 @@ -5307,13 +5307,8 @@ if os2 ; then echocheck "KVA (SNAP/WarpOverlay!/DIVE)" if test "$_kva" = auto; then - cat > $TMPC << EOF -#include <os2.h> -#include <kva.h> -int main(void) { return 0; } -EOF _kva=no; - cc_check -lkva && _kva=yes + header_check_broken os2.h kva.h -lkva && _kva=yes fi if test "$_kva" = yes ; then def_kva='#define CONFIG_KVA 1' @@ -5852,13 +5847,8 @@ if os2 ; then echocheck "KAI (UNIAUD/DART)" if test "$_kai" = auto; then - cat > $TMPC << EOF -#include <os2.h> -#include <kai.h> -int main(void) { return 0; } -EOF _kai=no; - cc_check -lkai && _kai=yes + header_check_broken os2.h kai.h -lkai && _kai=yes fi if test "$_kai" = yes ; then def_kai='#define CONFIG_KAI 1' @@ -5872,13 +5862,8 @@ echocheck "DART" if test "$_dart" = auto; then - cat > $TMPC << EOF -#include <os2.h> -#include <dart.h> -int main(void) { return 0; } -EOF _dart=no; - cc_check -ldart && _dart=yes + header_check_broken os2.h dart.h -ldart && _dart=yes fi if test "$_dart" = yes ; then def_dart='#define CONFIG_DART 1'