-#if 0 /* This should no longer be necessary now that
- C_SWITCH_... are passed down when compiling oldXMenu. */
-/* Specify compiler options for compiling oldXMenu. */
-#define OLDXMENU_OPTIONS CFLAGS="-I/usr/include/X11R5 -I/usr/include/X11R4"
+#else /* not __GNUC__ */
+/* Note, -a only works for hpux ld, not cc. And "cc LD_SWITCH_SYSTEM"
+ is used in configure's $ac_link to do various autoconf checks.
+ Since we only need -a when unexec'ing, only pass in -a to
+ "ld temacs" (ghazi@caip.rutgers.edu 7/10/97). */
+#if (defined(hp9000s700) || defined(__hp9000s700))
+#ifdef HPUX_USE_SHLIBS
+#define LD_SWITCH_SYSTEM_TEMACS -L/lib/pa1.1
+#else
+#define LD_SWITCH_SYSTEM_TEMACS -a archive -L/lib/pa1.1