Some in header of the newer PIC (e.g.: PIC18F46J50) are missing the config bit definitions. This is because the used from sources (.INC) these information is lacking. However a file of the MPLAB-X (8bit_device.info) contains these information. On Linux is usually located on this path:
The attached program takes from here the information. These prints out in a form that can be appended to header of a PIC.