David, this script below looks to be autoconf generated
script, and as such, should not be manually post-processed.
It may be that the original m4 macro-source has the tests
wrong way around, and should be fixed + fix fed to autoconf
admins. It could also be that the test order is mandated
by AC_CHECK_HEADERS() -macro at configure.in -file.
> --- configure.~1~ Tue Jul 30 18:10:22 1996
> +++ configure Wed Jul 31 20:13:53 1996
> @@ -1035,7 +1035,7 @@
> else
>
> libelf_cv_header_elf_h='no'
> - for h in sys/elf.h elf.h; do
> + for h in elf.h sys/elf.h; do
> cat > conftest.$ac_ext <<EOF
> #line 1041 "configure"
> #include "confdefs.h"
>
> dm@engr.sgi.com
/Matti Aarnio <mea@utu.fi>
-- who just has been converting a very large piece of software
to use GNU autoconf 2.10; That software uses about every
feature available at the systems where it runs, and thus
does also have alternate schemes to do things, if something
can't be done with some particular system...
(curious ? ftp://ftp.funet.fi/pub/unix/mail/zmailer/ )