configure
changeset 11829 fcbafc9e443c
parent 11808 510c0e047122
child 11848 2f157c1ca383
     1.1 --- a/configure	Wed Jan 17 13:12:39 2018 -0800
     1.2 +++ b/configure	Wed Jan 17 13:17:10 2018 -0800
     1.3 @@ -19502,7 +19502,51 @@
     1.4  fi
     1.5  
     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 +        # Extract the first word of "pkg-config", so it can be a program name with args.
     1.9 +set dummy pkg-config; ac_word=$2
    1.10 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1.11 +$as_echo_n "checking for $ac_word... " >&6; }
    1.12 +if ${ac_cv_path_PKG_CONFIG+:} false; then :
    1.13 +  $as_echo_n "(cached) " >&6
    1.14 +else
    1.15 +  case $PKG_CONFIG in
    1.16 +  [\\/]* | ?:[\\/]*)
    1.17 +  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
    1.18 +  ;;
    1.19 +  *)
    1.20 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1.21 +for as_dir in $PATH
    1.22 +do
    1.23 +  IFS=$as_save_IFS
    1.24 +  test -z "$as_dir" && as_dir=.
    1.25 +    for ac_exec_ext in '' $ac_executable_extensions; do
    1.26 +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1.27 +    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    1.28 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1.29 +    break 2
    1.30 +  fi
    1.31 +done
    1.32 +  done
    1.33 +IFS=$as_save_IFS
    1.34 +
    1.35 +  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
    1.36 +  ;;
    1.37 +esac
    1.38 +fi
    1.39 +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
    1.40 +if test -n "$PKG_CONFIG"; then
    1.41 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
    1.42 +$as_echo "$PKG_CONFIG" >&6; }
    1.43 +else
    1.44 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    1.45 +$as_echo "no" >&6; }
    1.46 +fi
    1.47 +
    1.48 +
    1.49 +        if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
    1.50 +            RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
    1.51 +            RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
    1.52 +        elif test x$ARCH = xnetbsd; then
    1.53              RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
    1.54              RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
    1.55          else