AC_OUTPUT vs m4 nesting limit

2001-06-15 Thread Andreas Schwab
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

Re: AC_OUTPUT vs m4 nesting limit

2001-06-15 Thread Andreas Schwab
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

Re: AC_OUTPUT vs m4 nesting limit

2001-06-15 Thread Andreas Schwab
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

Re: AC_OUTPUT vs m4 nesting limit

2001-06-15 Thread Andreas Schwab
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

_AC_CHECK_TYPE_REPLACEMENT_TYPE_P

2001-06-15 Thread Andreas Schwab
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

Re: _AC_CHECK_TYPE_REPLACEMENT_TYPE_P

2001-06-19 Thread Andreas Schwab
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

Re: _AC_CHECK_TYPE_REPLACEMENT_TYPE_P

2001-07-17 Thread Andreas Schwab
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

Re: Issue in autoconf with config.status generation

2008-09-18 Thread Andreas Schwab
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."

Re: Error while autoconf on Ubuntu

2008-09-24 Thread Andreas Schwab
"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

Re: tr portability

2008-10-05 Thread Andreas Schwab
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

Re: autconf, configure & purify...

2008-10-24 Thread Andreas Schwab
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

Re: Getting data from a nested configure script?

2008-12-26 Thread Andreas Schwab
=- 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

Re: value of a macro parameter and position of )

2009-02-15 Thread Andreas Schwab
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.

Re: AC_TRY_COMPILE() annoyances with 2.63b

2009-04-07 Thread Andreas Schwab
>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 =

Re: AS_IF optimization (was: AC_TRY_COMPILE() annoyances with 2.63b)

2009-04-07 Thread Andreas Schwab
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

Re: Portability problems in autoconf manual

2009-04-29 Thread Andreas Schwab
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

Lost commit

2010-12-18 Thread Andreas Schwab
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

Re: Bash security issue

2014-09-26 Thread Andreas Schwab
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

Re: finding datadir from executable

2004-09-11 Thread Andreas Schwab
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

Re: finding datadir from executable

2004-09-12 Thread Andreas Schwab
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

Re: Header template file

2004-11-22 Thread Andreas Schwab
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

Re: Header template file

2004-11-22 Thread Andreas Schwab
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

Re: C99 support

2004-11-28 Thread Andreas Schwab
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

Re: AC_PROG_CC_C99

2005-01-01 Thread Andreas Schwab
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. -

Re: Last configure args

2005-01-02 Thread Andreas Schwab
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

Re: Use of config.h: summary of responses.

2005-01-07 Thread Andreas Schwab
, 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

Re: Using $bindir in configure.ac

2005-01-10 Thread Andreas Schwab
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

Re: Using $bindir in configure.ac

2005-01-10 Thread Andreas Schwab
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

Re: 5.9 The Future of `aclocal'

2005-01-30 Thread Andreas Schwab
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

Re: Pending Patches

2005-02-06 Thread Andreas Schwab
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

Re: autoconf 2.59 - Syntax error in autoreconf?

2005-02-28 Thread Andreas Schwab
"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.

Re: x86_64 and x86 userland

2005-05-04 Thread Andreas Schwab
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

Re: Preferring a specific compiler?

2005-05-31 Thread Andreas Schwab
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

Re: Autoconf and optional arguments for the configure script

2005-06-25 Thread Andreas Schwab
> 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,

Re: Need help with autoconf configure script

2005-07-12 Thread Andreas Schwab
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."

Re: Need help with autoconf configure script

2005-07-13 Thread Andreas Schwab
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 ..

Re: How to let autoconf NOT include ($CFLAGS) in LINK?

2005-07-21 Thread Andreas Schwab
@ 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

Re: Help in AC_CHECK_LIB

2005-07-26 Thread Andreas Schwab
"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

Re: Command Substitution in AC_ARG_WITH Help Strings

2005-07-31 Thread Andreas Schwab
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

Re: building xcb without check

2005-08-03 Thread Andreas Schwab
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

Re: AM_CONDITIONAL

2005-08-14 Thread Andreas Schwab
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

Re: checking for specific versions of operating system

2005-08-23 Thread Andreas Schwab
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

Re: variables in configure.ac

2005-09-12 Thread Andreas Schwab
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

Re: how to force the caller of configure to pass arguments

2005-09-12 Thread Andreas Schwab
; 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

Re: sh portability questions

2005-09-27 Thread Andreas Schwab
"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

Re: sh portability questions

2005-09-28 Thread Andreas Schwab
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]

Re: [OT] reply-to (was: AC_FOREACH public?)

2005-10-24 Thread Andreas Schwab
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.

Re: Defining Macros With Literal Values

2005-10-26 Thread Andreas Schwab
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.

Re: AW: prefix

2005-12-02 Thread Andreas Schwab
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

Re: debug builds with NO optimizations

2006-02-06 Thread Andreas Schwab
"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

Re: debug builds with NO optimizations

2006-02-07 Thread Andreas Schwab
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

Re: ensure a VPATH build

2006-02-18 Thread Andreas Schwab
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'

Re: ensure a VPATH build

2006-02-18 Thread Andreas Schwab
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." ___

Re: configure script question ?

2006-03-05 Thread Andreas Schwab
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

Re: autoconf linking with shared object

2006-03-29 Thread Andreas Schwab
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

Re: AC_CHECK_FILES on /dev/stdin

2006-03-30 Thread Andreas Schwab
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

Re: AC_CHECK_FILES on /dev/stdin

2006-03-31 Thread Andreas Schwab
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

Re: Broken makefile given Autoconf version mismatch

2006-04-16 Thread Andreas Schwab
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

Re: Broken makefile given Autoconf version mismatch

2006-04-16 Thread Andreas Schwab
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

Re: ac_link variable...

2006-07-13 Thread Andreas Schwab
"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,

Re: Noobie question about building libraries: catch 22

2006-07-18 Thread Andreas Schwab
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,

Re: changed from cpp to c, autoconf will not work any more.

2006-07-20 Thread 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

Re: How AC_PROG_CC find the cross-compiler?

2006-07-25 Thread Andreas Schwab
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

Re: can autoconf determine if a preprocessor macro is defined or not?

2006-07-27 Thread Andreas Schwab
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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread 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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Andreas Schwab
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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-28 Thread Andreas Schwab
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. --

Re: CC=cc ./configure or ./configure CC=cc

2006-08-08 Thread Andreas Schwab
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

Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror)

2006-08-15 Thread Andreas Schwab
_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

Re: #if vs. #ifdef -- again (was: AC_CHECK_SIZEOF failing on undefined HAVE_STDINT_H with -Werror)

2006-08-15 Thread Andreas Schwab
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 "

Re: Question regarding sscanf() vs. off_t and similar

2006-09-14 Thread Andreas Schwab
;%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

Re: Question regarding sscanf() vs. off_t and similar

2006-09-14 Thread Andreas Schwab
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

Re: unexpected editing of argument to AH_BOTTOM

2006-10-12 Thread Andreas Schwab
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

Re: 2.60 and AC_FUNC_GETGROUPS

2006-11-06 Thread Andreas Schwab
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

Re: using builddir/srcdir at configure time

2006-11-25 Thread Andreas Schwab
_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

Re: After upgrade autoconf from 1.13 to 2.57, I experienced some problems - HELP

2006-12-06 Thread Andreas Schwab
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

Re: After upgrade autoconf from 1.13 to 2.57, I experienced some problems - HELP

2006-12-07 Thread Andreas Schwab
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

Re: Stack direction check fails with optimizations

2006-12-13 Thread Andreas Schwab
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

Re: Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".

2007-01-22 Thread Andreas Schwab
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

Re: "has changed since the previous run"

2007-02-01 Thread Andreas Schwab
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

Re: how to check type size

2007-02-04 Thread Andreas Schwab
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

Re: how to check type size

2007-02-04 Thread Andreas Schwab
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

Re: Why "unknown"?

2007-02-12 Thread Andreas Schwab
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

Re: How to substitute variables in script files? (Why is $prefix set to NONE?)

2007-03-01 Thread Andreas Schwab
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

Re: autoreconf warning message: autom4te: cannot lock autom4te.cache/requests with mode 2: Invalid argument

2007-03-12 Thread Andreas Schwab
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

Re: how to use variable with translit definitions

2007-03-25 Thread Andreas Schwab
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

Re: new line added to a variable passed to a macro

2007-03-25 Thread Andreas Schwab
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. --

Re: new line added to a variable passed to a macro

2007-03-26 Thread Andreas Schwab
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

Re: Why if test "xSTRING1= "xSTRING2" (the 'x') ?

2007-03-26 Thread Andreas Schwab
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

Re: Why if test "xSTRING1= "xSTRING2" (the 'x') ?

2007-03-26 Thread Andreas Schwab
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

Re: Why if test "xSTRING1= "xSTRING2" (the 'x') ?

2007-03-26 Thread Andreas Schwab
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

Re: AC_ARG_ENABLE: problem with the output of configure --help

2007-03-31 Thread Andreas Schwab
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

Re: AC_ARG_ENABLE: problem with the output of configure --help

2007-03-31 Thread Andreas Schwab
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

Re: passing a macro as an argument of macro

2007-03-31 Thread Andreas Schwab
; > 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

Re: Configure can't find library but g++ can

2007-07-07 Thread Andreas Schwab
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

Re: test in a m4 macro and variable created from pushdef

2007-08-08 Thread Andreas Schwab
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

Re: autoreconf vs autogen.sh

2007-08-27 Thread Andreas Schwab
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

Re: AC_PATH_PROG or m4 bug

2007-08-27 Thread Andreas Schwab
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

Re: conversion to git

2007-09-14 Thread Andreas Schwab
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

Re: How to compile 32bit library on 64bit x86_64 systems?

2007-09-14 Thread Andreas Schwab
"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   2   3   >