mod_encoding 作成

configure の後に Makefile をちょいちょいいじる。

# cd ../
# ./configure --with-apxs=/usr/local/apache2/bin/apxs \
              --with-iconv-hook=/usr/local/include
# vi Makefile

LIBS に -L/usr/local/lib -liconv_hook をくわえて
install-exec-local: の箇所を
        $(APXS) -i -a -n encoding mod_encoding.la
に変更する

# make
# make install

Apache2 の httpd.conf に LoadModule も追記されている。