gcc/libstdc++-v3/configure.target
Phil Edwards 9b8fd32cca acinclude.m4: Cosmetic changes only.
2001-01-23  Phil Edwards  <pme@sources.redhat.com>

	* acinclude.m4:  Cosmetic changes only.
	* aclocal.m4:  Regenerated.
	* configure:  Regenerated.
	* configure.target:  Update documented list of changed variables.
	* docs/html/install.html:  Fix typo.
	* docs/html/20_util/howto.html:  More notes on auto_ptr.
	* docs/html/27_io/howto.html:  More notes on streabufs.
	* docs/html/faq/index.html:  Add rel_ops problem and mention the
	  DEC as(1) .subsection difficulty.
	* docs/html/faq/index.txt:  Regenerated.

From-SVN: r39200
2001-01-23 17:02:28 +00:00

152 lines
3.8 KiB
SYSTEMD

# configure.target
# This shell script handles all target based configuration for libstdc++.
# It sets various shell variables based on the the target and the
# configuration options. You can modify this shell script without
# needing to rerun autoconf.
# This shell script should be invoked as
# . configure.target
# If it encounters an error, it will exit with a message.
# It uses the following shell variables:
# target The configuration target
# target_cpu The configuration target CPU
# target_os The configuration target OS
# target_optspace --enable-target-optspace ("yes", "no", "")
# It possibly modifies the following shell variables:
# glibcpp_cflags Special CFLAGS to use when building
# glibcpp_cxxflags Special CXXFLAGS to use when building
# cpu_include_dir CPU-specific include directory, relative to srcdir
# os_include_dir OS-specific include directory, relative to srcdir
# ctype_include_dir Platform-specific (usually OS) ctype include dir
# The first two are set in configure.host and modified here.
# These are "local" and should be set in the switch statements below. They
# will be appended to their real conterparts once the dust settles.
l_glibcpp_cflags=
l_glibcpp_cxxflags=
# Set any CPU dependent compiler flags.
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
case "${target_cpu}" in
alpha*)
cpu_include_dir="config/cpu/alpha"
;;
arm*)
cpu_include_dir="config/cpu/arm"
;;
ia64)
cpu_include_dir="config/cpu/ia64"
;;
i386)
cpu_include_dir="config/cpu/i386"
;;
i486 | i586 | i686 | i786)
cpu_include_dir="config/cpu/i486"
;;
powerpc | rs6000)
cpu_include_dir="config/cpu/powerpc"
;;
sparc64 | ultrasparc)
cpu_include_dir="config/cpu/sparc/sparc64"
;;
sparc*)
cpu_include_dir="config/cpu/sparc/sparc32"
;;
*)
cpu_include_dir="config/cpu/generic"
;;
esac
# Set any OS dependent compiler flags.
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
case "${target_os}" in
aix4.[[3456789]]* | aix[[56789]]*)
os_include_dir="config/os/aix"
case "$CXX" in
*pthread*)
enable_threads='posix'
;;
*)
enable_threads='no'
;;
esac
ctype_include_dir=${os_include_dir}
;;
aix*)
os_include_dir="config/os/aix"
ctype_include_dir=${os_include_dir}
;;
bsd* | freebsd* )
os_include_dir="config/os/bsd/freebsd"
ctype_include_dir=${os_include_dir}
;;
cygwin*)
os_include_dir="config/os/newlib"
;;
*djgpp*)
os_include_dir="config/os/djgpp"
;;
linux* | gnu*)
os_include_dir="config/os/gnu-linux"
ctype_include_dir=${os_include_dir}
;;
irix*)
os_include_dir="config/os/irix"
ctype_include_dir=${os_include_dir}
;;
netbsd*)
os_include_dir="config/os/bsd/netbsd"
ctype_include_dir=${os_include_dir}
;;
solaris2.5*)
os_include_dir="config/os/solaris/solaris2.5"
ctype_include_dir=${os_include_dir}
;;
solaris2.6*)
os_include_dir="config/os/solaris/solaris2.6"
ctype_include_dir=${os_include_dir}
;;
solaris2.7* | solaris2.8*)
os_include_dir="config/os/solaris/solaris2.7"
ctype_include_dir=${os_include_dir}
;;
hpux)
os_include_dir="config/os/hpux"
;;
*)
os_include_dir="config/os/generic"
;;
esac
# Set any flags dependant on the full target triplet.
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
case "${target}" in
*-*-aix*)
ATOMICITYH=$os_include_dir
;;
*-*-irix*)
ATOMICITYH=$os_include_dir
;;
*)
ATOMICITYH=$cpu_include_dir
;;
esac
# Okay, folks, show's over. Move along, move along.
glibcpp_cflags="${glibcpp_cflags} ${libgcj_flags} ${l_glibcpp_cflags}"
glibcpp_cxxflags="${glibcpp_cxxflags} ${libgcj_flags} ${l_glibcpp_cxxflags}"