You cannot "program" a GameCube controller to work natively on Wii. The Wii uses Bluetooth for Wii Remotes; GameCube controllers use a proprietary wired protocol (serial over the GC port). They are electrically incompatible.
Mayflash Magic-S Pro — cheap, multi-console, firmware-updatable, low latency. Pair with original Nintendo GC controller (WaveBird = wireless via receiver).