Revision 219c2521 configure

b/configure
3078 3078
  fi
3079 3079
fi
3080 3080

  
3081
# We also need to know the API version because there was an
3082
# API change from 1.4.0 to 1.5.0.
3083
if test "$libiscsi" = "yes"; then
3084
  cat >$TMPC <<EOF
3085
#include <iscsi/iscsi.h>
3086
int main(void)
3087
{
3088
  iscsi_read10_task(0, 0, 0, 0, 0, 0, 0);
3089
  return 0;
3090
}
3091
EOF
3092
  if compile_prog "" "-liscsi"; then
3093
    libiscsi_version="1.4.0"
3094
  fi
3095
fi
3081 3096

  
3082 3097
##########################################
3083 3098
# Do we need libm
......
3805 3820
echo "libusb            $libusb"
3806 3821
echo "usb net redir     $usb_redir"
3807 3822
echo "GLX support       $glx"
3823
if test "$libiscsi_version" = "1.4.0"; then
3824
echo "libiscsi support  $libiscsi (1.4.0)"
3825
else
3808 3826
echo "libiscsi support  $libiscsi"
3827
fi
3809 3828
echo "build guest agent $guest_agent"
3810 3829
echo "QGA VSS support   $guest_agent_with_vss"
3811 3830
echo "seccomp support   $seccomp"
......
4137 4156

  
4138 4157
if test "$libiscsi" = "yes" ; then
4139 4158
  echo "CONFIG_LIBISCSI=y" >> $config_host_mak
4159
  if test "$libiscsi_version" = "1.4.0"; then
4160
    echo "CONFIG_LIBISCSI_1_4=y" >> $config_host_mak
4161
  fi
4140 4162
fi
4141 4163

  
4142 4164
if test "$seccomp" = "yes"; then

Also available in: Unified diff