Changeset 10917 for trunk/indexers/mg


Ignore:
Timestamp:
2005-11-17T15:30:33+13:00 (18 years ago)
Author:
kjdon
Message:

removed java_home/include/linux from include path in makefile, made the configure script include this in JNIINC for linux, and use JAVA_HOME/include/solaris for solaris machines

Location:
trunk/indexers/mg
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mg/configure

    r10887 r10917  
    60576057# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
    60586058# a non-standard Path
    6059 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
    6060 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6059# is there a better way to do this??
     6060echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
     6061echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
     6062# set defaults
     6063JNIINC=""
     6064JNISUFFIX="so"
     6065JNIFLAGS="-shared"
     6066
    60616067if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    6062   echo "$as_me:$LINENO: result: yes" >&5
    6063 echo "${ECHO_T}yes" >&6
     6068  echo "$as_me:$LINENO: result: Darwin" >&5
     6069echo "${ECHO_T}Darwin" >&6
    60646070  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
    60656071  JNISUFFIX="jnilib"
    60666072  JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
    6067 else
    6068   echo "$as_me:$LINENO: result: no" >&5
    6069 echo "${ECHO_T}no" >&6
    6070   JNIINC=""
    6071   JNISUFFIX="so"
    6072   JNIFLAGS="-shared"
    6073 fi
     6073fi
     6074if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
     6075  echo "$as_me:$LINENO: result: Solaris" >&5
     6076echo "${ECHO_T}Solaris" >&6
     6077  JNIINC="-I\$(JAVA_HOME)/include/solaris "
     6078fi
     6079if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
     6080  echo "$as_me:$LINENO: result: Linux" >&5
     6081echo "${ECHO_T}Linux" >&6
     6082  JNIINC="-I\$(JAVA_HOME)/include/linux "
     6083fi
     6084
    60746085
    60756086
  • trunk/indexers/mg/configure.in

    r10887 r10917  
    8686# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
    8787# a non-standard Path
    88 AC_MSG_CHECKING(for Apple MacOS X/Darwin)
     88# is there a better way to do this??
     89AC_MSG_CHECKING(for OS to set JNI options)
     90# set defaults
     91JNIINC=""
     92JNISUFFIX="so"
     93JNIFLAGS="-shared"
     94
    8995if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    90   AC_MSG_RESULT(yes)
     96  AC_MSG_RESULT(Darwin)
    9197  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
    9298  JNISUFFIX="jnilib"
    9399  JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
    94 else
    95   AC_MSG_RESULT(no)
    96   JNIINC=""
    97   JNISUFFIX="so"
    98   JNIFLAGS="-shared"
    99100fi
     101if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
     102  AC_MSG_RESULT(Solaris)
     103  JNIINC="-I\$(JAVA_HOME)/include/solaris "
     104fi
     105if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
     106  AC_MSG_RESULT(Linux)
     107  JNIINC="-I\$(JAVA_HOME)/include/linux "
     108fi
     109
    100110AC_SUBST(JNIINC)
    101111AC_SUBST(JNISUFFIX)
  • trunk/indexers/mg/jni/Makefile.in

    r10191 r10917  
    4343
    4444# can we get rid of JAVA_HOME from here??
    45 INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(JNIINC)
     45INCLUDES = -I.. -I../lib -I../src/text -I$(JAVA_HOME)/include $(JNIINC)
    4646
    4747all: compile link
Note: See TracChangeset for help on using the changeset viewer.