Ticket #497: jamvm.haiku.patch
| File jamvm.haiku.patch, 50.7 KB (added by korli, 4 years ago) |
|---|
-
jamvm-1.5.4
diff -rupN jamvm-1.5.4/configure jamvm-1.5.4.modified/configure
old new case "$host" in 2681 2681 i[3456]86-*-linux*) host_cpu=i386 host_os=linux ;; 2682 2682 i[3456]86-*-kfreebsd*) host_cpu=i386 host_os=linux ;; 2683 2683 i[3456]86-*-darwin*) host_cpu=i386 host_os=darwin ;; 2684 i[3456]86-*-haiku*) host_cpu=i386 host_os=haiku libdl_needed=no libm_needed=no ;; 2684 2685 arm*-*-darwin*) host_cpu=arm host_os=darwin libdl_needed=no ;; 2685 2686 i386-*-openbsd*) host_os=bsd libdl_needed=no ;; 2686 2687 i386-*-freebsd*) host_os=bsd libdl_needed=no ;; … … aix[4-9]*) 4621 4622 lt_cv_deplibs_check_method=pass_all 4622 4623 ;; 4623 4624 4624 beos* )4625 beos* | haiku*) 4625 4626 lt_cv_deplibs_check_method=pass_all 4626 4627 ;; 4627 4628 … … $as_echo_n "checking for $compiler optio 7968 7969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7969 7970 ;; 7970 7971 7971 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)7972 beos* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7972 7973 # PIC is the default for these OSes. 7973 7974 ;; 7974 7975 … … EOF 8486 8487 ld_shlibs=no 8487 8488 ;; 8488 8489 8489 beos* )8490 beos* | haiku*) 8490 8491 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8491 8492 allow_undefined_flag=unsupported 8492 8493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc … … amigaos*) 9548 9549 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9549 9550 ;; 9550 9551 9551 beos* )9552 beos* | haiku*) 9552 9553 library_names_spec='${libname}${shared_ext}' 9553 9554 dynamic_linker="$host_os ld.so" 9554 9555 shlibpath_var=LIBRARY_PATH … … else 10116 10117 lt_cv_dlopen_libs= 10117 10118 10118 10119 case $host_os in 10119 beos* )10120 beos* | haiku*) 10120 10121 lt_cv_dlopen="load_add_on" 10121 10122 lt_cv_dlopen_libs= 10122 10123 lt_cv_dlopen_self=yes … … if test -z "$aix_libpath"; then aix_libp 12019 12020 fi 12020 12021 ;; 12021 12022 12022 beos* )12023 beos* | haiku*) 12023 12024 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12024 12025 allow_undefined_flag_CXX=unsupported 12025 12026 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc … … $as_echo_n "checking for $compiler optio 12928 12929 # like `-m68040'. 12929 12930 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12930 12931 ;; 12931 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)12932 beos* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12932 12933 # PIC is the default for these OSes. 12933 12934 ;; 12934 12935 mingw* | cygwin* | os2* | pw32*) … … amigaos*) 13548 13549 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13549 13550 ;; 13550 13551 13551 beos* )13552 beos* | haiku*) 13552 13553 library_names_spec='${libname}${shared_ext}' 13553 13554 dynamic_linker="$host_os ld.so" 13554 13555 shlibpath_var=LIBRARY_PATH … … $as_echo_n "checking for $compiler optio 14668 14669 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14669 14670 ;; 14670 14671 14671 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)14672 beos* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14672 14673 # PIC is the default for these OSes. 14673 14674 ;; 14674 14675 … … EOF 15186 15187 ld_shlibs_F77=no 15187 15188 ;; 15188 15189 15189 beos* )15190 beos* | haiku*) 15190 15191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15191 15192 allow_undefined_flag_F77=unsupported 15192 15193 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc … … amigaos*) 16177 16178 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16178 16179 ;; 16179 16180 16180 beos* )16181 beos* | haiku*) 16181 16182 library_names_spec='${libname}${shared_ext}' 16182 16183 dynamic_linker="$host_os ld.so" 16183 16184 shlibpath_var=LIBRARY_PATH … … $as_echo_n "checking for $compiler optio 17277 17278 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17278 17279 ;; 17279 17280 17280 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)17281 beos* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17281 17282 # PIC is the default for these OSes. 17282 17283 ;; 17283 17284 … … EOF 17795 17796 ld_shlibs_GCJ=no 17796 17797 ;; 17797 17798 17798 beos* )17799 beos* | haiku*) 17799 17800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17800 17801 allow_undefined_flag_GCJ=unsupported 17801 17802 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc … … amigaos*) 18806 18807 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 18807 18808 ;; 18808 18809 18809 beos* )18810 beos* | haiku*) 18810 18811 library_names_spec='${libname}${shared_ext}' 18811 18812 dynamic_linker="$host_os ld.so" 18812 18813 shlibpath_var=LIBRARY_PATH … … if test "${ac_cv_lib_thr_pthread_self+se 21260 21261 $as_echo_n "(cached) " >&6 21261 21262 else 21262 21263 ac_check_lib_save_LIBS=$LIBS 21263 LIBS=" -lthr$LIBS"21264 LIBS=" $LIBS" 21264 21265 cat >conftest.$ac_ext <<_ACEOF 21265 21266 /* confdefs.h. */ 21266 21267 _ACEOF … … if test "x$ac_cv_lib_thr_pthread_self" = 21324 21325 #define HAVE_LIBTHR 1 21325 21326 _ACEOF 21326 21327 21327 LIBS="-lthr $LIBS"21328 # LIBS="-lthr $LIBS" 21328 21329 21329 21330 else 21330 21331 21331 21332 21333 21332 21334 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 21333 21335 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } 21334 21336 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then … … fi 21410 21412 21411 21413 fi 21412 21414 21413 21415 if test "$libm_needed" != no; then 21414 21416 21415 21417 { $as_echo "$as_me:$LINENO: checking for fmod in -lm" >&5 21416 21418 $as_echo_n "checking for fmod in -lm... " >&6; } … … if test "${ac_cv_lib_m_fmod+set}" = set; 21418 21420 $as_echo_n "(cached) " >&6 21419 21421 else 21420 21422 ac_check_lib_save_LIBS=$LIBS 21421 LIBS=" -lm$LIBS"21423 LIBS=" $LIBS" 21422 21424 cat >conftest.$ac_ext <<_ACEOF 21423 21425 /* confdefs.h. */ 21424 21426 _ACEOF … … if test "x$ac_cv_lib_m_fmod" = x""yes; t 21482 21484 #define HAVE_LIBM 1 21483 21485 _ACEOF 21484 21486 21485 LIBS=" -lm$LIBS"21487 LIBS=" $LIBS" 21486 21488 21487 21489 else 21488 21490 { { $as_echo "$as_me:$LINENO: error: libm is missing" >&5 … … $as_echo "$as_me: error: libm is missing 21490 21492 { (exit 1); exit 1; }; } 21491 21493 fi 21492 21494 21495 fi 21496 21493 21497 21494 21498 if test "$libdl_needed" != no; then 21495 21499 … … fi 23611 23615 ac_config_links="$ac_config_links src/arch.h:src/arch/$arch.h" 23612 23616 23613 23617 23614 ac_config_files="$ac_config_files Makefile src/Makefile src/interp/Makefile src/interp/engine/Makefile src/arch/Makefile src/os/Makefile src/os/ linux/Makefile src/os/darwin/Makefile src/os/bsd/Makefile src/os/solaris/Makefile src/os/solaris/x86/Makefile src/os/linux/powerpc/Makefile src/os/linux/arm/Makefile src/os/linux/i386/Makefile src/os/linux/x86_64/Makefile src/os/linux/parisc/Makefile src/os/linux/mips/Makefile src/os/darwin/i386/Makefile src/os/darwin/arm/Makefile src/os/darwin/powerpc/Makefile src/os/bsd/powerpc/Makefile src/os/bsd/arm/Makefile src/os/bsd/i386/Makefile src/os/bsd/x86_64/Makefile src/os/bsd/sparc/Makefile lib/Makefile lib/java/Makefile lib/java/lang/Makefile lib/jamvm/Makefile lib/jamvm/java/Makefile lib/jamvm/java/lang/Makefile lib/java/lang/reflect/Makefile lib/java/security/Makefile lib/gnu/Makefile lib/sun/reflect/annotation/Makefile lib/sun/reflect/Makefile lib/sun/Makefile lib/gnu/classpath/Makefile"23618 ac_config_files="$ac_config_files Makefile src/Makefile src/interp/Makefile src/interp/engine/Makefile src/arch/Makefile src/os/Makefile src/os/haiku/Makefile src/os/haiku/i386/Makefile src/os/linux/Makefile src/os/darwin/Makefile src/os/bsd/Makefile src/os/solaris/Makefile src/os/solaris/x86/Makefile src/os/linux/powerpc/Makefile src/os/linux/arm/Makefile src/os/linux/i386/Makefile src/os/linux/x86_64/Makefile src/os/linux/parisc/Makefile src/os/linux/mips/Makefile src/os/darwin/i386/Makefile src/os/darwin/arm/Makefile src/os/darwin/powerpc/Makefile src/os/bsd/powerpc/Makefile src/os/bsd/arm/Makefile src/os/bsd/i386/Makefile src/os/bsd/x86_64/Makefile src/os/bsd/sparc/Makefile lib/Makefile lib/java/Makefile lib/java/lang/Makefile lib/jamvm/Makefile lib/jamvm/java/Makefile lib/jamvm/java/lang/Makefile lib/java/lang/reflect/Makefile lib/java/security/Makefile lib/gnu/Makefile lib/sun/reflect/annotation/Makefile lib/sun/reflect/Makefile lib/sun/Makefile lib/gnu/classpath/Makefile" 23615 23619 23616 23620 23617 23621 cat >confcache <<\_ACEOF -
src/os/haiku/i386/dll_md.c
diff -rupN jamvm-1.5.4/src/os/haiku/i386/dll_md.c jamvm-1.5.4.modified/src/os/haiku/i386/dll_md.c
old new 1 /* 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009 3 * Robert Lougher <rob@jamvm.org.uk>. 4 * 5 * This file is part of JamVM. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2, 10 * or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 */ 21 22 #include "../../../jam.h" 23 24 #ifndef USE_FFI 25 #include <string.h> 26 #include "../../../sig.h" 27 28 #define RET_VOID 0 29 #define RET_DOUBLE 1 30 #define RET_LONG 2 31 #define RET_FLOAT 3 32 #define RET_BYTE 4 33 #define RET_CHAR 5 34 #define RET_SHORT 6 35 #define RET_DFLT 7 36 37 int nativeExtraArg(MethodBlock *mb) { 38 int len = strlen(mb->type); 39 if(mb->type[len-2] == ')') 40 switch(mb->type[len-1]) { 41 case 'V': 42 return RET_VOID; 43 case 'D': 44 return RET_DOUBLE; 45 case 'J': 46 return RET_LONG; 47 case 'F': 48 return RET_FLOAT; 49 case 'B': 50 case 'Z': 51 return RET_BYTE; 52 case 'C': 53 return RET_CHAR; 54 case 'S': 55 return RET_SHORT; 56 } 57 58 return RET_DFLT; 59 } 60 61 u4 *callJNIMethod(void *env, Class *class, char *sig, int ret_type, 62 u4 *ostack, unsigned char *f, int args) { 63 64 u4 *opntr = ostack + args; 65 int i; 66 67 for(i = 0; i < args; i++) 68 asm volatile ("pushl %0" :: "m" (*--opntr) : "sp"); 69 70 if(class) { 71 asm volatile ("pushl %0" :: "m" (class) : "sp"); 72 args++; 73 } 74 75 asm volatile ("pushl %0" :: "m" (env) : "sp"); 76 77 switch(ret_type) { 78 case RET_VOID: 79 (*(void (*)())f)(); 80 break; 81 82 case RET_DOUBLE: 83 *(double*)ostack = (*(double (*)())f)(); 84 ostack += 2; 85 break; 86 87 case RET_LONG: 88 *(long long*)ostack = (*(long long (*)())f)(); 89 ostack += 2; 90 break; 91 92 case RET_FLOAT: 93 *(float*)ostack = (*(float (*)())f)(); 94 ostack++; 95 break; 96 97 case RET_BYTE: 98 *ostack++ = (*(signed char (*)())f)(); 99 break; 100 101 case RET_CHAR: 102 *ostack++ = (*(unsigned short (*)())f)(); 103 break; 104 105 case RET_SHORT: 106 *ostack++ = (*(signed short (*)())f)(); 107 break; 108 109 default: 110 *ostack++ = (*(u4 (*)())f)(); 111 break; 112 } 113 114 asm volatile ("addl %0,%%esp" :: "r" ((args + 1) * sizeof(u4)) 115 : "cc", "sp"); 116 return ostack; 117 } 118 #endif -
src/os/haiku/i386/init.c
diff -rupN jamvm-1.5.4/src/os/haiku/i386/init.c jamvm-1.5.4.modified/src/os/haiku/i386/init.c
old new 1 /* 2 * Copyright (C) 2003, 2004, 2006, 2007 3 * Robert Lougher <rob@jamvm.org.uk>. 4 * 5 * This file is part of JamVM. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2, 10 * or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 */ 21 22 void setDoublePrecision() { 23 } 24 25 void initialisePlatform() { 26 } -
src/os/haiku/i386/Makefile.am
diff -rupN jamvm-1.5.4/src/os/haiku/i386/Makefile.am jamvm-1.5.4.modified/src/os/haiku/i386/Makefile.am
old new 1 ## 2 ## Copyright (C) 2003, 2004, 2005, 2006, 2007 3 ## Robert Lougher <rob@jamvm.org.uk>. 4 ## 5 ## This file is part of JamVM. 6 ## 7 ## This program is free software; you can redistribute it and/or 8 ## modify it under the terms of the GNU General Public License 9 ## as published by the Free Software Foundation; either version 2, 10 ## or (at your option) any later version. 11 ## 12 ## This program is distributed in the hope that it will be useful, 13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 ## GNU General Public License for more details. 16 ## 17 ## You should have received a copy of the GNU General Public License 18 ## along with this program; if not, write to the Free Software 19 ## Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 ## 21 22 noinst_LTLIBRARIES = libnative.la 23 libnative_la_SOURCES = init.c dll_md.c 24 25 AM_CPPFLAGS = -I$(top_builddir)/src -
src/os/haiku/i386/Makefile.in
diff -rupN jamvm-1.5.4/src/os/haiku/i386/Makefile.in jamvm-1.5.4.modified/src/os/haiku/i386/Makefile.in
old new 1 # Makefile.in generated by automake 1.10.2 from Makefile.am. 2 # @configure_input@ 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 @SET_MAKE@ 16 17 VPATH = @srcdir@ 18 pkgdatadir = $(datadir)/@PACKAGE@ 19 pkglibdir = $(libdir)/@PACKAGE@ 20 pkgincludedir = $(includedir)/@PACKAGE@ 21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 22 install_sh_DATA = $(install_sh) -c -m 644 23 install_sh_PROGRAM = $(install_sh) -c 24 install_sh_SCRIPT = $(install_sh) -c 25 INSTALL_HEADER = $(INSTALL_DATA) 26 transform = $(program_transform_name) 27 NORMAL_INSTALL = : 28 PRE_INSTALL = : 29 POST_INSTALL = : 30 NORMAL_UNINSTALL = : 31 PRE_UNINSTALL = : 32 POST_UNINSTALL = : 33 build_triplet = @build@ 34 host_triplet = @host@ 35 subdir = src/os/haiku/i386 36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 39 $(top_srcdir)/configure.ac 40 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 41 $(ACLOCAL_M4) 42 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 43 CONFIG_HEADER = $(top_builddir)/src/config.h 44 CONFIG_CLEAN_FILES = 45 LTLIBRARIES = $(noinst_LTLIBRARIES) 46 libnative_la_LIBADD = 47 am_libnative_la_OBJECTS = init.lo dll_md.lo 48 libnative_la_OBJECTS = $(am_libnative_la_OBJECTS) 49 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src 50 depcomp = $(SHELL) $(top_srcdir)/depcomp 51 am__depfiles_maybe = depfiles 52 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 53 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 54 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 55 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 56 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 57 CCLD = $(CC) 58 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 59 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ 60 $(LDFLAGS) -o $@ 61 SOURCES = $(libnative_la_SOURCES) 62 DIST_SOURCES = $(libnative_la_SOURCES) 63 ETAGS = etags 64 CTAGS = ctags 65 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 66 ACLOCAL = @ACLOCAL@ 67 ALLOCA = @ALLOCA@ 68 AMTAR = @AMTAR@ 69 AR = @AR@ 70 AUTOCONF = @AUTOCONF@ 71 AUTOHEADER = @AUTOHEADER@ 72 AUTOMAKE = @AUTOMAKE@ 73 AWK = @AWK@ 74 CC = @CC@ 75 CCAS = @CCAS@ 76 CCASDEPMODE = @CCASDEPMODE@ 77 CCASFLAGS = @CCASFLAGS@ 78 CCDEPMODE = @CCDEPMODE@ 79 CFLAGS = @CFLAGS@ 80 CPP = @CPP@ 81 CPPFLAGS = @CPPFLAGS@ 82 CXX = @CXX@ 83 CXXCPP = @CXXCPP@ 84 CXXDEPMODE = @CXXDEPMODE@ 85 CXXFLAGS = @CXXFLAGS@ 86 CYGPATH_W = @CYGPATH_W@ 87 DEFS = @DEFS@ 88 DEPDIR = @DEPDIR@ 89 DSYMUTIL = @DSYMUTIL@ 90 ECHO = @ECHO@ 91 ECHO_C = @ECHO_C@ 92 ECHO_N = @ECHO_N@ 93 ECHO_T = @ECHO_T@ 94 EGREP = @EGREP@ 95 EXEEXT = @EXEEXT@ 96 F77 = @F77@ 97 FFLAGS = @FFLAGS@ 98 GREP = @GREP@ 99 INSTALL = @INSTALL@ 100 INSTALL_DATA = @INSTALL_DATA@ 101 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 102 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 103 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 104 JAVAC = @JAVAC@ 105 LDFLAGS = @LDFLAGS@ 106 LIBOBJS = @LIBOBJS@ 107 LIBS = @LIBS@ 108 LIBTOOL = @LIBTOOL@ 109 LN_S = @LN_S@ 110 LTLIBOBJS = @LTLIBOBJS@ 111 MAINT = @MAINT@ 112 MAKEINFO = @MAKEINFO@ 113 MKDIR_P = @MKDIR_P@ 114 NMEDIT = @NMEDIT@ 115 OBJEXT = @OBJEXT@ 116 PACKAGE = @PACKAGE@ 117 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 118 PACKAGE_NAME = @PACKAGE_NAME@ 119 PACKAGE_STRING = @PACKAGE_STRING@ 120 PACKAGE_TARNAME = @PACKAGE_TARNAME@ 121 PACKAGE_VERSION = @PACKAGE_VERSION@ 122 PATH_SEPARATOR = @PATH_SEPARATOR@ 123 RANLIB = @RANLIB@ 124 SED = @SED@ 125 SET_MAKE = @SET_MAKE@ 126 SHELL = @SHELL@ 127 STRIP = @STRIP@ 128 VERSION = @VERSION@ 129 abs_builddir = @abs_builddir@ 130 abs_srcdir = @abs_srcdir@ 131 abs_top_builddir = @abs_top_builddir@ 132 abs_top_srcdir = @abs_top_srcdir@ 133 ac_ct_CC = @ac_ct_CC@ 134 ac_ct_CXX = @ac_ct_CXX@ 135 ac_ct_F77 = @ac_ct_F77@ 136 am__include = @am__include@ 137 am__leading_dot = @am__leading_dot@ 138 am__quote = @am__quote@ 139 am__tar = @am__tar@ 140 am__untar = @am__untar@ 141 arch = @arch@ 142 bindir = @bindir@ 143 build = @build@ 144 build_alias = @build_alias@ 145 build_cpu = @build_cpu@ 146 build_os = @build_os@ 147 build_vendor = @build_vendor@ 148 builddir = @builddir@ 149 datadir = @datadir@ 150 datarootdir = @datarootdir@ 151 docdir = @docdir@ 152 dvidir = @dvidir@ 153 exec_prefix = @exec_prefix@ 154 host = @host@ 155 host_alias = @host_alias@ 156 host_cpu = @host_cpu@ 157 host_os = @host_os@ 158 host_vendor = @host_vendor@ 159 htmldir = @htmldir@ 160 includedir = @includedir@ 161 infodir = @infodir@ 162 install_sh = @install_sh@ 163 interp_cflags = @interp_cflags@ 164 libdir = @libdir@ 165 libexecdir = @libexecdir@ 166 localedir = @localedir@ 167 localstatedir = @localstatedir@ 168 mandir = @mandir@ 169 mkdir_p = @mkdir_p@ 170 oldincludedir = @oldincludedir@ 171 os = @os@ 172 pdfdir = @pdfdir@ 173 prefix = @prefix@ 174 program_transform_name = @program_transform_name@ 175 psdir = @psdir@ 176 sbindir = @sbindir@ 177 sharedstatedir = @sharedstatedir@ 178 srcdir = @srcdir@ 179 sysconfdir = @sysconfdir@ 180 target_alias = @target_alias@ 181 top_build_prefix = @top_build_prefix@ 182 top_builddir = @top_builddir@ 183 top_srcdir = @top_srcdir@ 184 use_zip_no = @use_zip_no@ 185 use_zip_yes = @use_zip_yes@ 186 with_classpath_install_dir = @with_classpath_install_dir@ 187 noinst_LTLIBRARIES = libnative.la 188 libnative_la_SOURCES = init.c dll_md.c 189 AM_CPPFLAGS = -I$(top_builddir)/src 190 all: all-am 191 192 .SUFFIXES: 193 .SUFFIXES: .c .lo .o .obj 194 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) 195 @for dep in $?; do \ 196 case '$(am__configure_deps)' in \ 197 *$$dep*) \ 198 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ 199 && { if test -f $@; then exit 0; else break; fi; }; \ 200 exit 1;; \ 201 esac; \ 202 done; \ 203 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/os/haiku/i386/Makefile'; \ 204 cd $(top_srcdir) && \ 205 $(AUTOMAKE) --gnu src/os/haiku/i386/Makefile 206 .PRECIOUS: Makefile 207 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 208 @case '$?' in \ 209 *config.status*) \ 210 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 211 *) \ 212 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 213 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 214 esac; 215 216 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 217 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 218 219 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 220 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 221 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) 222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 223 224 clean-noinstLTLIBRARIES: 225 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 226 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 227 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 228 test "$$dir" != "$$p" || dir=.; \ 229 echo "rm -f \"$${dir}/so_locations\""; \ 230 rm -f "$${dir}/so_locations"; \ 231 done 232 libnative.la: $(libnative_la_OBJECTS) $(libnative_la_DEPENDENCIES) 233 $(LINK) $(libnative_la_OBJECTS) $(libnative_la_LIBADD) $(LIBS) 234 235 mostlyclean-compile: 236 -rm -f *.$(OBJEXT) 237 238 distclean-compile: 239 -rm -f *.tab.c 240 241 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dll_md.Plo@am__quote@ 242 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/init.Plo@am__quote@ 243 244 .c.o: 245 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 246 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 247 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 248 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 249 @am__fastdepCC_FALSE@ $(COMPILE) -c $< 250 251 .c.obj: 252 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` 253 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 254 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 255 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 256 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` 257 258 .c.lo: 259 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 260 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 261 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 262 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 263 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< 264 265 mostlyclean-libtool: 266 -rm -f *.lo 267 268 clean-libtool: 269 -rm -rf .libs _libs 270 271 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 272 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 273 unique=`for i in $$list; do \ 274 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 275 done | \ 276 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 277 END { if (nonempty) { for (i in files) print i; }; }'`; \ 278 mkid -fID $$unique 279 tags: TAGS 280 281 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 282 $(TAGS_FILES) $(LISP) 283 tags=; \ 284 here=`pwd`; \ 285 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 286 unique=`for i in $$list; do \ 287 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 288 done | \ 289 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 290 END { if (nonempty) { for (i in files) print i; }; }'`; \ 291 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 292 test -n "$$unique" || unique=$$empty_fix; \ 293 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 294 $$tags $$unique; \ 295 fi 296 ctags: CTAGS 297 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 298 $(TAGS_FILES) $(LISP) 299 tags=; \ 300 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 301 unique=`for i in $$list; do \ 302 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 303 done | \ 304 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 305 END { if (nonempty) { for (i in files) print i; }; }'`; \ 306 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 307 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 308 $$tags $$unique 309 310 GTAGS: 311 here=`$(am__cd) $(top_builddir) && pwd` \ 312 && cd $(top_srcdir) \ 313 && gtags -i $(GTAGS_ARGS) $$here 314 315 distclean-tags: 316 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 317 318 distdir: $(DISTFILES) 319 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 320 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 321 list='$(DISTFILES)'; \ 322 dist_files=`for file in $$list; do echo $$file; done | \ 323 sed -e "s|^$$srcdirstrip/||;t" \ 324 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ 325 case $$dist_files in \ 326 */*) $(MKDIR_P) `echo "$$dist_files" | \ 327 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ 328 sort -u` ;; \ 329 esac; \ 330 for file in $$dist_files; do \ 331 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 332 if test -d $$d/$$file; then \ 333 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 334 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 335 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 336 fi; \ 337 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 338 else \ 339 test -f $(distdir)/$$file \ 340 || cp -p $$d/$$file $(distdir)/$$file \ 341 || exit 1; \ 342 fi; \ 343 done 344 check-am: all-am 345 check: check-am 346 all-am: Makefile $(LTLIBRARIES) 347 installdirs: 348 install: install-am 349 install-exec: install-exec-am 350 install-data: install-data-am 351 uninstall: uninstall-am 352 353 install-am: all-am 354 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 355 356 installcheck: installcheck-am 357 install-strip: 358 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 359 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 360 `test -z '$(STRIP)' || \ 361 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 362 mostlyclean-generic: 363 364 clean-generic: 365 366 distclean-generic: 367 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 368 369 maintainer-clean-generic: 370 @echo "This command is intended for maintainers to use" 371 @echo "it deletes files that may require special tools to rebuild." 372 clean: clean-am 373 374 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 375 mostlyclean-am 376 377 distclean: distclean-am 378 -rm -rf ./$(DEPDIR) 379 -rm -f Makefile 380 distclean-am: clean-am distclean-compile distclean-generic \ 381 distclean-tags 382 383 dvi: dvi-am 384 385 dvi-am: 386 387 html: html-am 388 389 info: info-am 390 391 info-am: 392 393 install-data-am: 394 395 install-dvi: install-dvi-am 396 397 install-exec-am: 398 399 install-html: install-html-am 400 401 install-info: install-info-am 402 403 install-man: 404 405 install-pdf: install-pdf-am 406 407 install-ps: install-ps-am 408 409 installcheck-am: 410 411 maintainer-clean: maintainer-clean-am 412 -rm -rf ./$(DEPDIR) 413 -rm -f Makefile 414 maintainer-clean-am: distclean-am maintainer-clean-generic 415 416 mostlyclean: mostlyclean-am 417 418 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 419 mostlyclean-libtool 420 421 pdf: pdf-am 422 423 pdf-am: 424 425 ps: ps-am 426 427 ps-am: 428 429 uninstall-am: 430 431 .MAKE: install-am install-strip 432 433 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 434 clean-libtool clean-noinstLTLIBRARIES ctags distclean \ 435 distclean-compile distclean-generic distclean-libtool \ 436 distclean-tags distdir dvi dvi-am html html-am info info-am \ 437 install install-am install-data install-data-am install-dvi \ 438 install-dvi-am install-exec install-exec-am install-html \ 439 install-html-am install-info install-info-am install-man \ 440 install-pdf install-pdf-am install-ps install-ps-am \ 441 install-strip installcheck installcheck-am installdirs \ 442 maintainer-clean maintainer-clean-generic mostlyclean \ 443 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ 444 pdf pdf-am ps ps-am tags uninstall uninstall-am 445 446 # Tell versions [3.59,3.63) of GNU make to not export all variables. 447 # Otherwise a system limit (for SysV at least) may be exceeded. 448 .NOEXPORT: -
src/os/haiku/Makefile.am
diff -rupN jamvm-1.5.4/src/os/haiku/Makefile.am jamvm-1.5.4.modified/src/os/haiku/Makefile.am
old new 1 ## 2 ## Copyright (C) 2003, 2004, 2005, 2006, 2007 3 ## Robert Lougher <rob@jamvm.org.uk>. 4 ## 5 ## This file is part of JamVM. 6 ## 7 ## This program is free software; you can redistribute it and/or 8 ## modify it under the terms of the GNU General Public License 9 ## as published by the Free Software Foundation; either version 2, 10 ## or (at your option) any later version. 11 ## 12 ## This program is distributed in the hope that it will be useful, 13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 ## GNU General Public License for more details. 16 ## 17 ## You should have received a copy of the GNU General Public License 18 ## along with this program; if not, write to the Free Software 19 ## Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 ## 21 22 SUBDIRS = @arch@ 23 DIST_SUBDIRS = i386 24 25 noinst_LTLIBRARIES = libos.la 26 libos_la_SOURCES = os.c 27 28 AM_CPPFLAGS = -I$(top_builddir)/src -
src/os/haiku/Makefile.in
diff -rupN jamvm-1.5.4/src/os/haiku/Makefile.in jamvm-1.5.4.modified/src/os/haiku/Makefile.in
old new 1 # Makefile.in generated by automake 1.10.2 from Makefile.am. 2 # @configure_input@ 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 @SET_MAKE@ 16 17 VPATH = @srcdir@ 18 pkgdatadir = $(datadir)/@PACKAGE@ 19 pkglibdir = $(libdir)/@PACKAGE@ 20 pkgincludedir = $(includedir)/@PACKAGE@ 21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 22 install_sh_DATA = $(install_sh) -c -m 644 23 install_sh_PROGRAM = $(install_sh) -c 24 install_sh_SCRIPT = $(install_sh) -c 25 INSTALL_HEADER = $(INSTALL_DATA) 26 transform = $(program_transform_name) 27 NORMAL_INSTALL = : 28 PRE_INSTALL = : 29 POST_INSTALL = : 30 NORMAL_UNINSTALL = : 31 PRE_UNINSTALL = : 32 POST_UNINSTALL = : 33 build_triplet = @build@ 34 host_triplet = @host@ 35 subdir = src/os/linux 36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ 39 $(top_srcdir)/configure.ac 40 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 41 $(ACLOCAL_M4) 42 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 43 CONFIG_HEADER = $(top_builddir)/src/config.h 44 CONFIG_CLEAN_FILES = 45 LTLIBRARIES = $(noinst_LTLIBRARIES) 46 libos_la_LIBADD = 47 am_libos_la_OBJECTS = os.lo 48 libos_la_OBJECTS = $(am_libos_la_OBJECTS) 49 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src 50 depcomp = $(SHELL) $(top_srcdir)/depcomp 51 am__depfiles_maybe = depfiles 52 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 53 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 54 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 55 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 56 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 57 CCLD = $(CC) 58 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 59 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ 60 $(LDFLAGS) -o $@ 61 SOURCES = $(libos_la_SOURCES) 62 DIST_SOURCES = $(libos_la_SOURCES) 63 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ 64 html-recursive info-recursive install-data-recursive \ 65 install-dvi-recursive install-exec-recursive \ 66 install-html-recursive install-info-recursive \ 67 install-pdf-recursive install-ps-recursive install-recursive \ 68 installcheck-recursive installdirs-recursive pdf-recursive \ 69 ps-recursive uninstall-recursive 70 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ 71 distclean-recursive maintainer-clean-recursive 72 ETAGS = etags 73 CTAGS = ctags 74 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 75 ACLOCAL = @ACLOCAL@ 76 ALLOCA = @ALLOCA@ 77 AMTAR = @AMTAR@ 78 AR = @AR@ 79 AUTOCONF = @AUTOCONF@ 80 AUTOHEADER = @AUTOHEADER@ 81 AUTOMAKE = @AUTOMAKE@ 82 AWK = @AWK@ 83 CC = @CC@ 84 CCAS = @CCAS@ 85 CCASDEPMODE = @CCASDEPMODE@ 86 CCASFLAGS = @CCASFLAGS@ 87 CCDEPMODE = @CCDEPMODE@ 88 CFLAGS = @CFLAGS@ 89 CPP = @CPP@ 90 CPPFLAGS = @CPPFLAGS@ 91 CXX = @CXX@ 92 CXXCPP = @CXXCPP@ 93 CXXDEPMODE = @CXXDEPMODE@ 94 CXXFLAGS = @CXXFLAGS@ 95 CYGPATH_W = @CYGPATH_W@ 96 DEFS = @DEFS@ 97 DEPDIR = @DEPDIR@ 98 DSYMUTIL = @DSYMUTIL@ 99 ECHO = @ECHO@ 100 ECHO_C = @ECHO_C@ 101 ECHO_N = @ECHO_N@ 102 ECHO_T = @ECHO_T@ 103 EGREP = @EGREP@ 104 EXEEXT = @EXEEXT@ 105 F77 = @F77@ 106 FFLAGS = @FFLAGS@ 107 GREP = @GREP@ 108 INSTALL = @INSTALL@ 109 INSTALL_DATA = @INSTALL_DATA@ 110 INSTALL_PROGRAM = @INSTALL_PROGRAM@ 111 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 112 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 113 JAVAC = @JAVAC@ 114 LDFLAGS = @LDFLAGS@ 115 LIBOBJS = @LIBOBJS@ 116 LIBS = @LIBS@ 117 LIBTOOL = @LIBTOOL@ 118 LN_S = @LN_S@ 119 LTLIBOBJS = @LTLIBOBJS@ 120 MAINT = @MAINT@ 121 MAKEINFO = @MAKEINFO@ 122 MKDIR_P = @MKDIR_P@ 123 NMEDIT = @NMEDIT@ 124 OBJEXT = @OBJEXT@ 125 PACKAGE = @PACKAGE@ 126 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 127 PACKAGE_NAME = @PACKAGE_NAME@ 128 PACKAGE_STRING = @PACKAGE_STRING@ 129 PACKAGE_TARNAME = @PACKAGE_TARNAME@ 130 PACKAGE_VERSION = @PACKAGE_VERSION@ 131 PATH_SEPARATOR = @PATH_SEPARATOR@ 132 RANLIB = @RANLIB@ 133 SED = @SED@ 134 SET_MAKE = @SET_MAKE@ 135 SHELL = @SHELL@ 136 STRIP = @STRIP@ 137 VERSION = @VERSION@ 138 abs_builddir = @abs_builddir@ 139 abs_srcdir = @abs_srcdir@ 140 abs_top_builddir = @abs_top_builddir@ 141 abs_top_srcdir = @abs_top_srcdir@ 142 ac_ct_CC = @ac_ct_CC@ 143 ac_ct_CXX = @ac_ct_CXX@ 144 ac_ct_F77 = @ac_ct_F77@ 145 am__include = @am__include@ 146 am__leading_dot = @am__leading_dot@ 147 am__quote = @am__quote@ 148 am__tar = @am__tar@ 149 am__untar = @am__untar@ 150 arch = @arch@ 151 bindir = @bindir@ 152 build = @build@ 153 build_alias = @build_alias@ 154 build_cpu = @build_cpu@ 155 build_os = @build_os@ 156 build_vendor = @build_vendor@ 157 builddir = @builddir@ 158 datadir = @datadir@ 159 datarootdir = @datarootdir@ 160 docdir = @docdir@ 161 dvidir = @dvidir@ 162 exec_prefix = @exec_prefix@ 163 host = @host@ 164 host_alias = @host_alias@ 165 host_cpu = @host_cpu@ 166 host_os = @host_os@ 167 host_vendor = @host_vendor@ 168 htmldir = @htmldir@ 169 includedir = @includedir@ 170 infodir = @infodir@ 171 install_sh = @install_sh@ 172 interp_cflags = @interp_cflags@ 173 libdir = @libdir@ 174 libexecdir = @libexecdir@ 175 localedir = @localedir@ 176 localstatedir = @localstatedir@ 177 mandir = @mandir@ 178 mkdir_p = @mkdir_p@ 179 oldincludedir = @oldincludedir@ 180 os = @os@ 181 pdfdir = @pdfdir@ 182 prefix = @prefix@ 183 program_transform_name = @program_transform_name@ 184 psdir = @psdir@ 185 sbindir = @sbindir@ 186 sharedstatedir = @sharedstatedir@ 187 srcdir = @srcdir@ 188 sysconfdir = @sysconfdir@ 189 target_alias = @target_alias@ 190 top_build_prefix = @top_build_prefix@ 191 top_builddir = @top_builddir@ 192 top_srcdir = @top_srcdir@ 193 use_zip_no = @use_zip_no@ 194 use_zip_yes = @use_zip_yes@ 195 with_classpath_install_dir = @with_classpath_install_dir@ 196 SUBDIRS = @arch@ 197 DIST_SUBDIRS = powerpc arm i386 x86_64 parisc mips 198 noinst_LTLIBRARIES = libos.la 199 libos_la_SOURCES = os.c 200 AM_CPPFLAGS = -I$(top_builddir)/src 201 all: all-recursive 202 203 .SUFFIXES: 204 .SUFFIXES: .c .lo .o .obj 205 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) 206 @for dep in $?; do \ 207 case '$(am__configure_deps)' in \ 208 *$$dep*) \ 209 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ 210 && { if test -f $@; then exit 0; else break; fi; }; \ 211 exit 1;; \ 212 esac; \ 213 done; \ 214 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/os/linux/Makefile'; \ 215 cd $(top_srcdir) && \ 216 $(AUTOMAKE) --gnu src/os/linux/Makefile 217 .PRECIOUS: Makefile 218 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 219 @case '$?' in \ 220 *config.status*) \ 221 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 222 *) \ 223 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 224 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 225 esac; 226 227 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 229 230 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) 231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 232 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) 233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 234 235 clean-noinstLTLIBRARIES: 236 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 237 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 238 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 239 test "$$dir" != "$$p" || dir=.; \ 240 echo "rm -f \"$${dir}/so_locations\""; \ 241 rm -f "$${dir}/so_locations"; \ 242 done 243 libos.la: $(libos_la_OBJECTS) $(libos_la_DEPENDENCIES) 244 $(LINK) $(libos_la_OBJECTS) $(libos_la_LIBADD) $(LIBS) 245 246 mostlyclean-compile: 247 -rm -f *.$(OBJEXT) 248 249 distclean-compile: 250 -rm -f *.tab.c 251 252 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/os.Plo@am__quote@ 253 254 .c.o: 255 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 256 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 257 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 258 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 259 @am__fastdepCC_FALSE@ $(COMPILE) -c $< 260 261 .c.obj: 262 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` 263 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 264 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 265 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 266 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` 267 268 .c.lo: 269 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 270 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 271 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 272 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 273 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< 274 275 mostlyclean-libtool: 276 -rm -f *.lo 277 278 clean-libtool: 279 -rm -rf .libs _libs 280 281 # This directory's subdirectories are mostly independent; you can cd 282 # into them and run `make' without going through this Makefile. 283 # To change the values of `make' variables: instead of editing Makefiles, 284 # (1) if the variable is set in `config.status', edit `config.status' 285 # (which will cause the Makefiles to be regenerated when you run `make'); 286 # (2) otherwise, pass the desired values on the `make' command line. 287 $(RECURSIVE_TARGETS): 288 @failcom='exit 1'; \ 289 for f in x $$MAKEFLAGS; do \ 290 case $$f in \ 291 *=* | --[!k]*);; \ 292 *k*) failcom='fail=yes';; \ 293 esac; \ 294 done; \ 295 dot_seen=no; \ 296 target=`echo $@ | sed s/-recursive//`; \ 297 list='$(SUBDIRS)'; for subdir in $$list; do \ 298 echo "Making $$target in $$subdir"; \ 299 if test "$$subdir" = "."; then \ 300 dot_seen=yes; \ 301 local_target="$$target-am"; \ 302 else \ 303 local_target="$$target"; \ 304 fi; \ 305 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 306 || eval $$failcom; \ 307 done; \ 308 if test "$$dot_seen" = "no"; then \ 309 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 310 fi; test -z "$$fail" 311 312 $(RECURSIVE_CLEAN_TARGETS): 313 @failcom='exit 1'; \ 314 for f in x $$MAKEFLAGS; do \ 315 case $$f in \ 316 *=* | --[!k]*);; \ 317 *k*) failcom='fail=yes';; \ 318 esac; \ 319 done; \ 320 dot_seen=no; \ 321 case "$@" in \ 322 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 323 *) list='$(SUBDIRS)' ;; \ 324 esac; \ 325 rev=''; for subdir in $$list; do \ 326 if test "$$subdir" = "."; then :; else \ 327 rev="$$subdir $$rev"; \ 328 fi; \ 329 done; \ 330 rev="$$rev ."; \ 331 target=`echo $@ | sed s/-recursive//`; \ 332 for subdir in $$rev; do \ 333 echo "Making $$target in $$subdir"; \ 334 if test "$$subdir" = "."; then \ 335 local_target="$$target-am"; \ 336 else \ 337 local_target="$$target"; \ 338 fi; \ 339 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 340 || eval $$failcom; \ 341 done && test -z "$$fail" 342 tags-recursive: 343 list='$(SUBDIRS)'; for subdir in $$list; do \ 344 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 345 done 346 ctags-recursive: 347 list='$(SUBDIRS)'; for subdir in $$list; do \ 348 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 349 done 350 351 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 353 unique=`for i in $$list; do \ 354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 355 done | \ 356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 357 END { if (nonempty) { for (i in files) print i; }; }'`; \ 358 mkid -fID $$unique 359 tags: TAGS 360 361 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 362 $(TAGS_FILES) $(LISP) 363 tags=; \ 364 here=`pwd`; \ 365 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ 366 include_option=--etags-include; \ 367 empty_fix=.; \ 368 else \ 369 include_option=--include; \ 370 empty_fix=; \ 371 fi; \ 372 list='$(SUBDIRS)'; for subdir in $$list; do \ 373 if test "$$subdir" = .; then :; else \ 374 test ! -f $$subdir/TAGS || \ 375 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ 376 fi; \ 377 done; \ 378 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 379 unique=`for i in $$list; do \ 380 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 381 done | \ 382 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 383 END { if (nonempty) { for (i in files) print i; }; }'`; \ 384 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 385 test -n "$$unique" || unique=$$empty_fix; \ 386 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 387 $$tags $$unique; \ 388 fi 389 ctags: CTAGS 390 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 391 $(TAGS_FILES) $(LISP) 392 tags=; \ 393 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 394 unique=`for i in $$list; do \ 395 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 396 done | \ 397 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 398 END { if (nonempty) { for (i in files) print i; }; }'`; \ 399 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 400 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 401 $$tags $$unique 402 403 GTAGS: 404 here=`$(am__cd) $(top_builddir) && pwd` \ 405 && cd $(top_srcdir) \ 406 && gtags -i $(GTAGS_ARGS) $$here 407 408 distclean-tags: 409 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 410 411 distdir: $(DISTFILES) 412 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 413 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 414 list='$(DISTFILES)'; \ 415 dist_files=`for file in $$list; do echo $$file; done | \ 416 sed -e "s|^$$srcdirstrip/||;t" \ 417 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ 418 case $$dist_files in \ 419 */*) $(MKDIR_P) `echo "$$dist_files" | \ 420 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ 421 sort -u` ;; \ 422 esac; \ 423 for file in $$dist_files; do \ 424 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 425 if test -d $$d/$$file; then \ 426 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 427 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 428 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 429 fi; \ 430 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 431 else \ 432 test -f $(distdir)/$$file \ 433 || cp -p $$d/$$file $(distdir)/$$file \ 434 || exit 1; \ 435 fi; \ 436 done 437 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 438 if test "$$subdir" = .; then :; else \ 439 test -d "$(distdir)/$$subdir" \ 440 || $(MKDIR_P) "$(distdir)/$$subdir" \ 441 || exit 1; \ 442 distdir=`$(am__cd) $(distdir) && pwd`; \ 443 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ 444 (cd $$subdir && \ 445 $(MAKE) $(AM_MAKEFLAGS) \ 446 top_distdir="$$top_distdir" \ 447 distdir="$$distdir/$$subdir" \ 448 am__remove_distdir=: \ 449 am__skip_length_check=: \ 450 distdir) \ 451 || exit 1; \ 452 fi; \ 453 done 454 check-am: all-am 455 check: check-recursive 456 all-am: Makefile $(LTLIBRARIES) 457 installdirs: installdirs-recursive 458 installdirs-am: 459 install: install-recursive 460 install-exec: install-exec-recursive 461 install-data: install-data-recursive 462 uninstall: uninstall-recursive 463 464 install-am: all-am 465 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 466 467 installcheck: installcheck-recursive 468 install-strip: 469 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 470 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 471 `test -z '$(STRIP)' || \ 472 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 473 mostlyclean-generic: 474 475 clean-generic: 476 477 distclean-generic: 478 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 479 480 maintainer-clean-generic: 481 @echo "This command is intended for maintainers to use" 482 @echo "it deletes files that may require special tools to rebuild." 483 clean: clean-recursive 484 485 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 486 mostlyclean-am 487 488 distclean: distclean-recursive 489 -rm -rf ./$(DEPDIR) 490 -rm -f Makefile 491 distclean-am: clean-am distclean-compile distclean-generic \ 492 distclean-tags 493 494 dvi: dvi-recursive 495 496 dvi-am: 497 498 html: html-recursive 499 500 info: info-recursive 501 502 info-am: 503 504 install-data-am: 505 506 install-dvi: install-dvi-recursive 507 508 install-exec-am: 509 510 install-html: install-html-recursive 511 512 install-info: install-info-recursive 513 514 install-man: 515 516 install-pdf: install-pdf-recursive 517 518 install-ps: install-ps-recursive 519 520 installcheck-am: 521 522 maintainer-clean: maintainer-clean-recursive 523 -rm -rf ./$(DEPDIR) 524 -rm -f Makefile 525 maintainer-clean-am: distclean-am maintainer-clean-generic 526 527 mostlyclean: mostlyclean-recursive 528 529 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 530 mostlyclean-libtool 531 532 pdf: pdf-recursive 533 534 pdf-am: 535 536 ps: ps-recursive 537 538 ps-am: 539 540 uninstall-am: 541 542 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ 543 install-strip 544 545 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ 546 all all-am check check-am clean clean-generic clean-libtool \ 547 clean-noinstLTLIBRARIES ctags ctags-recursive distclean \ 548 distclean-compile distclean-generic distclean-libtool \ 549 distclean-tags distdir dvi dvi-am html html-am info info-am \ 550 install install-am install-data install-data-am install-dvi \ 551 install-dvi-am install-exec install-exec-am install-html \ 552 install-html-am install-info install-info-am install-man \ 553 install-pdf install-pdf-am install-ps install-ps-am \ 554 install-strip installcheck installcheck-am installdirs \ 555 installdirs-am maintainer-clean maintainer-clean-generic \ 556 mostlyclean mostlyclean-compile mostlyclean-generic \ 557 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ 558 uninstall uninstall-am 559 560 # Tell versions [3.59,3.63) of GNU make to not export all variables. 561 # Otherwise a system limit (for SysV at least) may be exceeded. 562 .NOEXPORT: -
src/os/haiku/os.c
diff -rupN jamvm-1.5.4/src/os/haiku/os.c jamvm-1.5.4.modified/src/os/haiku/os.c
old new 1 /* 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 3 * Robert Lougher <rob@jamvm.org.uk>. 4 * 5 * This file is part of JamVM. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2, 10 * or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 */ 21 22 #include <stdio.h> 23 #include <string.h> 24 #include <stdlib.h> 25 #include <dlfcn.h> 26 27 #define __USE_GNU 28 #include <pthread.h> 29 #include <OS.h> 30 31 #include "../../jam.h" 32 33 void *nativeStackBase() { 34 thread_info info; 35 get_thread_info(find_thread(NULL), &info); 36 return info.stack_base; 37 } 38 39 int nativeAvailableProcessors() { 40 #ifdef __UCLIBC__ 41 return 1; 42 #else 43 system_info info; 44 get_system_info(&info); 45 return info.cpu_count; 46 #endif 47 } 48 49 char *nativeLibError() { 50 return dlerror(); 51 } 52 53 char *nativeLibPath() { 54 return getenv("LD_LIBRARY_PATH"); 55 } 56 57 void *nativeLibOpen(char *path) { 58 return dlopen(path, RTLD_LAZY); 59 } 60 61 void nativeLibClose(void *handle) { 62 dlclose(handle); 63 } 64 65 void *nativeLibSym(void *handle, char *symbol) { 66 return dlsym(handle, symbol); 67 } 68 69 char *nativeLibMapName(char *name) { 70 char *buff = sysMalloc(strlen(name) + sizeof("lib.so") + 1); 71 72 sprintf(buff, "lib%s.so", name); 73 return buff; 74 } -
src/os/Makefile.am
diff -rupN jamvm-1.5.4/src/os/Makefile.am jamvm-1.5.4.modified/src/os/Makefile.am
old new 20 20 ## 21 21 22 22 SUBDIRS = @os@ 23 DIST_SUBDIRS = linux darwin bsd solaris 23 DIST_SUBDIRS = linux darwin bsd solaris haiku 24 24 -
src/os/Makefile.in
diff -rupN jamvm-1.5.4/src/os/Makefile.in jamvm-1.5.4.modified/src/os/Makefile.in
old new use_zip_no = @use_zip_no@ 177 177 use_zip_yes = @use_zip_yes@ 178 178 with_classpath_install_dir = @with_classpath_install_dir@ 179 179 SUBDIRS = @os@ 180 DIST_SUBDIRS = linux darwin bsd solaris 180 DIST_SUBDIRS = linux darwin bsd solaris haiku 181 181 all: all-recursive 182 182 183 183 .SUFFIXES:
