l_output(infile, define, extend, outfile) char *infile; char *define; int extend; char *outfile;
l_output(const char *infile, const char *define, int extend, const char *outfile)
l_output(infile, define, extend, outfile)	char *infile;	char *define;	int extend;	char *outfile;{	char *include;	definition *def;	int foundprogram;	char *outfilename;	open_input(infile, define);	outfilename = extend ? extendfile(infile, outfile) : outfile;	open_output(infile, outfilename);	f_print(fout, "#include <rpc/rpc.h>\n");	if (infile && (include = extendfile(infile, ".h"))) {		f_print(fout, "#include \"%s\"\n", include);		free(include);	}	foundprogram = 0;	while (def = get_definition()) {		foundprogram |= (def->def_kind == DEF_PROGRAM);	}	if (extend && !foundprogram) {		(void) unlink(outfilename);		return;	}	write_stubs();}