more configure cleanups: isolate java in its own ghetto.
This commit is contained in:
parent
e9545be0d0
commit
c2dd03b144
69
configure
vendored
69
configure
vendored
@ -4948,8 +4948,7 @@ _ACEOF
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
EXTRA_LIBS_FOR_DLLS="-lws2_32 \$(abs_top_builddir)/yap.dll \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
EXTRA_LIBS_FOR_DLLS="-lws2_32 \$(abs_top_builddir)/yap.dll"
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="-lws2_32 \$(abs_top_builddir)/yap.dll \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
|
||||||
elif test "$target_os" = "cygwin"
|
elif test "$target_os" = "cygwin"
|
||||||
then
|
then
|
||||||
CC="${CC} -mno-cygwin"
|
CC="${CC} -mno-cygwin"
|
||||||
@ -4993,8 +4992,6 @@ _ACEOF
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
EXTRA_LIBS_FOR_DLLS="-lws2_32 \$(abs_top_builddir)/yap.dll"
|
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="-lws2_32 \$(abs_top_builddir)/yap.dll \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwsock32" >&5
|
||||||
$as_echo_n "checking for main in -lwsock32... " >&6; }
|
$as_echo_n "checking for main in -lwsock32... " >&6; }
|
||||||
@ -5036,8 +5033,8 @@ _ACEOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
EXTRA_LIBS_FOR_DLLS="\$(abs_top_builddir)/yap.dll"
|
EXTRA_LIBS_FOR_DLLS="\$(abs_top_builddir)/yap.dll"
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="\$(abs_top_builddir)/yap.dll \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
|
||||||
fi
|
fi
|
||||||
|
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_DLLS \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
|
||||||
$as_echo_n "checking for main in -lpsapi... " >&6; }
|
$as_echo_n "checking for main in -lpsapi... " >&6; }
|
||||||
if test "${ac_cv_lib_psapi_main+set}" = set; then :
|
if test "${ac_cv_lib_psapi_main+set}" = set; then :
|
||||||
@ -6100,16 +6097,35 @@ elif test -e "$srcdir"/packages/jpl/Makefile.in; then
|
|||||||
JAVA_HOME="$yap_cv_java"
|
JAVA_HOME="$yap_cv_java"
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
*cygwin*|*mingw*)
|
*cygwin*|*mingw*)
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_SWIDLLS \"$JAVA_HOME\"/lib/jvm.lib -lpthread"
|
JAVALIBPATH="\"$JAVA_HOME\"/lib/jvm.lib -lpthread"
|
||||||
|
JAVAINCPATH="-I\"$JAVA_HOME\"/include -I\"$JAVA_HOME\"/include/win32"
|
||||||
;;
|
;;
|
||||||
*darwin*)
|
*darwin*)
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_SWIDLLS -Wl,-framework,JavaVM"
|
LIBS="$LIBS -framework JavaVM"
|
||||||
;;
|
JAVALIBPATH="-L/System/Library/Frameworks/JavaVM.framework/Libraries -Wl,-framework,JavaVM"
|
||||||
*powerpc-linux*)
|
JAVAINCPATH="-I/System/Library/Frameworks/JavaVM.framework/Headers"
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_SWIDLLS -ljava -ljvm"
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_SWIDLLS -ljava -lverify -ljvm"
|
case "$target_os" in
|
||||||
|
*linux*)
|
||||||
|
JAVAINCPATH="-I\"$JAVA_HOME\"/include -I\"$JAVA_HOME\"/include/linux"
|
||||||
|
;;
|
||||||
|
*solaris*)
|
||||||
|
JAVAINCPATH="-I\"$JAVA_HOME\"/include -I\"$JAVA_HOME\"/include/solaris"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case "$target_cpu" in
|
||||||
|
i*86*)
|
||||||
|
JAVA_TARGET=i386
|
||||||
|
;;
|
||||||
|
x86*)
|
||||||
|
JAVA_TARGET=amd64
|
||||||
|
;;
|
||||||
|
sparc*)
|
||||||
|
JAVA_TARGET=sparc
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
JAVALIBPATH="-L$JAVA_HOME/jre/lib/$JAVA_TARGET -L$JAVA_HOME/jre/lib/$JAVA_TARGET/client -L$JAVA_HOME/jre/lib/$JAVA_TARGET/server -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET -ljava -lverify -ljvm "
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test "$yap_cv_java" = ""; then
|
if test "$yap_cv_java" = ""; then
|
||||||
@ -6625,17 +6641,7 @@ fi
|
|||||||
alpha*)
|
alpha*)
|
||||||
LDFLAGS="-dynamic $LDFLAGS"
|
LDFLAGS="-dynamic $LDFLAGS"
|
||||||
;;
|
;;
|
||||||
x86*)
|
|
||||||
JAVALIBPATH="\$(DESTDIR)\$(LIBDIR)/libYap.so \$(DESTDIR)\$(YAPLIBDIR)/plstream.so $LIBS -L$JAVA_HOME/jre/lib/amd64 -L$JAVA_HOME/jre/lib/amd64/client -L$JAVA_HOME/jre/lib/amd64/server"
|
|
||||||
JAVAINCPATH="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
|
||||||
if test "$CC" != "lcc"
|
|
||||||
then
|
|
||||||
LDFLAGS="-rdynamic $LDFLAGS"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
JAVALIBPATH="\$(DESTDIR)\$(LIBDIR)/libYap.so \$(DESTDIR)\$(YAPLIBDIR)/plstream.so $LIBS $LIBS -L$JAVA_HOME/jre/lib/i386 -L$JAVA_HOME/jre/lib/i386/client -L$JAVA_HOME/jre/lib/i386/server"
|
|
||||||
JAVAINCPATH="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
|
||||||
if test "$CC" != "lcc"
|
if test "$CC" != "lcc"
|
||||||
then
|
then
|
||||||
LDFLAGS="-rdynamic $LDFLAGS"
|
LDFLAGS="-rdynamic $LDFLAGS"
|
||||||
@ -6819,7 +6825,6 @@ fi
|
|||||||
LIBS="$LIBS -ldl"
|
LIBS="$LIBS -ldl"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
LIBS="$LIBS -framework JavaVM"
|
|
||||||
SHLIB_CFLAGS="-fno-common"
|
SHLIB_CFLAGS="-fno-common"
|
||||||
SHLIB_SUFFIX=".dylib"
|
SHLIB_SUFFIX=".dylib"
|
||||||
DO_SECOND_LD=""
|
DO_SECOND_LD=""
|
||||||
@ -6829,8 +6834,6 @@ fi
|
|||||||
SHLIB_CXX_LD="$CXX -bundle -flat_namespace -undefined suppress"
|
SHLIB_CXX_LD="$CXX -bundle -flat_namespace -undefined suppress"
|
||||||
INSTALL_DLLS=""
|
INSTALL_DLLS=""
|
||||||
CC="$CC -fstrict-aliasing -freorder-blocks -fsched-interblock -Wall -Wstrict-aliasing=2"
|
CC="$CC -fstrict-aliasing -freorder-blocks -fsched-interblock -Wall -Wstrict-aliasing=2"
|
||||||
JAVALIBPATH="-L/System/Library/Frameworks/JavaVM.framework/Libraries"
|
|
||||||
JAVAINCPATH="-I/System/Library/Frameworks/JavaVM.framework/Headers"
|
|
||||||
;;
|
;;
|
||||||
*netbsd*|*freebsd*)
|
*netbsd*|*freebsd*)
|
||||||
if echo __ELF__ | ${CC:-cc} -E - | grep -q __ELF__
|
if echo __ELF__ | ${CC:-cc} -E - | grep -q __ELF__
|
||||||
@ -6862,8 +6865,6 @@ fi
|
|||||||
*cyg*|*mingw*)
|
*cyg*|*mingw*)
|
||||||
# gcc on cygwin seems to have trouble with longjmp
|
# gcc on cygwin seems to have trouble with longjmp
|
||||||
# and -fomit-frame-point -DBP_FREE
|
# and -fomit-frame-point -DBP_FREE
|
||||||
JAVALIBPATH=""
|
|
||||||
JAVAINCPATH="-I\"$JAVA_HOME\"/include -I\"$JAVA_HOME\"/include/win32"
|
|
||||||
YAPLIB="yap.dll"
|
YAPLIB="yap.dll"
|
||||||
SHLIB_CFLAGS=""
|
SHLIB_CFLAGS=""
|
||||||
if test "$target_win64" = no
|
if test "$target_win64" = no
|
||||||
@ -6960,21 +6961,11 @@ then
|
|||||||
# CROSS_SIMULATOR="DYLD_LIBRARY_PATH=."
|
# CROSS_SIMULATOR="DYLD_LIBRARY_PATH=."
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
case "$target_cpu" in
|
LDFLAGS="$LDFLAGS -L \$(abs_top_builddir) -Wl,-R,\$(DESTDIR)\$(LIBDIR) -Wl,-R,\$(DESTDIR)\$(YAPLIBDIR)"
|
||||||
i*86*)
|
|
||||||
JAVA_TARGET=i386
|
|
||||||
;;
|
|
||||||
x86*)
|
|
||||||
JAVA_TARGET=amd64
|
|
||||||
;;
|
|
||||||
sparc*)
|
|
||||||
JAVA_TARGET=sparc
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
LDFLAGS="$LDFLAGS -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET -L \$(abs_top_builddir) -Wl,-R,\$(DESTDIR)\$(LIBDIR) -Wl,-R,\$(DESTDIR)\$(YAPLIBDIR)"
|
|
||||||
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
||||||
YAPLIB="$DYNYAPLIB"
|
YAPLIB="$DYNYAPLIB"
|
||||||
EXTRA_LIBS_FOR_DLLS="$EXTRA_LIBS_FOR_DLLS -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET -L \$(abs_top_builddir) -lYap -Wl,-R,\$(DESTDIR)\$(YAPLIBDIR) -Wl,-R,\$(DESTDIR)\$(LIBDIR)"
|
EXTRA_LIBS_FOR_DLLS="$EXTRA_LIBS_FOR_DLLS -L \$(abs_top_builddir) -lYap -Wl,-R,\$(DESTDIR)\$(YAPLIBDIR) -Wl,-R,\$(DESTDIR)\$(LIBDIR)"
|
||||||
|
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_DLLS -L \$(abs_top_builddir)/packages/PLStream/plstream.$SHLIB_SUFFIX"
|
||||||
PRE_INSTALL_ENV="LD_LIBRARY_PATH=\$(abs_top_builddir)"
|
PRE_INSTALL_ENV="LD_LIBRARY_PATH=\$(abs_top_builddir)"
|
||||||
INSTALL_ENV="LD_LIBRARY_PATH=\$(DESTDIR)\$(LIBDIR): YAPSHAREDIR=\$(DESTDIR)\$(SHAREDIR) YAPLIBDIR=\$(DESTDIR)\$(YAPLIBDIR)"
|
INSTALL_ENV="LD_LIBRARY_PATH=\$(DESTDIR)\$(LIBDIR): YAPSHAREDIR=\$(DESTDIR)\$(SHAREDIR) YAPLIBDIR=\$(DESTDIR)\$(YAPLIBDIR)"
|
||||||
;;
|
;;
|
||||||
|
72
configure.in
72
configure.in
@ -556,20 +556,17 @@ then
|
|||||||
if test "$target_win64" = yes
|
if test "$target_win64" = yes
|
||||||
then
|
then
|
||||||
AC_CHECK_LIB(ws2_32,main)
|
AC_CHECK_LIB(ws2_32,main)
|
||||||
EXTRA_LIBS_FOR_DLLS="-lws2_32 \$(abs_top_builddir)/yap.dll \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
EXTRA_LIBS_FOR_DLLS="-lws2_32 \$(abs_top_builddir)/yap.dll"
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="-lws2_32 \$(abs_top_builddir)/yap.dll \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
|
||||||
elif test "$target_os" = "cygwin"
|
elif test "$target_os" = "cygwin"
|
||||||
then
|
then
|
||||||
CC="${CC} -mno-cygwin"
|
CC="${CC} -mno-cygwin"
|
||||||
CXX="${CXX} -mno-cygwin"
|
CXX="${CXX} -mno-cygwin"
|
||||||
AC_CHECK_LIB(wsock32,main)
|
AC_CHECK_LIB(wsock32,main)
|
||||||
EXTRA_LIBS_FOR_DLLS="-lws2_32 \$(abs_top_builddir)/yap.dll"
|
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="-lws2_32 \$(abs_top_builddir)/yap.dll \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
|
||||||
else
|
else
|
||||||
AC_CHECK_LIB(wsock32,main)
|
AC_CHECK_LIB(wsock32,main)
|
||||||
EXTRA_LIBS_FOR_DLLS="\$(abs_top_builddir)/yap.dll"
|
EXTRA_LIBS_FOR_DLLS="\$(abs_top_builddir)/yap.dll"
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="\$(abs_top_builddir)/yap.dll \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
|
||||||
fi
|
fi
|
||||||
|
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_DLLS \$(abs_top_builddir)/packages/PLStream/plstream.dll"
|
||||||
AC_CHECK_LIB(psapi,main)
|
AC_CHECK_LIB(psapi,main)
|
||||||
yap_cv_readline=no
|
yap_cv_readline=no
|
||||||
if test "$prefix" = "NONE"
|
if test "$prefix" = "NONE"
|
||||||
@ -719,6 +716,9 @@ else
|
|||||||
ENABLE_CLPQR="@# "
|
ENABLE_CLPQR="@# "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl java is hard
|
||||||
|
dnl
|
||||||
if test "$yap_cv_java" = no; then
|
if test "$yap_cv_java" = no; then
|
||||||
ENABLE_JPL="@#"
|
ENABLE_JPL="@#"
|
||||||
elif test -e "$srcdir"/packages/jpl/Makefile.in; then
|
elif test -e "$srcdir"/packages/jpl/Makefile.in; then
|
||||||
@ -727,16 +727,35 @@ elif test -e "$srcdir"/packages/jpl/Makefile.in; then
|
|||||||
JAVA_HOME="$yap_cv_java"
|
JAVA_HOME="$yap_cv_java"
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
*cygwin*|*mingw*)
|
*cygwin*|*mingw*)
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_SWIDLLS \"$JAVA_HOME\"/lib/jvm.lib -lpthread"
|
JAVALIBPATH="\"$JAVA_HOME\"/lib/jvm.lib -lpthread"
|
||||||
|
JAVAINCPATH="-I\"$JAVA_HOME\"/include -I\"$JAVA_HOME\"/include/win32"
|
||||||
;;
|
;;
|
||||||
*darwin*)
|
*darwin*)
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_SWIDLLS -Wl,-framework,JavaVM"
|
LIBS="$LIBS -framework JavaVM"
|
||||||
;;
|
JAVALIBPATH="-L/System/Library/Frameworks/JavaVM.framework/Libraries -Wl,-framework,JavaVM"
|
||||||
*powerpc-linux*)
|
JAVAINCPATH="-I/System/Library/Frameworks/JavaVM.framework/Headers"
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_SWIDLLS -ljava -ljvm"
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_SWIDLLS -ljava -lverify -ljvm"
|
case "$target_os" in
|
||||||
|
*linux*)
|
||||||
|
JAVAINCPATH="-I\"$JAVA_HOME\"/include -I\"$JAVA_HOME\"/include/linux"
|
||||||
|
;;
|
||||||
|
*solaris*)
|
||||||
|
JAVAINCPATH="-I\"$JAVA_HOME\"/include -I\"$JAVA_HOME\"/include/solaris"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
case "$target_cpu" in
|
||||||
|
i*86*)
|
||||||
|
JAVA_TARGET=i386
|
||||||
|
;;
|
||||||
|
x86*)
|
||||||
|
JAVA_TARGET=amd64
|
||||||
|
;;
|
||||||
|
sparc*)
|
||||||
|
JAVA_TARGET=sparc
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
JAVALIBPATH="-L$JAVA_HOME/jre/lib/$JAVA_TARGET -L$JAVA_HOME/jre/lib/$JAVA_TARGET/client -L$JAVA_HOME/jre/lib/$JAVA_TARGET/server -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET -ljava -lverify -ljvm "
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if test "$yap_cv_java" = ""; then
|
if test "$yap_cv_java" = ""; then
|
||||||
@ -845,17 +864,7 @@ case "$target_os" in
|
|||||||
alpha*)
|
alpha*)
|
||||||
LDFLAGS="-dynamic $LDFLAGS"
|
LDFLAGS="-dynamic $LDFLAGS"
|
||||||
;;
|
;;
|
||||||
x86*)
|
|
||||||
JAVALIBPATH="\$(DESTDIR)\$(LIBDIR)/libYap.so \$(DESTDIR)\$(YAPLIBDIR)/plstream.so $LIBS -L$JAVA_HOME/jre/lib/amd64 -L$JAVA_HOME/jre/lib/amd64/client -L$JAVA_HOME/jre/lib/amd64/server"
|
|
||||||
JAVAINCPATH="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
|
||||||
if test "$CC" != "lcc"
|
|
||||||
then
|
|
||||||
LDFLAGS="-rdynamic $LDFLAGS"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
JAVALIBPATH="\$(DESTDIR)\$(LIBDIR)/libYap.so \$(DESTDIR)\$(YAPLIBDIR)/plstream.so $LIBS $LIBS -L$JAVA_HOME/jre/lib/i386 -L$JAVA_HOME/jre/lib/i386/client -L$JAVA_HOME/jre/lib/i386/server"
|
|
||||||
JAVAINCPATH="-I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
|
||||||
if test "$CC" != "lcc"
|
if test "$CC" != "lcc"
|
||||||
then
|
then
|
||||||
LDFLAGS="-rdynamic $LDFLAGS"
|
LDFLAGS="-rdynamic $LDFLAGS"
|
||||||
@ -958,7 +967,6 @@ dnl Linux has both elf and a.out, in this case we found elf
|
|||||||
LIBS="$LIBS -ldl"
|
LIBS="$LIBS -ldl"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
LIBS="$LIBS -framework JavaVM"
|
|
||||||
SHLIB_CFLAGS="-fno-common"
|
SHLIB_CFLAGS="-fno-common"
|
||||||
SHLIB_SUFFIX=".dylib"
|
SHLIB_SUFFIX=".dylib"
|
||||||
DO_SECOND_LD=""
|
DO_SECOND_LD=""
|
||||||
@ -968,8 +976,6 @@ dnl Linux has both elf and a.out, in this case we found elf
|
|||||||
SHLIB_CXX_LD="$CXX -bundle -flat_namespace -undefined suppress"
|
SHLIB_CXX_LD="$CXX -bundle -flat_namespace -undefined suppress"
|
||||||
INSTALL_DLLS=""
|
INSTALL_DLLS=""
|
||||||
CC="$CC -fstrict-aliasing -freorder-blocks -fsched-interblock -Wall -Wstrict-aliasing=2"
|
CC="$CC -fstrict-aliasing -freorder-blocks -fsched-interblock -Wall -Wstrict-aliasing=2"
|
||||||
JAVALIBPATH="-L/System/Library/Frameworks/JavaVM.framework/Libraries"
|
|
||||||
JAVAINCPATH="-I/System/Library/Frameworks/JavaVM.framework/Headers"
|
|
||||||
;;
|
;;
|
||||||
*netbsd*|*freebsd*)
|
*netbsd*|*freebsd*)
|
||||||
if echo __ELF__ | ${CC:-cc} -E - | grep -q __ELF__
|
if echo __ELF__ | ${CC:-cc} -E - | grep -q __ELF__
|
||||||
@ -1001,8 +1007,6 @@ dnl Linux has both elf and a.out, in this case we found elf
|
|||||||
*cyg*|*mingw*)
|
*cyg*|*mingw*)
|
||||||
# gcc on cygwin seems to have trouble with longjmp
|
# gcc on cygwin seems to have trouble with longjmp
|
||||||
# and -fomit-frame-point -DBP_FREE
|
# and -fomit-frame-point -DBP_FREE
|
||||||
JAVALIBPATH=""
|
|
||||||
JAVAINCPATH="-I\"$JAVA_HOME\"/include -I\"$JAVA_HOME\"/include/win32"
|
|
||||||
YAPLIB="yap.dll"
|
YAPLIB="yap.dll"
|
||||||
SHLIB_CFLAGS=""
|
SHLIB_CFLAGS=""
|
||||||
if test "$target_win64" = no
|
if test "$target_win64" = no
|
||||||
@ -1060,21 +1064,11 @@ then
|
|||||||
# CROSS_SIMULATOR="DYLD_LIBRARY_PATH=."
|
# CROSS_SIMULATOR="DYLD_LIBRARY_PATH=."
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
case "$target_cpu" in
|
LDFLAGS="$LDFLAGS -L \$(abs_top_builddir) -Wl,-R,\$(DESTDIR)\$(LIBDIR) -Wl,-R,\$(DESTDIR)\$(YAPLIBDIR)"
|
||||||
i*86*)
|
|
||||||
JAVA_TARGET=i386
|
|
||||||
;;
|
|
||||||
x86*)
|
|
||||||
JAVA_TARGET=amd64
|
|
||||||
;;
|
|
||||||
sparc*)
|
|
||||||
JAVA_TARGET=sparc
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
LDFLAGS="$LDFLAGS -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET -L \$(abs_top_builddir) -Wl,-R,\$(DESTDIR)\$(LIBDIR) -Wl,-R,\$(DESTDIR)\$(YAPLIBDIR)"
|
|
||||||
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
||||||
YAPLIB="$DYNYAPLIB"
|
YAPLIB="$DYNYAPLIB"
|
||||||
EXTRA_LIBS_FOR_DLLS="$EXTRA_LIBS_FOR_DLLS -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET -L \$(abs_top_builddir) -lYap -Wl,-R,\$(DESTDIR)\$(YAPLIBDIR) -Wl,-R,\$(DESTDIR)\$(LIBDIR)"
|
EXTRA_LIBS_FOR_DLLS="$EXTRA_LIBS_FOR_DLLS -L \$(abs_top_builddir) -lYap -Wl,-R,\$(DESTDIR)\$(YAPLIBDIR) -Wl,-R,\$(DESTDIR)\$(LIBDIR)"
|
||||||
|
EXTRA_LIBS_FOR_SWIDLLS="$EXTRA_LIBS_FOR_DLLS -L \$(abs_top_builddir)/packages/PLStream/plstream.$SHLIB_SUFFIX"
|
||||||
PRE_INSTALL_ENV="LD_LIBRARY_PATH=\$(abs_top_builddir)"
|
PRE_INSTALL_ENV="LD_LIBRARY_PATH=\$(abs_top_builddir)"
|
||||||
INSTALL_ENV="LD_LIBRARY_PATH=\$(DESTDIR)\$(LIBDIR): YAPSHAREDIR=\$(DESTDIR)\$(SHAREDIR) YAPLIBDIR=\$(DESTDIR)\$(YAPLIBDIR)"
|
INSTALL_ENV="LD_LIBRARY_PATH=\$(DESTDIR)\$(LIBDIR): YAPSHAREDIR=\$(DESTDIR)\$(SHAREDIR) YAPLIBDIR=\$(DESTDIR)\$(YAPLIBDIR)"
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user