[configure] Detect HAVE_GLOB_PERIOD, and use it