aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorSteve Ellcey <sje@cup.hp.com>2006-10-09 15:55:38 +0000
committerSteve Ellcey <sje@gcc.gnu.org>2006-10-09 15:55:38 +0000
commite64f5acfafe9a0e1842716d80e12dd0d2b075435 (patch)
tree6b262ac07e2b116d237352ff90b639547d322f4a /gcc/configure.ac
parentf4935db5d7edf4a64116e7249dea65b6c654743f (diff)
downloadgcc-e64f5acfafe9a0e1842716d80e12dd0d2b075435.zip
gcc-e64f5acfafe9a0e1842716d80e12dd0d2b075435.tar.gz
gcc-e64f5acfafe9a0e1842716d80e12dd0d2b075435.tar.bz2
re PR target/27880 (undefined reference to `_Unwind_GetIPInfo')
PR target/27880 * unwind-c.c (PERSONALITY_FUNCTION): Ifdef use of _Unwind_GetIPInfo. * configure.ac (HAVE_GETIPINFO): Check for _Unwind_GetIPInfo. * configure: Regenerate. * config.in: Regenerate. From-SVN: r117576
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 5841da9..e502ef5 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -1229,6 +1229,12 @@ AC_DEFINE_UNQUOTED(CONFIG_SJLJ_EXCEPTIONS, $sjlj,
AC_ARG_WITH(system-libunwind,
[ --with-system-libunwind use installed libunwind])
+# config.gcc also contains tests of with_system_libunwind.
+if test x$with_system_libunwind = xyes; then
+ AC_DEFINE(HAVE_GETIPINFO, 1,
+[Define to 1 if system unwind library has _Unwind_GetIPInfo.])
+fi
+
# --------------------------------------------------------
# Build, host, and target specific configuration fragments
# --------------------------------------------------------
@@ -1439,6 +1445,20 @@ if test x$enable___cxa_atexit = xyes || \
fi
fi
+use_getipinfo=yes
+if test x$with_system_libunwind = xyes; then
+ if test x$host = x$target; then
+ AC_SEARCH_LIBS(_Unwind_GetIPInfo, unwind,, [use_getipinfo=no])
+ fi
+fi
+GCC_TARGET_TEMPLATE(HAVE_GETIPINFO)
+if test x$use_getipinfo = xyes; then
+ AC_DEFINE(HAVE_GETIPINFO, 1,
+ [Define to 1 if system unwind library has _Unwind_GetIPInfo.])
+else
+ echo "The system unwind library does not support _Unwind_GetIPInfo."
+fi
+
# Look for a file containing extra machine modes.
if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
extra_modes_file='$(srcdir)'/config/${extra_modes}