Ignore:
Timestamp:
2005-06-29T12:33:27+12:00 (19 years ago)
Author:
kjdon
Message:

changes to jni stuff for Mac OS -configure now sets JNIINC, JNISUFFIX, JNIFLAGS for use in jni/Makefile.in - Mac OS has a different extension for the shared library, also uses different linker options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/packages/mg/configure.in

    r7882 r10191  
    7777if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    7878  AC_MSG_RESULT(yes)
    79   LIBOBJS="$LIBOBJS gmalloc.o"
     79  AC_LIBOBJ(gmalloc)
    8080  AC_DEFINE(HAVE_VALLOC)
    8181else
     
    8383  AC_CHECK_FUNCS(valloc)
    8484fi
     85
     86# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
     87# a non-standard Path
     88AC_MSG_CHECKING(for Apple MacOS X/Darwin)
     89if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
     90  AC_MSG_RESULT(yes)
     91  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
     92  JNISUFFIX="jnilib"
     93  JNIFLAGS="-dynamiclib -fno-common -single_module"
     94  LDFLAGS="-framework JavaVM"
     95else
     96  AC_MSG_RESULT(no)
     97  JNIINC=""
     98  JNISUFFIX="so"
     99  JNIFLAGS="-shared"
     100fi
     101AC_SUBST(JNIINC)
     102AC_SUBST(JNISUFFIX)
     103AC_SUBST(JNIFLAGS)
    85104
    86105fp_WITH_DMALLOC
     
    90109if test "$ac_cv_func_alloca" = 'no'; then
    91110dnl    support functions for alloca.c
    92   LIBOBJS="$LIBOBJS xmalloc.o error.o"
     111  AC_LIBOBJ(xmalloc)
     112  AC_LIBOBJ(error)
    93113fi
    94114
Note: See TracChangeset for help on using the changeset viewer.