if the clutch is turning off than it is quite possibly and electrical problem but still not necessarily there are many valid reasons the truck would turn the AC off without an electrical failure, here are some tidbits from my 96 LX ewd, it has the auto AC but perhapses the AC clutch control is the same/similar?
"5. AIR CONDITIONING OPERATION
THE A/C AUTOMATIC AMPLIFIER RECEIVES VARIOUS SIGNALS, I.E., THE ENGINE RPM FROM THE IGNITER, OUTLET TEMPERATURE
SIGNAL FROM THE A/C AMBIENT TEMP. SENSOR, COOLANT TEMPERATURE FROM THE A/C THERMISTOR, ETC.
WHEN THE ENGINE IS STARTED AND THE A/C SW IS ON, A SIGNAL IS INPUT TO THE A/C AUTOMATIC AMPLIFIER.
AS A RESULT, THE GROUND CIRCUIT IN THE A/C AUTOMATIC AMPLIFIER IS CLOSED.
AT THE SAME TIME, THE ENGINE CONTROL MODULE DETECTS THE A/C MAGNETIC CLUTCH IS ON AND THE A/C AUTOMATIC
AMPLIFIER OPERATES.
OPEN DIRECTION TO AVOID LOWERING THE ENGINE RPM DURING A/C OPERATING.
IF THE A/C AUTOMATIC AMPLIFIER DETECTS THE FOLLOWING CONDITIONS, IT STOPS THE AIR CONDITIONING.
* THE TEMPERATURE AT THE AIR VENTS IS LOW.
* THERE IS A MARKED DIFFERENCE BETWEEN THE COMPRESSOR SPEED AND THE ENGINE SPEED.
* THE REFRIGERANT PRESSURE IS ABNORMALLY HIGH OR ABNORMALLY LOW.
* THE ENGINE SPEED DECREASES.
* RAPID ACCELERATION OCCURS."
there are a 3 relays, 4 switches and the AC amp in the path of the AC compressor clutch any one gets veto rights on compressor operation, you need to find out witch one is killing the clutch that will narrow it down
the only one I can see that would change with gear position is the starter cutout relay that turns the compressor off during crank for some reason it gets the crank signal through the park/neutral position switch, if it was damaged somehow and was to send power to the crank cut relay when moved out of park/neutral it would kill the compressor (crossed wire? Shorted switch), to see if the start cut relay is your problem (if you even have such a relay in your 94) bypass the relay with a jumper on the contact pins and see if it the compressor works in drive, or check if you have voltage on the coil pins in drive, it is a noramlly closed realy powering the coil opens the contacts, you will need a 94 ewd to find the relay and the right pins,
if that is not it next I would look at pressures switch, short the two wires, if the AC now works the switch is not happy with the pressure (either to low or to high) not sure how gear selection comes into play with pressure?, it is the next possibility in line
if that is not it keep jumping all the switches/realys until you find it