-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
113 lines (87 loc) · 3.01 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
dnl make yadickson soto
AC_INIT([wbar], [2.3.4])
AM_INIT_AUTOMAKE([ filename-length-max=256 tar-ustar ])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CXX
AC_PROG_INSTALL
AC_HEADER_STDC
eval "prefix=$prefix"
if test "$prefix" = "NONE" ; then
eval "prefix=/usr"
fi
eval "exec_prefix=$prefix"
eval "libdir=$libdir"
eval "bindir=$bindir"
eval "datadir=$datadir"
eval "localedir=$localedir"
eval "sysconfdir=$sysconfdir"
LIBDIR=`eval echo $libdir`
BINDIR=`eval echo $bindir`
SHARE_DATADIR=`eval echo $datadir`
LOCALEDIR=`eval echo $localedir`
SYSCONFDIR=`eval echo $sysconfdir`
AC_SUBST(LIBDIR)
AC_SUBST(BINDIR)
AC_SUBST(SYSCONFDIR)
AC_SUBST(GETTEXT_PACKAGE, [AC_PACKAGE_NAME])
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE" , [ The gettext package ])
AC_SUBST(GNOMELOCALEDIR, $LOCALEDIR)
AC_DEFINE_UNQUOTED(GNOMELOCALEDIR, "$GNOMELOCALEDIR" , [ The gettext package dir ])
AC_SUBST(DEFAULT_CONFIGDIR, "$SYSCONFDIR/AC_PACKAGE_NAME.d")
AC_DEFINE_UNQUOTED(DEFAULT_CONFIGDIR, "$DEFAULT_CONFIGDIR" , [ The default config dir ])
AC_SUBST(AUTOSTARTDIR, "$SYSCONFDIR/xdg/autostart")
AC_DEFINE_UNQUOTED(AUTOSTARTDIR, "$AUTOSTARTDIR" , [ The autostart dir ])
AC_SUBST(PIXMAPDIR, "$SHARE_DATADIR/pixmaps")
AC_DEFINE_UNQUOTED(PIXMAPDIR, "$PIXMAPDIR" , [ The pixmaps dir ])
AC_SUBST(GLADE_PACKAGE_DIR, "$SHARE_DATADIR/AC_PACKAGE_NAME/glade")
AC_DEFINE_UNQUOTED(GLADE_PACKAGE_DIR, "$GLADE_PACKAGE_DIR" , [ The glade package dir ])
AC_SUBST(GLADE_PACKAGE_NAME, "$GLADE_PACKAGE_DIR/AC_PACKAGE_NAME.glade")
AC_DEFINE_UNQUOTED(GLADE_PACKAGE_NAME, "$GLADE_PACKAGE_NAME" , [ The glade package name ])
AC_SUBST(DEFAULT_ARGV, "--bpress --above-desk --vbar --pos right --isize 64 --idist 5 --nanim 4 --falfa 65")
AC_DEFINE_UNQUOTED(DEFAULT_ARGV, "$DEFAULT_ARGV" , [ The default argv ])
AC_PROG_INTLTOOL()
AM_GLIB_GNU_GETTEXT
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES(modules, [imlib2 x11])
AC_SUBST(modules_CFLAGS)
AC_SUBST(modules_LIBS)
AC_ARG_ENABLE(wbar-config, AS_HELP_STRING([--disable-wbar-config],
[build without the GTK+ configuration interface]),[use_wbar_config=$enableval],
[use_wbar_config=yes])
if test "$use_wbar_config" = "yes"; then
PKG_CHECK_MODULES(gui_modules, [gtk+-2.0 libglade-2.0])
AC_SUBST(gui_modules_CFLAGS)
AC_SUBST(gui_modules_LIBS)
fi
AM_CONDITIONAL([WBAR_CONFIG],[test "$use_wbar_config" = "yes"])
AC_SUBST(PIDOF_BIN, "pidof ")
AC_PATH_PROG(PIDOF_BIN, pidof, pgrep)
AC_DEFINE_UNQUOTED(PIDOF_BIN, "$PIDOF_BIN ", [ program to retreive wbar pid ])
AC_CONFIG_FILES([Makefile \
share/Makefile \
etc/Makefile \
etc/wbar.cfg \
etc/wbar.desktop.in \
pixmaps/Makefile \
po/Makefile.in \
doc/Makefile
doc/man/Makefile
doc/man/es/Makefile
src/Makefile])
AC_OUTPUT
if test -d po \
&& test -e po/Makefile ; then
echo "======================================="
echo ""
echo "Execute make update-po"
echo ""
cd po
make update-po | perl -ne 'print if /:$/'
echo ""
for file in $(ls *.po); do \
sed -i '/^\"POT-Creation-Date:.*\\n.*$/d' $file
done
cd ..
echo "======================================="
fi