Thursday, March 6, 2008

GNU Autotools

Created base tree on SF.NET SVN for iimei.

Also research a bit on GNU Autotools. I misunderstood the './configure' generation is very difficult to generated when I've read the long output about checking detail system environment before compilation and install of a source code. After that I highly tend to just look for RPMs for the software.

There are still some packages that are not in Fedora/RHEL repo so I still need to build it by myself (I have brought the emesene into Fedora, yay!). Later I found out it might not be too hard to build from sources, when their dependencies are not too excessive or rare. Hmm, it still be nice if there are RPMs.

The GNU Autotools require some customization on certain files from user:

  • Makefile.am
  • configure.ac
Moreover, there are a few files that need to be generated from tools:

  • Makefile.in (generated from Makefile.am by automake)
  • aclocal.m4 (generated by aclocal)
  • config.h.in (generated by autoheader)
Then, 'configure' could be generated by autoconf. It generates the followings:

  • config.h (from config.h.in)
  • Makefile (from the above files)

I have checked out the current project 'scim-anthy' for a realistic sample:

.
|-- ABOUT-NLS
|-- AUTHORS
|-- COPYING
|-- ChangeLog
|-- INSTALL
|-- Makefile.am
|-- Makefile.in
|-- NEWS
|-- README
|-- TODO
|-- aclocal.m4
|-- config.guess
|-- config.h.in
|-- config.rpath
|-- config.sub
|-- configure
|-- configure.ac
|-- data
|   |-- Makefile.am
|   |-- Makefile.in
|   `-- ..
|-- depcomp
|-- install-sh
|-- intl
|   `-- ..
|-- ltmain.sh
|-- m4
|   |-- ChangeLog
|   |-- Makefile.am
|   |-- Makefile.in
|   `-- ..
|-- missing
|-- mkinstalldirs
|-- po
|   |-- ChangeLog
|   |-- Makefile.in.in
|   |-- Makevars
|   |-- POTFILES.in
|   |-- Rules-quot
|   |-- boldquot.sed
|   |-- en@boldquot.header
|   |-- en@quot.header
|   |-- insert-header.sin
|   |-- ja.gmo
|   |-- ja.po
|   |-- quot.sed
|   |-- remove-potcdate.sin
|   |-- scim-anthy.pot
|   `-- stamp-po
`-- src
    `-- ..

5 directories, 187 files

No comments:

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Australia License.
Copyright © 2008 みかんいろのそら (蜜柑色の空) . Some rights reserved.

Tags