# Look for functions in $list. Return as soon as the first function is found,
# defining has_$fun
for fun in $list; do
  cmd="$CC $CFLAGS has_$fun.c -o $exe $extra_flags"; . log_cmd
  if test -s $exe ; then
    eval "has_$fun=yes"; echo ..."Found $fun."
    case "$_has_list" in
      *has_$fun*);;
      *) _has_list="$_has_list has_$fun";;
    esac
    break
  fi
  eval "has_$fun=no"; echo ..."I did not find $fun."
done
. cleanup_exe
