ou need to
special-case when the computation results in zero, unless you know
malloc(0) works.
- John Burger
MITRE
chance they can be empty, e.g.,
if test "$gsl_inc_count" = 0 && ...
Historically, the really retentive thing to do is something like:
if test x"$gsl_inc_count" = x0 && ...
or, I suppose, for a numeric comparison this would work:
if test 0"$gsl_inc_
esence of the
modern feature, and die with an intelligent error message if it isn't
found.
- John Burger
MITRE
?)
configure scripts. It contains everything that configure spews to
stdout, plus lots more information, like the compiler calls, etc., all
keyed by the relevant line number of the configure script.
- John Burger
MITRE
ously, this isn't possible if both of the comparands (!) are
variables, but that's an unusual case, in my (limited) experience. Or
is the reversal of the usual idiom just too jarring? Of course, this
is recommended by some for C code, to catch = vs == typos.
- John Burger
MITRE
with -DENABLE_XMMS in the
compiler flags, e.g., using @DEFS@
Which, if any, of these routes are you taking?
- John Burger
MITRE
r=${libexecdir}'
for the same reason as above - if someone changes prefix or libexecdir
at install time via the make command line, your executable is going to
have the wrong value hard-coded into it.
- John Burger
MITRE
is "edit" the value after AC_INIT
happens, taking some care to check that the user didn't explicitly set
it on the command line - I'm not sure how to do this without using
internal details of the generated configure script ...
- John Burger
MITRE
This issue was recently discussed:
http://mail.gnu.org/archive/cgi-bin/
namazu.cgi?query=c%2B%2B+inline&submit=Search%21&idxname=autoconf&max=10
&result=normal&sort=date%3Alate
(Careful of line-broken URL.)
- John Burger
MITRE
of most configure command-line parameters.
- John Burger
MITRE
10 matches
Mail list logo