Changeset 8908 for lang/perl/Alien-MeCab

Show
Ignore:
Timestamp:
04/05/08 15:51:02 (8 months ago)
Author:
daisuke
Message:

lang/perl/Alien-MeCab?; attempt to detect mecab before proceeding

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Alien-MeCab/trunk/Makefile.PL

    r8875 r8908  
    2222my $MECAB_SOURCE     = File::Spec->catfile("src", $MECAB_BASENAME); 
    2323my $MECAB_EXE        = File::Spec->catfile("src", "mecab-$MECAB_VERSION.exe") if $^O eq 'MSWin32'; 
     24 
     25eval { 
     26    Devel::CheckLib::assert_lib(lib => "iconv", libpath => $ENV{LIBDIR}); 
     27}; 
     28if ($@) { 
     29    print <<EOM; 
     30 
     31*** Whoa! libiconv was not detected! *** 
     32 
     33Can't proceed without libiconv. 
     34You will have to install libiconv by yourself. 
     35 
     36EOM 
     37 
     38    # XXX - in the future, after we create Alien::Iconv, I want to say 
     39    # the following instead: 
     40# You can either 
     41#  (1) install Alien::Iconv (which will build iconv from source), or 
     42#  (2) install libiconv by yourself by other means. 
     43#before proceeding. 
     44    exit 0; 
     45} 
    2446 
    2547eval {