? libgloss-m68k.patch ? m68k/autom4te.cache Index: m68k/Makefile.in =================================================================== RCS file: /home/cvs/pizzafactory/backends/src/libgloss/m68k/Makefile.in,v retrieving revision 1.1.1.2 diff -u -p -r1.1.1.2 Makefile.in --- m68k/Makefile.in 6 Sep 2006 15:06:09 -0000 1.1.1.2 +++ m68k/Makefile.in 6 Oct 2006 14:48:27 -0000 @@ -45,12 +45,12 @@ INSTALL_DATA = @INSTALL_DATA@ SHELL = /bin/sh -CC = @CC@ +override CC = @CC@ -AS = @AS@ -AR = @AR@ -LD = @LD@ -RANLIB = @RANLIB@ +override AS = @AS@ +override AR = @AR@ +override LD = @LD@ +override RANLIB = @RANLIB@ AR_FLAGS = qv OBJDUMP = `if [ -f ${objroot}/../binutils/objdump ] ; \ @@ -153,7 +153,9 @@ CF_SCRIPTS= $(CF_RAM_SCRIPTS) $(CF_ROM_ # it to link is a good test, so we ignore all the errors for now. # all: ${SIM_CRT0} ${SIM_BSP} ${CRT0} ${BCC_BSP} ${IDP_BSP} ${IDPGDB_BSP} \ - ${MVME135_BSP} ${MVME162_BSP} ${BDM_CRT0} ${BDM_BSP} ${CF_SCRIPTS} + ${MVME135_BSP} ${MVME162_BSP} ${CF_SCRIPTS} \ +@bdm_comment@ ${BDM_CRT0} ${BDM_BSP} + # # here's where we build the board support packages for each target Index: m68k/configure =================================================================== RCS file: /home/cvs/pizzafactory/backends/src/libgloss/m68k/configure,v retrieving revision 1.1.1.2 diff -u -p -r1.1.1.2 configure --- m68k/configure 12 May 2006 11:05:43 -0000 1.1.1.2 +++ m68k/configure 6 Oct 2006 14:48:27 -0000 @@ -272,7 +272,7 @@ PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="crt0.S" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS AR LD RANLIB ac_ct_RANLIB CCAS CCASFLAGS host_makefile_frag_path target_makefile_frag_path LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AS AR LD RANLIB ac_ct_RANLIB CCAS CCASFLAGS host_makefile_frag_path target_makefile_frag_path bdm_comment LIBOBJS LTLIBOBJS' ac_subst_files='host_makefile_frag target_makefile_frag' # Initialize some variables set by options. @@ -1956,6 +1956,34 @@ target_makefile_frag_path=$target_makefi +echo "$as_me:$LINENO: checking whether ${CC} supports halt instruction" >&5 +echo $ECHO_N "checking whether ${CC} supports halt instruction... $ECHO_C" >&6 +if test "${m68k_bdm_support+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + echo 'void conftest(void) { __asm__ __volatile__ ("halt" ::: "memory"); }' > conftest.c + if { ac_try='${CC} $CFLAGS $CPPFLAGS -c conftest.c 1>&5' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } + then + m68k_bdm_support=yes + else + m68k_bdm_support=no + fi + rm -f conftest* +fi +echo "$as_me:$LINENO: result: $m68k_bdm_support" >&5 +echo "${ECHO_T}$m68k_bdm_support" >&6 +if test "x$m68k_bdm_support" = xno; then + bdm_comment=\# +else + bdm_comment= +fi + + ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF @@ -2661,6 +2689,7 @@ s,@CCAS@,$CCAS,;t t s,@CCASFLAGS@,$CCASFLAGS,;t t s,@host_makefile_frag_path@,$host_makefile_frag_path,;t t s,@target_makefile_frag_path@,$target_makefile_frag_path,;t t +s,@bdm_comment@,$bdm_comment,;t t s,@LIBOBJS@,$LIBOBJS,;t t s,@LTLIBOBJS@,$LTLIBOBJS,;t t /@host_makefile_frag@/r $host_makefile_frag Index: m68k/configure.in =================================================================== RCS file: /home/cvs/pizzafactory/backends/src/libgloss/m68k/configure.in,v retrieving revision 1.1.1.2 diff -u -p -r1.1.1.2 configure.in --- m68k/configure.in 12 May 2006 11:05:43 -0000 1.1.1.2 +++ m68k/configure.in 6 Oct 2006 14:48:27 -0000 @@ -59,6 +59,23 @@ target_makefile_frag_path=$target_makefi AC_SUBST(target_makefile_frag_path) AC_SUBST_FILE(target_makefile_frag) +AC_CACHE_CHECK(whether ${CC} supports halt instruction, + m68k_bdm_support, [dnl + echo 'void conftest(void) { __asm__ __volatile__ ("halt" ::: "memory"); }' > conftest.c + if AC_TRY_COMMAND([${CC} $CFLAGS $CPPFLAGS -c conftest.c 1>&AS_MESSAGE_LOG_FD]) + then + m68k_bdm_support=yes + else + m68k_bdm_support=no + fi + rm -f conftest*]) +if test "x$m68k_bdm_support" = xno; then + bdm_comment=\# +else + bdm_comment= +fi +AC_SUBST(bdm_comment) + AC_CONFIG_FILES(Makefile, . ${libgloss_topdir}/config-ml.in, srcdir=${srcdir}