aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1997-02-27 18:09:22 +0000
committerStu Grossman <grossman@cygnus>1997-02-27 18:09:22 +0000
commitc4c9112ad8ae4336726a2399af501dc616cc8e5c (patch)
treeda5624fb173a80a8d8cba4cd3690084eeb120171 /gdb/configure.in
parent22395d7ed4081e9dca0fb92dd8428330264f777f (diff)
downloadgdb-c4c9112ad8ae4336726a2399af501dc616cc8e5c.zip
gdb-c4c9112ad8ae4336726a2399af501dc616cc8e5c.tar.gz
gdb-c4c9112ad8ae4336726a2399af501dc616cc8e5c.tar.bz2
* configure.in configure (HPUX/OSF thread support): Enable this
only when running GCC, since HP's thread header files use ANSI C which is not supported by their default compiler.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index c2d6e90..6e28fc3 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -177,9 +177,13 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
hpux*)
AC_MSG_CHECKING(for HPUX/OSF thread support)
if test -f /usr/include/dce/cma_config.h ; then
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
- CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
+ if test "$GCC" = "yes" ; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
+ CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
+ else
+ AC_MSG_RESULT(no (suppressed because you are not using GCC))
+ fi
else
AC_MSG_RESULT(no)
fi