sohalt).
2009-01-04
+ * Drop --enable-smapi and use --enable-ibm instead
* Make ibm-acpi objects optional (--enable-ibm)
2008-12-20
fi
dnl
-dnl SMAPI
-dnl
-
-AC_ARG_ENABLE([smapi],
- AC_HELP_STRING([--enable-smapi], [enable if you want smapi support @<:@default=no@:>@]),
- [want_smapi="$enableval"], [want_smapi=no])
-
-AM_CONDITIONAL(BUILD_SMAPI, test x$want_smapi = xyes)
-if test x$want_smapi = xyes; then
- AC_DEFINE(SMAPI, 1, [Define if you want smapi support])
-fi
-
-dnl
dnl Wireless extensions
dnl
portmon: $want_portmon
RSS: $want_rss
wireless: $want_wlan
- SMAPI: $want_smapi
IBM: $want_ibm
nvidia: $want_nvidia
eve-online: $want_eve
endif
if BUILD_IBM
-ibm = ibm.c ibm.h
+ibm = ibm.c ibm.h smapi.c smapi.h
endif
if BUILD_MPD
rss = rss.c prss.c prss.h
endif
-if BUILD_SMAPI
-smapi = smapi.c smapi.h
-endif
-
if BUILD_NVIDIA
nvidia = nvidia.c nvidia.h
endif
mboxscan.h \
$(x11) \
$(xmms2) \
- $(smapi) \
$(ibm) \
temphelper.c \
temphelper.h \
#ifdef HAVE_IWLIB
" * wireless\n"
#endif /* HAVE_IWLIB */
-#ifdef SMAPI
- " * smapi\n"
-#endif /* SMAPI */
+#ifdef IBM
+ " * support for IBM/Lenovo notebooks\n"
+#endif /* IBM */
#ifdef NVIDIA
" * nvidia\n"
#endif
info.users.times = 0;
}
break;
-#ifdef SMAPI
+#ifdef IBM
case OBJ_smapi:
case OBJ_smapi_bat_perc:
case OBJ_smapi_bat_temp:
} else {
obj->global_mode = 1;
}
-#ifdef SMAPI
+#ifdef IBM
END OBJ(smapi, 0)
if (arg)
obj->data.s = strndup(arg, text_buffer_size);
}
} else
ERR("smapi_bat_bar needs an argument");
-#endif /* SMAPI */
+#endif /* IBM */
#ifdef MPD
#define mpd_set_maxlen(name) \
if (arg) { \
(double) cur->entropy.poolsize;
new_bar(p, obj->a, obj->b, (int) (entropy_perc * 255.0f));
}
-#ifdef SMAPI
+#ifdef IBM
OBJ(smapi) {
char *s;
if(obj->data.s) {
else
new_bar(p, obj->a, obj->b, 0);
}
-#endif /* SMAPI */
+#endif /* IBM */
OBJ(scroll) {
unsigned int j;
char *tmp, buf[max_user_text];
#include "rss.h"
#endif
-#ifdef SMAPI
-#include "smapi.h"
-#endif
-
#ifdef TCP_PORT_MONITOR
#include "tcp-portmon.h"
#endif
#ifdef IBM
#include "ibm.h"
+#include "smapi.h"
#endif
/* A size for temporary, static buffers to use when
#ifdef RSS
INFO_RSS = 24,
#endif
-#ifdef SMAPI
+#ifdef IBM
INFO_SMAPI = 25,
#endif
INFO_USERS = 26,
OBJ_ibm_temps,
OBJ_ibm_volume,
OBJ_ibm_brightness,
+ OBJ_smapi,
+ OBJ_smapi_bat_bar,
+ OBJ_smapi_bat_perc,
+ OBJ_smapi_bat_temp,
+ OBJ_smapi_bat_power,
+ OBJ_if_smapi_bat_installed,
#endif /* IBM */
OBJ_if_up,
OBJ_if_gw,
#ifdef HDDTEMP
OBJ_hddtemp,
#endif
-#ifdef SMAPI
- OBJ_smapi,
- OBJ_smapi_bat_bar,
- OBJ_smapi_bat_perc,
- OBJ_smapi_bat_temp,
- OBJ_smapi_bat_power,
- OBJ_if_smapi_bat_installed,
-#endif
OBJ_scroll,
OBJ_entropy_avail,
OBJ_entropy_poolsize,