[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libltdl 2.2.2 compile problem on AIX system with compiler scripts
From: |
Bob Friesenhahn |
Subject: |
Re: libltdl 2.2.2 compile problem on AIX system with compiler scripts |
Date: |
Sat, 17 May 2008 10:22:27 -0500 (CDT) |
On Fri, 16 May 2008, Tom Epperly wrote:
Have you looked at why this wrapper fails? Perhaps you can add yet another
wrapper which adds some extra "escaping" to the arguments (or re-write the
arguments) so that they survive the problem wrapper? This would of course
make the build a little bit slower.
My understanding is that for argument processing in bash where you
potentially add or remove command line arguments, it's basically impossible
to preserve the argument quoting. You need to use another language, and the
system administrators use bash because it's the most common language for
things like this despite the rare problems with quoting.
It is better to use the term "difficult" or "challenging" rather than
"impossible". As an example, Autoconf and Libtool are most often
executed via bash yet they do manage to mostly deal with preserving
command line arguments ok (except for arguments containing spaces).
It is necessary to add the right number of backslashes at the right
points in order to make sure that the next level of shell processing
sees the arguments as intended.
Depending on what the problem wrapper is doing, the problem might be
easily solved by escaping some arguments on the way in, or it may be
truely hopeless due to several levels of processing.
If the problem argument looks like:
'-DLT_CONFIG_H=<config.h>'
then perhaps this translation might work
'-DLT_CONFIG_H\=\<config.h\>'
or this
"\'-DLT_CONFIG_H=<config.h>\'"
Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/