X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Message-ID: <4C245082.3010707@iki.fi> Date: Fri, 25 Jun 2010 09:45:22 +0300 From: Andris Pavenis User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Thunderbird/3.0.4 MIME-Version: 1.0 To: djgpp AT delorie DOT com CC: Allan Subject: Re: PCRE 8.02 installation difficulty - overcome inelegently References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------020203020207050809020306" Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. --------------020203020207050809020306 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 06/25/2010 03:56 AM, Allan wrote: > I installed PCRE 8.02 without changing the C source code at all but I > did have to edit `config.status' in the top level source code > directory. There is a problem in the PCRE 8.02 `configure' script but > I was able to run it in one iteration and then create the makefiles by > running the `config.status' script after manual editing. It builds > cleanly but four of five tests fail. The one line of code in the > script that has to be fixed manually is to assign `\r' instead of the > null string to `ac_cr' . I have 2.04 beta with all updates on Windows > SP SP3. My external Perl is AS ActivePerl version 1007. > Known bug in some versions of autoconf. See attached script for building MPFR for example how to workaround the problem (and possibly additionally build a packages for DJGPP distribution). Andris --------------020203020207050809020306 Content-Type: text/plain; name="mpfr.build" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mpfr.build" #! /bin/sh # # This scripts # 1) unpacks MPFR source archive (tar.gz or tar.bz2) # 2) generates DJGPP source archive with configured sources # 3) builds MPFR and run tests # 4) generates DJGPP binary package of MPFR. # # It is not intended for building MPFR from mpfr221s.zip # even when it is included there. # name=mpfr version=3.0.0 email="Andris Pavenis " top=`pwd` gcc -v -O2 -x c - -o gmpver__.exe -lgmp -lm <<'EOF' #include #include int main(void) { printf("%s\n", gmp_version); return 0; } EOF test -f gmpver__.exe || exit 1 gmp_ver=$(./gmpver__.exe) gcc_ver=$(gcc --version | head -1 | awk '{print $3}') rm -f gmpver__.exe mkdir -p gnu || exit 1 rm -rf gnu/mpfr-* if [ -f $name-$version.tar.bz2 ] ; then bzip2 -cd $name-$version.tar.bz2 | ( cd gnu && tar x ) || exit 1 else if [ -f $name-version.tar.gz ] ; then gzip -cd $name-$version.tar.gz | ( cd gnu && tar x ) || exit 1 else echo MPFR source archive is not found fi fi djver1=`echo $version | sed -e 's:\.::2g'` djver2=`echo $version | sed -e 's:\.::g'` srcdir=$top/gnu/$name-$djver1 if test x"$djver1" != x"$version"; then mv -v gnu/$name-$version $srcdir fi #( cd $srcdir && aclocal && autoconf || exit 1 ) # Workaround bug in autoconf-2.63 sed -e 's:\\\\r:\\r:g' $srcdir/configure >$srcdir/configure.new diff -u $srcdir/configure $srcdir/configure.new mv -fv $srcdir/configure.new $srcdir/configure ( cd $srcdir && ./configure i386-pc-msdosdjgpp ) # # Write README file for DJGPP to the source directory # cat >gnu/$name-$djver1/readme.djgpp <$srcdir/makepkg.sh <<'EOF' #! /bin/sh name=@NAME@ version=@VERSION@ djver1=`echo $version | sed -e 's:\.::2g'` djver2=`echo $version | sed -e 's:\.::g'` dname=$name-$djver1 rm -rf inst.djg make all check make check >check.log 2>&1 make install prefix=`pwd`/inst.djg mkdir -p inst.djg/info mkdir -p inst.djg/manifest mkdir -p inst.djg/gnu/$dname touch inst.djg/manifest/mpfr${djver2}b.mft cat >inst.djg/manifest/mpfr${djver2}b.ver <manifest/mpfr${djver2}b.mft ) ( cd inst.djg && cat manifest/mpfr${djver2}b.mft | zip -9@ ../mpfr${djver2}b.zip ) EOF # Write also this script to the source dircetory cat $0 >$srcdir/`basename $0` mkdir -p manifest cat >manifest/mpfr${djver2}s.ver <manifest/mpfr${djver2}s.mft cat manifest/mpfr${djver2}s.mft | zip -9q@ mpfr${djver2}s.zip cd $srcdir && make all check || exit 1 cd $srcdir && ./makepkg.sh || exit 1 mv -v $srcdir/$name${djver2}b.zip $top/ --------------020203020207050809020306--