m4 Questions

5

As part of a long, sordid story whose end goal is simply to get GMP installed for use with code::blocks in Windows, I am trying to configure gmp. I do this with the following command: ./configur...
Afroamerican asked 6/7, 2012 at 20:7

4

Solved

I'm using m4 to create some basic macros and I realize that when using esyscmd there's a trailing new line added to a string when the command is run. Example: define(MY_HOSTNAME, esyscmd(`hostnam...
Kimmi asked 18/12, 2013 at 1:34

2

Solved

I want to include a file and have all the lines indented. I want it to be a code block in a markdown document. Basically I want something like this: text include(somefile) text to have this out...
m4
Modulation asked 21/2, 2019 at 2:58

2

Solved

How can I assign a dynamic, git-based version number to an autoconf project? Autoconf requires a static string argument to AC_INIT([Title],[version],[name]) AC_INIT documentation says that one c...
Manicure asked 20/4, 2017 at 18:14

5

I have Xcode 3.2 installed into /Xcode3.2, and did not install anything into /Developer. When I wish to do development, I start up a shell as follows alias sysroot='PATH=${PATH}:${XCODE}/usr/bin C...
Irade asked 17/5, 2011 at 16:22

1

Solved

I have some trouble on getting custom selinux policies running properly on an AOSP based Android 7.1.2 (more precisely based on sony open devices tree). My problem is that the audit logs keep tell...
Bassorilievo asked 4/8, 2017 at 14:42

7

Solved

I am distributing a tarball with installation scripts generated by autoconf version 2.69. Works fine on many different machines. Now a user, working on a fresh Arch Linux system, reports that confi...
Spence asked 12/9, 2013 at 16:36

9

Solved

Does someone know of any uses of m4 besides autoconf (preferably in a c or c++ environment) that is more than just an academic excerise, because it helped solve a problem that would otherwise...
Carlie asked 18/2, 2011 at 12:53

5

Solved

I would be great doing things like <define tag="myTag" options="3"> <h1> #1 </h1> <ul> <li> #2 <li> #3 </ul> </define> and then use it: <m...
Pyretotherapy asked 2/10, 2011 at 11:23

1

Solved

we're developing a software package that uses autotools (autoconf 2.69 and automake 1.13.3 to be precise). This package needs wxwidgets and this library provides its own m4 file to allow testing th...
Crochet asked 24/7, 2015 at 10:42

1

Solved

A simple GNU m4 question, but I cannot find the correct answer. I'd like to print a markdown header starting/ending a code section: ``` echo Hello ``` How do I create a GNU M4 macro containing t...
Alvinaalvine asked 8/4, 2015 at 18:34

1

Solved

I am writing a pre-processor for Free-Pascal (Course Work) using m4. I was reading the thread at stackoverflow here and from there reached a blog which essentially shows the basic usage of m4 for p...
Aeroembolism asked 11/3, 2015 at 5:1

1

Solved

Is there a good way to uniformly indent a block of text in an m4 macro? In other words, the macro define(`mytext',dnl This is a piece of text that I would like to indent) mytext generates This ...
Merrymaker asked 13/3, 2015 at 7:17

3

Solved

problem I'm using LilyPond to typeset sheet music for a church choir to perform. Depending on who is available on any given week, songs will be played in various keys. We have an amazing pianist w...
Obliquity asked 28/4, 2009 at 21:10

2

How can I strip empty lines (surplus empy lines) from an input file using M4? I know I can append dnl to the end of each line of my script to suppress the newline output, but the blank lines I mea...
Orlon asked 12/12, 2012 at 15:6

2

Solved

The autoconf manual suggest using AS_IF instead of if, but it doesn't mention m4_if. Should AS_IF also be preferred over m4_if? The "Limitations of Builtins" section of the manual says to use AS_I...
Tehuantepec asked 6/1, 2013 at 21:46

3

The following code from my configuration.ac file does not work (note the nested square brackets with [default=no]): AC_ARG_ENABLE(debug, [ --enable-debug build with debugging support [default=no]...
Mimamsa asked 22/2, 2010 at 4:4

4

Solved

I know all of the philosophical arguments against preprocessors and macros in Java. I don't agree that just because some may abuse a language feature, it should be excluded for all. I would like t...
Macaw asked 3/8, 2010 at 11:37

2

Solved

Is there a way to use m4 macros when developing in Java for Eclipse, ie. making sure the preprocessor is automatically invoked before Eclipse compiles? Or has anyone used another preprocessor succ...
Hollie asked 7/10, 2009 at 18:25

1

Solved

I am trying to craft a macro replacing newlines. My first try was: define(`m4_pascal_str',` patsubst(`$1',`^\(.*\)$',`\1++') ') m4_pascal_str(` 11 22 33 44 ') define(zz,` 11 22 33 44 ') m...
Prologize asked 20/6, 2010 at 9:58

1

Solved

How can I tell m4's patsubstr to replace all newlines in a string with a space? I've tried: patsubst(MULTI_LINE_STR_DEFINE,`\n',` ') and patsubst(MULTI_LINE_STR_DEFINE,`\\n',` ')
Extenuate asked 14/10, 2009 at 17:5
1

© 2022 - 2024 — McMap. All rights reserved.