Porting to OS/2: Install perl, m4 and autotools(autoconf, automake, libtool)

Many open source projects use autotools to support cross platforms. So it would be better to install autotools. By the way, autotools(autoconf and automake) requires perl // and m4 //(2014/09/08). Therefore, we should install perl first.

perl



Unzip all the zips to x:\, or a sub directory of x:\, where you want to install.

  • unzip *.zip -d x:\

And set env vars before using perl.

1
2
3
4
5
6
7
8
rem plenv.cmd
set PATH=x:\Perl\bin\5.8.0;%PATH%
set BEGINLIBPATH=x:\Perl\lib;%BEGINLIBPATH%
SET PERLLIB_PREFIX=L:/Perl/lib;x:\Perl\lib
SET PERL_LIBPATH=L:/Perl/lib;x:\Perl\lib
SET PERL_BADFREE=0
SET PERL_BADLANG=0
SET PERL_SH_DIR=x:\bin


And perl 5.8.0 is shipped with an older version of pdksh. So rename it to sh.exe.sav or remove it. It is x:\perl\bin\5.8.0\sh.exe.

To check if perl is installed correctly, use testperl.cmd in x:\perl\bin\5.8.0.

// ----- 2014/09/08

m4



Unzip this and copy m4-1.4.17\usr to x:\usr.

  • unzip m4-1.4.17.zip
  • xcopy /s/e/v/h/t/r m4-1.4.17\usr x:\usr\

// -----

Now install autotools.


autoconf



Unfortunately, this distribution has a hard-coded absolute path of perl. So you should build your own installation.

  • unzip autoconf-2.69.zip
  • cd autoconf-2.69
  • unzip autoconf-2.69-src.zip
  • cd autoconf-2.69
  • configure
  • gmake install

It has configure.cmd and gmake.cmd to build it. Consequently, It will be installed into x:\usr.

// ----- 2016/01/04
You can get newer versions of autoconf from hobbes.
// -----


automake



Like autoconf, you should build your own installation.

  • unzip automake-1.13.1.zip
  • cd automake-1.13.1
  • unzip automake-1.13.1-src.zip
  • sh ./configure --prefix=/usr
  • make install

// ----- 2016/01/04
You can get newer versions of automake from hobbes.
// -----


libtool



Unzip and copy its usr directory to x:\usr.

  • unzip libtool-2.4.2.zip
  • xcopy /s/e/v/h/t/r libtool-2.4.2\usr x:\usr\

// ----- 2016/01/04
You can get newer versions of libtool from hobbes.
// -----

댓글

이 블로그의 인기 게시물

토렌트: < 왕좌의 게임 > 시즌 1 ~ 시즌 8 완결편 마그넷

토렌트: < 스타워즈 > Ep.1 ~ Ep.6 마그넷

토렌트: NGC < 코스모스 > 우리말 더빙 전편(1편~13편) 마그넷