[PR]100万円が無料で当たる!:今すぐ応募して現金を当てよう!

Produced by

Copyright (C) 1997 - 2001, All right reserved
mark 、オ、「。「サマ、皃隍ヲ Go to menu
  1. 、゙、コ、マ。「コ猥チ。」
    automake 、ホイタ筅ヌコタョ、キ、ソ。「 エヒワナェ、ハソキソ 、 gettext ツミア、ヒ、ケ、シス遉タ篶タ、キ、ソ、、、ネサラ、、、゙、ケ。」

  2. 、ヌ、マ。「チ眥ョシハク、セァ、ィ、゙、ケ。」
    kterm
    shimaki:~/devel/automake/hello $ ls
    Makefile.am   autogen.sh*   configure.in  hello.c
    shimaki:~/devel/automake/hello $ gettextize 
    Any pre-existing gettext source file will be removed.
    You should update your own aclocal.m4 by merging into it the contents of
                   /usr/local/share/gettext/aclocal.m4
    shimaki:~/devel/automake/hello $ ls
    ABOUT-NLS@    autogen.sh*   hello.c       po/
    Makefile.am   configure.in  intl/
    shimaki:~/devel/automake/hello $
    

    、ェ、テ、ネ。「、、、ュ、ハ、"、鬢キ、ッ"、ハ、テ、ニ、ュ、゙、キ、ソ。」

  3. 、ヌ、マ。「Makefile.am 、ォ、鮨、ュトセ、キ、ニ、、、ュ、゙、キ、遉ヲ。」
    gettextize、ヌ。「gettextイス、ケ、、ネ。「 po、ネintl ・ヌ・」・・ッ・ネ・熙ャコタョ、オ、、゙、ケ。」
    、ウ、、 Makefile.am カオ、ィ、ニ、「、イ、、タ、ア、ヌ、ケ。」
    • SUBDIRS
    、ナャタレ、ハーフテヨ、リイテ、ィ、゙、ケ。」

    シ。、マ。「configure.in 、ス、ュトセ、キ、゙、ケ。」
    configure.in 、ヒ、マ。「2、ト、ホ・ュ。シ・。シ・ノ
    • ALL_LINGUAS
    • AM_GNU_GETTEXT
    、ノユ、アイテ、ィ。「AC_OUTPUT、ス、ュ、ォ、ィ、、タ、ア、ヌ、ケ。」
    エヒワナェ、ヒ、マ。」

    ALL_LINGUAS 、ヒサリト熙ヌ、ュ、ハクサホ、マ 、ウ、チ、鬢サイセネ 、キ、ニ、ッ、タ、オ、、。」
    イ譯ケ、マ。「、ネ、熙「、ィ、コ "ja" 、タ、ア、ヒテフワ、キ、゙、ケ。」

    AM_GNU_GETTEXT 、マ。「gettext 、サネヘム、ケ、、ウ、ネ、 automake, autoconf 、ヒサリシィ、ケ、・゙・ッ・、ヌ、ケ。」

    AC_OUTPUT 、ヒ、マ。「
    • intl/Makefile
    • po/Makefile.in
    、イテ、ィ、゙、ケ。」

    、オ、ニ。「ス、ュ、ォ、ィ、ソ Makefile.am 、ネ configure.in 、マ。「、ウ、ホ、隍ヲ、ヒ、ハ、熙゙、ケ。」
    イソ、ォハム、ヌ、ケ、ヘ。」オ、、ャノユ、ュ、゙、キ、ソ、ォ。」
    、、、ッ、ト、ォクォ、ハ、、ハ、、ケヤ、ャクォ、ト、ォ、、ネサラ、、、゙、ケ。「 、ャ。「、ホ、チ、ホ、チイタ筅ケ、、ウ、ネ、ヒ、キ、゙、ケ。」

    XEmacs
    SUBDIRS=po intl
    bin_PROGRAMS=hello
    hello_SOURCES=\
            hello.c intl.h
    
    CPPFLAGS = -DLOCALEDIR=\""$(localedir)"\"
    
    XEmacs
     
    dnl Process this file with autoconf to produce a configure script.
    AC_INIT(hello.c)
    
    PACKAGE=hello
    VERSION=0.2.0
    ALL_LINGUAS="ja"
    
    AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
    AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
    AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
    
    AM_CONFIG_HEADER(config.h)
    AM_PROG_LIBTOOL
    AC_ARG_PROGRAM
    AC_PROG_CC
    AC_PROG_INSTALL
    AC_PROG_MAKE_SET
    
    dnl for gettext
    AM_GNU_GETTEXT
    AC_CHECK_FUNC(gettext,,AC_CHECK_LIB(intl, gettext))
    localedir='${prefix}/share/locale'
    AC_SUBST(localedir)
    
    dnl 
    AC_C_INLINE
    if test x$CC = xgcc; then
      CFLAGS="$CFLAGS -Wall"
    fi     
    
    AC_OUTPUT([
    Makefile
    intl/Makefile
    po/Makefile.in
    ])
    
mark2 autoheader 、ヌ・ィ・鬘シ、ャ... Go to menu
  1. 、オ、ニ。「シォヒ、ホ・ケ・ッ・・ラ・ネ(?) autogen.sh 、シツケヤ、キ、ニ、゚、゙、キ、遉ヲ。」
    kterm
    shimaki:~/devel/automake/hello $ ls
    Makefile.am   autogen.sh*   configure.in  hello.c
    shimaki:~/devel/automake/hello $ ./autogen.sh 
    I am going to run ./configure with no arguments - if you wish 
    to pass any to it, please specify them on the ./autogen.sh command line.
    processing...
    cleaning .deps directories ...
    checking files ...
       NEWS...touched...OK
       README...touched...OK
       AUTHORS...touched...OK
       ChangeLog...touched...OK
    sed: can't read aclocal.m4: No such file or directory
    You should update your own `aclocal.m4' by adding the necessary
    macro packages gettext.m4, lcmessage.m4 and progtest.m4 from
    the directory `/aclocal'
    checking po files ...
       po/ja.po...touched...OK
    po/POTFILES.in was generated automaticaly.
    /usr/local/bin/autoheader: Symbol `ENABLE_NLS' is not covered by /usr/local/shar\
    e/autoconf/acconfig.h
    /usr/local/bin/autoheader: Symbol `HAVE_CATGETS' is not covered by /usr/local/sh\
    are/autoconf/acconfig.h
    /usr/local/bin/autoheader: Symbol `HAVE_GETTEXT' is not covered by /usr/local/sh\
    are/autoconf/acconfig.h
    /usr/local/bin/autoheader: Symbol `HAVE_LC_MESSAGES' is not covered by /usr/loca\
    l/share/autoconf/acconfig.h
    /usr/local/bin/autoheader: Symbol `HAVE_STPCPY' is not covered by /usr/local/sha\
    re/autoconf/acconfig.h
    /usr/local/bin/autoheader: Symbol `PACKAGE' is not covered by /usr/local/share/a\
    utoconf/acconfig.h
    /usr/local/bin/autoheader: Symbol `VERSION' is not covered by /usr/local/share/a\
    utoconf/acconfig.h
    shimaki:~/devel/automake/hello $ 
    

    、「、熙罍「・ィ・鬘シ、ヌ、ケ。」

    autoheader 、ャ・ィ・鬘シ、ナヌ、ュ、タ、キ、゙、キ、ソ。」
    、ウ、、マ。「gettext 、ヒ、隍テ、ニトオチ、オ、、、、、ッ、ト、ォ、ホ・キ・・ワ・、ャ
    フ、ナミマソ、ホ、ソ、 autoheader 、ャコョヘ、キ、ニ、、、、ホ、ヌ、ケ。」

    イ譯ケ、マ。「、ウ、、 autoheader 、リカオ、ィ、ニ、「、イ、ノャヘラ、ャ、「、熙゙、ケ。」
    PACKAGE, VERSION 、マイ譯ケ、ャトオチ、キ、ソ・キ・・ワ・、ヌ、ケ。」
    configure.in 、クォ、ニハャ、熙゙、ケ、ォ?

    、オ、ニ。「 acconfig.h 、コタョ、キ、゙、ケ。」

    XEmacs
     
    #undef ENABLE_NLS
    #undef HAVE_CATGETS
    #undef HAVE_GETTEXT
    #undef HAVE_LC_MESSAGES
    #undef HAVE_STPCPY
    
    #undef PACKAGE
    #undef VERSION
    
mark2 configure OK! Go to menu
  1. オ、、、ネ、トセ、キ、ニ autogen.sh 、。」
    kterm
    shimaki:~/devel/automake/hello $ ls
    ABOUT-NLS@    Makefile.am   acconfig.h    configure.in  po/
    AUTHORS       NEWS          aclocal.m4    hello.c
    ChangeLog     README        autogen.sh*   intl/
    shimaki:~/devel/automake/hello $ ./autogen.sh 
    I am going to run ./configure with no arguments - if you wish 
    to pass any to it, please specify them on the ./autogen.sh command line.
    processing...
    cleaning .deps directories ...
    checking files ...
       NEWS...OK
       README...OK
       AUTHORS...OK
       ChangeLog...OK
    checking po files ...
       po/ja.po...OK
    automake: configure.in: installing `./install-sh'
    automake: configure.in: installing `./mkinstalldirs'
    automake: configure.in: installing `./missing'
    configure.in: 13: required file `./ltconfig' not found
    automake: Makefile.am: installing `./INSTALL'
    automake: Makefile.am: installing `./COPYING'
    creating cache ./config.cache
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking whether make sets ${MAKE}... yes
    checking for working aclocal... found
    checking for working autoconf... found
    checking for working automake... found
    checking for working autoheader... found
    checking for working makeinfo... found
    checking host system type... i686-pc-linux-gnu
    checking for ranlib... ranlib
    checking for gcc... gcc
    checking whether the C compiler (gcc  ) works... yes
    checking whether the C compiler (gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether gcc accepts -g... yes
    checking for ld used by GCC... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking for object suffix... o
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    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 ... no
    checking if gcc static flag -static works... -static
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the linker (/usr/bin/ld) supports shared libraries... yes
    checking command to parse /usr/bin/nm -B output... ok
    checking how to hardcode library paths into programs... immediate
    checking for /usr/bin/ld option to reload object files... -r
    checking dynamic linker characteristics... Linux ld.so
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for objdir... .libs
    creating libtool
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc -g -O2 ) works... yes
    checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether make sets ${MAKE}... (cached) yes
    checking how to run the C preprocessor... gcc -E
    checking for POSIXized ISC... no
    checking for ANSI C header files... yes
    checking for working const... yes
    checking for inline... inline
    checking for off_t... yes
    checking for size_t... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for unistd.h... yes
    checking for getpagesize... yes
    checking for working mmap... yes
    checking for argz.h... yes
    checking for limits.h... yes
    checking for locale.h... yes
    checking for nl_types.h... yes
    checking for malloc.h... yes
    checking for string.h... yes
    checking for unistd.h... (cached) yes
    checking for sys/param.h... yes
    checking for getcwd... yes
    checking for munmap... yes
    checking for putenv... yes
    checking for setenv... yes
    checking for setlocale... yes
    checking for strchr... yes
    checking for strcasecmp... yes
    checking for strdup... yes
    checking for __argz_count... yes
    checking for __argz_stringify... yes
    checking for __argz_next... yes
    checking for stpcpy... yes
    checking for LC_MESSAGES... yes
    checking whether NLS is requested... yes
    checking whether included gettext is requested... no
    checking for libintl.h... yes
    checking for gettext in libc... yes
    checking for msgfmt... /usr/bin/msgfmt
    checking for dcgettext... yes
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for xgettext... /usr/bin/xgettext
    checking for catalogs to be installed...  ja
    checking for gettext... yes
    checking for inline... (cached) inline
    updating cache ./config.cache
    creating ./config.status
    creating Makefile
    creating intl/Makefile
    creating po/Makefile.in
    creating config.h
    
    Now type 'make' to compile hello.
    
    'po/POTFILES.in' is probably generated by autogen.sh.
    If it is correct, You must check 'po/POTFILES.in'.
    shimaki:~/devel/automake/hello $ 
    

    、ネ、熙「、ィ、コ configure タョク、ヌ、ケ。」
  2. シツ、マイ譯ケ、ホ autogen.sh 、マエヒワナェ、ヒ gettext 、ヒツミア、キ、ニ、、、゙、ケ。」
    、隍テ、ニ。「トフセ、ハ、鬢ト、゙、ナ、ッ、、、ッ、ト、ォハノ、、、、ネ、箒ハテア、ヒアロ、ィ、ニ、キ、゙、、、゙、ケ。」
    、ス、、ャキ、ハハ、マ autogen.sh 、ニノ、、ヌ、ッ、タ、オ、、。」キ隍キ、ニニ、キ、ッ、マ、「、熙゙、サ、。」
    ナ、ィ、マフワ、ホチー、ヒ、「、熙゙、ケ。」
mark2 、、、隍、、靈ワウハナェ、ヒ・ス。シ・ケハムケケ Go to menu
  1. 、オ、ニ。「シ。、マ・ス。シ・ケ・ユ・。・、・、ス、ュエケ、ィ、ニ、、、ュ、゙、ケ。」
    ハムケケ、ケ、チー、ホ・ス。シ・ケ、マ、ウ、チ、鬢ヌ、ケ。」

    XEmacs
     
    #ifdef HAVE_CONFIG_H
    #  include "config.h"
    #endif  
    
    #include <stdio.h>
    
    void
    main (int argc, char *argv[])
    {
      printf ("Hello, world!\n");
    
    }
    

    ハムケケ、キ、ソク螟ホ・ス。シ・ケ、マ、ウ、チ、鬢ヌ、ケ。」

    XEmacs
    #ifdef HAVE_CONFIG_H
    #  include "config.h"
    #endif  
    
    #include <stdio.h>
    #include "intl.h"
    
    void
    main (int argc, char *argv[])
    {
      setlocale (LC_ALL, "");
      bindtextdomain (PACKAGE, LOCALEDIR);
      textdomain (PACKAGE);
    
      printf (_("Hello, world!\n"));
    }
    

  2. ソキ、キ、、・ユ・。・、・ intl.h 、・、・・ッ・。シ・ノ、キ、ニ、゙、ケ。」
    、ウ、、マ。「ハリヘ、ハ・゙・ッ・、ホトオチ、ケヤ、テ、ニ、、、゙、ケ。」
  3. main エリソ、ヒニ讀ホ3ケヤ、ャイテ、、テ、ニ、゙、ケ、ヘ。」
    gettext ツミア、リ、ホ・゚・ス、ス、ホ1、ヌ、ケ。」
    、ウ、ホ3ケヤ、マ。「ノャ、コイテ、ィ、ノャヘラ、ャ、「、熙゙、ケ。」
  4. "Hello, world\n" 、ホハクサホ、ャ _( )、ヌーマ、゙、、ニ、゙、ケ、ヘ。」
    gettext ツミア、リ、ホ・゚・ス、ス、ホ2、ヌ、ケ。」
    ヒンフ、キ、ソ、、ハクサホ、マ。「チエ、ニ_( )、ヌーマ、猖ャヘラ、ャ、「、熙゙、ケ。」
    _( )、マ。「・゙・ッ・、ヌ intl.h ニ筅ヒトオチ、オ、、ニ、、、゙、ケ。」

mark2 po ・ユ・。・、・、ホコタョ Go to menu
  1. make 、キ、ニ、゚、ニイシ、オ、、。」フオサ、ヒトフ、熙゙、キ、ソ、ォ?
    ・ィ・鬘シ、ャスミ、ソハ、マ、筅ヲーナルウホヌァ、キ、ニ、゚、ニ、ッ、タ、オ、、。」
    スミホマ、マトケ、ケ、ョ、、ホ、ヌ・ォ・テ・ネ、キ、゙、ケ。」
  2. 、オ、ニシ。、マ。「po/ ・ヌ・」・・ッ・ネ・熙ヌ、ケ。」
    kterm
    shimaki:~/devel/automake/hello/po $ ls
    Makefile             POTFILES.in          ja.po
    Makefile.in          POTFILES.in.example  stamp-cat-id
    Makefile.in.in@      cat-id-tbl.c
    POTFILES             hello.pot
    shimaki:~/devel/automake/hello/po $ 
    

    、ウ、ウ、ヒ。「 POTFILES.in 、ネ、、、ヲ・ユ・。・、・、ャクォ、ィ、、ネサラ、、、゙、ケ。」
    、ウ、ウ、ヒ、マ。「 _( )・゙・ッ・、ヌヒンフ、キ、ソ、、ハクサホ、ャエ゙、゙、、・ス。シ・ケ・ユ・。・、・、 チエ、ニホオ、キ、゙、ケ。」
    シツ、マ、ウ、ホ・ユ・。・、・。「イ譯ケ、ホ autogen.sh 、ャシォニーナェ、ヒコタョ、キ、ソ、筅ホ、ハ、ホ、ヌ、ケ。」
    、ャ。「、「、ハ、ソ、マ、ウ、、ャタオ、キ、、、ォノャ、コウホヌァ、キ、ニ、ッ、タ、オ、、。」
    ウホヌァ、ャスェ、テ、ソ、鬘「POTFILES.in.example、コス 、キ、ニ、ッ、タ、オ、、。」、ウ、、箴ォニータクタョ、オ、、ソ・ユ・。・、・、ヌ、ケ。」
  3. 、ス、ホシ。、マ。「ja.po 、ハヤスク、キ、゙、ケ。」
    ja.po 、ヒ、マ。「ハクサホ、ホヒンフ、ス、ュケ、、ヌ、、、ュ、゙、ケ。」
    hello.pot 、ネ、、、ヲ・ユ・。・、・、ャクォ、ィ、゙、ケ、ォ?

    XEmacs
    msgid ""
    msgstr ""
    "Date: 1999-05-01 22:51:40+0900\n"
    "From: Shimaki Matsubara,,, <shimaki@larse>\n"
    "Content-Type: text/plain; charset=\n"
    "Xgettext-Options: --default-domain=hello --directory=.. --add-comments --keyword=_ --keyword=N_ --files-from=./POTFILES.in\n"
    "Files: ./hello.c\n"
    
    #: hello.c:16
    msgid "Hello, world!\n"
    msgstr ""
    

    、ウ、ホ・ユ・。・、・、ハヤスク、キ、ニ。「ja.po 、コタョ、ケ、、ホ、ヌ、ケ。」
    ・ン・、・・ネ、マ。「
    • charset 、ホサリト
    • ヒンフ
    、ヌ、ケ。」
  4. charset 、ヒ、マ。「euc-jp、サリト熙キ、゙、ケ。」
    ・ユ・。・、・、ホハヤスク、ヒ、筍「euc-jp 、サネヘム、キ、ニ、ッ、タ、オ、、。」
    sjis 、 jis ・ユ・。・、・、ヌ、マ。「ハクサイス、ア、キ、ニ、キ、゙、、、゙、ケ。」

  5. コ」イ、マヒンフ、ケ、ケヤ、ャ1ケヤ、タ、ア、ヌ、ケ、ホ、ヌ。「エハテア、ヌ、ケ、ヘ。」
    、ヌ、ュ、「、ャ、テ、ソ ja.po 、マ、ウ、、ハエカ、ク、ヌ、ケ。」

    XEmacs
    msgid ""
    msgstr ""
    "Date: 1999-05-01 22:51:40+0900\n"
    "From: Shimaki Matsubara,,, <shimaki@larse>\n"
    "Content-Type: text/plain; charset=euc-jp\n"
    "Xgettext-Options: --default-domain=hello --directory=.. --add-comments --keyword=_ --keyword=N_ --files-from=./POTFILES.in\n"
    "Files: ./hello.c\n"
    
    #: hello.c:16
    msgid "Hello, world!\n"
    msgstr "、ウ、、ヒ、チ、マ。「タ、ウヲ!\n"
    

mark2 エータョ Go to menu
  1. チエ、ニ、ホス猜、マター、、、゙、キ、ソ。」、、、隍、、隍ヌ、ケ。」

    kterm
    shimaki:~/devel/automake/hello $ make
    make all-recursive
    make[1]: Entering directory `/home/shimaki/devel/automake/hello'
    Making all in po
    make[2]: Entering directory `/home/shimaki/devel/automake/hello/po'
    file=./`echo ja | sed 's,.*/,,'`.gmo \
      && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file ja.po
    make[2]: Leaving directory `/home/shimaki/devel/automake/hello/po'
    Making all in intl
    make[2]: Entering directory `/home/shimaki/devel/automake/hello/intl'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/shimaki/devel/automake/hello/intl'
    make[1]: Leaving directory `/home/shimaki/devel/automake/hello'
    shimaki:~/devel/automake/hello $ su
    Password:********
    source ~/.bashrc
    root:/home/shimaki/devel/automake/hello # make install
    Making install in po
    make[1]: Entering directory `/home/shimaki/devel/automake/hello/po'
    if test -r ".././mkinstalldirs"; then \
      .././mkinstalldirs /usr/local/share; \
    else \
       /bin/sh ../mkinstalldirs /usr/local/share; \
    fi
    installing ja.gmo as /usr/local/share/locale/ja/LC_MESSAGES/hello.mo
    if test "hello" = "gettext"; then \
      if test -r ".././mkinstalldirs"; then \
        .././mkinstalldirs /usr/local/share/gettext/po; \
      else \
        /bin/sh ../mkinstalldirs /usr/local/share/gettext/po; \
      fi; \
      /usr/bin/install -c -m 644 ./Makefile.in.in \
                     /usr/local/share/gettext/po/Makefile.in.in; \
    else \
      : ; \
    fi
    make[1]: Leaving directory `/home/shimaki/devel/automake/hello/po'
    Making install in intl
    make[1]: Entering directory `/home/shimaki/devel/automake/hello/intl'
    if test "hello" = "gettext" \
       && test '' = 'intl-compat.o'; then \
      if test -r ./mkinstalldirs; then \
        ./mkinstalldirs /usr/local/lib /usr/local/include; \
      else \
        ../mkinstalldirs /usr/local/lib /usr/local/include; \
      fi; \
      /usr/bin/install -c -m 644 intlh.inst /usr/local/include/libintl.h; \
      /usr/bin/install -c -m 644 libintl.a /usr/local/lib/libintl.a; \
    else \
      : ; \
     fi
    if test "hello" = "gettext"; then \
      if test -r ./mkinstalldirs; then \
        ./mkinstalldirs /usr/local/share/gettext/intl; \
      else \
         ../mkinstalldirs /usr/local/share/gettext/intl; \
      fi; \
      /usr/bin/install -c -m 644 VERSION /usr/local/share/gettext/intl/VERSION; \
      dists="ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in xopen-msg.sed gettext\
    .h gettextP.h hash-string.h libgettext.h loadinfo.h bindtextdom.c dcgettext.c dg\
    ettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflis\
    t.c explodename.c intl-compat.c cat-compat.c"; \
      for file in $dists; do \
        /usr/bin/install -c -m 644 ./$file /usr/local/share/gettext/intl/$file; \
      done; \
    else \
      : ; \
    fi
    make[1]: Leaving directory `/home/shimaki/devel/automake/hello/intl'
    /bin/sh ./mkinstalldirs /usr/local/bin
    /bin/sh ./libtool  --mode=install /usr/bin/install -c hello /usr/local/bin/hell\
    o
    /usr/bin/install -c hello /usr/local/bin/hello
    root:/home/shimaki/devel/automake/hello # exit
     exit
    shimaki:~/devel/automake/hello $ hello
    、ウ、、ヒ、チ、マ。「タ、ウヲ!
    shimaki:~/devel/automake/hello $ 
    

    、ノ、ヲ、ヌ、ケ、ォ。」ニヒワク、ャノスシィ、オ、、゙、キ、ソ、ォ。」
mark2 src/ 、エ゙、狒キソ Go to menu
  1. 、オ、ニ。「ソキソ、ヌ、ケ。」

    kterm
    shimaki:~/tmp/gettext_hello $ ls
    Makefile.am  acconfig.h  autogen.sh*  configure.in  src/
    shimaki:~/tmp/gettext_hello $ ./autogen.sh 
    **キルケ**: ./configure 、ーソフオ、キ、ヌシツケヤ、キ、゙、ケ。」
              、筅キーソ、サリト熙キ、ソ、、、ホ、ヌ、「、、ミ。「
              './autogen.sh' 、ホーソ、ヒサリト熙キ、ニ、ッ、タ、オ、、。」
    ス靉テ...
    コステ... .deps/ ・ヌ・」・・ッ・ネ・ ...
    ウホヌァテ... ・ノ・ュ・螂皈・ネ・ユ・。・、・ ... ス靉、ネ、ミ、キ、゙、ケ
    コタョテ... aclocal.m4 ...
    シツケヤテ... gettextize...
    You should update your own `aclocal.m4' by adding the necessary
    macro packages gettext.m4, lcmessage.m4 and progtest.m4 from
    the directory `/aclocal'
    ウホヌァテ... po ・ユ・。・、・ ...
    コタョテ... po/ja.po ...
    **キルケ**: po/POTFILES.in 、シォニーナェ、ヒコタョ、キ、゙、キ、ソ。」
    
       gtkspace.m4  ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
       guile.m4  ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
       qthreads.m4  ... /usr/local/share/aclocal 、ォ、鮠隍ケ、゚、゙、キ、ソ
    シツケヤテ... libtoolize...
    You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
    シツケヤテ... aclocal   -I m4...
    シツケヤテ... autoconf...
    シツケヤテ... autoheader...
    シツケヤテ... automake --add-missing --foreign...
    automake: configure.in: installing `./install-sh'
    automake: configure.in: installing `./mkinstalldirs'
    automake: configure.in: installing `./missing'
    シツケヤテ... configure  ...
    creating cache ./config.cache
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking whether make sets ${MAKE}... yes
    checking for working aclocal... found
    checking for working autoconf... found
    checking for working automake... found
    checking for working autoheader... found
    checking for working makeinfo... found
    checking host system type... i686-pc-linux-gnu
    checking build system type... i686-pc-linux-gnu
    checking for ranlib... ranlib
    checking for gcc... gcc
    checking whether the C compiler (gcc  ) works... yes
    checking whether the C compiler (gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether gcc accepts -g... yes
    checking for ld used by GCC... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    updating cache ./config.cache
    loading cache ./config.cache within ltconfig
    checking for object suffix... o
    checking for executable suffix... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    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 if gcc static flag -static works... -static
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the linker (/usr/bin/ld) supports shared libraries... yes
    checking command to parse /usr/bin/nm -B output... ok
    checking how to hardcode library paths into programs... immediate
    checking for /usr/bin/ld option to reload object files... -r
    checking dynamic linker characteristics... Linux ld.so
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for objdir... .libs
    creating libtool
    updating cache ./config.cache
    loading cache ./config.cache
    checking for gcc... (cached) gcc
    checking whether the C compiler (gcc -g -O2 ) works... yes
    checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
    checking whether we are using GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether make sets ${MAKE}... (cached) yes
    checking how to run the C preprocessor... gcc -E
    checking for POSIXized ISC... no
    checking for ANSI C header files... yes
    checking for working const... yes
    checking for inline... inline
    checking for off_t... yes
    checking for size_t... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for unistd.h... yes
    checking for getpagesize... yes
    checking for working mmap... yes
    checking for argz.h... yes
    checking for limits.h... yes
    checking for locale.h... yes
    checking for nl_types.h... yes
    checking for malloc.h... yes
    checking for string.h... yes
    checking for unistd.h... (cached) yes
    checking for sys/param.h... yes
    checking for getcwd... yes
    checking for munmap... yes
    checking for putenv... yes
    checking for setenv... yes
    checking for setlocale... yes
    checking for strchr... yes
    checking for strcasecmp... yes
    checking for strdup... yes
    checking for __argz_count... yes
    checking for __argz_stringify... yes
    checking for __argz_next... yes
    checking for stpcpy... yes
    checking for LC_MESSAGES... yes
    checking whether NLS is requested... yes
    checking whether included gettext is requested... no
    checking for libintl.h... yes
    checking for gettext in libc... yes
    checking for msgfmt... /usr/bin/msgfmt
    checking for dcgettext... yes
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for xgettext... /usr/bin/xgettext
    checking for catalogs to be installed...  ja
    checking for gettext... yes
    checking for inline... (cached) inline
    updating cache ./config.cache
    creating ./config.status
    creating Makefile
    creating src/Makefile
    creating intl/Makefile
    creating po/Makefile.in
    creating config.h
    
    、オ、「。「'hello' 、ウレ、キ、爨ソ、皃ヒ 'make' 、シツケヤ、キ、隍ヲ。」
    
    **キルケ**: 'po/POTFILES.in' 、マ、ェ、ス、鬢ッ './autogen.sh' 、ヒ、隍テ、ニ
              シォニーナェ、ヒコタョ、オ、、゙、キ、ソ。」
              ノャ、コ 'po/POTFILES.in' 、ウホヌァ、キ、ニ、ッ、タ、オ、、。」
    shimaki:~/tmp/gettext_hello $ make
    make  all-recursive
    make[1]: Entering directory `/home/shimaki/tmp/gettext_hello'
    Making all in po
    make[2]: Entering directory `/home/shimaki/tmp/gettext_hello/po'
    PATH=../src:$PATH /usr/bin/xgettext --default-domain=hello --directory=.. \
      --add-comments --keyword=_ --keyword=N_ \
      --files-from=./POTFILES.in \
    && test ! -f hello.po \
       || ( rm -f ./hello.pot \
           && mv hello.po ./hello.pot )
    rm -f cat-id-tbl.tmp
    sed -f ../intl/po2tbl.sed ./hello.pot \
    | sed -e "s/@PACKAGE NAME@/hello/" > cat-id-tbl.tmp
    if cmp -s cat-id-tbl.tmp ./cat-id-tbl.c; then \
      rm cat-id-tbl.tmp; \
    else \
      echo cat-id-tbl.c changed; \
      rm -f ./cat-id-tbl.c; \
      mv cat-id-tbl.tmp ./cat-id-tbl.c; \
    fi
    cat-id-tbl.c changed
    cd . && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
    file=./`echo ja | sed 's,.*/,,'`.gmo \
      && rm -f $file && PATH=../src:$PATH /usr/bin/msgfmt -o $file ja.po
    make[2]: Leaving directory `/home/shimaki/tmp/gettext_hello/po'
    Making all in intl
    make[2]: Entering directory `/home/shimaki/tmp/gettext_hello/intl'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/shimaki/tmp/gettext_hello/intl'
    Making all in src
    make[2]: Entering directory `/home/shimaki/tmp/gettext_hello/src'
    gcc -DHAVE_CONFIG_H -I. -I. -I..   -DLOCALEDIR=\""/usr/local/share/locale"\"  -g\
     -O2 -Wall -c hello.c
    /bin/sh ../libtool --mode=link gcc  -g -O2 -Wall  -o hello  hello.o  
    mkdir .libs
    gcc -g -O2 -Wall -o hello hello.o
    make[2]: Leaving directory `/home/shimaki/tmp/gettext_hello/src'
    make[2]: Entering directory `/home/shimaki/tmp/gettext_hello'
    make[2]: Leaving directory `/home/shimaki/tmp/gettext_hello'
    make[1]: Leaving directory `/home/shimaki/tmp/gettext_hello'
    shimaki:~/tmp/gettext_hello $ 
    

    、゙、テ、ソ、ッフ萃熙ハ、キ!

[PR]≪看護師≫の専門求人サイト♪:週3日・長期で探す『医療介護ワークス』