This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

What is the proper way to include multiple entries in Custom.m4?

0

The Custom.m4.example file only includes one custom dissector. I thought that this would work:

m4_define([_CUSTOM_AC_OUTPUT_], [plugins/foo/Makefile, plugins/bar/Makefile, plugins/baz/Makefile]

but this causes aclocal to exit with an error and halt the build during ./autogen.sh.

aclocal -I ./aclocal-fallback
/usr/bin/m4:configure.ac:2976: Warning: excess arguments to builtin `define' ignored
/usr/bin/m4:configure.ac:2976: Warning: excess arguments to builtin `ifdef' ignored
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1

Clearly I have the syntax wrong. What is the correct construct to include multiple custom dissectors in Custom.m4?

asked 04 Feb '15, 05:58

multipleinterfaces's gravatar image

multipleinte...
1.3k152340
accept rate: 12%


One Answer:

1

The format is

define(_CUSTOM_AC_OUTPUT_, foo/bar/Makefile foo1/bar1/Makefile )dnl

That is each entry on a separate line and no commas.

answered 04 Feb '15, 06:11

Anders's gravatar image

Anders ♦
4.6k952
accept rate: 17%

edited 04 Feb '15, 10:31

Bill%20Meier's gravatar image

Bill Meier ♦♦
3.2k1850