]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make deal.II deal with the situation that p4est might install into lib64/ instead...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Jul 2012 15:55:07 +0000 (15:55 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Jul 2012 15:55:07 +0000 (15:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@25731 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/common/Make.global_options.in
deal.II/configure
deal.II/doc/news/changes.h
deal.II/source/Makefile

index 3cd08cbcd16db08ce69c9bdb0f7b0a066b0f1241..214dbb25397dfaa63df2c398d6cd0f4a72941795 100644 (file)
@@ -7732,6 +7732,21 @@ AC_DEFUN(DEAL_II_CONFIGURE_P4EST, dnl
 
     CXXFLAGSG="$CXXFLAGSG -I$use_p4est/DEBUG/include"
     CXXFLAGSO="$CXXFLAGSO -I$use_p4est/FAST/include"
+
+    AC_MSG_CHECKING(for p4est library directory)
+    if test -d "$use_p4est/DEBUG/lib64" -a -d "$use_p4est/FAST/lib64" ; then
+      AC_MSG_RESULT(lib64)
+      DEAL_II_P4EST_LIBDIR_NAME=lib64
+    else
+      if test -d "$use_p4est/DEBUG/lib" -a -d "$use_p4est/FAST/lib" ; then
+        AC_MSG_RESULT(lib)
+        DEAL_II_P4EST_LIBDIR_NAME=lib
+      else
+        AC_MSG_ERROR(could not determine whether p4est stores its library in lib/ or lib64/ directories)
+      fi
+    fi
+    AC_SUBST(DEAL_II_P4EST_LIBDIR_NAME)
+
   else
     AC_MSG_RESULT(no)
   fi
index cd3121065b8eb7c8b8dfc8ae1d675b9c9df0cc81..3a0db5f6b1af5b9440d011d42d9f4e083f6f9d40 100644 (file)
@@ -97,6 +97,7 @@ USE_CONTRIB_UMFPACK  = @USE_CONTRIB_UMFPACK@
 
 USE_CONTRIB_P4EST    = @USE_CONTRIB_P4EST@
 DEAL_II_P4EST_DIR    = @DEAL_II_P4EST_DIR@
+DEAL_II_P4EST_LIBDIR_NAME = @DEAL_II_P4EST_LIBDIR_NAME@
 
 DEAL_II_USE_MPI      = @DEAL_II_USE_MPI@
 
@@ -280,7 +281,7 @@ ifeq ($(DEAL_II_PETSC_VERSION_MAJOR),2)
 else
   include-path-petsc-bmake   = $(DEAL_II_PETSC_DIR)/$(DEAL_II_PETSC_ARCH)/include
 endif
-include-path-slepc           = $(DEAL_II_SLEPC_DIR)/include 
+include-path-slepc           = $(DEAL_II_SLEPC_DIR)/include
 include-path-slepc-bmake     = $(DEAL_II_SLEPC_DIR)/$(DEAL_II_PETSC_ARCH)/include
 include-path-slepc-conf      = $(DEAL_II_SLEPC_DIR)/$(DEAL_II_PETSC_ARCH)/conf
 include-path-trilinos        = $(DEAL_II_TRILINOS_INCDIR)
index 7683f13d513c6a978677f42df8dfb0a6edcdbc7c..1ab1c0b23bbf012883940a07e6a8903be367b4ec 100755 (executable)
@@ -629,9 +629,10 @@ USE_CONTRIB_LAPACK
 USE_CONTRIB_BLAS
 NEEDS_F77LIBS
 DEAL_II_USE_BLAS
+DEAL_II_USE_P4EST
+DEAL_II_P4EST_LIBDIR_NAME
 DEAL_II_P4EST_DIR
 USE_CONTRIB_P4EST
-DEAL_II_USE_P4EST
 DEAL_II_DEFINE_DEAL_II_USE_MUMPS
 DEAL_II_BLACS_ARCH
 DEAL_II_BLACS_DIR
@@ -11833,13 +11834,31 @@ $as_echo "yes" >&6; }
 $as_echo "#define DEAL_II_USE_P4EST 1" >>confdefs.h
 
     USE_CONTRIB_P4EST=yes
-    export USE_CONTRIB_P4EST
+
 
     DEAL_II_P4EST_DIR=${use_p4est}
-    export DEAL_II_P4EST_DIR
+
 
     CXXFLAGSG="$CXXFLAGSG -I$use_p4est/DEBUG/include"
     CXXFLAGSO="$CXXFLAGSO -I$use_p4est/FAST/include"
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for p4est library directory" >&5
+$as_echo_n "checking for p4est library directory... " >&6; }
+    if test -d "$use_p4est/DEBUG/lib64" -a -d "$use_p4est/FAST/lib64" ; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib64" >&5
+$as_echo "lib64" >&6; }
+      DEAL_II_P4EST_LIBDIR_NAME=lib64
+    else
+      if test -d "$use_p4est/DEBUG/lib" -a -d "$use_p4est/FAST/lib" ; then
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib" >&5
+$as_echo "lib" >&6; }
+        DEAL_II_P4EST_LIBDIR_NAME=lib
+      else
+        as_fn_error $? "could not determine whether p4est stores its library in lib/ or lib64/ directories" "$LINENO" 5
+      fi
+    fi
+
+
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
index f98af3824bcee53ff9ccc09b4d4bd926333b9d33..d99a8edf99ce1f40ab27bb908bd78f344e17457c 100644 (file)
@@ -50,6 +50,14 @@ used to store boundary indicators internally.
 
 
 <ol>
+<li>
+Fixed: On some systems, the p4est library we use for distributed
+parallel computations installs its libraries into a <code>lib64/</code>
+directory instead of the usual <code>lib/</code>. deal.II can now deal
+with this.
+<br>
+(Wolfgang Bangerth, 2012/07/25)
+
 <li>
 New: step-43 is an extension of step-21 that shows efficient methods
 to solve multi-phase flow.
index f9a5068ee148a353e81f2f54244c052d7454077b..2e997901b7b296028137421ca991ec53444dffd6 100644 (file)
@@ -130,12 +130,12 @@ ifneq ($(GXX-VERSION),compaq_cxx)
 
   # and p4est
   ifeq ($(USE_CONTRIB_P4EST),yes)
-    deplibs.g += $(DEAL_II_P4EST_DIR)/DEBUG/lib/libp4est$(shared-lib-suffix) \
-                 $(DEAL_II_P4EST_DIR)/DEBUG/lib/libsc$(shared-lib-suffix) \
-                $(call DEAL_II_RPATH,$(DEAL_II_P4EST_DIR)/DEBUG/lib)
-    deplibs.o += $(DEAL_II_P4EST_DIR)/FAST/lib/libp4est$(shared-lib-suffix) \
-                 $(DEAL_II_P4EST_DIR)/FAST/lib/libsc$(shared-lib-suffix) \
-                $(call DEAL_II_RPATH,$(DEAL_II_P4EST_DIR)/FAST/lib)
+    deplibs.g += $(DEAL_II_P4EST_DIR)/DEBUG/$(DEAL_II_P4EST_LIBDIR_NAME)/libp4est$(shared-lib-suffix) \
+                 $(DEAL_II_P4EST_DIR)/DEBUG/$(DEAL_II_P4EST_LIBDIR_NAME)/libsc$(shared-lib-suffix) \
+                $(call DEAL_II_RPATH,$(DEAL_II_P4EST_DIR)/DEBUG/$(DEAL_II_P4EST_LIBDIR_NAME))
+    deplibs.o += $(DEAL_II_P4EST_DIR)/FAST/$(DEAL_II_P4EST_LIBDIR_NAME)/libp4est$(shared-lib-suffix) \
+                 $(DEAL_II_P4EST_DIR)/FAST/$(DEAL_II_P4EST_LIBDIR_NAME)/libsc$(shared-lib-suffix) \
+                $(call DEAL_II_RPATH,$(DEAL_II_P4EST_DIR)/FAST/$(DEAL_II_P4EST_LIBDIR_NAME))
   endif
 
   # for cygwin and darwin, also llapack and such are necessary

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.