### Checks for typedefs, structures, and compiler characteristics
+AC_C_CHAR_UNSIGNED
+
### Checks for library functions
typedef u_char natid; /* NSC_NATID must match this */
-#if !defined(aix) && !defined(sgi)
-typedef char s_char; /* change to signed char for aix */
-#else
+/*
+ * TODO s_char has to go. Use plain char for characters and strings,
+ * signed char for small integers.
+ */
+#ifdef __CHAR_UNSIGNED__
typedef signed char s_char;
-#endif /* !aix && !sgi */
+#else
+typedef char s_char;
+#endif
+
typedef short coord;
#ifndef bit