mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-01 04:20:09 +08:00
configure: prefer here-documents
* configure: use here-documents to improve readability and reduce the clutter.
This commit is contained in:
parent
9c9ca2032b
commit
ba49862de6
106
configure
vendored
106
configure
vendored
@ -262,47 +262,45 @@ fi
|
|||||||
|
|
||||||
if test x"$show_help" = "xyes" ; then
|
if test x"$show_help" = "xyes" ; then
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
||||||
Usage: configure [options]
|
Usage: configure [options]
|
||||||
Options: [defaults in brackets after descriptions]
|
Options: [defaults in brackets after descriptions]
|
||||||
|
|
||||||
|
Standard options:
|
||||||
|
--help print this message
|
||||||
|
--prefix=PREFIX install in PREFIX [$prefix]
|
||||||
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
||||||
|
[same as prefix]
|
||||||
|
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
||||||
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
||||||
|
--tccdir=DIR installation directory [EPREFIX/lib/tcc]
|
||||||
|
--includedir=DIR C header files in DIR [PREFIX/include]
|
||||||
|
--sharedir=DIR documentation root DIR [PREFIX]/share
|
||||||
|
--docdir=DIR documentation in DIR [SHAREDIR/doc/tcc]
|
||||||
|
--mandir=DIR man documentation in DIR [SHAREDIR/man]
|
||||||
|
--infodir=DIR info documentation in DIR [SHAREDIR/info]
|
||||||
|
|
||||||
|
Advanced options (experts only):
|
||||||
|
--source-path=PATH path of source code [$source_path]
|
||||||
|
--cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]
|
||||||
|
--sysroot=PREFIX prepend PREFIX to library/include paths []
|
||||||
|
--cc=CC use C compiler CC [$cc]
|
||||||
|
--disable-static make libtcc.so instead of libtcc.a
|
||||||
|
--disable-rpath disable use of -rpath with the above
|
||||||
|
--strip-binaries strip symbol tables from resulting binaries
|
||||||
|
--with-libgcc use /lib/libgcc_s.so.1 instead of libtcc.a
|
||||||
|
--enable-mingw32 build windows version on linux with mingw32
|
||||||
|
--enable-cygwin build windows version on windows with cygwin
|
||||||
|
[requires cygwin and mingw32-make]
|
||||||
|
--enable-cross build cross compilers
|
||||||
|
--extra-cflags= extra compiler flags
|
||||||
|
--extra-ldflags= extra linker options
|
||||||
|
--with-selinux use mmap instead of exec mem
|
||||||
|
[requires write access to /tmp]
|
||||||
|
--sysincludepaths=... specify system include paths, colon separated
|
||||||
|
--libpaths=... specify system library paths, colon separated
|
||||||
|
--crtprefix=... specify locations of crt?.o, colon separated
|
||||||
|
--elfinterp=... specify elf interpreter
|
||||||
EOF
|
EOF
|
||||||
echo "Standard options:"
|
|
||||||
echo " --help print this message"
|
|
||||||
echo " --prefix=PREFIX install in PREFIX [$prefix]"
|
|
||||||
echo " --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX"
|
|
||||||
echo " [same as prefix]"
|
|
||||||
echo " --bindir=DIR user executables in DIR [EPREFIX/bin]"
|
|
||||||
echo " --libdir=DIR object code libraries in DIR [EPREFIX/lib]"
|
|
||||||
echo " --tccdir=DIR installation directory [EPREFIX/lib/tcc]"
|
|
||||||
echo " --includedir=DIR C header files in DIR [PREFIX/include]"
|
|
||||||
echo " --sharedir=DIR documentation root DIR [PREFIX]/share"
|
|
||||||
echo " --docdir=DIR documentation in DIR [SHAREDIR/doc/tcc]"
|
|
||||||
echo " --mandir=DIR man documentation in DIR [SHAREDIR/man]"
|
|
||||||
echo " --infodir=DIR info documentation in DIR [SHAREDIR/info]"
|
|
||||||
echo ""
|
|
||||||
echo "Advanced options (experts only):"
|
|
||||||
echo " --source-path=PATH path of source code [$source_path]"
|
|
||||||
echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]"
|
|
||||||
echo " --sysroot=PREFIX prepend PREFIX to library/include paths []"
|
|
||||||
echo " --cc=CC use C compiler CC [$cc]"
|
|
||||||
echo " --disable-static make libtcc.so instead of libtcc.a"
|
|
||||||
echo " --disable-rpath disable use of -rpath with the above"
|
|
||||||
echo " --strip-binaries strip symbol tables from resulting binaries"
|
|
||||||
echo " --with-libgcc use /lib/libgcc_s.so.1 instead of libtcc.a"
|
|
||||||
echo " --enable-mingw32 build windows version on linux with mingw32"
|
|
||||||
echo " --enable-cygwin build windows version on windows with cygwin"
|
|
||||||
echo " [requires cygwin and mingw32-make]"
|
|
||||||
echo " --enable-cross build cross compilers"
|
|
||||||
echo " --extra-cflags= extra compiler flags"
|
|
||||||
echo " --extra-ldflags= extra linker options"
|
|
||||||
echo " --with-selinux use mmap instead of exec mem"
|
|
||||||
echo " [requires write access to /tmp]"
|
|
||||||
echo " --sysincludepaths=... specify system include paths, colon separated"
|
|
||||||
echo " --libpaths=... specify system library paths, colon separated"
|
|
||||||
echo " --crtprefix=... specify locations of crt?.o, colon separated"
|
|
||||||
echo " --elfinterp=... specify elf interpreter"
|
|
||||||
echo ""
|
|
||||||
#echo "NOTE: The object files are build at the place where configure is launched"
|
#echo "NOTE: The object files are build at the place where configure is launched"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -359,22 +357,24 @@ if test x"$includedir" = x""; then
|
|||||||
includedir="${prefix}/include"
|
includedir="${prefix}/include"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Binary directory $bindir"
|
cat <<EOF
|
||||||
echo "TinyCC directory $tccdir"
|
Binary directory $bindir
|
||||||
echo "Library directory $libdir"
|
TinyCC directory $tccdir
|
||||||
echo "Include directory $includedir"
|
Library directory $libdir
|
||||||
echo "Manual directory $mandir"
|
Include directory $includedir
|
||||||
echo "Info directory $infodir"
|
Manual directory $mandir
|
||||||
echo "Doc directory $docdir"
|
Info directory $infodir
|
||||||
echo "Target root prefix $sysroot"
|
Doc directory $docdir
|
||||||
echo "Source path $source_path"
|
Target root prefix $sysroot
|
||||||
echo "C compiler $cc"
|
Source path $source_path
|
||||||
echo "Target OS $targetos"
|
C compiler $cc
|
||||||
echo "CPU $cpu"
|
Target OS $targetos
|
||||||
echo "Big Endian $bigendian"
|
CPU $cpu
|
||||||
echo "gprof enabled $gprof"
|
Big Endian $bigendian
|
||||||
echo "cross compilers $build_cross"
|
gprof enabled $gprof
|
||||||
echo "use libgcc $use_libgcc"
|
cross compilers $build_cross
|
||||||
|
use libgcc $use_libgcc
|
||||||
|
EOF
|
||||||
|
|
||||||
echo "Creating config.mak and config.h"
|
echo "Creating config.mak and config.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user