| Guido van Rossum | d8eb211 | 1998-08-04 17:57:28 +0000 | [diff] [blame] | 1 | GNU readline 2.2 for BeOS | 
 | 2 |  | 
 | 3 | You can get the original GNU readline 2.2 source code from your favourite | 
 | 4 | GNU software repository, such as ftp://prep.ai.mit.edu/pub/gnu/. | 
 | 5 |  | 
 | 6 | You can get the only-slightly-modified-for-BeOS version of GNU readline 2.2 | 
 | 7 | from the GeekGadgets repository; ftp://ftp.ninemoons.com/pub/geekgadgets/. | 
 | 8 |  | 
 | 9 | BUILDING libreadline for BeOS hosts | 
 | 10 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 
 | 11 |  | 
 | 12 | Note that we don't build a shared library version of libreadline and | 
 | 13 | libhistory.  That's left as an exercise for the reader. | 
 | 14 |  | 
 | 15 | You won't be able to link against libreadline.a using the limited linker. | 
 | 16 |  | 
 | 17 | 1) If you're on a PowerPC system, install the POSIX ar from  | 
 | 18 |    http://www.qnx.com/~chrish/Be/software/index.html#programming | 
 | 19 |    (note that it's currently packaged with Python, in the BeOS/ar-1.1 | 
 | 20 |    directory). | 
 | 21 |     | 
 | 22 |    If you're on an x86 system, you can leave out the "AR=ar-posix" part | 
 | 23 |    of the following instructions.  In fact, you'll have to... | 
 | 24 |  | 
 | 25 | 2) For PowerPC, configure with: | 
 | 26 |  | 
 | 27 |    CC=mwcc CFLAGS="-O7 -i- -I." AR=ar-posix RANLIB=: ./configure --verbose \ | 
 | 28 |    --without-gcc --prefix=/boot/home/config powerpc-*-beos | 
 | 29 |  | 
 | 30 |    For x86, configure with: | 
 | 31 |     | 
 | 32 |    CC=mwcc CFLAGS="-O2 -i- -I." RANLIB=: ./configure --verbose \ | 
 | 33 |    --without-gcc --prefix=/boot/home/config x86-*-beos | 
 | 34 |  | 
 | 35 |    Don't worry about the warnings/errors configure spews for | 
 | 36 |    powerpc-*-beos or x86-*-beos; readline doesn't actually use this host  | 
 | 37 |    information    for anything, although configure will die if you don't  | 
 | 38 |    specify it. | 
 | 39 |  | 
 | 40 | 3) Edit config.h to comment out "#define HAVE_SELECT 1"; select() on | 
 | 41 |    BeOS doesn't work on file descriptors (such as stdin). | 
 | 42 |  | 
 | 43 | 4) For PowerPC, make with: | 
 | 44 |  | 
 | 45 |    make AR=ar-posix  | 
 | 46 |  | 
 | 47 |    For x86, make with: | 
 | 48 |     | 
 | 49 |    make | 
 | 50 |  | 
 | 51 | 5) Install with: | 
 | 52 |  | 
 | 53 |    make install | 
 | 54 |  | 
 | 55 | - Chris Herborth (chrish@qnx.com) | 
 | 56 |   April 21, 1998 |