--- /dev/null
+.. 14-autoconf
+
+.. _label14:
+
+14. 自動設定用の変数と関数
+==================================
+
+.. _label14.1:
+
+14.1 自動設定関数の主な目的
+----------------------------------
+
+.. index::
+ single: ConfMsgChecing()
+ single: ConfMsgResult()
+.. _label14.1.1:
+
+14.1.1 ConfMsgChecking, ConfMsgResult
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: ConfMsgWarn()
+ single: ConfMsgError()
+.. _label14.1.2:
+
+14.1.2 ConfMsgWarn, ConfMsgError
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: ConfMsgYesNo()
+ single: ConfMsgFound()
+.. _label14.1.3:
+
+14.1.3 ConfMsgYesNo, ConfMsgFound
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: TryConpileC()
+ single: TryLinkC()
+ single: TryRunC()
+.. _label14.1.4:
+
+14.1.4 TryCompileC, TryLinkC, TryRunC
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: RunCProg()
+.. _label14.1.5:
+
+14.1.5 RunCProg
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: CheckCHeader()
+ single: VerboseCheckCHeader()
+.. _label14.1.6:
+
+14.1.6 CheckCHeader, VerboseCheckCHeader
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: CheckCLib()
+ single: VerboseCheckCLib()
+.. _label14.1.7:
+
+14.1.7 CheckCLib, VerboseCheckCLib
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: CheckProg()
+.. _label14.1.8:
+
+14.1.8 CheckProg
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: AC_MSG_CHECKING
+ single: AC_MSG_RESULT
+ single: AC_MSG_WARN
+ single: AC_MSG_ERROR
+ single: AC_TRY_COMPILE
+ single: AC_TRY_LINK
+ single: AC_TRY_RUN
+.. _label14.2:
+
+14.2 ``autoconf`` スクリプトを翻訳する
+------------------------------------------
+
+.. _label14.3:
+
+14.3 事前に定義された設定をテストする
+------------------------------------------
+
+.. index::
+ single: NCURSES_AVAILABLE
+ single: NCURSES_TERMH_IN_NCURSES
+ single: NCURSES_CFLAGS
+ single: NCURSES_CLIBS
+.. _label14.3.1:
+
+14.3.1 NCursesライブラリの設定
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: READLINE_AVAILABLE
+ single: READLINE_GNU
+ single: READLINE_CFLAGS
+ single: READLINE_CLIBS
+.. _label14.3.2:
+
+14.3.2 ReadLineライブラリの設定
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+.. index::
+ single: SNPRINTF_AVAILABLE
+.. _label14.3.3:
+
+14.3.3 Snprintfの設定
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^
OMakeのバージョンを表します。
+.. index::
+ single: STDLIB
+
STDLIB
^^^^^^^^^^^^^^^^^^^^^^^^^
OMakeの基本ライブラリのファイルがあるディレクトリを表します。起動時に、この変数のデフォルトの値は以下のようにして決定されます。
現在のデフォルトの値は ``omake --version`` を走らせることによって参照できます。
.. index::
- single: OMAKE_PATH
+ single: OMAKEPATH
OMAKEPATH
^^^^^^^^^^^^^^^^^^^^^^^^^
``include`` と ``open`` 文における検索パスを指定した、ディレクトリの配列です(詳細は ":ref:`label4.7`" を参照してください)。
デフォルトの値は ``.`` と ``$(STDLIB)`` が格納されています。
+.. index::
+ single: OSTYPE
+
OSTYPE
^^^^^^^^^^^^^^^^^^^^^^^^^
omakeを走らせているマシンのアーキテクチャの集合です。考えられる値は ``Unix`` (LinuxやMac OS Xを含む、すべてのUnixのバージョンを表します), ``Win32`` (MS-Windowsでは、OMakeはMSVC++かMingwを用いてコンパイルします), ``Cygwin`` (MS-Windowsでは、OMakeはCygwinを用いてコンパイルします)があります。
shell
pervasives
build
+ autoconf
1.3 翻訳に関して
-------------------
.. 7-language-examples
-.. index:
+.. index::
single: osh
.. _label7:
.. 5-language-naming
-.. index:
+.. index::
single: 修飾子
single: 名前空間
.. _label5:
==================================
プロジェクトは ``OMakefile`` を用いてomakeにどのようにビルドするのか指定しており、文法は ``Makefile`` と似ています。 ``OMakefile`` は3つの文法規則『変数の定義』『関数の定義』『ルールの定義』を持ち合わせています。
-.. index:
+.. index::
single: 変数
.. _label4.1:
12.1 広く使われているオブジェクト
----------------------------------
-.. index:
+.. index::
single: Object
.. _label12.1.1:
export
return $(names)
-.. index:
+.. index::
single: Map
.. _label12.1.2:
通常用いる修飾子も適用できます。式 ``$`|key|`` はキーの遅延評価として解釈され、また式 ``$,|key|`` は通常の評価を行います。
-.. index:
+.. index::
single: Number
.. _label12.1.3:
``Number`` オブジェクトは整数や浮動小数点の親オブジェクトです。
-.. index:
+.. index::
single: Int
.. _label12.1.4:
``Int`` オブジェクトは整数を表現します。
-.. index:
+.. index::
single: Float
.. _label12.1.5:
``Float`` オブジェクトは浮動小数点を表現します。
-.. index:
+.. index::
single: Sequence
.. _label12.1.6:
- : Array = -2 3 0
-.. index:
+.. index::
single: Array
.. _label12.1.7:
* ``$(s.nth <i>)`` : シーケンスの ``i`` 番めの成分を返します。
* ``$(s.rev <i>)`` : 逆転させたシーケンスを返します。
-.. index:
+.. index::
single: String
.. _label12.1.8:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
親オブジェクト : ``Array``
-.. index:
+.. index::
single: Fun
.. _label12.1.9:
* ``$(f.arity)`` : 関数の場合はアリティ(関数が取る引数の個数)を返します。
-.. index:
+.. index::
single: Rule
.. _label12.1.10:
``Rule`` オブジェクトはビルドルールを表現します。これは現在なんのメソッドも持っていません。
-.. index:
+.. index::
single: Target
.. _label12.1.11:
.. note::
ターゲットの情報は動的に構築されるので、あるノードの ``Target`` オブジェクトは異なる箇所で異なった値を含む場合があります。 ``Target`` の情報が完全にするためのもっとも簡単な方法は、対象のターゲットファイルに依存しているルール中、もしくは対象のターゲットファイルの依存関係の中で ``Target`` オブジェクトを計算することです。
-.. index:
+.. index::
single: Node
.. _label12.1.12:
* ``$(node.chmod <perm>)`` : このファイルのパーミッションを変更します。
* ``$(node.chown <uid>, <gid>)`` : このファイルの所有者とグループIDを変更します。
-.. index:
+.. index::
single: File
.. _label12.1.13:
``File`` オブジェクトはファイル名を表現します。
-.. index:
+.. index::
single: Dir
.. _label12.1.14:
``Dir`` オブジェクトはディレクトリ名を表現します。
-.. index:
+.. index::
single: Channel
.. _label12.1.15:
* ``$(o.close)`` : チャネルを閉じます。
* ``$(o.name)`` : チャネルに関係しているファイル名を返します。
-.. index:
+.. index::
single: InChannel
.. _label12.1.16:
* ``$(o.read <number>)`` : チャネルから、与えられた数だけ文字を読み込みます。
* ``$(o.readln)`` : チャネルから一行を読み込みます。
-.. index:
+.. index::
single: OutChannel
.. _label12.1.17:
* ``$(c.print <string>)`` : チャネルに文字列を出力します。
* ``$(c.print <string>)`` : チャネルに、改行コードを付与した文字列を出力します。
-.. index:
+.. index::
single: Location
.. _label12.1.18:
``Location`` オブジェクトはファイルの位置を表現します。
-.. index:
+.. index::
single: Exception
.. _label12.1.19:
``Exception`` オブジェクトは例外の基底となるオブジェクトとして用いられます。このオブジェクトはなんのプロパティやメソッドを持ちません。
-.. index:
+.. index::
single: RuntimeException
.. _label12.1.20:
* ``position`` : 例外が送出された位置を表現している文字列
* ``message`` : 例外のメッセージを保持している文字列
-.. index:
+.. index::
single: UnbuildableException
.. _label12.1.21:
* ``target`` : どのターゲットがビルドできないのかを示します。
* ``message`` : 例外のメッセージを含んでいる文字列
-.. index:
+.. index::
single: Shell
.. _label12.1.22: