--- configure.orig	Thu May  4 04:10:55 2000
+++ configure	Wed May 10 03:46:37 2000
@@ -1472,7 +1472,7 @@
   ELF_SYS=true
 else
   rm -rf conftest*
-  if test "X$elf" = "Xyes"
+  if test "X$PORTOBJFORMAT" = "Xelf"
 then
 	ELF_SYS=true
 else
