| \ lib.fs shared library support package 11may97py |
\ lib.fs shared library support package 11may97py |
| |
|
| \ Copyright (C) 1995,1996,1997,1998,2000,2003,2005,2006,2007 Free Software Foundation, Inc. |
\ Copyright (C) 1995,1996,1997,1998,2000,2003,2005,2006,2007,2008 Free Software Foundation, Inc. |
| |
|
| \ This file is part of Gforth. |
\ This file is part of Gforth. |
| |
|
| \ You should have received a copy of the GNU General Public License |
\ You should have received a copy of the GNU General Public License |
| \ along with this program. If not, see http://www.gnu.org/licenses/. |
\ along with this program. If not, see http://www.gnu.org/licenses/. |
| |
|
| s" libavcall.so" open-lib 0<> |
libffi-present [if] |
| s" libcallback.so" open-lib 0<> and |
require ./libffi.fs |
| s" libvacall.so" open-lib 0<> and |
[else] |
| s" libtrampoline.so" open-lib 0<> and [if] |
ffcall-present [if] |
| .( including fflib.fs [ffcall] ) |
require ./fflib.fs |
| include fflib.fs |
[else] |
| [ELSE] |
.( Neither libffi nor ffcall are configured ) cr |
| s" libffi.so" open-lib [if] |
.( If you have installed one of them, you can use libffi.fs or fflib.fs directly ) cr |
| .( including libffi.fs ) |
.( Or you can just use the new, documented and better, but different, libcc.fs ) cr |
| include libffi.fs |
|
| [ELSE] |
|
| .( Neither libffi nor ffcall are available ) cr |
|
| abort |
abort |
| .( Using oldlib.fs; incompatible with fflib.fs and libffi.fs) cr |
[then] |
| include oldlib.fs |
[then] |
| [THEN] |
|
| [THEN] |
|
| |
|
| \ testing stuff |
\ testing stuff |
| |
|
| [THEN] |
[THEN] |
| [THEN] |
[THEN] |
| |
|
| [ifdef] testing |
0 [if] |
| |
|
| library libc libc.so.6 |
library libc libc.so.6 |
| |
|