From 14d367516504c0caedc6426fa3122a59e55584ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sun, 17 Jan 2010 19:10:03 +0000 Subject: [PATCH] configure: add check_struct function This adds a check_struct function to test for availability of a member within a struct. Originally committed as revision 21267 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configure b/configure index cf3d51ac2c..391e0349aa 100755 --- a/configure +++ b/configure @@ -759,6 +759,24 @@ $type v; EOF } +check_struct(){ + log check_type "$@" + headers=$1 + struct=$2 + member=$3 + shift 3 + disable_safe "${struct}_${member}" + incs="" + for hdr in $headers; do + incs="$incs +#include <$hdr>" + done + check_cc "$@" <$member; +EOF +} + require(){ name="$1" header="$2"