OSDN Git Service

2002-03-30 Krister Walfridsson <cato@df.lth.se>
[pf3gnuchains/gcc-fork.git] / boehm-gc / configure
index 6a82392..edfd4f1 100755 (executable)
@@ -2722,7 +2722,17 @@ EOF
        ;;
     esac
     ;;
- decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
+ win32)
+    cat >> confdefs.h <<\EOF
+#define GC_WIN32_THREADS 1
+EOF
+
+    cat >> confdefs.h <<\EOF
+#define NO_GETENV 1
+EOF
+
+    ;;
+ decosf1 | irix | mach | os2 | solaris | dce | vxworks)
     { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
     ;;
  *)
@@ -2732,7 +2742,7 @@ esac
 
 
 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "configure:2736: checking for dlopen in -ldl" >&5
+echo "configure:2746: checking for dlopen in -ldl" >&5
 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -2740,7 +2750,7 @@ else
   ac_save_LIBS="$LIBS"
 LIBS="-ldl  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 2744 "configure"
+#line 2754 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -2751,7 +2761,7 @@ int main() {
 dlopen()
 ; return 0; }
 EOF
-if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -2776,6 +2786,7 @@ fi
 target_all=libgcjgc.la
 
 
+
 TARGET_ECOS="no"
 # Check whether --with-ecos or --without-ecos was given.
 if test "${with_ecos+set}" = set; then
@@ -2806,10 +2817,8 @@ esac
 
 machdep=
 case "$host" in
- alpha*-*-*)
+ alpha*-*-openbsd*)
     machdep="alpha_mach_dep.lo"
-    ;;
- alpha-*-openbsd*)
     if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
        echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
        # Check whether --enable-shared or --disable-shared was given.
@@ -2837,6 +2846,9 @@ fi
 
     fi
     ;;
+ alpha*-*-*)
+    machdep="alpha_mach_dep.lo"
+    ;;
  i?86-*-solaris2.[89]*)
     cat >> confdefs.h <<\EOF
 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
@@ -2865,12 +2877,16 @@ EOF
 
     ;;
  sparc-sun-solaris2.3*)
+    machdep="sparc_mach_dep.lo"
     cat >> confdefs.h <<\EOF
 #define SUNOS53_SHARED_LIB 1
 EOF
 
     ;;
- ia64-*-hpux*)
+ sparc-sun-solaris2.*)
+    machdep="sparc_mach_dep.lo"
+    ;;
+ ia64-*-*)
     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
     ;;
 esac
@@ -2937,14 +2953,6 @@ if test -n "${with_cross_host}"; then
 EOF
 
    cat >> confdefs.h <<\EOF
-#define NO_CLOCK 1
-EOF
-
-   cat >> confdefs.h <<\EOF
-#define SMALL_CONFIG 1
-EOF
-
-   cat >> confdefs.h <<\EOF
 #define NO_DEBUGGING 1
 EOF
 
@@ -2964,7 +2972,17 @@ EOF
 EOF
 
     case $host in
+      ia64-*-linux* )
+       cat >> confdefs.h <<\EOF
+#define MAKE_BACK_GRAPH 1
+EOF
+
+      ;;
       x86-*-linux* | i586-*-linux* | i686-*-linux* )
+       cat >> confdefs.h <<\EOF
+#define MAKE_BACK_GRAPH 1
+EOF
+
        echo "configure: warning: "Client must not use -fomit-frame-pointer."" 1>&2
        cat >> confdefs.h <<\EOF
 #define SAVE_CALL_COUNT 8