[kaffe] CVS kaffe (robilad): removed checks for unused functions from configure script

Kaffe CVS cvs-commits at kaffe.org
Sat Jan 5 18:53:40 PST 2008


PatchSet 7668 
Date: 2008/01/06 02:52:21
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
removed checks for unused functions from configure script

2008-01-06  Dalibor Topic  <topic at quad-damage>

        * configure.ac: Don't check for socket, getsockname, mkdir, rmdir,
        chdir, localtime, mincore, msync, madvise, remainder, remainderf,
        drem, rint, strtod, mergesort, strtol, strtoul, finite, broken strtod,
        hstrerr, strerr_r, waitpid, kill, execvp, execve, fork.

        * config/config-math.h (IEEERemainder, IEEERemainderf, rint) Removed.

        * config/i386/drops/md.c (waitpid, kill, execvp, fork): Removed.

        * config/sparc/sunos4/md.h,
        config/mips/ultrix4/md.h,
        config/m68k/sunos4/md.h: Removed socket, getsockname, kill prototypes.

Members: 
	ChangeLog:1.5170->1.5171 
	configure:1.623->1.624 
	configure.ac:1.292->1.293 
	config/config-math.h:1.5->1.6 
	config/config.h.in:1.175->1.176 
	config/i386/drops/md.c:1.3->1.4 
	config/m68k/sunos4/md.h:1.5->1.6 
	config/mips/ultrix4/md.h:INITIAL->1.4 
	config/sparc/sunos4/md.h:1.12->1.13 
	libltdl/acinclude.m4:1.50->1.51 
	libltdl/config.guess:1.26->1.27 
	libltdl/config.sub:1.31->1.32 
	libltdl/configure:1.112->1.113 
	libltdl/ltdl.c:1.61->1.62 
	libltdl/ltmain.sh:1.29->1.30 
	m4/libtool.m4:1.27->1.28 
	scripts/config.guess:1.25->1.26 
	scripts/config.sub:1.25->1.26 
	scripts/ltmain.sh:1.50->1.51 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5170 kaffe/ChangeLog:1.5171
--- kaffe/ChangeLog:1.5170	Thu Jan  3 01:44:37 2008
+++ kaffe/ChangeLog	Sun Jan  6 02:52:21 2008
@@ -1,3 +1,18 @@
+2008-01-06  Dalibor Topic  <topic at quad-damage>
+
+	* configure.ac: Don't check for socket, getsockname, mkdir, rmdir,
+	chdir, localtime, mincore, msync, madvise, remainder, remainderf,
+	drem, rint, strtod, mergesort, strtol, strtoul, finite, broken strtod,
+	hstrerr, strerr_r, waitpid, kill, execvp, execve, fork.
+	
+	* config/config-math.h (IEEERemainder, IEEERemainderf, rint) Removed.
+
+	* config/i386/drops/md.c (waitpid, kill, execvp, fork): Removed.
+
+	* config/sparc/sunos4/md.h,
+	config/mips/ultrix4/md.h,
+	config/m68k/sunos4/md.h: Removed socket, getsockname, kill prototypes.
+
 2008-01-02  Dalibor Topic  <robilad at kaffe.org>
 
 	* TODO: Added new integration tasks.
Index: kaffe/configure
diff -u kaffe/configure:1.623 kaffe/configure:1.624
--- kaffe/configure:1.623	Thu Jan  3 01:18:08 2008
+++ kaffe/configure	Sun Jan  6 02:52:21 2008
@@ -2201,36 +2201,25 @@
 ac_func_list="$ac_func_list mprotect"
 ac_header_list="$ac_header_list valgrind/memcheck.h"
 ac_func_list="$ac_func_list select"
-ac_func_list="$ac_func_list socket"
-ac_func_list="$ac_func_list getsockname"
 ac_func_list="$ac_func_list getpagesize"
 ac_func_list="$ac_func_list fstat"
 ac_func_list="$ac_func_list memcpy"
 ac_func_list="$ac_func_list memmove"
-ac_func_list="$ac_func_list mkdir"
-ac_func_list="$ac_func_list rmdir"
 ac_func_list="$ac_func_list getcwd"
-ac_func_list="$ac_func_list chdir"
 ac_func_list="$ac_func_list getwd"
 ac_func_list="$ac_func_list gettimeofday"
 ac_func_list="$ac_func_list ftime"
 ac_func_list="$ac_func_list time"
 ac_func_list="$ac_func_list uname"
 ac_func_list="$ac_func_list getuid"
-ac_func_list="$ac_func_list localtime"
 ac_func_list="$ac_func_list get_nprocs_conf"
 ac_func_list="$ac_func_list munmap"
-ac_func_list="$ac_func_list mincore"
-ac_func_list="$ac_func_list msync"
-ac_func_list="$ac_func_list madvise"
 ac_func_list="$ac_func_list sysconf"
 ac_func_list="$ac_func_list pthread_attr_setschedpolicy"
 ac_func_list="$ac_func_list pthread_yield"
 ac_func_list="$ac_func_list sched_yield"
 ac_header_list="$ac_header_list sched.h"
 ac_func_list="$ac_func_list strerror"
-ac_func_list="$ac_func_list hstrerror"
-ac_func_list="$ac_func_list strerror_r"
 ac_func_list="$ac_func_list fcntl"
 ac_func_list="$ac_func_list ioctl"
 ac_func_list="$ac_func_list alarm"
@@ -2248,11 +2237,6 @@
 ac_func_list="$ac_func_list getrlimit"
 ac_func_list="$ac_func_list setrlimit"
 ac_func_list="$ac_func_list sigaltstack"
-ac_func_list="$ac_func_list waitpid"
-ac_func_list="$ac_func_list kill"
-ac_func_list="$ac_func_list fork"
-ac_func_list="$ac_func_list execve"
-ac_func_list="$ac_func_list execvp"
 ac_func_list="$ac_func_list sync"
 ac_func_list="$ac_func_list fsync"
 ac_func_list="$ac_func_list ftruncate"
@@ -6968,7 +6952,7 @@
   lt_cv_deplibs_check_method=pass_all
   ;;
 
-netbsd* | netbsdelf*-gnu)
+netbsd*)
   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   else
@@ -7087,7 +7071,7 @@
   ;;
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 7090 "configure"' > conftest.$ac_ext
+  echo '#line 7074 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -9651,11 +9635,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:9654: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:9638: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:9658: \$? = $ac_status" >&5
+   echo "$as_me:9642: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -9941,11 +9925,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:9944: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:9928: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:9948: \$? = $ac_status" >&5
+   echo "$as_me:9932: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -10045,11 +10029,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:10048: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:10032: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:10052: \$? = $ac_status" >&5
+   echo "$as_me:10036: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -10309,13 +10293,12 @@
   $echo "local: *; };" >> $output_objdir/$libname.ver~
 	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 	fi
-	link_all_deplibs=no
       else
 	ld_shlibs=no
       fi
       ;;
 
-    netbsd* | netbsdelf*-gnu)
+    netbsd*)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 	wlarc=
@@ -10859,7 +10842,7 @@
       link_all_deplibs=yes
       ;;
 
-    netbsd* | netbsdelf*-gnu)
+    netbsd*)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
       else
@@ -11570,18 +11553,6 @@
   dynamic_linker='GNU/Linux ld.so'
   ;;
 
-netbsdelf*-gnu)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  dynamic_linker='NetBSD ld.elf_so'
-  ;;
-
 netbsd*)
   version_type=sunos
   need_lib_prefix=no
@@ -12407,7 +12378,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 12410 "configure"
+#line 12381 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12507,7 +12478,7 @@
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 12510 "configure"
+#line 12481 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -14117,7 +14088,7 @@
 	;;
     esac
     ;;
-  netbsd* | netbsdelf*-gnu)
+  netbsd*)
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
       wlarc=
@@ -14822,7 +14793,7 @@
 	    ;;
 	esac
 	;;
-      netbsd* | netbsdelf*-gnu)
+      netbsd*)
 	;;
       osf3* | osf4* | osf5*)
 	case $cc_basename in
@@ -14931,11 +14902,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:14934: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:14905: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:14938: \$? = $ac_status" >&5
+   echo "$as_me:14909: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -15035,11 +15006,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15038: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15009: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:15042: \$? = $ac_status" >&5
+   echo "$as_me:15013: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -15107,9 +15078,6 @@
   cygwin* | mingw*)
     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   ;;
-  linux* | k*bsd*-gnu)
-    link_all_deplibs_CXX=no
-  ;;
   *)
     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   ;;
@@ -15555,18 +15523,6 @@
   dynamic_linker='GNU/Linux ld.so'
   ;;
 
-netbsdelf*-gnu)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  dynamic_linker='NetBSD ld.elf_so'
-  ;;
-
 netbsd*)
   version_type=sunos
   need_lib_prefix=no
@@ -16612,11 +16568,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:16615: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:16571: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:16619: \$? = $ac_status" >&5
+   echo "$as_me:16575: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -16716,11 +16672,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:16719: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:16675: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:16723: \$? = $ac_status" >&5
+   echo "$as_me:16679: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -16980,13 +16936,12 @@
   $echo "local: *; };" >> $output_objdir/$libname.ver~
 	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 	fi
-	link_all_deplibs_F77=no
       else
 	ld_shlibs_F77=no
       fi
       ;;
 
-    netbsd* | netbsdelf*-gnu)
+    netbsd*)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 	wlarc=
@@ -17510,7 +17465,7 @@
       link_all_deplibs_F77=yes
       ;;
 
-    netbsd* | netbsdelf*-gnu)
+    netbsd*)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
       else
@@ -18169,18 +18124,6 @@
   dynamic_linker='GNU/Linux ld.so'
   ;;
 
-netbsdelf*-gnu)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  dynamic_linker='NetBSD ld.elf_so'
-  ;;
-
 netbsd*)
   version_type=sunos
   need_lib_prefix=no
@@ -18920,11 +18863,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:18923: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:18866: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:18927: \$? = $ac_status" >&5
+   echo "$as_me:18870: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -19210,11 +19153,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:19213: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:19156: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:19217: \$? = $ac_status" >&5
+   echo "$as_me:19160: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings other than the usual output.
@@ -19314,11 +19257,11 @@
    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:19317: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:19260: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:19321: \$? = $ac_status" >&5
+   echo "$as_me:19264: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -19578,13 +19521,12 @@
   $echo "local: *; };" >> $output_objdir/$libname.ver~
 	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 	fi
-	link_all_deplibs_GCJ=no
       else
 	ld_shlibs_GCJ=no
       fi
       ;;
 
-    netbsd* | netbsdelf*-gnu)
+    netbsd*)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 	wlarc=
@@ -20128,7 +20070,7 @@
       link_all_deplibs_GCJ=yes
       ;;
 
-    netbsd* | netbsdelf*-gnu)
+    netbsd*)
       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
       else
@@ -20787,18 +20729,6 @@
   dynamic_linker='GNU/Linux ld.so'
   ;;
 
-netbsdelf*-gnu)
-  version_type=linux
-  need_lib_prefix=no
-  need_version=no
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
-  soname_spec='${libname}${release}${shared_ext}$major'
-  shlibpath_var=LD_LIBRARY_PATH
-  shlibpath_overrides_runpath=no
-  hardcode_into_libs=yes
-  dynamic_linker='NetBSD ld.elf_so'
-  ;;
-
 netbsd*)
   version_type=sunos
   need_lib_prefix=no
@@ -25633,7 +25563,7 @@
 JAVA_TEST=Test.java
 CLASS_TEST=Test.class
 cat << \EOF > $JAVA_TEST
-/* #line 25636 "configure" */
+/* #line 25566 "configure" */
 public class Test {
 }
 EOF
@@ -38144,44 +38074,6 @@
 
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
           am_save_CPPFLAGS="$CPPFLAGS"
 
   for element in $INCICONV; do
@@ -38667,18 +38559,9 @@
 
 
 
-
-
-
-
-
-
-
-
-
-for ac_func in remainder remainderf fmod fmodf drem \
-rint floor ceil strtod mergesort \
-strdup strstr strtod strtol strtoul strtouq strtoull
+for ac_func in fmod fmodf \
+floor ceil \
+strdup strstr strtouq strtoull
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 { echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -38956,97 +38839,6 @@
   has_isinf=0
 fi
 
-{ echo "$as_me:$LINENO: checking for finite" >&5
-echo $ECHO_N "checking for finite... $ECHO_C" >&6; }
-if test "${ac_cv_func_finite+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define finite to an innocuous variant, in case <limits.h> declares finite.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define finite innocuous_finite
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char finite (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef finite
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char finite ();
-/* The GNU C library defines this for functions which it implements
-    to always fail with ENOSYS.  Some functions are actually named
-    something starting with __ and the normal name is an alias.  */
-#if defined __stub_finite || defined __stub___finite
-choke me
-#endif
-
-int
-main ()
-{
-return finite ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-	 test -z "$ac_c_werror_flag" ||
-	 test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  ac_cv_func_finite=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-	ac_cv_func_finite=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func_finite" >&5
-echo "${ECHO_T}$ac_cv_func_finite" >&6; }
-if test $ac_cv_func_finite = yes; then
-  has_finite=1;
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_FINITE 1
-_ACEOF
-
-else
-  has_finite=0
-fi
-
 
 if test $has_isnan = 0; then
   { echo "$as_me:$LINENO: checking for macro isnan" >&5
@@ -39229,141 +39021,6 @@
 fi
 
 LIBS="$KSAVE_LIBS"
-
-{ echo "$as_me:$LINENO: checking whether strtod(\"-0.0\") is broken" >&5
-echo $ECHO_N "checking whether strtod(\"-0.0\") is broken... $ECHO_C" >&6; }
-if test "${ac_cv_strtod_m0_broken+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-      if test "$cross_compiling" = yes; then
-  ac_cv_strtod_m0_broken=cross
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-#include <stdlib.h>
-/* definition DOUBLE_ORDER_OPPOSITE from config/config-hacks.h */
-#if defined(__arm__)
-#define DOUBLE_ORDER_OPPOSITE
-#endif
-/* definition of uint32 from kaffe/kaffevm/gtypes.h */
-#if SIZEOF_INT == 4
-#define uint32	unsigned int
-#elif SIZEOF_LONG == 4
-#define uint32	unsigned long
-#else
-#define uint32	int
-#endif
-/* definition of uint64 from kaffe/kaffevm/gtypes.h */
-#if SIZEOF_LONG == 8
-#define uint64	unsigned long
-#elif SIZEOF_LONG_LONG == 8
-#define uint64	unsigned long long
-#elif SIZEOF___INT64 == 8
-#define uint64	unsigned __int64
-#else
-#define uint64	int
-#endif
-int main()
-{
-    union { double d; uint32 i; uint64 j; } d;
-    if (sizeof(uint64) != 8) return 2;
-#if defined(HAVE_STRTOD)
-    d.d = strtod("-0.0", 0);
-#else
-    d.d = atof("-0.0");
-#endif
-    /* doubleToLong() from kaffe/kaffevm/fp.c */
-#if defined(DOUBLE_ORDER_OPPOSITE)
-    {
-	/* swap low and high word */
-	uint32 r = *(uint32*)&d.j;
-	uint32 *s = (uint32*)&d.j + 1;
-	d.i = *s;
-	*s = r;
-    }
-#endif
-    if ((d.j >> 63) & 1) return 0; else return 1;
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
-  { (case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_strtod_m0_broken=no
-else
-  echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-ac_cv_strtod_m0_broken=yes
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_strtod_m0_broken" >&5
-echo "${ECHO_T}$ac_cv_strtod_m0_broken" >&6; }
-if test x"$ac_cv_strtod_m0_broken" = x"yes"; then
-
-cat >>confdefs.h <<\_ACEOF
-#define STRTOD_m0_BROKEN 1
-_ACEOF
-
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
 
 
 
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.292 kaffe/configure.ac:1.293
--- kaffe/configure.ac:1.292	Thu Jan  3 01:18:09 2008
+++ kaffe/configure.ac	Sun Jan  6 02:52:22 2008
@@ -1242,12 +1242,11 @@
 AC_FUNC_MEMCMP
 AC_FUNC_MMAP
 
-AC_CHECK_FUNCS_ONCE([select socket getsockname getpagesize fstat
+AC_CHECK_FUNCS_ONCE([select getpagesize fstat
 memcpy memmove 
-mkdir rmdir
-getcwd chdir getwd gettimeofday ftime time uname getuid
-localtime get_nprocs_conf
-munmap mincore msync madvise getpagesize sysconf])
+getcwd getwd gettimeofday ftime time uname getuid
+get_nprocs_conf
+munmap sysconf])
 
 AM_ICONV
 
@@ -1275,9 +1274,9 @@
 
 KSAVE_LIBS="$LIBS"
 LIBS="$M_LIBS $LIBS"
-AC_CHECK_FUNCS([remainder remainderf fmod fmodf drem \
-rint floor ceil strtod mergesort \
-strdup strstr strtod strtol strtoul strtouq strtoull])
+AC_CHECK_FUNCS([fmod fmodf \
+floor ceil \
+strdup strstr strtouq strtoull])
 
 dnl isinf, isnan, finite checking code taken from Sablotron 1.0,
 dnl dually licensed licensed under MPL 1.1 and GPL
@@ -1288,7 +1287,6 @@
 
 AC_CHECK_FUNC( isnan, [has_isnan=1; AC_DEFINE(HAVE_ISNAN, 1, isnan)], has_isnan=0)
 AC_CHECK_FUNC( isinf, [has_isinf=1; AC_DEFINE(HAVE_ISINF, 1, isinf)], has_isinf=0)
-AC_CHECK_FUNC( finite,[has_finite=1;AC_DEFINE(HAVE_FINITE, 1, finite)], has_finite=0)
 
 dnl check for macro isnan in math
 if test $has_isnan = 0; then
@@ -1328,66 +1326,9 @@
 
 LIBS="$KSAVE_LIBS"
 
-dnl Test whether strtod("-0.0") is broken
-AC_CACHE_CHECK([whether strtod(\"-0.0\") is broken],
-  ac_cv_strtod_m0_broken, [dnl
-    AC_RUN_IFELSE([AC_LANG_SOURCE([[
-#include <stdlib.h>
-/* definition DOUBLE_ORDER_OPPOSITE from config/config-hacks.h */
-#if defined(__arm__)
-#define DOUBLE_ORDER_OPPOSITE
-#endif
-/* definition of uint32 from kaffe/kaffevm/gtypes.h */
-#if SIZEOF_INT == 4
-#define uint32	unsigned int
-#elif SIZEOF_LONG == 4
-#define uint32	unsigned long
-#else
-#define uint32	int
-#endif
-/* definition of uint64 from kaffe/kaffevm/gtypes.h */
-#if SIZEOF_LONG == 8
-#define uint64	unsigned long
-#elif SIZEOF_LONG_LONG == 8
-#define uint64	unsigned long long
-#elif SIZEOF___INT64 == 8
-#define uint64	unsigned __int64
-#else
-#define uint64	int
-#endif
-int main()
-{
-    union { double d; uint32 i; uint64 j; } d;
-    if (sizeof(uint64) != 8) return 2;
-#if defined(HAVE_STRTOD)
-    d.d = strtod("-0.0", 0);
-#else
-    d.d = atof("-0.0");
-#endif
-    /* doubleToLong() from kaffe/kaffevm/fp.c */
-#if defined(DOUBLE_ORDER_OPPOSITE)
-    {
-	/* swap low and high word */
-	uint32 r = *(uint32*)&d.j;
-	uint32 *s = (uint32*)&d.j + 1;
-	d.i = *s;
-	*s = r;
-    }
-#endif
-    if ((d.j >> 63) & 1) return 0; else return 1;
-}
-]])],[ac_cv_strtod_m0_broken=no],[ac_cv_strtod_m0_broken=yes],[ac_cv_strtod_m0_broken=cross])])
-if test x"$ac_cv_strtod_m0_broken" = x"yes"; then
-  AC_DEFINE(STRTOD_m0_BROKEN, 1, [Define if strtod(\"-0.0\") is broken])
-fi
-
-AC_CHECK_FUNCS_ONCE([strerror hstrerror strerror_r
-fcntl ioctl
-alarm setitimer
+AC_CHECK_FUNCS_ONCE([strerror fcntl ioctl alarm setitimer
 sigprocmask sigsetmask sigemptyset sigaddset signal sigaction
 sbrk valloc memalign mallopt getrlimit setrlimit sigaltstack
-madvise
-waitpid kill fork execve execvp
 sync fsync ftruncate
 atexit on_exit vsnprintf snprintf])
 
Index: kaffe/config/config-math.h
diff -u kaffe/config/config-math.h:1.5 kaffe/config/config-math.h:1.6
--- kaffe/config/config-math.h:1.5	Mon Dec 26 02:00:19 2005
+++ kaffe/config/config-math.h	Sun Jan  6 02:52:24 2008
@@ -16,29 +16,6 @@
 #include <math.h>
 #include <limits.h>
 
-/*
- * Java defines two sorts of floating-point remainder operations, one
- * IEEE 754 remainder (for java.lang.IEEEremainder()) and a
- * different version for the % operator.
- */
-
-/* IEEE 754 remainder for doubles */
-#if defined(HAVE_REMAINDER)
-#define IEEERemainder(a, b) remainder(a, b)
-#elif defined(HAVE_DREM)
-#define IEEERemainder(a, b) drem(a, b)
-#else
-#define	IEEERemainder(a, b) 0
-/* Kaffe requires a truncating-division-based floating-point remainder operation */
-#endif
-
-/* IEEE 754 remainder for floats */
-#if defined(HAVE_REMAINDERF)
-#define IEEERemainderf(a, b) remainderf(a, b)
-#else
-#define IEEERemainderf(a, b) ((float)IEEERemainder((double)a, (double)b))
-#endif
-
 /* Java remainder for doubles */
 #if defined(HAVE_FMOD)
 #define javaRemainder(a, b) fmod(a, b)
@@ -60,11 +37,6 @@
 
 #if !defined(HAVE_CEIL)
 #define	ceil(v)		(-floor(-(v)))
-#endif
-
-#if !defined(HAVE_RINT)
-/* As per Java Class Libraries page 927 */
-#define	rint(v)		(floor(v+0.5))
 #endif
 
 /* If we dont' have isinf() assume nothing is */
Index: kaffe/config/config.h.in
diff -u kaffe/config/config.h.in:1.175 kaffe/config/config.h.in:1.176
--- kaffe/config/config.h.in:1.175	Thu Jan  3 01:18:11 2008
+++ kaffe/config/config.h.in	Sun Jan  6 02:52:24 2008
@@ -61,9 +61,6 @@
 /* Define to 1 if you have the `ceil' function. */
 #undef HAVE_CEIL
 
-/* Define to 1 if you have the `chdir' function. */
-#undef HAVE_CHDIR
-
 /* Does mprotect support protecting region not covered by mmap ? */
 #undef HAVE_COMPATIBLE_MPROTECT
 
@@ -91,15 +88,6 @@
 /* Define to 1 if you have the <dlfcn.h> header file. */
 #undef HAVE_DLFCN_H
 
-/* Define to 1 if you have the `drem' function. */
-#undef HAVE_DREM
-
-/* Define to 1 if you have the `execve' function. */
-#undef HAVE_EXECVE
-
-/* Define to 1 if you have the `execvp' function. */
-#undef HAVE_EXECVP
-
 /* Define to 1 if you have the `fcntl' function. */
 #undef HAVE_FCNTL
 
@@ -121,9 +109,6 @@
 /* Define to 1 if you have the `fmodf' function. */
 #undef HAVE_FMODF
 
-/* Define to 1 if you have the `fork' function. */
-#undef HAVE_FORK
-
 /* Define to 1 if you have the `fstat' function. */
 #undef HAVE_FSTAT
 
@@ -154,9 +139,6 @@
 /* Define to 1 if you have the `getrusage' function. */
 #undef HAVE_GETRUSAGE
 
-/* Define to 1 if you have the `getsockname' function. */
-#undef HAVE_GETSOCKNAME
-
 /* Define if the GNU gettext() function is already present or preinstalled. */
 #undef HAVE_GETTEXT
 
@@ -201,9 +183,6 @@
 /* Define if unused variables la GCC 2.5 and higher are available. */
 #undef HAVE_GNUC25_UNUSED
 
-/* Define to 1 if you have the `hstrerror' function. */
-#undef HAVE_HSTRERROR

*** Patch too long, truncated ***




More information about the kaffe mailing list