diff --git a/Makefile.am b/Makefile.am index f1a7273..20171f2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,11 +1,11 @@ -SUBDIRS = polkitgtk src po docs +SUBDIRS = src po EXTRA_DIST = \ autogen.sh \ TODO \ HACKING -DISTCHECK_CONFIGURE_FLAGS="--disable-introspection --disable-maintainer-mode" +DISTCHECK_CONFIGURE_FLAGS="--disable-maintainer-mode" clean-local : rm -f *~ po/*~ diff --git a/Makefile.in b/Makefile.in index 668d67a..2869416 100644 --- a/Makefile.in +++ b/Makefile.in @@ -149,9 +149,10 @@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ -GTK_API_VERSION = @GTK_API_VERSION@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ G_IR_COMPILER = @G_IR_COMPILER@ @@ -276,13 +277,13 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -SUBDIRS = polkitgtk src po docs +SUBDIRS = src po EXTRA_DIST = \ autogen.sh \ TODO \ HACKING -DISTCHECK_CONFIGURE_FLAGS = "--disable-introspection --disable-maintainer-mode" +DISTCHECK_CONFIGURE_FLAGS = "--disable-maintainer-mode" all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive diff --git a/NEWS b/NEWS index 2f14022..be05b25 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,72 @@ +========== +polkit-gnome 0.104 +========== + +This is polkit-gnome version 0.104. + +Build requirements + + polkit >= 0.96 + gtk+-3.0 >= 3.0 + +Changes since 0.103: + +Carles Ferrando (1): + [l10n]Updated Catalan (Valencian) translation + +David Zeuthen (1): + Post-release version bump to 0.104 + +Gianvito Cavasoli (1): + l10n: Updated Italian translation + +Gil Forcada (1): + [l10n]Updated Catalan translation + +Inaki Larranaga Murgoitio (1): + Updated Basque language + +Olav Vitters (1): + add download link to doap file + +Thanks to our contributors. + +Matthias Clasen, +October 17, 2011 + +========== +polkit-gnome 0.103 +========== + +This is polkit-gnome version 0.103. + +Build requirements + + polkit >= 0.96 + gtk+-3.0 >= 3.0 + +Changes since 0.102: + +Alexandre Franke (2): + Fix typo + Add DOAP and drop MAINTAINERS file + +David Zeuthen (3): + Post-release version bump to 0.103 + Fix make distcheck + Update NEWS for release + +Matthias Clasen (4): + Drop polkit-gtk + configure.ac: Drop a duplicated section + Drop --with-gtk=2.0|3.0 + Drop marshaller complications + +Thanks to our contributors. + +David Zeuthen, +Sep 19, 2011 + ========== polkit-gnome 0.102 ========== diff --git a/aclocal.m4 b/aclocal.m4 index 8ca01b1..d94a978 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -19,892 +19,1002 @@ If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) -# Copyright (C) 1995-2002 Free Software Foundation, Inc. -# Copyright (C) 2001-2003,2004 Red Hat, Inc. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # -# This file is free software, distributed under the terms of the GNU -# General Public License. As a special exception to the GNU General -# Public License, this file may be distributed as part of a program -# that contains a configuration script generated by Autoconf, under -# the same distribution terms as the rest of that program. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.1], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.11.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # -# This file can be copied and used freely without restrictions. It can -# be used in projects which are not available under the GNU Public License -# but which still want to provide support for the GNU gettext functionality. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. # -# Macro to add for using GNU gettext. -# Ulrich Drepper , 1995, 1996 +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. # -# Modified to never use included libintl. -# Owen Taylor , 12/15/1998 +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir # -# Major rework to remove unused code -# Owen Taylor , 12/11/2002 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. # -# Added better handling of ALL_LINGUAS from GNU gettext version -# written by Bruno Haible, Owen Taylor 5/30/3002 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. # -# Modified to require ngettext -# Matthias Clasen 08/06/2004 +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 +# Free Software Foundation, Inc. # -# We need this here as well, since someone might use autoconf-2.5x -# to configure GLib then an older version to configure a package -# using AM_GLIB_GNU_GETTEXT -AC_PREREQ(2.53) - -dnl -dnl We go to great lengths to make sure that aclocal won't -dnl try to pull in the installed version of these macros -dnl when running aclocal in the glib directory. -dnl -m4_copy([AC_DEFUN],[glib_DEFUN]) -m4_copy([AC_REQUIRE],[glib_REQUIRE]) -dnl -dnl At the end, if we're not within glib, we'll define the public -dnl definitions in terms of our private definitions. -dnl - -# GLIB_LC_MESSAGES -#-------------------- -glib_DEFUN([GLIB_LC_MESSAGES], - [AC_CHECK_HEADERS([locale.h]) - if test $ac_cv_header_locale_h = yes; then - AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, - [AC_TRY_LINK([#include ], [return LC_MESSAGES], - am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) - if test $am_cv_val_LC_MESSAGES = yes; then - AC_DEFINE(HAVE_LC_MESSAGES, 1, - [Define if your file defines LC_MESSAGES.]) - fi - fi]) - -# GLIB_PATH_PROG_WITH_TEST -#---------------------------- -dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) -glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], -[# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=[$]2 -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_path_$1, -[case "[$]$1" in - /*) - ac_cv_path_$1="[$]$1" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in ifelse([$5], , $PATH, [$5]); do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if [$3]; then - ac_cv_path_$1="$ac_dir/$ac_word" +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 10 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break fi fi done - IFS="$ac_save_ifs" -dnl If no 4th arg is given, leave the cache variable unset, -dnl so AC_PATH_PROGS will keep looking. -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" -])dnl - ;; -esac])dnl -$1="$ac_cv_path_$1" -if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then - AC_MSG_RESULT([$]$1) + + cd .. + rm -rf conftest.dir else - AC_MSG_RESULT(no) + am_cv_$1_dependencies_compiler_type=none fi -AC_SUBST($1)dnl ]) - -# GLIB_WITH_NLS -#----------------- -glib_DEFUN([GLIB_WITH_NLS], - dnl NLS is obligatory - [USE_NLS=yes - AC_SUBST(USE_NLS) - - gt_cv_have_gettext=no - - CATOBJEXT=NONE - XGETTEXT=: - INTLLIBS= - - AC_CHECK_HEADER(libintl.h, - [gt_cv_func_dgettext_libintl="no" - libintl_extra_libs="" - - # - # First check in libc - # - AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, - [AC_TRY_LINK([ -#include -], - [return !ngettext ("","", 1)], - gt_cv_func_ngettext_libc=yes, - gt_cv_func_ngettext_libc=no) - ]) - - if test "$gt_cv_func_ngettext_libc" = "yes" ; then - AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, - [AC_TRY_LINK([ -#include -], - [return !dgettext ("","")], - gt_cv_func_dgettext_libc=yes, - gt_cv_func_dgettext_libc=no) - ]) - fi - - if test "$gt_cv_func_ngettext_libc" = "yes" ; then - AC_CHECK_FUNCS(bind_textdomain_codeset) - fi - - # - # If we don't have everything we want, check in libintl - # - if test "$gt_cv_func_dgettext_libc" != "yes" \ - || test "$gt_cv_func_ngettext_libc" != "yes" \ - || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then - - AC_CHECK_LIB(intl, bindtextdomain, - [AC_CHECK_LIB(intl, ngettext, - [AC_CHECK_LIB(intl, dgettext, - gt_cv_func_dgettext_libintl=yes)])]) - - if test "$gt_cv_func_dgettext_libintl" != "yes" ; then - AC_MSG_CHECKING([if -liconv is needed to use gettext]) - AC_MSG_RESULT([]) - AC_CHECK_LIB(intl, ngettext, - [AC_CHECK_LIB(intl, dcgettext, - [gt_cv_func_dgettext_libintl=yes - libintl_extra_libs=-liconv], - :,-liconv)], - :,-liconv) - fi - - # - # If we found libintl, then check in it for bind_textdomain_codeset(); - # we'll prefer libc if neither have bind_textdomain_codeset(), - # and both have dgettext and ngettext - # - if test "$gt_cv_func_dgettext_libintl" = "yes" ; then - glib_save_LIBS="$LIBS" - LIBS="$LIBS -lintl $libintl_extra_libs" - unset ac_cv_func_bind_textdomain_codeset - AC_CHECK_FUNCS(bind_textdomain_codeset) - LIBS="$glib_save_LIBS" - - if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then - gt_cv_func_dgettext_libc=no - else - if test "$gt_cv_func_dgettext_libc" = "yes" \ - && test "$gt_cv_func_ngettext_libc" = "yes"; then - gt_cv_func_dgettext_libintl=no - fi - fi - fi - fi - - if test "$gt_cv_func_dgettext_libc" = "yes" \ - || test "$gt_cv_func_dgettext_libintl" = "yes"; then - gt_cv_have_gettext=yes - fi - - if test "$gt_cv_func_dgettext_libintl" = "yes"; then - INTLLIBS="-lintl $libintl_extra_libs" - fi - - if test "$gt_cv_have_gettext" = "yes"; then - AC_DEFINE(HAVE_GETTEXT,1, - [Define if the GNU gettext() function is already present or preinstalled.]) - GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl - if test "$MSGFMT" != "no"; then - glib_save_LIBS="$LIBS" - LIBS="$LIBS $INTLLIBS" - AC_CHECK_FUNCS(dcgettext) - MSGFMT_OPTS= - AC_MSG_CHECKING([if msgfmt accepts -c]) - GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ -msgid "" -msgstr "" -"Content-Type: text/plain; charset=UTF-8\n" -"Project-Id-Version: test 1.0\n" -"PO-Revision-Date: 2007-02-15 12:01+0100\n" -"Last-Translator: test \n" -"Language-Team: C \n" -"MIME-Version: 1.0\n" -"Content-Transfer-Encoding: 8bit\n" -], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) - AC_SUBST(MSGFMT_OPTS) - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) - GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, - [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) - AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; - return _nl_msg_cat_cntr], - [CATOBJEXT=.gmo - DATADIRNAME=share], - [case $host in - *-*-solaris*) - dnl On Solaris, if bind_textdomain_codeset is in libc, - dnl GNU format message catalog is always supported, - dnl since both are added to the libc all together. - dnl Hence, we'd like to go with DATADIRNAME=share and - dnl and CATOBJEXT=.gmo in this case. - AC_CHECK_FUNC(bind_textdomain_codeset, - [CATOBJEXT=.gmo - DATADIRNAME=share], - [CATOBJEXT=.mo - DATADIRNAME=lib]) - ;; - *) - CATOBJEXT=.mo - DATADIRNAME=lib - ;; - esac]) - LIBS="$glib_save_LIBS" - INSTOBJEXT=.mo - else - gt_cv_have_gettext=no - fi - fi - ]) - - if test "$gt_cv_have_gettext" = "yes" ; then - AC_DEFINE(ENABLE_NLS, 1, - [always defined to indicate that i18n is enabled]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 5 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue fi - - dnl Test whether we really found GNU xgettext. - if test "$XGETTEXT" != ":"; then - dnl If it is not GNU xgettext we define it as : so that the - dnl Makefiles still can work. - if $XGETTEXT --omit-header /dev/null 2> /dev/null; then - : ; - else - AC_MSG_RESULT( - [found xgettext program is not GNU xgettext; ignore it]) - XGETTEXT=":" - fi - fi - - # We need to process the po/ directory. - POSUB=po - - AC_OUTPUT_COMMANDS( - [case "$CONFIG_FILES" in *po/Makefile.in*) - sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile - esac]) - - dnl These rules are solely for the distribution goal. While doing this - dnl we only have to keep exactly one list of the available catalogs - dnl in configure.ac. - for lang in $ALL_LINGUAS; do - GMOFILES="$GMOFILES $lang.gmo" - POFILES="$POFILES $lang.po" + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" done - - dnl Make all variables we use known to autoconf. - AC_SUBST(CATALOGS) - AC_SUBST(CATOBJEXT) - AC_SUBST(DATADIRNAME) - AC_SUBST(GMOFILES) - AC_SUBST(INSTOBJEXT) - AC_SUBST(INTLLIBS) - AC_SUBST(PO_IN_DATADIR_TRUE) - AC_SUBST(PO_IN_DATADIR_FALSE) - AC_SUBST(POFILES) - AC_SUBST(POSUB) - ]) - -# AM_GLIB_GNU_GETTEXT -# ------------------- -# Do checks necessary for use of gettext. If a suitable implementation -# of gettext is found in either in libintl or in the C library, -# it will set INTLLIBS to the libraries needed for use of gettext -# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable -# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() -# on various variables needed by the Makefile.in.in installed by -# glib-gettextize. -dnl -glib_DEFUN([GLIB_GNU_GETTEXT], - [AC_REQUIRE([AC_PROG_CC])dnl - AC_REQUIRE([AC_HEADER_STDC])dnl - - GLIB_LC_MESSAGES - GLIB_WITH_NLS - - if test "$gt_cv_have_gettext" = "yes"; then - if test "x$ALL_LINGUAS" = "x"; then - LINGUAS= - else - AC_MSG_CHECKING(for catalogs to be installed) - NEW_LINGUAS= - for presentlang in $ALL_LINGUAS; do - useit=no - if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then - desiredlanguages="$LINGUAS" - else - desiredlanguages="$ALL_LINGUAS" - fi - for desiredlang in $desiredlanguages; do - # Use the presentlang catalog if desiredlang is - # a. equal to presentlang, or - # b. a variant of presentlang (because in this case, - # presentlang can be used as a fallback for messages - # which are not translated in the desiredlang catalog). - case "$desiredlang" in - "$presentlang"*) useit=yes;; - esac - done - if test $useit = yes; then - NEW_LINGUAS="$NEW_LINGUAS $presentlang" - fi - done - LINGUAS=$NEW_LINGUAS - AC_MSG_RESULT($LINGUAS) - fi - - dnl Construct list of names of catalog files to be constructed. - if test -n "$LINGUAS"; then - for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done - fi - fi - - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly - dnl find the mkinstalldirs script in another subdir but ($top_srcdir). - dnl Try to locate is. - MKINSTALLDIRS= - if test -n "$ac_aux_dir"; then - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" - fi - if test -z "$MKINSTALLDIRS"; then - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" - fi - AC_SUBST(MKINSTALLDIRS) - - dnl Generate list of files to be processed by xgettext which will - dnl be included in po/Makefile. - test -d po || mkdir po - if test "x$srcdir" != "x."; then - if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then - posrcprefix="$srcdir/" - else - posrcprefix="../$srcdir/" - fi - else - posrcprefix="../" - fi - rm -f po/POTFILES - sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ - < $srcdir/po/POTFILES.in > po/POTFILES - ]) - -# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) -# ------------------------------- -# Define VARIABLE to the location where catalog files will -# be installed by po/Makefile. -glib_DEFUN([GLIB_DEFINE_LOCALEDIR], -[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl -glib_save_prefix="$prefix" -glib_save_exec_prefix="$exec_prefix" -glib_save_datarootdir="$datarootdir" -test "x$prefix" = xNONE && prefix=$ac_default_prefix -test "x$exec_prefix" = xNONE && exec_prefix=$prefix -datarootdir=`eval echo "${datarootdir}"` -if test "x$CATOBJEXT" = "x.mo" ; then - localedir=`eval echo "${libdir}/locale"` + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 16 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) + +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. else - localedir=`eval echo "${datadir}/locale"` + am__leading_dot=_ fi -prefix="$glib_save_prefix" -exec_prefix="$glib_save_exec_prefix" -datarootdir="$glib_save_datarootdir" -AC_DEFINE_UNQUOTED($1, "$localedir", - [Define the location where the catalogs will be installed]) -]) - -dnl -dnl Now the definitions that aclocal will find -dnl -ifdef(glib_configure_ac,[],[ -AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) -AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) -])dnl - -# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) -# -# Create a temporary file with TEST-FILE as its contents and pass the -# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with -# 0 and perform ACTION-IF-FAIL for any other exit status. -AC_DEFUN([GLIB_RUN_PROG], -[cat >conftest.foo <<_ACEOF -$2 -_ACEOF -if AC_RUN_LOG([$1 conftest.foo]); then - m4_ifval([$3], [$3], [:]) -m4_ifvaln([$4], [else $4])dnl -echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD -sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD -fi]) - - -# gnome-common.m4 +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. # -# serial 3 -# - -dnl GNOME_COMMON_INIT - -AU_DEFUN([GNOME_COMMON_INIT], -[ - dnl this macro should come after AC_CONFIG_MACRO_DIR - AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0]) - - dnl ensure that when the Automake generated makefile calls aclocal, - dnl it honours the $ACLOCAL_FLAGS environment variable - ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" - if test -n "$ac_macro_dir"; then - ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS" - fi - - AC_SUBST([ACLOCAL_AMFLAGS]) -], -[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}" -in your top-level Makefile.am, instead, where "m4" is the macro directory set -with AC_CONFIG_MACRO_DIR() in your configure.ac]]) - -AC_DEFUN([GNOME_DEBUG_CHECK], -[ - AC_ARG_ENABLE([debug], - AC_HELP_STRING([--enable-debug], - [turn on debugging]),, - [enable_debug=no]) - - if test x$enable_debug = xyes ; then - AC_DEFINE(GNOME_ENABLE_DEBUG, 1, - [Enable additional debugging at the expense of performance and size]) - fi -]) - -dnl GNOME_MAINTAINER_MODE_DEFINES () -dnl define DISABLE_DEPRECATED -dnl -AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES], -[ - AC_REQUIRE([AM_MAINTAINER_MODE]) - - DISABLE_DEPRECATED="" - if test $USE_MAINTAINER_MODE = yes; then - DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP" - for DOMAIN in $DOMAINS; do - DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" - done - fi - - AC_SUBST(DISABLE_DEPRECATED) -]) - -dnl GNOME_COMPILE_WARNINGS -dnl Turn on many useful compiler warnings -dnl For now, only works on GCC -AC_DEFUN([GNOME_COMPILE_WARNINGS],[ - dnl ****************************** - dnl More compiler warnings - dnl ****************************** - - AC_ARG_ENABLE(compile-warnings, - AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], - [Turn on compiler warnings]),, - [enable_compile_warnings="m4_default([$1],[yes])"]) - - warnCFLAGS= - if test "x$GCC" != xyes; then - enable_compile_warnings=no - fi - - warning_flags= - realsave_CFLAGS="$CFLAGS" - - case "$enable_compile_warnings" in - no) - warning_flags= - ;; - minimum) - warning_flags="-Wall" - ;; - yes) - warning_flags="-Wall -Wmissing-prototypes" - ;; - maximum|error) - warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith" - CFLAGS="$warning_flags $CFLAGS" - for option in -Wno-sign-compare; do - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $option" - AC_MSG_CHECKING([whether gcc understands $option]) - AC_TRY_COMPILE([], [], - has_option=yes, - has_option=no,) - CFLAGS="$SAVE_CFLAGS" - AC_MSG_RESULT($has_option) - if test $has_option = yes; then - warning_flags="$warning_flags $option" - fi - unset has_option - unset SAVE_CFLAGS - done - unset option - if test "$enable_compile_warnings" = "error" ; then - warning_flags="$warning_flags -Werror" - fi - ;; - *) - AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings) - ;; - esac - CFLAGS="$realsave_CFLAGS" - AC_MSG_CHECKING(what warning flags to pass to the C compiler) - AC_MSG_RESULT($warning_flags) - - AC_ARG_ENABLE(iso-c, - AC_HELP_STRING([--enable-iso-c], - [Try to warn if code is not ISO C ]),, - [enable_iso_c=no]) - - AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) - complCFLAGS= - if test "x$enable_iso_c" != "xno"; then - if test "x$GCC" = "xyes"; then - case " $CFLAGS " in - *[\ \ ]-ansi[\ \ ]*) ;; - *) complCFLAGS="$complCFLAGS -ansi" ;; - esac - case " $CFLAGS " in - *[\ \ ]-pedantic[\ \ ]*) ;; - *) complCFLAGS="$complCFLAGS -pedantic" ;; - esac - fi - fi - AC_MSG_RESULT($complCFLAGS) - - WARN_CFLAGS="$warning_flags $complCFLAGS" - AC_SUBST(WARN_CFLAGS) -]) - -dnl For C++, do basically the same thing. - -AC_DEFUN([GNOME_CXX_WARNINGS],[ - AC_ARG_ENABLE(cxx-warnings, - AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] - [Turn on compiler warnings.]),, - [enable_cxx_warnings="m4_default([$1],[minimum])"]) - - AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) - warnCXXFLAGS= - if test "x$GXX" != xyes; then - enable_cxx_warnings=no - fi - if test "x$enable_cxx_warnings" != "xno"; then - if test "x$GXX" = "xyes"; then - case " $CXXFLAGS " in - *[\ \ ]-Wall[\ \ ]*) ;; - *) warnCXXFLAGS="-Wall -Wno-unused" ;; - esac - - ## -W is not all that useful. And it cannot be controlled - ## with individual -Wno-xxx flags, unlike -Wall - if test "x$enable_cxx_warnings" = "xyes"; then - warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" - fi - fi - fi - AC_MSG_RESULT($warnCXXFLAGS) - - AC_ARG_ENABLE(iso-cxx, - AC_HELP_STRING([--enable-iso-cxx], - [Try to warn if code is not ISO C++ ]),, - [enable_iso_cxx=no]) - - AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) - complCXXFLAGS= - if test "x$enable_iso_cxx" != "xno"; then - if test "x$GXX" = "xyes"; then - case " $CXXFLAGS " in - *[\ \ ]-ansi[\ \ ]*) ;; - *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; - esac - - case " $CXXFLAGS " in - *[\ \ ]-pedantic[\ \ ]*) ;; - *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; - esac - fi - fi - AC_MSG_RESULT($complCXXFLAGS) - - WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" - AC_SUBST(WARN_CXXFLAGS) -]) - -dnl -*- mode: autoconf -*- - -# serial 1 - -dnl Usage: -dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) -AC_DEFUN([GTK_DOC_CHECK], -[ - AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first - AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first - - dnl check for tools we added during development - AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check]) - AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) - AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) - - dnl for overriding the documentation installation directory - AC_ARG_WITH([html-dir], - AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, - [with_html_dir='${datadir}/gtk-doc/html']) - HTML_DIR="$with_html_dir" - AC_SUBST([HTML_DIR]) - - dnl enable/disable documentation building - AC_ARG_ENABLE([gtk-doc], - AS_HELP_STRING([--enable-gtk-doc], - [use gtk-doc to build documentation [[default=no]]]),, - [enable_gtk_doc=no]) - - if test x$enable_gtk_doc = xyes; then - ifelse([$1],[], - [PKG_CHECK_EXISTS([gtk-doc],, - AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], - [PKG_CHECK_EXISTS([gtk-doc >= $1],, - AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))]) - fi - - AC_MSG_CHECKING([whether to build gtk-doc documentation]) - AC_MSG_RESULT($enable_gtk_doc) - - dnl enable/disable output formats - AC_ARG_ENABLE([gtk-doc-html], - AS_HELP_STRING([--enable-gtk-doc-html], - [build documentation in html format [[default=yes]]]),, - [enable_gtk_doc_html=yes]) - AC_ARG_ENABLE([gtk-doc-pdf], - AS_HELP_STRING([--enable-gtk-doc-pdf], - [build documentation in pdf format [[default=no]]]),, - [enable_gtk_doc_pdf=no]) - - if test -z "$GTKDOC_MKPDF"; then - enable_gtk_doc_pdf=no - fi - - - AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) - AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) - AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) - AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) - AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) -]) - - -dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) -# serial 40 IT_PROG_INTLTOOL -AC_DEFUN([IT_PROG_INTLTOOL], [ -AC_PREREQ([2.50])dnl -AC_REQUIRE([AM_NLS])dnl - -case "$am__api_version" in - 1.[01234]) - AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) - ;; - *) - ;; -esac - -if test -n "$1"; then - AC_MSG_CHECKING([for intltool >= $1]) - - INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` - INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` - [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` - ] - AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) - test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || - AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) -fi - -AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) -AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) -AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) -if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then - AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) -fi - - INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' -INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' - INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' -INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' - INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' - -_IT_SUBST(INTLTOOL_DESKTOP_RULE) -_IT_SUBST(INTLTOOL_DIRECTORY_RULE) -_IT_SUBST(INTLTOOL_KEYS_RULE) -_IT_SUBST(INTLTOOL_PROP_RULE) -_IT_SUBST(INTLTOOL_OAF_RULE) -_IT_SUBST(INTLTOOL_PONG_RULE) -_IT_SUBST(INTLTOOL_SERVER_RULE) -_IT_SUBST(INTLTOOL_SHEET_RULE) -_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) -_IT_SUBST(INTLTOOL_UI_RULE) -_IT_SUBST(INTLTOOL_XAM_RULE) -_IT_SUBST(INTLTOOL_KBD_RULE) -_IT_SUBST(INTLTOOL_XML_RULE) -_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) -_IT_SUBST(INTLTOOL_CAVES_RULE) -_IT_SUBST(INTLTOOL_SCHEMAS_RULE) -_IT_SUBST(INTLTOOL_THEME_RULE) -_IT_SUBST(INTLTOOL_SERVICE_RULE) -_IT_SUBST(INTLTOOL_POLICY_RULE) - -# Check the gettext tools to make sure they are GNU -AC_PATH_PROG(XGETTEXT, xgettext) -AC_PATH_PROG(MSGMERGE, msgmerge) -AC_PATH_PROG(MSGFMT, msgfmt) -AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) -if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then - AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) -fi -xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" -mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" -mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" -if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then - AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) -fi - -AC_PATH_PROG(INTLTOOL_PERL, perl) -if test -z "$INTLTOOL_PERL"; then - AC_MSG_ERROR([perl not found]) -fi -AC_MSG_CHECKING([for perl >= 5.8.1]) -$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 -if test $? -ne 0; then - AC_MSG_ERROR([perl 5.8.1 is required for intltool]) -else - IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" - AC_MSG_RESULT([$IT_PERL_VERSION]) -fi -if test "x$2" != "xno-xml"; then - AC_MSG_CHECKING([for XML::Parser]) - if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then - AC_MSG_RESULT([ok]) - else - AC_MSG_ERROR([XML::Parser perl module is required for intltool]) - fi -fi - -# Substitute ALL_LINGUAS so we can use it in po/Makefile -AC_SUBST(ALL_LINGUAS) - -# Set DATADIRNAME correctly if it is not set yet -# (copied from glib-gettext.m4) -if test -z "$DATADIRNAME"; then - AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[]], - [[extern int _nl_msg_cat_cntr; - return _nl_msg_cat_cntr]])], - [DATADIRNAME=share], - [case $host in - *-*-solaris*) - dnl On Solaris, if bind_textdomain_codeset is in libc, - dnl GNU format message catalog is always supported, - dnl since both are added to the libc all together. - dnl Hence, we'd like to go with DATADIRNAME=share - dnl in this case. - AC_CHECK_FUNC(bind_textdomain_codeset, - [DATADIRNAME=share], [DATADIRNAME=lib]) - ;; - *) - [DATADIRNAME=lib] - ;; - esac]) -fi -AC_SUBST(DATADIRNAME) - -IT_PO_SUBDIR([po]) - -]) - - -# IT_PO_SUBDIR(DIRNAME) -# --------------------- -# All po subdirs have to be declared with this macro; the subdir "po" is -# declared by IT_PROG_INTLTOOL. -# -AC_DEFUN([IT_PO_SUBDIR], -[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. -dnl -dnl The following CONFIG_COMMANDS should be executed at the very end -dnl of config.status. -AC_CONFIG_COMMANDS_PRE([ - AC_CONFIG_COMMANDS([$1/stamp-it], [ - if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then - AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) - fi - rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" - >"$1/stamp-it.tmp" - [sed '/^#/d - s/^[[].*] *// - /^[ ]*$/d - '"s|^| $ac_top_srcdir/|" \ - "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" - ] - [sed '/^POTFILES =/,/[^\\]$/ { - /^POTFILES =/!d - r $1/POTFILES - } - ' "$1/Makefile.in" >"$1/Makefile"] - rm -f "$1/Makefile.tmp" - mv "$1/stamp-it.tmp" "$1/stamp-it" - ]) -])dnl -]) - -# _IT_SUBST(VARIABLE) -# ------------------- -# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST -# -AC_DEFUN([_IT_SUBST], -[ -AC_SUBST([$1]) -m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_MAINTAINER_MODE([DEFAULT-MODE]) +# ---------------------------------- +# Control maintainer-specific portions of Makefiles. +# Default is to disable them, unless `enable' is passed literally. +# For symmetry, `disable' may be passed as well. Anyway, the user +# can override the default with the --enable/--disable switch. +AC_DEFUN([AM_MAINTAINER_MODE], +[m4_case(m4_default([$1], [disable]), + [enable], [m4_define([am_maintainer_other], [disable])], + [disable], [m4_define([am_maintainer_other], [enable])], + [m4_define([am_maintainer_other], [enable]) + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) + dnl maintainer-mode's default is 'disable' unless 'enable' is passed + AC_ARG_ENABLE([maintainer-mode], +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful + (and sometimes confusing) to the casual installer], + [USE_MAINTAINER_MODE=$enableval], + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST([MAINT])dnl ] ) -# deprecated macros -AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) -# A hint is needed for aclocal from Automake <= 1.9.4: -# AC_DEFUN([AC_PROG_INTLTOOL], ...) - +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 1 + +# AM_SILENT_RULES([DEFAULT]) +# -------------------------- +# Enable less verbose build rules; with the default set to DEFAULT +# (`yes' being less verbose, `no' or empty being verbose). +AC_DEFUN([AM_SILENT_RULES], +[AC_ARG_ENABLE([silent-rules], +[ --enable-silent-rules less verbose build output (undo: `make V=1') + --disable-silent-rules verbose build output (undo: `make V=0')]) +case $enable_silent_rules in +yes) AM_DEFAULT_VERBOSITY=0;; +no) AM_DEFAULT_VERBOSITY=1;; +*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; +esac +AC_SUBST([AM_DEFAULT_VERBOSITY])dnl +AM_BACKSLASH='\' +AC_SUBST([AM_BACKSLASH])dnl +_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl +]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # @@ -9528,1000 +9638,900 @@ fi[]dnl ])# PKG_CHECK_MODULES -# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# Copyright (C) 1995-2002 Free Software Foundation, Inc. +# Copyright (C) 2001-2003,2004 Red Hat, Inc. # -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.11' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.11.1], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.11.1])dnl -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# This file is free software, distributed under the terms of the GNU +# General Public License. As a special exception to the GNU General +# Public License, this file may be distributed as part of a program +# that contains a configuration script generated by Autoconf, under +# the same distribution terms as the rest of that program. # -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# This file can be copied and used freely without restrictions. It can +# be used in projects which are not available under the GNU Public License +# but which still want to provide support for the GNU gettext functionality. # -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. +# Macro to add for using GNU gettext. +# Ulrich Drepper , 1995, 1996 # -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir +# Modified to never use included libintl. +# Owen Taylor , 12/15/1998 # -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. +# Major rework to remove unused code +# Owen Taylor , 12/11/2002 # -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. +# Added better handling of ALL_LINGUAS from GNU gettext version +# written by Bruno Haible, Owen Taylor 5/30/3002 # -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 -# Free Software Foundation, Inc. +# Modified to require ngettext +# Matthias Clasen 08/06/2004 # -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 9 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -m4_define([_AM_COND_VALUE_$1], [$2])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 10 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], UPC, [depcc="$UPC" am_compiler_list=], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - am__universal=false - m4_case([$1], [CC], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac], - [CXX], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac]) - - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. Also, some Intel - # versions had trouble with output in subdirs - am__obj=sub/conftest.${OBJEXT-o} - am__minus_obj="-o $am__obj" - case $depmode in - gcc) - # This depmode causes a compiler race in universal mode. - test "$am__universal" = false || continue - ;; - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else +# We need this here as well, since someone might use autoconf-2.5x +# to configure GLib then an older version to configure a package +# using AM_GLIB_GNU_GETTEXT +AC_PREREQ(2.53) + +dnl +dnl We go to great lengths to make sure that aclocal won't +dnl try to pull in the installed version of these macros +dnl when running aclocal in the glib directory. +dnl +m4_copy([AC_DEFUN],[glib_DEFUN]) +m4_copy([AC_REQUIRE],[glib_REQUIRE]) +dnl +dnl At the end, if we're not within glib, we'll define the public +dnl definitions in terms of our private definitions. +dnl + +# GLIB_LC_MESSAGES +#-------------------- +glib_DEFUN([GLIB_LC_MESSAGES], + [AC_CHECK_HEADERS([locale.h]) + if test $ac_cv_header_locale_h = yes; then + AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, + [AC_TRY_LINK([#include ], [return LC_MESSAGES], + am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) + if test $am_cv_val_LC_MESSAGES = yes; then + AC_DEFINE(HAVE_LC_MESSAGES, 1, + [Define if your file defines LC_MESSAGES.]) + fi + fi]) + +# GLIB_PATH_PROG_WITH_TEST +#---------------------------- +dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, +dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) +glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], +[# Extract the first word of "$2", so it can be a program name with args. +set dummy $2; ac_word=[$]2 +AC_MSG_CHECKING([for $ac_word]) +AC_CACHE_VAL(ac_cv_path_$1, +[case "[$]$1" in + /*) + ac_cv_path_$1="[$]$1" # Let the user override the test with a path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in ifelse([$5], , $PATH, [$5]); do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if [$3]; then + ac_cv_path_$1="$ac_dir/$ac_word" break - fi - ;; - msvisualcpp | msvcmsys) - # This compiler won't grok `-c -o', but also, the minuso test has - # not run yet. These depmodes are late enough in the game, and - # so weak that their functioning should not be impacted. - am__obj=conftest.${OBJEXT-o} - am__minus_obj= - ;; - none) break ;; - esac - if depmode=$depmode \ - source=sub/conftest.c object=$am__obj \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep $am__obj sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break fi fi done - - cd .. - rm -rf conftest.dir + IFS="$ac_save_ifs" +dnl If no 4th arg is given, leave the cache variable unset, +dnl so AC_PATH_PROGS will keep looking. +ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" +])dnl + ;; +esac])dnl +$1="$ac_cv_path_$1" +if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then + AC_MSG_RESULT([$]$1) else - am_cv_$1_dependencies_compiler_type=none + AC_MSG_RESULT(no) fi +AC_SUBST($1)dnl ]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) + +# GLIB_WITH_NLS +#----------------- +glib_DEFUN([GLIB_WITH_NLS], + dnl NLS is obligatory + [USE_NLS=yes + AC_SUBST(USE_NLS) + + gt_cv_have_gettext=no + + CATOBJEXT=NONE + XGETTEXT=: + INTLLIBS= + + AC_CHECK_HEADER(libintl.h, + [gt_cv_func_dgettext_libintl="no" + libintl_extra_libs="" + + # + # First check in libc + # + AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, + [AC_TRY_LINK([ +#include +], + [return !ngettext ("","", 1)], + gt_cv_func_ngettext_libc=yes, + gt_cv_func_ngettext_libc=no) + ]) + + if test "$gt_cv_func_ngettext_libc" = "yes" ; then + AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, + [AC_TRY_LINK([ +#include +], + [return !dgettext ("","")], + gt_cv_func_dgettext_libc=yes, + gt_cv_func_dgettext_libc=no) + ]) + fi + + if test "$gt_cv_func_ngettext_libc" = "yes" ; then + AC_CHECK_FUNCS(bind_textdomain_codeset) + fi + + # + # If we don't have everything we want, check in libintl + # + if test "$gt_cv_func_dgettext_libc" != "yes" \ + || test "$gt_cv_func_ngettext_libc" != "yes" \ + || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then + + AC_CHECK_LIB(intl, bindtextdomain, + [AC_CHECK_LIB(intl, ngettext, + [AC_CHECK_LIB(intl, dgettext, + gt_cv_func_dgettext_libintl=yes)])]) + + if test "$gt_cv_func_dgettext_libintl" != "yes" ; then + AC_MSG_CHECKING([if -liconv is needed to use gettext]) + AC_MSG_RESULT([]) + AC_CHECK_LIB(intl, ngettext, + [AC_CHECK_LIB(intl, dcgettext, + [gt_cv_func_dgettext_libintl=yes + libintl_extra_libs=-liconv], + :,-liconv)], + :,-liconv) + fi + + # + # If we found libintl, then check in it for bind_textdomain_codeset(); + # we'll prefer libc if neither have bind_textdomain_codeset(), + # and both have dgettext and ngettext + # + if test "$gt_cv_func_dgettext_libintl" = "yes" ; then + glib_save_LIBS="$LIBS" + LIBS="$LIBS -lintl $libintl_extra_libs" + unset ac_cv_func_bind_textdomain_codeset + AC_CHECK_FUNCS(bind_textdomain_codeset) + LIBS="$glib_save_LIBS" + + if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then + gt_cv_func_dgettext_libc=no + else + if test "$gt_cv_func_dgettext_libc" = "yes" \ + && test "$gt_cv_func_ngettext_libc" = "yes"; then + gt_cv_func_dgettext_libintl=no + fi + fi + fi + fi + + if test "$gt_cv_func_dgettext_libc" = "yes" \ + || test "$gt_cv_func_dgettext_libintl" = "yes"; then + gt_cv_have_gettext=yes + fi + + if test "$gt_cv_func_dgettext_libintl" = "yes"; then + INTLLIBS="-lintl $libintl_extra_libs" + fi + + if test "$gt_cv_have_gettext" = "yes"; then + AC_DEFINE(HAVE_GETTEXT,1, + [Define if the GNU gettext() function is already present or preinstalled.]) + GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl + if test "$MSGFMT" != "no"; then + glib_save_LIBS="$LIBS" + LIBS="$LIBS $INTLLIBS" + AC_CHECK_FUNCS(dcgettext) + MSGFMT_OPTS= + AC_MSG_CHECKING([if msgfmt accepts -c]) + GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ +msgid "" +msgstr "" +"Content-Type: text/plain; charset=UTF-8\n" +"Project-Id-Version: test 1.0\n" +"PO-Revision-Date: 2007-02-15 12:01+0100\n" +"Last-Translator: test \n" +"Language-Team: C \n" +"MIME-Version: 1.0\n" +"Content-Transfer-Encoding: 8bit\n" +], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) + AC_SUBST(MSGFMT_OPTS) + AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) + GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, + [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) + AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; + return _nl_msg_cat_cntr], + [CATOBJEXT=.gmo + DATADIRNAME=share], + [case $host in + *-*-solaris*) + dnl On Solaris, if bind_textdomain_codeset is in libc, + dnl GNU format message catalog is always supported, + dnl since both are added to the libc all together. + dnl Hence, we'd like to go with DATADIRNAME=share and + dnl and CATOBJEXT=.gmo in this case. + AC_CHECK_FUNC(bind_textdomain_codeset, + [CATOBJEXT=.gmo + DATADIRNAME=share], + [CATOBJEXT=.mo + DATADIRNAME=lib]) + ;; + *-*-openbsd*) + CATOBJEXT=.mo + DATADIRNAME=share + ;; + *) + CATOBJEXT=.mo + DATADIRNAME=lib + ;; + esac]) + LIBS="$glib_save_LIBS" + INSTOBJEXT=.mo + else + gt_cv_have_gettext=no + fi + fi + ]) + + if test "$gt_cv_have_gettext" = "yes" ; then + AC_DEFINE(ENABLE_NLS, 1, + [always defined to indicate that i18n is enabled]) + fi + + dnl Test whether we really found GNU xgettext. + if test "$XGETTEXT" != ":"; then + dnl If it is not GNU xgettext we define it as : so that the + dnl Makefiles still can work. + if $XGETTEXT --omit-header /dev/null 2> /dev/null; then + : ; + else + AC_MSG_RESULT( + [found xgettext program is not GNU xgettext; ignore it]) + XGETTEXT=":" + fi + fi + + # We need to process the po/ directory. + POSUB=po + + AC_OUTPUT_COMMANDS( + [case "$CONFIG_FILES" in *po/Makefile.in*) + sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile + esac]) + + dnl These rules are solely for the distribution goal. While doing this + dnl we only have to keep exactly one list of the available catalogs + dnl in configure.ac. + for lang in $ALL_LINGUAS; do + GMOFILES="$GMOFILES $lang.gmo" + POFILES="$POFILES $lang.po" + done + + dnl Make all variables we use known to autoconf. + AC_SUBST(CATALOGS) + AC_SUBST(CATOBJEXT) + AC_SUBST(DATADIRNAME) + AC_SUBST(GMOFILES) + AC_SUBST(INSTOBJEXT) + AC_SUBST(INTLLIBS) + AC_SUBST(PO_IN_DATADIR_TRUE) + AC_SUBST(PO_IN_DATADIR_FALSE) + AC_SUBST(POFILES) + AC_SUBST(POSUB) + ]) + +# AM_GLIB_GNU_GETTEXT +# ------------------- +# Do checks necessary for use of gettext. If a suitable implementation +# of gettext is found in either in libintl or in the C library, +# it will set INTLLIBS to the libraries needed for use of gettext +# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable +# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() +# on various variables needed by the Makefile.in.in installed by +# glib-gettextize. +dnl +glib_DEFUN([GLIB_GNU_GETTEXT], + [AC_REQUIRE([AC_PROG_CC])dnl + AC_REQUIRE([AC_HEADER_STDC])dnl + + GLIB_LC_MESSAGES + GLIB_WITH_NLS + + if test "$gt_cv_have_gettext" = "yes"; then + if test "x$ALL_LINGUAS" = "x"; then + LINGUAS= + else + AC_MSG_CHECKING(for catalogs to be installed) + NEW_LINGUAS= + for presentlang in $ALL_LINGUAS; do + useit=no + if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then + desiredlanguages="$LINGUAS" + else + desiredlanguages="$ALL_LINGUAS" + fi + for desiredlang in $desiredlanguages; do + # Use the presentlang catalog if desiredlang is + # a. equal to presentlang, or + # b. a variant of presentlang (because in this case, + # presentlang can be used as a fallback for messages + # which are not translated in the desiredlang catalog). + case "$desiredlang" in + "$presentlang"*) useit=yes;; + esac + done + if test $useit = yes; then + NEW_LINGUAS="$NEW_LINGUAS $presentlang" + fi + done + LINGUAS=$NEW_LINGUAS + AC_MSG_RESULT($LINGUAS) + fi + + dnl Construct list of names of catalog files to be constructed. + if test -n "$LINGUAS"; then + for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done + fi + fi + + dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly + dnl find the mkinstalldirs script in another subdir but ($top_srcdir). + dnl Try to locate is. + MKINSTALLDIRS= + if test -n "$ac_aux_dir"; then + MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" + fi + if test -z "$MKINSTALLDIRS"; then + MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" + fi + AC_SUBST(MKINSTALLDIRS) + + dnl Generate list of files to be processed by xgettext which will + dnl be included in po/Makefile. + test -d po || mkdir po + if test "x$srcdir" != "x."; then + if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then + posrcprefix="$srcdir/" + else + posrcprefix="../$srcdir/" + fi + else + posrcprefix="../" + fi + rm -f po/POTFILES + sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ + < $srcdir/po/POTFILES.in > po/POTFILES + ]) + +# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) +# ------------------------------- +# Define VARIABLE to the location where catalog files will +# be installed by po/Makefile. +glib_DEFUN([GLIB_DEFINE_LOCALEDIR], +[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl +glib_save_prefix="$prefix" +glib_save_exec_prefix="$exec_prefix" +glib_save_datarootdir="$datarootdir" +test "x$prefix" = xNONE && prefix=$ac_default_prefix +test "x$exec_prefix" = xNONE && exec_prefix=$prefix +datarootdir=`eval echo "${datarootdir}"` +if test "x$CATOBJEXT" = "x.mo" ; then + localedir=`eval echo "${libdir}/locale"` +else + localedir=`eval echo "${datadir}/locale"` +fi +prefix="$glib_save_prefix" +exec_prefix="$glib_save_exec_prefix" +datarootdir="$glib_save_datarootdir" +AC_DEFINE_UNQUOTED($1, "$localedir", + [Define the location where the catalogs will be installed]) ]) - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +dnl +dnl Now the definitions that aclocal will find +dnl +ifdef(glib_configure_ac,[],[ +AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) +AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) +])dnl + +# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) +# +# Create a temporary file with TEST-FILE as its contents and pass the +# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with +# 0 and perform ACTION-IF-FAIL for any other exit status. +AC_DEFUN([GLIB_RUN_PROG], +[cat >conftest.foo <<_ACEOF +$2 +_ACEOF +if AC_RUN_LOG([$1 conftest.foo]); then + m4_ifval([$3], [$3], [:]) +m4_ifvaln([$4], [else $4])dnl +echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD +sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD +fi]) + + +# gnome-common.m4 +# +# serial 3 +# + +dnl GNOME_COMMON_INIT + +AU_DEFUN([GNOME_COMMON_INIT], +[ + dnl this macro should come after AC_CONFIG_MACRO_DIR + AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0]) + + dnl ensure that when the Automake generated makefile calls aclocal, + dnl it honours the $ACLOCAL_FLAGS environment variable + ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" + if test -n "$ac_macro_dir"; then + ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS" + fi + + AC_SUBST([ACLOCAL_AMFLAGS]) +], +[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}" +in your top-level Makefile.am, instead, where "m4" is the macro directory set +with AC_CONFIG_MACRO_DIR() in your configure.ac]]) + +AC_DEFUN([GNOME_DEBUG_CHECK], +[ + AC_ARG_ENABLE([debug], + AC_HELP_STRING([--enable-debug], + [turn on debugging]),, + [enable_debug=no]) + + if test x$enable_debug = xyes ; then + AC_DEFINE(GNOME_ENABLE_DEBUG, 1, + [Enable additional debugging at the expense of performance and size]) + fi ]) - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' +dnl GNOME_MAINTAINER_MODE_DEFINES () +dnl define DISABLE_DEPRECATED +dnl +AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES], +[ + AC_REQUIRE([AM_MAINTAINER_MODE]) + + DISABLE_DEPRECATED="" + if test $USE_MAINTAINER_MODE = yes; then + DOMAINS="ATK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP" + for DOMAIN in $DOMAINS; do + DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" + done + fi + + AC_SUBST(DISABLE_DEPRECATED) +]) + +dnl GNOME_COMPILE_WARNINGS +dnl Turn on many useful compiler warnings +dnl For now, only works on GCC +AC_DEFUN([GNOME_COMPILE_WARNINGS],[ + dnl ****************************** + dnl More compiler warnings + dnl ****************************** + + AC_ARG_ENABLE(compile-warnings, + AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], + [Turn on compiler warnings]),, + [enable_compile_warnings="m4_default([$1],[yes])"]) + + warnCFLAGS= + if test "x$GCC" != xyes; then + enable_compile_warnings=no + fi + + warning_flags= + realsave_CFLAGS="$CFLAGS" + + case "$enable_compile_warnings" in + no) + warning_flags= + ;; + minimum) + warning_flags="-Wall" + ;; + yes) + warning_flags="-Wall -Wmissing-prototypes" + ;; + maximum|error) + warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith" + CFLAGS="$warning_flags $CFLAGS" + for option in -Wno-sign-compare; do + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $option" + AC_MSG_CHECKING([whether gcc understands $option]) + AC_TRY_COMPILE([], [], + has_option=yes, + has_option=no,) + CFLAGS="$SAVE_CFLAGS" + AC_MSG_RESULT($has_option) + if test $has_option = yes; then + warning_flags="$warning_flags $option" + fi + unset has_option + unset SAVE_CFLAGS + done + unset option + if test "$enable_compile_warnings" = "error" ; then + warning_flags="$warning_flags -Werror" + fi + ;; + *) + AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings) + ;; + esac + CFLAGS="$realsave_CFLAGS" + AC_MSG_CHECKING(what warning flags to pass to the C compiler) + AC_MSG_RESULT($warning_flags) + + AC_ARG_ENABLE(iso-c, + AC_HELP_STRING([--enable-iso-c], + [Try to warn if code is not ISO C ]),, + [enable_iso_c=no]) + + AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) + complCFLAGS= + if test "x$enable_iso_c" != "xno"; then + if test "x$GCC" = "xyes"; then + case " $CFLAGS " in + *[\ \ ]-ansi[\ \ ]*) ;; + *) complCFLAGS="$complCFLAGS -ansi" ;; + esac + case " $CFLAGS " in + *[\ \ ]-pedantic[\ \ ]*) ;; + *) complCFLAGS="$complCFLAGS -pedantic" ;; + esac + fi + fi + AC_MSG_RESULT($complCFLAGS) + + WARN_CFLAGS="$warning_flags $complCFLAGS" + AC_SUBST(WARN_CFLAGS) +]) + +dnl For C++, do basically the same thing. + +AC_DEFUN([GNOME_CXX_WARNINGS],[ + AC_ARG_ENABLE(cxx-warnings, + AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] + [Turn on compiler warnings.]),, + [enable_cxx_warnings="m4_default([$1],[minimum])"]) + + AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) + warnCXXFLAGS= + if test "x$GXX" != xyes; then + enable_cxx_warnings=no + fi + if test "x$enable_cxx_warnings" != "xno"; then + if test "x$GXX" = "xyes"; then + case " $CXXFLAGS " in + *[\ \ ]-Wall[\ \ ]*) ;; + *) warnCXXFLAGS="-Wall -Wno-unused" ;; + esac + + ## -W is not all that useful. And it cannot be controlled + ## with individual -Wno-xxx flags, unlike -Wall + if test "x$enable_cxx_warnings" = "xyes"; then + warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" + fi + fi + fi + AC_MSG_RESULT($warnCXXFLAGS) + + AC_ARG_ENABLE(iso-cxx, + AC_HELP_STRING([--enable-iso-cxx], + [Try to warn if code is not ISO C++ ]),, + [enable_iso_cxx=no]) + + AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) + complCXXFLAGS= + if test "x$enable_iso_cxx" != "xno"; then + if test "x$GXX" = "xyes"; then + case " $CXXFLAGS " in + *[\ \ ]-ansi[\ \ ]*) ;; + *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; + esac + + case " $CXXFLAGS " in + *[\ \ ]-pedantic[\ \ ]*) ;; + *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; + esac + fi + fi + AC_MSG_RESULT($complCXXFLAGS) + + WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" + AC_SUBST(WARN_CXXFLAGS) +]) + +dnl -*- mode: autoconf -*- + +# serial 1 + +dnl Usage: +dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) +AC_DEFUN([GTK_DOC_CHECK], +[ + AC_REQUIRE([PKG_PROG_PKG_CONFIG]) + AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first + AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first + + dnl check for tools we added during development + AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check]) + AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) + AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) + + dnl for overriding the documentation installation directory + AC_ARG_WITH([html-dir], + AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, + [with_html_dir='${datadir}/gtk-doc/html']) + HTML_DIR="$with_html_dir" + AC_SUBST([HTML_DIR]) + + dnl enable/disable documentation building + AC_ARG_ENABLE([gtk-doc], + AS_HELP_STRING([--enable-gtk-doc], + [use gtk-doc to build documentation [[default=no]]]),, + [enable_gtk_doc=no]) + + if test x$enable_gtk_doc = xyes; then + ifelse([$1],[], + [PKG_CHECK_EXISTS([gtk-doc],, + AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], + [PKG_CHECK_EXISTS([gtk-doc >= $1],, + AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))]) + dnl don't check for glib if we build glib + if test "x$PACKAGE_NAME" != "xglib"; then + dnl don't fail if someone does not have glib + PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,) + fi + fi + + AC_MSG_CHECKING([whether to build gtk-doc documentation]) + AC_MSG_RESULT($enable_gtk_doc) + + dnl enable/disable output formats + AC_ARG_ENABLE([gtk-doc-html], + AS_HELP_STRING([--enable-gtk-doc-html], + [build documentation in html format [[default=yes]]]),, + [enable_gtk_doc_html=yes]) + AC_ARG_ENABLE([gtk-doc-pdf], + AS_HELP_STRING([--enable-gtk-doc-pdf], + [build documentation in pdf format [[default=no]]]),, + [enable_gtk_doc_pdf=no]) + + if test -z "$GTKDOC_MKPDF"; then + enable_gtk_doc_pdf=no + fi + + + AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) + AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) + AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) + AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) + AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) +]) + + +dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) +# serial 40 IT_PROG_INTLTOOL +AC_DEFUN([IT_PROG_INTLTOOL], [ +AC_PREREQ([2.50])dnl +AC_REQUIRE([AM_NLS])dnl + +case "$am__api_version" in + 1.[01234]) + AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) + ;; + *) + ;; +esac + +if test -n "$1"; then + AC_MSG_CHECKING([for intltool >= $1]) + + INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` + INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` + [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` + ] + AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) + test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || + AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl + +AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) +AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) +AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) +if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then + AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) +fi + + INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' + INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' +INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' + INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' + +_IT_SUBST(INTLTOOL_DESKTOP_RULE) +_IT_SUBST(INTLTOOL_DIRECTORY_RULE) +_IT_SUBST(INTLTOOL_KEYS_RULE) +_IT_SUBST(INTLTOOL_PROP_RULE) +_IT_SUBST(INTLTOOL_OAF_RULE) +_IT_SUBST(INTLTOOL_PONG_RULE) +_IT_SUBST(INTLTOOL_SERVER_RULE) +_IT_SUBST(INTLTOOL_SHEET_RULE) +_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) +_IT_SUBST(INTLTOOL_UI_RULE) +_IT_SUBST(INTLTOOL_XAM_RULE) +_IT_SUBST(INTLTOOL_KBD_RULE) +_IT_SUBST(INTLTOOL_XML_RULE) +_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) +_IT_SUBST(INTLTOOL_CAVES_RULE) +_IT_SUBST(INTLTOOL_SCHEMAS_RULE) +_IT_SUBST(INTLTOOL_THEME_RULE) +_IT_SUBST(INTLTOOL_SERVICE_RULE) +_IT_SUBST(INTLTOOL_POLICY_RULE) + +# Check the gettext tools to make sure they are GNU +AC_PATH_PROG(XGETTEXT, xgettext) +AC_PATH_PROG(MSGMERGE, msgmerge) +AC_PATH_PROG(MSGFMT, msgfmt) +AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) +if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) +fi +xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" +mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" +mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" +if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then + AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) +fi + +AC_PATH_PROG(INTLTOOL_PERL, perl) +if test -z "$INTLTOOL_PERL"; then + AC_MSG_ERROR([perl not found]) +fi +AC_MSG_CHECKING([for perl >= 5.8.1]) +$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 +if test $? -ne 0; then + AC_MSG_ERROR([perl 5.8.1 is required for intltool]) +else + IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" + AC_MSG_RESULT([$IT_PERL_VERSION]) +fi +if test "x$2" != "xno-xml"; then + AC_MSG_CHECKING([for XML::Parser]) + if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then + AC_MSG_RESULT([ok]) + else + AC_MSG_ERROR([XML::Parser perl module is required for intltool]) + fi +fi + +# Substitute ALL_LINGUAS so we can use it in po/Makefile +AC_SUBST(ALL_LINGUAS) + +# Set DATADIRNAME correctly if it is not set yet +# (copied from glib-gettext.m4) +if test -z "$DATADIRNAME"; then + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[]], + [[extern int _nl_msg_cat_cntr; + return _nl_msg_cat_cntr]])], + [DATADIRNAME=share], + [case $host in + *-*-solaris*) + dnl On Solaris, if bind_textdomain_codeset is in libc, + dnl GNU format message catalog is always supported, + dnl since both are added to the libc all together. + dnl Hence, we'd like to go with DATADIRNAME=share + dnl in this case. + AC_CHECK_FUNC(bind_textdomain_codeset, + [DATADIRNAME=share], [DATADIRNAME=lib]) + ;; + *) + [DATADIRNAME=lib] + ;; + esac]) +fi +AC_SUBST(DATADIRNAME) + +IT_PO_SUBDIR([po]) + ]) -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 -# Free Software Foundation, Inc. + +# IT_PO_SUBDIR(DIRNAME) +# --------------------- +# All po subdirs have to be declared with this macro; the subdir "po" is +# declared by IT_PROG_INTLTOOL. # -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 5 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[{ - # Autoconf 2.62 quotes --file arguments for eval, but not when files - # are listed without --file. Let's play safe and only enable the eval - # if we detect the quoting. - case $CONFIG_FILES in - *\'*) eval set x "$CONFIG_FILES" ;; - *) set x $CONFIG_FILES ;; - esac - shift - for mf - do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # Grep'ing the whole file is not good either: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue +AC_DEFUN([IT_PO_SUBDIR], +[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. +dnl +dnl The following CONFIG_COMMANDS should be executed at the very end +dnl of config.status. +AC_CONFIG_COMMANDS_PRE([ + AC_CONFIG_COMMANDS([$1/stamp-it], [ + if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then + AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done - done -} -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. + rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" + >"$1/stamp-it.tmp" + [sed '/^#/d + s/^[[].*] *// + /^[ ]*$/d + '"s|^| $ac_top_srcdir/|" \ + "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" + ] + [sed '/^POTFILES =/,/[^\\]$/ { + /^POTFILES =/!d + r $1/POTFILES + } + ' "$1/Makefile.in" >"$1/Makefile"] + rm -f "$1/Makefile.tmp" + mv "$1/stamp-it.tmp" "$1/stamp-it" + ]) +])dnl +]) + +# _IT_SUBST(VARIABLE) +# ------------------- +# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST # -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 16 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.62])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES(OBJC)], - [define([AC_PROG_OBJC], - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl -]) -_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl -dnl The `parallel-tests' driver may need to know about EXEEXT, so add the -dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro -dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. -AC_CONFIG_COMMANDS_PRE(dnl -[m4_provide_if([_AM_COMPILER_EXEEXT], - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl -]) - -dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further -dnl mangled by Autoconf and run in a shell conditional statement. -m4_define([_AC_COMPILER_EXEEXT], -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_arg=$1 -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $_am_arg | $_am_arg:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -if test x"${install_sh}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi -AC_SUBST(install_sh)]) - -# Copyright (C) 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- -# From Jim Meyering - -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_MAINTAINER_MODE([DEFAULT-MODE]) -# ---------------------------------- -# Control maintainer-specific portions of Makefiles. -# Default is to disable them, unless `enable' is passed literally. -# For symmetry, `disable' may be passed as well. Anyway, the user -# can override the default with the --enable/--disable switch. -AC_DEFUN([AM_MAINTAINER_MODE], -[m4_case(m4_default([$1], [disable]), - [enable], [m4_define([am_maintainer_other], [disable])], - [disable], [m4_define([am_maintainer_other], [enable])], - [m4_define([am_maintainer_other], [enable]) - m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) -AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) - dnl maintainer-mode's default is 'disable' unless 'enable' is passed - AC_ARG_ENABLE([maintainer-mode], -[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - [USE_MAINTAINER_MODE=$enableval], - [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) - AC_MSG_RESULT([$USE_MAINTAINER_MODE]) - AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) - MAINT=$MAINTAINER_MODE_TRUE - AC_SUBST([MAINT])dnl +AC_DEFUN([_IT_SUBST], +[ +AC_SUBST([$1]) +m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) ] ) -AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo this is the am__doit target -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# Ignore all kinds of additional output from `make'. -case `$am_make -s -f confmf 2> /dev/null` in #( -*the\ am__doit\ target*) - am__include=include - am__quote= - _am_result=GNU - ;; -esac -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - case `$am_make -s -f confmf 2> /dev/null` in #( - *the\ am__doit\ target*) - am__include=.include - am__quote="\"" - _am_result=BSD - ;; - esac -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 6 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac -fi -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check for `mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 5 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[[\\\"\#\$\&\'\`$am_lf]]*) - AC_MSG_ERROR([unsafe absolute working directory name]);; -esac -case $srcdir in - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) - AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; -esac - -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t "$srcdir/configure" conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2009 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 1 - -# AM_SILENT_RULES([DEFAULT]) -# -------------------------- -# Enable less verbose build rules; with the default set to DEFAULT -# (`yes' being less verbose, `no' or empty being verbose). -AC_DEFUN([AM_SILENT_RULES], -[AC_ARG_ENABLE([silent-rules], -[ --enable-silent-rules less verbose build output (undo: `make V=1') - --disable-silent-rules verbose build output (undo: `make V=0')]) -case $enable_silent_rules in -yes) AM_DEFAULT_VERBOSITY=0;; -no) AM_DEFAULT_VERBOSITY=1;; -*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; -esac -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl -AM_BACKSLASH='\' -AC_SUBST([AM_BACKSLASH])dnl -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl -]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006, 2008 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Public sister of _AM_SUBST_NOTMAKE. -AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar /dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - +# deprecated macros +AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) +# A hint is needed for aclocal from Automake <= 1.9.4: +# AC_DEFUN([AC_PROG_INTLTOOL], ...) + + diff --git a/configure b/configure index 20cba10..b42dabc 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for polkit-gnome 0.102. +# Generated by GNU Autoconf 2.68 for polkit-gnome 0.104. # # Report bugs to . # @@ -571,8 +571,8 @@ # Identity of this package. PACKAGE_NAME='polkit-gnome' PACKAGE_TARNAME='polkit-gnome' -PACKAGE_VERSION='0.102' -PACKAGE_STRING='polkit-gnome 0.102' +PACKAGE_VERSION='0.104' +PACKAGE_STRING='polkit-gnome 0.104' PACKAGE_BUGREPORT='http://lists.freedesktop.org/mailman/listinfo/polkit-devel' PACKAGE_URL='' @@ -680,7 +680,6 @@ POLKIT_AGENT_CFLAGS GTK_LIBS GTK_CFLAGS -GTK_API_VERSION GTK_DOC_USE_REBASE_FALSE GTK_DOC_USE_REBASE_TRUE GTK_DOC_USE_LIBTOOL_FALSE @@ -691,13 +690,15 @@ GTK_DOC_BUILD_HTML_TRUE ENABLE_GTK_DOC_FALSE ENABLE_GTK_DOC_TRUE -PKG_CONFIG_LIBDIR -PKG_CONFIG_PATH -PKG_CONFIG +GTKDOC_DEPS_LIBS +GTKDOC_DEPS_CFLAGS HTML_DIR GTKDOC_MKPDF GTKDOC_REBASE GTKDOC_CHECK +PKG_CONFIG_LIBDIR +PKG_CONFIG_PATH +PKG_CONFIG DISABLE_DEPRECATED WARN_CFLAGS ACLOCAL_AMFLAGS @@ -836,7 +837,6 @@ enable_gtk_doc enable_gtk_doc_html enable_gtk_doc_pdf -with_gtk enable_examples enable_introspection enable_nls @@ -853,6 +853,8 @@ PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR +GTKDOC_DEPS_CFLAGS +GTKDOC_DEPS_LIBS GTK_CFLAGS GTK_LIBS POLKIT_AGENT_CFLAGS @@ -1403,7 +1405,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures polkit-gnome 0.102 to adapt to many kinds of systems. +\`configure' configures polkit-gnome 0.104 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1473,7 +1475,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of polkit-gnome 0.102:";; + short | recursive ) echo "Configuration of polkit-gnome 0.104:";; esac cat <<\_ACEOF @@ -1512,7 +1514,6 @@ --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-html-dir=PATH path to installed docs - --with-gtk=2.0|3.0 which gtk+ version to compile against (default: 2.0) Some influential environment variables: CC C compiler command @@ -1528,6 +1529,10 @@ directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path + GTKDOC_DEPS_CFLAGS + C compiler flags for GTKDOC_DEPS, overriding pkg-config + GTKDOC_DEPS_LIBS + linker flags for GTKDOC_DEPS, overriding pkg-config GTK_CFLAGS C compiler flags for GTK, overriding pkg-config GTK_LIBS linker flags for GTK, overriding pkg-config POLKIT_AGENT_CFLAGS @@ -1609,7 +1614,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -polkit-gnome configure 0.102 +polkit-gnome configure 0.104 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1978,7 +1983,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by polkit-gnome $as_me 0.102, which was +It was created by polkit-gnome $as_me 0.104, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2794,7 +2799,7 @@ # Define the identity of the package. PACKAGE='polkit-gnome' - VERSION='0.102' + VERSION='0.104' cat >>confdefs.h <<_ACEOF @@ -11592,7 +11597,7 @@ DISABLE_DEPRECATED="" if test $USE_MAINTAINER_MODE = yes; then - DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP" + DOMAINS="ATK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP" for DOMAIN in $DOMAINS; do DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" done @@ -11722,6 +11727,7 @@ fi + # Extract the first word of "gtkdoc-check", so it can be a program name with args. set dummy gtkdoc-check; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 @@ -11879,6 +11885,99 @@ else as_fn_error $? "You need to have gtk-doc >= 1.3 installed to build $PACKAGE_NAME" "$LINENO" 5 fi + if test "x$PACKAGE_NAME" != "xglib"; then + +pkg_failed=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 +$as_echo_n "checking for GTKDOC_DEPS... " >&6; } + +if test -n "$GTKDOC_DEPS_CFLAGS"; then + pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$GTKDOC_DEPS_LIBS"; then + pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then + _pkg_short_errors_supported=yes +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` + else + GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 + + as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met: + +$GTKDOC_DEPS_PKG_ERRORS + +Consider adjusting the PKG_CONFIG_PATH environment variable if you +installed software in a non-standard prefix. + +Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS +and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details." "$LINENO" 5 + +elif test $pkg_failed = untried; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it +is in your PATH or set the PKG_CONFIG environment variable to the full +path to pkg-config. + +Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS +and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config. +See the pkg-config man page for more details. + +To get pkg-config, see . +See \`config.log' for more details" "$LINENO" 5; } + +else + GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS + GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi + fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 @@ -12026,187 +12125,13 @@ fi fi -# ***** -# GNOME -# ***** - - - - - ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" - if test -n "$ac_macro_dir"; then - ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS" - fi - - - - - # Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : - enableval=$enable_debug; -else - enable_debug=no -fi - - - if test x$enable_debug = xyes ; then - -$as_echo "#define GNOME_ENABLE_DEBUG 1" >>confdefs.h - - fi - - - - # Check whether --enable-compile-warnings was given. -if test "${enable_compile_warnings+set}" = set; then : - enableval=$enable_compile_warnings; -else - enable_compile_warnings="maximum" -fi - - - warnCFLAGS= - if test "x$GCC" != xyes; then - enable_compile_warnings=no - fi - - warning_flags= - realsave_CFLAGS="$CFLAGS" - - case "$enable_compile_warnings" in - no) - warning_flags= - ;; - minimum) - warning_flags="-Wall" - ;; - yes) - warning_flags="-Wall -Wmissing-prototypes" - ;; - maximum|error) - warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith" - CFLAGS="$warning_flags $CFLAGS" - for option in -Wno-sign-compare; do - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $option" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5 -$as_echo_n "checking whether gcc understands $option... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - has_option=yes -else - has_option=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$SAVE_CFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 -$as_echo "$has_option" >&6; } - if test $has_option = yes; then - warning_flags="$warning_flags $option" - fi - unset has_option - unset SAVE_CFLAGS - done - unset option - if test "$enable_compile_warnings" = "error" ; then - warning_flags="$warning_flags -Werror" - fi - ;; - *) - as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5 - ;; - esac - CFLAGS="$realsave_CFLAGS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5 -$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warning_flags" >&5 -$as_echo "$warning_flags" >&6; } - - # Check whether --enable-iso-c was given. -if test "${enable_iso_c+set}" = set; then : - enableval=$enable_iso_c; -else - enable_iso_c=no -fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5 -$as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; } - complCFLAGS= - if test "x$enable_iso_c" != "xno"; then - if test "x$GCC" = "xyes"; then - case " $CFLAGS " in - *\ \ -ansi\ \ *) ;; - *) complCFLAGS="$complCFLAGS -ansi" ;; - esac - case " $CFLAGS " in - *\ \ -pedantic\ \ *) ;; - *) complCFLAGS="$complCFLAGS -pedantic" ;; - esac - fi - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5 -$as_echo "$complCFLAGS" >&6; } - - WARN_CFLAGS="$warning_flags $complCFLAGS" - - - - - - DISABLE_DEPRECATED="" - if test $USE_MAINTAINER_MODE = yes; then - DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP" - for DOMAIN in $DOMAINS; do - DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" - done - fi - - - - # *************************** # Check for required packages # *************************** POLKIT_AGENT_REQUIRED=0.97 POLKIT_GOBJECT_REQUIRED=0.97 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which gtk+ version to compile against" >&5 -$as_echo_n "checking which gtk+ version to compile against... " >&6; } - -# Check whether --with-gtk was given. -if test "${with_gtk+set}" = set; then : - withval=$with_gtk; case "$with_gtk" in - 2.0|3.0) ;; - *) as_fn_error $? "invalid gtk version specified" "$LINENO" 5 ;; - esac -else - with_gtk=2.0 -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gtk" >&5 -$as_echo "$with_gtk" >&6; } -case "$with_gtk" in - 2.0) GTK_API_VERSION=2.0 - GTK_REQUIRED=2.17.1 - ;; - 3.0) GTK_API_VERSION=3.0 - GTK_REQUIRED=3.0.0 - ;; -esac - - +GTK_REQUIRED=3.0.0 pkg_failed=no @@ -12217,12 +12142,12 @@ pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQUIRED\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>/dev/null` + pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK_REQUIRED" 2>/dev/null` else pkg_failed=yes fi @@ -12233,12 +12158,12 @@ pkg_cv_GTK_LIBS="$GTK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQUIRED\""; } >&5 + ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQUIRED") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>/dev/null` + pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK_REQUIRED" 2>/dev/null` else pkg_failed=yes fi @@ -12258,14 +12183,14 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>&1` + GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-3.0 >= $GTK_REQUIRED" 2>&1` else - GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>&1` + GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-3.0 >= $GTK_REQUIRED" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTK_PKG_ERRORS" >&5 - as_fn_error $? "Package requirements (gtk+-$GTK_API_VERSION >= $GTK_REQUIRED) were not met: + as_fn_error $? "Package requirements (gtk+-3.0 >= $GTK_REQUIRED) were not met: $GTK_PKG_ERRORS @@ -13782,6 +13707,10 @@ DATADIRNAME=lib fi + ;; + *-*-openbsd*) + CATOBJEXT=.mo + DATADIRNAME=share ;; *) CATOBJEXT=.mo @@ -13916,7 +13845,7 @@ -ac_config_files="$ac_config_files Makefile po/Makefile.in polkitgtk/Makefile polkitgtk/polkit-gtk-1.pc src/Makefile docs/version.xml docs/Makefile" +ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile" cat >confcache <<\_ACEOF @@ -14489,7 +14418,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by polkit-gnome $as_me 0.102, which was +This file was extended by polkit-gnome $as_me 0.104, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -14555,7 +14484,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -polkit-gnome config.status 0.102 +polkit-gnome config.status 0.104 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" @@ -14968,11 +14897,7 @@ "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; - "polkitgtk/Makefile") CONFIG_FILES="$CONFIG_FILES polkitgtk/Makefile" ;; - "polkitgtk/polkit-gtk-1.pc") CONFIG_FILES="$CONFIG_FILES polkitgtk/polkit-gtk-1.pc" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; - "docs/version.xml") CONFIG_FILES="$CONFIG_FILES docs/version.xml" ;; - "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; diff --git a/configure.ac b/configure.ac index 1c3f0cd..4c40ff8 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([polkit-gnome],[0.102],[http://lists.freedesktop.org/mailman/listinfo/polkit-devel],[polkit-gnome]) +AC_INIT([polkit-gnome],[0.104],[http://lists.freedesktop.org/mailman/listinfo/polkit-devel],[polkit-gnome]) AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip]) @@ -117,43 +117,15 @@ fi fi -# ***** -# GNOME -# ***** - -GNOME_COMMON_INIT -GNOME_DEBUG_CHECK -GNOME_COMPILE_WARNINGS([maximum]) -GNOME_MAINTAINER_MODE_DEFINES - # *************************** # Check for required packages # *************************** POLKIT_AGENT_REQUIRED=0.97 POLKIT_GOBJECT_REQUIRED=0.97 - -AC_MSG_CHECKING([which gtk+ version to compile against]) -AC_ARG_WITH([gtk], - [AS_HELP_STRING([--with-gtk=2.0|3.0],[which gtk+ version to compile against (default: 2.0)])], - [case "$with_gtk" in - 2.0|3.0) ;; - *) AC_MSG_ERROR([invalid gtk version specified]) ;; - esac], - [with_gtk=2.0]) -AC_MSG_RESULT([$with_gtk]) -case "$with_gtk" in - 2.0) GTK_API_VERSION=2.0 - GTK_REQUIRED=2.17.1 - ;; - 3.0) GTK_API_VERSION=3.0 - GTK_REQUIRED=3.0.0 - ;; -esac -AC_SUBST(GTK_API_VERSION) - - -PKG_CHECK_MODULES(GTK, gtk+-$GTK_API_VERSION >= $GTK_REQUIRED) +GTK_REQUIRED=3.0.0 + +PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED) AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) @@ -213,11 +185,7 @@ AC_CONFIG_FILES([ Makefile po/Makefile.in -polkitgtk/Makefile -polkitgtk/polkit-gtk-1.pc src/Makefile -docs/version.xml -docs/Makefile ]) AC_OUTPUT diff --git a/docs/Makefile.am b/docs/Makefile.am deleted file mode 100644 index 81a5d07..0000000 --- a/docs/Makefile.am +++ /dev/null @@ -1,86 +0,0 @@ - -NULL = - -AUTOMAKE_OPTIONS = 1.7 - -# The name of the module. -DOC_MODULE=polkit-gtk-1 - -# The top-level SGML file. -DOC_MAIN_SGML_FILE=polkit-gtk-1-docs.xml - -# Extra options to supply to gtkdoc-scan -SCAN_OPTIONS=--ignore-headers=config.h - -# The directory containing the source code. Relative to $(srcdir) -DOC_SOURCE_DIR=../polkitgtk - -# Used for dependencies -HFILE_GLOB=$(top_srcdir)/polkitgtk/*.h -CFILE_GLOB=$(top_srcdir)/polkitgtk/*.c - -# Headers to ignore -IGNORE_HFILES= \ - $(NULL) - -# CFLAGS and LDFLAGS for compiling scan program. Only needed -# if $(DOC_MODULE).types is non-empty. -INCLUDES = \ - $(POLKIT_GOBJECT_CFLAGS) \ - $(GTK_CFLAGS) \ - -I$(top_srcdir)/polkitgtk \ - $(NULL) - -GTKDOC_LIBS = \ - $(POLKIT_GOBJECT_LIBS) \ - $(GTK_LIBS) \ - $(top_builddir)/polkitgtk/libpolkit-gtk-1.la \ - $(NULL) - -# Extra options to supply to gtkdoc-mkdb -MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=polkit - -# Extra options to supply to gtkdoc-mktmpl -MKTMPL_OPTIONS= - -# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE) -content_files = \ - version.xml \ - $(NULL) - -# Images to copy into HTML directory -HTML_IMAGES = \ - polkit-lock-button-locked.png \ - polkit-lock-button-not-authorized.png \ - polkit-lock-button-unlocked.png \ - polkit-lock-button-lock-down.png \ - $(NULL) - -# Extra options to supply to gtkdoc-fixref -FIXXREF_OPTIONS= - -if ENABLE_GTK_DOC -include $(top_srcdir)/gtk-doc.make -else -CLEANFILES = -EXTRA_DIST = $(HTML_IMAGES) -endif - -CLEANFILES += *~ \ - polkit-gtk-1-scan.* \ - polkit-gtk-1.args \ - polkit-gtk-1.hierarchy \ - polkit-gtk-1.interfaces \ - polkit-gtk-1.prerequisites \ - polkit-gtk-1.signals \ - *.bak \ - polkit-gtk-1-decl-list.txt \ - polkit-gtk-1-decl.txt \ - polkit-gtk-1-overrides.txt \ - polkit-gtk-1-undeclared.txt \ - polkit-gtk-1-undocumented.txt \ - *.stamp \ - version.xml \ - -rf html xml \ - $(NULL) - diff --git a/docs/Makefile.in b/docs/Makefile.in deleted file mode 100644 index 470f162..0000000 --- a/docs/Makefile.in +++ /dev/null @@ -1,758 +0,0 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -# -*- mode: makefile -*- - -#################################### -# Everything below here is generic # -#################################### -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/version.xml.in $(top_srcdir)/gtk-doc.make -subdir = docs -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = version.xml -CONFIG_CLEAN_VPATH_FILES = -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -SOURCES = -DIST_SOURCES = -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_CFLAGS = @AM_CFLAGS@ -AM_CPPFLAGS = @AM_CPPFLAGS@ -AM_CXXFLAGS = @AM_CXXFLAGS@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AM_LDFLAGS = @AM_LDFLAGS@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GIRDIR = @GIRDIR@ -GIRTYPELIBDIR = @GIRTYPELIBDIR@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTKDOC_MKPDF = @GTKDOC_MKPDF@ -GTKDOC_REBASE = @GTKDOC_REBASE@ -GTK_API_VERSION = @GTK_API_VERSION@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -G_IR_COMPILER = @G_IR_COMPILER@ -G_IR_GENERATE = @G_IR_GENERATE@ -G_IR_SCANNER = @G_IR_SCANNER@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ -INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -LT_AGE = @LT_AGE@ -LT_CURRENT = @LT_CURRENT@ -LT_REVISION = @LT_REVISION@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -POLKIT_AGENT_CFLAGS = @POLKIT_AGENT_CFLAGS@ -POLKIT_AGENT_LIBS = @POLKIT_AGENT_LIBS@ -POLKIT_GOBJECT_CFLAGS = @POLKIT_GOBJECT_CFLAGS@ -POLKIT_GOBJECT_LIBS = @POLKIT_GOBJECT_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WARN_CFLAGS = @WARN_CFLAGS@ -XGETTEXT = @XGETTEXT@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -NULL = -AUTOMAKE_OPTIONS = 1.7 - -# The name of the module. -DOC_MODULE = polkit-gtk-1 - -# The top-level SGML file. -DOC_MAIN_SGML_FILE = polkit-gtk-1-docs.xml - -# Extra options to supply to gtkdoc-scan -SCAN_OPTIONS = --ignore-headers=config.h - -# The directory containing the source code. Relative to $(srcdir) -DOC_SOURCE_DIR = ../polkitgtk - -# Used for dependencies -HFILE_GLOB = $(top_srcdir)/polkitgtk/*.h -CFILE_GLOB = $(top_srcdir)/polkitgtk/*.c - -# Headers to ignore -IGNORE_HFILES = \ - $(NULL) - - -# CFLAGS and LDFLAGS for compiling scan program. Only needed -# if $(DOC_MODULE).types is non-empty. -INCLUDES = \ - $(POLKIT_GOBJECT_CFLAGS) \ - $(GTK_CFLAGS) \ - -I$(top_srcdir)/polkitgtk \ - $(NULL) - -GTKDOC_LIBS = \ - $(POLKIT_GOBJECT_LIBS) \ - $(GTK_LIBS) \ - $(top_builddir)/polkitgtk/libpolkit-gtk-1.la \ - $(NULL) - - -# Extra options to supply to gtkdoc-mkdb -MKDB_OPTIONS = --sgml-mode --output-format=xml --name-space=polkit - -# Extra options to supply to gtkdoc-mktmpl -MKTMPL_OPTIONS = - -# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE) -content_files = \ - version.xml \ - $(NULL) - - -# Images to copy into HTML directory -HTML_IMAGES = \ - polkit-lock-button-locked.png \ - polkit-lock-button-not-authorized.png \ - polkit-lock-button-unlocked.png \ - polkit-lock-button-lock-down.png \ - $(NULL) - - -# Extra options to supply to gtkdoc-fixref -FIXXREF_OPTIONS = -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN = -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute - -# We set GPATH here; this gives us semantics for GNU make -# which are more like other make's VPATH, when it comes to -# whether a source that is a target of one rule is then -# searched for in VPATH/GPATH. -# -@ENABLE_GTK_DOC_TRUE@GPATH = $(srcdir) -@ENABLE_GTK_DOC_TRUE@TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE) -@ENABLE_GTK_DOC_TRUE@SETUP_FILES = \ -@ENABLE_GTK_DOC_TRUE@ $(content_files) \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MAIN_SGML_FILE) \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-sections.txt \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-overrides.txt - -@ENABLE_GTK_DOC_FALSE@EXTRA_DIST = $(HTML_IMAGES) -@ENABLE_GTK_DOC_TRUE@EXTRA_DIST = \ -@ENABLE_GTK_DOC_TRUE@ $(SETUP_FILES) - -@ENABLE_GTK_DOC_TRUE@DOC_STAMPS = setup-build.stamp scan-build.stamp tmpl-build.stamp sgml-build.stamp \ -@ENABLE_GTK_DOC_TRUE@ html-build.stamp pdf-build.stamp \ -@ENABLE_GTK_DOC_TRUE@ setup.stamp tmpl.stamp sgml.stamp html.stamp pdf.stamp - -@ENABLE_GTK_DOC_TRUE@SCANOBJ_FILES = \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE).args \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE).hierarchy \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE).interfaces \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE).prerequisites \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE).signals - -@ENABLE_GTK_DOC_TRUE@REPORT_FILES = \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-undocumented.txt \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-undeclared.txt \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-unused.txt - -@ENABLE_GTK_DOC_FALSE@CLEANFILES = *~ polkit-gtk-1-scan.* \ -@ENABLE_GTK_DOC_FALSE@ polkit-gtk-1.args polkit-gtk-1.hierarchy \ -@ENABLE_GTK_DOC_FALSE@ polkit-gtk-1.interfaces \ -@ENABLE_GTK_DOC_FALSE@ polkit-gtk-1.prerequisites \ -@ENABLE_GTK_DOC_FALSE@ polkit-gtk-1.signals *.bak \ -@ENABLE_GTK_DOC_FALSE@ polkit-gtk-1-decl-list.txt \ -@ENABLE_GTK_DOC_FALSE@ polkit-gtk-1-decl.txt \ -@ENABLE_GTK_DOC_FALSE@ polkit-gtk-1-overrides.txt \ -@ENABLE_GTK_DOC_FALSE@ polkit-gtk-1-undeclared.txt \ -@ENABLE_GTK_DOC_FALSE@ polkit-gtk-1-undocumented.txt *.stamp \ -@ENABLE_GTK_DOC_FALSE@ version.xml -rf html xml $(NULL) -@ENABLE_GTK_DOC_TRUE@CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_STAMPS) *~ polkit-gtk-1-scan.* \ -@ENABLE_GTK_DOC_TRUE@ polkit-gtk-1.args polkit-gtk-1.hierarchy \ -@ENABLE_GTK_DOC_TRUE@ polkit-gtk-1.interfaces \ -@ENABLE_GTK_DOC_TRUE@ polkit-gtk-1.prerequisites \ -@ENABLE_GTK_DOC_TRUE@ polkit-gtk-1.signals *.bak \ -@ENABLE_GTK_DOC_TRUE@ polkit-gtk-1-decl-list.txt \ -@ENABLE_GTK_DOC_TRUE@ polkit-gtk-1-decl.txt \ -@ENABLE_GTK_DOC_TRUE@ polkit-gtk-1-overrides.txt \ -@ENABLE_GTK_DOC_TRUE@ polkit-gtk-1-undeclared.txt \ -@ENABLE_GTK_DOC_TRUE@ polkit-gtk-1-undocumented.txt *.stamp \ -@ENABLE_GTK_DOC_TRUE@ version.xml -rf html xml $(NULL) -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = -@ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign docs/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -version.xml: $(top_builddir)/config.status $(srcdir)/version.xml.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - -@ENABLE_GTK_DOC_FALSE@dist-hook: - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-hook -check-am: all-am -check: check-am -@ENABLE_GTK_DOC_FALSE@all-local: -all-am: Makefile all-local -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -@ENABLE_GTK_DOC_FALSE@uninstall-local: -@ENABLE_GTK_DOC_FALSE@distclean-local: -@ENABLE_GTK_DOC_FALSE@install-data-local: -@ENABLE_GTK_DOC_FALSE@maintainer-clean-local: -@ENABLE_GTK_DOC_FALSE@clean-local: -clean: clean-am - -clean-am: clean-generic clean-libtool clean-local mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-local - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-data-local - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic \ - maintainer-clean-local - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-local - -.MAKE: install-am install-strip - -.PHONY: all all-am all-local check check-am clean clean-generic \ - clean-libtool clean-local dist-hook distclean \ - distclean-generic distclean-libtool distclean-local distdir \ - dvi dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-data-local install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic \ - maintainer-clean-local mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-local - - -@ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) -#all-local: - -@ENABLE_GTK_DOC_TRUE@docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) - -@ENABLE_GTK_DOC_TRUE@$(REPORT_FILES): sgml-build.stamp - -#### setup #### - -@ENABLE_GTK_DOC_TRUE@setup-build.stamp: -@ENABLE_GTK_DOC_TRUE@ -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ -@ENABLE_GTK_DOC_TRUE@ echo 'gtk-doc: Preparing build'; \ -@ENABLE_GTK_DOC_TRUE@ files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \ -@ENABLE_GTK_DOC_TRUE@ if test "x$$files" != "x" ; then \ -@ENABLE_GTK_DOC_TRUE@ for file in $$files ; do \ -@ENABLE_GTK_DOC_TRUE@ test -f $(abs_srcdir)/$$file && \ -@ENABLE_GTK_DOC_TRUE@ cp -p $(abs_srcdir)/$$file $(abs_builddir)/; \ -@ENABLE_GTK_DOC_TRUE@ done \ -@ENABLE_GTK_DOC_TRUE@ fi; \ -@ENABLE_GTK_DOC_TRUE@ test -f $(abs_srcdir)/tmpl && \ -@ENABLE_GTK_DOC_TRUE@ cp -rp $(abs_srcdir)/tmpl $(abs_builddir)/; \ -@ENABLE_GTK_DOC_TRUE@ fi -@ENABLE_GTK_DOC_TRUE@ @touch setup-build.stamp - -@ENABLE_GTK_DOC_TRUE@setup.stamp: setup-build.stamp -@ENABLE_GTK_DOC_TRUE@ @true - -#### scan #### - -@ENABLE_GTK_DOC_TRUE@scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) -@ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Scanning header files' -@ENABLE_GTK_DOC_TRUE@ @_source_dir='' ; \ -@ENABLE_GTK_DOC_TRUE@ for i in $(DOC_SOURCE_DIR) ; do \ -@ENABLE_GTK_DOC_TRUE@ _source_dir="$${_source_dir} --source-dir=$$i" ; \ -@ENABLE_GTK_DOC_TRUE@ done ; \ -@ENABLE_GTK_DOC_TRUE@ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) -@ENABLE_GTK_DOC_TRUE@ @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ -@ENABLE_GTK_DOC_TRUE@ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) ; \ -@ENABLE_GTK_DOC_TRUE@ else \ -@ENABLE_GTK_DOC_TRUE@ for i in $(SCANOBJ_FILES) ; do \ -@ENABLE_GTK_DOC_TRUE@ test -f $$i || touch $$i ; \ -@ENABLE_GTK_DOC_TRUE@ done \ -@ENABLE_GTK_DOC_TRUE@ fi -@ENABLE_GTK_DOC_TRUE@ @touch scan-build.stamp - -@ENABLE_GTK_DOC_TRUE@$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp -@ENABLE_GTK_DOC_TRUE@ @true - -#### templates #### - -@ENABLE_GTK_DOC_TRUE@tmpl-build.stamp: setup.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt -@ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Rebuilding template files' -@ENABLE_GTK_DOC_TRUE@ @gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) -@ENABLE_GTK_DOC_TRUE@ @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ -@ENABLE_GTK_DOC_TRUE@ if test -w $(abs_srcdir) ; then \ -@ENABLE_GTK_DOC_TRUE@ cp -rp $(abs_builddir)/tmpl $(abs_srcdir)/; \ -@ENABLE_GTK_DOC_TRUE@ fi \ -@ENABLE_GTK_DOC_TRUE@ fi -@ENABLE_GTK_DOC_TRUE@ @touch tmpl-build.stamp - -@ENABLE_GTK_DOC_TRUE@tmpl.stamp: tmpl-build.stamp -@ENABLE_GTK_DOC_TRUE@ @true - -@ENABLE_GTK_DOC_TRUE@$(srcdir)/tmpl/*.sgml: -@ENABLE_GTK_DOC_TRUE@ @true - -#### xml #### - -@ENABLE_GTK_DOC_TRUE@sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files) -@ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Building XML' -@ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir) -@ENABLE_GTK_DOC_TRUE@ @_source_dir='' ; \ -@ENABLE_GTK_DOC_TRUE@ for i in $(DOC_SOURCE_DIR) ; do \ -@ENABLE_GTK_DOC_TRUE@ _source_dir="$${_source_dir} --source-dir=$$i" ; \ -@ENABLE_GTK_DOC_TRUE@ done ; \ -@ENABLE_GTK_DOC_TRUE@ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) -@ENABLE_GTK_DOC_TRUE@ @touch sgml-build.stamp - -@ENABLE_GTK_DOC_TRUE@sgml.stamp: sgml-build.stamp -@ENABLE_GTK_DOC_TRUE@ @true - -#### html #### - -@ENABLE_GTK_DOC_TRUE@html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) -@ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Building HTML' -@ENABLE_GTK_DOC_TRUE@ @rm -rf html -@ENABLE_GTK_DOC_TRUE@ @mkdir html -@ENABLE_GTK_DOC_TRUE@ @mkhtml_options=""; \ -@ENABLE_GTK_DOC_TRUE@ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ -@ENABLE_GTK_DOC_TRUE@ if test "$(?)" = "0"; then \ -@ENABLE_GTK_DOC_TRUE@ mkhtml_options=--path="$(abs_srcdir)"; \ -@ENABLE_GTK_DOC_TRUE@ fi; \ -@ENABLE_GTK_DOC_TRUE@ cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) -@ENABLE_GTK_DOC_TRUE@ -@test "x$(HTML_IMAGES)" = "x" || \ -@ENABLE_GTK_DOC_TRUE@ for file in $(HTML_IMAGES) ; do \ -@ENABLE_GTK_DOC_TRUE@ if test -f $(abs_srcdir)/$$file ; then \ -@ENABLE_GTK_DOC_TRUE@ cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ -@ENABLE_GTK_DOC_TRUE@ fi; \ -@ENABLE_GTK_DOC_TRUE@ if test -f $(abs_builddir)/$$file ; then \ -@ENABLE_GTK_DOC_TRUE@ cp $(abs_builddir)/$$file $(abs_builddir)/html; \ -@ENABLE_GTK_DOC_TRUE@ fi; \ -@ENABLE_GTK_DOC_TRUE@ done; -@ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Fixing cross-references' -@ENABLE_GTK_DOC_TRUE@ @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) -@ENABLE_GTK_DOC_TRUE@ @touch html-build.stamp - -#### pdf #### - -@ENABLE_GTK_DOC_TRUE@pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) -@ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Building PDF' -@ENABLE_GTK_DOC_TRUE@ @rm -rf $(DOC_MODULE).pdf -@ENABLE_GTK_DOC_TRUE@ @mkpdf_imgdirs=""; \ -@ENABLE_GTK_DOC_TRUE@ if test "x$(HTML_IMAGES)" != "x"; then \ -@ENABLE_GTK_DOC_TRUE@ for img in $(HTML_IMAGES); do \ -@ENABLE_GTK_DOC_TRUE@ part=`dirname $$img`; \ -@ENABLE_GTK_DOC_TRUE@ echo $$mkpdf_imgdirs | grep >/dev/null "\-\-imgdir=$$part "; \ -@ENABLE_GTK_DOC_TRUE@ if test $$? != 0; then \ -@ENABLE_GTK_DOC_TRUE@ mkpdf_imgdirs="$$mkpdf_imgdirs --imgdir=$$part"; \ -@ENABLE_GTK_DOC_TRUE@ fi; \ -@ENABLE_GTK_DOC_TRUE@ done; \ -@ENABLE_GTK_DOC_TRUE@ fi; \ -@ENABLE_GTK_DOC_TRUE@ gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) -@ENABLE_GTK_DOC_TRUE@ @touch pdf-build.stamp - -############## - -@ENABLE_GTK_DOC_TRUE@clean-local: -@ENABLE_GTK_DOC_TRUE@ rm -f *~ *.bak -@ENABLE_GTK_DOC_TRUE@ rm -rf .libs - -@ENABLE_GTK_DOC_TRUE@distclean-local: -@ENABLE_GTK_DOC_TRUE@ rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ -@ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt -@ENABLE_GTK_DOC_TRUE@ if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ -@ENABLE_GTK_DOC_TRUE@ rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \ -@ENABLE_GTK_DOC_TRUE@ rm -rf tmpl; \ -@ENABLE_GTK_DOC_TRUE@ fi - -@ENABLE_GTK_DOC_TRUE@maintainer-clean-local: clean -@ENABLE_GTK_DOC_TRUE@ rm -rf xml html - -@ENABLE_GTK_DOC_TRUE@install-data-local: -@ENABLE_GTK_DOC_TRUE@ @installfiles=`echo $(srcdir)/html/*`; \ -@ENABLE_GTK_DOC_TRUE@ if test "$$installfiles" = '$(srcdir)/html/*'; \ -@ENABLE_GTK_DOC_TRUE@ then echo '-- Nothing to install' ; \ -@ENABLE_GTK_DOC_TRUE@ else \ -@ENABLE_GTK_DOC_TRUE@ if test -n "$(DOC_MODULE_VERSION)"; then \ -@ENABLE_GTK_DOC_TRUE@ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ -@ENABLE_GTK_DOC_TRUE@ else \ -@ENABLE_GTK_DOC_TRUE@ installdir="$(DESTDIR)$(TARGET_DIR)"; \ -@ENABLE_GTK_DOC_TRUE@ fi; \ -@ENABLE_GTK_DOC_TRUE@ $(mkinstalldirs) $${installdir} ; \ -@ENABLE_GTK_DOC_TRUE@ for i in $$installfiles; do \ -@ENABLE_GTK_DOC_TRUE@ echo '-- Installing '$$i ; \ -@ENABLE_GTK_DOC_TRUE@ $(INSTALL_DATA) $$i $${installdir}; \ -@ENABLE_GTK_DOC_TRUE@ done; \ -@ENABLE_GTK_DOC_TRUE@ if test -n "$(DOC_MODULE_VERSION)"; then \ -@ENABLE_GTK_DOC_TRUE@ mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ -@ENABLE_GTK_DOC_TRUE@ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ -@ENABLE_GTK_DOC_TRUE@ mv -f $${installdir}/$(DOC_MODULE).devhelp \ -@ENABLE_GTK_DOC_TRUE@ $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp; \ -@ENABLE_GTK_DOC_TRUE@ fi; \ -@ENABLE_GTK_DOC_TRUE@ $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ -@ENABLE_GTK_DOC_TRUE@ fi - -@ENABLE_GTK_DOC_TRUE@uninstall-local: -@ENABLE_GTK_DOC_TRUE@ @if test -n "$(DOC_MODULE_VERSION)"; then \ -@ENABLE_GTK_DOC_TRUE@ installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ -@ENABLE_GTK_DOC_TRUE@ else \ -@ENABLE_GTK_DOC_TRUE@ installdir="$(DESTDIR)$(TARGET_DIR)"; \ -@ENABLE_GTK_DOC_TRUE@ fi; \ -@ENABLE_GTK_DOC_TRUE@ rm -rf $${installdir} - -# -# Require gtk-doc when making dist -# -@ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc: -#dist-check-gtkdoc: -# @echo "*** gtk-doc must be installed and enabled in order to make dist" -# @false - -@ENABLE_GTK_DOC_TRUE@dist-hook: dist-check-gtkdoc dist-hook-local -@ENABLE_GTK_DOC_TRUE@ mkdir $(distdir)/tmpl -@ENABLE_GTK_DOC_TRUE@ mkdir $(distdir)/html -@ENABLE_GTK_DOC_TRUE@ -cp $(build)/tmpl/*.sgml $(distdir)/tmpl -@ENABLE_GTK_DOC_TRUE@ cp $(builddir)/html/* $(distdir)/html -@ENABLE_GTK_DOC_TRUE@ -cp $(builddir)/$(DOC_MODULE).pdf $(distdir)/ -@ENABLE_GTK_DOC_TRUE@ -cp $(build)/$(DOC_MODULE).types $(distdir)/ -@ENABLE_GTK_DOC_TRUE@ -cp $(build)/$(DOC_MODULE)-sections.txt $(distdir)/ -@ENABLE_GTK_DOC_TRUE@ cd $(distdir) && rm -f $(DISTCLEANFILES) -@ENABLE_GTK_DOC_TRUE@ $(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html - -@ENABLE_GTK_DOC_TRUE@.PHONY : dist-hook-local docs - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/docs/polkit-lock-button-lock-down.png b/docs/polkit-lock-button-lock-down.png deleted file mode 100644 index 4e383f7..0000000 Binary files a/docs/polkit-lock-button-lock-down.png and /dev/null differ diff --git a/docs/polkit-lock-button-locked.png b/docs/polkit-lock-button-locked.png deleted file mode 100644 index 26d8f83..0000000 Binary files a/docs/polkit-lock-button-locked.png and /dev/null differ diff --git a/docs/polkit-lock-button-not-authorized.png b/docs/polkit-lock-button-not-authorized.png deleted file mode 100644 index 9c33f89..0000000 Binary files a/docs/polkit-lock-button-not-authorized.png and /dev/null differ diff --git a/docs/polkit-lock-button-unlocked.png b/docs/polkit-lock-button-unlocked.png deleted file mode 100644 index 3c5f548..0000000 Binary files a/docs/polkit-lock-button-unlocked.png and /dev/null differ diff --git a/docs/version.xml.in b/docs/version.xml.in deleted file mode 100644 index d78bda9..0000000 --- a/docs/version.xml.in +++ /dev/null @@ -1 +0,0 @@ -@VERSION@ diff --git a/gtk-doc.make b/gtk-doc.make deleted file mode 100644 index f5c53c7..0000000 --- a/gtk-doc.make +++ /dev/null @@ -1,264 +0,0 @@ -# -*- mode: makefile -*- - -#################################### -# Everything below here is generic # -#################################### - -if GTK_DOC_USE_LIBTOOL -GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -GTKDOC_RUN = $(LIBTOOL) --mode=execute -else -GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -GTKDOC_RUN = -endif - -# We set GPATH here; this gives us semantics for GNU make -# which are more like other make's VPATH, when it comes to -# whether a source that is a target of one rule is then -# searched for in VPATH/GPATH. -# -GPATH = $(srcdir) - -TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE) - -SETUP_FILES = \ - $(content_files) \ - $(DOC_MAIN_SGML_FILE) \ - $(DOC_MODULE)-sections.txt \ - $(DOC_MODULE)-overrides.txt - -EXTRA_DIST = \ - $(SETUP_FILES) - -DOC_STAMPS=setup-build.stamp scan-build.stamp tmpl-build.stamp sgml-build.stamp \ - html-build.stamp pdf-build.stamp \ - setup.stamp tmpl.stamp sgml.stamp html.stamp pdf.stamp - -SCANOBJ_FILES = \ - $(DOC_MODULE).args \ - $(DOC_MODULE).hierarchy \ - $(DOC_MODULE).interfaces \ - $(DOC_MODULE).prerequisites \ - $(DOC_MODULE).signals - -REPORT_FILES = \ - $(DOC_MODULE)-undocumented.txt \ - $(DOC_MODULE)-undeclared.txt \ - $(DOC_MODULE)-unused.txt - -CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) - -if ENABLE_GTK_DOC -if GTK_DOC_BUILD_HTML -HTML_BUILD_STAMP=html-build.stamp -else -HTML_BUILD_STAMP= -endif -if GTK_DOC_BUILD_PDF -PDF_BUILD_STAMP=pdf-build.stamp -else -PDF_BUILD_STAMP= -endif - -all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) -else -all-local: -endif - -docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP) - -$(REPORT_FILES): sgml-build.stamp - -#### setup #### - -setup-build.stamp: - -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ - echo 'gtk-doc: Preparing build'; \ - files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \ - if test "x$$files" != "x" ; then \ - for file in $$files ; do \ - test -f $(abs_srcdir)/$$file && \ - cp -p $(abs_srcdir)/$$file $(abs_builddir)/; \ - done \ - fi; \ - test -f $(abs_srcdir)/tmpl && \ - cp -rp $(abs_srcdir)/tmpl $(abs_builddir)/; \ - fi - @touch setup-build.stamp - - -setup.stamp: setup-build.stamp - @true - - -#### scan #### - -scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) - @echo 'gtk-doc: Scanning header files' - @_source_dir='' ; \ - for i in $(DOC_SOURCE_DIR) ; do \ - _source_dir="$${_source_dir} --source-dir=$$i" ; \ - done ; \ - gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) - @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ - CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) ; \ - else \ - for i in $(SCANOBJ_FILES) ; do \ - test -f $$i || touch $$i ; \ - done \ - fi - @touch scan-build.stamp - -$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp - @true - -#### templates #### - -tmpl-build.stamp: setup.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt - @echo 'gtk-doc: Rebuilding template files' - @gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) - @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ - if test -w $(abs_srcdir) ; then \ - cp -rp $(abs_builddir)/tmpl $(abs_srcdir)/; \ - fi \ - fi - @touch tmpl-build.stamp - -tmpl.stamp: tmpl-build.stamp - @true - -$(srcdir)/tmpl/*.sgml: - @true - -#### xml #### - -sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files) - @echo 'gtk-doc: Building XML' - @-chmod -R u+w $(srcdir) - @_source_dir='' ; \ - for i in $(DOC_SOURCE_DIR) ; do \ - _source_dir="$${_source_dir} --source-dir=$$i" ; \ - done ; \ - gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) - @touch sgml-build.stamp - -sgml.stamp: sgml-build.stamp - @true - -#### html #### - -html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) - @echo 'gtk-doc: Building HTML' - @rm -rf html - @mkdir html - @mkhtml_options=""; \ - gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ - if test "$(?)" = "0"; then \ - mkhtml_options=--path="$(abs_srcdir)"; \ - fi; \ - cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) - -@test "x$(HTML_IMAGES)" = "x" || \ - for file in $(HTML_IMAGES) ; do \ - if test -f $(abs_srcdir)/$$file ; then \ - cp $(abs_srcdir)/$$file $(abs_builddir)/html; \ - fi; \ - if test -f $(abs_builddir)/$$file ; then \ - cp $(abs_builddir)/$$file $(abs_builddir)/html; \ - fi; \ - done; - @echo 'gtk-doc: Fixing cross-references' - @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) - @touch html-build.stamp - -#### pdf #### - -pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) - @echo 'gtk-doc: Building PDF' - @rm -rf $(DOC_MODULE).pdf - @mkpdf_imgdirs=""; \ - if test "x$(HTML_IMAGES)" != "x"; then \ - for img in $(HTML_IMAGES); do \ - part=`dirname $$img`; \ - echo $$mkpdf_imgdirs | grep >/dev/null "\-\-imgdir=$$part "; \ - if test $$? != 0; then \ - mkpdf_imgdirs="$$mkpdf_imgdirs --imgdir=$$part"; \ - fi; \ - done; \ - fi; \ - gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) - @touch pdf-build.stamp - -############## - -clean-local: - rm -f *~ *.bak - rm -rf .libs - -distclean-local: - rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \ - $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt - if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ - rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \ - rm -rf tmpl; \ - fi - -maintainer-clean-local: clean - rm -rf xml html - -install-data-local: - @installfiles=`echo $(srcdir)/html/*`; \ - if test "$$installfiles" = '$(srcdir)/html/*'; \ - then echo '-- Nothing to install' ; \ - else \ - if test -n "$(DOC_MODULE_VERSION)"; then \ - installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ - else \ - installdir="$(DESTDIR)$(TARGET_DIR)"; \ - fi; \ - $(mkinstalldirs) $${installdir} ; \ - for i in $$installfiles; do \ - echo '-- Installing '$$i ; \ - $(INSTALL_DATA) $$i $${installdir}; \ - done; \ - if test -n "$(DOC_MODULE_VERSION)"; then \ - mv -f $${installdir}/$(DOC_MODULE).devhelp2 \ - $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \ - mv -f $${installdir}/$(DOC_MODULE).devhelp \ - $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp; \ - fi; \ - $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \ - fi - -uninstall-local: - @if test -n "$(DOC_MODULE_VERSION)"; then \ - installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \ - else \ - installdir="$(DESTDIR)$(TARGET_DIR)"; \ - fi; \ - rm -rf $${installdir} - -# -# Require gtk-doc when making dist -# -if ENABLE_GTK_DOC -dist-check-gtkdoc: -else -dist-check-gtkdoc: - @echo "*** gtk-doc must be installed and enabled in order to make dist" - @false -endif - -dist-hook: dist-check-gtkdoc dist-hook-local - mkdir $(distdir)/tmpl - mkdir $(distdir)/html - -cp $(build)/tmpl/*.sgml $(distdir)/tmpl - cp $(builddir)/html/* $(distdir)/html - -cp $(builddir)/$(DOC_MODULE).pdf $(distdir)/ - -cp $(build)/$(DOC_MODULE).types $(distdir)/ - -cp $(build)/$(DOC_MODULE)-sections.txt $(distdir)/ - cd $(distdir) && rm -f $(DISTCLEANFILES) - $(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html - -.PHONY : dist-hook-local docs diff --git a/po/POTFILES.in b/po/POTFILES.in index f5be1f4..ca7cc67 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,7 +1,6 @@ # List of source files containing translatable strings. # Please keep this file sorted alphabetically. [encoding: UTF-8] -polkitgtk/polkitlockbutton.c src/main.c src/polkitgnomeauthenticationdialog.c src/polkitgnomeauthenticator.c diff --git a/po/ca.po b/po/ca.po index 5831dbf..de64480 100644 --- a/po/ca.po +++ b/po/ca.po @@ -2,161 +2,21 @@ # Copyright (C) 2007 David Zeuthen # This file is distributed under the same license as the PolicyKit-gnome package. # David Planella Molas , 2008, 2009. +# Gil Forcada , 2011. # msgid "" msgstr "" "Project-Id-Version: PolicyKit-gnome\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-04-02 13:19+0200\n" -"PO-Revision-Date: 2011-04-02 13:20+0200\n" -"Last-Translator: David Planella \n" -"Language-Team: Catalan \n" +"POT-Creation-Date: 2011-10-01 16:06+0200\n" +"PO-Revision-Date: 2011-10-01 16:07+0200\n" +"Last-Translator: Gil Forcada \n" +"Language-Team: català; valencià \n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: ../polkitgtk/polkitlockbutton.c:458 -msgid "Action Identifier" -msgstr "Identificador de l'acció" - -#: ../polkitgtk/polkitlockbutton.c:459 -msgid "The action identifier to use for the button" -msgstr "L'identificador de l'acció a utilitzar pel botó" - -#: ../polkitgtk/polkitlockbutton.c:475 -msgid "Is Authorized" -msgstr "És autoritzat" - -#: ../polkitgtk/polkitlockbutton.c:476 -msgid "Whether the process is authorized" -msgstr "Si el procés és autoritzat" - -#: ../polkitgtk/polkitlockbutton.c:491 -msgid "Is Visible" -msgstr "És visible" - -#: ../polkitgtk/polkitlockbutton.c:492 -msgid "Whether the widget is visible" -msgstr "Si el giny és visible" - -#: ../polkitgtk/polkitlockbutton.c:507 -msgid "Can Obtain" -msgstr "Pot obtenir" - -#: ../polkitgtk/polkitlockbutton.c:508 -msgid "Whether authorization can be obtained" -msgstr "Si es pot obtenir l'autorització" - -#: ../polkitgtk/polkitlockbutton.c:523 ../polkitgtk/polkitlockbutton.c:625 -msgid "Unlock Text" -msgstr "Text de desbloqueig" - -#: ../polkitgtk/polkitlockbutton.c:524 -msgid "The text to display when prompting the user to unlock." -msgstr "El text que es mostrarà a l'usuari per a desbloquejar." - -#: ../polkitgtk/polkitlockbutton.c:525 -msgid "Click to make changes" -msgstr "Feu clic per a fer canvis" - -#: ../polkitgtk/polkitlockbutton.c:540 ../polkitgtk/polkitlockbutton.c:642 -msgid "Unlock Tooltip" -msgstr "Indicador de funció per a desbloquejar" - -#: ../polkitgtk/polkitlockbutton.c:541 -msgid "The tooltip to display when prompting the user to unlock." -msgstr "L'indicador de funció que es mostrarà a l'usuari per a desbloquejar." - -#: ../polkitgtk/polkitlockbutton.c:542 -msgid "Authentication is needed to make changes." -msgstr "Cal l'autenticació per a realitzar canvis." - -#: ../polkitgtk/polkitlockbutton.c:557 -msgid "Lock Text" -msgstr "Text de bloqueig" - -#: ../polkitgtk/polkitlockbutton.c:558 -msgid "The text to display when prompting the user to lock." -msgstr "El text que es mostrarà a l'usuari per a bloquejar." - -#: ../polkitgtk/polkitlockbutton.c:559 -msgid "Click to prevent changes" -msgstr "Feu clic per a evitar canvis" - -#: ../polkitgtk/polkitlockbutton.c:574 -msgid "Lock Tooltip" -msgstr "Indicador de funció per a bloquejar" - -#: ../polkitgtk/polkitlockbutton.c:575 -msgid "The tooltip to display when prompting the user to lock." -msgstr "L'indicador de funció que es mostrarà a l'usuari per bloquejar." - -#: ../polkitgtk/polkitlockbutton.c:576 -msgid "To prevent further changes, click the lock." -msgstr "Per a evitar més canvis, feu clic a bloquejar." - -#: ../polkitgtk/polkitlockbutton.c:591 -msgid "Lock Down Text" -msgstr "Text de restricció" - -#: ../polkitgtk/polkitlockbutton.c:592 -msgid "" -"The text to display when prompting the user to lock down the action for all " -"users." -msgstr "" -"El text que es mostrarà a l'usuari per a restringir l'acció per a tots els " -"usuaris." - -#: ../polkitgtk/polkitlockbutton.c:593 -msgid "Click to lock down" -msgstr "Feu clic per a restringir" - -#: ../polkitgtk/polkitlockbutton.c:608 -msgid "Lock Down Tooltip" -msgstr "Indicador de funció per a restringir" - -#: ../polkitgtk/polkitlockbutton.c:609 -msgid "" -"The tooltip to display when prompting the user to lock down the action for " -"all users." -msgstr "" -"L'indicador de funció que es mostrarà a l'usuari per a restringir l'acció " -"per a tots els usuaris." - -#: ../polkitgtk/polkitlockbutton.c:610 -msgid "" -"To prevent users without administrative privileges from making changes, " -"click the lock." -msgstr "" -"Per a evitar que els usuaris sense permisos d'administració facin canvis feu " -"clic a restringir." - -#: ../polkitgtk/polkitlockbutton.c:626 -msgid "" -"The text to display when the user cannot obtain authorization through " -"authentication." -msgstr "" -"El text que es mostrarà a l'usuari quan no pugui obtenir l'autorització tot " -"i autenticar-se." - -#: ../polkitgtk/polkitlockbutton.c:627 -msgid "Not authorized to make changes" -msgstr "No esteu autoritzat a fer canvis" - -#: ../polkitgtk/polkitlockbutton.c:643 -msgid "" -"The tooltip to display when the user cannot obtain authorization through " -"authentication." -msgstr "" -"L'indicador de funció que es mostrarà a l'usuari quan no pugui obtenir " -"l'autorització tot i autenticar-se." - -#: ../polkitgtk/polkitlockbutton.c:644 -msgid "System policy prevents changes. Contact your system administator." -msgstr "" -"La política del sistema impedeix fer canvis. Contacteu amb l'administrador " -"del sistema." +"Content-Transfer-Encoding: 8bits\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" #: ../src/polkitgnomeauthenticationdialog.c:159 msgid "Select user..." @@ -194,10 +54,10 @@ "Authentication as the super user is required to perform this action." msgstr "" "Una aplicació està intentant realitzar una acció que requereix privilegis. " -"Cal autenticar-se com a usuari primari per a dur a terme l'acció." +"Cal autenticar-se com a l'usuari primari per a dur a terme l'acció." #: ../src/polkitgnomeauthenticationdialog.c:625 -#: ../src/polkitgnomeauthenticator.c:301 +#: ../src/polkitgnomeauthenticator.c:300 msgid "_Password:" msgstr "_Contrasenya:" @@ -228,18 +88,131 @@ msgid "Authenticate" msgstr "Autentica" -#: ../src/polkitgnomeauthenticator.c:297 +#: ../src/polkitgnomeauthenticator.c:296 #, c-format msgid "_Password for %s:" msgstr "_Contrasenya per a %s:" -#: ../src/polkitgnomeauthenticator.c:457 +#: ../src/polkitgnomeauthenticator.c:456 msgid "Authentication Failure" -msgstr "Fallada d'autenticació" +msgstr "Ha fallat l'autenticació" #: ../src/polkitgnomelistener.c:164 -msgid "Authentation dialog was dismissed by the user" +msgid "Authentication dialog was dismissed by the user" msgstr "L'usuari ha descartat el diàleg d'autenticació" + +#~ msgid "Action Identifier" +#~ msgstr "Identificador de l'acció" + +#~ msgid "The action identifier to use for the button" +#~ msgstr "L'identificador de l'acció a utilitzar pel botó" + +#~ msgid "Is Authorized" +#~ msgstr "És autoritzat" + +#~ msgid "Whether the process is authorized" +#~ msgstr "Si el procés és autoritzat" + +#~ msgid "Is Visible" +#~ msgstr "És visible" + +#~ msgid "Whether the widget is visible" +#~ msgstr "Si el giny és visible" + +#~ msgid "Can Obtain" +#~ msgstr "Pot obtenir" + +#~ msgid "Whether authorization can be obtained" +#~ msgstr "Si es pot obtenir l'autorització" + +#~ msgid "Unlock Text" +#~ msgstr "Text de desbloqueig" + +#~ msgid "The text to display when prompting the user to unlock." +#~ msgstr "El text que es mostrarà a l'usuari per a desbloquejar." + +#~ msgid "Click to make changes" +#~ msgstr "Feu clic per a fer canvis" + +#~ msgid "Unlock Tooltip" +#~ msgstr "Indicador de funció per a desbloquejar" + +#~ msgid "The tooltip to display when prompting the user to unlock." +#~ msgstr "" +#~ "L'indicador de funció que es mostrarà a l'usuari per a desbloquejar." + +#~ msgid "Authentication is needed to make changes." +#~ msgstr "Cal l'autenticació per a realitzar canvis." + +#~ msgid "Lock Text" +#~ msgstr "Text de bloqueig" + +#~ msgid "The text to display when prompting the user to lock." +#~ msgstr "El text que es mostrarà a l'usuari per a bloquejar." + +#~ msgid "Click to prevent changes" +#~ msgstr "Feu clic per a evitar canvis" + +#~ msgid "Lock Tooltip" +#~ msgstr "Indicador de funció per a bloquejar" + +#~ msgid "The tooltip to display when prompting the user to lock." +#~ msgstr "L'indicador de funció que es mostrarà a l'usuari per bloquejar." + +#~ msgid "To prevent further changes, click the lock." +#~ msgstr "Per a evitar més canvis, feu clic a bloquejar." + +#~ msgid "Lock Down Text" +#~ msgstr "Text de restricció" + +#~ msgid "" +#~ "The text to display when prompting the user to lock down the action for " +#~ "all users." +#~ msgstr "" +#~ "El text que es mostrarà a l'usuari per a restringir l'acció per a tots " +#~ "els usuaris." + +#~ msgid "Click to lock down" +#~ msgstr "Feu clic per a restringir" + +#~ msgid "Lock Down Tooltip" +#~ msgstr "Indicador de funció per a restringir" + +#~ msgid "" +#~ "The tooltip to display when prompting the user to lock down the action " +#~ "for all users." +#~ msgstr "" +#~ "L'indicador de funció que es mostrarà a l'usuari per a restringir l'acció " +#~ "per a tots els usuaris." + +#~ msgid "" +#~ "To prevent users without administrative privileges from making changes, " +#~ "click the lock." +#~ msgstr "" +#~ "Per a evitar que els usuaris sense permisos d'administració facin canvis " +#~ "feu clic a restringir." + +#~ msgid "" +#~ "The text to display when the user cannot obtain authorization through " +#~ "authentication." +#~ msgstr "" +#~ "El text que es mostrarà a l'usuari quan no pugui obtenir l'autorització " +#~ "tot i autenticar-se." + +#~ msgid "Not authorized to make changes" +#~ msgstr "No esteu autoritzat a fer canvis" + +#~ msgid "" +#~ "The tooltip to display when the user cannot obtain authorization through " +#~ "authentication." +#~ msgstr "" +#~ "L'indicador de funció que es mostrarà a l'usuari quan no pugui obtenir " +#~ "l'autorització tot i autenticar-se." + +#~ msgid "System policy prevents changes. Contact your system administator." +#~ msgstr "" +#~ "La política del sistema impedeix fer canvis. Contacteu amb " +#~ "l'administrador del sistema." #~ msgid "" #~ "This button is locked down so only users with administrative privileges " diff --git a/po/ca@valencia.po b/po/ca@valencia.po index 037780e..937babc 100644 --- a/po/ca@valencia.po +++ b/po/ca@valencia.po @@ -2,165 +2,21 @@ # Copyright (C) 2007 David Zeuthen # This file is distributed under the same license as the PolicyKit-gnome package. # David Planella Molas , 2008, 2009. +# Gil Forcada , 2011. # msgid "" msgstr "" "Project-Id-Version: PolicyKit-gnome\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-10-29 23:37+0100\n" -"PO-Revision-Date: 2009-10-28 08:15+0100\n" -"Last-Translator: David Planella \n" -"Language-Team: Catalan \n" -"Language: ca\n" +"POT-Creation-Date: 2011-10-01 16:08+0200\n" +"PO-Revision-Date: 2011-10-01 16:07+0200\n" +"Last-Translator: Gil Forcada \n" +"Language-Team: català; valencià \n" +"Language: ca-XV\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: ../polkitgtk/polkitlockbutton.c:458 -msgid "Action Identifier" -msgstr "Identificador de l'acció" - -#: ../polkitgtk/polkitlockbutton.c:459 -msgid "The action identifier to use for the button" -msgstr "L'identificador de l'acció a utilitzar pel botó" - -#: ../polkitgtk/polkitlockbutton.c:475 -msgid "Is Authorized" -msgstr "És autoritzat" - -#: ../polkitgtk/polkitlockbutton.c:476 -msgid "Whether the process is authorized" -msgstr "Si el procés és autoritzat" - -#: ../polkitgtk/polkitlockbutton.c:491 -msgid "Is Visible" -msgstr "És visible" - -#: ../polkitgtk/polkitlockbutton.c:492 -msgid "Whether the widget is visible" -msgstr "Si el giny és visible" - -#: ../polkitgtk/polkitlockbutton.c:507 -msgid "Can Obtain" -msgstr "Pot obtindre" - -#: ../polkitgtk/polkitlockbutton.c:508 -msgid "Whether authorization can be obtained" -msgstr "Si es pot obtindre l'autorització" - -#: ../polkitgtk/polkitlockbutton.c:523 ../polkitgtk/polkitlockbutton.c:625 -msgid "Unlock Text" -msgstr "Text de desbloqueig" - -#: ../polkitgtk/polkitlockbutton.c:524 -msgid "The text to display when prompting the user to unlock." -msgstr "El text que es mostrarà a l'usuari per a desbloquejar." - -#: ../polkitgtk/polkitlockbutton.c:525 -msgid "Click to make changes" -msgstr "Feu clic per a fer canvis" - -#: ../polkitgtk/polkitlockbutton.c:540 ../polkitgtk/polkitlockbutton.c:642 -msgid "Unlock Tooltip" -msgstr "Indicador de funció per a desbloquejar" - -#: ../polkitgtk/polkitlockbutton.c:541 -msgid "The tooltip to display when prompting the user to unlock." -msgstr "L'indicador de funció que es mostrarà a l'usuari per a desbloquejar." - -#: ../polkitgtk/polkitlockbutton.c:542 -msgid "Authentication is needed to make changes." -msgstr "Cal l'autenticació per a realitzar canvis." - -#: ../polkitgtk/polkitlockbutton.c:557 -msgid "Lock Text" -msgstr "Text de bloqueig" - -#: ../polkitgtk/polkitlockbutton.c:558 -msgid "The text to display when prompting the user to lock." -msgstr "El text que es mostrarà a l'usuari per a bloquejar." - -#: ../polkitgtk/polkitlockbutton.c:559 -msgid "Click to prevent changes" -msgstr "Feu clic per a evitar canvis" - -#: ../polkitgtk/polkitlockbutton.c:574 -msgid "Lock Tooltip" -msgstr "Indicador de funció per a bloquejar" - -#: ../polkitgtk/polkitlockbutton.c:575 -msgid "The tooltip to display when prompting the user to lock." -msgstr "L'indicador de funció que es mostrarà a l'usuari per bloquejar." - -#: ../polkitgtk/polkitlockbutton.c:576 -msgid "To prevent further changes, click the lock." -msgstr "Per a evitar més canvis, feu clic a bloquejar." - -#: ../polkitgtk/polkitlockbutton.c:591 -msgid "Lock Down Text" -msgstr "Text de restricció" - -#: ../polkitgtk/polkitlockbutton.c:592 -msgid "" -"The text to display when prompting the user to lock down the action for all " -"users." -msgstr "" -"El text que es mostrarà a l'usuari per a restringir l'acció per a tots els " -"usuaris." - -#: ../polkitgtk/polkitlockbutton.c:593 -msgid "Click to lock down" -msgstr "Feu clic per a restringir" - -#: ../polkitgtk/polkitlockbutton.c:608 -msgid "Lock Down Tooltip" -msgstr "Indicador de funció per a restringir" - -#: ../polkitgtk/polkitlockbutton.c:609 -msgid "" -"The tooltip to display when prompting the user to lock down the action for " -"all users." -msgstr "" -"L'indicador de funció que es mostrarà a l'usuari per a restringir l'acció " -"per a tots els usuaris." - -#: ../polkitgtk/polkitlockbutton.c:610 -msgid "" -"To prevent users without administrative privileges from making changes, " -"click the lock." -msgstr "" -"Per a evitar que els usuaris sense permisos d'administració facen canvis feu " -"clic a restringir." - -#: ../polkitgtk/polkitlockbutton.c:626 -msgid "" -"The text to display when the user cannot obtain authorization through " -"authentication." -msgstr "" -"El text que es mostrarà a l'usuari quan no puga obtindre l'autorització tot " -"i autenticar-se." - -#: ../polkitgtk/polkitlockbutton.c:627 -msgid "Not authorized to make changes" -msgstr "No esteu autoritzat a fer canvis" - -#: ../polkitgtk/polkitlockbutton.c:643 -msgid "" -"The tooltip to display when the user cannot obtain authorization through " -"authentication." -msgstr "" -"L'indicador de funció que es mostrarà a l'usuari quan no puga obtindre " -"l'autorització tot i autenticar-se." - -#: ../polkitgtk/polkitlockbutton.c:644 -msgid "System policy prevents changes. Contact your system administator." -msgstr "" -"La política del sistema impedeix fer canvis. Contacteu amb l'administrador " -"del sistema." - -#: ../src/main.c:128 -msgid "Click the icon to drop all elevated privileges" -msgstr "Feu clic a la icona per a treure tots els privilegis" +"Content-Transfer-Encoding: 8bits\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" #: ../src/polkitgnomeauthenticationdialog.c:159 msgid "Select user..." @@ -171,11 +27,11 @@ msgid "%s (%s)" msgstr "%s (%s)" -#: ../src/polkitgnomeauthenticationdialog.c:531 +#: ../src/polkitgnomeauthenticationdialog.c:537 msgid "_Authenticate" msgstr "_Autentica" -#: ../src/polkitgnomeauthenticationdialog.c:571 +#: ../src/polkitgnomeauthenticationdialog.c:576 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as one of the users below is required to perform this action." @@ -183,7 +39,7 @@ "Una aplicació està intentant realitzar una acció que requereix privilegis. " "Cal autenticar-se com a un dels usuaris d'ací sota per a dur a terme l'acció." -#: ../src/polkitgnomeauthenticationdialog.c:579 +#: ../src/polkitgnomeauthenticationdialog.c:584 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication is required to perform this action." @@ -191,58 +47,171 @@ "Una aplicació està intentant realitzar una acció que requereix privilegis. " "Cal autenticar-se per a dur a terme l'acció." -#: ../src/polkitgnomeauthenticationdialog.c:585 +#: ../src/polkitgnomeauthenticationdialog.c:590 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as the super user is required to perform this action." msgstr "" "Una aplicació està intentant realitzar una acció que requereix privilegis. " -"Cal autenticar-se com a usuari primari per a dur a terme l'acció." - -#: ../src/polkitgnomeauthenticationdialog.c:620 -#: ../src/polkitgnomeauthenticator.c:298 +"Cal autenticar-se com a l'usuari primari per a dur a terme l'acció." + +#: ../src/polkitgnomeauthenticationdialog.c:625 +#: ../src/polkitgnomeauthenticator.c:300 msgid "_Password:" msgstr "_Contrasenya:" #. Details -#: ../src/polkitgnomeauthenticationdialog.c:638 +#: ../src/polkitgnomeauthenticationdialog.c:643 msgid "_Details" msgstr "_Detalls" -#: ../src/polkitgnomeauthenticationdialog.c:691 +#: ../src/polkitgnomeauthenticationdialog.c:699 msgid "Action:" msgstr "Acció:" -#: ../src/polkitgnomeauthenticationdialog.c:694 +#: ../src/polkitgnomeauthenticationdialog.c:702 #, c-format msgid "Click to edit %s" msgstr "Feu clic per a editar %s" -#: ../src/polkitgnomeauthenticationdialog.c:708 +#: ../src/polkitgnomeauthenticationdialog.c:716 msgid "Vendor:" msgstr "Proveïdor:" -#: ../src/polkitgnomeauthenticationdialog.c:710 +#: ../src/polkitgnomeauthenticationdialog.c:718 #, c-format msgid "Click to open %s" msgstr "Feu clic per a obrir %s" -#: ../src/polkitgnomeauthenticationdialog.c:873 +#: ../src/polkitgnomeauthenticationdialog.c:881 msgid "Authenticate" msgstr "Autentica" -#: ../src/polkitgnomeauthenticator.c:294 +#: ../src/polkitgnomeauthenticator.c:296 #, c-format msgid "_Password for %s:" msgstr "_Contrasenya per a %s:" -#: ../src/polkitgnomeauthenticator.c:454 +#: ../src/polkitgnomeauthenticator.c:456 msgid "Authentication Failure" -msgstr "Fallada d'autenticació" - -#: ../src/polkit-gnome-authentication-agent-1.desktop.in.in.h:1 -msgid "PolicyKit Authentication Agent" -msgstr "Agent d'autenticació del PolicyKit" +msgstr "Ha fallat l'autenticació" + +#: ../src/polkitgnomelistener.c:164 +msgid "Authentication dialog was dismissed by the user" +msgstr "L'usuari ha descartat el diàleg d'autenticació" + +#~ msgid "Action Identifier" +#~ msgstr "Identificador de l'acció" + +#~ msgid "The action identifier to use for the button" +#~ msgstr "L'identificador de l'acció a utilitzar pel botó" + +#~ msgid "Is Authorized" +#~ msgstr "És autoritzat" + +#~ msgid "Whether the process is authorized" +#~ msgstr "Si el procés és autoritzat" + +#~ msgid "Is Visible" +#~ msgstr "És visible" + +#~ msgid "Whether the widget is visible" +#~ msgstr "Si el giny és visible" + +#~ msgid "Can Obtain" +#~ msgstr "Pot obtenir" + +#~ msgid "Whether authorization can be obtained" +#~ msgstr "Si es pot obtenir l'autorització" + +#~ msgid "Unlock Text" +#~ msgstr "Text de desbloqueig" + +#~ msgid "The text to display when prompting the user to unlock." +#~ msgstr "El text que es mostrarà a l'usuari per a desbloquejar." + +#~ msgid "Click to make changes" +#~ msgstr "Feu clic per a fer canvis" + +#~ msgid "Unlock Tooltip" +#~ msgstr "Indicador de funció per a desbloquejar" + +#~ msgid "The tooltip to display when prompting the user to unlock." +#~ msgstr "" +#~ "L'indicador de funció que es mostrarà a l'usuari per a desbloquejar." + +#~ msgid "Authentication is needed to make changes." +#~ msgstr "Cal l'autenticació per a realitzar canvis." + +#~ msgid "Lock Text" +#~ msgstr "Text de bloqueig" + +#~ msgid "The text to display when prompting the user to lock." +#~ msgstr "El text que es mostrarà a l'usuari per a bloquejar." + +#~ msgid "Click to prevent changes" +#~ msgstr "Feu clic per a evitar canvis" + +#~ msgid "Lock Tooltip" +#~ msgstr "Indicador de funció per a bloquejar" + +#~ msgid "The tooltip to display when prompting the user to lock." +#~ msgstr "L'indicador de funció que es mostrarà a l'usuari per bloquejar." + +#~ msgid "To prevent further changes, click the lock." +#~ msgstr "Per a evitar més canvis, feu clic a bloquejar." + +#~ msgid "Lock Down Text" +#~ msgstr "Text de restricció" + +#~ msgid "" +#~ "The text to display when prompting the user to lock down the action for " +#~ "all users." +#~ msgstr "" +#~ "El text que es mostrarà a l'usuari per a restringir l'acció per a tots " +#~ "els usuaris." + +#~ msgid "Click to lock down" +#~ msgstr "Feu clic per a restringir" + +#~ msgid "Lock Down Tooltip" +#~ msgstr "Indicador de funció per a restringir" + +#~ msgid "" +#~ "The tooltip to display when prompting the user to lock down the action " +#~ "for all users." +#~ msgstr "" +#~ "L'indicador de funció que es mostrarà a l'usuari per a restringir l'acció " +#~ "per a tots els usuaris." + +#~ msgid "" +#~ "To prevent users without administrative privileges from making changes, " +#~ "click the lock." +#~ msgstr "" +#~ "Per a evitar que els usuaris sense permisos d'administració facin canvis " +#~ "feu clic a restringir." + +#~ msgid "" +#~ "The text to display when the user cannot obtain authorization through " +#~ "authentication." +#~ msgstr "" +#~ "El text que es mostrarà a l'usuari quan no pugui obtenir l'autorització " +#~ "tot i autenticar-se." + +#~ msgid "Not authorized to make changes" +#~ msgstr "No esteu autoritzat a fer canvis" + +#~ msgid "" +#~ "The tooltip to display when the user cannot obtain authorization through " +#~ "authentication." +#~ msgstr "" +#~ "L'indicador de funció que es mostrarà a l'usuari quan no pugui obtenir " +#~ "l'autorització tot i autenticar-se." + +#~ msgid "System policy prevents changes. Contact your system administator." +#~ msgstr "" +#~ "La política del sistema impedeix fer canvis. Contacteu amb " +#~ "l'administrador del sistema." #~ msgid "" #~ "This button is locked down so only users with administrative privileges " @@ -251,6 +220,12 @@ #~ "Aquest botó està restringit de manera que només els usuaris amb permisos " #~ "d'administració poden desbloquejar-lo. Feu clic amb el botó secundari per " #~ "a suprimir la restricció." + +#~ msgid "Click the icon to drop all elevated privileges" +#~ msgstr "Feu clic a la icona per a treure tots els privilegis" + +#~ msgid "PolicyKit Authentication Agent" +#~ msgstr "Agent d'autenticació del PolicyKit" #~ msgid "Authorizations" #~ msgstr "Autoritzacions" diff --git a/po/cs.po b/po/cs.po index 4b53551..5353702 100644 --- a/po/cs.po +++ b/po/cs.po @@ -10,15 +10,15 @@ msgstr "" "Project-Id-Version: policykit-gnome\n" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" -"product=policykit-gnome&component=general\n" -"POT-Creation-Date: 2011-03-03 18:50+0000\n" -"PO-Revision-Date: 2011-03-12 13:15+0100\n" +"product=policykit-gnome&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2011-08-30 15:24+0000\n" +"PO-Revision-Date: 2011-09-09 11:17+0200\n" "Last-Translator: Marek Černocký \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" -"Language: cs\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: cs\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Lokalize 1.0\n" @@ -249,498 +249,5 @@ msgstr "Selhání ověření" #: ../src/polkitgnomelistener.c:164 -msgid "Authentation dialog was dismissed by the user" -msgstr "Dialogové okno ověření bylo uživatelem odmítnuto" - -#~ msgid "" -#~ "This button is locked down so only users with administrative privileges " -#~ "can unlock it. Right-click the button to remove the lock down." -#~ msgstr "" -#~ "Toto tlačítko je uzamknuto, takže jej mohou odemknout pouze uživatelé s " -#~ "oprávněním správce. Uzamknutí odstraníte kliknutím pravým tlačítkem myši " -#~ "na tlačítko." - -#~ msgid "Click the icon to drop all elevated privileges" -#~ msgstr "Kliknutím na ikonu zrušíte zvýšená oprávnění" - -#~ msgid "PolicyKit Authentication Agent" -#~ msgstr "Ověřovací agent PolicyKit" - -#~ msgid "Authorizations" -#~ msgstr "Oprávnění" - -#~ msgid "Configure authorizations" -#~ msgstr "Nastavit oprávnění" - -#~ msgid "" -#~ "A list of PolicyKit action where the \"retain authorization\" checkbox " -#~ "isn't checked by default; this list is maintained by the authentication " -#~ "dialog code itself. For example, if a user unchecks the \"retain " -#~ "authorization\" check box for an action and successfully obtains an " -#~ "authorization for the action, the action will be added to this list." -#~ msgstr "" -#~ "Seznam akcí PolicyKit, u kterých není zaškrtávací políčko \"zachovat " -#~ "oprávnění\" standardně zaškrtnuto; tento seznam se udržuje sám přes " -#~ "ověřovací okno. Například, pokud uživatel odškrtne zaškrtávací políčko " -#~ "\"zachovat oprávnění\" pro akci a pak k ní toto oprávnění úspěšně získá, " -#~ "bude akce přidána do tohoto seznamu." - -#~ msgid "" -#~ "A list of actions where the \"retain authorization\" checkbox isn't " -#~ "checked by default" -#~ msgstr "" -#~ "Seznam akcí, u kterých není zaškrtávací políčko \"zachovat oprávnění\" " -#~ "standardně zaškrtnuto" - -#~ msgid "" -#~ "If set to true, the authentication dialog from PolicyKit-gnome will grab " -#~ "the keyboard, so that you will not be able to type in other programs " -#~ "while the dialog is active. Use this if your window manager does not " -#~ "focus the authentication dialog automatically, and you want to avoid " -#~ "accidentally typing passwords in other programs." -#~ msgstr "" -#~ "Pokud nastavíte na hodnotu PRAVDA, ověřovací okno PolicyKit-gnome " -#~ "převezme klávesnici, takže nebudete moci psát v jiných programech, dokud " -#~ "bude okno aktivní. Toto použijte, pokud váš správce oken automaticky " -#~ "nezaregistruje ověřovací okno a chcete se vyhnout nechtěnému psaní hesla " -#~ "do jiných programů." - -#~ msgid "" -#~ "If set to true, then \"retain authorization\" check box (if present) is " -#~ "checked by default in the authentication dialog unless the action is " -#~ "mentioned in the \"/desktop/gnome/policykit/" -#~ "auth_dialog_retain_authorization_blacklist\" key." -#~ msgstr "" -#~ "Pokud nastavíte na hodnotu PRAVDA, pak je zaškrtávací políčko \"zachovat " -#~ "oprávnění\" (pokud je přítomno) v ověřovacím okně standardně zaškrtnuto, " -#~ "pokud ne, akce je uvedena v klíči \"/desktop/gnome/policykit/" -#~ "auth_dialog_retain_authorization_blacklist\"." - -#~ msgid "Whether the authentication dialog should grab the keyboard" -#~ msgstr "Jestli má ověřovací okno převzít klávesnici" - -#~ msgid "Whether the retain authorization check box is checked by default" -#~ msgstr "" -#~ "Jestli je zaškrtávací políčko \"zachovat oprávnění\" standardně zaškrtnuto" - -#~ msgid "Copyright © 2007 David Zeuthen" -#~ msgstr "Copyright © 2007 David Zeuthen" - -#~ msgid "PolicyKit-gnome Website" -#~ msgstr "Webová stránka PolicyKit-gnome" - -#~ msgid "PolicyKit-gnome demo" -#~ msgstr "Demo PolicyKit-gnome" - -#~ msgid "PolicyKit for the GNOME desktop" -#~ msgstr "PolicyKit pro pracovní prostředí GNOME" - -#~ msgid "_File" -#~ msgstr "_Soubor" - -#~ msgid "_Actions" -#~ msgstr "_Akce" - -#~ msgid "_Help" -#~ msgstr "_Nápověda" - -#~ msgid "_Quit" -#~ msgstr "U_končit" - -#~ msgid "Quit" -#~ msgstr "Ukončit" - -#~ msgid "_About" -#~ msgstr "_O aplikaci" - -#~ msgid "About" -#~ msgstr "O aplikaci" - -#~ msgid "" -#~ "Making the helper Frobnicate requires the user to authenticate. " -#~ "The authorization is kept for the life time of the process" -#~ msgstr "" -#~ "Vytvoření pomocníka Frobnicate vyžaduje ověření uživatele. " -#~ "Oprávnění je zachováno po dobu trvání procesu" - -#~ msgid "" -#~ "Making the helper Jump requires the user to authenticate. This is " -#~ "a one-shot authorization." -#~ msgstr "" -#~ "Vytvoření pomocníka Přeskočit vyžaduje ověření uživatele. Toto je " -#~ "jednorázové oprávnění." - -#~ msgid "Jump!" -#~ msgstr "Přeskočit!" - -#~ msgid "" -#~ "Making the helper Tweak requires a system administrator to " -#~ "authenticate. This instance overrides the defaults set in " -#~ "polkit_gnome_action_new()." -#~ msgstr "" -#~ "Vytvoření pomocníka Přizpůsobit vyžaduje ověření administrátora " -#~ "systému. Tato instance zruší výchozí nastavení v polkit_gnome_action_new" -#~ "()." - -#~ msgid "Tweak!" -#~ msgstr "Přizpůsobit!" - -#~ msgid "Tweak" -#~ msgstr "Přizpůsobit" - -#~ msgid "Tweak (long)" -#~ msgstr "Přizpůsobit (dlouho)" - -#~ msgid "If your admin wasn't annoying, you could do this" -#~ msgstr "Pokud nebyl váš administrátor proti, mohli byste tohle provádět" - -#~ msgid "Tweak..." -#~ msgstr "Přizpůsobit..." - -#~ msgid "Tweak... (long)" -#~ msgstr "Přizpůsobit... (dlouho)" - -#~ msgid "Tweak! (long)" -#~ msgstr "Přizpůsobit! (dlouho)" - -#~ msgid "Go ahead, tweak tweak tweak!" -#~ msgstr "Pokračujte a přizpůsobujte!" - -#~ msgid "" -#~ "Making the helper Twiddle requires a system administrator to " -#~ "authenticate. Once authenticated, this privilege can be retained " -#~ "indefinitely." -#~ msgstr "" -#~ "Vytvoření pomocníka Twiddle vyžaduje ověření administrátora " -#~ "systému. Jakmile je ověřen, toto oprávnění může být zachováno natrvalo." - -#~ msgid "" -#~ "Making the helper Punch requires the user to authenticate. Once " -#~ "authenticated, this privilege can be retained for the remainder of the " -#~ "desktop session." -#~ msgstr "" -#~ "Vytvoření pomocníka Punch vyžaduje ověření uživatele. Jakmile je " -#~ "ověřen, toto oprávnění může být zachováno po zbytek sezení." - -#~ msgid "" -#~ "The Toggle action demonstrates the use of PolicyKit to drive a " -#~ "GtkToggleButton; it's an intuitive way to ask users to give up " -#~ "authorizations when they are done with them. E.g. the button is 'pressed " -#~ "in' exactlywhen the authorization is held. Toggling the button means " -#~ "obtaining resp. revoking the authorization in question." -#~ msgstr "" -#~ "Akce Přepnout ukazuje použití PolicyKit při ovládání " -#~ "GtkToggleButton, je to intuitivní způsob požádání uživatele o zřeknutí se " -#~ "oprávnění, která už nepotřebuje. Např. tlačítko je \"stlačeno\" přesně ve " -#~ "chvíli, kdy už jsou oprávnění vlastněna. Přepnutí tlačítka znamená " -#~ "získání, popř. zrušení příslušného oprávnění." - -#~ msgid "" -#~ "Tip: try editing /etc/PolicyKit/Policy.conf and see the proxy widgets " -#~ "update in real-time.." -#~ msgstr "" -#~ "Tip: zkuste upravit /etc/PolicyKit/Policy.conf a podívat se na " -#~ "aktualizaci grafických pomůcek proxy v reálném čase.." - -#~ msgid "Jump" -#~ msgstr "Přeskočit" - -#~ msgid "Toggle" -#~ msgstr "Přepnout" - -#~ msgid "Authenticating..." -#~ msgstr "Ověřuje se..." - -#~ msgid "Don't exit after 30 seconds of inactivity" -#~ msgstr "Neukončujte po 30 sekundách nečinnosti" - -#~ msgid "PolicyKit GNOME session daemon" -#~ msgstr "Démon sezení PolicyKit GNOME" - -#~ msgid "Starting PolicyKit GNOME session daemon version %s" -#~ msgstr "Spouští se démon sezení PolicyKit GNOME verze %s" - -#~ msgid "_Remember authorization for this session" -#~ msgstr "_Pamatovat si oprávnění pro toto sezení" - -#~ msgid "_Remember authorization" -#~ msgstr "_Pamatovat si oprávnění" - -#~ msgid "For this _session only" -#~ msgstr "Jen pro toto _sezení" - -#~ msgid "Application:" -#~ msgstr "Aplikace:" - -#~ msgid "(unknown" -#~ msgstr "(neznámý" - -#~ msgid "_Password for root:" -#~ msgstr "_Heslo root:" - -#~ msgid "_Password or swipe finger for %s:" -#~ msgstr "_Heslo nebo otisk prstu pro %s:" - -#~ msgid "_Password or swipe finger for root:" -#~ msgstr "_Heslo nebo otisk prstu pro root:" - -#~ msgid "_Password or swipe finger:" -#~ msgstr "_Heslo nebo otisk prstu:" - -#~ msgid "No" -#~ msgstr "Ne" - -#~ msgid "Admin Authentication (one shot)" -#~ msgstr "Administrátorské ověření (jednorázové)" - -#~ msgid "Admin Authentication (keep session)" -#~ msgstr "Administrátorské ověření (jen pro toto sezení)" - -#~ msgid "Admin Authentication (keep indefinitely)" -#~ msgstr "Administrátorské ověření (zachovat natrvalo)" - -#~ msgid "Authentication (one shot)" -#~ msgstr "Ověření (jednorázové)" - -#~ msgid "Authentication (keep session)" -#~ msgstr "Ověření (jen pro toto sezení)" - -#~ msgid "Authentication (keep indefinitely)" -#~ msgstr "Ověření (zachovat natrvalo)" - -#~ msgid "Yes" -#~ msgstr "Ano" - -#~ msgid ", " -#~ msgstr ", " - -#~ msgid "Must be on console" -#~ msgstr "Musí být v konzole" - -#~ msgid "Must be in active session" -#~ msgstr "Musí být v aktivním sezení" - -#~ msgid "Must be program %s" -#~ msgstr "Jen pokud jde o program %s" - -#~ msgid "Must be SELinux Context %s" -#~ msgstr "Jen pokud jde o kontext SELinux %s" - -#~ msgid "A moment ago" -#~ msgstr "Před chvílí" - -#~ msgid "1 minute ago" -#~ msgstr "Před 1 min" - -#~ msgid "%d minutes ago" -#~ msgstr "Před %d min" - -#~ msgid "1 hour ago" -#~ msgstr "Před 1 hodinou" - -#~ msgid "%d hours ago" -#~ msgstr "Před %d hod." - -#~ msgid "1 day ago" -#~ msgstr "Před 1 dnem" - -#~ msgid "%d days ago" -#~ msgstr "Před %d dny" - -#~ msgid "Auth as %s (uid %d)" -#~ msgstr "Ověření jako %s (uid %d)" - -#~ msgid "Auth as uid %d" -#~ msgstr "Ověření jako uid %d" - -#~ msgid "Blocked by %s (uid %d)" -#~ msgstr "Blokováno od %s (uid %d)" - -#~ msgid "Blocked by uid %d" -#~ msgstr "Blokováno od uid %d" - -#~ msgid "Granted by %s (uid %d)" -#~ msgstr "Uděleno od %s (uid %d)" - -#~ msgid "Granted by uid %d" -#~ msgstr "Uděleno od uid %d" - -#~ msgid "Single shot pid %d (%s)" -#~ msgstr "Jednorázové pid %d (%s)" - -#~ msgid "pid %d (%s)" -#~ msgstr "pid %d (%s)" - -#~ msgid "This session" -#~ msgstr "Toto sezení" - -#~ msgid "Always" -#~ msgstr "Vždy" - -#~ msgid "None" -#~ msgstr "Žádné" - -#~ msgid "Grant Negative Authorization" -#~ msgstr "Udělit záporné oprávnění" - -#~ msgid "Grant Authorization" -#~ msgstr "Udělit oprávnění" - -#~ msgid "" -#~ "Granting a negative authorization for the %s action " -#~ "requires more information" -#~ msgstr "" -#~ "K udělení záporného oprávnění pro akci %s je potřeba více " -#~ "informací" - -#~ msgid "" -#~ "Granting an authorization for the %s action requires more " -#~ "information" -#~ msgstr "" -#~ "K udělení oprávnění pro akci %s je potřeba více informací" - -#~ msgid "" -#~ "Select the user to block for the action and, optionally, any constraints " -#~ "on the negative authorization that you are about to grant." -#~ msgstr "" -#~ "Vyberte uživatele, kterého chcete blokovat pro akci a volitelně nějaká " -#~ "omezení při záporném oprávnění, které se chystáte udělit." - -#~ msgid "" -#~ "Select the beneficiary and, optionally, how to constrain the " -#~ "authorization that you are about to grant." -#~ msgstr "" -#~ "Vyberte příjemce a volitelně způsob omezení oprávnění, které se chystáte " -#~ "udělit." - -#~ msgid "Beneficiary" -#~ msgstr "Příjemce" - -#~ msgid "Select the user that will receive the negative authorization." -#~ msgstr "Vyberte uživatele, který dostane záporné oprávnění." - -#~ msgid "Select the user that will receive the authorization." -#~ msgstr "Vyberte uživatele, který dostane oprávnění." - -#~ msgid "_Show system users" -#~ msgstr "_Zobrazit uživatele systému" - -#~ msgid "Constraints" -#~ msgstr "Omezení" - -#~ msgid "" -#~ "Constraints limits the authorization such that it only applies under " -#~ "certain circumstances." -#~ msgstr "" -#~ "Hranice omezení oprávnění taková, že se použije jen za určitých okolností." - -#~ msgid "_None" -#~ msgstr "Žád_né" - -#~ msgid "Must be _in active session" -#~ msgstr "Musí být v akt_ivním sezení" - -#~ msgid "Must be on _local console" -#~ msgstr "Musí být v místní konzo_le" - -#~ msgid "Must be in _active session on local console" -#~ msgstr "Musí být v _aktivním sezení v místní konzole" - -#~ msgid "_Block..." -#~ msgstr "_Blokovat..." - -#~ msgid "_Grant..." -#~ msgstr "_Udělit..." - -#~ msgid "Edit Implicit Authorizations" -#~ msgstr "Upravte implicitní oprávnění" - -#~ msgid "Choose new implicit authorizations" -#~ msgstr "Zvolte nová implicitní oprávnění" - -#~ msgid "" -#~ "Implicit authorizations are authorizations that are granted automatically " -#~ "to users under certain circumstances. Choose what is required for the " -#~ "action %s." -#~ msgstr "" -#~ "Implicitní oprávnění jsou oprávnění, která jsou uživatelům automaticky " -#~ "udělena za určitých okolností. Zvolte, co je vyžadováno pro akci %s." - -#~ msgid "Anyone:" -#~ msgstr "Kdokoliv:" - -#~ msgid "Console:" -#~ msgstr "Konzola:" - -#~ msgid "Active Console:" -#~ msgstr "Aktivní konzola:" - -#~ msgid "_Modify..." -#~ msgstr "_Změnit..." - -#~ msgid "Action" -#~ msgstr "Akce" - -#~ msgid "Description:" -#~ msgstr "Popis:" - -#~ msgid "Vendor:" -#~ msgstr "Dodavatel:" - -#~ msgid "Implicit Authorizations" -#~ msgstr "Implicitní oprávnění" - -#~ msgid "" -#~ "Implicit authorizations are authorizations automatically given to users " -#~ "based on certain criteria such as if they are on the local console." -#~ msgstr "" -#~ "Implicitní oprávnění jsou oprávnění, která jsou uživatelům automaticky " -#~ "udělena na základě určitých kritérií, jako např. zda jsou v místní " -#~ "konzole." - -#~ msgid "_Edit..." -#~ msgstr "U_pravit..." - -#~ msgid "Revert To _Defaults..." -#~ msgstr "Obnovit výchozí ho_dnoty..." - -#~ msgid "Explicit Authorizations" -#~ msgstr "Explicitní oprávnění" - -#~ msgid "" -#~ "This list displays authorizations that are either obtained through " -#~ "authentication or specifically given to the entity in question. Blocked " -#~ "authorizations are marked with a STOP sign." -#~ msgstr "" -#~ "Tento seznam zobrazuje oprávnění, která jsou buď získána přes ověření, " -#~ "nebo specificky udělena příslušnému subjektu. Blokovaná oprávnění jsou " -#~ "označena znakem STOP." - -#~ msgid "Entity" -#~ msgstr "Subjekt" - -#~ msgid "Scope" -#~ msgstr "Rozsah" - -#~ msgid "How" -#~ msgstr "Jak" - -#~ msgid "Constraints" -#~ msgstr "Omezení" - -#~ msgid "_Revoke" -#~ msgstr "_Zrušit" - -#~ msgid "_Revoke..." -#~ msgstr "_Zrušit..." - -#~ msgid "_Show authorizations from all users..." -#~ msgstr "_Zobrazit oprávnění všech uživatelů..." - -#~ msgid "_Show authorizations from all users" -#~ msgstr "_Zobrazit oprávnění všech uživatelů" - -#~ msgid "Select an action" -#~ msgstr "Vyberte akci" +msgid "Authentication dialog was dismissed by the user" +msgstr "Dialogové okno ověření bylo uživatelem odmítnuto" \ No newline at end of file diff --git a/po/de.po b/po/de.po index bd76243..b46a39d 100644 --- a/po/de.po +++ b/po/de.po @@ -6,7 +6,7 @@ # # authenticate - # # # Denis Washington , 2008. -# Mario Blättermann , 2009. +# Mario Blättermann , 2009, 2011. # Christian Kirbach , 2009. # Paul Seyfert , 2011. # @@ -15,9 +15,9 @@ "Project-Id-Version: policykit-gnome\n" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" "product=policykit-gnome&keywords=I18N+L10N&component=general\n" -"POT-Creation-Date: 2011-04-02 11:22+0000\n" -"PO-Revision-Date: 2011-04-03 12:45+0200\n" -"Last-Translator: Paul Seyfert \n" +"POT-Creation-Date: 2011-08-30 15:24+0000\n" +"PO-Revision-Date: 2011-09-05 19:46+0100\n" +"Last-Translator: Mario Blättermann \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -134,8 +134,8 @@ #: ../polkitgtk/polkitlockbutton.c:610 msgid "" -"To prevent users without administrative privileges from making changes, " -"click the lock." +"To prevent users without administrative privileges from making changes, click " +"the lock." msgstr "" "Klicken Sie auf das Schloss, um zu verhindern, dass Benutzer ohne " "administrative Rechte Änderungen durchführen können." @@ -145,8 +145,8 @@ "The text to display when the user cannot obtain authorization through " "authentication." msgstr "" -"Der Anzeigetext, wenn ein Benutzer keine Legitimation durch " -"Authentifizierung erlangen kann." +"Der Anzeigetext, wenn ein Benutzer keine Legitimation durch Authentifizierung " +"erlangen kann." #: ../polkitgtk/polkitlockbutton.c:627 msgid "Not authorized to make changes" @@ -247,8 +247,8 @@ msgstr "Legitimation gescheitert" #: ../src/polkitgnomelistener.c:164 -msgid "Authentation dialog was dismissed by the user" -msgstr "Authentifizierungsdialog wurde vom Nutzer geschlossen" +msgid "Authentication dialog was dismissed by the user" +msgstr "Legitimierungsdialog wurde vom Nutzer geschlossen" #~ msgid "" #~ "This button is locked down so only users with administrative privileges " @@ -272,10 +272,10 @@ #~ msgid "" #~ "If set to true, the authentication dialog from PolicyKit-gnome will grab " -#~ "the keyboard, so that you will not be able to type in other programs " -#~ "while the dialog is active. Use this if your window manager does not " -#~ "focus the authentication dialog automatically, and you want to avoid " -#~ "accidentally typing passwords in other programs." +#~ "the keyboard, so that you will not be able to type in other programs while " +#~ "the dialog is active. Use this if your window manager does not focus the " +#~ "authentication dialog automatically, and you want to avoid accidentally " +#~ "typing passwords in other programs." #~ msgstr "" #~ "Ist dies auf wahr gesetzt, zieht der Legitimationsdialog Tastatureingaben " #~ "auf sich, sodass es nicht möglich ist, in anderen Programmen zu tippen, " @@ -466,8 +466,8 @@ #~ "Granting a negative authorization for the %s action " #~ "requires more information" #~ msgstr "" -#~ "Das Verweigern des Zugriffs auf die Aktion %s efordert " -#~ "mehr Informationen" +#~ "Das Verweigern des Zugriffs auf die Aktion %s efordert mehr " +#~ "Informationen" #~ msgid "" #~ "Granting an authorization for the %s action requires more " @@ -485,11 +485,11 @@ #~ "gelten sollen." #~ msgid "" -#~ "Select the beneficiary and, optionally, how to constrain the " -#~ "authorization that you are about to grant." -#~ msgstr "" -#~ "Wählen Sie den durch die Zugriffsgewährung Begünstigten und, optional, " -#~ "wie die Gewährung eingeschränkt werden soll." +#~ "Select the beneficiary and, optionally, how to constrain the authorization " +#~ "that you are about to grant." +#~ msgstr "" +#~ "Wählen Sie den durch die Zugriffsgewährung Begünstigten und, optional, wie " +#~ "die Gewährung eingeschränkt werden soll." #~ msgid "Beneficiary" #~ msgstr "Begünstigter:" @@ -544,8 +544,8 @@ #~ "action %s." #~ msgstr "" #~ "Implizite Berechtigungen sind Berechtigungen, die unter bestimmten " -#~ "Umständen an alle Benutzer vergeben werden. Wählen Sie, was für die " -#~ "Aktion %s nötig ist." +#~ "Umständen an alle Benutzer vergeben werden. Wählen Sie, was für die Aktion " +#~ "%s nötig ist." #~ msgid "Anyone:" #~ msgstr "Jeder:" @@ -575,9 +575,9 @@ #~ "Implicit authorizations are authorizations automatically given to users " #~ "based on certain criteria such as if they are on the local console." #~ msgstr "" -#~ "Implizite Berechtigungen sind Berechtigungen, die basierend auf " -#~ "bestimmten Kriterien automatisch an Benutzer vergeben werden, " -#~ "beispielsweise ob sie an der lokalen Konsole sind." +#~ "Implizite Berechtigungen sind Berechtigungen, die basierend auf bestimmten " +#~ "Kriterien automatisch an Benutzer vergeben werden, beispielsweise ob sie " +#~ "an der lokalen Konsole sind." #~ msgid "_Edit..." #~ msgstr "_Bearbeiten …" diff --git a/po/es.po b/po/es.po index 1a8d26d..fd28eb8 100644 --- a/po/es.po +++ b/po/es.po @@ -11,9 +11,9 @@ msgstr "" "Project-Id-Version: policykit-gnome.HEAD\n" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" -"product=policykit-gnome&component=general\n" -"POT-Creation-Date: 2011-03-03 18:50+0000\n" -"PO-Revision-Date: 2011-03-04 10:08+0100\n" +"product=policykit-gnome&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2011-08-30 15:24+0000\n" +"PO-Revision-Date: 2011-08-30 17:34+0200\n" "Last-Translator: Daniel Mustieles \n" "Language-Team: Español \n" "MIME-Version: 1.0\n" @@ -245,7 +245,8 @@ msgstr "Fallo de autenticación" #: ../src/polkitgnomelistener.c:164 -msgid "Authentation dialog was dismissed by the user" +#| msgid "Authentation dialog was dismissed by the user" +msgid "Authentication dialog was dismissed by the user" msgstr "El usuario rechazó el diálogo de autenticación" #~ msgid "" diff --git a/po/eu.po b/po/eu.po index 7cf0840..838b4b3 100644 --- a/po/eu.po +++ b/po/eu.po @@ -2,171 +2,21 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # -# Iñaki Larrañaga Murgoitio , 2009. +# Iñaki Larrañaga Murgoitio , 2009, 2011. msgid "" msgstr "" "Project-Id-Version: eu\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-09-14 10:20+0200\n" -"PO-Revision-Date: 2009-09-14 10:33+0200\n" +"POT-Creation-Date: 2011-09-26 16:02+0200\n" +"PO-Revision-Date: 2011-09-26 16:01+0200\n" "Last-Translator: Iñaki Larrañaga Murgoitio \n" "Language-Team: Basque \n" +"Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: KBabel 1.11.4\n" +"X-Generator: Lokalize 1.0\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: ../polkitgtk/polkitlockbutton.c:460 -msgid "Action Identifier" -msgstr "Ekintzaren identifikatzailea" - -#: ../polkitgtk/polkitlockbutton.c:461 -msgid "The action identifier to use for the button" -msgstr "Ekintzaren identifikatzailea botoian erabiltzeko" - -#: ../polkitgtk/polkitlockbutton.c:477 -msgid "Is Authorized" -msgstr "Baimenduta dago" - -#: ../polkitgtk/polkitlockbutton.c:478 -msgid "Whether the process is authorized" -msgstr "Prozesua baimenduta dagoen edo ez" - -#: ../polkitgtk/polkitlockbutton.c:493 -msgid "Is Visible" -msgstr "Ikusgai dago" - -#: ../polkitgtk/polkitlockbutton.c:494 -msgid "Whether the widget is visible" -msgstr "Trepeta ikusgai dagoen edo ez" - -#: ../polkitgtk/polkitlockbutton.c:509 -msgid "Can Obtain" -msgstr "Lor daiteke" - -#: ../polkitgtk/polkitlockbutton.c:510 -msgid "Whether authorization can be obtained" -msgstr "Baimena lor daitekeen edo ez" - -#: ../polkitgtk/polkitlockbutton.c:525 ../polkitgtk/polkitlockbutton.c:627 -msgid "Unlock Text" -msgstr "Desblokeatze-testua" - -#: ../polkitgtk/polkitlockbutton.c:526 -msgid "The text to display when prompting the user to unlock." -msgstr "Bistaratuko den testua erabitzaileari desblokeatzeko galdetzean." - -#: ../polkitgtk/polkitlockbutton.c:527 -msgid "Click to make changes" -msgstr "Egin klik aldaketak burutzeko" - -#: ../polkitgtk/polkitlockbutton.c:542 ../polkitgtk/polkitlockbutton.c:644 -msgid "Unlock Tooltip" -msgstr "Desblokeatze-argibidea" - -#: ../polkitgtk/polkitlockbutton.c:543 -msgid "The tooltip to display when prompting the user to unlock." -msgstr "Bistaratuko den argibidea erabitzaileari desblokeatzeko galdetzean." - -#: ../polkitgtk/polkitlockbutton.c:544 -msgid "Authentication is needed to make changes." -msgstr "Autentifitzea behar da aldaketak egiteko." - -#: ../polkitgtk/polkitlockbutton.c:559 -msgid "Lock Text" -msgstr "Blokeatze-testua" - -#: ../polkitgtk/polkitlockbutton.c:560 -msgid "The text to display when prompting the user to lock." -msgstr "Bistaratuko den testua erabitzaileari blokeatzeko galdetzean." - -#: ../polkitgtk/polkitlockbutton.c:561 -msgid "Click to prevent changes" -msgstr "Egin klik aldaketak galarazteko" - -#: ../polkitgtk/polkitlockbutton.c:576 -msgid "Lock Tooltip" -msgstr "Blokeatze-argibidea" - -#: ../polkitgtk/polkitlockbutton.c:577 -msgid "The tooltip to display when prompting the user to lock." -msgstr "Bistaratuko den argibidea erabitzaileari blokeatzeko galdetzean." - -#: ../polkitgtk/polkitlockbutton.c:578 -msgid "To prevent further changes, click the lock." -msgstr "Aldaketa gehiago saihesteko, egin klik blokeoan." - -#: ../polkitgtk/polkitlockbutton.c:593 -msgid "Lock Down Text" -msgstr "Blokeatze-testua" - -#: ../polkitgtk/polkitlockbutton.c:594 -msgid "" -"The text to display when prompting the user to lock down the action for all " -"users." -msgstr "Bistaratuko den testua erabiltzaile guztientzako ekintza blokeatzeko galdetzean erabitzaileari." - -#: ../polkitgtk/polkitlockbutton.c:595 -msgid "Click to lock down" -msgstr "Egin klik blokeatzeko" - -#: ../polkitgtk/polkitlockbutton.c:610 -msgid "Lock Down Tooltip" -msgstr "Blokeatze-argibidea" - -#: ../polkitgtk/polkitlockbutton.c:611 -msgid "" -"The tooltip to display when prompting the user to lock down the action for " -"all users." -msgstr "Bistaratuko den testua erabiltzaile guztientzako ekintza blokeatzeko galdetzean erabitzaileari." - -#: ../polkitgtk/polkitlockbutton.c:612 -msgid "" -"To prevent users without administrative privileges from making changes, " -"click the lock." -msgstr "" -"Egin klik blokeoan administratzailearen pribilegiorik ez dituzten erabiltzaileek aldaketak " -"egitea saihesteko." - -#: ../polkitgtk/polkitlockbutton.c:628 -msgid "" -"The text to display when the user cannot obtain authorization through " -"authentication." -msgstr "" -"Bistaratuko den testua erabiltzaileak ezin duenean baimenik lortu " -"autentifikazioaren bidez." - -#: ../polkitgtk/polkitlockbutton.c:629 -msgid "Not authorized to make changes" -msgstr "Baimenik ez aldaketak egiteko" - -#: ../polkitgtk/polkitlockbutton.c:645 -msgid "" -"The tooltip to display when the user cannot obtain authorization through " -"authentication." -msgstr "" -"Bistaratuko den argibidea erabiltzaileak ezin duenean baimenik lortu " -"autentifikazioaren bidez." - -#: ../polkitgtk/polkitlockbutton.c:646 -msgid "System policy prevents changes. Contact your system administator." -msgstr "Sistemako arauek aldaketa saihesten dituzte. Jar zaitez administratzailearekin harremanetan." - -#. Translators: this string is appended to the tooltip if the action is -#. * currently locked down -#: ../polkitgtk/polkitlockbutton.c:767 -msgid "" -"This button is locked down so only users with administrative privileges can " -"unlock it. Right-click the button to remove the lock down." -msgstr "" -"Botoi hau blokeatuta dago, eta administratzailearen pribilegioak dituzten " -"erabiltzaileek soilik desblokea dezakete. Egin klik saguaren eskuineko botoiarekin " -"blokeoa kentzeko." - -#: ../src/main.c:128 -msgid "Click the icon to drop all elevated privileges" -msgstr "Egin klik ikonoan lortutako lehentasun guztiak jaregiteko" #: ../src/polkitgnomeauthenticationdialog.c:159 msgid "Select user..." @@ -177,11 +27,11 @@ msgid "%s (%s)" msgstr "%s (%s)" -#: ../src/polkitgnomeauthenticationdialog.c:529 +#: ../src/polkitgnomeauthenticationdialog.c:537 msgid "_Authenticate" msgstr "_Autentifikatu" -#: ../src/polkitgnomeauthenticationdialog.c:566 +#: ../src/polkitgnomeauthenticationdialog.c:576 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as one of the users below is required to perform this action." @@ -190,7 +40,7 @@ "Ekintza hau lantzeko, azpiko erabiltzaileetako bat bezala autentifikatu " "behar da." -#: ../src/polkitgnomeauthenticationdialog.c:574 +#: ../src/polkitgnomeauthenticationdialog.c:584 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication is required to perform this action." @@ -198,7 +48,7 @@ "Aplikazio bat baimena behar duen ekintza bat lantzen saiatzen ari da. " "Ekintza hau lantzeko, autentifikatu egin behar da." -#: ../src/polkitgnomeauthenticationdialog.c:580 +#: ../src/polkitgnomeauthenticationdialog.c:590 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as the super user is required to perform this action." @@ -206,48 +56,173 @@ "Aplikazio bat baimena behar duen ekintza bat lantzen saiatzen ari da. " "Ekintza hau lantzeko, supererabiltzaile gisa autentifikatu behar da." -#: ../src/polkitgnomeauthenticationdialog.c:615 -#: ../src/polkitgnomeauthenticator.c:289 +#: ../src/polkitgnomeauthenticationdialog.c:625 +#: ../src/polkitgnomeauthenticator.c:300 msgid "_Password:" msgstr "_Pasahitza:" #. Details -#: ../src/polkitgnomeauthenticationdialog.c:633 +#: ../src/polkitgnomeauthenticationdialog.c:643 msgid "_Details" msgstr "_Xehetasunak" -#: ../src/polkitgnomeauthenticationdialog.c:686 +#: ../src/polkitgnomeauthenticationdialog.c:699 msgid "Action:" msgstr "Ekintza:" -#: ../src/polkitgnomeauthenticationdialog.c:689 +#: ../src/polkitgnomeauthenticationdialog.c:702 #, c-format msgid "Click to edit %s" msgstr "Egin klik %s editatzeko" -#: ../src/polkitgnomeauthenticationdialog.c:703 +#: ../src/polkitgnomeauthenticationdialog.c:716 msgid "Vendor:" msgstr "Hornitzailea:" -#: ../src/polkitgnomeauthenticationdialog.c:705 +#: ../src/polkitgnomeauthenticationdialog.c:718 #, c-format msgid "Click to open %s" msgstr "Egin klik %s irekitzeko" -#: ../src/polkitgnomeauthenticationdialog.c:868 +#: ../src/polkitgnomeauthenticationdialog.c:881 msgid "Authenticate" msgstr "Autentifikatu" -#: ../src/polkitgnomeauthenticator.c:285 +#: ../src/polkitgnomeauthenticator.c:296 #, c-format msgid "_Password for %s:" msgstr "%s(r)en _pasahitza:" -#: ../src/polkitgnomeauthenticator.c:445 +#: ../src/polkitgnomeauthenticator.c:456 msgid "Authentication Failure" msgstr "Autentifikazioak huts egin du" -#: ../src/polkit-gnome-authentication-agent-1.desktop.in.in.h:1 -msgid "PolicyKit Authentication Agent" -msgstr "PolicyKit autentifikatzeko agentea" - +#: ../src/polkitgnomelistener.c:164 +msgid "Authentication dialog was dismissed by the user" +msgstr "Erabiltzaileak autentifikatzeko elkarrizketa-koadroa itxi du" + +#~ msgid "Action Identifier" +#~ msgstr "Ekintzaren identifikatzailea" + +#~ msgid "The action identifier to use for the button" +#~ msgstr "Ekintzaren identifikatzailea botoian erabiltzeko" + +#~ msgid "Is Authorized" +#~ msgstr "Baimenduta dago" + +#~ msgid "Whether the process is authorized" +#~ msgstr "Prozesua baimenduta dagoen edo ez" + +#~ msgid "Is Visible" +#~ msgstr "Ikusgai dago" + +#~ msgid "Whether the widget is visible" +#~ msgstr "Trepeta ikusgai dagoen edo ez" + +#~ msgid "Can Obtain" +#~ msgstr "Lor daiteke" + +#~ msgid "Whether authorization can be obtained" +#~ msgstr "Baimena lor daitekeen edo ez" + +#~ msgid "Unlock Text" +#~ msgstr "Desblokeatze-testua" + +#~ msgid "The text to display when prompting the user to unlock." +#~ msgstr "Bistaratuko den testua erabitzaileari desblokeatzeko galdetzean." + +#~ msgid "Click to make changes" +#~ msgstr "Egin klik aldaketak burutzeko" + +#~ msgid "Unlock Tooltip" +#~ msgstr "Desblokeatze-argibidea" + +#~ msgid "The tooltip to display when prompting the user to unlock." +#~ msgstr "Bistaratuko den argibidea erabitzaileari desblokeatzeko galdetzean." + +#~ msgid "Authentication is needed to make changes." +#~ msgstr "Autentifitzea behar da aldaketak egiteko." + +#~ msgid "Lock Text" +#~ msgstr "Blokeatze-testua" + +#~ msgid "The text to display when prompting the user to lock." +#~ msgstr "Bistaratuko den testua erabitzaileari blokeatzeko galdetzean." + +#~ msgid "Click to prevent changes" +#~ msgstr "Egin klik aldaketak galarazteko" + +#~ msgid "Lock Tooltip" +#~ msgstr "Blokeatze-argibidea" + +#~ msgid "The tooltip to display when prompting the user to lock." +#~ msgstr "Bistaratuko den argibidea erabitzaileari blokeatzeko galdetzean." + +#~ msgid "To prevent further changes, click the lock." +#~ msgstr "Aldaketa gehiago saihesteko, egin klik blokeoan." + +#~ msgid "Lock Down Text" +#~ msgstr "Blokeatze-testua" + +#~ msgid "" +#~ "The text to display when prompting the user to lock down the action for " +#~ "all users." +#~ msgstr "" +#~ "Bistaratuko den testua erabiltzaile guztientzako ekintza blokeatzeko " +#~ "galdetzean erabitzaileari." + +#~ msgid "Click to lock down" +#~ msgstr "Egin klik blokeatzeko" + +#~ msgid "Lock Down Tooltip" +#~ msgstr "Blokeatze-argibidea" + +#~ msgid "" +#~ "The tooltip to display when prompting the user to lock down the action " +#~ "for all users." +#~ msgstr "" +#~ "Bistaratuko den testua erabiltzaile guztientzako ekintza blokeatzeko " +#~ "galdetzean erabitzaileari." + +#~ msgid "" +#~ "To prevent users without administrative privileges from making changes, " +#~ "click the lock." +#~ msgstr "" +#~ "Egin klik blokeoan administratzailearen pribilegiorik ez dituzten " +#~ "erabiltzaileek aldaketak egitea saihesteko." + +#~ msgid "" +#~ "The text to display when the user cannot obtain authorization through " +#~ "authentication." +#~ msgstr "" +#~ "Bistaratuko den testua erabiltzaileak ezin duenean baimenik lortu " +#~ "autentifikazioaren bidez." + +#~ msgid "Not authorized to make changes" +#~ msgstr "Baimenik ez aldaketak egiteko" + +#~ msgid "" +#~ "The tooltip to display when the user cannot obtain authorization through " +#~ "authentication." +#~ msgstr "" +#~ "Bistaratuko den argibidea erabiltzaileak ezin duenean baimenik lortu " +#~ "autentifikazioaren bidez." + +#~ msgid "System policy prevents changes. Contact your system administator." +#~ msgstr "" +#~ "Sistemako arauek aldaketa saihesten dituzte. Jar zaitez " +#~ "administratzailearekin harremanetan." + +#~ msgid "" +#~ "This button is locked down so only users with administrative privileges " +#~ "can unlock it. Right-click the button to remove the lock down." +#~ msgstr "" +#~ "Botoi hau blokeatuta dago, eta administratzailearen pribilegioak dituzten " +#~ "erabiltzaileek soilik desblokea dezakete. Egin klik saguaren eskuineko " +#~ "botoiarekin blokeoa kentzeko." + +#~ msgid "Click the icon to drop all elevated privileges" +#~ msgstr "Egin klik ikonoan lortutako lehentasun guztiak jaregiteko" + +#~ msgid "PolicyKit Authentication Agent" +#~ msgstr "PolicyKit autentifikatzeko agentea" diff --git a/po/gl.po b/po/gl.po index a5fdde8..b1bf7d8 100644 --- a/po/gl.po +++ b/po/gl.po @@ -1,106 +1,107 @@ # Galician translation for policykit-gnome. # Copyright (C) 2009 policykit-gnome's COPYRIGHT HOLDER # This file is distributed under the same license as the policykit-gnome package. -# Fran Diéguez , 2009. +# Fran Diéguez , 2009, 2011. # msgid "" msgstr "" "Project-Id-Version: policykit-gnome master\n" -"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" -"product=policykit-gnome&component=general\n" -"POT-Creation-Date: 2010-02-27 12:57+0000\n" -"PO-Revision-Date: 2009-12-28 23:36+0100\n" -"Last-Translator: Fran Diéguez \n" -"Language-Team: Galician \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-08-28 17:41+0200\n" +"PO-Revision-Date: 2011-08-28 17:41+0200\n" +"Last-Translator: Fran Diéguez \n" +"Language-Team: Galician \n" +"Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" - -#: ../polkitgtk/polkitlockbutton.c:460 +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: ../polkitgtk/polkitlockbutton.c:458 msgid "Action Identifier" msgstr "Identificador de acción" -#: ../polkitgtk/polkitlockbutton.c:461 +#: ../polkitgtk/polkitlockbutton.c:459 msgid "The action identifier to use for the button" msgstr "O identificador de acción a empregar para este botón" -#: ../polkitgtk/polkitlockbutton.c:477 +#: ../polkitgtk/polkitlockbutton.c:475 msgid "Is Authorized" msgstr "Está autorizado" -#: ../polkitgtk/polkitlockbutton.c:478 +#: ../polkitgtk/polkitlockbutton.c:476 msgid "Whether the process is authorized" msgstr "Indica se o proceso está autorizado" -#: ../polkitgtk/polkitlockbutton.c:493 +#: ../polkitgtk/polkitlockbutton.c:491 msgid "Is Visible" msgstr "É visíbel" -#: ../polkitgtk/polkitlockbutton.c:494 +#: ../polkitgtk/polkitlockbutton.c:492 msgid "Whether the widget is visible" msgstr "Indica se o widget é visíbel" -#: ../polkitgtk/polkitlockbutton.c:509 +#: ../polkitgtk/polkitlockbutton.c:507 msgid "Can Obtain" msgstr "Pode obterse" -#: ../polkitgtk/polkitlockbutton.c:510 +#: ../polkitgtk/polkitlockbutton.c:508 msgid "Whether authorization can be obtained" msgstr "Indica se se pode obter a autorización" -#: ../polkitgtk/polkitlockbutton.c:525 ../polkitgtk/polkitlockbutton.c:627 +#: ../polkitgtk/polkitlockbutton.c:523 ../polkitgtk/polkitlockbutton.c:625 msgid "Unlock Text" msgstr "Desbloquear texto" -#: ../polkitgtk/polkitlockbutton.c:526 +#: ../polkitgtk/polkitlockbutton.c:524 msgid "The text to display when prompting the user to unlock." msgstr "O texto a mostrar cando se pregunte ao usuario para desbloquear." -#: ../polkitgtk/polkitlockbutton.c:527 +#: ../polkitgtk/polkitlockbutton.c:525 msgid "Click to make changes" msgstr "Faga clic para facer cambios" -#: ../polkitgtk/polkitlockbutton.c:542 ../polkitgtk/polkitlockbutton.c:644 +#: ../polkitgtk/polkitlockbutton.c:540 ../polkitgtk/polkitlockbutton.c:642 msgid "Unlock Tooltip" msgstr "Desbloquear suxestión" -#: ../polkitgtk/polkitlockbutton.c:543 +#: ../polkitgtk/polkitlockbutton.c:541 msgid "The tooltip to display when prompting the user to unlock." msgstr "A suxestión a mostrar cando se pregunte ao usuario para desbloquear." -#: ../polkitgtk/polkitlockbutton.c:544 +#: ../polkitgtk/polkitlockbutton.c:542 msgid "Authentication is needed to make changes." msgstr "Requírese autenticarse para facer cambios." -#: ../polkitgtk/polkitlockbutton.c:559 +#: ../polkitgtk/polkitlockbutton.c:557 msgid "Lock Text" msgstr "Texto de bloqueo" -#: ../polkitgtk/polkitlockbutton.c:560 +#: ../polkitgtk/polkitlockbutton.c:558 msgid "The text to display when prompting the user to lock." msgstr "O texto a mostrar cando se pregunte ao usuario para bloquear." -#: ../polkitgtk/polkitlockbutton.c:561 +#: ../polkitgtk/polkitlockbutton.c:559 msgid "Click to prevent changes" msgstr "Faga clic para evitar os cambios." -#: ../polkitgtk/polkitlockbutton.c:576 +#: ../polkitgtk/polkitlockbutton.c:574 msgid "Lock Tooltip" msgstr "Suxestión de bloqueo" -#: ../polkitgtk/polkitlockbutton.c:577 +#: ../polkitgtk/polkitlockbutton.c:575 msgid "The tooltip to display when prompting the user to lock." msgstr "A suxestión a mostrar cando se pregunte ao usuario para bloquear." -#: ../polkitgtk/polkitlockbutton.c:578 +#: ../polkitgtk/polkitlockbutton.c:576 msgid "To prevent further changes, click the lock." msgstr "Para previr os seguintes cambios, prema en bloquear." -#: ../polkitgtk/polkitlockbutton.c:593 +#: ../polkitgtk/polkitlockbutton.c:591 msgid "Lock Down Text" msgstr "Suxestión de bloqueo" -#: ../polkitgtk/polkitlockbutton.c:594 +#: ../polkitgtk/polkitlockbutton.c:592 msgid "" "The text to display when prompting the user to lock down the action for all " "users." @@ -108,15 +109,15 @@ "O texto a mostrar cando se pregunte ao usuario para bloquear para todos os " "usuarios." -#: ../polkitgtk/polkitlockbutton.c:595 +#: ../polkitgtk/polkitlockbutton.c:593 msgid "Click to lock down" msgstr "Faga clic para bloquear" -#: ../polkitgtk/polkitlockbutton.c:610 +#: ../polkitgtk/polkitlockbutton.c:608 msgid "Lock Down Tooltip" msgstr "Suxestión de bloqueo" -#: ../polkitgtk/polkitlockbutton.c:611 +#: ../polkitgtk/polkitlockbutton.c:609 msgid "" "The tooltip to display when prompting the user to lock down the action for " "all users." @@ -124,7 +125,7 @@ "A suxestión a mostrar cando se pregunte ao usuario para bloquear unha acción " "para todos os usuarios." -#: ../polkitgtk/polkitlockbutton.c:612 +#: ../polkitgtk/polkitlockbutton.c:610 msgid "" "To prevent users without administrative privileges from making changes, " "click the lock." @@ -132,7 +133,7 @@ "Para previr que aos usuarios sen privilexios de administración fagan cambios " "prema en bloquear." -#: ../polkitgtk/polkitlockbutton.c:628 +#: ../polkitgtk/polkitlockbutton.c:626 msgid "" "The text to display when the user cannot obtain authorization through " "authentication." @@ -140,11 +141,11 @@ "O texto a mostarr cando o usuario non poida obter autorización a través da " "autenticación." -#: ../polkitgtk/polkitlockbutton.c:629 +#: ../polkitgtk/polkitlockbutton.c:627 msgid "Not authorized to make changes" msgstr "Non está autorizado a facer cambios" -#: ../polkitgtk/polkitlockbutton.c:645 +#: ../polkitgtk/polkitlockbutton.c:643 msgid "" "The tooltip to display when the user cannot obtain authorization through " "authentication." @@ -152,26 +153,11 @@ "A suxestión a mostrar cando o usuario non poida obter autorización a través " "da autenticación." -#: ../polkitgtk/polkitlockbutton.c:646 +#: ../polkitgtk/polkitlockbutton.c:644 msgid "System policy prevents changes. Contact your system administator." msgstr "" "A política do sistema evita os cambios. Contacte co seu administrador de " "sistemas." - -#. Translators: this string is appended to the tooltip if the action is -#. * currently locked down -#: ../polkitgtk/polkitlockbutton.c:767 -msgid "" -"This button is locked down so only users with administrative privileges can " -"unlock it. Right-click the button to remove the lock down." -msgstr "" -"Este botón esta bloqueado polo que só os usuarios con privilexios de " -"administración poden desbloquealo. Prema co botón dereito no botón para " -"eliminar o bloqueo." - -#: ../src/main.c:128 -msgid "Click the icon to drop all elevated privileges" -msgstr "Faga clic na icona para eliminar todos os privilexios elevados" #: ../src/polkitgnomeauthenticationdialog.c:159 msgid "Select user..." @@ -182,11 +168,11 @@ msgid "%s (%s)" msgstr "%s (%s)" -#: ../src/polkitgnomeauthenticationdialog.c:529 +#: ../src/polkitgnomeauthenticationdialog.c:537 msgid "_Authenticate" msgstr "_Autenticar" -#: ../src/polkitgnomeauthenticationdialog.c:566 +#: ../src/polkitgnomeauthenticationdialog.c:576 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as one of the users below is required to perform this action." @@ -195,7 +181,7 @@ "Requírese a autenticación como un dos usuarios de abaixo para levar a cabo " "esta acción." -#: ../src/polkitgnomeauthenticationdialog.c:574 +#: ../src/polkitgnomeauthenticationdialog.c:584 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication is required to perform this action." @@ -203,7 +189,7 @@ "Un aplicativo tentou levar a cabo unha acción que require privilexios. " "Requírese a autenticación para levar a cabo esta acción." -#: ../src/polkitgnomeauthenticationdialog.c:580 +#: ../src/polkitgnomeauthenticationdialog.c:590 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as the super user is required to perform this action." @@ -211,47 +197,61 @@ "Un aplicativo tentou levar a cabo unha acción que require privilexios. " "Requírese a autenticación como un superusuario para levar a cabo esta acción." -#: ../src/polkitgnomeauthenticationdialog.c:615 -#: ../src/polkitgnomeauthenticator.c:289 +#: ../src/polkitgnomeauthenticationdialog.c:625 +#: ../src/polkitgnomeauthenticator.c:301 msgid "_Password:" msgstr "_Contrasinal:" #. Details -#: ../src/polkitgnomeauthenticationdialog.c:633 +#: ../src/polkitgnomeauthenticationdialog.c:643 msgid "_Details" msgstr "_Detalles" -#: ../src/polkitgnomeauthenticationdialog.c:686 +#: ../src/polkitgnomeauthenticationdialog.c:699 msgid "Action:" msgstr "Acción:" -#: ../src/polkitgnomeauthenticationdialog.c:689 +#: ../src/polkitgnomeauthenticationdialog.c:702 #, c-format msgid "Click to edit %s" msgstr "Faga clic para editar %s" -#: ../src/polkitgnomeauthenticationdialog.c:703 +#: ../src/polkitgnomeauthenticationdialog.c:716 msgid "Vendor:" msgstr "Provedor:" -#: ../src/polkitgnomeauthenticationdialog.c:705 +#: ../src/polkitgnomeauthenticationdialog.c:718 #, c-format msgid "Click to open %s" msgstr "Faga clic para abrir %s" -#: ../src/polkitgnomeauthenticationdialog.c:868 +#: ../src/polkitgnomeauthenticationdialog.c:881 msgid "Authenticate" msgstr "Autenticar" -#: ../src/polkitgnomeauthenticator.c:285 +#: ../src/polkitgnomeauthenticator.c:297 #, c-format msgid "_Password for %s:" msgstr "_Contrasinal para %s:" -#: ../src/polkitgnomeauthenticator.c:445 +#: ../src/polkitgnomeauthenticator.c:457 msgid "Authentication Failure" msgstr "Ocorre un fallo na autenticación" -#: ../src/polkit-gnome-authentication-agent-1.desktop.in.in.h:1 -msgid "PolicyKit Authentication Agent" -msgstr "Axente de autenticación PolicyKit" +#: ../src/polkitgnomelistener.c:164 +msgid "Authentation dialog was dismissed by the user" +msgstr "O usuario rexeitou o diálogo de autenticación" + +#~ msgid "" +#~ "This button is locked down so only users with administrative privileges " +#~ "can unlock it. Right-click the button to remove the lock down." +#~ msgstr "" +#~ "Este botón esta bloqueado polo que só os usuarios con privilexios de " +#~ "administración poden desbloquealo. Prema co botón dereito no botón para " +#~ "eliminar o bloqueo." + +#~ msgid "Click the icon to drop all elevated privileges" +#~ msgstr "Faga clic na icona para eliminar todos os privilexios elevados" + +#~ msgid "PolicyKit Authentication Agent" +#~ msgstr "Axente de autenticación PolicyKit" diff --git a/po/it.po b/po/it.po index 6d0d8b9..a8af1df 100644 --- a/po/it.po +++ b/po/it.po @@ -1,180 +1,22 @@ # Italian translation of policykit-gnome. # Copyright (C) 2008 Free Software Foundation, Inc. # This file is distributed under the same license as the policykit-gnome package. -# Gianvito Cavasoli , 2008, 2009. -# +# Gianvito Cavasoli , 2008, 2009, 2011. # msgid "" msgstr "" "Project-Id-Version: policykit-gnome 0.9\n" "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" -"product=policykit-gnome&component=general\n" -"POT-Creation-Date: 2009-12-02 09:50+0000\n" -"PO-Revision-Date: 2009-12-02 11:06+0100\n" -"Last-Translator: Gianvito Cavasoli \n" +"product=policykit-gnome&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2011-09-15 15:33+0000\n" +"PO-Revision-Date: 2011-09-24 15:06+0200\n" +"Last-Translator: Gianvito Cavasoli \n" "Language-Team: Italiana \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -#: ../polkitgtk/polkitlockbutton.c:460 -msgid "Action Identifier" -msgstr "Identificatore di azione" - -#: ../polkitgtk/polkitlockbutton.c:461 -msgid "The action identifier to use for the button" -msgstr "Identificatore di azione da utilizzare per il pulsante" - -#: ../polkitgtk/polkitlockbutton.c:477 -msgid "Is Authorized" -msgstr "È autorizzato" - -#: ../polkitgtk/polkitlockbutton.c:478 -msgid "Whether the process is authorized" -msgstr "Indica se il processo è autorizzato" - -#: ../polkitgtk/polkitlockbutton.c:493 -msgid "Is Visible" -msgstr "È visibile" - -#: ../polkitgtk/polkitlockbutton.c:494 -msgid "Whether the widget is visible" -msgstr "Indica se il widget è visibile" - -#: ../polkitgtk/polkitlockbutton.c:509 -msgid "Can Obtain" -msgstr "Può ottenere" - -#: ../polkitgtk/polkitlockbutton.c:510 -msgid "Whether authorization can be obtained" -msgstr "Indica se l'autorizzazione può essere ottenuta" - -#: ../polkitgtk/polkitlockbutton.c:525 ../polkitgtk/polkitlockbutton.c:627 -msgid "Unlock Text" -msgstr "Testo di sblocco" - -#: ../polkitgtk/polkitlockbutton.c:526 -msgid "The text to display when prompting the user to unlock." -msgstr "Il testo da mostrare quando si chiede all'utente di sbloccare." - -#: ../polkitgtk/polkitlockbutton.c:527 -msgid "Click to make changes" -msgstr "Fare clic per apportare le modifiche" - -#: ../polkitgtk/polkitlockbutton.c:542 ../polkitgtk/polkitlockbutton.c:644 -msgid "Unlock Tooltip" -msgstr "Suggerimento di sblocco" - -#: ../polkitgtk/polkitlockbutton.c:543 -msgid "The tooltip to display when prompting the user to unlock." -msgstr "Il suggerimento da mostrare quando si chiede all'utente di sbloccare." - -#: ../polkitgtk/polkitlockbutton.c:544 -msgid "Authentication is needed to make changes." -msgstr "È necessaria l'autenticazione per apportare modifiche." - -#: ../polkitgtk/polkitlockbutton.c:559 -msgid "Lock Text" -msgstr "Testo di blocco" - -#: ../polkitgtk/polkitlockbutton.c:560 -msgid "The text to display when prompting the user to lock." -msgstr "Il testo da mostrare quando si chiede all'utente di bloccare." - -#: ../polkitgtk/polkitlockbutton.c:561 -msgid "Click to prevent changes" -msgstr "Fare clic per impedire le modifiche" - -#: ../polkitgtk/polkitlockbutton.c:576 -msgid "Lock Tooltip" -msgstr "Suggerimento di blocco" - -#: ../polkitgtk/polkitlockbutton.c:577 -msgid "The tooltip to display when prompting the user to lock." -msgstr "Il suggerimento da mostrare quando si chiede all'utente di bloccare." - -#: ../polkitgtk/polkitlockbutton.c:578 -msgid "To prevent further changes, click the lock." -msgstr "Per impedire ulteriori modifiche, fare clic sul blocco." - -#: ../polkitgtk/polkitlockbutton.c:593 -msgid "Lock Down Text" -msgstr "Testo di blocco permanente" - -#: ../polkitgtk/polkitlockbutton.c:594 -msgid "" -"The text to display when prompting the user to lock down the action for all " -"users." -msgstr "" -"Il testo da mostrare quando si chiede all'utente di bloccare permanentemente " -"l'azione per tutti gli utenti." - -#: ../polkitgtk/polkitlockbutton.c:595 -msgid "Click to lock down" -msgstr "Fare clic per bloccare permanentemente" - -#: ../polkitgtk/polkitlockbutton.c:610 -msgid "Lock Down Tooltip" -msgstr "Suggerimento di blocco permanente" - -#: ../polkitgtk/polkitlockbutton.c:611 -msgid "" -"The tooltip to display when prompting the user to lock down the action for " -"all users." -msgstr "" -"Il suggerimento da mostrare quando si chiede all'utente di bloccare " -"permanentemente l'azione per tutti gli utenti." - -#: ../polkitgtk/polkitlockbutton.c:612 -msgid "" -"To prevent users without administrative privileges from making changes, " -"click the lock." -msgstr "" -"Per impedire agli utenti senza privilegi amministrativi di apportare " -"modifiche, fare clic sul blocco." - -#: ../polkitgtk/polkitlockbutton.c:628 -msgid "" -"The text to display when the user cannot obtain authorization through " -"authentication." -msgstr "" -"Il testo da mostrare quando l'utente non può ottenere l'autorizzazione " -"tramite l'autenticazione." - -#: ../polkitgtk/polkitlockbutton.c:629 -msgid "Not authorized to make changes" -msgstr "Non autorizzato per apportare modifiche" - -#: ../polkitgtk/polkitlockbutton.c:645 -msgid "" -"The tooltip to display when the user cannot obtain authorization through " -"authentication." -msgstr "" -"Il suggerimento da mostrare quando l'utente non può ottenere " -"l'autorizzazione tramite l'autenticazione." - -#: ../polkitgtk/polkitlockbutton.c:646 -msgid "System policy prevents changes. Contact your system administator." -msgstr "" -"Le politiche del sistema impediscono le modifiche. Contattare " -"l'amministratore di sistema." - -#. Translators: this string is appended to the tooltip if the action is -#. * currently locked down -#: ../polkitgtk/polkitlockbutton.c:767 -msgid "" -"This button is locked down so only users with administrative privileges can " -"unlock it. Right-click the button to remove the lock down." -msgstr "" -"Il pulsante è bloccato permanentemente in modo che solo gli utenti con " -"privilegi amministrativi possono sbloccarlo. Fare clic destro sul pulsante " -"per rimuovere il blocco permanente." - -#: ../src/main.c:128 -msgid "Click the icon to drop all elevated privileges" -msgstr "Fare clic sull'icona per ritirare tutti i privilegi elevati" - #: ../src/polkitgnomeauthenticationdialog.c:159 msgid "Select user..." msgstr "Seleziona utente..." @@ -184,11 +26,11 @@ msgid "%s (%s)" msgstr "%s (%s)" -#: ../src/polkitgnomeauthenticationdialog.c:529 +#: ../src/polkitgnomeauthenticationdialog.c:537 msgid "_Authenticate" msgstr "_Autentica" -#: ../src/polkitgnomeauthenticationdialog.c:566 +#: ../src/polkitgnomeauthenticationdialog.c:576 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as one of the users below is required to perform this action." @@ -197,7 +39,7 @@ "privilegi. È richiesto autenticarsi come uno degli utenti elencati sotto per " "eseguire tale azione." -#: ../src/polkitgnomeauthenticationdialog.c:574 +#: ../src/polkitgnomeauthenticationdialog.c:584 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication is required to perform this action." @@ -205,7 +47,7 @@ "Un'applicazione sta tentando di compiere un'azione che richiede dei " "privilegi. È richiesto autenticarsi per eseguire tale azione." -#: ../src/polkitgnomeauthenticationdialog.c:580 +#: ../src/polkitgnomeauthenticationdialog.c:590 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as the super user is required to perform this action." @@ -214,47 +56,161 @@ "privilegi. È richiesto autenticarsi come super utente per eseguire tale " "azione." -#: ../src/polkitgnomeauthenticationdialog.c:615 -#: ../src/polkitgnomeauthenticator.c:289 +#: ../src/polkitgnomeauthenticationdialog.c:625 +#: ../src/polkitgnomeauthenticator.c:300 msgid "_Password:" msgstr "Pass_word:" #. Details -#: ../src/polkitgnomeauthenticationdialog.c:633 +#: ../src/polkitgnomeauthenticationdialog.c:643 msgid "_Details" msgstr "_Dettagli" -#: ../src/polkitgnomeauthenticationdialog.c:686 +#: ../src/polkitgnomeauthenticationdialog.c:699 msgid "Action:" msgstr "Azione:" -#: ../src/polkitgnomeauthenticationdialog.c:689 +#: ../src/polkitgnomeauthenticationdialog.c:702 #, c-format msgid "Click to edit %s" msgstr "Fare clic per modificare %s" -#: ../src/polkitgnomeauthenticationdialog.c:703 +#: ../src/polkitgnomeauthenticationdialog.c:716 msgid "Vendor:" msgstr "Fornitore:" -#: ../src/polkitgnomeauthenticationdialog.c:705 +#: ../src/polkitgnomeauthenticationdialog.c:718 #, c-format msgid "Click to open %s" msgstr "Fare clic per aprire %s" -#: ../src/polkitgnomeauthenticationdialog.c:868 +#: ../src/polkitgnomeauthenticationdialog.c:881 msgid "Authenticate" msgstr "Autentica" -#: ../src/polkitgnomeauthenticator.c:285 +#: ../src/polkitgnomeauthenticator.c:296 #, c-format msgid "_Password for %s:" msgstr "Pass_word per %s:" -#: ../src/polkitgnomeauthenticator.c:445 +#: ../src/polkitgnomeauthenticator.c:456 msgid "Authentication Failure" msgstr "Autenticazione non riuscita" -#: ../src/polkit-gnome-authentication-agent-1.desktop.in.in.h:1 -msgid "PolicyKit Authentication Agent" -msgstr "Agente di autenticazione per PolicyKit" +#: ../src/polkitgnomelistener.c:164 +msgid "Authentication dialog was dismissed by the user" +msgstr "Il dialogo di autenticazione è stato annullato dall'utente" + +#~ msgid "Action Identifier" +#~ msgstr "Identificatore di azione" + +#~ msgid "The action identifier to use for the button" +#~ msgstr "Identificatore di azione da utilizzare per il pulsante" + +#~ msgid "Is Authorized" +#~ msgstr "È autorizzato" + +#~ msgid "Whether the process is authorized" +#~ msgstr "Indica se il processo è autorizzato" + +#~ msgid "Is Visible" +#~ msgstr "È visibile" + +#~ msgid "Whether the widget is visible" +#~ msgstr "Indica se il widget è visibile" + +#~ msgid "Can Obtain" +#~ msgstr "Può ottenere" + +#~ msgid "Whether authorization can be obtained" +#~ msgstr "Indica se l'autorizzazione può essere ottenuta" + +#~ msgid "Unlock Text" +#~ msgstr "Testo di sblocco" + +#~ msgid "The text to display when prompting the user to unlock." +#~ msgstr "Il testo da mostrare quando si chiede all'utente di sbloccare." + +#~ msgid "Click to make changes" +#~ msgstr "Fare clic per apportare le modifiche" + +#~ msgid "Unlock Tooltip" +#~ msgstr "Suggerimento di sblocco" + +#~ msgid "The tooltip to display when prompting the user to unlock." +#~ msgstr "" +#~ "Il suggerimento da mostrare quando si chiede all'utente di sbloccare." + +#~ msgid "Authentication is needed to make changes." +#~ msgstr "È necessaria l'autenticazione per apportare modifiche." + +#~ msgid "Lock Text" +#~ msgstr "Testo di blocco" + +#~ msgid "The text to display when prompting the user to lock." +#~ msgstr "Il testo da mostrare quando si chiede all'utente di bloccare." + +#~ msgid "Click to prevent changes" +#~ msgstr "Fare clic per impedire le modifiche" + +#~ msgid "Lock Tooltip" +#~ msgstr "Suggerimento di blocco" + +#~ msgid "The tooltip to display when prompting the user to lock." +#~ msgstr "" +#~ "Il suggerimento da mostrare quando si chiede all'utente di bloccare." + +#~ msgid "To prevent further changes, click the lock." +#~ msgstr "Per impedire ulteriori modifiche, fare clic sul blocco." + +#~ msgid "Lock Down Text" +#~ msgstr "Testo di blocco permanente" + +#~ msgid "" +#~ "The text to display when prompting the user to lock down the action for " +#~ "all users." +#~ msgstr "" +#~ "Il testo da mostrare quando si chiede all'utente di bloccare " +#~ "permanentemente l'azione per tutti gli utenti." + +#~ msgid "Click to lock down" +#~ msgstr "Fare clic per bloccare permanentemente" + +#~ msgid "Lock Down Tooltip" +#~ msgstr "Suggerimento di blocco permanente" + +#~ msgid "" +#~ "The tooltip to display when prompting the user to lock down the action " +#~ "for all users." +#~ msgstr "" +#~ "Il suggerimento da mostrare quando si chiede all'utente di bloccare " +#~ "permanentemente l'azione per tutti gli utenti." + +#~ msgid "" +#~ "To prevent users without administrative privileges from making changes, " +#~ "click the lock." +#~ msgstr "" +#~ "Per impedire agli utenti senza privilegi amministrativi di apportare " +#~ "modifiche, fare clic sul blocco." + +#~ msgid "" +#~ "The text to display when the user cannot obtain authorization through " +#~ "authentication." +#~ msgstr "" +#~ "Il testo da mostrare quando l'utente non può ottenere l'autorizzazione " +#~ "tramite l'autenticazione." + +#~ msgid "Not authorized to make changes" +#~ msgstr "Non autorizzato per apportare modifiche" + +#~ msgid "" +#~ "The tooltip to display when the user cannot obtain authorization through " +#~ "authentication." +#~ msgstr "" +#~ "Il suggerimento da mostrare quando l'utente non può ottenere " +#~ "l'autorizzazione tramite l'autenticazione." + +#~ msgid "System policy prevents changes. Contact your system administator." +#~ msgstr "" +#~ "Le politiche del sistema impediscono le modifiche. Contattare " +#~ "l'amministratore di sistema." diff --git a/po/pl.po b/po/pl.po index 5324c05..18e3398 100644 --- a/po/pl.po +++ b/po/pl.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: PolicyKit-gnome\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-03-09 21:06+0100\n" -"PO-Revision-Date: 2011-03-09 21:07+0100\n" +"POT-Creation-Date: 2011-09-01 02:32+0200\n" +"PO-Revision-Date: 2011-09-01 02:33+0200\n" "Last-Translator: Piotr Drąg \n" "Language-Team: Polish \n" "Language: pl\n" @@ -247,5 +247,5 @@ msgstr "Błąd uwierzytelniania" #: ../src/polkitgnomelistener.c:164 -msgid "Authentation dialog was dismissed by the user" +msgid "Authentication dialog was dismissed by the user" msgstr "Okno dialogowe uwierzytelnienia zostało odrzucone przez użytkownika" diff --git a/po/sl.po b/po/sl.po index 70bf139..b7a95f9 100644 --- a/po/sl.po +++ b/po/sl.po @@ -3,14 +3,15 @@ # This file is distributed under the same license as the PolicyKit-gnome package. # # Matej Urbančič , 2010 - 2011. +# Martin Srebotnjak , 2011. # msgid "" msgstr "" "Project-Id-Version: PolicyKit-gnome master\n" -"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=policykit-gnome&component=general\n" -"POT-Creation-Date: 2011-03-05 10:04+0000\n" -"PO-Revision-Date: 2011-03-09 13:08+0100\n" -"Last-Translator: Matej Urbančič \n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=policykit-gnome&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2011-08-30 15:24+0000\n" +"PO-Revision-Date: 2011-09-04 15:23+0100\n" +"Last-Translator: Martin Srebotnjak \n" "Language-Team: Slovenian GNOME Translation Team \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -209,7 +210,8 @@ msgstr "Napaka overitve" #: ../src/polkitgnomelistener.c:164 -msgid "Authentation dialog was dismissed by the user" +#| msgid "Authentation dialog was dismissed by the user" +msgid "Authentication dialog was dismissed by the user" msgstr "Pogovorno okno overitve je zaprl uporabnik" #~ msgid "" diff --git a/po/zh_CN.po b/po/zh_CN.po index b4a3023..b42256d 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -7,157 +7,145 @@ msgid "" msgstr "" "Project-Id-Version: policykit-gnome VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-10-03 21:55+0800\n" -"PO-Revision-Date: 2010-09-26 00:26+0800\n" +"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" +"product=policykit-gnome&keywords=I18N+L10N&component=general\n" +"POT-Creation-Date: 2011-09-09 09:20+0000\n" +"PO-Revision-Date: 2011-09-12 21:56+0800\n" "Last-Translator: Aron Xu \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: ../polkitgtk/polkitlockbutton.c:460 +#: ../polkitgtk/polkitlockbutton.c:458 msgid "Action Identifier" msgstr "动作识别" -#: ../polkitgtk/polkitlockbutton.c:461 +#: ../polkitgtk/polkitlockbutton.c:459 msgid "The action identifier to use for the button" msgstr "用在按钮上的动作识别" -#: ../polkitgtk/polkitlockbutton.c:477 +#: ../polkitgtk/polkitlockbutton.c:475 msgid "Is Authorized" msgstr "是被授权" -#: ../polkitgtk/polkitlockbutton.c:478 +#: ../polkitgtk/polkitlockbutton.c:476 msgid "Whether the process is authorized" msgstr "操作是否被授权" -#: ../polkitgtk/polkitlockbutton.c:493 +#: ../polkitgtk/polkitlockbutton.c:491 msgid "Is Visible" msgstr "是可见" -#: ../polkitgtk/polkitlockbutton.c:494 +#: ../polkitgtk/polkitlockbutton.c:492 msgid "Whether the widget is visible" msgstr "部件是否可见" -#: ../polkitgtk/polkitlockbutton.c:509 +#: ../polkitgtk/polkitlockbutton.c:507 msgid "Can Obtain" msgstr "可以获取" -#: ../polkitgtk/polkitlockbutton.c:510 +#: ../polkitgtk/polkitlockbutton.c:508 msgid "Whether authorization can be obtained" msgstr "授权是否可以被获取" -#: ../polkitgtk/polkitlockbutton.c:525 ../polkitgtk/polkitlockbutton.c:627 +#: ../polkitgtk/polkitlockbutton.c:523 ../polkitgtk/polkitlockbutton.c:625 msgid "Unlock Text" msgstr "不锁定文字" -#: ../polkitgtk/polkitlockbutton.c:526 +#: ../polkitgtk/polkitlockbutton.c:524 msgid "The text to display when prompting the user to unlock." msgstr "当提示用户解锁时显示的文字。" -#: ../polkitgtk/polkitlockbutton.c:527 +#: ../polkitgtk/polkitlockbutton.c:525 msgid "Click to make changes" msgstr "点击来进行改变" -#: ../polkitgtk/polkitlockbutton.c:542 ../polkitgtk/polkitlockbutton.c:644 +#: ../polkitgtk/polkitlockbutton.c:540 ../polkitgtk/polkitlockbutton.c:642 msgid "Unlock Tooltip" msgstr "解锁提示" -#: ../polkitgtk/polkitlockbutton.c:543 +#: ../polkitgtk/polkitlockbutton.c:541 msgid "The tooltip to display when prompting the user to unlock." msgstr "当提示用户解锁时显示的文字。" -#: ../polkitgtk/polkitlockbutton.c:544 +#: ../polkitgtk/polkitlockbutton.c:542 msgid "Authentication is needed to make changes." msgstr "需要认证以做出改变。" -#: ../polkitgtk/polkitlockbutton.c:559 +#: ../polkitgtk/polkitlockbutton.c:557 msgid "Lock Text" msgstr "锁定文字" -#: ../polkitgtk/polkitlockbutton.c:560 +#: ../polkitgtk/polkitlockbutton.c:558 msgid "The text to display when prompting the user to lock." msgstr "当提示用户锁定时显示的文字。" -#: ../polkitgtk/polkitlockbutton.c:561 +#: ../polkitgtk/polkitlockbutton.c:559 msgid "Click to prevent changes" msgstr "单击以防止更改" -#: ../polkitgtk/polkitlockbutton.c:576 +#: ../polkitgtk/polkitlockbutton.c:574 msgid "Lock Tooltip" msgstr "锁定提示" -#: ../polkitgtk/polkitlockbutton.c:577 +#: ../polkitgtk/polkitlockbutton.c:575 msgid "The tooltip to display when prompting the user to lock." msgstr "当提示用户锁定时显示的文字。" -#: ../polkitgtk/polkitlockbutton.c:578 +#: ../polkitgtk/polkitlockbutton.c:576 msgid "To prevent further changes, click the lock." msgstr "要阻止修改,请点击锁定。" -#: ../polkitgtk/polkitlockbutton.c:593 +#: ../polkitgtk/polkitlockbutton.c:591 msgid "Lock Down Text" msgstr "锁定文字" -#: ../polkitgtk/polkitlockbutton.c:594 +#: ../polkitgtk/polkitlockbutton.c:592 msgid "" "The text to display when prompting the user to lock down the action for all " "users." msgstr "当提示用户锁定时显示的文字。" -#: ../polkitgtk/polkitlockbutton.c:595 +#: ../polkitgtk/polkitlockbutton.c:593 msgid "Click to lock down" msgstr "单击以锁定" -#: ../polkitgtk/polkitlockbutton.c:610 +#: ../polkitgtk/polkitlockbutton.c:608 msgid "Lock Down Tooltip" msgstr "锁定提示" -#: ../polkitgtk/polkitlockbutton.c:611 +#: ../polkitgtk/polkitlockbutton.c:609 msgid "" "The tooltip to display when prompting the user to lock down the action for " "all users." msgstr "当提示用户锁定时显示的文字。" -#: ../polkitgtk/polkitlockbutton.c:612 +#: ../polkitgtk/polkitlockbutton.c:610 msgid "" "To prevent users without administrative privileges from making changes, " "click the lock." msgstr "为了防止用户没有管理员权限来做更改,点击这个锁。" -#: ../polkitgtk/polkitlockbutton.c:628 +#: ../polkitgtk/polkitlockbutton.c:626 msgid "" "The text to display when the user cannot obtain authorization through " "authentication." msgstr "当用户不能通过认证来获得认证时显示的文字。" -#: ../polkitgtk/polkitlockbutton.c:629 +#: ../polkitgtk/polkitlockbutton.c:627 msgid "Not authorized to make changes" msgstr "没有被认证来做出改变" -#: ../polkitgtk/polkitlockbutton.c:645 +#: ../polkitgtk/polkitlockbutton.c:643 msgid "" "The tooltip to display when the user cannot obtain authorization through " "authentication." msgstr "当用户不能通过认证时显示的文字。" -#: ../polkitgtk/polkitlockbutton.c:646 +#: ../polkitgtk/polkitlockbutton.c:644 msgid "System policy prevents changes. Contact your system administator." msgstr "系统设置阻止了更改,请联系系统管理人员。" - -#. Translators: this string is appended to the tooltip if the action is -#. * currently locked down -#: ../polkitgtk/polkitlockbutton.c:767 -msgid "" -"This button is locked down so only users with administrative privileges can " -"unlock it. Right-click the button to remove the lock down." -msgstr "" -"这个按钮是被锁定的,只有有管理权限的用户才能解锁。右键单击该按钮来移除锁定。" - -#: ../src/main.c:128 -msgid "Click the icon to drop all elevated privileges" -msgstr "点击图标来放下所有提升的权限" #: ../src/polkitgnomeauthenticationdialog.c:159 msgid "Select user..." @@ -168,73 +156,86 @@ msgid "%s (%s)" msgstr "%s (%s)" -#: ../src/polkitgnomeauthenticationdialog.c:529 +#: ../src/polkitgnomeauthenticationdialog.c:537 msgid "_Authenticate" msgstr "授权(_A)" -#: ../src/polkitgnomeauthenticationdialog.c:566 +#: ../src/polkitgnomeauthenticationdialog.c:576 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as one of the users below is required to perform this action." msgstr "" "一个程序正试图执行一个需要特权的动作。要求授权为下列用户之一来执行该动作。" -#: ../src/polkitgnomeauthenticationdialog.c:574 +#: ../src/polkitgnomeauthenticationdialog.c:584 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication is required to perform this action." msgstr "一个程序正试图执行一个需要特权的动作。要求授权以执行该动作。" -#: ../src/polkitgnomeauthenticationdialog.c:580 +#: ../src/polkitgnomeauthenticationdialog.c:590 msgid "" "An application is attempting to perform an action that requires privileges. " "Authentication as the super user is required to perform this action." msgstr "一个程序正试图执行一个需要特权的动作。要求授权为超级用户来执行该动作。" -#: ../src/polkitgnomeauthenticationdialog.c:615 -#: ../src/polkitgnomeauthenticator.c:289 +#: ../src/polkitgnomeauthenticationdialog.c:625 +#: ../src/polkitgnomeauthenticator.c:301 msgid "_Password:" msgstr "密码(_P):" #. Details -#: ../src/polkitgnomeauthenticationdialog.c:633 +#: ../src/polkitgnomeauthenticationdialog.c:643 msgid "_Details" msgstr "详情(_D)" -#: ../src/polkitgnomeauthenticationdialog.c:686 +#: ../src/polkitgnomeauthenticationdialog.c:699 msgid "Action:" msgstr "动作:" -#: ../src/polkitgnomeauthenticationdialog.c:689 +#: ../src/polkitgnomeauthenticationdialog.c:702 #, c-format msgid "Click to edit %s" msgstr "单击以编辑 %s" -#: ../src/polkitgnomeauthenticationdialog.c:703 +#: ../src/polkitgnomeauthenticationdialog.c:716 msgid "Vendor:" msgstr "提供者:" -#: ../src/polkitgnomeauthenticationdialog.c:705 +#: ../src/polkitgnomeauthenticationdialog.c:718 #, c-format msgid "Click to open %s" msgstr "单击以打开 %s" -#: ../src/polkitgnomeauthenticationdialog.c:868 +#: ../src/polkitgnomeauthenticationdialog.c:881 msgid "Authenticate" msgstr "授权" -#: ../src/polkitgnomeauthenticator.c:285 +#: ../src/polkitgnomeauthenticator.c:297 #, c-format msgid "_Password for %s:" msgstr "%s 的密码(_P):" -#: ../src/polkitgnomeauthenticator.c:445 +#: ../src/polkitgnomeauthenticator.c:457 msgid "Authentication Failure" msgstr "认证失败" -#: ../src/polkit-gnome-authentication-agent-1.desktop.in.in.h:1 -msgid "PolicyKit Authentication Agent" -msgstr "PolicyKit 认证代理" +#: ../src/polkitgnomelistener.c:164 +msgid "Authentication dialog was dismissed by the user" +msgstr "用户关掉了认证对话框" + +#~ msgid "" +#~ "This button is locked down so only users with administrative privileges " +#~ "can unlock it. Right-click the button to remove the lock down." +#~ msgstr "" +#~ "这个按钮是被锁定的,只有有管理权限的用户才能解锁。右键单击该按钮来移除锁" +#~ "定。" + +#~ msgid "Click the icon to drop all elevated privileges" +#~ msgstr "点击图标来放下所有提升的权限" + +#~ msgid "PolicyKit Authentication Agent" +#~ msgstr "PolicyKit 认证代理" #~ msgid "Authorizations" #~ msgstr "授权" diff --git a/polkitgtk/Makefile.am b/polkitgtk/Makefile.am deleted file mode 100644 index 275b167..0000000 --- a/polkitgtk/Makefile.am +++ /dev/null @@ -1,106 +0,0 @@ - -NULL = - -lib_LTLIBRARIES=libpolkit-gtk-1.la - -libpolkit_gtk_1includedir=$(includedir)/polkit-gtk-1/polkitgtk - -libpolkit_gtk_1include_HEADERS = \ - polkitgtk.h \ - polkitgtktypes.h \ - polkitlockbutton.h \ - $(NULL) - -libpolkit_gtk_1_la_SOURCES = \ - polkitgtk.h \ - polkitgtktypes.h \ - polkitlockbutton.h polkitlockbutton.c \ - $(NULL) - -libpolkit_gtk_1_la_CPPFLAGS = \ - -I$(top_srcdir) \ - -I$(top_builddir) \ - -I$(top_srcdir)/polkitgtk \ - -I$(top_builddir)/polkitgtk \ - -DG_LOG_DOMAIN=\"polkitgtk\" \ - -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \ - $(DISABLE_DEPRECATED) \ - $(AM_CPPFLAGS) \ - -DPOLKIT_GTK_COMPILATION \ - $(NULL) - -libpolkit_gtk_1_la_CFLAGS = \ - $(POLKIT_GOBJECT_CFLAGS) \ - $(GTK_CFLAGS) \ - $(WARN_CFLAGS) \ - $(AM_CFLAGS) \ - $(NULL) - -libpolkit_gtk_1_la_LIBADD = \ - $(POLKIT_GOBJECT_LIBS) \ - $(GTK_LIBS) \ - $(INTLLIBS) \ - $(NULL) - - -libpolkit_gtk_1_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ - -export-dynamic -no-undefined -export-symbols-regex '(^polkit_.*)' - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = polkit-gtk-1.pc - -noinst_PROGRAMS = example - -example_SOURCES = example.c -example_CFLAGS = \ - -I$(top_srcdir) \ - -I$(top_builddir) \ - $(POLKIT_GOBJECT_CFLAGS) \ - $(GTK_CFLAGS) \ - $(WARN_CFLAGS) \ - $(AM_CFLAGS) \ - $(NULL) - -example_LDADD = \ - $(POLKIT_GOBJECT_LIBS) \ - $(GTK_LIBS) \ - $(INTLLIBS) \ - libpolkit-gtk-1.la \ - $(NULL) - -if ENABLE_INTROSPECTION -girdir = $(GIRDIR) -gir_DATA = PolkitGtk-1.0.gir - -typelibsdir = $(GIRTYPELIBDIR) -typelibs_DATA = PolkitGtk-1.0.typelib - -PolkitGtk-1.0.gir: libpolkit-gtk-1.la $(G_IR_SCANNER) Makefile.am - $(G_IR_SCANNER) -v \ - --namespace PolkitGtk \ - --strip-prefix=Polkit \ - --nsversion=1.0 \ - --include=Gtk-$(GTK_API_VERSION) \ - --include=Polkit-1.0 \ - --library=polkit-gtk-1 \ - --output $@ \ - --pkg=polkit-gobject-1 \ - --pkg=gtk+-$(GTK_API_VERSION) \ - --libtool=$(top_builddir)/libtool \ - -I$(top_srcdir) \ - -DPOLKIT_GTK_COMPILATION \ - $(srcdir)/polkitgtk.h \ - $(srcdir)/polkitgtktypes.h \ - $(srcdir)/polkitlockbutton.h \ - $(NULL) - -PolkitGtk-1.0.typelib: PolkitGtk-1.0.gir $(G_IR_COMPILER) - $(G_IR_COMPILER) $< -o $@ - -endif # ENABLE_INTROSPECTION - -CLEANFILES = $(BUILT_SOURCES) $(pkgconfig_DATA) $(gir_DATA) $(typelibs_DATA) - -clean-local : - rm -f *~ $(BUILT_SOURCES) - diff --git a/polkitgtk/Makefile.in b/polkitgtk/Makefile.in deleted file mode 100644 index 4fc084b..0000000 --- a/polkitgtk/Makefile.in +++ /dev/null @@ -1,832 +0,0 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - - - - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -noinst_PROGRAMS = example$(EXEEXT) -subdir = polkitgtk -DIST_COMMON = $(libpolkit_gtk_1include_HEADERS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/polkit-gtk-1.pc.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = polkit-gtk-1.pc -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" \ - "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(typelibsdir)" \ - "$(DESTDIR)$(libpolkit_gtk_1includedir)" -LTLIBRARIES = $(lib_LTLIBRARIES) -am__DEPENDENCIES_1 = -libpolkit_gtk_1_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) -am__objects_1 = -am_libpolkit_gtk_1_la_OBJECTS = \ - libpolkit_gtk_1_la-polkitlockbutton.lo $(am__objects_1) -libpolkit_gtk_1_la_OBJECTS = $(am_libpolkit_gtk_1_la_OBJECTS) -AM_V_lt = $(am__v_lt_$(V)) -am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) -am__v_lt_0 = --silent -libpolkit_gtk_1_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ - $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ - $(libpolkit_gtk_1_la_CFLAGS) $(CFLAGS) \ - $(libpolkit_gtk_1_la_LDFLAGS) $(LDFLAGS) -o $@ -PROGRAMS = $(noinst_PROGRAMS) -am_example_OBJECTS = example-example.$(OBJEXT) -example_OBJECTS = $(am_example_OBJECTS) -example_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ - $(am__DEPENDENCIES_1) libpolkit-gtk-1.la $(am__DEPENDENCIES_1) -example_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(example_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -depcomp = $(SHELL) $(top_srcdir)/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_$(V)) -am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) -am__v_CC_0 = @echo " CC " $@; -AM_V_at = $(am__v_at_$(V)) -am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) -am__v_at_0 = @ -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_$(V)) -am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) -am__v_CCLD_0 = @echo " CCLD " $@; -AM_V_GEN = $(am__v_GEN_$(V)) -am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) -am__v_GEN_0 = @echo " GEN " $@; -SOURCES = $(libpolkit_gtk_1_la_SOURCES) $(example_SOURCES) -DIST_SOURCES = $(libpolkit_gtk_1_la_SOURCES) $(example_SOURCES) -DATA = $(gir_DATA) $(pkgconfig_DATA) $(typelibs_DATA) -HEADERS = $(libpolkit_gtk_1include_HEADERS) -ETAGS = etags -CTAGS = ctags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ -ALL_LINGUAS = @ALL_LINGUAS@ -AMTAR = @AMTAR@ -AM_CFLAGS = @AM_CFLAGS@ -AM_CPPFLAGS = @AM_CPPFLAGS@ -AM_CXXFLAGS = @AM_CXXFLAGS@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AM_LDFLAGS = @AM_LDFLAGS@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CATALOGS = @CATALOGS@ -CATOBJEXT = @CATOBJEXT@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DATADIRNAME = @DATADIRNAME@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ -GIRDIR = @GIRDIR@ -GIRTYPELIBDIR = @GIRTYPELIBDIR@ -GMOFILES = @GMOFILES@ -GMSGFMT = @GMSGFMT@ -GREP = @GREP@ -GTKDOC_CHECK = @GTKDOC_CHECK@ -GTKDOC_MKPDF = @GTKDOC_MKPDF@ -GTKDOC_REBASE = @GTKDOC_REBASE@ -GTK_API_VERSION = @GTK_API_VERSION@ -GTK_CFLAGS = @GTK_CFLAGS@ -GTK_LIBS = @GTK_LIBS@ -G_IR_COMPILER = @G_IR_COMPILER@ -G_IR_GENERATE = @G_IR_GENERATE@ -G_IR_SCANNER = @G_IR_SCANNER@ -HTML_DIR = @HTML_DIR@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTOBJEXT = @INSTOBJEXT@ -INTLLIBS = @INTLLIBS@ -INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@ -INTLTOOL_MERGE = @INTLTOOL_MERGE@ -INTLTOOL_PERL = @INTLTOOL_PERL@ -INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ -INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ -INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -LT_AGE = @LT_AGE@ -LT_CURRENT = @LT_CURRENT@ -LT_REVISION = @LT_REVISION@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -MKINSTALLDIRS = @MKINSTALLDIRS@ -MSGFMT = @MSGFMT@ -MSGFMT_OPTS = @MSGFMT_OPTS@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POFILES = @POFILES@ -POLKIT_AGENT_CFLAGS = @POLKIT_AGENT_CFLAGS@ -POLKIT_AGENT_LIBS = @POLKIT_AGENT_LIBS@ -POLKIT_GOBJECT_CFLAGS = @POLKIT_GOBJECT_CFLAGS@ -POLKIT_GOBJECT_LIBS = @POLKIT_GOBJECT_LIBS@ -POSUB = @POSUB@ -PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ -PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -WARN_CFLAGS = @WARN_CFLAGS@ -XGETTEXT = @XGETTEXT@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -NULL = -lib_LTLIBRARIES = libpolkit-gtk-1.la -libpolkit_gtk_1includedir = $(includedir)/polkit-gtk-1/polkitgtk -libpolkit_gtk_1include_HEADERS = \ - polkitgtk.h \ - polkitgtktypes.h \ - polkitlockbutton.h \ - $(NULL) - -libpolkit_gtk_1_la_SOURCES = \ - polkitgtk.h \ - polkitgtktypes.h \ - polkitlockbutton.h polkitlockbutton.c \ - $(NULL) - -libpolkit_gtk_1_la_CPPFLAGS = \ - -I$(top_srcdir) \ - -I$(top_builddir) \ - -I$(top_srcdir)/polkitgtk \ - -I$(top_builddir)/polkitgtk \ - -DG_LOG_DOMAIN=\"polkitgtk\" \ - -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \ - $(DISABLE_DEPRECATED) \ - $(AM_CPPFLAGS) \ - -DPOLKIT_GTK_COMPILATION \ - $(NULL) - -libpolkit_gtk_1_la_CFLAGS = \ - $(POLKIT_GOBJECT_CFLAGS) \ - $(GTK_CFLAGS) \ - $(WARN_CFLAGS) \ - $(AM_CFLAGS) \ - $(NULL) - -libpolkit_gtk_1_la_LIBADD = \ - $(POLKIT_GOBJECT_LIBS) \ - $(GTK_LIBS) \ - $(INTLLIBS) \ - $(NULL) - -libpolkit_gtk_1_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ - -export-dynamic -no-undefined -export-symbols-regex '(^polkit_.*)' - -pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = polkit-gtk-1.pc -example_SOURCES = example.c -example_CFLAGS = \ - -I$(top_srcdir) \ - -I$(top_builddir) \ - $(POLKIT_GOBJECT_CFLAGS) \ - $(GTK_CFLAGS) \ - $(WARN_CFLAGS) \ - $(AM_CFLAGS) \ - $(NULL) - -example_LDADD = \ - $(POLKIT_GOBJECT_LIBS) \ - $(GTK_LIBS) \ - $(INTLLIBS) \ - libpolkit-gtk-1.la \ - $(NULL) - -@ENABLE_INTROSPECTION_TRUE@girdir = $(GIRDIR) -@ENABLE_INTROSPECTION_TRUE@gir_DATA = PolkitGtk-1.0.gir -@ENABLE_INTROSPECTION_TRUE@typelibsdir = $(GIRTYPELIBDIR) -@ENABLE_INTROSPECTION_TRUE@typelibs_DATA = PolkitGtk-1.0.typelib -CLEANFILES = $(BUILT_SOURCES) $(pkgconfig_DATA) $(gir_DATA) $(typelibs_DATA) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign polkitgtk/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign polkitgtk/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -polkit-gtk-1.pc: $(top_builddir)/config.status $(srcdir)/polkit-gtk-1.pc.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ - } - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libpolkit-gtk-1.la: $(libpolkit_gtk_1_la_OBJECTS) $(libpolkit_gtk_1_la_DEPENDENCIES) - $(AM_V_CCLD)$(libpolkit_gtk_1_la_LINK) -rpath $(libdir) $(libpolkit_gtk_1_la_OBJECTS) $(libpolkit_gtk_1_la_LIBADD) $(LIBS) - -clean-noinstPROGRAMS: - @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -example$(EXEEXT): $(example_OBJECTS) $(example_DEPENDENCIES) - @rm -f example$(EXEEXT) - $(AM_V_CCLD)$(example_LINK) $(example_OBJECTS) $(example_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/example-example.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libpolkit_gtk_1_la-polkitlockbutton.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -libpolkit_gtk_1_la-polkitlockbutton.lo: polkitlockbutton.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpolkit_gtk_1_la_CPPFLAGS) $(CPPFLAGS) $(libpolkit_gtk_1_la_CFLAGS) $(CFLAGS) -MT libpolkit_gtk_1_la-polkitlockbutton.lo -MD -MP -MF $(DEPDIR)/libpolkit_gtk_1_la-polkitlockbutton.Tpo -c -o libpolkit_gtk_1_la-polkitlockbutton.lo `test -f 'polkitlockbutton.c' || echo '$(srcdir)/'`polkitlockbutton.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libpolkit_gtk_1_la-polkitlockbutton.Tpo $(DEPDIR)/libpolkit_gtk_1_la-polkitlockbutton.Plo -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkitlockbutton.c' object='libpolkit_gtk_1_la-polkitlockbutton.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libpolkit_gtk_1_la_CPPFLAGS) $(CPPFLAGS) $(libpolkit_gtk_1_la_CFLAGS) $(CFLAGS) -c -o libpolkit_gtk_1_la-polkitlockbutton.lo `test -f 'polkitlockbutton.c' || echo '$(srcdir)/'`polkitlockbutton.c - -example-example.o: example.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(example_CFLAGS) $(CFLAGS) -MT example-example.o -MD -MP -MF $(DEPDIR)/example-example.Tpo -c -o example-example.o `test -f 'example.c' || echo '$(srcdir)/'`example.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/example-example.Tpo $(DEPDIR)/example-example.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='example.c' object='example-example.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(example_CFLAGS) $(CFLAGS) -c -o example-example.o `test -f 'example.c' || echo '$(srcdir)/'`example.c - -example-example.obj: example.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(example_CFLAGS) $(CFLAGS) -MT example-example.obj -MD -MP -MF $(DEPDIR)/example-example.Tpo -c -o example-example.obj `if test -f 'example.c'; then $(CYGPATH_W) 'example.c'; else $(CYGPATH_W) '$(srcdir)/example.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/example-example.Tpo $(DEPDIR)/example-example.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='example.c' object='example-example.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(example_CFLAGS) $(CFLAGS) -c -o example-example.obj `if test -f 'example.c'; then $(CYGPATH_W) 'example.c'; else $(CYGPATH_W) '$(srcdir)/example.c'; fi` - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-girDATA: $(gir_DATA) - @$(NORMAL_INSTALL) - test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)" - @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \ - done - -uninstall-girDATA: - @$(NORMAL_UNINSTALL) - @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(girdir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(girdir)" && rm -f $$files -install-pkgconfigDATA: $(pkgconfig_DATA) - @$(NORMAL_INSTALL) - test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" - @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ - done - -uninstall-pkgconfigDATA: - @$(NORMAL_UNINSTALL) - @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files -install-typelibsDATA: $(typelibs_DATA) - @$(NORMAL_INSTALL) - test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)" - @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibsdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibsdir)" || exit $$?; \ - done - -uninstall-typelibsDATA: - @$(NORMAL_UNINSTALL) - @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(typelibsdir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(typelibsdir)" && rm -f $$files -install-libpolkit_gtk_1includeHEADERS: $(libpolkit_gtk_1include_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(libpolkit_gtk_1includedir)" || $(MKDIR_P) "$(DESTDIR)$(libpolkit_gtk_1includedir)" - @list='$(libpolkit_gtk_1include_HEADERS)'; test -n "$(libpolkit_gtk_1includedir)" || list=; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - echo "$$d$$p"; \ - done | $(am__base_list) | \ - while read files; do \ - echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libpolkit_gtk_1includedir)'"; \ - $(INSTALL_HEADER) $$files "$(DESTDIR)$(libpolkit_gtk_1includedir)" || exit $$?; \ - done - -uninstall-libpolkit_gtk_1includeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(libpolkit_gtk_1include_HEADERS)'; test -n "$(libpolkit_gtk_1includedir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(libpolkit_gtk_1includedir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(libpolkit_gtk_1includedir)" && rm -f $$files - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS) -installdirs: - for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(typelibsdir)" "$(DESTDIR)$(libpolkit_gtk_1includedir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libLTLIBRARIES clean-libtool clean-local \ - clean-noinstPROGRAMS mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-girDATA install-libpolkit_gtk_1includeHEADERS \ - install-pkgconfigDATA install-typelibsDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-girDATA uninstall-libLTLIBRARIES \ - uninstall-libpolkit_gtk_1includeHEADERS \ - uninstall-pkgconfigDATA uninstall-typelibsDATA - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool clean-local \ - clean-noinstPROGRAMS ctags distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-girDATA install-html \ - install-html-am install-info install-info-am \ - install-libLTLIBRARIES install-libpolkit_gtk_1includeHEADERS \ - install-man install-pdf install-pdf-am install-pkgconfigDATA \ - install-ps install-ps-am install-strip install-typelibsDATA \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-girDATA \ - uninstall-libLTLIBRARIES \ - uninstall-libpolkit_gtk_1includeHEADERS \ - uninstall-pkgconfigDATA uninstall-typelibsDATA - - -@ENABLE_INTROSPECTION_TRUE@PolkitGtk-1.0.gir: libpolkit-gtk-1.la $(G_IR_SCANNER) Makefile.am -@ENABLE_INTROSPECTION_TRUE@ $(G_IR_SCANNER) -v \ -@ENABLE_INTROSPECTION_TRUE@ --namespace PolkitGtk \ -@ENABLE_INTROSPECTION_TRUE@ --strip-prefix=Polkit \ -@ENABLE_INTROSPECTION_TRUE@ --nsversion=1.0 \ -@ENABLE_INTROSPECTION_TRUE@ --include=Gtk-$(GTK_API_VERSION) \ -@ENABLE_INTROSPECTION_TRUE@ --include=Polkit-1.0 \ -@ENABLE_INTROSPECTION_TRUE@ --library=polkit-gtk-1 \ -@ENABLE_INTROSPECTION_TRUE@ --output $@ \ -@ENABLE_INTROSPECTION_TRUE@ --pkg=polkit-gobject-1 \ -@ENABLE_INTROSPECTION_TRUE@ --pkg=gtk+-$(GTK_API_VERSION) \ -@ENABLE_INTROSPECTION_TRUE@ --libtool=$(top_builddir)/libtool \ -@ENABLE_INTROSPECTION_TRUE@ -I$(top_srcdir) \ -@ENABLE_INTROSPECTION_TRUE@ -DPOLKIT_GTK_COMPILATION \ -@ENABLE_INTROSPECTION_TRUE@ $(srcdir)/polkitgtk.h \ -@ENABLE_INTROSPECTION_TRUE@ $(srcdir)/polkitgtktypes.h \ -@ENABLE_INTROSPECTION_TRUE@ $(srcdir)/polkitlockbutton.h \ -@ENABLE_INTROSPECTION_TRUE@ $(NULL) - -@ENABLE_INTROSPECTION_TRUE@PolkitGtk-1.0.typelib: PolkitGtk-1.0.gir $(G_IR_COMPILER) -@ENABLE_INTROSPECTION_TRUE@ $(G_IR_COMPILER) $< -o $@ - -clean-local : - rm -f *~ $(BUILT_SOURCES) - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/polkitgtk/example.c b/polkitgtk/example.c deleted file mode 100644 index 882a26b..0000000 --- a/polkitgtk/example.c +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright (C) 2009 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: David Zeuthen - */ - -#include - -static PolkitAuthority *authority = NULL; -const gchar *action_id = NULL; -static PolkitSubject *system_bus_name_subject = NULL; -static PolkitSubject *unix_process_subject = NULL; -static GtkWidget *system_bus_name_authorized_label = NULL; -static GtkWidget *unix_process_authorized_label = NULL; - -static void -update_one (PolkitSubject *subject, - GtkWidget *label) -{ - PolkitAuthorizationResult *result; - GError *error; - GString *s; - gchar *subject_str; - - s = g_string_new (NULL); - subject_str = polkit_subject_to_string (subject); - g_string_append_printf (s, "Result for subject `%s': ", subject_str); - g_free (subject_str); - - error = NULL; - result = polkit_authority_check_authorization_sync (authority, - subject, - action_id, - NULL, - POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE, - NULL, - &error); - if (result == NULL) - { - g_string_append_printf (s, - "failed: %s", error->message); - g_error_free (error); - } - else - { - g_string_append_printf (s, - "authorized=%d challenge=%d retains=%d temporary=%d", - polkit_authorization_result_get_is_authorized (result), - polkit_authorization_result_get_is_challenge (result), - polkit_authorization_result_get_retains_authorization (result), - polkit_authorization_result_get_temporary_authorization_id (result) != NULL); - g_object_unref (result); - } - - gtk_label_set_text (GTK_LABEL (label), s->str); - g_string_free (s, TRUE); -} - -static void -update_labels (void) -{ - update_one (system_bus_name_subject, system_bus_name_authorized_label); - update_one (unix_process_subject, unix_process_authorized_label); -} - -static void -on_authority_changed (PolkitAuthority *authority, - gpointer user_data) -{ - update_labels (); -} - -static void -on_button_changed (PolkitLockButton *button, - gpointer user_data) -{ - GtkWidget *entry = GTK_WIDGET (user_data); - - gtk_widget_set_sensitive (entry, - polkit_lock_button_get_is_authorized (button)); -} - -int -main (int argc, char *argv[]) -{ - GDBusConnection *bus; - GtkWidget *window; - GtkWidget *label; - GtkWidget *button; - GtkWidget *entry; - GtkWidget *vbox; - GError *error; - gchar *s; - - gtk_init (&argc, &argv); - - if (argc != 2) - { - g_printerr ("usage: %s \n", argv[0]); - goto out; - } - action_id = argv[1]; - - error = NULL; - bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL /* GCancellable* */, &error); - if (bus == NULL) - { - g_printerr ("Failed connecting to system bus: %s\n", error->message); - g_error_free (error); - goto out; - } - - window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_window_set_resizable (GTK_WINDOW (window), TRUE); - - vbox = gtk_vbox_new (FALSE, 12); - gtk_container_set_border_width (GTK_CONTAINER (window), 12); - gtk_container_add (GTK_CONTAINER (window), vbox); - - s = g_strdup_printf ("Showing PolkitLockButton for action id: %s", action_id); - label = gtk_label_new (s); - gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); - gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); - gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); - g_free (s); - - label = gtk_label_new (NULL); - gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); - gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); - gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); - system_bus_name_authorized_label = label; - - label = gtk_label_new (NULL); - gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); - gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); - gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); - unix_process_authorized_label = label; - - entry = gtk_entry_new (); - gtk_box_pack_start (GTK_BOX (vbox), entry, FALSE, FALSE, 0); - - button = polkit_lock_button_new (action_id); - g_signal_connect (button, - "changed", - G_CALLBACK (on_button_changed), - entry); - gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); - - - system_bus_name_subject = polkit_system_bus_name_new (g_dbus_connection_get_unique_name (bus)); - unix_process_subject = polkit_unix_process_new (getpid ()); - - error = NULL; - authority = polkit_authority_get_sync (NULL /* GCancellable* */, &error); - if (authority == NULL) - { - g_printerr ("Failed getting the authority: %s\n", error->message); - g_error_free (error); - goto out; - } - - g_debug ("backend: name=`%s' version=`%s' features=%d", - polkit_authority_get_backend_name (authority), - polkit_authority_get_backend_version (authority), - polkit_authority_get_backend_features (authority)); - g_signal_connect (authority, - "changed", - G_CALLBACK (on_authority_changed), - NULL); - - update_labels (); - - gtk_widget_set_sensitive (entry, - polkit_lock_button_get_is_authorized (POLKIT_LOCK_BUTTON (button))); - - gtk_widget_show_all (window); - gtk_window_present (GTK_WINDOW (window)); - - gtk_main (); - - out: - return 0; -} diff --git a/polkitgtk/polkit-gtk-1.pc.in b/polkitgtk/polkit-gtk-1.pc.in deleted file mode 100644 index fdbb6f9..0000000 --- a/polkitgtk/polkit-gtk-1.pc.in +++ /dev/null @@ -1,11 +0,0 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ - -Name: polkit-gtk-1 -Description: PolicyKit GTK+ widgets -Version: @VERSION@ -Libs: -L${libdir} -lpolkit-gtk-1 -Cflags: -I${includedir}/polkit-gtk-1 -Requires: polkit-gobject-1 diff --git a/polkitgtk/polkitgtk.h b/polkitgtk/polkitgtk.h deleted file mode 100644 index f2e513a..0000000 --- a/polkitgtk/polkitgtk.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2009 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: David Zeuthen - */ - -#ifndef __POLKIT_GTK_H -#define __POLKIT_GTK_H - -#define _POLKIT_GTK_INSIDE_POLKIT_GTK_H 1 - -#include -#include - -#undef _POLKIT_GTK_INSIDE_POLKIT_GTK_H - -#endif /* __POLKIT_GTK_H */ diff --git a/polkitgtk/polkitgtktypes.h b/polkitgtk/polkitgtktypes.h deleted file mode 100644 index 36cfd53..0000000 --- a/polkitgtk/polkitgtktypes.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2009 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: David Zeuthen - */ - -#if !defined (_POLKIT_GTK_INSIDE_POLKIT_GTK_H) && !defined (POLKIT_GTK_COMPILATION) -#error "Only can be included directly, this file may disappear or change contents." -#endif - -#ifndef __POLKIT_GTK_TYPES_H -#define __POLKIT_GTK_TYPES_H - -#include -#include - -struct _PolkitLockButton; -typedef struct _PolkitLockButton PolkitLockButton; - -#endif /* __POLKIT_GTK_TYPES_H */ diff --git a/polkitgtk/polkitlockbutton.c b/polkitgtk/polkitlockbutton.c deleted file mode 100644 index 9a128db..0000000 --- a/polkitgtk/polkitlockbutton.c +++ /dev/null @@ -1,1224 +0,0 @@ -/* - * Copyright (C) 2009 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: David Zeuthen - */ - -#include "config.h" - -#include -#include -#include - -#include "polkitlockbutton.h" - -/** - * SECTION:polkitlockbutton - * @title: PolkitLockButton - * @short_description: Widget for obtaining/revoking authorizations - * @stability: Stable - * - * #PolkitLockButton is a widget that can be used in control panels to - * allow users to obtain and revoke authorizations needed for the - * control panel UI to function. - * - * If the user lacks the authorization but authorization can be - * obtained through authentication, the widget looks like this - * - * - * - * - * - * and the user can click the button to obtain the authorization. This - * will pop up an authentication dialog. - * Once authorization is obtained, the widget changes to this - * - * - * - * - * - * and the authorization can be dropped by clicking the button. - * If the user is not able to obtain authorization at all, the widget - * looks like this - * - * - * - * - * - * If the user is authorized (either implicitly via the .policy file - * defaults or through e.g. Local Authority configuration) and no - * authentication is necessary and the Authority Implementation - * supports lock-down, the widget looks like this - * - * - * - * - * - * allowing the user to lock down the action. The lockdown can be - * removed by right clicking the button - the user can discover this - * through the tooltip. If the Authority implementation does not - * support lockdown, the widget will be hidden. - * - * Finally, if the user is not authorized but authorization can be - * obtained and the obtained authorization will be a one-shot - * authorization, the widget will be hidden. This means that any - * attempt to use the Mechanism that requires authorization for the - * specified action will always prompt for authentication. This - * condition happens exactly when - * (!polkit_lock_button_get_is_authorized() && - * polkit_lock_button_get_can_obtain() && - * !polkit_lock_button_get_is_visible()) is %TRUE. - * - * Typically #PolkitLockButton is only useful for actions where - * authorization is obtained through authentication (and retained) or - * where users are implictly authorized (cf. the defaults specified in - * the .policy file for the action) but note that - * this behavior can be overridden by the Authority implementation. - * - * The typical usage of this widget is like this: - * - * static void - * update_sensitivity_according_to_lock_button (FooBar *bar) - * { - * gboolean make_sensitive; - * - * make_sensitive = FALSE; - * if (polkit_lock_button_get_is_authorized (POLKIT_LOCK_BUTTON (bar->priv->lock_button))) - * { - * make_sensitive = TRUE; - * } - * else - * { - * /* Catch the case where authorization is one-shot - this means - * * an authentication dialog will be shown every time a widget the user - * * manipulates calls into the Mechanism. - * */ - * if (polkit_lock_button_get_can_obtain (POLKIT_LOCK_BUTTON (bar->priv->lock_button)) && - * !polkit_lock_button_get_is_visible (POLKIT_LOCK_BUTTON (bar->priv->lock_button))) - * make_sensitive = TRUE; - * } - * - * - * /* Make all widgets relying on authorization sensitive according to - * * the value of make_sensitive. - * */ - * } - * - * static void - * on_lock_button_changed (PolkitLockButton *button, - * gpointer user_data) - * { - * FooBar *bar = FOO_BAR (user_data); - * - * update_sensitivity_according_to_lock_button (bar); - * } - * - * static void - * foo_bar_init (FooBar *bar) - * { - * /* Construct other widgets */ - * - * bar->priv->lock_button = polkit_lock_button_new ("org.project.mechanism.action-name"); - * g_signal_connect (bar->priv->lock_button, - * "changed", - * G_CALLBACK (on_lock_button_changed), - * bar); - * update_sensitity_according_to_lock_button (bar); - * - * /* Pack bar->priv->lock_button into widget hierarchy */ - * } - * - */ - -struct _PolkitLockButtonPrivate -{ - PolkitAuthority *authority; - PolkitSubject *subject; - gchar *action_id; - - gchar *text_unlock; - gchar *text_lock; - gchar *text_lock_down; - gchar *text_not_authorized; - - gchar *tooltip_unlock; - gchar *tooltip_lock; - gchar *tooltip_lock_down; - gchar *tooltip_not_authorized; - - GtkWidget *button; - GtkWidget *label; - - gboolean can_obtain; - gboolean retains_after_challenge; - gboolean authorized; - gboolean hidden; - - /* is non-NULL exactly when we are authorized and have a temporary authorization */ - gchar *tmp_authz_id; - - /* This is non-NULL exactly when we have a non-interactive check outstanding */ - GCancellable *check_cancellable; - - /* This is non-NULL exactly when we have an interactive check outstanding */ - GCancellable *interactive_check_cancellable; - -}; - -enum -{ - PROP_0, - PROP_ACTION_ID, - PROP_IS_AUTHORIZED, - PROP_IS_VISIBLE, - PROP_CAN_OBTAIN, - PROP_TEXT_UNLOCK, - PROP_TEXT_LOCK, - PROP_TEXT_LOCK_DOWN, - PROP_TEXT_NOT_AUTHORIZED, - PROP_TOOLTIP_UNLOCK, - PROP_TOOLTIP_LOCK, - PROP_TOOLTIP_LOCK_DOWN, - PROP_TOOLTIP_NOT_AUTHORIZED, -}; - -enum -{ - CHANGED_SIGNAL, - LAST_SIGNAL, -}; - -static guint signals[LAST_SIGNAL] = {0, }; - -static void initiate_check (PolkitLockButton *button); -static void do_sync_check (PolkitLockButton *button); -static void update_state (PolkitLockButton *button); - -static void on_authority_changed (PolkitAuthority *authority, - gpointer user_data); - -static void on_clicked (GtkButton *button, - gpointer user_data); - -G_DEFINE_TYPE (PolkitLockButton, polkit_lock_button, GTK_TYPE_BOX); - -static void -polkit_lock_button_finalize (GObject *object) -{ - PolkitLockButton *button = POLKIT_LOCK_BUTTON (object); - - g_free (button->priv->action_id); - g_free (button->priv->tmp_authz_id); - g_object_unref (button->priv->subject); - - if (button->priv->check_cancellable != NULL) - { - g_cancellable_cancel (button->priv->check_cancellable); - g_object_unref (button->priv->check_cancellable); - } - - if (button->priv->interactive_check_cancellable != NULL) - { - g_cancellable_cancel (button->priv->interactive_check_cancellable); - g_object_unref (button->priv->interactive_check_cancellable); - } - - g_signal_handlers_disconnect_by_func (button->priv->authority, - on_authority_changed, - button); - g_object_unref (button->priv->authority); - - if (G_OBJECT_CLASS (polkit_lock_button_parent_class)->finalize != NULL) - G_OBJECT_CLASS (polkit_lock_button_parent_class)->finalize (object); -} - -static void -polkit_lock_button_get_property (GObject *object, - guint property_id, - GValue *value, - GParamSpec *pspec) -{ - PolkitLockButton *button = POLKIT_LOCK_BUTTON (object); - - switch (property_id) - { - case PROP_ACTION_ID: - g_value_set_string (value, button->priv->action_id); - break; - - case PROP_IS_AUTHORIZED: - g_value_set_boolean (value, button->priv->authorized); - break; - - case PROP_IS_VISIBLE: - g_value_set_boolean (value, !button->priv->hidden); - break; - - case PROP_CAN_OBTAIN: - g_value_set_boolean (value, button->priv->can_obtain); - break; - - case PROP_TEXT_UNLOCK: - g_value_set_string (value, button->priv->text_unlock); - break; - - case PROP_TEXT_LOCK: - g_value_set_string (value, button->priv->text_lock); - break; - - case PROP_TEXT_LOCK_DOWN: - g_value_set_string (value, button->priv->text_lock_down); - break; - - case PROP_TEXT_NOT_AUTHORIZED: - g_value_set_string (value, button->priv->text_not_authorized); - break; - - case PROP_TOOLTIP_UNLOCK: - g_value_set_string (value, button->priv->tooltip_unlock); - break; - - case PROP_TOOLTIP_LOCK: - g_value_set_string (value, button->priv->tooltip_lock); - break; - - case PROP_TOOLTIP_LOCK_DOWN: - g_value_set_string (value, button->priv->tooltip_lock_down); - break; - - case PROP_TOOLTIP_NOT_AUTHORIZED: - g_value_set_string (value, button->priv->tooltip_not_authorized); - break; - - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - break; - } -} - -static void -polkit_lock_button_set_property (GObject *object, - guint property_id, - const GValue *value, - GParamSpec *pspec) -{ - PolkitLockButton *button = POLKIT_LOCK_BUTTON (object); - - switch (property_id) - { - case PROP_ACTION_ID: - button->priv->action_id = g_value_dup_string (value); - break; - - case PROP_TEXT_UNLOCK: - polkit_lock_button_set_unlock_text (button, g_value_get_string (value)); - break; - - case PROP_TEXT_LOCK: - polkit_lock_button_set_lock_text (button, g_value_get_string (value)); - break; - - case PROP_TEXT_LOCK_DOWN: - polkit_lock_button_set_lock_down_text (button, g_value_get_string (value)); - break; - - case PROP_TEXT_NOT_AUTHORIZED: - polkit_lock_button_set_not_authorized_text (button, g_value_get_string (value)); - break; - - case PROP_TOOLTIP_UNLOCK: - polkit_lock_button_set_unlock_tooltip (button, g_value_get_string (value)); - break; - - case PROP_TOOLTIP_LOCK: - polkit_lock_button_set_lock_tooltip (button, g_value_get_string (value)); - break; - - case PROP_TOOLTIP_LOCK_DOWN: - polkit_lock_button_set_lock_down_tooltip (button, g_value_get_string (value)); - break; - - case PROP_TOOLTIP_NOT_AUTHORIZED: - polkit_lock_button_set_not_authorized_tooltip (button, g_value_get_string (value)); - break; - - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - break; - } -} - - -static void -polkit_lock_button_init (PolkitLockButton *button) -{ - button->priv = G_TYPE_INSTANCE_GET_PRIVATE (button, - POLKIT_TYPE_LOCK_BUTTON, - PolkitLockButtonPrivate); - -} - -static void -polkit_lock_button_constructed (GObject *object) -{ - PolkitLockButton *button = POLKIT_LOCK_BUTTON (object); - GError *error; - - gtk_box_set_spacing (GTK_BOX (button), 2); - - /* TODO: should be async+failable (e.g. GAsyncInitable) instead of this */ - error = NULL; - button->priv->authority = polkit_authority_get_sync (NULL /* GCancellable* */, &error); - if (button->priv->authority == NULL) - { - g_critical ("Error getting authority: %s", error->message); - g_error_free (error); - } - g_signal_connect (button->priv->authority, - "changed", - G_CALLBACK (on_authority_changed), - button); - - button->priv->button = gtk_button_new (); - gtk_button_set_relief (GTK_BUTTON (button->priv->button), GTK_RELIEF_NONE); - /* image is set in update_state() */ - g_signal_connect (button->priv->button, - "clicked", - G_CALLBACK (on_clicked), - button); - - gtk_box_pack_start (GTK_BOX (button), - button->priv->button, - FALSE, - FALSE, - 0); - - button->priv->label = gtk_label_new (""); - gtk_box_pack_start (GTK_BOX (button), - button->priv->label, - FALSE, - FALSE, - 0); - - /* take control of visibility of child widgets */ - gtk_widget_set_no_show_all (button->priv->button, TRUE); - gtk_widget_set_no_show_all (button->priv->label, TRUE); - - if (button->priv->subject == NULL) - { - button->priv->subject = polkit_unix_process_new (getpid ()); - } - - /* synchronously check on construction - TODO: we could implement GAsyncInitable - * in the future to avoid this sync check - */ - do_sync_check (button); - - update_state (button); - - if (G_OBJECT_CLASS (polkit_lock_button_parent_class)->constructed != NULL) - G_OBJECT_CLASS (polkit_lock_button_parent_class)->constructed (object); -} - -static void -polkit_lock_button_class_init (PolkitLockButtonClass *klass) -{ - GObjectClass *gobject_class = G_OBJECT_CLASS (klass); - - gobject_class->finalize = polkit_lock_button_finalize; - gobject_class->get_property = polkit_lock_button_get_property; - gobject_class->set_property = polkit_lock_button_set_property; - gobject_class->constructed = polkit_lock_button_constructed; - - g_type_class_add_private (klass, sizeof (PolkitLockButtonPrivate)); - - /** - * PolkitLockButton:action-id: - * - * The action identifier to use for the button. - */ - g_object_class_install_property (gobject_class, - PROP_ACTION_ID, - g_param_spec_string ("action-id", - _("Action Identifier"), - _("The action identifier to use for the button"), - NULL, - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:is-authorized: - * - * Whether the process is authorized. - */ - g_object_class_install_property (gobject_class, - PROP_IS_AUTHORIZED, - g_param_spec_boolean ("is-authorized", - _("Is Authorized"), - _("Whether the process is authorized"), - FALSE, - G_PARAM_READABLE | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:is-visible: - * - * Whether the widget is visible. - */ - g_object_class_install_property (gobject_class, - PROP_IS_VISIBLE, - g_param_spec_boolean ("is-visible", - _("Is Visible"), - _("Whether the widget is visible"), - TRUE, - G_PARAM_READABLE | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:can-obtain: - * - * Whether authorization can be obtained. - */ - g_object_class_install_property (gobject_class, - PROP_CAN_OBTAIN, - g_param_spec_boolean ("can-obtain", - _("Can Obtain"), - _("Whether authorization can be obtained"), - FALSE, - G_PARAM_READABLE | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:text-unlock: - * - * The text to display when prompting the user to unlock. - */ - g_object_class_install_property (gobject_class, - PROP_TEXT_UNLOCK, - g_param_spec_string ("text-unlock", - _("Unlock Text"), - _("The text to display when prompting the user to unlock."), - _("Click to make changes"), - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:tooltip-unlock: - * - * The tooltip to display when prompting the user to unlock. - */ - g_object_class_install_property (gobject_class, - PROP_TOOLTIP_UNLOCK, - g_param_spec_string ("tooltip-unlock", - _("Unlock Tooltip"), - _("The tooltip to display when prompting the user to unlock."), - _("Authentication is needed to make changes."), - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:text-lock: - * - * The text to display when prompting the user to lock. - */ - g_object_class_install_property (gobject_class, - PROP_TEXT_LOCK, - g_param_spec_string ("text-lock", - _("Lock Text"), - _("The text to display when prompting the user to lock."), - _("Click to prevent changes"), - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:tooltip-lock: - * - * The tooltip to display when prompting the user to lock. - */ - g_object_class_install_property (gobject_class, - PROP_TOOLTIP_LOCK, - g_param_spec_string ("tooltip-lock", - _("Lock Tooltip"), - _("The tooltip to display when prompting the user to lock."), - _("To prevent further changes, click the lock."), - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:text-lock-down: - * - * The text to display when prompting the user to lock down the action for all users. - */ - g_object_class_install_property (gobject_class, - PROP_TEXT_LOCK_DOWN, - g_param_spec_string ("text-lock-down", - _("Lock Down Text"), - _("The text to display when prompting the user to lock down the action for all users."), - _("Click to lock down"), - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:tooltip-lock-down: - * - * The tooltip to display when prompting the user to lock down the action for all users. - */ - g_object_class_install_property (gobject_class, - PROP_TOOLTIP_LOCK_DOWN, - g_param_spec_string ("tooltip-lock-down", - _("Lock Down Tooltip"), - _("The tooltip to display when prompting the user to lock down the action for all users."), - _("To prevent users without administrative privileges from making changes, click the lock."), - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:text-not-authorized: - * - * The text to display when the user cannot obtain authorization through authentication. - */ - g_object_class_install_property (gobject_class, - PROP_TEXT_NOT_AUTHORIZED, - g_param_spec_string ("text-not-authorized", - _("Unlock Text"), - _("The text to display when the user cannot obtain authorization through authentication."), - _("Not authorized to make changes"), - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton:tooltip-not-authorized: - * - * The tooltip to display when the user cannot obtain authorization through authentication. - */ - g_object_class_install_property (gobject_class, - PROP_TOOLTIP_NOT_AUTHORIZED, - g_param_spec_string ("tooltip-not-authorized", - _("Unlock Tooltip"), - _("The tooltip to display when the user cannot obtain authorization through authentication."), - _("System policy prevents changes. Contact your system administator."), - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT | - G_PARAM_STATIC_NAME | - G_PARAM_STATIC_NICK | - G_PARAM_STATIC_BLURB)); - - /** - * PolkitLockButton::changed: - * @button: A #PolkitLockButton. - * - * Emitted when something on @button changes. - */ - signals[CHANGED_SIGNAL] = g_signal_new ("changed", - G_TYPE_FROM_CLASS (klass), - G_SIGNAL_RUN_LAST, - G_STRUCT_OFFSET (PolkitLockButtonClass, changed), - NULL, - NULL, - g_cclosure_marshal_VOID__VOID, - G_TYPE_NONE, - 0); - -} - -/** - * polkit_lock_button_new: - * @action_id: An action identifer. - * - * Constructs a #PolkitLockButton for @action_id. - * - * Returns: A #PolkitLockButton. - */ -GtkWidget * -polkit_lock_button_new (const gchar *action_id) -{ - g_return_val_if_fail (action_id != NULL, NULL); - - return GTK_WIDGET (g_object_new (POLKIT_TYPE_LOCK_BUTTON, - "action-id", action_id, - NULL)); -} - -static void -update_state (PolkitLockButton *button) -{ - const gchar *text; - const gchar *tooltip; - gboolean sensitive; - gboolean old_hidden; - GtkWidget *image; - - old_hidden = button->priv->hidden; - button->priv->hidden = FALSE; - - if (button->priv->authorized) - { - text = button->priv->text_lock; - tooltip = button->priv->tooltip_lock; - sensitive = TRUE; - /* if the authorization isn't temporary => ask if user wants to lock the authorization down the - * authority we're using has that capability - */ - if (button->priv->tmp_authz_id == NULL) - { - //button->priv->hidden = TRUE; - } - } - else - { - if (button->priv->can_obtain && button->priv->retains_after_challenge) - { - /* can retain and obtain authorization => show the unlock button */ - text = button->priv->text_unlock; - tooltip = button->priv->tooltip_unlock; - g_free (button->priv->tmp_authz_id); - button->priv->tmp_authz_id = NULL; - sensitive = TRUE; - } - else - { - if (button->priv->can_obtain) - { - /* we can obtain authorization, we just can't retain it => hidden */ - button->priv->hidden = TRUE; - } - else - { - /* cannot even obtain authorization => tell user he can't have a pony */ - text = button->priv->text_not_authorized; - tooltip = button->priv->tooltip_not_authorized; - g_free (button->priv->tmp_authz_id); - button->priv->tmp_authz_id = NULL; - sensitive = FALSE; - } - } - } - - image = gtk_image_new_from_icon_name (button->priv->authorized ? "changes-allow" : "changes-prevent", - GTK_ICON_SIZE_SMALL_TOOLBAR); - gtk_button_set_image (GTK_BUTTON (button->priv->button), image); - gtk_label_set_text (GTK_LABEL (button->priv->label), text); - gtk_widget_set_sensitive (button->priv->button, sensitive); - - gtk_widget_set_tooltip_markup (GTK_WIDGET (button->priv->label), tooltip); - gtk_widget_set_tooltip_markup (GTK_WIDGET (button->priv->button), tooltip); - - if (button->priv->hidden) - { - gtk_widget_hide (button->priv->button); - gtk_widget_hide (button->priv->label); - } - else - { - gtk_widget_show (button->priv->button); - gtk_widget_show (button->priv->label); - } - - if (old_hidden != button->priv->hidden) - g_object_notify (G_OBJECT (button), "is-visible"); -} - -static void -on_authority_changed (PolkitAuthority *authority, - gpointer user_data) -{ - PolkitLockButton *button = POLKIT_LOCK_BUTTON (user_data); - initiate_check (button); -} - -static void -process_result (PolkitLockButton *button, - PolkitAuthorizationResult *result) -{ - gboolean old_can_obtain; - gboolean old_authorized; - - old_can_obtain = button->priv->can_obtain; - old_authorized = button->priv->authorized; - button->priv->can_obtain = polkit_authorization_result_get_is_challenge (result); - button->priv->authorized = polkit_authorization_result_get_is_authorized (result); - - /* save the temporary authorization id */ - g_free (button->priv->tmp_authz_id); - button->priv->tmp_authz_id = g_strdup (polkit_authorization_result_get_temporary_authorization_id (result)); - button->priv->retains_after_challenge = polkit_authorization_result_get_retains_authorization (result); - - update_state (button); - - if (old_can_obtain != button->priv->can_obtain || - old_authorized != button->priv->authorized) - { - g_signal_emit (button, - signals[CHANGED_SIGNAL], - 0); - } - - if (old_can_obtain != button->priv->can_obtain) - g_object_notify (G_OBJECT (button), "can-obtain"); - - if (old_authorized != button->priv->authorized) - g_object_notify (G_OBJECT (button), "is-authorized"); -} - -static void -check_cb (GObject *source_object, - GAsyncResult *res, - gpointer user_data) -{ - PolkitAuthority *authority = POLKIT_AUTHORITY (source_object); - PolkitLockButton *button = POLKIT_LOCK_BUTTON (user_data); - PolkitAuthorizationResult *result; - GError *error; - - error = NULL; - result = polkit_authority_check_authorization_finish (authority, - res, - &error); - if (error != NULL) - { - g_warning ("Error checking authorization for action id `%s': %s", - button->priv->action_id, - error->message); - g_error_free (error); - } - else - { - process_result (button, result); - } - - if (result != NULL) - g_object_unref (result); - - if (button->priv->check_cancellable != NULL) - { - g_object_unref (button->priv->check_cancellable); - button->priv->check_cancellable = NULL; - } -} - -static void -initiate_check (PolkitLockButton *button) -{ - - /* if we have a check pending already, then do nothing */ - if (button->priv->check_cancellable != NULL) - goto out; - - button->priv->check_cancellable = g_cancellable_new (); - - polkit_authority_check_authorization (button->priv->authority, - button->priv->subject, - button->priv->action_id, - NULL, /* PolkitDetails */ - POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE, - button->priv->check_cancellable, - check_cb, - button); - - out: - ; -} - -static void -do_sync_check (PolkitLockButton *button) -{ - GError *error; - PolkitAuthorizationResult *result; - - error = NULL; - result = polkit_authority_check_authorization_sync (button->priv->authority, - button->priv->subject, - button->priv->action_id, - NULL, /* PolkitDetails */ - POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE, - NULL, /* cancellable */ - &error); - if (error != NULL) - { - g_warning ("Error sync-checking authorization for action id `%s': %s", - button->priv->action_id, - error->message); - g_error_free (error); - } - else - { - process_result (button, result); - } - - if (result != NULL) - g_object_unref (result); -} - -static void -interactive_check_cb (GObject *source_object, - GAsyncResult *res, - gpointer user_data) -{ - PolkitAuthority *authority = POLKIT_AUTHORITY (source_object); - PolkitLockButton *button = POLKIT_LOCK_BUTTON (user_data); - PolkitAuthorizationResult *result; - PolkitDetails *details; - GError *error; - - error = NULL; - result = polkit_authority_check_authorization_finish (authority, - res, - &error); - if (error != NULL) - { - g_warning ("Error obtaining authorization for action id `%s': %s", - button->priv->action_id, - error->message); - g_error_free (error); - goto out; - } - - /* state is updated in the ::changed signal handler */ - - /* save the temporary authorization id */ - details = polkit_authorization_result_get_details (result); - if (details != NULL) - { - button->priv->tmp_authz_id = g_strdup (polkit_details_lookup (details, - "polkit.temporary_authorization_id")); - } - - out: - if (result != NULL) - g_object_unref (result); - - if (button->priv->interactive_check_cancellable != NULL) - { - g_object_unref (button->priv->interactive_check_cancellable); - button->priv->interactive_check_cancellable = NULL; - } -} - -static void -on_clicked (GtkButton *_button, - gpointer user_data) -{ - PolkitLockButton *button = POLKIT_LOCK_BUTTON (user_data); - - if (!button->priv->authorized && button->priv->can_obtain) - { - /* if we already have a pending interactive check, then do nothing */ - if (button->priv->interactive_check_cancellable != NULL) - goto out; - - button->priv->interactive_check_cancellable = g_cancellable_new (); - - polkit_authority_check_authorization (button->priv->authority, - button->priv->subject, - button->priv->action_id, - NULL, /* PolkitDetails */ - POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION, - button->priv->interactive_check_cancellable, - interactive_check_cb, - button); - } - else if (button->priv->authorized && button->priv->tmp_authz_id != NULL) - { - polkit_authority_revoke_temporary_authorization_by_id (button->priv->authority, - button->priv->tmp_authz_id, - NULL, /* cancellable */ - NULL, /* callback */ - NULL); /* user_data */ - } - - out: - - update_state (button); -} - -/** - * polkit_lock_button_get_is_authorized: - * @button: A #PolkitLockButton. - * - * Gets whether the process is authorized. - * - * Returns: %TRUE if authorized. - */ -gboolean -polkit_lock_button_get_is_authorized (PolkitLockButton *button) -{ - g_return_val_if_fail (POLKIT_IS_LOCK_BUTTON (button), FALSE); - return button->priv->authorized; -} - -/** - * polkit_lock_button_get_can_obtain: - * @button: A #PolkitLockButton. - * - * Gets whether the user can obtain an authorization through - * authentication. - * - * Returns: Whether the authorization is obtainable. - */ -gboolean -polkit_lock_button_get_can_obtain (PolkitLockButton *button) -{ - g_return_val_if_fail (POLKIT_IS_LOCK_BUTTON (button), FALSE); - return button->priv->can_obtain; -} - -/** - * polkit_lock_button_get_is_visible: - * @button: A #PolkitLockButton. - * - * Gets whether @button is currently being shown. - * - * Returns: %TRUE if @button has any visible UI elements. - */ -gboolean -polkit_lock_button_get_is_visible (PolkitLockButton *button) -{ - g_return_val_if_fail (POLKIT_IS_LOCK_BUTTON (button), FALSE); - return ! button->priv->hidden; -} - -/** - * polkit_lock_button_set_unlock_text: - * @button: A #PolkitLockButton. - * @text: The text to set. - * - * Makes @button display @text when not authorized and clicking the button will obtain the authorization. - */ -void -polkit_lock_button_set_unlock_text (PolkitLockButton *button, - const gchar *text) -{ - g_return_if_fail (POLKIT_IS_LOCK_BUTTON (button)); - g_return_if_fail (text != NULL); - - if (button->priv->text_unlock != NULL) - { - button->priv->text_unlock = g_strdup (text); - update_state (button); - } - else - { - button->priv->text_unlock = g_strdup (text); - } -} - -/** - * polkit_lock_button_set_lock_text: - * @button: A #PolkitLockButton. - * @text: The text to set. - * - * Makes @button display @text when authorized and clicking the button will revoke the authorization. - */ -void -polkit_lock_button_set_lock_text (PolkitLockButton *button, - const gchar *text) -{ - g_return_if_fail (POLKIT_IS_LOCK_BUTTON (button)); - g_return_if_fail (text != NULL); - - if (button->priv->text_lock != NULL) - { - button->priv->text_lock = g_strdup (text); - update_state (button); - } - else - { - button->priv->text_lock = g_strdup (text); - } -} - -/** - * polkit_lock_button_set_lock_down_text: - * @button: A #PolkitLockButton. - * @text: The text to set. - * - * Makes @button display @text when authorized and it is possible to lock down the action. - */ -void -polkit_lock_button_set_lock_down_text (PolkitLockButton *button, - const gchar *text) -{ - g_return_if_fail (POLKIT_IS_LOCK_BUTTON (button)); - g_return_if_fail (text != NULL); - - if (button->priv->text_lock_down != NULL) - { - button->priv->text_lock_down = g_strdup (text); - update_state (button); - } - else - { - button->priv->text_lock_down = g_strdup (text); - } -} - -/** - * polkit_lock_button_set_not_authorized_text: - * @button: A #PolkitLockButton. - * @text: The text to set. - * - * Makes @button display @text when an authorization cannot be obtained. - */ -void -polkit_lock_button_set_not_authorized_text (PolkitLockButton *button, - const gchar *text) -{ - g_return_if_fail (POLKIT_IS_LOCK_BUTTON (button)); - g_return_if_fail (text != NULL); - - if (button->priv->text_not_authorized != NULL) - { - button->priv->text_not_authorized = g_strdup (text); - update_state (button); - } - else - { - button->priv->text_not_authorized = g_strdup (text); - } -} - - -/** - * polkit_lock_button_set_unlock_tooltip: - * @button: A #PolkitLockButton. - * @tooltip: The text of the tooltip. - * - * Makes @button display @tooltip when not authorized and clicking the button will obtain the authorization. - */ -void -polkit_lock_button_set_unlock_tooltip (PolkitLockButton *button, - const gchar *tooltip) -{ - g_return_if_fail (POLKIT_IS_LOCK_BUTTON (button)); - g_return_if_fail (tooltip != NULL); - - if (button->priv->tooltip_unlock != NULL) - { - button->priv->tooltip_unlock = g_strdup (tooltip); - update_state (button); - } - else - { - button->priv->tooltip_unlock = g_strdup (tooltip); - } -} - -/** - * polkit_lock_button_set_lock_tooltip: - * @button: A #PolkitLockButton. - * @tooltip: The text of the tooltip. - * - * Makes @button display @tooltip when authorized and clicking the button will revoke the authorization. - */ -void -polkit_lock_button_set_lock_tooltip (PolkitLockButton *button, - const gchar *tooltip) -{ - g_return_if_fail (POLKIT_IS_LOCK_BUTTON (button)); - g_return_if_fail (tooltip != NULL); - - if (button->priv->tooltip_lock != NULL) - { - button->priv->tooltip_lock = g_strdup (tooltip); - update_state (button); - } - else - { - button->priv->tooltip_lock = g_strdup (tooltip); - } -} - -/** - * polkit_lock_button_set_lock_down_tooltip: - * @button: A #PolkitLockButton. - * @tooltip: The text of the tooltip. - * - * Makes @button display @tooltip when authorized and it is possible to lock down the action. - */ -void -polkit_lock_button_set_lock_down_tooltip (PolkitLockButton *button, - const gchar *tooltip) -{ - g_return_if_fail (POLKIT_IS_LOCK_BUTTON (button)); - g_return_if_fail (tooltip != NULL); - - if (button->priv->tooltip_lock_down != NULL) - { - button->priv->tooltip_lock_down = g_strdup (tooltip); - update_state (button); - } - else - { - button->priv->tooltip_lock_down = g_strdup (tooltip); - } -} - -/** - * polkit_lock_button_set_not_authorized_tooltip: - * @button: A #PolkitLockButton. - * @tooltip: The text of the tooltip. - * - * Makes @button display @tooltip when an authorization cannot be obtained. - */ -void -polkit_lock_button_set_not_authorized_tooltip (PolkitLockButton *button, - const gchar *tooltip) -{ - g_return_if_fail (POLKIT_IS_LOCK_BUTTON (button)); - g_return_if_fail (tooltip != NULL); - - if (button->priv->tooltip_not_authorized != NULL) - { - button->priv->tooltip_not_authorized = g_strdup (tooltip); - update_state (button); - } - else - { - button->priv->tooltip_not_authorized = g_strdup (tooltip); - } -} diff --git a/polkitgtk/polkitlockbutton.h b/polkitgtk/polkitlockbutton.h deleted file mode 100644 index eb93515..0000000 --- a/polkitgtk/polkitlockbutton.h +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (C) 2009 Red Hat, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General - * Public License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: David Zeuthen - */ - -#if !defined (_POLKIT_GTK_INSIDE_POLKIT_GTK_H) && !defined (POLKIT_GTK_COMPILATION) -#error "Only can be included directly, this file may disappear or change contents." -#endif - -#ifndef POLKIT_LOCK_BUTTON_H -#define POLKIT_LOCK_BUTTON_H - -#include - -#define POLKIT_TYPE_LOCK_BUTTON (polkit_lock_button_get_type ()) -#define POLKIT_LOCK_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_TYPE_LOCK_BUTTON, PolkitLockButton)) -#define POLKIT_LOCK_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), POLKIT_LOCK_BUTTON, PolkitLockButtonClass)) -#define POLKIT_IS_LOCK_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_TYPE_LOCK_BUTTON)) -#define POLKIT_IS_LOCK_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_TYPE_LOCK_BUTTON)) -#define POLKIT_LOCK_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_TYPE_LOCK_BUTTON, PolkitLockButtonClass)) - -typedef struct _PolkitLockButtonClass PolkitLockButtonClass; -typedef struct _PolkitLockButtonPrivate PolkitLockButtonPrivate; - -/** - * PolkitLockButton: - * @parent: The parent instance. - * - * The #PolkitLockButton structure contains only private data and - * should be accessed using the provided API. - */ -struct _PolkitLockButton -{ - GtkBox parent; - - /*< private >*/ - PolkitLockButtonPrivate *priv; -}; - -/** - * PolkitLockButtonClass: - * @parent_class: The parent class structure. - * @changed: Signal class handler for the #PolkitLockButton::changed signal. - * - * Class structure for #PolkitLockButton. - */ -struct _PolkitLockButtonClass -{ - GtkBoxClass parent_class; - - /* Signals */ - void (*changed) (PolkitLockButton *button); - - /*< private >*/ - /* Padding for future expansion */ - void (*_polkit_reserved0) (void); - void (*_polkit_reserved1) (void); - void (*_polkit_reserved2) (void); - void (*_polkit_reserved3) (void); - void (*_polkit_reserved4) (void); - void (*_polkit_reserved5) (void); - void (*_polkit_reserved6) (void); - void (*_polkit_reserved7) (void); - void (*_polkit_reserved8) (void); - void (*_polkit_reserved9) (void); - void (*_polkit_reserved10) (void); - void (*_polkit_reserved11) (void); - void (*_polkit_reserved12) (void); - void (*_polkit_reserved13) (void); - void (*_polkit_reserved14) (void); - void (*_polkit_reserved15) (void); -}; - - -GType polkit_lock_button_get_type (void) G_GNUC_CONST; -GtkWidget *polkit_lock_button_new (const gchar *action_id); -gboolean polkit_lock_button_get_is_authorized (PolkitLockButton *button); -gboolean polkit_lock_button_get_is_visible (PolkitLockButton *button); -gboolean polkit_lock_button_get_can_obtain (PolkitLockButton *button); - -void polkit_lock_button_set_unlock_text (PolkitLockButton *button, - const gchar *text); -void polkit_lock_button_set_unlock_tooltip (PolkitLockButton *button, - const gchar *tooltip); - -void polkit_lock_button_set_lock_text (PolkitLockButton *button, - const gchar *text); -void polkit_lock_button_set_lock_tooltip (PolkitLockButton *button, - const gchar *tooltip); - -void polkit_lock_button_set_lock_down_text (PolkitLockButton *button, - const gchar *text); -void polkit_lock_button_set_lock_down_tooltip (PolkitLockButton *button, - const gchar *tooltip); - -void polkit_lock_button_set_not_authorized_text (PolkitLockButton *button, - const gchar *text); -void polkit_lock_button_set_not_authorized_tooltip (PolkitLockButton *button, - const gchar *tooltip); - -#endif /* POLKIT_LOCK_BUTTON_H */ diff --git a/src/Makefile.am b/src/Makefile.am index 909624e..6f12d4c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -4,13 +4,6 @@ FULL_LIBEXECDIR=$(libexecdir) libexec_PROGRAMS = polkit-gnome-authentication-agent-1 - -polkitgnomemarshal.h polkitgnomemarshal.c : Makefile.am $(srcdir)/polkitgnomemarshal.list - glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --header > polkitgnomemarshal.h.tmp && mv polkitgnomemarshal.h.tmp polkitgnomemarshal.h - (echo "#include \"polkitgnomemarshal.h\""; glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --body) > polkitgnomemarshal.c.tmp && mv polkitgnomemarshal.c.tmp polkitgnomemarshal.c - touch polkitgnomemarshal.stamp - -BUILT_SOURCES = polkitgnomemarshal.h polkitgnomemarshal.c polkit_gnome_authentication_agent_1_SOURCES = \ polkitgnomelistener.h polkitgnomelistener.c \ @@ -47,7 +40,5 @@ $(POLKIT_GOBJECT_LIBS) \ $(INTLLIBS) -EXTRA_DIST = polkitgnomemarshal.list - clean-local : rm -f *~ diff --git a/src/Makefile.in b/src/Makefile.in index bf6f58a..be1a5ec 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -47,13 +47,12 @@ CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(libexecdir)" PROGRAMS = $(libexec_PROGRAMS) -am__objects_1 = polkit_gnome_authentication_agent_1-polkitgnomemarshal.$(OBJEXT) -am__objects_2 = +am__objects_1 = am_polkit_gnome_authentication_agent_1_OBJECTS = polkit_gnome_authentication_agent_1-polkitgnomelistener.$(OBJEXT) \ polkit_gnome_authentication_agent_1-polkitgnomeauthenticator.$(OBJEXT) \ polkit_gnome_authentication_agent_1-polkitgnomeauthenticationdialog.$(OBJEXT) \ polkit_gnome_authentication_agent_1-main.$(OBJEXT) \ - $(am__objects_1) $(am__objects_2) + $(am__objects_1) polkit_gnome_authentication_agent_1_OBJECTS = \ $(am_polkit_gnome_authentication_agent_1_OBJECTS) am__DEPENDENCIES_1 = @@ -141,9 +140,10 @@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTKDOC_CHECK = @GTKDOC_CHECK@ +GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ +GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ GTKDOC_MKPDF = @GTKDOC_MKPDF@ GTKDOC_REBASE = @GTKDOC_REBASE@ -GTK_API_VERSION = @GTK_API_VERSION@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ G_IR_COMPILER = @G_IR_COMPILER@ @@ -270,7 +270,6 @@ top_srcdir = @top_srcdir@ NULL = FULL_LIBEXECDIR = $(libexecdir) -BUILT_SOURCES = polkitgnomemarshal.h polkitgnomemarshal.c polkit_gnome_authentication_agent_1_SOURCES = \ polkitgnomelistener.h polkitgnomelistener.c \ polkitgnomeauthenticator.h polkitgnomeauthenticator.c \ @@ -306,9 +305,7 @@ $(POLKIT_GOBJECT_LIBS) \ $(INTLLIBS) -EXTRA_DIST = polkitgnomemarshal.list -all: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) all-am +all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj @@ -399,7 +396,6 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomeauthenticationdialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomeauthenticator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomelistener.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @@ -488,22 +484,6 @@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='polkit_gnome_authentication_agent_1-main.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authentication_agent_1-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` - -polkit_gnome_authentication_agent_1-polkitgnomemarshal.o: polkitgnomemarshal.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -MT polkit_gnome_authentication_agent_1-polkitgnomemarshal.o -MD -MP -MF $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.o `test -f 'polkitgnomemarshal.c' || echo '$(srcdir)/'`polkitgnomemarshal.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkitgnomemarshal.c' object='polkit_gnome_authentication_agent_1-polkitgnomemarshal.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.o `test -f 'polkitgnomemarshal.c' || echo '$(srcdir)/'`polkitgnomemarshal.c - -polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj: polkitgnomemarshal.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -MT polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj -MD -MP -MF $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj `if test -f 'polkitgnomemarshal.c'; then $(CYGPATH_W) 'polkitgnomemarshal.c'; else $(CYGPATH_W) '$(srcdir)/polkitgnomemarshal.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Po -@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkitgnomemarshal.c' object='polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj `if test -f 'polkitgnomemarshal.c'; then $(CYGPATH_W) 'polkitgnomemarshal.c'; else $(CYGPATH_W) '$(srcdir)/polkitgnomemarshal.c'; fi` mostlyclean-libtool: -rm -f *.lo @@ -594,15 +574,13 @@ fi; \ done check-am: all-am -check: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) check-am +check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(libexecdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done -install: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) install-am +install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am @@ -627,7 +605,6 @@ maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-generic clean-libexecPROGRAMS clean-libtool \ @@ -699,7 +676,7 @@ uninstall-am: uninstall-libexecPROGRAMS -.MAKE: all check install install-am install-strip +.MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libexecPROGRAMS clean-libtool clean-local ctags \ @@ -717,11 +694,6 @@ uninstall-libexecPROGRAMS -polkitgnomemarshal.h polkitgnomemarshal.c : Makefile.am $(srcdir)/polkitgnomemarshal.list - glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --header > polkitgnomemarshal.h.tmp && mv polkitgnomemarshal.h.tmp polkitgnomemarshal.h - (echo "#include \"polkitgnomemarshal.h\""; glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --body) > polkitgnomemarshal.c.tmp && mv polkitgnomemarshal.c.tmp polkitgnomemarshal.c - touch polkitgnomemarshal.stamp - clean-local : rm -f *~ diff --git a/src/polkitgnomeauthenticator.c b/src/polkitgnomeauthenticator.c index 698796f..3eeb604 100644 --- a/src/polkitgnomeauthenticator.c +++ b/src/polkitgnomeauthenticator.c @@ -32,7 +32,6 @@ #include "polkitgnomeauthenticator.h" #include "polkitgnomeauthenticationdialog.h" -#include "polkitgnomemarshal.h" struct _PolkitGnomeAuthenticator { @@ -138,7 +137,7 @@ 0, /* class offset */ NULL, /* accumulator */ NULL, /* accumulator data */ - _polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN, + NULL, /* use generic marshaller */ G_TYPE_NONE, 2, G_TYPE_BOOLEAN, diff --git a/src/polkitgnomelistener.c b/src/polkitgnomelistener.c index 21de92f..a470b95 100644 --- a/src/polkitgnomelistener.c +++ b/src/polkitgnomelistener.c @@ -161,7 +161,7 @@ g_simple_async_result_set_error (data->simple, POLKIT_ERROR, POLKIT_ERROR_CANCELLED, - _("Authentation dialog was dismissed by the user")); + _("Authentication dialog was dismissed by the user")); } g_simple_async_result_complete (data->simple); g_object_unref (data->simple); diff --git a/src/polkitgnomemarshal.c b/src/polkitgnomemarshal.c deleted file mode 100644 index 79c5b93..0000000 --- a/src/polkitgnomemarshal.c +++ /dev/null @@ -1,89 +0,0 @@ -#include "polkitgnomemarshal.h" - -#include - - -#ifdef G_ENABLE_DEBUG -#define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) -#define g_marshal_value_peek_char(v) g_value_get_char (v) -#define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) -#define g_marshal_value_peek_int(v) g_value_get_int (v) -#define g_marshal_value_peek_uint(v) g_value_get_uint (v) -#define g_marshal_value_peek_long(v) g_value_get_long (v) -#define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) -#define g_marshal_value_peek_int64(v) g_value_get_int64 (v) -#define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) -#define g_marshal_value_peek_enum(v) g_value_get_enum (v) -#define g_marshal_value_peek_flags(v) g_value_get_flags (v) -#define g_marshal_value_peek_float(v) g_value_get_float (v) -#define g_marshal_value_peek_double(v) g_value_get_double (v) -#define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) -#define g_marshal_value_peek_param(v) g_value_get_param (v) -#define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) -#define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) -#define g_marshal_value_peek_object(v) g_value_get_object (v) -#define g_marshal_value_peek_variant(v) g_value_get_variant (v) -#else /* !G_ENABLE_DEBUG */ -/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. - * Do not access GValues directly in your code. Instead, use the - * g_value_get_*() functions - */ -#define g_marshal_value_peek_boolean(v) (v)->data[0].v_int -#define g_marshal_value_peek_char(v) (v)->data[0].v_int -#define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint -#define g_marshal_value_peek_int(v) (v)->data[0].v_int -#define g_marshal_value_peek_uint(v) (v)->data[0].v_uint -#define g_marshal_value_peek_long(v) (v)->data[0].v_long -#define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong -#define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 -#define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 -#define g_marshal_value_peek_enum(v) (v)->data[0].v_long -#define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong -#define g_marshal_value_peek_float(v) (v)->data[0].v_float -#define g_marshal_value_peek_double(v) (v)->data[0].v_double -#define g_marshal_value_peek_string(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_param(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_object(v) (v)->data[0].v_pointer -#define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer -#endif /* !G_ENABLE_DEBUG */ - - -/* VOID:BOOLEAN,BOOLEAN (./polkitgnomemarshal.list:1) */ -void -_polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN (GClosure *closure, - GValue *return_value G_GNUC_UNUSED, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint G_GNUC_UNUSED, - gpointer marshal_data) -{ - typedef void (*GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (gpointer data1, - gboolean arg_1, - gboolean arg_2, - gpointer data2); - register GMarshalFunc_VOID__BOOLEAN_BOOLEAN callback; - register GCClosure *cc = (GCClosure*) closure; - register gpointer data1, data2; - - g_return_if_fail (n_param_values == 3); - - if (G_CCLOSURE_SWAP_DATA (closure)) - { - data1 = closure->data; - data2 = g_value_peek_pointer (param_values + 0); - } - else - { - data1 = g_value_peek_pointer (param_values + 0); - data2 = closure->data; - } - callback = (GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback); - - callback (data1, - g_marshal_value_peek_boolean (param_values + 1), - g_marshal_value_peek_boolean (param_values + 2), - data2); -} - diff --git a/src/polkitgnomemarshal.h b/src/polkitgnomemarshal.h deleted file mode 100644 index 9304148..0000000 --- a/src/polkitgnomemarshal.h +++ /dev/null @@ -1,20 +0,0 @@ - -#ifndef ___polkit_gnome_marshal_MARSHAL_H__ -#define ___polkit_gnome_marshal_MARSHAL_H__ - -#include - -G_BEGIN_DECLS - -/* VOID:BOOLEAN,BOOLEAN (./polkitgnomemarshal.list:1) */ -extern void _polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN (GClosure *closure, - GValue *return_value, - guint n_param_values, - const GValue *param_values, - gpointer invocation_hint, - gpointer marshal_data); - -G_END_DECLS - -#endif /* ___polkit_gnome_marshal_MARSHAL_H__ */ - diff --git a/src/polkitgnomemarshal.list b/src/polkitgnomemarshal.list deleted file mode 100644 index 3259d90..0000000 --- a/src/polkitgnomemarshal.list +++ /dev/null @@ -1 +0,0 @@ -VOID:BOOLEAN,BOOLEAN