Cloned from CVS. Trying out autconf to wrap it up for OSX portability.