DESTDIR fixes
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2305 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
d170b34624
commit
8350d52c78
@ -8,18 +8,15 @@ EROOTDIR = @exec_prefix@
|
|||||||
|
|
||||||
srcdir=@srcdir@
|
srcdir=@srcdir@
|
||||||
|
|
||||||
|
BINDIR = $(EROOTDIR)/bin
|
||||||
|
LIBDIR=$(EROOTDIR)/lib
|
||||||
|
YAPLIBDIR=$(EROOTDIR)/lib/Yap
|
||||||
|
SHAREDIR=$(ROOTDIR)/share
|
||||||
|
|
||||||
SHELL=@SHELL@
|
SHELL=@SHELL@
|
||||||
PLBASE=@PLBASE@
|
PL=@EXTEND_DYNLOADER_PATH@ $(DESTDIR)$(BINDIR)/yap $(DESTDIR)$(YAPLIBDIR)/startup
|
||||||
PLARCH=@PLARCH@
|
|
||||||
PL=LD_LIBRARY_PATH=system YAPSHAREDIR=`pwd`/../../library ../../yap ../../startup
|
|
||||||
XPCEBASE=$(PLBASE)/xpce
|
|
||||||
PKGDOC=$(PLBASE)/doc/packages
|
|
||||||
PCEHOME=../../xpce
|
|
||||||
LIBDIR=$(PLBASE)/library
|
|
||||||
SHAREDIR=$(ROOTDIR)/share/Yap
|
|
||||||
CHRDIR=$(SHAREDIR)/chr
|
CHRDIR=$(SHAREDIR)/chr
|
||||||
EXDIR=$(CHRDIR)/examples/chr
|
EXDIR=$(CHRDIR)/examples/chr
|
||||||
DESTDIR=
|
|
||||||
LN_S=@LN_S@
|
LN_S=@LN_S@
|
||||||
|
|
||||||
DOCTOTEX=$(PCEHOME)/bin/doc2tex
|
DOCTOTEX=$(PCEHOME)/bin/doc2tex
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
<h2>Yap-5.1.4:</h2>
|
<h2>Yap-5.1.4:</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li> .</li>
|
<li> .</li>
|
||||||
|
<li> FIXED: DESTIR and chr.</li>
|
||||||
|
<li> FIXED: make term_variables a builtin. (SWI compatibility).</li>
|
||||||
<li> NEW: X is random(Int) (SWI compatibility).</li>
|
<li> NEW: X is random(Int) (SWI compatibility).</li>
|
||||||
<li> NEW: seletchk/3.</li>
|
<li> NEW: seletchk/3.</li>
|
||||||
<li> FIXED: do meta-expansion from undefp.</li>
|
<li> FIXED: do meta-expansion from undefp.</li>
|
||||||
|
14
configure
vendored
14
configure
vendored
@ -689,6 +689,7 @@ CPLINT_CFLAGS
|
|||||||
CPLINT_LDFLAGS
|
CPLINT_LDFLAGS
|
||||||
CPLINT_SHLIB_LD
|
CPLINT_SHLIB_LD
|
||||||
ENABLE_CPLINT
|
ENABLE_CPLINT
|
||||||
|
EXTEND_DYNLOADER_PATH
|
||||||
M4
|
M4
|
||||||
M4GENHDRS
|
M4GENHDRS
|
||||||
INSTALL_DLLS
|
INSTALL_DLLS
|
||||||
@ -3097,7 +3098,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test "$tabling" = yes -o "$orparallelism" = yes -o "$threads" = yes
|
if test "$tabling" = yes -o "$orparallelism" = yes -o "$threads" = yes
|
||||||
then
|
then
|
||||||
cat >>confdefs.h <<\_ACEOF
|
cat >>confdefs.h <<\_ACEOF
|
||||||
@ -7124,10 +7124,14 @@ then
|
|||||||
YAP_EXTRAS="$SHLIB_CFLAGS $YAP_EXTRAS"
|
YAP_EXTRAS="$SHLIB_CFLAGS $YAP_EXTRAS"
|
||||||
CROSS_SIMULATOR="LD_LIBRARY_PATH=."
|
CROSS_SIMULATOR="LD_LIBRARY_PATH=."
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
|
*cygwin*!*mingw32*)
|
||||||
|
EXTEND_DYNLOADER_PATH=""
|
||||||
|
;;
|
||||||
*darwin*)
|
*darwin*)
|
||||||
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
||||||
YAPLIB="$DYNYAPLIB"
|
YAPLIB="$DYNYAPLIB"
|
||||||
DYNLIB_LD="gcc -dynamiclib"
|
DYNLIB_LD="gcc -dynamiclib"
|
||||||
|
EXTEND_DYNLOADER_PATH="DYLD_LIBRARY_PATH=\$DYLD_LIBRARY_PATH:\$(DESTDIR)\$(LIBDIR): YAPSHAREDIR=\$(DESTDIR)\$(SHAREDIR)/Yap YAPLIBDIR=\$(DESTDIR)\$(YAPLIBDIR)"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
case "$target_cpu" in
|
case "$target_cpu" in
|
||||||
@ -7141,6 +7145,7 @@ then
|
|||||||
JAVA_TARGET=sparc
|
JAVA_TARGET=sparc
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
EXTEND_DYNLOADER_PATH="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(DESTDIR)$(LIBDIR): YAPSHAREDIR=$(DESTDIR)$(SHAREDIR)"
|
||||||
LDFLAGS="$LDFLAGS -Wl,-R,$prefix/lib -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET"
|
LDFLAGS="$LDFLAGS -Wl,-R,$prefix/lib -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET"
|
||||||
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
||||||
YAPLIB="$DYNYAPLIB"
|
YAPLIB="$DYNYAPLIB"
|
||||||
@ -7148,6 +7153,7 @@ then
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
EXTEND_DYNLOADER_PATH="YAPSHAREDIR=$(DESTDIR)$(SHAREDIR)"
|
||||||
DYNYAPLIB=libYap.notused
|
DYNYAPLIB=libYap.notused
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -7521,6 +7527,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# LAM
|
# LAM
|
||||||
OLD_CC=${CC}
|
OLD_CC=${CC}
|
||||||
CC=${LAM_MPI_CC}
|
CC=${LAM_MPI_CC}
|
||||||
@ -16902,6 +16909,7 @@ CPLINT_CFLAGS!$CPLINT_CFLAGS$ac_delim
|
|||||||
CPLINT_LDFLAGS!$CPLINT_LDFLAGS$ac_delim
|
CPLINT_LDFLAGS!$CPLINT_LDFLAGS$ac_delim
|
||||||
CPLINT_SHLIB_LD!$CPLINT_SHLIB_LD$ac_delim
|
CPLINT_SHLIB_LD!$CPLINT_SHLIB_LD$ac_delim
|
||||||
ENABLE_CPLINT!$ENABLE_CPLINT$ac_delim
|
ENABLE_CPLINT!$ENABLE_CPLINT$ac_delim
|
||||||
|
EXTEND_DYNLOADER_PATH!$EXTEND_DYNLOADER_PATH$ac_delim
|
||||||
M4!$M4$ac_delim
|
M4!$M4$ac_delim
|
||||||
M4GENHDRS!$M4GENHDRS$ac_delim
|
M4GENHDRS!$M4GENHDRS$ac_delim
|
||||||
INSTALL_DLLS!$INSTALL_DLLS$ac_delim
|
INSTALL_DLLS!$INSTALL_DLLS$ac_delim
|
||||||
@ -16922,7 +16930,6 @@ JAVAC!$JAVAC$ac_delim
|
|||||||
JAR!$JAR$ac_delim
|
JAR!$JAR$ac_delim
|
||||||
IN_UNIX!$IN_UNIX$ac_delim
|
IN_UNIX!$IN_UNIX$ac_delim
|
||||||
YAPMPILIB!$YAPMPILIB$ac_delim
|
YAPMPILIB!$YAPMPILIB$ac_delim
|
||||||
LAM_MPI_CC!$LAM_MPI_CC$ac_delim
|
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
|
||||||
@ -16964,6 +16971,7 @@ _ACEOF
|
|||||||
ac_delim='%!_!# '
|
ac_delim='%!_!# '
|
||||||
for ac_last_try in false false false false false :; do
|
for ac_last_try in false false false false false :; do
|
||||||
cat >conf$$subs.sed <<_ACEOF
|
cat >conf$$subs.sed <<_ACEOF
|
||||||
|
LAM_MPI_CC!$LAM_MPI_CC$ac_delim
|
||||||
MPI_OBJS!$MPI_OBJS$ac_delim
|
MPI_OBJS!$MPI_OBJS$ac_delim
|
||||||
MPI_LIBS!$MPI_LIBS$ac_delim
|
MPI_LIBS!$MPI_LIBS$ac_delim
|
||||||
INSTALL_COMMAND!$INSTALL_COMMAND$ac_delim
|
INSTALL_COMMAND!$INSTALL_COMMAND$ac_delim
|
||||||
@ -16982,7 +16990,7 @@ LIBOBJS!$LIBOBJS$ac_delim
|
|||||||
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
LTLIBOBJS!$LTLIBOBJS$ac_delim
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
|
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
|
||||||
break
|
break
|
||||||
elif $ac_last_try; then
|
elif $ac_last_try; then
|
||||||
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
||||||
|
@ -261,7 +261,6 @@ AC_ARG_WITH(max-threads,
|
|||||||
fi,
|
fi,
|
||||||
[yap_cv_max_threads="1024"])
|
[yap_cv_max_threads="1024"])
|
||||||
|
|
||||||
|
|
||||||
if test "$tabling" = yes -o "$orparallelism" = yes -o "$threads" = yes
|
if test "$tabling" = yes -o "$orparallelism" = yes -o "$threads" = yes
|
||||||
then
|
then
|
||||||
AC_DEFINE(MinHeapSpace, (1000*SIZEOF_INT_P))
|
AC_DEFINE(MinHeapSpace, (1000*SIZEOF_INT_P))
|
||||||
@ -854,10 +853,14 @@ then
|
|||||||
YAP_EXTRAS="$SHLIB_CFLAGS $YAP_EXTRAS"
|
YAP_EXTRAS="$SHLIB_CFLAGS $YAP_EXTRAS"
|
||||||
CROSS_SIMULATOR="LD_LIBRARY_PATH=."
|
CROSS_SIMULATOR="LD_LIBRARY_PATH=."
|
||||||
case "$target_os" in
|
case "$target_os" in
|
||||||
|
*cygwin*!*mingw32*)
|
||||||
|
EXTEND_DYNLOADER_PATH=""
|
||||||
|
;;
|
||||||
*darwin*)
|
*darwin*)
|
||||||
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
||||||
YAPLIB="$DYNYAPLIB"
|
YAPLIB="$DYNYAPLIB"
|
||||||
DYNLIB_LD="gcc -dynamiclib"
|
DYNLIB_LD="gcc -dynamiclib"
|
||||||
|
EXTEND_DYNLOADER_PATH="DYLD_LIBRARY_PATH=\$DYLD_LIBRARY_PATH:\$(DESTDIR)\$(LIBDIR): YAPSHAREDIR=\$(DESTDIR)\$(SHAREDIR)/Yap YAPLIBDIR=\$(DESTDIR)\$(YAPLIBDIR)"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
case "$target_cpu" in
|
case "$target_cpu" in
|
||||||
@ -871,6 +874,7 @@ then
|
|||||||
JAVA_TARGET=sparc
|
JAVA_TARGET=sparc
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
EXTEND_DYNLOADER_PATH="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(DESTDIR)$(LIBDIR): YAPSHAREDIR=$(DESTDIR)$(SHAREDIR)"
|
||||||
LDFLAGS="$LDFLAGS -Wl,-R,$prefix/lib -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET"
|
LDFLAGS="$LDFLAGS -Wl,-R,$prefix/lib -Wl,-R,$JAVA_HOME/jre/lib/$JAVA_TARGET"
|
||||||
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
DYNYAPLIB=libYap"$SHLIB_SUFFIX"
|
||||||
YAPLIB="$DYNYAPLIB"
|
YAPLIB="$DYNYAPLIB"
|
||||||
@ -878,6 +882,7 @@ then
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
EXTEND_DYNLOADER_PATH="YAPSHAREDIR=$(DESTDIR)$(SHAREDIR)"
|
||||||
DYNYAPLIB=libYap.notused
|
DYNYAPLIB=libYap.notused
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -992,6 +997,7 @@ else
|
|||||||
ENABLE_CPLINT="#"
|
ENABLE_CPLINT="#"
|
||||||
fi
|
fi
|
||||||
AC_SUBST(ENABLE_CPLINT)
|
AC_SUBST(ENABLE_CPLINT)
|
||||||
|
AC_SUBST(EXTEND_DYNLOADER_PATH)
|
||||||
|
|
||||||
# LAM
|
# LAM
|
||||||
OLD_CC=${CC}
|
OLD_CC=${CC}
|
||||||
|
Reference in New Issue
Block a user