wmclockmon: properly fix allocating and freeing of `command`, `light_color` and the...
[dockapps.git] / wmradio / configure.in
blob16c69488db4319739e22a29eb34e2d958584d24d
1 AC_INIT(wmradio.c)
3 AC_ARG_ENABLE(libxosd,
4               [AC_HELP_STRING([--enable-libxosd],[use libxosd library (default yes)])],
5               [],
6               [enable_libxosd="yes"])
8 AC_ARG_ENABLE(gnome,
9               [AC_HELP_STRING([--enable-gnome],[create gnome applet too (default yes)])],
10               [],
11               [enable_gnome="yes"])
13 AC_PROG_CC
14 AC_PATH_X
15 AC_PATH_XTRA
17 TARGETS="wmradio xwmradio"
18 AC_SUBST(TARGETS)
20 dnl libxosd test -----------------------------------------------
21 AC_SUBST(HAVE_XOSD)
22 HAVE_XOSD="undef "
24 if test "$enable_libxosd" = "yes"; then
25   AM_PATH_LIBXOSD(
26   HAVE_XOSD="define",
27   AC_MSG_ERROR(Can't find libxosd))
30 dnl gnome panel test -------------------------------------------------
31 PANEL_LIBS=""
32 PANEL_CFLAGS=""
33 if test "$enable_gnome" = "yes" ; then
34   AC_PATH_PROG(PKG_CONFIG, pkg-config )
35   if test "$PKG_CONFIG" = "" ; then
36     AC_MSG_ERROR(pgk-config not found)
37   fi
38   TARGETS="$TARGETS gwmradio"
39   PANEL_LIBS="`$PKG_CONFIG --libs libpanelapplet-2.0`"
40   PANEL_CFLAGS="`$PKG_CONFIG --cflags libpanelapplet-2.0`"
42 AC_SUBST(PANEL_LIBS)
43 AC_SUBST(PANEL_CFLAGS)
45 if test "x${prefix}" = "xNONE"; then
46   AC_DEFINE_UNQUOTED(LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
47 else
48   AC_DEFINE_UNQUOTED(LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
51 AC_OUTPUT([
52 Makefile
53 config.h
54 config/wmradio-config.py