configure.in
changeset 11829 fcbafc9e443c
parent 11808 510c0e047122
child 11848 2f157c1ca383
     1.1 --- a/configure.in	Wed Jan 17 13:12:39 2018 -0800
     1.2 +++ b/configure.in	Wed Jan 17 13:17:10 2018 -0800
     1.3 @@ -1571,7 +1571,11 @@
     1.4  AC_HELP_STRING([--enable-video-rpi], [use Raspberry Pi video driver [[default=yes]]]),
     1.5                    , enable_video_rpi=yes)
     1.6      if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
     1.7 -        if test x$ARCH = xnetbsd; then
     1.8 +        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
     1.9 +        if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
    1.10 +            RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
    1.11 +            RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
    1.12 +        elif test x$ARCH = xnetbsd; then
    1.13              RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
    1.14              RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
    1.15          else