Skip to content

Files

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 22, 2024

Autoconf 2.53

Source link
Build type: cross-compiling (on system with mipsEEel-linux-* toolchain installed)

Prerequisites

PS2 Linux comes with Autoconf 2.13 pre-installed, but building certain software natively on PS2 Linux requires a newer Autoconf version. The procedure below will not replace the pre-installed Autoconf 2.13 on PS2 Linux, but will instead install alongside it.

Building for PS2 Linux

Extract source archive

tar xjf autoconf-2.53.tar.bz2
cd autoconf-2.53

 
Set necessary environment variables.

export PREFIX=/usr/local

 
Modify autoconf files to include mipsEEel-linux host.

for f in `find . -name config.sub`; do perl -i.bak -pe "s/\| mipsel /\| mipsel \| mipsEEel /" "$f"; done
for f in `find . -name config.sub`; do perl -i -pe "s/\| mipsel-\* /\| mipsel-\* | mipsEEel-\* /" "$f"; done

 
Configure and build source

./configure --prefix=$PREFIX --host=mipsEEel-linux
make

 
Install to current directory and create additional binaries (filenames appended with -2.53), then create installation archive.

rm -rf usr
make DESTDIR=`pwd` install
cd usr/local/bin
for f in `ls *`; do cp "$f" "${f}-2.53"; done
cd ../../..
tar czf autoconf-2.53.mipsEEel-linux.tar.gz usr

Installing on PS2 Linux (as root)

Transfer autoconf-2.53.mipsEEel-linux.tar.gz archive to PS2 Linux and install.

cd /
tar xzf /path/to/autoconf-2.53.mipsEEel-linux.tar.gz

Usage notes

To use this updated Autoconf version when building software natively on PS2 Linux, configuration and build scripts must be edited to call the *-2.53 binaries directly.