mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
* 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.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
Thu Feb 27 09:38:16 1997 Stu Grossman (grossman@critters.cygnus.com)
|
Thu Feb 27 09:38:16 1997 Stu Grossman (grossman@critters.cygnus.com)
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* configure.host (i[3456]86-*-windows): Disable long long
|
* configure.host (i[3456]86-*-windows): Disable long long
|
||||||
support for WinGDB. Add mswin to configdirs.
|
support for WinGDB. Add mswin to configdirs.
|
||||||
* configure.in configure: Move calls to configure.host and
|
* configure.in configure: Move calls to configure.host and
|
||||||
|
38
gdb/configure
vendored
38
gdb/configure
vendored
@ -2287,19 +2287,23 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
|
|||||||
echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
|
echo $ac_n "checking for HPUX/OSF thread support""... $ac_c" 1>&6
|
||||||
echo "configure:2289: checking for HPUX/OSF thread support" >&5
|
echo "configure:2289: checking for HPUX/OSF thread support" >&5
|
||||||
if test -f /usr/include/dce/cma_config.h ; then
|
if test -f /usr/include/dce/cma_config.h ; then
|
||||||
echo "$ac_t""yes" 1>&6
|
if test "$GCC" = "yes" ; then
|
||||||
cat >> confdefs.h <<\EOF
|
echo "$ac_t""yes" 1>&6
|
||||||
|
cat >> confdefs.h <<\EOF
|
||||||
#define HAVE_HPUX_THREAD_SUPPORT 1
|
#define HAVE_HPUX_THREAD_SUPPORT 1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
|
CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
|
||||||
|
else
|
||||||
|
echo "$ac_t""no (suppressed because you are not using GCC)" 1>&6
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "$ac_t""no" 1>&6
|
echo "$ac_t""no" 1>&6
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
solaris*)
|
solaris*)
|
||||||
echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
|
echo $ac_n "checking for Solaris thread debugging library""... $ac_c" 1>&6
|
||||||
echo "configure:2303: checking for Solaris thread debugging library" >&5
|
echo "configure:2307: checking for Solaris thread debugging library" >&5
|
||||||
if test -f /usr/lib/libthread_db.so.1 ; then
|
if test -f /usr/lib/libthread_db.so.1 ; then
|
||||||
echo "$ac_t""yes" 1>&6
|
echo "$ac_t""yes" 1>&6
|
||||||
cat >> confdefs.h <<\EOF
|
cat >> confdefs.h <<\EOF
|
||||||
@ -2308,7 +2312,7 @@ EOF
|
|||||||
|
|
||||||
CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
|
CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
|
||||||
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
|
||||||
echo "configure:2312: checking for dlopen in -ldl" >&5
|
echo "configure:2316: checking for dlopen in -ldl" >&5
|
||||||
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
@ -2316,7 +2320,7 @@ else
|
|||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-ldl $LIBS"
|
LIBS="-ldl $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2320 "configure"
|
#line 2324 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
/* We use char because int might match the return type of a gcc2
|
/* We use char because int might match the return type of a gcc2
|
||||||
@ -2327,7 +2331,7 @@ int main() {
|
|||||||
dlopen()
|
dlopen()
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:2331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
@ -2468,7 +2472,7 @@ if test "${with_tclconfig+set}" = set; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
|
echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
|
||||||
echo "configure:2472: checking for Tcl configuration" >&5
|
echo "configure:2476: checking for Tcl configuration" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2576,7 +2580,7 @@ if test "${with_tkconfig+set}" = set; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
|
echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
|
||||||
echo "configure:2580: checking for Tk configuration" >&5
|
echo "configure:2584: checking for Tk configuration" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
@ -2670,7 +2674,7 @@ fi
|
|||||||
#
|
#
|
||||||
no_tcl=true
|
no_tcl=true
|
||||||
echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6
|
echo $ac_n "checking for Tcl private headers""... $ac_c" 1>&6
|
||||||
echo "configure:2674: checking for Tcl private headers" >&5
|
echo "configure:2678: checking for Tcl private headers" >&5
|
||||||
# Check whether --with-tclinclude or --without-tclinclude was given.
|
# Check whether --with-tclinclude or --without-tclinclude was given.
|
||||||
if test "${with_tclinclude+set}" = set; then
|
if test "${with_tclinclude+set}" = set; then
|
||||||
withval="$with_tclinclude"
|
withval="$with_tclinclude"
|
||||||
@ -2736,17 +2740,17 @@ fi
|
|||||||
if test x"${ac_cv_c_tclh}" = x ; then
|
if test x"${ac_cv_c_tclh}" = x ; then
|
||||||
ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
|
ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
|
||||||
echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
|
echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
|
||||||
echo "configure:2740: checking for tclInt.h" >&5
|
echo "configure:2744: checking for tclInt.h" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2745 "configure"
|
#line 2749 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <tclInt.h>
|
#include <tclInt.h>
|
||||||
EOF
|
EOF
|
||||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
{ (eval echo configure:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
{ (eval echo configure:2754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||||
ac_err=`grep -v '^ *+' conftest.out`
|
ac_err=`grep -v '^ *+' conftest.out`
|
||||||
if test -z "$ac_err"; then
|
if test -z "$ac_err"; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
@ -2806,7 +2810,7 @@ fi
|
|||||||
#
|
#
|
||||||
no_tk=true
|
no_tk=true
|
||||||
echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
|
echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
|
||||||
echo "configure:2810: checking for Tk private headers" >&5
|
echo "configure:2814: checking for Tk private headers" >&5
|
||||||
# Check whether --with-tkinclude or --without-tkinclude was given.
|
# Check whether --with-tkinclude or --without-tkinclude was given.
|
||||||
if test "${with_tkinclude+set}" = set; then
|
if test "${with_tkinclude+set}" = set; then
|
||||||
withval="$with_tkinclude"
|
withval="$with_tkinclude"
|
||||||
@ -2872,17 +2876,17 @@ fi
|
|||||||
if test x"${ac_cv_c_tkh}" = x ; then
|
if test x"${ac_cv_c_tkh}" = x ; then
|
||||||
ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
|
ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
|
||||||
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
|
echo $ac_n "checking for tk.h""... $ac_c" 1>&6
|
||||||
echo "configure:2876: checking for tk.h" >&5
|
echo "configure:2880: checking for tk.h" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 2881 "configure"
|
#line 2885 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <tk.h>
|
#include <tk.h>
|
||||||
EOF
|
EOF
|
||||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
{ (eval echo configure:2886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
{ (eval echo configure:2890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||||
ac_err=`grep -v '^ *+' conftest.out`
|
ac_err=`grep -v '^ *+' conftest.out`
|
||||||
if test -z "$ac_err"; then
|
if test -z "$ac_err"; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
|
@ -177,9 +177,13 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
|
|||||||
hpux*)
|
hpux*)
|
||||||
AC_MSG_CHECKING(for HPUX/OSF thread support)
|
AC_MSG_CHECKING(for HPUX/OSF thread support)
|
||||||
if test -f /usr/include/dce/cma_config.h ; then
|
if test -f /usr/include/dce/cma_config.h ; then
|
||||||
AC_MSG_RESULT(yes)
|
if test "$GCC" = "yes" ; then
|
||||||
AC_DEFINE(HAVE_HPUX_THREAD_SUPPORT)
|
AC_MSG_RESULT(yes)
|
||||||
CONFIG_OBS="${CONFIG_OJS} hpux-thread.o"
|
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
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user