Made search.cgi.in the automake way. And added some better error checking to it. Added a check for which perl to configure.ac.