Yes, I've had this problem myself before. The solution is to copy your configuration to /usr/src/linux-2.4.31/.config as make menuconfig will look in this directory first for a file called .config, and it then displays this file so you don't have to change it anymore.
Code:
cp /boot/.config-2.4.25 /usr/src/linux-2.4.31/.config