Changeset 5016


Ignore:
Timestamp:
2003-07-23T16:41:47+12:00 (21 years ago)
Author:
jrm21
Message:

minor fixes for portability

1) look for java on the path instead of hard-coded path

2) #define u_char if it isn't already defined.

Location:
trunk/gsdl/perllib/Kea-1.1.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/Kea-1.1.4/Iterated-Lovins-stemmer/stem.c

    r4284 r5016  
    2222 **************************************************************************/
    2323
    24 static char *RCSID = "$Id$";
    25 
    2624#include <stdlib.h>
    2725//#include "sysfuncs.h"
     26
     27// need this eg for darwin
     28#ifndef u_char
     29# define u_char unsigned char
     30#endif
    2831
    2932
  • trunk/gsdl/perllib/Kea-1.1.4/Kea

    r4281 r5016  
    7878$java_extra_args = "-ss100000000 -oss100000000 -mx200000000";
    7979
     80# see if java executable is on path
     81my $java_exec="";
     82if (system("which java >/dev/null 2>/dev/null")==0) {
     83    $java_exec=`which java`;
     84} else {
     85    $java_exec="$java_home/bin/java";
     86}
     87
    8088# The actual java command is based on these other variables:
    81 $java_command = "$java_home/bin/java -classpath \"$java_classpath\"";
     89$java_command = "$java_exec -classpath \"$java_classpath\"";
    8290$java_command .= " -Djava.compiler=$java_JIT_compiler" if ($java_JIT_compiler);
    8391$java_command .= " $java_extra_args" if ($java_extra_args);
Note: See TracChangeset for help on using the changeset viewer.