popt をインストール

暖かい日にゆっくり休みたいな〜

というわけで、どうも parser らしい。コマンド入力時の文字列をあれこれ操作してくれるらしい。確かに mimms.cpp を見ても main の中で URL を host やら path, file 名にしたりしてるよ。で、出所は RedHat なのかな?rpm で使ってるって。ま、なんとなくわかったのでインストールを試みる。popt-1.7 を落としてきてフォルダを覗いてみる。今度は ./configure で行けそう。

power-mac-g5:~/Desktop/popt-1.7 paraches$ ./configure
checking build system type... powerpc-apple-darwin8.5.0
checking host system type... powerpc-apple-darwin8.5.0
checking target system type... powerpc-apple-darwin8.5.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for gcc option to accept ANSI C... none needed
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for function prototypes... yes
checking for ANSI C header files... yes
checking for string.h... (cached) yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic Mach-O dynamically linked shared library
checking command to parse /usr/bin/nm -p output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... darwin8.5.0 dyld
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking mcheck.h usability... no
checking mcheck.h presence... no
checking for mcheck.h... no
checking for unistd.h... (cached) yes
checking for /usr/ucblib in LIBS... no
checking for GNU xgettext... configure: error:
  *** GNU gettext is required. The latest version
  *** is always available from ftp://ftp.gnu.org/gnu/gettext/.
power-mac-g5:~/Desktop/popt-1.7 paraches$

ありゃ? gettext が必要なのか…。
で、gettext も落としてきて入れてみる…

power-mac-g5:~/Desktop/gettext-0.14.5 paraches$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
<めちゃくちゃ長いので省略>
 /usr/bin/install -c '../build-aux/mkinstalldirs' '/usr/local/share/gettext/mkinstalldirs'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
power-mac-g5:~/Desktop/gettext-0.14.5 paraches$ 

さっくりと入ったので再度 popt のビルドに挑戦!

power-mac-g5:~/Desktop/popt-1.7 paraches$ ./configure
checking build system type... powerpc-apple-darwin8.5.0
checking host system type... powerpc-apple-darwin8.5.0
<省略>
checking for /usr/ucblib in LIBS... no
checking for GNU xgettext... configure: error:
  *** GNU gettext is required. The latest version
  *** is always available from ftp://ftp.gnu.org/gnu/gettext/.
power-mac-g5:~/Desktop/popt-1.7 paraches$

あれれ? なんで? 入れたじゃん!!! どうすんだよ〜。何かがうまくいってないのかな?