   MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@'
   PR_MD_ASFILES=
 ***************
+*** 3465,3471 ****
+  EOF
+  
+      CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
+!     MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+      if test "$MOZ_OBJFORMAT" = "elf"; then
+          DLL_SUFFIX=so
+      else
+--- 3465,3471 ----
+  EOF
+  
+      CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
+!     MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf`
+      if test "$MOZ_OBJFORMAT" = "elf"; then
+          DLL_SUFFIX=so
+      else
+***************
 *** 3832,3837 ****
 --- 3833,3839 ----
       MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'

  #endif
  
! #if (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) || \
! 	(defined(__FreeBSD__) && __FreeBSD_version > 700016)
  #define _PR_HAVE_GETPROTO_R
  #define _PR_HAVE_5_ARG_GETPROTO_R
  #endif

         AR_EXTRACT="$AR x"
         AR_DELETE="$AR d"
***************
*** 7504,7509 ****
--- 7504,7511 ----
  case $target in
  *-hpux11.*)
  	;;
+ *-freebsd*)
+ 	;;
  *)
  	echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6
  echo "configure:7510: checking for gethostbyname_r in -lc_r" >&5
***************
*** 16606,16613 ****
--- 16606,16617 ----
  
