mirror of
https://github.com/frida/tinycc
synced 2024-11-28 18:43:07 +03:00
configure: improvements to option --tccdir
This commit is contained in:
parent
d16722481f
commit
3b3a7cc8ba
13
configure
vendored
13
configure
vendored
@ -259,14 +259,20 @@ exit 1
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$mingw32" = "yes" ; then
|
if test "$mingw32" = "yes" ; then
|
||||||
|
if test x"$tccdir" = x""; then
|
||||||
|
tccdir="tcc"
|
||||||
|
fi
|
||||||
if test -z "$prefix" ; then
|
if test -z "$prefix" ; then
|
||||||
prefix="C:/Program Files/tcc"
|
prefix="C:/Program Files/${tccdir}"
|
||||||
fi
|
fi
|
||||||
execprefix="$prefix"
|
execprefix="$prefix"
|
||||||
bindir="$prefix"
|
bindir="$prefix"
|
||||||
tccdir="$prefix"
|
tccdir="$prefix"
|
||||||
docdir="$prefix/doc"
|
docdir="$prefix/doc"
|
||||||
else
|
else
|
||||||
|
if test x"$tccdir" = x""; then
|
||||||
|
tccdir="${libdir}/tcc"
|
||||||
|
fi
|
||||||
if test -z "$prefix" ; then
|
if test -z "$prefix" ; then
|
||||||
prefix="/usr/local"
|
prefix="/usr/local"
|
||||||
fi
|
fi
|
||||||
@ -277,16 +283,13 @@ else
|
|||||||
bindir="${execprefix}/bin"
|
bindir="${execprefix}/bin"
|
||||||
fi
|
fi
|
||||||
if test x"$docdir" = x""; then
|
if test x"$docdir" = x""; then
|
||||||
docdir="$prefix/share/doc/tcc"
|
docdir="$prefix/share/doc/${tccdir}"
|
||||||
fi
|
fi
|
||||||
fi # mingw32
|
fi # mingw32
|
||||||
|
|
||||||
if test x"$libdir" = x""; then
|
if test x"$libdir" = x""; then
|
||||||
libdir="${execprefix}/lib"
|
libdir="${execprefix}/lib"
|
||||||
fi
|
fi
|
||||||
if test x"$tccdir" = x""; then
|
|
||||||
tccdir="${libdir}/tcc"
|
|
||||||
fi
|
|
||||||
if test x"$mandir" = x""; then
|
if test x"$mandir" = x""; then
|
||||||
mandir="${prefix}/man"
|
mandir="${prefix}/man"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user