configure.ac 2.1 KB
Newer Older
1
AC_INIT(src/gnome-schedule.py)
2
AM_INIT_AUTOMAKE(gnome-schedule, 0.9.0)
Philip Van Hoof's avatar
Philip Van Hoof committed
3

4 5
AM_PATH_PYTHON

6

Philip Van Hoof's avatar
Philip Van Hoof committed
7
PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.3)
8 9
AC_SUBST(PYGTK_CFLAGS)
AC_SUBST(PYGTK_LIBS)
10

11 12 13 14 15 16 17 18 19

AC_PATH_PROG( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
  if test "$PKGCONFIG" != "no" ; then
    AC_MSG_CHECKING([PYTHONPATH env variable for PyGTK])
    PYTHONPATH=$($PKGCONFIG --variable=pyexecdir pygtk-2.0)
    AC_SUBST([PYTHONPATH])
    AC_MSG_RESULT($PYTHONPATH)
  fi

20 21 22 23 24 25
AC_PATH_PROG(GNOMEHELP_CONFIG, gnome-help, no)
if test x$GNOMEHELP_CONFIG = xno; then
  AC_MSG_ERROR(Please install the application gnome-help)
fi

AC_PATH_PROG(CRONTAB_CONFIG, crontab, no)
Philip Van Hoof's avatar
Philip Van Hoof committed
26
if test x$CRONTAB_CONFIG = xno; then
27 28 29
  AC_MSG_ERROR(Please install the application crontab)
fi

Philip Van Hoof's avatar
Philip Van Hoof committed
30 31 32 33 34
AC_PATH_PROG(AT_CONFIG, at, no)
if test x$AT_CONFIG = xno; then
  AC_MSG_ERROR(Please install the application at)
fi

Philip Van Hoof's avatar
Philip Van Hoof committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
AC_PATH_PROG(ATQ_CONFIG, atq, no)
if test x$ATQ_CONFIG = xno; then
  AC_MSG_ERROR(Please install the application atq)
fi

AC_PATH_PROG(ATRM_CONFIG, atrm, no)
if test x$ATRM_CONFIG = xno; then
  AC_MSG_ERROR(Please install the application atrm)
fi

AC_PATH_PROG(BATCH_CONFIG, batch, no)
if test x$BATCH_CONFIG = xno; then
  AC_MSG_ERROR(Please install the application batch)
fi

Philip Van Hoof's avatar
Philip Van Hoof committed
50

Philip Van Hoof's avatar
Philip Van Hoof committed
51 52 53 54 55
AC_PATH_PROG(PYTHON_CONFIG, python, no)
if test x$PYTHON_CONFIG = xno; then
  AC_MSG_ERROR(Please install the application python)
fi

Gaute Hope's avatar
Gaute Hope committed
56 57 58 59 60
AC_PATH_PROG(SU_CONFIG, su, no)
if test x$BATCH_CONFIG = xno; then
  AC_MSG_ERROR(Please install the application su)
fi

61

Philip Van Hoof's avatar
Philip Van Hoof committed
62 63 64
dnl *******************************
dnl Internationalization
dnl ******************************* 
65
GETTEXT_PACKAGE=gnome-schedule
Philip Van Hoof's avatar
Philip Van Hoof committed
66 67 68 69
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
AC_SUBST(GETTEXT_PACKAGE)

dnl Add the languages which your application supports here.
Pawan Chitrakar's avatar
Pawan Chitrakar committed
70
ALL_LINGUAS="bg ca cs da de el en_CA en_GB es fi fr hu it lt ne nl nn pa pt pt_BR rw sq sv uk zh_CN"
Philip Van Hoof's avatar
Philip Van Hoof committed
71 72

AM_GLIB_GNU_GETTEXT
73
AC_PROG_INTLTOOL
Philip Van Hoof's avatar
Philip Van Hoof committed
74 75 76

AC_OUTPUT([
Makefile
77 78 79
src/config.py
src/Makefile
src/gnome-schedule
Gaute Hope's avatar
Gaute Hope committed
80
src/scheduleapplet
81 82
doc/Makefile
pixmaps/Makefile
Philip Van Hoof's avatar
Rename  
Philip Van Hoof committed
83
po/Makefile.in
84 85
desktop/Makefile
desktop/gnome-schedule.desktop
Gaute Hope's avatar
Gaute Hope committed
86
servers/Makefile
Gaute Hope's avatar
Gaute Hope committed
87
servers/GNOME_schedule.server
Philip Van Hoof's avatar
Rename  
Philip Van Hoof committed
88
])