(+bugfix) --help relied on writing a file to disk when there was no reason.

(+bugfix) --help used POCO_BASE before it was defined.  At the time of the help screen, it is known as $base.
This commit is contained in:
Chris McKenzie 2008-06-19 00:59:02 +00:00
parent 6070529f86
commit f578e60dcc

15
dist/configure vendored
View File

@ -12,8 +12,9 @@
# Specify --help to display supported options.
#
helpfile=/tmp/config.help
cat <<ENDHELP >$helpfile
showhelp()
{
cat << ENDHELP
usage: configure {options}
Configure the POCO C++ Libraries.
@ -23,14 +24,14 @@ Options:
--config=<config_name>
Use the given build configuration.
See $POCO_BASE/build/config for possible configs.
See $base/build/config for possible configs.
--prefix=<install_prefix>
Use the given install directory for make install.
Default is /usr/local.
--stdcxx-base=<apache_stdcxx_install_prefix>
If (and only if) the $POCO_BASE/build/config selected with --config
If (and only if) the $base/build/config selected with --config
uses the Apache stdcxx library, then apache_stdcxx_install_prefix
specifies the base directory where stdcxx is installed.
@ -51,6 +52,7 @@ Options:
(such as uclibc-based systems).
ENDHELP
}
# save cwd
build=`pwd`
@ -96,16 +98,13 @@ while [ "$1" != "" ] ; do
fi
if [ "$1" = "--help" ] ; then
cat $helpfile
rm -f $helpfile
showhelp
exit 0
fi
shift
done
rm -f $helpfile
# autodetect build environment
# ...special cases for CYGWIN or MinGW
if [ "$config" = "" ] ; then