Changeset 10917 for trunk/mgpp/configure


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mgpp/configure

    r10887 r10917  
    62406240
    62416241
    6242 
    62436242# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
    62446243# a non-standard Path
    6245 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
    6246 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6244# is there a better way to do this??
     6245echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
     6246echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
     6247# set defaults
     6248JNIINC=""
     6249JNISUFFIX="so"
     6250JNIFLAGS="-shared"
     6251
    62476252if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    6248   echo "$as_me:$LINENO: result: yes" >&5
    6249 echo "${ECHO_T}yes" >&6
     6253  echo "$as_me:$LINENO: result: Darwin" >&5
     6254echo "${ECHO_T}Darwin" >&6
    62506255  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
    62516256  JNISUFFIX="jnilib"
    6252   JNIFLAGS="-dynamiclib -fno-common -framework JavaVM"
    6253 else
    6254   echo "$as_me:$LINENO: result: no" >&5
    6255 echo "${ECHO_T}no" >&6
    6256   JNIINC=""
    6257   JNISUFFIX="so"
    6258   JNIFLAGS="-shared"
    6259 fi
     6257  JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
     6258fi
     6259if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
     6260  echo "$as_me:$LINENO: result: Solaris" >&5
     6261echo "${ECHO_T}Solaris" >&6
     6262  JNIINC="-I\$(JAVA_HOME)/include/solaris "
     6263fi
     6264if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
     6265  echo "$as_me:$LINENO: result: Linux" >&5
     6266echo "${ECHO_T}Linux" >&6
     6267  JNIINC="-I\$(JAVA_HOME)/include/linux "
     6268fi
     6269
    62606270
    62616271
Note: See TracChangeset for help on using the changeset viewer.