]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Skip test for -rdynamic on Mac OS X.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 26 Feb 2009 04:40:07 +0000 (04:40 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 26 Feb 2009 04:40:07 +0000 (04:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@18433 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 05f473cf6fc7a3a8809a2799318a1245b2143880..f0d32d7604157f37dc1fb57fc6e678cfc759ba84 100644 (file)
@@ -4768,19 +4768,31 @@ AC_DEFUN(DEAL_II_HAVE_GLIBC_STACKTRACE, dnl
                  provides stacktrace debug information that can be
                  printed out in the exception class])
 
-      AC_MSG_CHECKING(whether compiler accepts -rdynamic)
+      dnl On Mac OS X, -rdynamic is accepted by the compiler (i.e.
+      dnl it doesn't produce an error) but we always get a warning
+      dnl that it isn't supported. That's pretty stupid because
+      dnl we can't test for it. Consequently, only run the test
+      dnl if not on OS X.
+      case "$target" in
+        *apple-darwin*)
+         ;;
 
-      CXXFLAGS="$CXXFLAGSG -rdynamic"
-      AC_TRY_LINK(
-        [],
-        [;],
-        [
-          AC_MSG_RESULT(yes)
-          LDFLAGS="$LDFLAGS -rdynamic"
-        ],
-        [
-          AC_MSG_RESULT(no)
-        ])
+        *)
+          AC_MSG_CHECKING(whether compiler accepts -rdynamic)
+
+          CXXFLAGS="$CXXFLAGSG -rdynamic"
+          AC_TRY_LINK(
+            [],
+            [;],
+            [
+              AC_MSG_RESULT(yes)
+              LDFLAGS="$LDFLAGS -rdynamic"
+            ],
+            [
+              AC_MSG_RESULT(no)
+            ])
+          ;;
+      esac
     ],
     [
       AC_MSG_RESULT(no)

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.