replace TARGET_* with HAVE_* simplifying lists in configure script