Ignore:
Timestamp:
2023-03-02T20:25:57+13:00 (14 months ago)
Author:
anupama
Message:

Make configure script for mg/mgpp choose between which Java framework to set as part of the JNILDFlAGS variable on a Mac, depending on version of xcode compile tools installed. Tested in separate bash script. Committing now in order to test with release-kit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mgpp/configure

    r37384 r37389  
    61126112  JNIINC="-I\$(JAVA_HOME)/include/darwin -I\$(JAVA_HOME)/include "
    61136113  JNISUFFIX="jnilib"
    6114   JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaNativeFoundation"
     6114  knownMinXcodeVersionForNewJavaFramework=2395
     6115  xcodeVersion=`(xcode-select --version) 2> /dev/null`
     6116  if test "$?" -eq 127 || test "${xcodeVersion//[!0-9]/}" -lt $knownMinXcodeVersionForNewJavaFramework; then
     6117    JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
     6118  else
     6119    JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaNativeFoundation"
     6120  fi
    61156121fi
    61166122if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
Note: See TracChangeset for help on using the changeset viewer.