build configure and avoid warning from defining #GET_REF