I modified the pdf.h generation in src/Makefile.am so that some extra things are added: 1. File details and GPL version header 2. Check for the definition of PDF_H, and define it if not already done, to avoid multiple inclusions of the header.
Here is the patch. Thanks Aleks. Please install the patch.
