Mail Archives: djgpp/2002/11/27/06:30:16
Hello.
Ed Manlove wrote:
>
> How does the configure script expand or what results from the expansion
> of --srcdir="$srcdir" --prefix='${DJDIR}' in the configure script for
> binutils, gnu\binutl-2.121\build.djg\djconfig.sh?
>
> I want to add the --with-headers parameter to gcc configure script. The
> directory I wish to add is
> /dev/env/DJDIR/lib/gcc-lib/h8300-hitachi-hms/2.952/include. I an trying to
> understand how the above terms are expanded by configure and the difference
> between the single quotes '' and the double quotes"". This looks like Perl
> but my Perl knowledge is very basic so any help would be appreciated.
Actually, it's shell-expanded. The double quotes undergo parameter
substitution, so the configure script is passed the value of $srcdir. The
single quotes are not parameter substituted, so the configure script is passed
the text ${DJDIR} as the prefix.
I'm not sure why the prefix is passed like this. Perhaps it's so that the
configure script can be run unchanged if ${DJDIR} changes? If so, why not use
--prefix=/dev/env/DJDIR instead?
Maybe this will do what you want, using /dev/env/DJDIR instead of '${DJDIR}':
<whatever> --srcdir="$srcdir" --prefix=/dev/env/DJDIR
--with-headers=/dev/env/DJDIR/lib/gcc-lib/h8300-hitachi-hms/2.952/include
Regards,
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -