docs: Add danpb to authors section.
[techtalk-pse.git] / configure.ac
1 # Tech Talk PSE
2 # Copyright (C) 2010 Red Hat Inc.
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 dnl NOTE: 1.x where x is odd  = development
19 dnl       1.x where x is even = stable
20 AC_INIT([techtalk-pse],[1.1.0])
21 AM_INIT_AUTOMAKE([foreign])
22
23 dnl Check for pod2man and pod2text.
24 AC_CHECK_PROG([POD2MAN],[pod2man],[pod2man],[no])
25 test "x$POD2MAN" = "xno" &&
26      AC_MSG_ERROR([pod2man must be installed])
27 AC_CHECK_PROG([POD2TEXT],[pod2text],[pod2text],[no])
28 test "x$POD2TEXT" = "xno" &&
29      AC_MSG_ERROR([pod2text must be installed])
30
31 dnl Check for required Perl modules.
32 missing_perl_modules=no
33 for pm in Pod::Usage Getopt::Long Glib Gtk2 Gtk2::Gdk::Keysyms Gtk2::WebKit Gnome2::Vte; do
34     AC_MSG_CHECKING([for $pm])
35     if ! perl -M$pm -e1 >/dev/null 2>&1; then
36         AC_MSG_RESULT([no])
37         missing_perl_modules=yes
38     else
39         AC_MSG_RESULT([yes])
40     fi
41 done
42 if test "x$missing_perl_modules" = "xyes"; then
43     AC_MSG_FAILURE([some Perl modules required to run the program are missing])
44 fi
45
46 AC_CONFIG_FILES([techtalk-pse:techtalk-pse.pl],
47                 [chmod 0555 techtalk-pse])
48 AC_CONFIG_FILES([Makefile])
49 AC_OUTPUT