From 7c716c4f2f2e75495beb9460a496ccf1aa7f5520 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Mon, 11 Nov 2013 00:52:50 +0000 Subject: [PATCH] change order --- configure.in | 60 ++++++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/configure.in b/configure.in index cf6714c23..9c12e6110 100755 --- a/configure.in +++ b/configure.in @@ -1023,7 +1023,7 @@ dnl Linux has both elf and a.out, in this case we found elf IN_UNIX="#" YAPLIB_LD="\$(CC) -shared -Wl,--export-all-symbols" PRE_INSTALL_ENV="" - INSTALL_ENV="" + INSTALL_ENV="YAPSHAREDIR=\$(DESTDIR)\$(SHAREDIR) YAPLIBDIR=\$(DESTDIR)\$(YAPLIBDIR)" ;; *) AC_CHECK_LIB(dl,dlopen, @@ -1053,6 +1053,9 @@ dnl Linux has both elf and a.out, in this case we found elf ;; esac +dnl use the current files, even if older +PRE_INSTALL_ENV="$PRE_INSTALL_ENV YAPLIBDIR=\$(abs_top_builddir):\$(abs_top_builddir)/library/system:\$(abs_top_builddir)/packages/clib " + if test "$dynamic_loading" = "yes" then YAPLIB_CFLAGS="$SHLIB_CFLAGS" @@ -1782,33 +1785,6 @@ fi m4_include([library/MYDDAS/configure.in]) -if test "$yap_cv_R" != "no" -a -e "$srcdir"/packages/real/Makefile.in; then - ENABLE_REAL="" - - m4_include([packages/real/configure.in]) -else - REAL_TARGET="dummy" - ENABLE_REAL="@# " -fi - -dnl -dnl java is hard -dnl -if test "$yap_cv_java" = no; then - ENABLE_JPL="@#" -elif test -e "$srcdir"/packages/jpl/Makefile.in; then - ENABLE_JPL="" - if test "$yap_cv_java" != "yes"; then - JAVA_HOME=$yap_cv_java - JAVAPREFIX="$JAVA_HOME"/bin - elif test -n "$JAVA_HOME"; then - JAVAPREFIX="$JAVA_HOME"/bin - fi - - m4_include([packages/jpl/configure.in]) - -fi - if test "$ENABLE_CLIB" = "" then @@ -1858,6 +1834,34 @@ fi fi +if test "$yap_cv_R" != "no" -a -e "$srcdir"/packages/real/Makefile.in; then + ENABLE_REAL="" + + m4_include([packages/real/configure.in]) +else + REAL_TARGET="dummy" + ENABLE_REAL="@# " +fi + +dnl +dnl java is hard +dnl +if test "$yap_cv_java" = no; then + ENABLE_JPL="@#" +elif test -e "$srcdir"/packages/jpl/Makefile.in; then + ENABLE_JPL="" + if test "$yap_cv_java" != "yes"; then + JAVA_HOME=$yap_cv_java + JAVAPREFIX="$JAVA_HOME"/bin + elif test -n "$JAVA_HOME"; then + JAVAPREFIX="$JAVA_HOME"/bin + fi + + m4_include([packages/jpl/configure.in]) + +fi + + m4_include([packages/gecode/configure.in]) m4_include([library/lammpi/configure.in])