透過用 ATS のビルド¶
ほとんどのケースでは、環境が透過性をサポートしていれば configure が自動的にそれを有効化します。そうでない環境では configure のオプションをいじる必要があるでしょう。
--enable-posix-capこれは透過性で必要とされる POSIX ケーパビリティを有効化します。これらはデフォルトで自動的にコンパイルされます。システムを確認するために、ヘッダーファイル
sys/capability.hとシステムライブラリlibcapを探します。これらはそれぞれlibcapとlibcap-develまたはlibcap-dev( ディストリビューションに依ります ) パッケージ内にあります。--enable-tproxy[=value]Enable TPROXY support, which is the Linux kernel feature used for transparency. This should be present in the base installation, there is no package associated with it. *
autoDo automatic checks for the TPROXY header file (linux/in.h) and enable TPROXY support if theIP_TRANSPARENTdefinition is present. This is the default if this option is not specified orvalueis omitted. *noDo not check for TPROXY support, disable support for it. *forceDo not check for TPROXY support, enable it using the $ats@ built in value forIP_TRANSPARENT. This is useful for systems that have it in the kernel for but some reason do not have the appropriate system header file. * number Do not check for TPROXY support, use number as theIP_TRANSPARENTvalue. There are, at present, no known standard distributions of Linux that support TPROXY but use a value different from the built in ATS default. However, a custom built kernel may do so and in that case the specific value can be specified.
デフォルトでは、ATS の設定はヘッダーファイル linux/in.h の存在により TPROXY の対応を自動的に確認し、それが有効なら TPROXY 対応でコンパイルします。これが失敗した場合は、たぶん上記のオプションのどれか一つを使うことで回復可能です。透過性はデフォルトでビルドされることがありますが、ATS の設定ファイルで明示的に有効化しない限り動作しないことに注意してください。