5 ms·
I hadn't realized that autoconf used M4. M4 is amazingly hard to work with, mainly because it uses ` and ' as delimiters, making it very hard to even read unles
by engtech 14y ago
I hadn't realized that autoconf used M4. M4 is amazingly hard to work with, mainly because it uses ` and ' as delimiters, making it very hard to even read unless you have syntax highlighting set up to show those quotes as different characters.
Here's an example from the web:
define(`START_HTML',
`<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<meta name="Author" content="D. Robert Adams">
<title>$1</title>
</head>
<body text="#000000"
ifdef(`BACKGROUND_IMAGE',
`background="BACKGROUND_IMAGE"')
bgcolor="#e5e5e5" link="#3333ff"
vlink="#000099"
alink="#ffffff">
')
- pdw 14y agom4 allows you to redefine the delimiters (yes, it's that crazy). Autoconf uses square brackets.