History

configure: --sharedir documentation root

Henry Kroll III committed 15 years ago

Commit f449f981 parent 44f70551 file · +41 −25Browse files

Unified · Split

configure+41−25
@@ -102,7 +102,7 @@ for opt do · 101 unmodified lines
102 ;;102 ;;
103 --exec-prefix=*) execprefix=`echo $opt | cut -d '=' -f 2`103 --exec-prefix=*) execprefix=`echo $opt | cut -d '=' -f 2`
104 ;;104 ;;
105 --tccdir=*) tccdir=${libdir}/`echo $opt | cut -d '=' -f 2`105 --tccdir=*) tccdir=`echo $opt | cut -d '=' -f 2`
106 ;;106 ;;
107 --bindir=*) bindir=`echo $opt | cut -d '=' -f 2`107 --bindir=*) bindir=`echo $opt | cut -d '=' -f 2`
108 ;;108 ;;
@@ -110,10 +110,14 @@ for opt do · 1 unmodified line
110 ;;110 ;;
111 --includedir=*) includedir=`echo $opt | cut -d '=' -f 2`111 --includedir=*) includedir=`echo $opt | cut -d '=' -f 2`
112 ;;112 ;;
113 --sharedir=*) sharedir=`echo $opt | cut -d '=' -f 2`
114 ;;
113 --mandir=*) mandir=`echo $opt | cut -d '=' -f 2`115 --mandir=*) mandir=`echo $opt | cut -d '=' -f 2`
114 ;;116 ;;
115 --infodir=*) infodir=`echo $opt | cut -d '=' -f 2`117 --infodir=*) infodir=`echo $opt | cut -d '=' -f 2`
116 ;;118 ;;
119 --docdir=*) docdir=`echo $opt | cut -d '=' -f 2`
120 ;;
117 --sysroot=*) sysroot=`echo $opt | cut -d '=' -f 2`121 --sysroot=*) sysroot=`echo $opt | cut -d '=' -f 2`
118 ;;122 ;;
119 --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`123 --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
@@ -237,8 +241,10 @@ echo " --bindir=DIR user executables in DIR [EPREFIX/bin]" · 117 unmodified lines
237echo " --libdir=DIR object code libraries in DIR [EPREFIX/lib]"241echo " --libdir=DIR object code libraries in DIR [EPREFIX/lib]"
238echo " --tccdir=DIR installation directory [EPREFIX/lib/tcc]"242echo " --tccdir=DIR installation directory [EPREFIX/lib/tcc]"
239echo " --includedir=DIR C header files in DIR [PREFIX/include]"243echo " --includedir=DIR C header files in DIR [PREFIX/include]"
240echo " --mandir=DIR man documentation in DIR [PREFIX/man]"244echo " --sharedir=DIR documentation root DIR [PREFIX]"
241echo " --infodir=DIR info documentation in DIR [PREFIX/info]"245echo " --docdir=DIR documentation in DIR [SHAREDIR/doc/tcc]"
246echo " --mandir=DIR man documentation in DIR [SHAREDIR/man]"
247echo " --infodir=DIR info documentation in DIR [SHAREDIR/info]"
242echo ""248echo ""
243echo "Advanced options (experts only):"249echo "Advanced options (experts only):"
244echo " --source-path=PATH path of source code [$source_path]"250echo " --source-path=PATH path of source code [$source_path]"
@@ -260,45 +266,55 @@ echo "" · 15 unmodified lines
260#echo "NOTE: The object files are build at the place where configure is launched"266#echo "NOTE: The object files are build at the place where configure is launched"
261exit 1267exit 1
262fi268fi
263 269
264if test "$mingw32" = "yes" ; then270if test "$mingw32" = "yes" ; then
265 if test x"$tccdir" = x""; then271 if test x"$tccdir" = x""; then
266 tccdir="tcc"272 tccdir="tcc"
267 fi273 fi
268 if test -z "$prefix" ; then274 if test -z "$prefix" ; then
269 prefix="C:/Program Files/${tccdir}"275 prefix="C:/Program Files/${tccdir}"
276 fi
277 if test -z "$sharedir" ; then
278 sharedir="${prefix}"
270 fi279 fi
271 execprefix="$prefix"280 execprefix="$prefix"
272 bindir="$prefix"281 bindir="${prefix}"
273 tccdir="$prefix"282 tccdir="${prefix}"
274 docdir="$prefix/doc"283 libdir="${prefix}/lib"
284 docdir="${sharedir}/doc"
285 mandir="${sharedir}/man"
286 infodir="${sharedir}/info"
275else287else
276 if test x"$tccdir" = x""; then
277 tccdir="${libdir}/tcc"
278 fi
279 if test -z "$prefix" ; then288 if test -z "$prefix" ; then
280 prefix="/usr/local"289 prefix="/usr/local"
290 fi
291 if test -z "$sharedir" ; then
292 sharedir="${prefix}"
281 fi293 fi
282 if test x"$execprefix" = x""; then294 if test x"$execprefix" = x""; then
283 execprefix="${prefix}"295 execprefix="${prefix}"
296 fi
297 if test x"$libdir" = x""; then
298 libdir="${execprefix}/lib"
284 fi299 fi
285 if test x"$bindir" = x""; then300 if test x"$bindir" = x""; then
286 bindir="${execprefix}/bin"301 bindir="${execprefix}/bin"
302 fi
303 if test x"$tccdir" = x""; then
304 tccdir="tcc"
287 fi305 fi
288 if test x"$docdir" = x""; then306 if test x"$docdir" = x""; then
289 docdir="$prefix/share/doc/${tccdir}"307 docdir="${sharedir}/doc/${tccdir}"
308 fi
309 if test x"$mandir" = x""; then
310 mandir="${sharedir}/man"
290 fi311 fi
312 if test x"$infodir" = x""; then
313 infodir="${sharedir}/info"
314 fi
315 tccdir="${libdir}/${tccdir}"
291fi # mingw32316fi # mingw32
292 317
293if test x"$libdir" = x""; then
294libdir="${execprefix}/lib"
295fi
296if test x"$mandir" = x""; then
297mandir="${prefix}/man"
298fi
299if test x"$infodir" = x""; then
300infodir="${prefix}/info"
301fi
302if test x"$includedir" = x""; then318if test x"$includedir" = x""; then
303includedir="${prefix}/include"319includedir="${prefix}/include"
304fi320fi
@@ -308,7 +324,7 @@ echo "TinyCC directory $tccdir" · 3 unmodified lines
308echo "Library directory $libdir"324echo "Library directory $libdir"
309echo "Include directory $includedir"325echo "Include directory $includedir"
310echo "Manual directory $mandir"326echo "Manual directory $mandir"
311echo "Info directory $infodir"327echo "Info directory $infodir"
312echo "Doc directory $docdir"328echo "Doc directory $docdir"
313echo "Target root prefix $sysroot"329echo "Target root prefix $sysroot"
314echo "Source path $source_path"330echo "Source path $source_path"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t