In article <19990812163350.I5486@deejai.mch.sni.de> you wrote:
> However, I think it would be safer to also accept relative paths for
> the --*prefix= options. Think of "./configure --prefix=../.."
>
> A simple extra check like
>
> if [ -d "$prefix" ]; then
> case "$prefix" in
> /*) ;;
> *) prefix=`cd "$prefix"; /bin/pwd`;;
> esac
> fi
>
> would be sufficient, no? Or is that not portable enough?
It is portable, of course. But I'm not convinced whether it's reasonable to
hard-code physical paths like /v/dsk/3/f/e/apache/SRC/apache-2.0/mpm into a
program ;)
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
|