AC_CANONICAL_BUILD
+host_os=`uname | sed 's/^(\s)*//'`
+
+# Search for glibtool
+if test $host_os = "Darwin"; then
+ AC_PATH_PROG(LIBTOOL, glibtool)
+else
+ AC_PATH_PROG(LIBTOOL, libtool)
+fi
+
+echo $host_os;
+
if test "x$CFLAGS" = "x"; then
CFLAGS="-O"
DEFAULT_CFLAGS=yes
queue_string_eol(call_by, "### End INFO");
}
+#ifndef HAVE_SSL
+#define SSL_WHO_ENTRY(x) ' '
+#else
+#define SSL_WHO_ENTRY(x) x->ssl ? 'S' : ' '
+#endif
+
COMMAND(cmd_dump_users)
{
DESC *d;
player) ? unparse_dbref(Location(d->player)) :
"#-1", time_format_1(now - d->connected_at),
time_format_2(now - d->last_time), csite ? d->cmds : 0,
- csite ? d->descriptor : 0,
-#ifdef HAVE_SSL
- d->ssl ? 'S' : ' ',
-#else
- ' ',
-#endif
+ csite ? d->descriptor : 1,
+ SSL_WHO_ENTRY(d),
csite ? d->addr : "---");
tbuf1[78] = '\0';
if (Dark(d->player)) {
"#-1", time_format_1(now - d->connected_at),
time_format_2(now - d->last_time), csite ? d->cmds : 0,
csite ? d->descriptor : 0,
-#ifdef HAVE_SSL
- d->ssl ? 'S' : ' ',
-#else
- ' ',
-#endif
+ SSL_WHO_ENTRY(d),
csite ? d->input_chars : 0, csite ? d->output_chars : 0,
csite ? d->output_size : 0);
} else {
T("Connecting..."), "#-1",
time_format_1(now - d->connected_at),
time_format_2(now - d->last_time), d->cmds, d->descriptor,
-#ifdef HAVE_SSL
- d->ssl ? 'S' : ' ',
-#else
- ' ',
-#endif
+ SSL_WHO_ENTRY(d),
d->addr);
tbuf1[78] = '\0';
} else {
T("Connecting..."), "#-1",
time_format_1(now - d->connected_at),
time_format_2(now - d->last_time), d->cmds, d->descriptor,
-#ifdef HAVE_SSL
- d->ssl ? 'S' : ' ',
-#else
- ' ',
-#endif
+ SSL_WHO_ENTRY(d),
d->input_chars, d->output_chars, d->output_size);
}
#ifdef COLOREDWHO