#!/bin/sh
# Configuration script
-# Copyright (C) 1988, 1990, 1991, 1992 Free Software Foundation, Inc.
+# Copyright (C) 1988, 1990-1993 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
withopt=`echo ${arg} | sed 's:^-*\(with[^=]*\)=.*$:\1:;s/-/_/g'`
withval=`echo ${arg} | sed 's:^-*with[^=]*=\(.*\)$:\1:'`
eval $withopt="$withval"
- withoptions="$withoptions -$withopt=\"$withval\""
+ withoptions="$withoptions $arg"
;;
-with* | --with*)
withopt=`echo ${arg} | sed 's:^-*with:with:;s/-/_/g'`
eval $withopt=yes
- withoptions="$withoptions -$withopt"
+ withoptions="$withoptions $arg"
;;
-x | --x) ;;
-* | --*)
*) # otherwise relative
case "${subdir}" in
.) makesrcdir=${srcdir} ;;
- *) makesrcdir=`echo ${subdir} | sed -e 's:[^./][^./]*:..:g'`/${srcdir}/${subdir} ;;
+ *) makesrcdir=${invsubdir}${srcdir}/${subdir} ;;
esac
;;
esac
if [ ! -r ${srcdir}/${file} ] ; then
echo '***' "${progname}: cannot create a link \"${link}\"," 1>&2
- echo '***' "since the file \"${file}\" does not exist." 1>&2
+ echo '***' "since the file \"${srcdir}/${file}\" does not exist." 1>&2
exit 1
fi