./m4/cf.m4 localsun.mc > sendmail.cf
Here, the ../m4/cf.m4 tells m4 where to look for its default configuration file
information.
If you are using an old version of m4, the following error message will be printed:
You need a newer version of M4, at least as new as
System V or GNU
m4: file not found: NoSuchFile
Just as the message says, you need a newer version of m4. (The third line is just a
result of forcing m4 to fail and can be safely ignored.) Thus, we would need to rerun
our second localsun.mc example (earlier) as:
% /usr/5bin/m4 ../m4/cf.m4 localsun.mc > sendmail.cf
?†‘
System V version of m4
Another cause of failure could be that the ../m4/cf.m4 file was not where you
thought it was. Various versions of m4 print this error in different ways:
/usr/5bin/m4:-:1 can't open file ?†? SysV m4
m4: ../m4/cf.m4: No such file or directory ?†? GNU m4
m4: file not found: ../m4/cf.m4 ?†? BSD m4
One possible reason for this error might be that you are developing your .mc file
somewhere other than in the cf/cf directory.?? The solution is to use a full pathname
to cf.m4 or to replace that expression on the command line with a shell variable.
After you have successfully produced a ???first draft??? of your configuration file, you
can edit localsun.mc and add features as you need them. Many possibilities are
described in the rest of this chapter.
Pages:
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036