about adding an option so that, say, --m4-options=--nesting-limit=300 can
fix that? Or maybe this limit should be increased by default?
Andreas.
--
Andreas Schwab "And now for something
SuSE Labscompletely differen
Akim Demaille <[EMAIL PROTECTED]> writes:
|> >>>>> "Andreas" == Andreas Schwab <[EMAIL PROTECTED]> writes:
|>
|> Andreas> Or maybe this limit should be increased by default?
|>
|> Yep, it sounds very reasonable.
|>
|> What would you
Akim Demaille <[EMAIL PROTECTED]> writes:
|> BTW, you might want to use several AC_CONFIG_FILES. Using a single
|> huge AC_OUTPUT seems bizarre to me.
That does not help, since AC_CONFIG_FILES just collects the files. They
are actually processed by AC_OUTPUT.
Andreas.
--
An
27;m4_patsubst(AC_File, [:.*])' )dnl
CONFIG_FILES="$CONFIG_FILES AC_File" ;;
])dnl
|> Actually, the limit you might be hitting might be due to the macro
|> which checks that there are no duplicates :(
This can be worked around, because it only loops on the
IMHO, _AC_CHECK_TYPE_REPLACEMENT_TYPE_P should treat words of the form
[a-z]*_t as types so that AC_CHECK_TYPE(__u8, u_int8_t) does the right
thing. Incidentally, AC_CHECK_TYPE(__s8, int8_t) is already treated as an
old form, because int8_t starts with "int".
Andreas.
--
Andr
Akim Demaille <[EMAIL PROTECTED]> writes:
|> >>>>> "Andreas" == Andreas Schwab <[EMAIL PROTECTED]> writes:
|>
|> Andreas> IMHO, _AC_CHECK_TYPE_REPLACEMENT_TYPE_P should treat words of
|> Andreas> the form [a-z]*_t as types so that AC_CHEC
Typo.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labscompletely different."
[EMAIL PROTECTED]
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
t) you should declare it as precious (see
(autoconf)Setting Output Variables).
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
"mahendra panpalia" <[EMAIL PROTECTED]> writes:
>> aclocal.m4:22: error: m4_defn: undefined macro: _m4_divert_diversion
Most likely underquoted macro.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nür
Ralf Wildenhues <[EMAIL PROTECTED]> writes:
> +On Solaris, don't put @code{/usr/ucb} early in your PATH. @code{/usr/ucb}
It's probably better to avoid starting the sentence with
@code{/usr/ucb}.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products
Ralf Wildenhues <[EMAIL PROTECTED]> writes:
> - many vendor shells complain about 'test -z' without further argument:
A POSIX-compliant test won't, and returns zero.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 904
=-
echo '@'CFLAGS@ | ./config.status --file=-
Andreas.
--
Andreas Schwab, SuSE Labs, sch...@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely differen
y one
argument.
> the value of the 2nd parameter in the macro is not yes, but yes followed
> by a new line
See node Macro Arguments in the m4 documentation: only leading unquoted
whitespace is skipped when collecting macro arguments. All other
whitespace will become part of the argument.
>From the autoconf manual:
There are shells that do not reset the exit status from an `if':
$ if (exit 42); then true; fi; echo $?
42
whereas a proper shell should have printed `0'.
Andreas.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint =
Eric Blake writes:
> According to Andreas Schwab on 4/7/2009 3:47 AM:
>>>From the autoconf manual:
>>
>> There are shells that do not reset the exit status from an `if':
>>
>> $ if (exit 42); then true; fi; echo $?
>> 4
e, if there are operands, the first is treated as an action and the
> remaining as conditions.
This paragraph is new in POSIX.1-2008.
Andreas.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for somethi
When I updated my copy of the autoconf repository today I noticed that
one commit got lost (45b928b: autotest: fix file descriptor leak).
Andreas.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something compl
Eric Blake writes:
> Overkill. The security hole arises because the problem, as it currently
> exists, is triggerable by ANY portable environment variable definition.
In the context of security you need to forget about portable. You need
to think about the improbable.
Andreas.
--
A
Ralph Corderoy <[EMAIL PROTECTED]> writes:
> Does argv[0] always contain a path on all Unixes?
No. It contains exactly the string passed in by execve, unmodified. It
can be arbitrary.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux AG, Maxfeldstraße 5, 90409
ller, which can set
it any way it likes. What you have seen might be the effect of a
misbehaving shell. Usually argv[0] is the command name before looking it
up in $PATH.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerp
Markus Moeller <[EMAIL PROTECTED]> writes:
> If I do so my predefined my_tool.h gets overwritten. Is there a way to use a
> predefined template file ?
You can use AH_TOP, AH_BOTTOM, etc.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstr
nual/autoconf-2.57/html_node/autoconf_30.html>.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for some
e use
workarounds instead).
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for somethin
Ralph Schleicher <[EMAIL PROTECTED]> writes:
> Paul Eggert <[EMAIL PROTECTED]> writes:
>
>> "ISO" is not an acronym
>
> International Standard Organization
No. See
<http://www.iso.org/iso/en/aboutiso/introduction/index.html#three>.
Andreas.
-
at this updates. To get the
other files updated just run the new config.status.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for s
, by adding it to
>> AC_CONFIG_FILES. Then we install the result.
>
> you mean AC_CONFIG_HEADERS, of course.
In case of bfd-in2.h it's generated be AC_CONFIG_FILES. It only depends
on the format of the substitution, either @FOO@ or #define FOO.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMA
rther simplified:
eval ac_define_dir=\"[$]$2\"
eval ac_define_dir=\"[$]ac_define_dir\"
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 17
Stepan Kasal <[EMAIL PROTECTED]> writes:
> You are right, bu you need to quote more:
Yes, I see my error now. Thanks for correcting me.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA
d
> "--add-missing".
Sure it does. "--gnu" comes from AUTOMAKE_OPTIONS in Makefile.am or from
AM_INIT_AUTOMAKE, and "--add-missing" is added with "--install".
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfe
ve has mangled the hunk headers (e.g.
> "@@ -910,11 +915,7 @@ esac").
I don't see anything wrong with the headers. Note that the diff was
generated with -p.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key finge
"Stan Guillory" <[EMAIL PROTECTED]> writes:
> That is the mkdir command requires two arguments, and the autoreconf
> script was only passing one. Is this a Perl version thing?
perlfunc(1) from perl 5.8.6 says that the second argument is optional and
defaults to 0777.
rsonality of the calling process.
> I don't know about 'setarch' but you can use the 'linux32' program.
> It intercepts system calls and masquerades.
It does nothing like that, it just sets the personality and execs its
command line. The personality determines, a
g for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -v accepts -g... yes
checking for gcc -v option to accept ANSI C... none needed
configure: creating ./config.status
Andreas.
--
Andreas Schwab, S
> or
> configure --enable-device=deviceb
> or
> configure --enable-device=devicec
> or
It is completely up to you how you interpret the argument given to
--enable-foo.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg,
t it is impossible to guess what's going on.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Bob Rossi <[EMAIL PROTECTED]> writes:
> On Wed, Jul 13, 2005 at 12:04:27AM +0200, Andreas Schwab wrote:
>> Bob Rossi <[EMAIL PROTECTED]> writes:
>>
>> > If I run ./configure then by default opt_with_readline_prefix is "no".
>> > During ..
@
Thus there is nothing that calls 'ld' with $(CFLAGS), only $(CC). In
fact, if you are using gcc then calling the linker directly is almost
always wrong.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fing
"madan m raj" <[EMAIL PROTECTED]> writes:
> AC_CHECK_LIB (IL, ilSaveImage, [], [
^
Drop the space. In m4, a macro call must be followed immediately by the
open paren for being recognized as the start of a parameter list.
Andreas.
--
Andreas Schwab, SuSE Lab
in the `configure --help' output.
This won't do the right thing if configure is executed outside the source
directory (for buiding in a separate directory).
> Given these limitations, can anyone suggest a better mechanism for achieving
> this objective?
Use esyscmd to interpol
AUTOMAKE, ACLOCAL,
AUTOPOINT, LIBTOOLIZE are honored.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for somethin
E='#'
> else
> ENABLE_GTK_DOC_TRUE='#'
> ENABLE_GTK_DOC_FALSE=
> fi
>
> Isn't this backward?
Look at the generated Makefile.in: everything prefixed with
@ENABLE_GTK_DOC_TRUE@ is enabled (not commented out) when the condition is
true.
Andr
d macro calls. Actually, _all_ arguments should be
quoted, but for those containing macro calls it is most important.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5
tkIO -lvtkRendering"
>
> However, when i run configure, i get
> ...: VTK_LIBS+=-lvtkFiltering -lvtkfreetype -lvtkftgl -lvtkGraphics
> -lvtkHybrid: command not found
>
> Can anybody tell my what i'm doing wrong ?
This isn't valid Bourne Shell syntax.
Andrea
; an error message if not.
The optional fourth parameter of AC_ARG_WITH is executed if no such option
is passed, as described in the manual (hint, hint). You can use
AC_MSG_ERROR to abort.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409
"local"
> that warns if any of its arguments is a variable whose value is set;
That would also (spuriously) warn if you call a function with local
variables a second time, unless you explicitly unset the local variables
before returning.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTE
Akim Demaille <[EMAIL PROTECTED]> writes:
> if (local foo) >/dev/null 2>&1; then :; else
> local () { true; }
> fi
Note that local is only valid in function context, so this will always
produce a failure.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
ne from the thread who is not
subscribed to the list.
> . Reply to the address in the "From" header, for a private response;
If Reply-to is present, it replaces the From address for replies (RFC
2822).
> . Reply-to-All, to spam the world...
Keep the non-subscribers in the loop.
acro with the same value.
You can use AC_DEFINE_UNQUOTED to define a macro to the result of a shell
substitution. You can easily extract the value from the output of the
preprocessor. Don't use the output of a compiled program because that
would make cross-compiling impossible.
Andreas.
Keith Marshall <[EMAIL PROTECTED]> writes:
> BTW, I don't think ac_default_prefix is officially documented
But AC_PREFIX_DEFAULT is.
-- Macro: AC_PREFIX_DEFAULT (PREFIX)
Set the default installation prefix to PREFIX instead of
`/usr/local'.
Andreas.
--
Andrea
"John Calcote" <[EMAIL PROTECTED]> writes:
> My question: Anyone know of a good idiom for managing optimization flags -
> including disabling the obligatory -O2 placed in CFLAGS by AC_PROG_CC?
.../configure CFLAGS=-g
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTE
hat do that.
Please don't spread that further. CFLAGS (as well all CPPFLAGS, CXXFLAGS,
etc.) should always be reserved for the user to override any time. It it
highly annoying if that does not work.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, M
gt; A string such as
>"a string `echo with an embedded backquoted` substring"
>
> can always be safely rewritten as
>"a string "`echo with an embedded backquoted`" substring"
$ echo `echo 'a b'`
a b
$ echo "`echo 'a b'
appen.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
___
a test only for a
parameter that is unset. Put another way, if the colon is included,
the operator tests for both existence and that the value is not null;
if the colon is omitted, the operator tests only for existence.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products
ing else), then you will get a link failure.
With linker flags like --as-needed this becomes relevant even in the
shared case.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 175
eam manager that maintains stream objects (not
> references to) internally without any run-time polymorphism, so I need
> one single type to handle both stdio and file streams,
That would be basic_istream/ostream.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Product
basic_ifstream is a basic_istream.
>
> Sorry for the confusion, I meant that the need to be *identical*, not just
> derivable from the other, because I'm containing their objects (value),
> not references.
> struct foo { ifstream _stream; };
I think you are making a design
ou
quote above is _not_ about semicolons being unsupported, but rather about
missing ones. Autoconf is using semicolons in sed expressions already for
many years (eg in the AC_OUTPUT_FILES macro).
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 9
followed
by a semicolon, optional s, and another command verb."
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
&q
"Ben Bergen" <[EMAIL PROTECTED]> writes:
> Is there a way to force "$ac_link" to use a "-c" before the source
> file when doing AC_CHECK_LIB?
Why would you do that? It subverts the whole point of ac_link.
Andreas.
--
Andreas Schwab, SuSE Labs,
Douglas Phillipson <[EMAIL PROTECTED]> writes:
> I'm wanting to build a library as part of my application, but since
> configure wants to detect my library with the AC_CHECK_LIB
Why do you want to check for it if it is part of your application?
Andreas.
--
Andreas Schwab,
27;marker.cpp'.
Remove the dependency file in the .deps directory.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 82
ningful in compiler-related tools) does not
come into play until you actually run the cross compiler, i.e. when you
build something with it.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D
autoconf for that? The C preprocessor is perfectly
capable of doing it.
> Here's what I had to add to get my code to build. I would prefer if
> autoconf could add this to config.h, for example:
Just use AH_VERBATIM to add anything you like to config.h.
Andreas.
--
Andreas Schwab
"Bruce Korb" <[EMAIL PROTECTED]> writes:
> This macro does not work when the headers #define sigsetjmp to
> something else.
sigsetjmp is special since it's not required to be a normal function. You
can't use AC_CHECK_FUNCS to check for it.
Andreas.
--
A
Thomas Dickey <[EMAIL PROTECTED]> writes:
> btw - does AC_CHECK_FUNCS(stat) work? stat() is required to be a
> function.
Yes, but many libcs are buggy.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Ger
Bruce Korb <[EMAIL PROTECTED]> writes:
> "not required to be a normal function" implies that it is
> common knowledge that everybody knows you have to roll your
> own AC macro?
autoconf does not save you from learning the language you use for
programming.
Andreas.
--
to see the settings.
Try ./config.status --version.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for
_MMAP) && defined(HAVE_MUNMAP))
This won't work anyway, the C standard does not define the behaviour of
defined in expanded tokens.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C
match
one of the two specified forms prior to macro replacement, the behavior
is undefined.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"
;%L"
> #else
> #error "Don't know size"
> #endif
> #endif
You can't use sizeof in preprocessor directives. Besides that, the size
of an integer says nothing about its type. For example, a 4 byte integer
can be either int or
Philipp Marek <[EMAIL PROTECTED]> writes:
> On Thursday 14 September 2006 15:01 Andreas Schwab wrote:
>> Note that "L" is not a valid length modifier for integer formats.
> For gnu libc it is:
> http://www.gnu.org/software/libc/manual/html_node/Integer-Conversions
text to be modified.
#undef is special in a config header, see (autoconf)Header Templates.
That is independent on how the #undef has been put in the template.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fing
Bill Moseley <[EMAIL PROTECTED]> writes:
> What happened that GETGROUPS_T is no longer defined as gid_t?
Don't define GETGROUPS_T yourself.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fing
_srcdir == $srcdir. They
are only different in sub-makefiles.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And
from 1999.
That's not a useful comparison. How many new features have been added to
ncurses in the last 6 years? Also, try compiling the 6 years old code
with a state-of-the-art compiler.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5
Thomas Dickey <[EMAIL PROTECTED]> writes:
> On Thu, 7 Dec 2006, Andreas Schwab wrote:
>
>> Thomas Dickey <[EMAIL PROTECTED]> writes:
>>> In contrast, I can plug current ncurses libraries into a system that's
>>> built with ncurses 5.0, and just ass
down(&x));
> }
That could fail exactly the same way if growsdown were inlined by the
compiler.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 4
omit --srcdir, because configure
> finds it by itself; then $ac_srcdir is an absolute path;
$ac_srcdir will be relative even if you omit --srcdir.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA
DJ Delorie <[EMAIL PROTECTED]> writes:
> They share config.cache, because it saves a lot of time.
Not any more. Nowadays every configured subdirectory gets its own cache.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409
Andrew Makhorin <[EMAIL PROTECTED]> writes:
> I need to check the size of some generic types, and if the size is
> unexpected, the configure script must raise a "configuration error".
See AC_CHECK_SIZEOF.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
Su
me types
> have unexpected sizes, for example, if 'int' is not of 4 bytes long.
If you want fixed sized type you should use the ones from .
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprin
Mike Sharov <[EMAIL PROTECTED]> writes:
> Why does config.guess prints "unknown" instead of "pc" for PCs?
What is a PC anyway? Is a 32 cpu system a PC?
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90
is that the value is not recursively
expanded. The second level expansion could still refer to other
variables. For example, a recent addition to autoconf is the datarootdir
variable, and datadir is now defined in terms of datarootdir, which in
turn is defined in terms of prefix. A two level
toreconf: configure.ac: not using Gettext
> autoreconf: running: aclocal --force -I m4
> autom4te: cannot lock autom4te.cache/requests with mode 2: Invalid argument
[...]
> I see these warnings on an HP-UX 11 machine.
Looks like your perl does not properly implement flock. See sub lock in
Auto
translit([$1], [A-Z], [a-z]))dnl
ecore_[]DOWN[]_libs=""
AC_SUBST(ecore_[]DOWN[]_libs)
popdef([DOWN])
])
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP k
only added when I call:
>
> AC_CHECK_ECORE_MODULE([Ipc],
> ["yes"],
> [${have_ecore_con}]
^^^
The newline is here. m4 does not strip trailing whitespace when gathering
arguments. Either put the closing paren directly after it, or use dnl.
Andreas.
--
Vincent Torri <[EMAIL PROTECTED]> writes:
> off topic : is it better to use ${have_ecore_con} or $have_ecore_con ?
It does not really matter, but the former is more robust.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409
rious interpretation as an operator if either string
might start with a dash.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5
eholder, in case $foo happens to expand to nothing.
If $foo happens to expand to multiple words this will fail as well.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 175
ility. Suppose STRING1 is '(' and STRING2 is ')'. Then 'test "x("
> = "x)"' is false, while 'test ( = )' is true.
Note that POSIX mandates that the latter is false as well. May not matter
much, since there are many broken implementations
Vincent Torri <[EMAIL PROTECTED]> writes:
> I've written an m4 macro (see attached file).
ENOENT.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3
want_ecore_[]DOWN=yes ])
> fi
You cannot influence the generation of the configure script at runtime for
obvious reasons. The expansion of the right AC_ARG_ENABLE must be
selected by m4 conditionals.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstr
;
> Is it possible ?
Sure.
> If yes, what is the syntax I should use in MAIN_MACRO ?
You've already found out by yourself. :-) Just make sure you properly
quote the macro name in the argument, so that it isn't expanded too early.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PR
main,
LIBS="$LIBS -lcsv",
[AC_MSG_ERROR([*** libcsv library not found!])]
)
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
e
the first pass of parsing:
if test "x${use_[]DOWN[]_driver}" = "xyes"; then
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1
Roman Rybalko <[EMAIL PROTECTED]> writes:
> when I have to include some m4s in m4 dir how I can specify -I m4 option
> to aclocal through autoreconf ?
Set ACLOCAL_AMFLAGS in the toplevel Makefile.am.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux P
s quote nested macro invocations.
> 2) [CHECK_KRB(5)] instead of CHECK_KRB(5) (in all cases)
That's the only part that needs to be fixed.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA
gt; sac 1993-04-30
> wood1993-04-09
For the others I could not find any traces anywhere.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01
"Geeky Jim" <[EMAIL PROTECTED]> writes:
> ./configure CPPFLAGS=-m32 LDFLAGS="-m32 -L/usr/lib"
I think you should rather set CXX to "g++ -m32" instead of using
CPPFLAGS/LDFLAGS.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Product
1 - 100 of 202 matches
Mail list logo