Merge from GCC:
[deliverable/binutils-gdb.git] / config / unwind_ipinfo.m4
CommitLineData
1dc60eeb 1dnl
fb2470b8
JM
2dnl Check whether _Unwind_GetIPInfo is available without doing a link
3dnl test so we can use this with libstdc++-v3 and libjava. Need to
4dnl use $target to set defaults because automatic checking is not possible
5dnl without a link test (and maybe even with a link test).
1dc60eeb 6dnl
fb2470b8 7
1dc60eeb 8AC_DEFUN([GCC_CHECK_UNWIND_GETIPINFO], [
fb2470b8
JM
9 AC_ARG_WITH(system-libunwind,
10 [ --with-system-libunwind use installed libunwind])
11 # If system-libunwind was not specifically set, pick a default setting.
12 if test x$with_system_libunwind = x; then
13 case ${target} in
14 ia64-*-hpux*) with_system_libunwind=yes ;;
15 *) with_system_libunwind=no ;;
16 esac
17 fi
18 # Based on system-libunwind and target, do we have ipinfo?
19 if test x$with_system_libunwind = xyes; then
20 case ${target} in
21 ia64-*-*) have_unwind_getipinfo=no ;;
22 *) have_unwind_getipinfo=yes ;;
23 esac
24 else
25 have_unwind_getipinfo=yes
26 fi
27
28 if test x$have_unwind_getipinfo = xyes; then
1dc60eeb
PB
29 AC_DEFINE(HAVE_GETIPINFO, 1, [Define if _Unwind_GetIPInfo is available.])
30 fi
1dc60eeb 31])
This page took 0.095563 seconds and 4 git commands to generate.