Mercurial > mplayer.hg
changeset 32151:681716cd9232
Simplify DirectFB check using function_check().
author | diego |
---|---|
date | Tue, 14 Sep 2010 10:25:12 +0000 |
parents | 068e6ec38400 |
children | d125167b2034 |
files | configure |
diffstat | 1 files changed, 3 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Tue Sep 14 10:16:31 2010 +0000 +++ b/configure Tue Sep 14 10:25:12 2010 +0000 @@ -4339,14 +4339,9 @@ echocheck "DirectFB" if test "$_directfb" = auto ; then _directfb=no - cat > $TMPC <<EOF -#include <directfb.h> -int main(void) { DirectFBInit(0, 0); return 0; } -EOF - for _inc_tmp in "" -I/usr/local/include/directfb \ - -I/usr/include/directfb -I/usr/local/include; do - cc_check $_inc_tmp -ldirectfb && _directfb=yes && \ - extra_cflags="$extra_cflags $_inc_tmp" && break + for _inc_tmp in "" -I/usr/local/include/directfb -I/usr/include/directfb -I/usr/local/include; do + function_check directfb.h "DirectFBInit(0, 0)" $_inc_tmp -ldirectfb && + _directfb=yes && extra_cflags="$extra_cflags $_inc_tmp" && break done fi