# directories to be built in the native environment only
#
native_only="autoconf cvs emacs emacs19 fileutils find grep groff gzip hello
- indent ispell m4 rcs recode sed shellutils tar textutils gash tk
+ indent ispell m4 rcs recode sed shellutils tar textutils gash
uudecode wdiff gprof"
# directories to be built in a cross environment only
mips*-sgi-irix3*) host_makefile_frag=config/mh-sysv ;;
mips*-*-sysv4*) host_makefile_frag=config/mh-sysv4 ;;
mips*-*-sysv*) host_makefile_frag=config/mh-riscos ;;
- i[345]86-ncr-sysv43) host_makefile_frag=config/mh-ncrsvr43 ;;
+ i[345]86-ncr-sysv4.3) host_makefile_frag=config/mh-ncrsvr43 ;;
i[345]86-ncr-sysv4*) host_makefile_frag=config/mh-ncr3000 ;;
i[345]86-*-sco*) host_makefile_frag=config/mh-sco ;;
i[345]86-*-isc*) host_makefile_frag=config/mh-sysv ;;
;;
esac
+# We default to --with-shared on platforms where -fpic is meaningless.
+# Well, we don't yet, but we will.
+if false && [ "${host}" = "${target}" ] && [ x${enable_shared} = x ]; then
+ case "${target}" in
+ alpha-dec-osf*) enable_shared=yes ;;
+ mips-sgi-irix5*) enable_shared=yes ;;
+ *) enable_shared=no ;;
+ esac
+fi
+
+if [ x${enable_shared} = xyes ]; then
+ waugh=
+ case "${host}" in
+ hppa*-*-*) waugh=config/mh-papic ;;
+ i[345]86-*-*) waugh=config/mh-x86pic ;;
+ *-*-*) waugh=config/mh-${host_cpu}pic ;;
+ esac
+ if [ -n "${host_makefile_frag}" ] && [ -f ${srcdir}/${waugh} ]; then
+ cat ${srcdir}/${host_makefile_frag} > mh-frag
+ cat ${srcdir}/${waugh} >> mh-frag
+ host_makefile_frag=mh-frag
+ fi
+fi
+
# per-target:
case "${target}" in
case "${target}" in
*-*-netware)
- noconfigdirs="$noconfigdirs libg++ libstdc++ librx newlib"
+ noconfigdirs="$noconfigdirs libg++ libstdc++ librx newlib xiberty"
;;
alpha-dec-osf*)
# ld works, but does not support shared libraries. emacs doesn't
# newlib is not 64 bit ready
noconfigdirs="$noconfigdirs newlib"
;;
+# start-sanitize-arc
+ arc-*-*)
+ noconfigdirs="$noconfigdirs libg++ libstdc++ libio librx"
+ ;;
+# end-sanitize-arc
arm-*-*)
noconfigdirs="$noconfigdirs ld"
;;
"" | cc*) noconfigdirs="$noconfigdirs emacs emacs19" ;;
*) ;;
esac
- noconfigdirs="$noconfigdirs ld shellutils tk"
+ noconfigdirs="$noconfigdirs ld shellutils"
;;
i[345]86-*-go32)
# add the go32 support tools to the list
;;
rs6000-*-*)
# a gcc built textutils will cause the linker to hang on 'join'
- noconfigdirs="$noconfigdirs ld binutils gprof textutils"
+ noconfigdirs="$noconfigdirs gas ld binutils gprof textutils"
;;
m68k-apollo-*)
noconfigdirs="$noconfigdirs ld binutils gprof"
fi
fi
+if [ x${enable_shared} = xyes ]; then
+ case "${target}" in
+ hppa*-*-*) target_makefile_frag=config/mt-papic ;;
+ i[345]86-*-*) target_makefile_frag=config/mt-x86pic ;;
+ *-*-*) target_makefile_frag=config/mt-${target_cpu}pic ;;
+ esac
+fi
+
#
# Local Variables:
# fill-column: 131