From a4c9b9697bad7e709319e8b8200da6ff3eedfdb3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 26 Feb 2010 06:50:55 +0000 Subject: Add instructions and support for building with readline on Windows. --- docs/api-notes/win32_build_on_cygwin_using_mingw.txt | 15 ++++++++++++++- infrastructure/mingw/configure.sh | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/docs/api-notes/win32_build_on_cygwin_using_mingw.txt b/docs/api-notes/win32_build_on_cygwin_using_mingw.txt index 9c82cf76..0b31626f 100644 --- a/docs/api-notes/win32_build_on_cygwin_using_mingw.txt +++ b/docs/api-notes/win32_build_on_cygwin_using_mingw.txt @@ -68,6 +68,19 @@ Configure PCRE for MinGW compilation, and build and install it: cp .libs/libpcre.a .libs/libpcreposix.a /lib/mingw cp pcreposix.h /usr/include/mingw +== Readline (Optional) == + +If you want Readline support, download Readline version 6.1, unpack +and install thus: + + tar xzvf readline-6.1.tar.gz + ./configure --prefix=/usr/i686-pc-mingw32 \ + CFLAGS="-mno-cygwin" \ + CPPFLAGS="-mno-cygwin" \ + LDFLAGS="-mno-cygwin" + make + make install + == Download Box Backup == Go back to the base directory, and download the latest Box Backup sources: @@ -83,7 +96,7 @@ Note: If you have problems during the configure or make stage, please try to eli Enter the source directory and configure like this: cd trunk - ./infrastructure/mingw/configure.sh + ./infrastructure/mingw/configure.sh [--enable-gnu-readline] make == Installation == diff --git a/infrastructure/mingw/configure.sh b/infrastructure/mingw/configure.sh index 287d1e57..b56d13c6 100755 --- a/infrastructure/mingw/configure.sh +++ b/infrastructure/mingw/configure.sh @@ -29,7 +29,7 @@ if [ ! -x "configure" ]; then fi fi -if ! ./configure --target=i686-pc-mingw32; then +if ! ./configure --target=i686-pc-mingw32 "$@"; then echo "Error: configure failed, aborting." >&2 exit 1 fi -- cgit v1.2.3