📄 configure.in
字号:
;; *-*-linux-gnu*) target_makefile_frag="${target_makefile_frag} config/mt-linux" ;; *-*-aix4.[3456789]* | *-*-aix[56789].*) target_makefile_frag="${target_makefile_frag} config/mt-aix43" ;; mips*-*-pe | sh*-*-pe | *arm-wince-pe) target_makefile_frag="${target_makefile_frag} config/mt-wince" ;;esac# If --enable-target-optspace always use -Os instead of -O2 to build# the target libraries, similarly if it is not specified, use -Os# on selected platforms.case "${enable_target_optspace}:${target}" in yes:*) target_makefile_frag="${target_makefile_frag} config/mt-ospace" ;; :d30v-*) target_makefile_frag="${target_makefile_frag} config/mt-d30v" ;; :m32r-* | :d10v-* | :fr30-*) target_makefile_frag="${target_makefile_frag} config/mt-ospace" ;; no:* | :*) ;; *) echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 ;;esacskipdirs=gasdir=gasuse_gnu_ld=use_gnu_as=# some tools are so dependent upon X11 that if we're not building with X, # it's not even worth trying to configure, much less build, that tool.case ${with_x} in yes | "") # the default value for this tree is that X11 is available ;; no) skipdirs="${skipdirs} tk libgui gash" ;; *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;esac# Some tools are only suitable for building in a "native" situation.# Those are added when we have a host==target configuration. For cross# toolchains, we add some directories that should only be useful in a# cross-compiler.is_cross_compiler=if [ x"${host}" = x"${target}" ] ; then # when doing a native toolchain, don't build the targets # that are in the 'cross only' list skipdirs="${skipdirs} ${cross_only}" is_cross_compiler=noelse # similarly, don't build the targets in the 'native only' # list when building a cross compiler skipdirs="${skipdirs} ${native_only}" is_cross_compiler=yesfi # We always want to use the same name for this directory, so that dejagnu# can reliably find it.target_subdir=${target_alias}if [ ! -d ${target_subdir} ] ; then if mkdir ${target_subdir} ; then true else echo "'*** could not make ${PWD=`pwd`}/${target_subdir}" 1>&2 exit 1 fificopy_dirs=# Handle --with-headers=XXX. The contents of the named directory are# copied to $(tooldir)/sys-include.if [ x"${with_headers}" != x ]; then if [ x${is_cross_compiler} = xno ]; then echo 1>&2 '***' --with-headers is only supported when cross compiling exit 1 fi case "${exec_prefixoption}" in "") x=${prefix} ;; *) x=${exec_prefix} ;; esac copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"fi# Handle --with-libs=XXX. Multiple directories are permitted. The# contents are copied to $(tooldir)/lib.if [ x"${with_libs}" != x ]; then if [ x${is_cross_compiler} = xno ]; then echo 1>&2 '***' --with-libs is only supported when cross compiling exit 1 fi # Copy the libraries in reverse order, so that files in the first named # library override files in subsequent libraries. case "${exec_prefixoption}" in "") x=${prefix} ;; *) x=${exec_prefix} ;; esac for l in ${with_libs}; do copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" donefi# If both --with-headers and --with-libs are specified, default to# --without-newlib.if [ x"${with_headers}" != x ] && [ x"${with_libs}" != x ]; then if [ x"${with_newlib}" = x ]; then with_newlib=no fifi# Recognize --with-newlib/--without-newlib.if [ x${with_newlib} = xno ]; then skipdirs="${skipdirs} target-newlib"elif [ x${with_newlib} = xyes ]; then skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`fi# Default to using --with-stabs for certain targets.if [ x${with_stabs} = x ]; then case "${target}" in mips*-*-irix6*) ;; mips*-*-* | alpha*-*-osf*) with_stabs=yes; withoptions="${withoptions} --with-stabs" ;; esacfi# Handle ${copy_dirs}set fnord ${copy_dirs}shiftwhile [ $# != 0 ]; do if [ -f $2/COPIED ] && [ x"`cat $2/COPIED`" = x"$1" ]; then : else echo Copying $1 to $2 # Use the install script to create the directory and all required # parent directories. if [ -d $2 ]; then : else echo >config.temp ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED fi # Copy the directory, assuming we have tar. # FIXME: Should we use B in the second tar? Not all systems support it. (cd $1; tar -cf - .) | (cd $2; tar -xpf -) # It is the responsibility of the user to correctly adjust all # symlinks. If somebody can figure out how to handle them correctly # here, feel free to add the code. echo $1 > $2/COPIED fi shift; shiftdone# Configure extra directories which are host specificcase "${host}" in i[3456]86-*-go32*) configdirs="$configdirs dosrel" ;; i[3456]86-*-mingw32*) configdirs="$configdirs dosrel" ;; *-cygwin*) configdirs="$configdirs libtermcap dosrel" ;;esac# Remove more programs from consideration, based on the host or # target this usually means that a port of the program doesn't# exist yet.noconfigdirs=""case "${host}" in i[3456]86-*-vsta) noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl apache inet itcl tix db snavigator gnuserv gettext" ;; i[3456]86-*-go32* | i[3456]86-*-msdosdjgpp*) noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl apache inet itcl tix db snavigator gnuserv gettext libffi" ;; i[3456]86-*-mingw32*) # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl apache inet itcl tix db snavigator gnuserv" noconfigdirs="expect dejagnu cvs autoconf automake send-pr rcs guile perl texinfo apache inet libtool" ;; i[3456]86-*-beos*) noconfigdirs="$noconfigdirs tk itcl tix libgui gdb" ;; *-*-cygwin*) noconfigdirs="autoconf automake send-pr rcs guile perl texinfo apache inet" ;; *-*-netbsd*) noconfigdirs="rcs" ;; ppc*-*-pe) noconfigdirs="patch diff make tk tcl expect dejagnu cvssrc autoconf automake texinfo bison send-pr gprof rcs guile perl apache inet itcl tix db snavigator gnuserv" ;; powerpc-*-beos*) noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline" ;;esaccase "${target}" in *-*-netware) noconfigdirs="$noconfigdirs ${libstdcxx_version} target-newlib target-libiberty target-libgloss target-libffi" ;; *-*-rtems*) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; *-*-vxworks*) noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libffi" ;; alpha*-dec-osf*) # ld works, but does not support shared libraries. emacs doesn't # work. newlib is not 64 bit ready. I'm not sure about fileutils. # gas doesn't generate exception information. noconfigdirs="$noconfigdirs gas ld emacs fileutils target-newlib target-libgloss" ;; alpha*-*-*vms*) noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss target-libffi" ;; alpha*-*-*) # newlib is not 64 bit ready noconfigdirs="$noconfigdirs target-newlib target-libgloss" ;; sh*-*-pe|mips*-*-pe|*arm-wince-pe) noconfigdirs="$noconfigdirs target-libjava target-libffi target-zlib" noconfigdirs="$noconfigdirs target-boehm-gc target-qthreads target-examples" noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim" noconfigdirs="$noconfigdirs expect dejagnu" # the C++ libraries don't build on top of CE's C libraries noconfigdirs="$noconfigdirs ${libstdcxx_version}" skipdirs="$skipdirs target-newlib" case "${host}" in *-*-cygwin*) ;; # keep gdb and readline *) noconfigdirs="$noconfigdirs gdb readline ${libstdcxx_version}" ;; esac ;; arc-*-*) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; arm-*-pe*) noconfigdirs="$noconfigdirs target-libgloss" ;; arm-*-coff*) noconfigdirs="$noconfigdirs target-libgloss" if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-cygmon" fi ;; arm-*-elf*) noconfigdirs="$noconfigdirs target-libgloss" if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-cygmon" fi ;; arm-*-oabi*) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; thumb-*-coff) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; thumb-*-elf) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; thumb-*-oabi) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; strongarm-*-elf) noconfigdirs="$noconfigdirs target-libgloss target-libffi" if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-cygmon" fi ;; strongarm-*-coff) noconfigdirs="$noconfigdirs target-libgloss target-libffi" if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-cygmon" fi ;; xscale-*-elf) noconfigdirs="$noconfigdirs target-libgloss target-libffi" if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-cygmon" fi ;; xscale-*-coff) noconfigdirs="$noconfigdirs target-libgloss target-libffi" if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-cygmon" fi ;; thumb-*-pe) noconfigdirs="$noconfigdirs target-libgloss target-libffi" ;; arm-*-riscix*) noconfigdirs="$noconfigdirs ld target-libgloss target-libffi" ;; c4x-*-*) noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss target-libffi" ;; c54x*-*-* | tic54x-*-*) noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss target-libffi gcc gdb newlib" ;; d10v-*-*) noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss target-libffi" ;; d30v-*-*) ;; fr30-*-elf*) if [ x${is_cross_compiler} != xno ] ; then target_configdirs="${target_configdirs} target-bsp target-libstub target-cygmon" fi ;; h8300*-*-* | \ h8500-*-*) noconfigdirs="$noconfigdirs ${libstdcxx_version} target-libgloss target-libffi" ;; hppa*-*-*elf* | \ hppa*-*-linux-gnu* | \ hppa*-*-lites* | \ hppa*64*-*-*) # Do configure ld/binutils/gas for this case. ;; hppa*-*-*) # HP's C compiler doesn't handle Emacs correctly (but on BSD and Mach # cc is gcc, and on any system a user should be able to link cc to # whatever they want. FIXME, emacs emacs19). case "${CC}" in "" | cc*) noconfigdirs="$noconfigdirs emacs emacs19" ;; *) ;;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -