gshutdown-0.2/0000777000175000017500000000000010637512712010406 500000000000000gshutdown-0.2/autopackage/0000777000175000017500000000000010637512677012704 500000000000000gshutdown-0.2/autopackage/default.apspec.in0000644000175000017500000000275710610253304016035 00000000000000# -*- shell-script -*- [Meta] PackageVersion: 1 SoftwareVersion: @VERSION@ Type: Application Maintainer: gshutdown@gmail.com Packager: achrafcherti@gmail.com InterfaceVersion: 10.3 CPUArchitectures: x86 AutopackageTarget: 1.0 License: GNU General Public License, Version 2 Language: en fr RootName: @gshutdown.tuxfamily.org/gshutdown:$SOFTWAREVERSION ShortName: gshutdown DisplayName: GShutdown Summary: GShutdown is an advanced Gtk+2 shutdown utility Summary[fr]: GShutdown est un utilitaire avancé pour programmer, entre autres, l'arrêt de votre ordinateur [Description] GShutdown is an advanced shutdown utility which allows you to schedule the shutdown or the restart of your computer. With it you can simply and quickly choose the turn off time. Features : * Shutdown, reboot and logout : immediately or scheduled * No need to be root * Possibility to choose custom commands for the actions * Three different ways to schedule the action * Systray icon * Visuals notifications [BuildPrepare] prepareBuild [BuildUnprepare] unprepareBuild [Globals] [Prepare] require @gtk.org/gtk 2.0 require @glade.gnome.org/libglade 2.0 [Imports] echo '*' | import [Install] # See http://www.autopackage.org/api/ for details installExe bin/* installMan 1 man/man1/* installData share/gshutdown installIcon share/pixmaps/gshutdown.* installLocale share/locale/ # You probably need to change the category installDesktop "Applications" share/applications/gshutdown.desktop [Uninstall] uninstallFromLog gshutdown-0.2/po/0000777000175000017500000000000010637512712011024 500000000000000gshutdown-0.2/po/ChangeLog0000644000175000017500000000000010623711104012467 00000000000000gshutdown-0.2/po/Makefile.in.in0000644000175000017500000001771410637511521013421 00000000000000# Makefile for program source directory in GNU NLS utilities package. # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper # # This file file 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. # Please note that the actual code is *not* freely available. # # - Modified by Owen Taylor to use GETTEXT_PACKAGE # instead of PACKAGE and to look for po2tbl in ./ not in intl/ # # - Modified by jacob berkman to install # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ libdir = @libdir@ localedir = $(libdir)/locale gnulocaledir = $(datadir)/locale gettextsrcdir = $(datadir)/glib-2.0/gettext/po subdir = po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@ CC = @CC@ GENCAT = @GENCAT@ GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ XGETTEXT = @XGETTEXT@ MSGMERGE = msgmerge DEFS = @DEFS@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ INCLUDES = -I.. -I$(top_srcdir)/intl COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) SOURCES = POFILES = @POFILES@ GMOFILES = @GMOFILES@ DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \ $(POFILES) $(GMOFILES) $(SOURCES) POTFILES = \ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ INSTOBJEXT = @INSTOBJEXT@ .SUFFIXES: .SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat .c.o: $(COMPILE) $< .po.pox: $(MAKE) $(GETTEXT_PACKAGE).pot $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox .po.mo: $(MSGFMT) -o $@ $< .po.gmo: file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) $(MSGFMT_OPTS) -o $$file $< .po.cat: sed -f ../intl/po2msg.sed < $< > $*.msg \ && rm -f $@ && $(GENCAT) $@ $*.msg all: all-@USE_NLS@ all-yes: $(CATALOGS) all-no: $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \ --add-comments --keyword=_ --keyword=N_ \ --flag=g_strdup_printf:1:c-format \ --flag=g_string_printf:2:c-format \ --flag=g_string_append_printf:2:c-format \ --flag=g_error_new:3:c-format \ --flag=g_set_error:4:c-format \ --flag=g_markup_printf_escaped:1:c-format \ --flag=g_log:3:c-format \ --flag=g_print:1:c-format \ --flag=g_printerr:1:c-format \ --flag=g_printf:1:c-format \ --flag=g_fprintf:2:c-format \ --flag=g_sprintf:2:c-format \ --flag=g_snprintf:3:c-format \ --flag=g_scanner_error:2:c-format \ --flag=g_scanner_warn:2:c-format \ --files-from=$(srcdir)/POTFILES.in \ && test ! -f $(GETTEXT_PACKAGE).po \ || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \ && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot ) install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ install-data-no: all install-data-yes: all if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \ fi @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ case "$$cat" in \ *.gmo) destdir=$(gnulocaledir);; \ *) destdir=$(localedir);; \ esac; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \ if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $$dir; \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \ fi; \ if test -r $$cat; then \ $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ else \ $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \ fi; \ if test -r $$cat.m; then \ $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ else \ if test -r $(srcdir)/$$cat.m ; then \ $(INSTALL_DATA) $(srcdir)/$$cat.m \ $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ echo "installing $(srcdir)/$$cat as" \ "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \ else \ true; \ fi; \ fi; \ done if test "$(PACKAGE)" = "glib"; then \ if test -r "$(MKINSTALLDIRS)"; then \ $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \ else \ $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \ fi; \ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \ $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \ rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \ done if test "$(PACKAGE)" = "glib"; then \ rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \ fi check: all dvi info tags TAGS ID: mostlyclean: rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f $(GMOFILES) distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir) dist distdir: update-po $(DISTFILES) dists="$(DISTFILES)"; \ for file in $$dists; do \ ln $(srcdir)/$$file $(distdir) 2> /dev/null \ || cp -p $(srcdir)/$$file $(distdir); \ done update-po: Makefile $(MAKE) $(GETTEXT_PACKAGE).pot tmpdir=`pwd`; \ cd $(srcdir); \ catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \ echo "$$lang:"; \ if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$cat failed!"; \ rm -f $$tmpdir/$$lang.new.po; \ fi; \ done # POTFILES is created from POTFILES.in by stripping comments, empty lines # and Intltool tags (enclosed in square brackets), and appending a full # relative path to them POTFILES: POTFILES.in ( if test 'x$(srcdir)' != 'x.'; then \ posrcprefix='$(top_srcdir)/'; \ else \ posrcprefix="../"; \ fi; \ rm -f $@-t $@ \ && (sed -e '/^#/d' \ -e "s/^\[.*\] +//" \ -e '/^[ ]*$$/d' \ -e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \ | sed -e '$$s/\\$$//') > $@-t \ && chmod a-w $@-t \ && mv $@-t $@ ) Makefile: Makefile.in.in ../config.status POTFILES cd .. \ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ $(SHELL) ./config.status # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gshutdown-0.2/po/POTFILES.in0000644000175000017500000000036010637273460012520 00000000000000src/action.c src/callback.c src/gdm.c src/gui.c src/main.c src/misc.c src/pconfirm.c src/timer.c src/values.c src/debug.c src/gshutdown.glade src/args.c src/bacon.c src/binreloc.c src/callback_main_window.c src/detectwm.c src/eggtrayicon.c gshutdown-0.2/po/gshutdown.pot0000644000175000017500000002210610637511336013510 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "" #: ../src/args.c:50 msgid "Launch the action now." msgstr "" #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "" #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "" #: ../src/callback.c:213 msgid "Notification test" msgstr "" #: ../src/callback.c:250 ../src/gui.c:248 #, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "" msgstr[1] "" #: ../src/callback.c:256 ../src/gui.c:255 #, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "" msgstr[1] "" #: ../src/callback.c:262 ../src/gui.c:261 #, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "" msgstr[1] "" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "" #: ../src/gui.c:283 msgid "At date and time" msgstr "" #: ../src/gui.c:284 msgid "After a delay" msgstr "" #: ../src/gui.c:285 msgid "Now" msgstr "" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "" #: ../src/gui.c:301 msgid "Extras" msgstr "" #: ../src/gui.c:305 msgid "Custom command..." msgstr "" #: ../src/gui.c:382 msgid "Not detected!" msgstr "" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "" #: ../src/gui.c:639 msgid "Shutdown" msgstr "" #: ../src/gui.c:640 msgid "Reboot" msgstr "" #: ../src/gui.c:641 msgid "Logout" msgstr "" #: ../src/gui.c:689 msgid "Immediate action" msgstr "" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "" #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "" #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "" #: ../src/timer.c:165 #, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "" msgstr[1] "" #: ../src/timer.c:171 #, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "" msgstr[1] "" #: ../src/timer.c:176 #, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "" msgstr[1] "" #: ../src/timer.c:180 #, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "" msgstr[1] "" #: ../src/timer.c:184 #, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "" msgstr[1] "" #: ../src/timer.c:188 #, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "" msgstr[1] "" #: ../src/timer.c:202 #, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "" msgstr[1] "" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "" #: ../src/gshutdown.glade:267 msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "" gshutdown-0.2/po/fr.po0000644000175000017500000003767010637512705011726 00000000000000# French translation of gshutdown. # This file is distributed under the same license as the gshutdown package. # msgid "" msgstr "" "Project-Id-Version: gshutdown\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-06-11 00:15-0000\n" "Last-Translator: Achraf cherti \n" "Language-Team: GShutdown Team \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: French\n" "X-Poedit-Country: FRANCE\n" "X-Poedit-SourceCharset: utf-8\n" "Plural-Forms: nplurals=2; plural=n > 1\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Lancer l'action après un certain délai : HH:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Lancer l'action à une heure et une date : HH:MM AAAA/MM/JJ" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Lancer l'action maintenant." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Les valeurs possibles sont : \"shutdown\", \"reboot\" ou \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Minimiser la fenêtre au lancement." #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Erreur lors de l'analyse des arguments...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "Vous ne pouvez appeler --launch-after-delay, --launch-at ou --launch-now en " "même temps.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "" "Les valeurs autorisées dans l'option --action sont : shutdown, reboot ou " "logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Erreur lors de l'analyse du contenu de %s : \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Test de la notification" #: ../src/callback.c:250 ../src/gui.c:248 #, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s%u heure" msgstr[1] "%s%u heures" #: ../src/callback.c:256 ../src/gui.c:255 #, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u minute" msgstr[1] "%s%u minutes" #: ../src/callback.c:262 ../src/gui.c:261 #, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u seconde" msgstr[1] "%s%u secondes" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "L'ordinateur va être arrêté maintenant !" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "L'ordinateur va redémarrer maintenant !" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "La session actuelle va être terminée !" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Je suis ici !\n" "\n" "Déplacez la souris au dessus de moi pour voir le compteur." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Stopper" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Temps choisi déjà expiré" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Démarrer" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Aucune action programmée" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Êtes-vous sûr de vouloir quitter ?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Orientation" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "L'orientation de la barre des tâches." #: ../src/gui.c:283 msgid "At date and time" msgstr "À une heure et une date" #: ../src/gui.c:284 msgid "After a delay" msgstr "Après un délai" #: ../src/gui.c:285 msgid "Now" msgstr "Maintenant" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Arrêter l'ordinateur" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Redémarrer l'ordinateur" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Fermer la session en cours" #: ../src/gui.c:301 msgid "Extras" msgstr "Extras" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Commande personnalisée..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Non détecté!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Détection automatique" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "Le fichier %s n'existe pas.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Arrêter" #: ../src/gui.c:640 msgid "Reboot" msgstr "Redémarrer" #: ../src/gui.c:641 msgid "Logout" msgstr "Fermer la session" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Action immédiate" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Annuler l'action en cours" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Êtes-vous sûre de vouloir arrêter l'ordinateur maintenant ?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Êtes-vous sûre de vouloir redémarrer l'ordinateur maintenant ?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Êtes-vous sûre de vouloir fermer la session ?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown fut incapable de détecter votre gestionnaire de session. " "Actuellement, il ne supporte que GDM et KDM.\n" "\n" "Allez dans le menu \"Préférences\" pour spécifier la méthode correcte à " "employer." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown fut incapable de détecter votre bureau. Actuellement, il ne " "supporte que GNOME et KDE.\n" "\n" "Allez dans le menu \"Préférences\" pour spécifier la méthode à employer." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "La configuration ne peut être chargée depuis le fichier %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "La configuration ne peut être enregistrée dans le fichier %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Attention !" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Attention ! Votre ordinateur va être arrêté !" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Attention ! Votre ordinateur va être redémarré !" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Attention ! La session va être fermée !" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "L'ordinateur va être arrêté dans :" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "L'ordinateur va redémarrer dans :" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "La session va être fermée dans :" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Temps avant l'action :" #: ../src/timer.c:165 #, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minute" msgstr[1] "%s %u minutes" #: ../src/timer.c:171 #, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s et %u seconde" msgstr[1] "%s et %u secondes" #: ../src/timer.c:176 #, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u heure" msgstr[1] "%s %u heures" #: ../src/timer.c:180 #, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s et %u minute" msgstr[1] "%s et %u minutes" #: ../src/timer.c:184 #, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u jour" msgstr[1] "%s %u jours" #: ../src/timer.c:188 #, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s et %u heure" msgstr[1] "%s et %u heures" #: ../src/timer.c:202 #, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s %u seconde" msgstr[1] "%s %u secondes" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Fichier" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Édition" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Aide" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Heure" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minute" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "Date et heure _actuelle" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Sélectionnez la date et l'heure" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "" "Utilitaire avancé pour programmer l'arrêt, le redémarrage de votre " "ordinateur, or la fermeture de la session en cours." #: ../src/gshutdown.glade:267 msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Sélectionnez une méthode :" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Commande personnalisée" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Spécifier la méthode manuellement" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Détecter la méthode (recommandé)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Lancer une commande avant l'action" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Actions" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Toujours" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "S'il est actif" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Jamais" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Icônifier quand l'action est démarrée" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Afficher une icône dans la zone de notification" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Afficher les notification, pour prévenir l'utilisateur" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "T_ester" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "Personnaliser les dates des notifications" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Notifications" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Divers" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Entrer la commande :" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Gestionnaire de session :" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Bureau :" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Sélectionner la méthode manuellement" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Vous pouvez spécifier le bureau et le gestionnaire de session manuellement, " "si GShutdown n'a pas pu le détecter." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Bureau :" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Gestionnaire de session :" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "h" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "s" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "À l'heure :" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u heures" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s%u minute%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s%u seconde%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minute" #~ msgid "%s and 1 second" #~ msgstr "%s et 1 seconde" #~ msgid "%s 1 hour" #~ msgstr "%s 1 heure" #~ msgid "%s and 1 minute" #~ msgstr "%s et 1 minute" #~ msgid "%s %u days" #~ msgstr "%s %u jours" #~ msgid "%s and 1 hour" #~ msgstr "%s et 1 heure" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s et %u secondes" #~ msgid "%s : %u seconds" #~ msgstr "%s et %u secondes" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u heures" #~ msgstr[1] "%s %u heures" #~ msgid "%s%u minute%s" #~ msgstr "%s%u minute%s" #~ msgid "%s%u second%s" #~ msgstr "%s%u seconde%s" #~ msgid "Not implemented yet!" #~ msgstr "Cette fonction n'a pas encore été implémentée!" #~ msgid "Time from now" #~ msgstr "À partir de maintenant" #, fuzzy #~ msgid "Launch the action after a" #~ msgstr "Lancer l'action maintenant." #~ msgid "" #~ "Siegfried Gevatter (Catalan)\n" #~ "GShutdown Team (French)" #~ msgstr "" #~ "Siegfried Gevatter (Catalan)\n" #~ "GShutdown Team (Français)" #~ msgid "Notifications date" #~ msgstr "Dates de notifications" #~ msgid "Time before action : %u seconds" #~ msgstr "Temps avant l'action : %u secondes" #~ msgid "..." #~ msgstr "..." #~ msgid "Time before action : %u h and %u min" #~ msgstr "Temps avant l'action : %u h et %u min" #~ msgid "Time before action : %u day(s) and %u hour(s)" #~ msgstr "Temps avant l'action : %u jour(s) et %u heure(s)" #~ msgid "General" #~ msgstr "Général" #~ msgid "" #~ "Automatic detection\n" #~ "\n" #~ "Detects automatically the\n" #~ "Window Manager (GNOME, KDE or XFCE)\n" #~ "and the display manager (KDM or GDM).\n" #~ "\n" #~ "It's the recommended choice." #~ msgstr "" #~ "Détection automatique\n" #~ "\n" #~ "Détecte automatiquement le\n" #~ "gestionnaire de fenêtres (GNOME, KDE\n" #~ "ou XFCE) et le gestionnaire de connexion\n" #~ "(KDM ou GDM).\n" #~ "\n" #~ "C'est le choix recommandé." #~ msgid "" #~ "Custom command\n" #~ "\n" #~ "You can set your custom command, for example :\n" #~ "* poweroff\n" #~ "* reboot\n" #~ "\n" #~ "Warning : In most cases, you need \n" #~ "privileges to run this commands." #~ msgstr "" #~ "Commande personnalisée\n" #~ "\n" #~ "Vous pouvez spécifier votre propre commande,\n" #~ "par exemple :\n" #~ "* poweroff\n" #~ "* reboot\n" #~ "\n" #~ "Attention : Dans la plupart des cas, vous\n" #~ "devrez posséder les privilèges pour exécuter ces\n" #~ "commandes." #~ msgid "About" #~ msgstr "À propos" #~ msgid "Preferences" #~ msgstr "Préférences" #~ msgid "Tray icon will be visible if GShutdown is active." #~ msgstr "" #~ "L'icône dans la zone de notification sera visible, quand GShutdown sera " #~ "actif." #~ msgid "Configure the action" #~ msgstr "Configurer l'action" #~ msgid "Check the autodetection" #~ msgstr "Vérifier la détection automatique" #, fuzzy #~ msgid "Check system informations" #~ msgstr "_Voir les informations du système" #~ msgid "Check system configuration" #~ msgstr "Voir les informations du système" gshutdown-0.2/po/es.po0000644000175000017500000003263010637512706011716 00000000000000msgid "" msgstr "" "Project-Id-Version: gshutdown\\n\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-06-10 23:37-0000\n" "Last-Translator: Achraf cherti \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Spanish\n" "X-Poedit-Country: ARGENTINA\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Lanzar la acción después de un retraso: HH:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Lanzar la acción a las: HH:MM YYYY/MM/DD" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Lanzar la acción ahora." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Las acciones disponibles son : \"shutdown\", \"reboot\" or \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Minimizar la ventana al iniciar." #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Error de sintáxis en los argumentos...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "No puede llamar --launch-after-delay, --launch-at o --launch-now al mismo " "tiempo.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "" "Los valores autorizados en la opción --action son: shutdown, reboot o " "logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Error de sintaxis en el contenido de %s : \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Prueba de notificación" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s %u horas" msgstr[1] "%s %u horas" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u minuto%s" msgstr[1] "%s%u minuto%s" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u segundo%s" msgstr[1] "%s%u segundo%s" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "¡La computadora va a apagarse ahora!" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "¡La computadora va a reiniciarse ahora!" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "¡La sesión actual será cerrada!" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "¡Estoy aquí! n\n" "Mueva el cursor sobre mi para ver la cuenta atrás." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Parar" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "El tiempo seleccionado ya ha sido excedido" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Comenzar" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "No hay acciones programadas." #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "¿Está seguro de que quiere salir?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Orientación" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "La orientación de la bandeja." #: ../src/gui.c:283 msgid "At date and time" msgstr "En un día y una fecha determinados" #: ../src/gui.c:284 msgid "After a delay" msgstr "Después de un retraso" #: ../src/gui.c:285 msgid "Now" msgstr "Ahora" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Apagar la computadora" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Reiniciar computadora" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Finalizar sesión actual" #: ../src/gui.c:301 msgid "Extras" msgstr "Extras" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Comando personalizado..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "¡No detectado!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Autodetectar" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s no existe.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Apagar" #: ../src/gui.c:640 msgid "Reboot" msgstr "Reiniciar" #: ../src/gui.c:641 msgid "Logout" msgstr "Cerrar sesión" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Acción inmediata" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Cancelar acción actual" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "¿Está seguro de que quiere apagar la computadora ahora?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "¿Está seguro de que quiere reiniciar la computadora ahora?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "¿Está seguro de que quiere cerrar la sesión ahora?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown no pudo detectar su manejador de pantallas. Por el momento, " "Gshutdown sólo soporta GDM y KDM.\n" "\n" "Vaya al menú de configuración y especifique el método correcto para hacer " "eso." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown no pudo detectar su entorno de escritorio. Por el momento, " "Gshutdown sólo soporta GNOME y KDE.\n" "\n" "Vaya al menú de configuración y especifique el método correcto para hacer " "eso." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "La configuración no puede ser cargada dede %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "La configuración no puede ser guardada en %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "¡Advertencia!" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Advertencia: ¡Su computadora va a apagarse ahora!" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Advertencia: ¡Su computadora va a reiniciarse ahora!" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Advertencia: ¡Va a cerrar su sesión ahora!" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "La computadora se apagará en:" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "La computadora se reiniciará en:" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Tiempo antes de cerrar la sesión:" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Tiempo hasta la acción:" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minutos" msgstr[1] "%s %u minutos" #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s y %u segundos" msgstr[1] "%s y %u segundos" #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u horas" msgstr[1] "%s %u horas" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s y %u minutos" msgstr[1] "%s y %u minutos" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u día" msgstr[1] "%s %u día" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s y %u horas" msgstr[1] "%s y %u horas" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u segundo%s" msgstr[1] "%s%u segundo%s" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Archivo" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Edición" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "Ay_uda" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Hora" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minuto" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Hora actual" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Seleccionar una hora" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Una utilidad de apagado avanzada" #: ../src/gshutdown.glade:267 #, fuzzy msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Español)\n" "Alexander Sjögren (Sueco)\n" "Andrea Carnaroli (Italiano)\n" "Andrew V. Sichevoi (Ruso)\n" "Bill Heldorf Soerensen (Danés)\n" "Dóra Kováts (Húngaro)\n" "GShutdown Team (Francés)\n" "Øyvind Pedersen (Noruego)\n" "Rolando Emanuel Lopes Pereira (Portugués)\n" "Rolf Loire (Alemán)\n" "Siegfried Gevatter (Catalán)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Seleccionar método:" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Comando personalizado" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Especificar el método manualmente" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Autodetectar el método (recomendado)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Lanzar un comando antes de la acción" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Acciones" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Siempre" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Si está activo" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Nunca" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Mostrar icono cuando la acción comience" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Mostrar icono en la bandeja de sistema" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "_Mostrar mensaje de advertencia antes de la acción" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "_Probar" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "Personalizar la hora de la _notificación" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Notificaciones" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Misc" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "gtk-close" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Ingrese el comando:" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Manejador de pantalla: " #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Escritorio:" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Seleccionar el método manualmente" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Aquí pude especificar manualmente cuales son su escritorio y su manejador de " "panatalla si GShutdown no fue capaz de detectarlos por si mismo." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Escritorio:" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Manejador de pantalla:" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "gtk-remove" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "h" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "s" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "gtk-add" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "A la hora:" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u horas" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s%u minuto%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s%u segundo%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minuto" #~ msgid "%s and 1 second" #~ msgstr "%s y 1 segundo" #~ msgid "%s 1 hour" #~ msgstr "%s 1 hora" #~ msgid "%s and 1 minute" #~ msgstr "%s u 1 minuto" #~ msgid "%s %u days" #~ msgstr "%s %u días" #~ msgid "%s and 1 hour" #~ msgstr "%s y 1 hora" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s: %u segundos" #~ msgid "%s : %u seconds" #~ msgstr "%s: %u segundos" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u horas" #~ msgstr[1] "%s %u horas" #~ msgid "%s%u minute%s" #~ msgstr "%s%u minuto%s" #~ msgid "%s%u second%s" #~ msgstr "%s%u segundo%s" #~ msgid "Not implemented yet!" #~ msgstr "¡Aún no implementado!" #~ msgid "Time from now" #~ msgstr "Tiempo desde ahora" #, fuzzy #~ msgid "Launch the action after a" #~ msgstr "Lanzar la acción ahora." gshutdown-0.2/po/ca.po0000644000175000017500000003257410637512706011701 00000000000000# Catalan translation of gshutdown, by RainCT . # This file is distributed under the same license as the gshutdown package. # msgid "" msgstr "" "Project-Id-Version: gshutdown\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-06-12 17:57+0100\n" "Last-Translator: Siegfried-Angel Gevatter Pujals (RainCT) \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Catalan\n" "X-Poedit-Country: SPAIN\n" "X-Poedit-SourceCharset: utf-8\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Executa l'acció després d'un retard: HH:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Executa l'acció a: HH:MM DD/MM/YYYY" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Executa l'acció ara." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Accions disponibles són: \"shutdown\", \"reboot\" o \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Minimitza aquesta finestra a l'inici" #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Hi ha hagut un error al tractar els arguments...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "No pots cridar --launch-after-delay, --launch-at o --launch-now al mateix " "temps.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "" "Els valors autoritzats per l'opció --action són: shutdown, reboot or logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Error al tractar el contingut de %s: \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Prova de notificació" #: ../src/callback.c:250 ../src/gui.c:248 #, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s %u hora" msgstr[1] "%s %u hores" #: ../src/callback.c:256 ../src/gui.c:255 #, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s %u minut" msgstr[1] "%s %u minuts" #: ../src/callback.c:262 ../src/gui.c:261 #, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u segon" msgstr[1] "%s%u segons" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "L'ordinador està a punt de tornar a ser iniciat!" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "L'ordinador es re-iniciarà ara!" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "La sessió actual serà finalitzada!" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Estic aquí!\n" "\n" "Passa el ratolí per sobre per veure el compte enrere." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Parar" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "L'hora triada ja ha passat" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Començar" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "No hi ha cap tasca programada" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Segur que vols sortir?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Orientació" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "L'orientació del la safata." #: ../src/gui.c:283 msgid "At date and time" msgstr "A la data i hora" #: ../src/gui.c:284 msgid "After a delay" msgstr "Després d'un retard" #: ../src/gui.c:285 msgid "Now" msgstr "Ara" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Apaga l'ordinador" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Re-inicia l'ordinador" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Finalitza la sessió actual" #: ../src/gui.c:301 msgid "Extras" msgstr "Extres" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Ordres personalitzades..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "No s'ha detectat!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Autodetectar" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s no existeix.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Apaga" #: ../src/gui.c:640 msgid "Reboot" msgstr "Re-inicia" #: ../src/gui.c:641 msgid "Logout" msgstr "Tanca la sessió" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Acció immediata" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Cancel·la l'acció actual" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Estàs segur que vols apagar el teu ordinador ara?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Estàs segur que vols re-iniciar el teu ordinador ara?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Estàs segur que vols tancar la teva sessió ara?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown no ha pogut detectar el teu \"display manager\". Actualment, " "GShutdown només suporta GDM i KDM.\n" "\n" "Ves al menú de configuració i especifica el mètode correcte per fer això." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown no ha pogut detectar el teu escriptori. Actualment, GShutdown " "només suporta GNOME i KDE.\n" "\n" "Vés al menú de configuració i especifica el mètode correcte per fer això." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "No s'ha pogut carregar la configuració de %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "No s'ha pogut guardar la configuració a %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Alerta!" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Alerta! El teu ordinador s'està preparant per apagar-se!" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Alerta! El teu ordinador s'està preparant per re-iniciar!" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Alerta! La teva sessió es tancarà ara!" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "L'ordinador s'apagarà en:" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "L'ordinador es re-iniciarà en:" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Temps restant fins que es tanqui la sessió:" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Temps fins a l'acció:" #: ../src/timer.c:165 #, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minut" msgstr[1] "%s %u minuts" #: ../src/timer.c:171 #, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s i %u segon" msgstr[1] "%s i %u segons" #: ../src/timer.c:176 #, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u hora" msgstr[1] "%s %u hores" #: ../src/timer.c:180 #, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s i %u minut" msgstr[1] "%s i %u minuts" #: ../src/timer.c:184 #, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u dia" msgstr[1] "%s %u dies" #: ../src/timer.c:188 #, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s i %u hora" msgstr[1] "%s i %u hores" #: ../src/timer.c:202 #, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s %u segon" msgstr[1] "%s %u segons" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Arxiu" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Modifica" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "A_juda" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Hora" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minut" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Temps actual" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Tria un data" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Una avançada utilitat per apagar el teu ordinador" #: ../src/gshutdown.glade:267 msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Castellà)\n" "Alexander Sjögren (Suec)\n" "Andrea Carnaroli (Italià)\n" "Andrew V. Sichevoi (Rus)\n" "Bill Heldorf Soerensen (Danès)\n" "Dóra Kováts (Hongarès)\n" "GShutdown Team (Francès)\n" "Kristopher (Polonès)\n" "Miloš Popović (Serbi)\n" "Øyvind Pedersen (Noruec)\n" "Rolando Emanuel Lopes Pereira (Portuguès)\n" "Rolf Loire (Alemany)\n" "Siegfried-Angel Gevatter Pujals (Català)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Tria un mètode:" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Ordres personalitzades" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Especifica el mètode manualment" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Detecta automàticament el mètode (recomanat)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Executa una ordre abans de l'acció" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Accions" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Sempre" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Si està actiu" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Mai" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Mostra una icona quan l'acció hagi començat" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Mostra una icona a l'àrea de notificació" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Mostra un missatge d'avís abans" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "_Prova" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Personalitza la data de les notificacions" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Notificacions" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Divers" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "gtk-close" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Introdueix l'ordre:" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "\"Display manager:\"" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Escriptori:" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Sel·leciona el mètode manualment" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Aquí, pots especificar manualment quin és el teu escriptori i \"display " "manager\" si GShutdown no ha pogut detectar-lo automàticament." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Escriptori:" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "\"Display manager\":" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "gtk-remove" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "h" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "s" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "gtk-add" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "A l'hora:" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minut" #~ msgid "%s 1 hour" #~ msgstr "%s 1 hora" #, fuzzy #~ msgid "%s : %u seconds" #~ msgstr "%s and %u seconds" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u hores" #~ msgstr[1] "%s %u hores" #~ msgid "%s%u minute%s" #~ msgstr "%s %u minut%s" #~ msgid "%s%u second%s" #~ msgstr "%s and %u second%s" #, fuzzy #~ msgid "Not implemented yet!" #~ msgstr "Encara no s'ha implementat!" #~ msgid "Time from now" #~ msgstr "Temps restant" #, fuzzy #~ msgid "Launch the action after a" #~ msgstr "Executa una ordre abans de l'acció" #~ msgid "" #~ "Siegfried Gevatter (Catalan)\n" #~ "GShutdown Team (French)" #~ msgstr "" #~ "Siegfried Gevatter (Català)\n" #~ "Equip del GShutdown (Francès)" #~ msgid "Time before action : %u seconds" #~ msgstr "Temps fins a l'acció: %u segons" #~ msgid "Notifications date" #~ msgstr "Data de les notificacions" gshutdown-0.2/po/sv.po0000644000175000017500000002765710637512706011754 00000000000000msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-01-02 10:57-0000\n" "Last-Translator: Achraf cherti \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Swedish\n" "X-Poedit-Country: SWEDEN\n" "X-Poedit-SourceCharset: utf-8\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "" #: ../src/args.c:50 #, fuzzy msgid "Launch the action now." msgstr "Starta ett kommando före " #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "" #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "" #: ../src/callback.c:213 msgid "Notification test" msgstr "Uppfattnings test" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s %u timme" msgstr[1] "%s %u timme" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u minuter%s" msgstr[1] "%s%u minuter%s" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u sekunder%s" msgstr[1] "%s%u sekunder%s" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "Datorn kommer stängas ner nu ! " #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "Datorn kommer startas om nu !" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "Vald session kommer att avslutas !" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Jag är här !\n" "\n" "Flytta markeringen över mig för att se nedräkningen" #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Sluta" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Vald tid redan överskriden " #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Start" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Är du säker på att du vill avsluta ?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "" #: ../src/gui.c:283 msgid "At date and time" msgstr "Datum och tid" #: ../src/gui.c:284 msgid "After a delay" msgstr "" #: ../src/gui.c:285 msgid "Now" msgstr "Nu" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Stäng av datorn av datorn " #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Starta om datorn" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Avsluta vald session " #: ../src/gui.c:301 msgid "Extras" msgstr "Extra" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Färdig valt kommando" #: ../src/gui.c:382 msgid "Not detected!" msgstr "Inte hittad! " #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "hitta Automatisk " #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s finns inte.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Stäng av" #: ../src/gui.c:640 msgid "Reboot" msgstr "Starta om " #: ../src/gui.c:641 msgid "Logout" msgstr "Logga ut" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Omedelbar handling" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Är du säker på att du vill stänga av din dator nu?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Är du säker på att du vill starta om din dator nu?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Är du säker på att du vill logga ut från din session nu?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown kunde inte hitta ditt skrivbord. Just nu stödjer GShutdown endast " "Gnome och KDE.\n" "\n" "Gå till konfigurations menyn för att välja den rätta metoden att göra det." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "Konfigurationen kan inte laddas från %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "Konfigurationen kan inte sparas i %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Varning !" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Varning ! Din dator håller på att stängas ner nu ! " #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Varning ! Din dator kommer startas om nu ! " #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Varning ! Du kommer loggas ut nu ! " #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "Dator kommer stängas inom :" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "Datorn kommer startas om inom :" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Tid innan utloggning: " #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Tid före handling :" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minuter" msgstr[1] "%s %u minuter" #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s och %u sekunder " msgstr[1] "%s och %u sekunder " #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u timme" msgstr[1] "%s %u timme" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s och %u minuter" msgstr[1] "%s och %u minuter" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u dag" msgstr[1] "%s %u dag" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s och %u timmar" msgstr[1] "%s och %u timmar" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u sekunder%s" msgstr[1] "%s%u sekunder%s" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_fil" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_redigera" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Hjälp" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "_Timme" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minut" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Tid just nu " #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Välj en tid" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Ett avancerat nersläcknigs program " #: ../src/gshutdown.glade:267 msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Välj en metod" #: ../src/gshutdown.glade:343 #, fuzzy msgid "Custom command" msgstr "Färdig valt kommando" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Välj metoden manuellt" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Automatisk detectering av metod (rekomenderad)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Starta ett kommando före " #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Alltid" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Om aktiv" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Aldrig" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Visa när en process startar " #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Visa system tray ikon " #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Visa varning meddelande _före " #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "T_est" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Redigera notifikations tid" #: ../src/gshutdown.glade:629 #, fuzzy msgid "Notifications" msgstr "Uppfattnings test" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Annat" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Skriv in kommandot :" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Visa :" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Desktop :" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Välj metod manuellt" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Här kan du manuellt specificera vad som är ditt skrivbord och display " "manager om inte GShutdown kunde hitta det själv. " #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Desktop : " #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Display manager :" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "h" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "s" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "Åt tid" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u timme" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s%u minuter%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s%u sekunder%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minut" #~ msgid "%s and 1 second" #~ msgstr "%s och 1 sekund" #~ msgid "%s 1 hour" #~ msgstr "%s 1 timme" #~ msgid "%s and 1 minute" #~ msgstr "%s och 1 minut" #~ msgid "%s %u days" #~ msgstr "%s %u dagar" #~ msgid "%s and 1 hour" #~ msgstr "%s och 1 timme" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s : %u sekunder" #~ msgid "%s : %u seconds" #~ msgstr "%s : %u sekunder" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u timme" #~ msgstr[1] "%s %u timme" #~ msgid "%s%u minute%s" #~ msgstr "%s%u minuter%s" #~ msgid "%s%u second%s" #~ msgstr "%s%u sekunder%s" #~ msgid "Not implemented yet!" #~ msgstr "Inte satt än! " #~ msgid "Time from now" #~ msgstr "Tid från och med nu" gshutdown-0.2/po/pt.po0000644000175000017500000003230010637512706011724 00000000000000msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-06-12 00:19+0100\n" "Last-Translator: Rolando Emanuel Lopes Pereira \n" "Language-Team: \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" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Executar a acção, após um certo atraso : HH:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Executar acção às HH:MM YYYY/MM/DD" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Executar a acção agora." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "As acções disponíveis são: \"shutdown\", \"reboot\" ou \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Minimizar a janela ao iniciar." #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Erro ao processar os argumentos...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "Não podes executar --launch-after-delay, --launch-at ou --launch-now ao " "mesmo tempo.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "" "Os valores autorizados na opção --action são : shutdown, reboot ou logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Erro ao processar o conteúdo de %s : \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Teste de Notificação" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s%u hora" msgstr[1] "%s%u hora" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u minuto" msgstr[1] "%s%u minuto" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u segundo" msgstr[1] "%s%u segundo" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "O computador vai desligar agora !" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "O computador vai reiniciar agora !" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "A sessão actual vai ser terminada !" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Estou aqui !\n" "\n" "Passe por cima de mim para ver a contagem decrescente." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Parar" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Tempo escolhido já ultrapassado" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Começar" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Nenhuma acção programada" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Tem a certeza que quer sair?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Orientação" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "Orientação da barra." #: ../src/gui.c:283 msgid "At date and time" msgstr "À data e hora" #: ../src/gui.c:284 msgid "After a delay" msgstr "Após um atraso" #: ../src/gui.c:285 msgid "Now" msgstr "Agora" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Desligar o computador" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Reiniciar o computador" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Terminar a sessão actual" #: ../src/gui.c:301 msgid "Extras" msgstr "Extras" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Comando personalizado..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Não detectado!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Auto detectar" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s não existe.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Desligar" #: ../src/gui.c:640 msgid "Reboot" msgstr "Reiniciar" #: ../src/gui.c:641 msgid "Logout" msgstr "Desligar" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Acção imediata" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Cancelar a acção actual" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Tem a certeza que quer desligar o computador agora ?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Tem a certeza que quer reiniciar o computador agora ?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Tem a certeza que quer terminar a sessão agora ?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown não foi capaz de detectar o seu gerenciador de janelas. " "Actualmente, o GShutdown só suporta GDM e KDM.\n" "\n" "Vá ao menú de configuração e especifique o método correcto para executar " "isso." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown não foi capaz de detectar o seu ambiente de trabalho. Actualmente, " "GShutdown apenas suporta GNOME e KDE.\n" "\n" "Vá ao menú de configuração e especifique o método correcto para executar " "isso." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "A configuração não pode ser carregada a partir de %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "A configuração não pode ser salva em %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Atenção !" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Atenção ! O seu computador vai desligar agora !" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Atenção ! O seu computador vai reiniciar agora !" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Warning ! Você vai terminar a sessão agora !" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "O computador vai desligar em :" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "O computador vai reiniciar em :" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Tempo antes de terminar a sessão :" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Tempo antes da acção :" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minuto" msgstr[1] "%s %u minuto" #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s e %u segundo" msgstr[1] "%s e %u segundo" #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u hora" msgstr[1] "%s %u hora" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s e %u minuto" msgstr[1] "%s e %u minuto" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u dia" msgstr[1] "%s %u dia" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s e %u hora" msgstr[1] "%s e %u hora" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u segundo" msgstr[1] "%s%u segundo" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Ficheiro" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Editar" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Ajuda" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Hora" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minuto" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Tempo actual" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Escolha um tempo" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Um método avançado de desligar" #: ../src/gshutdown.glade:267 #, fuzzy msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Espanhol)\n" "Alexander Sjögren (Suíço)\n" "Andrea Carnaroli (Italiano)\n" "Andrew V. Sichevoi (Russo)\n" "Bill Heldorf Soerensen (Dinamarquês)\n" "Dóra Kováts (Húngaro)\n" "GShutdown Team (Francês)\n" "Øyvind Pedersen (Norueguês)\n" "Rolando Emanuel Lopes Pereira (Português)\n" "Rolf Loire (Alemão)\n" "Siegfried Gevatter (Catalão)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Escolha um método :" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Comando personalizado" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Especifique o método manualmente" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Auto detectar do método (recomendado)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Executar um comando antes da acção" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Acções" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Sempre" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Se activo" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Nunca" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Iconificar quando a acção começar" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Mostrar icone na barra de tarefas" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Mostrar mensagem de aviso _antes da acção" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "T_estar" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Personalizar os tempos de notificação" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Notificações" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Misc" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "gtk-close" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Colocar o comando :" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Gerenciador de janelas :" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Ambiente de trabalho :" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Escolha o método individualmente" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Aqui, você pode manualmente especificar qual é o seu desktop e gerenciador " "de janelas se o Gshutdown não os conseguir detectar sozinho." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Ambiente de trabalho :" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Gerenciador de janelas :" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "gtk-remove" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "h" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "s" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "gtk-add" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "Ao seguinte tempo :" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u horas" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s%u minuto%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s%u segundo%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minuto" #~ msgid "%s and 1 second" #~ msgstr "%s e 1 segundo" #~ msgid "%s 1 hour" #~ msgstr "%s 1 hora" #~ msgid "%s and 1 minute" #~ msgstr "%s e 1 minuto" #~ msgid "%s %u days" #~ msgstr "%s %u dias" #~ msgid "%s and 1 hour" #~ msgstr "%s e 1 hora" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s : %u segundos" #~ msgid "%s : %u seconds" #~ msgstr "%s : %u segundos" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u horas" #~ msgstr[1] "%s %u horas" #~ msgid "%s%u minute%s" #~ msgstr "%s%u minuto%s" #~ msgid "%s%u second%s" #~ msgstr "%s%u segundo%s" #~ msgid "Not implemented yet!" #~ msgstr "Ainda não está implantado!" #~ msgid "Time from now" #~ msgstr "Tempo a partir de agora" gshutdown-0.2/po/de.po0000644000175000017500000003106510637512706011700 00000000000000msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-01-30 23:34+0100\n" "Last-Translator: Maxime Chéramy \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Starte Aktion in : HH:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Starte Aktion um : HH:MM YYYY/MM/DD" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Starte Aktion sofort." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "" "Folgende Aktionen sind möglich : \"shutdown\", \"reboot\" or \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Minimiere Fenster beim Start." #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Fehler beim Analysieren der Argumente...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "" "Die autorisierten Werte in --action sind: shutdown, reboot oder logout.\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Fehler beim Analysieren des Inhalts von %s : \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Benachrichtigungstest" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s %u Stunden" msgstr[1] "%s %u Stunden" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u Minute%s" msgstr[1] "%s%u Minute%s" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u sekunde%s" msgstr[1] "%s%u sekunde%s" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "Der Rechner wird jetzt ausgeschaltet!" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "Der Rechner wird jetzt neugestartet!" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "Diese Sitzung wird beendet!" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Ich bin hier!\n" "\n" "Zeige mit dem Cursor auf mich, um den Countdown sehen zu können." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Diese Zeit liegt in der Vergangenheit" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Keine Aktion geplant" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Wollen Sie das Programm wirklich beenden?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Orientierung" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "Orientierung des Tray-Symbols." #: ../src/gui.c:283 msgid "At date and time" msgstr "Zu dieser Zeit" #: ../src/gui.c:284 msgid "After a delay" msgstr "Nach dieser Zeit" #: ../src/gui.c:285 msgid "Now" msgstr "Jetzt" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Schalte den Rechner aus" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Rechner neustarten" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Diese Sitzung beenden" #: ../src/gui.c:301 msgid "Extras" msgstr "Extras" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Eigener Befehl..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Nicht gefunden!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Bestimme automatisch" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s existiert nicht.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Ausschalten" #: ../src/gui.c:640 msgid "Reboot" msgstr "Neustarten" #: ../src/gui.c:641 msgid "Logout" msgstr "Logout" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Sofortige Aktion" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Diese Aktion abbrechen" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Sind Sie sicher, dass Sie den Rechner jetzt ausschalten wollen?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Sind Sie sicher, dass Sie den Rechner jetzt neustarten wollen?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Sind Sie sicher, dass Sie diese Sitzung jetzt beenden wollen?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown konnte ihren Displaymanager nicht ausfindig machen. Zu diesem " "Zeitpunkt unterstützt GShutdown GDM und KDM.\n" "\n" "Gehen Sie zur Konfiguration und geben Sie den richtigen Befehl an, um die " "Aktion ausführen zu können." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown konnte ihre Desktopumgebung nicht identifizieren. GShutdown " "unterstützt derzeit GNOME und KDE.\n" "\n" "Gehen Sie zur Konfiguration und geben Sie den richtigen Befehl an, um die " "Aktion ausführen zu können." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "Die Konfiguration kann von %s nicht geladen werden." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "Die Konfiguration kann in %s nicht gespeichert werden." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Achtung!" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Achtung! Der Rechner wird jetzt ausgeschaltet!" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Achtung! Der Rechner wird jetzt neugestartet!" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Achtung! Die Sitzung wird nun beendet!" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "Der Rechner wird ausgeschaltet in:" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "Der Rechner wird neugestartet in:" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Verbleibende Zeit bis zum Logout:" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Verbleibende Zeit bis zur Aktion:" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u Minuten" msgstr[1] "%s %u Minuten" #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s und %u Sekunden" msgstr[1] "%s und %u Sekunden" #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u Stunden" msgstr[1] "%s %u Stunden" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s und %u Minuten" msgstr[1] "%s und %u Minuten" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u Tag" msgstr[1] "%s %u Tag" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s und %u Stunden" msgstr[1] "%s und %u Stunden" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u sekunde%s" msgstr[1] "%s%u sekunde%s" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Datei" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Bearbeiten" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Hilfe" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Stunde" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minute" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Jetzige Zeit" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Wählen Sie die Uhrzeit" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Ein erweitertes Shutdown-Programm" #: ../src/gshutdown.glade:267 msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Wählen Sie eine Methode:" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Eigener Befehl" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Geben Sie die Methode manuell an" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Methode automatisch bestimmen (empfohlen)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Befehl vor der Aktion ausführen" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Aktionen" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Immer" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Wenn aktiv" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Nie" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Zeige Icon, wenn Aktion gestartet wurde" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Zeige Tray-Icon" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Zeige eine Nachricht _vor der Aktion" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "T_est" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Benachrichtungsdauer verändern" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Benachrichtigungen" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Verschiedenes" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Geben Sie den Befehl ein:" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Bestimme Methode manuell" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Hier können Sie ihren Desktop- und Displaymanager manuell angeben falls " "GShutdown dazu nicht in der Lage war." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "Zur Zeit:" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u Stunden" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s%u Minute%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s%u sekunde%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 Minute" #~ msgid "%s and 1 second" #~ msgstr "%s und 1 Sekunde" #~ msgid "%s 1 hour" #~ msgstr "%s 1 Stunde" #~ msgid "%s and 1 minute" #~ msgstr "%s und 1 Minute" #~ msgid "%s %u days" #~ msgstr "%s %u Tage" #~ msgid "%s and 1 hour" #~ msgstr "%s und 1 Stunde" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s : %u Sekunden" #~ msgid "%s : %u seconds" #~ msgstr "%s : %u Sekunden" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u Stunden" #~ msgstr[1] "%s %u Stunden" #~ msgid "%s%u minute%s" #~ msgstr "%s%u Minute%s" #~ msgid "%s%u second%s" #~ msgstr "%s%u sekunde%s" #~ msgid "Not implemented yet!" #~ msgstr "Diese Funktion gibt es noch nicht!" gshutdown-0.2/po/da.po0000644000175000017500000003142610637512707011676 00000000000000msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-01-30 23:31+0100\n" "Last-Translator: Maxime Chéramy \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Udfør handlingen efter angivet tid: TT:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Udfør handlingen kl. TT:MM ÅÅÅÅ/MM/DD" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Udfør handlingen nu." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Mulige handlinger : \"shutdown\", \"reboot\" eller \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Minimer vinduet ved opstart." #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Fejl ved behandling af argumenterne...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "Det er ikke muligt at kalde --launch-after-delay, --launch-at eller --launch-" "now nu på samme tid.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "De godkendte værdier for --action er : shutdown, reboot eller logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Fejl ved behandling af indhold for %s : \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Testbesked" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s %u timer" msgstr[1] "%s %u timer" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s %u minutter%s" msgstr[1] "%s %u minutter%s" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u sekund%s" msgstr[1] "%s%u sekund%s" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "Systemet lukkes ned." #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "Systemet genstartes." #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "Nuværende session afsluttes!" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "Jeg er her!Bevæg markøren over mig for at se nedtællingen." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Stop" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Den valgte tid er overskredet." #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Start" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Ingen handling planlagt." #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Ønsker du at afslutte?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Orientering." #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "Placering af bakke (tray)" #: ../src/gui.c:283 msgid "At date and time" msgstr "på tidspunktet" #: ../src/gui.c:284 msgid "After a delay" msgstr "Forsinket" #: ../src/gui.c:285 msgid "Now" msgstr "Nu" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Sluk maskine" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Genstart systemet" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Afslut denne session" #: ../src/gui.c:301 msgid "Extras" msgstr "Ekstra" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Bruger kommando..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Ikke fundet!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Autodetekter" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s eksisterer ikke.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Nedlukning" #: ../src/gui.c:640 msgid "Reboot" msgstr "Genstart" #: ../src/gui.c:641 msgid "Logout" msgstr "Log af" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Øjebli9kkelig handling" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Fortryd nuværende handling" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Ønsker du at lukke systemet ned nu?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Ønsker du at genstarte systemet?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Ønsker du at logge af?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown kunne ikke identificere display manager. Gshutdown understøtter " "kun GDM og KDM.\n" "Brug konfigurations menuen til at indstille den rigtige metode." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown var ikke i stand til at identificere din vindues administrator, i " "øjeblikket understøttes udelukkende GNOME og KDE\n" "Brug konfigurations menuen til at instaille den rigtige metode." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "Konfigurationen kunne ikke indlæses fra %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "Konfigurationen kunne skrives til %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Advarsel!" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Advarsel! Systemet lukkes ned nu!" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Advarsel! Systemet genstartes nu!" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Advarsel! Du logges af nu!" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "Systemet lukkes ned om :" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "Systemet genstartes om :" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Tid før der logges af :" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Tid før handlingen :" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minutter" msgstr[1] "%s %u minutter" #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s og %u sekunder" msgstr[1] "%s og %u sekunder" #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u timer" msgstr[1] "%s %u timer" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s og %u minutter" msgstr[1] "%s og %u minutter" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u dag" msgstr[1] "%s %u dag" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s og %u timer" msgstr[1] "%s og %u timer" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u sekund%s" msgstr[1] "%s%u sekund%s" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Fil" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Editer" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Hjælp" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Time" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minut" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Faktisk tid" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Vælg tid" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Avanceret nedluknings værktøj" #: ../src/gshutdown.glade:267 #, fuzzy msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Spansk)\n" "Alexander Sjögren (Swensk)\n" "Andrea Carnaroli (Italiensk)\n" "Andrew V. Sichevoi (Russisk)\n" "Bill Heldorf Soerensen (Dansk)\n" "Dóra Kováts (Ungarsk)\n" "GShutdown Team (Fransk)\n" "Øyvind Pedersen (Norsk)\n" "Rolando Emanuel Lopes Pereira (Portugisisk)\n" "Rolf Loire (Tysk)\n" "Siegfried Gevatter (Catalansk)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Vælg metode:" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Bruger kommando:" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Indstil metoden manuelt" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Automatisk metode (anbefalet)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Kør kommando før handlingen" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Handling" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Hver gang" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Hvis aktiv" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Aldrig" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Iconificer når handlingen er startet" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Vis system \"tray\" icon" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Vis advarsel før handlingen" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "T_est" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "Indstil besked tid" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Beskedder" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Forskelligt" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "gtk-close" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Indtast kommando:" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Display manager :" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Skrivebord :" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Vælg metode manuelt" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Her kan du indstille skrivebord og display manager manuelt, hvis GShutdown " "ikke kunne detektere disse selv." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Skrivebord :" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Display manager :" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "gtk-remove" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "t" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "s" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "gtk-add" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "Kl. :" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u timer" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s %u minutter%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s%u sekund%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minut" #~ msgid "%s and 1 second" #~ msgstr "%s og 1 sekund" #~ msgid "%s 1 hour" #~ msgstr "%s 1 time" #~ msgid "%s and 1 minute" #~ msgstr "%s og 1 minut" #~ msgid "%s %u days" #~ msgstr "%s %u dage" #~ msgid "%s and 1 hour" #~ msgstr "%s og 1 time" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s : %u sekunder" #~ msgid "%s : %u seconds" #~ msgstr "%s : %u sekunder" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u timer" #~ msgstr[1] "%s %u timer" #~ msgid "%s%u minute%s" #~ msgstr "%s %u minutter%s" #~ msgid "%s%u second%s" #~ msgstr "%s%u sekund%s" #~ msgid "Not implemented yet!" #~ msgstr "Endnu Ikke implementeret!" #~ msgid "Time from now" #~ msgstr "Tid fra nu" #~ msgid "Time before action : %u seconds" #~ msgstr "Tid før handlingen : %u sekunder" #~ msgid "Notifications date" #~ msgstr "Besked dato" gshutdown-0.2/po/hu.po0000644000175000017500000003174710637512707011734 00000000000000msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-01-27 02:20+0100\n" "Last-Translator: Kováts Dóra \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "A folyamat ennyi késleltetés után indul : ÓÓ:PP" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "A folyamat ekkor indul : ÓÓ:PP ÉÉÉÉ/HH/NN" #: ../src/args.c:50 msgid "Launch the action now." msgstr "A folyamat indítása most." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Lehetséges folyamatok : \"shutdown\", \"reboot\" vagy \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Az ablak minimalizálása indításkor." #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Hiba a tartományok elemzésekor...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "Nem választhatod egyszerre, hogy --launch-after-delay, --launch-at vagy --" "launch-now.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "A lehetséges értékek --action : shutdown, reboot vagy logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Hiba a(z) %s : \"%s\" tartalmának elemzésénél.\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Értesítési teszt" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s %u óra" msgstr[1] "%s %u óra" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u perc%s" msgstr[1] "%s%u perc%s" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u másodperc%s" msgstr[1] "%s%u másodperc%s" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "A számítógép most fog leállni !" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "A számítógép most fog újraindulni !" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "A jelenlegi munkafolyamat le fog állni !" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Itt vagyok !\n" "\n" "Mozgass át hogy lásd a visszaszámlálást." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Leállít" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "A kiválasztott időpont már lejárt" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Elindít" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Nincs ütemezett feladat" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Biztos ki akarsz lépni?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Irány" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "A tálca iránya." #: ../src/gui.c:283 msgid "At date and time" msgstr "Dátum és idő szerint" #: ../src/gui.c:284 msgid "After a delay" msgstr "Bizonyos idő után" #: ../src/gui.c:285 msgid "Now" msgstr "Most" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "A számítógép leállítása" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "A számítógép újraindítása" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "A jelenlegi munkafolyamat befejezése" #: ../src/gui.c:301 msgid "Extras" msgstr "Extrák" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Egyéni parancs..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Nem található!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Autofelismerés" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s nem létezik.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Leállítás" #: ../src/gui.c:640 msgid "Reboot" msgstr "Újraindítás" #: ../src/gui.c:641 msgid "Logout" msgstr "Kijelentkezés" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Azonnali cselekvés" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "A jelenlegi folyamat törlése" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Biztos le akarod állítani a számítógépet?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Biztos újra akarod indítani a számítógépet?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Biztos ki akarsz jelentkezni?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "A GShutdown nem volt képes felismerni a monitor-menedzsert. Jelenleg a " "GShutdown csak a GDM-et és a KDM-et támogatja.\n" "\n" "Menj a beállításokhoz és használd a megfelelő módot a támogatáshoz." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "A GShotdown nem tudta felismerni az asztalkörnyezetet. Jelenleg a GShutdown " "csak a GNOME-ot és a KDE-t támogatja.\n" "\n" "Menj a beállításokhoz és használd a megfelelő módot a támogatáshoz." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "A konfigurációt nem lehetett indítani %s -ből." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "A konfigurásiót nem lehetett menteni %s -ben." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Vigyázat!" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Vigyázat ! A számítógép most fog leállni !" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Vigyázat ! A számítógép most fog újrandulni !" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Vigyázat ! A számítógép most fog kijelentkezni ! " #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "A számítógép leáll :" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "A számítógép újraindul :" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Kijelentkezés ennyi idő múlva :" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Folyamat elindítása ennyi idő múlva :" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u perc" msgstr[1] "%s %u perc" #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s és %u másodperc" msgstr[1] "%s és %u másodperc" #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u óra" msgstr[1] "%s %u óra" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s és %u perc" msgstr[1] "%s és %u perc" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u nap" msgstr[1] "%s %u nap" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s és %u óra" msgstr[1] "%s és %u óra" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u másodperc%s" msgstr[1] "%s%u másodperc%s" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Fájl" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Szerkesztés" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Súgó" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Óra" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Perc" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Jelenlegi idő" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Válassz időt" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Egy fejlett leállító program" #: ../src/gshutdown.glade:267 #, fuzzy msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Spanyol)\n" "Alexander Sjögern (Svéd)\n" "Andrea Carnaroli (Olasz)\n" "Andrew V. Sichevoi (Orosz)\n" "Bill Heldorf Soerensen (Dán)\n" "Kováts Dóra (Magyar)\n" "GShutdown Team (Francia)\n" "Rolando Emanuel Lopes Pereira (Portugál)\n" "Rolf Loire (Német)\n" "Siegfried Gevatter (Katalán)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Válassz módot :" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Egyéni parancs" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Mód megadása manuálisan" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Mód autofelismerése (javasolt)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Parancs elindítása a folyamat előtt" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Folyamatok" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Mindig" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Ha aktív" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Soha" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Ikon mutatása ha a folyamat elkedődött" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Tálcaikon megjelenítése" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Figyelmeztető üzenet kiírása a _folyamat előtt" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "T_eszt" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Értesítési idő beállítása" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Értesítések" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Egyéb" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Írd be a parancsot :" #: ../src/gshutdown.glade:805 #, fuzzy msgid "Display manager :" msgstr "Asztal :" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Asztal :" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Mód kiválasztása manuálisan" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Itt manuálisan beállíthatod, mi az asztali környezeted és a monitor-" "menedzsered, ha a GShutdown nem tudta felismerni." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Asztal :" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "ó" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "perc" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "mp" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "Ebben az időben :" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u óra" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s%u perc%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s%u másodperc%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 perc" #~ msgid "%s and 1 second" #~ msgstr "%s és 1 másodperc" #~ msgid "%s 1 hour" #~ msgstr "%s 1 óra" #~ msgid "%s and 1 minute" #~ msgstr "%s és 1 perc" #~ msgid "%s %u days" #~ msgstr "%s %u nap" #~ msgid "%s and 1 hour" #~ msgstr "%s és 1 óra" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s : %u másodperc" #~ msgid "%s : %u seconds" #~ msgstr "%s : %u másodperc" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u óra" #~ msgstr[1] "%s %u óra" #~ msgid "%s%u minute%s" #~ msgstr "%s%u perc%s" #~ msgid "%s%u second%s" #~ msgstr "%s%u másodperc%s" #~ msgid "Not implemented yet!" #~ msgstr "Még nincs teljesítve!" gshutdown-0.2/po/ru.po0000644000175000017500000004065110637512707011740 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: GShutdown\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-06-22 09:56+0300\n" "Last-Translator: Andrew V. Sichevoi \n" "Language-Team: GShutdown Team \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Russian\n" "X-Poedit-Country: RUSSIAN FEDERATION\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "X-Poedit-Bookmarks: -1,-1,-1,-1,12,-1,-1,-1,-1,-1\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Запустить действие после определенной задержки: ЧЧ:ММ" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Запустить команду в ЧЧ:ММ ГГГГ/ММ/ДД" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Запустить событие немедленно." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Доступные действия: \"shutdown\", \"reboot\" или \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Сворачивать окно при запуске" #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Ошибка при обработке аргументов...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "Вы не можете одновременно вызвать параметры --launch-after-delay, --launch-" "at or --launch-now.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "Корректные значения для --action: shutdown, reboot или logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Ошибка при обработке содержимого файла %s: \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Проверка оповещения" #: ../src/callback.c:250 ../src/gui.c:248 #, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s %u час" msgstr[1] "%s %u часа" msgstr[2] "%s %u часов" #: ../src/callback.c:256 ../src/gui.c:255 #, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u минута" msgstr[1] "%s%u минуты" msgstr[2] "%s%u минут" #: ../src/callback.c:262 ../src/gui.c:261 #, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u секунда" msgstr[1] "%s%u секунды" msgstr[2] "%s%u секунд" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "Сейчас компьютер будет выключен!" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "Сейчас компьютер будет перезагружен!" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "Текущий сеанс будет прекращен!" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Я тут!\n" "\n" "Наведи курсор что бы увидеть таймер отсчета" #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Стоп" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Выбранное время уже превышено" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Старт" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Нет запланированных действий" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Вы действительно хотите закрыть программу?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Положение" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "Положение значка в системном лотке." #: ../src/gui.c:283 msgid "At date and time" msgstr "Дата и время" #: ../src/gui.c:284 msgid "After a delay" msgstr "После задержки" #: ../src/gui.c:285 msgid "Now" msgstr "Сейчас" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Выключить компьютер" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Перезагрузить компьютер" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Завершить текущий сеанс" #: ../src/gui.c:301 msgid "Extras" msgstr "Дополнительно" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Другая команда..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Не определено!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Автоопределение" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s не существует.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Выключение" #: ../src/gui.c:640 msgid "Reboot" msgstr "Перезагрузка" #: ../src/gui.c:641 msgid "Logout" msgstr "Завершение сеанса" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Немедленное действие" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Отменить текущее действие" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Вы действительно хотите сейчас выключить свой компьютер?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Вы действительно хотите сейчас перезагрузить свой компьютер?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "" "Вы действительно хотите сейчас завершить текущий сеанс работы на компьютере?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown не смог определить ваш менеджер входа. На данный момент программой " "поддерживаются только GDM и KDM.\n" "\n" "Перейдите в конфигурационное меню и выберите корректный метод определения." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown не смог определить ваш менеджер рабочего стола. На данный момент " "программой поддерживаются только GNOME и KDE.\n" "\n" "Перейдите в конфигурационное меню и выберите корректный метод определения." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "Настройки не могут быть загружены из файла %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "Настройки не могут быть сохранены в файле %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Внимание !" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Внимание! Сейчас произойдет выключение вашего компьютера!" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Внимание! Сейчас произойдет перезагрузка вашего компьютера!" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "" "Внимание! Сейчас произойдет окончание текущего сеанса работы на вашем " "компьютере!" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "Компьютер будет выключен через: " #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "Компьютер будет перезагружен через: " #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Время до завершения сеанса работы на компьютере:" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Время до запуска события:" #: ../src/timer.c:165 #, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u минута " msgstr[1] "%s %u минуты" msgstr[2] "%s %u минут" #: ../src/timer.c:171 #, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s и %u секунда" msgstr[1] "%s и %u секунды" msgstr[2] "%s и %u секунд" #: ../src/timer.c:176 #, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u час" msgstr[1] "%s %u часа" msgstr[2] "%s %u часов" #: ../src/timer.c:180 #, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s и %u минута" msgstr[1] "%s и %u минуты" msgstr[2] "%s и %u минут" #: ../src/timer.c:184 #, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u день" msgstr[1] "%s %u дня" msgstr[2] "%s %u дней" #: ../src/timer.c:188 #, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s и %u час" msgstr[1] "%s и %u часа" msgstr[2] "%s и %u часов" #: ../src/timer.c:202 #, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u секунда" msgstr[1] "%s%u секунды" msgstr[2] "%s%u секунд" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Файл" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Настройки" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Справка" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Час" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Минута" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Текущее время" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Выберите время" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Улучшенная программа выключения компьютера" #: ../src/gshutdown.glade:267 msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Испанский)\n" "Alexander Sjögren (Шведский)\n" "Andrea Carnaroli (Итальянский)\n" "Andrew V. Sichevoi (Русский)\n" "Bill Heldorf Soerensen (Датский)\n" "Dóra Kováts (Венгерский)\n" "GShutdown Team (Французский)\n" "Kristopher (Польский)\n" "Miloš Popović (Сербский)\n" "Øyvind Pedersen (Норвежский)\n" "Rolando Emanuel Lopes Pereira (Португальский)\n" "Rolf Loire (Немецкий)\n" "Siegfried Gevatter (Каталанский)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Выберите метод:" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Другая команда" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Определить метод самостоятельно" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Автоопределение метода (рекомендуется)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Выполнить команду перед выполнением действия" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Действия" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Всегда" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Если активен" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Никогда" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Свернуть в системный лоток, когда действие запущено" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Отображать значок в системном лотке" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Показывать предупреждающее сообщение _перед выполнением действия" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "Т_ест" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Изменить время оповещения" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Уведомления" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Дополнительно" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Укажите команду:" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Менеджер входа:" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Рабочий стол: " #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Выберите метод вручную" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Здесь вы можете сами определить какие используются у вас менеджер рабочего " "стола и менеджер входа, если GShutdown не сможет определить это " "самостоятельно." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Рабочий стол:" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Менеджер входа:" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "ч" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "мин" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "сек" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "Во время:" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u часов" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s%u минут%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s%u секунд%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 минута" #~ msgid "%s and 1 second" #~ msgstr "%s и 1 секунда" #~ msgid "%s 1 hour" #~ msgstr "%s 1 час" #~ msgid "%s and 1 minute" #~ msgstr "%s и 1 минута" #~ msgid "%s %u days" #~ msgstr "%s %u дней" #~ msgid "%s and 1 hour" #~ msgstr "%s и 1 час" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s: %u секунд" #~ msgid "%s : %u seconds" #~ msgstr "%s: %u секунд" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u часов" #~ msgstr[1] "%s %u часов" #~ msgid "%s%u minute%s" #~ msgstr "%s%u минут%s" #~ msgid "%s%u second%s" #~ msgstr "%s%u секунд%s" #~ msgid "Not implemented yet!" #~ msgstr "Не реализовано!" gshutdown-0.2/po/it.po0000644000175000017500000003134710637512707011730 00000000000000msgid "" msgstr "" "Project-Id-Version: gshutdown\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-06-23 20:19+0100\n" "Last-Translator: Andrea Carnaroli \n" "Language-Team: Andrea Carnaroli \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Italian\n" "X-Poedit-Country: ITALY\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Eseguire l'azione con un ritardo di : HH:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Eseguire l'azione alle :HH:MM YYYY/MM/DD" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Esegui l'azione ora." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Le azioni disponibili sono : \"shutdown\", \"reboot\" or \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Minimizza la finestra all'avvio." #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Errore nell'analizzare gli argomenti...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "Non puoi chiamare --launch-after-delay, --launch-at o --launch-now allo " "stesso tempo.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "" "I valori autorizzati in --action sono: spegnere, riavviare o disconnettersi\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Errore nell'analizzare il contenuto di :\" %s : \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Test di notifica" #: ../src/callback.c:250 ../src/gui.c:248 #, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s%u ora" #: ../src/callback.c:256 ../src/gui.c:255 #, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u minuto" #: ../src/callback.c:262 ../src/gui.c:261 #, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u secondo" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "Il computer sta per spegnersi ora!" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "Il computer sta per riavviarsi ora!" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "L'attuale sessione sarà terminata!" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Sono qui !\n" "\n" "Muovi il cursore sopra di me per vedere il countdown." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Stop" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Il tempo scelto è già scaduto" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Comincia" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Nessuna azione scelta." #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Sei sicuro di voler uscire?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Orientamento" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "L'orientamento della barra." #: ../src/gui.c:283 msgid "At date and time" msgstr "In data e ora specificati" #: ../src/gui.c:284 msgid "After a delay" msgstr "Dopo un certo tempo" #: ../src/gui.c:285 msgid "Now" msgstr "Ora" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Spegni il computer" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Riavvia il computer" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Termina l'attuale sessione" #: ../src/gui.c:301 msgid "Extras" msgstr "Extras" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Comando personalizzato..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Non rilevato!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Rileva automaticamente" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s non esiste.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Spegni" #: ../src/gui.c:640 msgid "Reboot" msgstr "Riavvia" #: ../src/gui.c:641 msgid "Logout" msgstr "Disconnetti" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Azione immediata" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Cancella l'azione attuale" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Sei sicuro di voler spegnere il computer ora?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Sei sicuro di voler riavviare il computer ora?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Sei sicuro di volerti disconnettere ora?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown non è riuscito a rilevare il tuo display manager. Per il momento, " "Gshutdown supporta solamente GDM e KDM.\n" "\n" "Vai al menù di configurazione e specifica il metodo corretto per farlo." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown non è riuscito a rilevare il tuo desktop. Per il momento, " "Gshutdown supporta solamente GNOME e KDE.\n" "\n" "Vai al menù di configurazione e specifica il metodo corretto per farlo." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "La configurazione non può essere caricata da %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "La configurazione non può essere salvata in %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Attenzione!" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Attenzione! Il tuo computer sta per spegnersi ora !" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Attenzione ! Il tuo computer sta per riavviarsi ora !" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Attenzione ! Stai per disconnetterti ora !" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "Il computer verrà spento in :" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "Il computer verrà riavviato in :" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Tempo prima della disconnessione :" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Tempo prima della azione :" #: ../src/timer.c:165 #, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minuto" #: ../src/timer.c:171 #, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s e %u secondo" #: ../src/timer.c:176 #, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u ora" #: ../src/timer.c:180 #, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s e %u minuto" #: ../src/timer.c:184 #, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u giorno" #: ../src/timer.c:188 #, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s e %u ora" #: ../src/timer.c:202 #, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s %u secondo" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_File" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Modifica" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Aiuto" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Ora" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minuto" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Ora attuale" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Seleziona un'ora" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Un'utilità avanzata per lo spegnimento" #: ../src/gshutdown.glade:267 msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Scegli un metodo :" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Comando personalizzato" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Specifica il metodo manualmente" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Rileva automaticamente il metodo (raccomandato)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Esegui un comando prima dell'azione" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Azione" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Sempre" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Se attivo" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Mai" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Rendi a iconda quando l'azione è cominciata" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Mostra l'icona della barra di sistema" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Mostra un messaggio d'avviso _prima dell'azione" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "_Prova" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Personalizza l'ora delle notifiche" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Notifiche" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Misc" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Invia il comando:" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Display manager: " #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Desktop:" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Scegli il metodo manualmente" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Qui, puoi specificare manualmente quale è il tuo desktop e display manager " "se GShutdown non è riuscito a rilevarlo da solo." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Desktop :" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Display manager :" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "h" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "s" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "Alle ore :" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u ore" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s%u minuto%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s%u secondo%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minuto" #~ msgid "%s and 1 second" #~ msgstr "%s e 1 secondo" #~ msgid "%s 1 hour" #~ msgstr "%s 1 ora" #~ msgid "%s and 1 minute" #~ msgstr "%s e 1 minuto" #~ msgid "%s %u days" #~ msgstr "%s %u giorni" #~ msgid "%s and 1 hour" #~ msgstr "%s e 1 ora" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s: %u secondi" #~ msgid "%s : %u seconds" #~ msgstr "%s: %u secondi" #~ msgid "Not implemented yet!" #~ msgstr "Non ancora effettuato!" #~ msgid "Time from now" #~ msgstr "Tiempo desde ahora" #, fuzzy #~ msgid "Launch the action after a" #~ msgstr "Lanzar la acción ahora." gshutdown-0.2/po/no.po0000644000175000017500000003001610637512707011720 00000000000000msgid "" msgstr "" "Project-Id-Version: gshutdown\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-06-10 23:39-0000\n" "Last-Translator: Achraf cherti \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Norwegian Bokmal\n" "X-Poedit-Country: NORWAY\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Kjør handlingen etter en viss tid : HH:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Kjører handlingen : HH:MM YYYY/MM/DD" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Kjør handlingen nå." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Tilgjengelige handlinger : \"shutdown\", \"reboot\" eller \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Minimer vinduet når datamaskinen slår seg på." #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "Du kan ikke --launch-after-delay, --launch-at or --launch-now at the same " "time.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "" "autoriserte verdier i --action valg er : shutdown, reboot eller logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "" #: ../src/callback.c:213 msgid "Notification test" msgstr "Påminnelses test" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s %u timer" msgstr[1] "%s %u timer" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s %u minutter%s" msgstr[1] "%s %u minutter%s" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s %u sekunder%s" msgstr[1] "%s %u sekunder%s" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "Datamaskinen slår seg av nå !" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "Datamaskinen omstarter nå !" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "Sesjonen vil bli avsluttet !" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Jeg er her !\n" "\n" "Flytt meg over til å se nedtellingen." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Stopp" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Valgt tid er allerede overskridet" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Start" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Ingen handlinger planlaggt" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Er du sikker på at du vil avslutte ?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Orientering" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "orienteringen av tray ikonet." #: ../src/gui.c:283 msgid "At date and time" msgstr "På dato og time" #: ../src/gui.c:284 msgid "After a delay" msgstr "Etter utsettelsen" #: ../src/gui.c:285 msgid "Now" msgstr "Nå" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Slå av datamaskinen" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Omstart datamaskin" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Slutt sesjon" #: ../src/gui.c:301 msgid "Extras" msgstr "Ekstra" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Egen kommando..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Ikke funnet!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Automatisk oppdaging" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s eksisterer ikke.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Slå av" #: ../src/gui.c:640 msgid "Reboot" msgstr "Omstart" #: ../src/gui.c:641 msgid "Logout" msgstr "Logg ut" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Umiddelbar handling" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Avslutt handling" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Er du sikker på at du vil slå av datamaskinen din nå ?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Er du sikker på at du vil omstarte datamaskinen din nå ?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Er du sikker på at du vil logge ut av sesjonen din nå ?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "Konfigurasjonen kan ikke ble laddet ifra %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "Konfigurasjonen kan ikke bli lagret i %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Advarsel !" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Advarsel ! Datamaskinen din slår seg av nå !" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Advarsel ! Datamaskinen din omstartes nå !" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Advarsel ! Du blir logget ut nå !" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "Datamaskinen vil bli slådd av innen : " #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "Datamaskinen vil bli omstartet innen :" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Tid før ut loggingen :" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Tid før handlingen :" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minutter" msgstr[1] "%s %u minutter" #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s og %u sekunder" msgstr[1] "%s og %u sekunder" #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u timer" msgstr[1] "%s %u timer" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s og %u minutter" msgstr[1] "%s og %u minutter" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u dag" msgstr[1] "%s %u dag" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s og %u timer" msgstr[1] "%s og %u timer" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s %u sekunder%s" msgstr[1] "%s %u sekunder%s" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Fil" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Rediger" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Hjelp" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Timer" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minutter" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Egentlig tid" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Velg tid" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "avansert avsluttnings verktøy" #: ../src/gshutdown.glade:267 msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Velg en metode :" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Egen kommando" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Spesifisere metoden manuelt" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Automatisert metode (anbefalt)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Kjør en kommando før selve handlingen" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Handlinger" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Alltid" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Om aktiv" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Aldri" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Vis når handlingen er startet" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Vis minimert ikon" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Vis advarsel melding _før handling" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "T_est" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Egen notert tid" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Meldinger" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Annet" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Skriv inn kommando :" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Visnings instillinger :" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Skrivebord :" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Velg en metode manuelt" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Skrivebord :" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Visnings instillinger :" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "t" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "s" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "Når tiden er :" #, fuzzy #~ msgid "%s%u hours" #~ msgstr "%s %u timer" #, fuzzy #~ msgid "%s%u minutes" #~ msgstr "%s %u minutter%s" #, fuzzy #~ msgid "%s%u seconds" #~ msgstr "%s %u sekunder%s" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minutt" #~ msgid "%s and 1 second" #~ msgstr "%s og 1 sekund" #~ msgid "%s 1 hour" #~ msgstr "%s 1 time" #~ msgid "%s and 1 minute" #~ msgstr "%s og 1 minutt" #~ msgid "%s %u days" #~ msgstr "%s %u dager" #~ msgid "%s and 1 hour" #~ msgstr "%s og 1 time" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s : %u sekunder" #~ msgid "%s : %u seconds" #~ msgstr "%s : %u sekunder" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s %u timer" #~ msgstr[1] "%s %u timer" #~ msgid "%s%u minute%s" #~ msgstr "%s %u minutter%s" #~ msgid "%s%u second%s" #~ msgstr "%s %u sekunder%s" #~ msgid "Not implemented yet!" #~ msgstr "Ikke enda implementert!" gshutdown-0.2/po/sr.po0000644000175000017500000003566110637512710011735 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: GShutdown\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-02-02 15:13+0100\n" "Last-Translator: Maxime Chéramy \n" "Language-Team: GShutdown Team \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Serbian\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Покрени наредбу наконодређеног времена : HH:ММ" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Покрени наредбу у : HH:MM YYYY/MM/DD" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Покрени наредбу сада." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Достурне наредбе су: \"shutdown\", \"reboot\" или \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Умањи прозор по покретању" #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Грешка про прослеђивању аргумента...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "Не можете позвати --launch-after-delay, --launch-at or --launch-now.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "Вредности за --action су: shutdown, reboot или logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Грешка у прослеђивању садржаја датотеке %s: \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Провера система обавештавања" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s%u сати" msgstr[1] "%s%u сати" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u минут" msgstr[1] "%s%u минут" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u секунда" msgstr[1] "%s%u секунда" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "Рачунар се гаси!" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "Рачунар се ресетује!" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "Бићете одјављени!" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Я Овде сам!\n" "\n" "Стави курсор преко мене да ви видео одбројавање." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Стани" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Изабрано време је већ протекло" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Почни" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Нема задатих распореда" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Да ли сте сигурни?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Положај" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "Положај у фијоци." #: ../src/gui.c:283 msgid "At date and time" msgstr "Датума, у време" #: ../src/gui.c:284 msgid "After a delay" msgstr "Након протеклих" #: ../src/gui.c:285 msgid "Now" msgstr "Одмах" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Угаси рачунар" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Поново покрени рачунар" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Одјави се" #: ../src/gui.c:301 msgid "Extras" msgstr "Додатно" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Произвољне команде..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Није пронађено!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Hађи аутоматски" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s не постоји.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Угаси рачунар" #: ../src/gui.c:640 msgid "Reboot" msgstr "Поново покрени рачунар" #: ../src/gui.c:641 msgid "Logout" msgstr "Одјави се" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Тренутачна наредба" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Обустави тренутну наредбу" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Да ли сигурно желите да угасите рачунар?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Да ли сигурно желите да поново покренете рачунар?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Да ли сигурно желите да се одјавите са рачунара?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown није у могућности да одреди ваш менаџер дисплеја.Тренутно подржани " "су GDM и KDM.\n" "\n" "У поставкама програма одредите произвољне начине гашења, поновног покретања " "и одјаве." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown није у могућности да одреди ваше корисничко сучеље.Тренутно " "подржана сучеља су GNOME и KDE.\n" "\n" "У поставкама програма одредите исправно корисничко сучеље ручно." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "Настройки не могут быть загружены из файла %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "Поставке не могу бити сачуване %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Внимание !" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Упозорење! Ваш рачунар ће се сада угасити!" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Упозорење! Ваш рачунар ће се сада поново покренути!" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Упозорење! Сада ћете бити одјављени са рачунара!" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "Рачунар ће се угасити за : " #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "Рачунар ће се поново покренути за : " #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Бреме пре одјаве :" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Време пре извршења наредбе :" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u минута " msgstr[1] "%s %u минута " #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s и %u секунди" msgstr[1] "%s и %u секунди" #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u сати" msgstr[1] "%s %u сати" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s и %u минути" msgstr[1] "%s и %u минути" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u дан" msgstr[1] "%s %u дан" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s и %u сата" msgstr[1] "%s и %u сата" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u секунда" msgstr[1] "%s%u секунда" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Датотека" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Измени" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Помоћ" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Сат" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Минут" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Тренутно време" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Одабери време" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Напредан алат за гашење" #: ../src/gshutdown.glade:267 #, fuzzy msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Шпански)\n" "Alexander Sjögren (Шветски)\n" "Andrea Carnaroli (Италијански)\n" "Andrew V. Sichevoi (Руски)\n" "Bill Heldorf Soerensen (Дански)\n" "Dóra Kováts (Мађарски)\n" "GShutdown Team (Француски)\n" "Miloš Popović (Српски)\n" "Øyvind Pedersen (Норвешки)\n" "Rolando Emanuel Lopes Pereira (Португалски)\n" "Rolf Loire (Немачки)\n" "Siegfried Gevatter (Каталијански)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Одабери начин:" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Произвољне команде" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Самостално одабери начин" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Аутоматски одабери начин (препоручљиво)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Покрени команду пре задате наредбе" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Наредбе" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Увек" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Уколико је активан" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Никада" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Умањи након почетка извршавања наредбе" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Прикажи икоицу у фијоци панела" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Прикажи поруке уозорења _пре задате наредбе" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "Т_ест" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Измени време за обавештења" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Обавештења" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Дупуна" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Унеси команду:" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Менаџер дисплеја:" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Радна површина: " #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Ручно одабери методу" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Овде можете ручно одабрати које је Ваше корисничко сучеље и менаџер дисплеја " "ако програмније у могућности да одреди самостално" #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Корисничко сучеље :" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Менаџер дисплеја :" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "сат" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "мин" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "сек" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "У време :" #~ msgid "%s%u hours" #~ msgstr "%s%u сати" #~ msgid "%s%u minutes" #~ msgstr "%s%u минут" #~ msgid "%s%u seconds" #~ msgstr "%s%u секунда" #~ msgid "%s 1 minute" #~ msgstr "%s 1 минут" #~ msgid "%s and 1 second" #~ msgstr "%s и 1 секунда" #~ msgid "%s 1 hour" #~ msgstr "%s 1 сат" #~ msgid "%s and 1 minute" #~ msgstr "%s и 1 минута" #~ msgid "%s %u days" #~ msgstr "%s %u дана" #~ msgid "%s and 1 hour" #~ msgstr "%s и 1 час" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s: %u секунди" #~ msgid "%s : %u seconds" #~ msgstr "%s: %u секунди" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s%u сати" #~ msgstr[1] "%s%u сати" #~ msgid "Not implemented yet!" #~ msgstr "Још увек нереализовно!" gshutdown-0.2/po/sr@Latn.po0000644000175000017500000003173010637512710012645 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: GShutdown\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-02-02 15:15+0100\n" "Last-Translator: Maxime Chéramy \n" "Language-Team: GShutdown Team \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Serbian\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Pokreni naredbu nakonodređenog vremena : HH:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Pokreni naredbu u : HH:MM YYYY/MM/DD" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Pokreni naredbu sada." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Dosturne naredbe su: \"shutdown\", \"reboot\" ili \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Umanji prozor po pokretanju" #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Greška pro prosleđivanju argumenta...\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "Ne možete pozvati --launch-after-delay, --launch-at or --launch-now.\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "Vrednosti za --action su: shutdown, reboot ili logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Greška u prosleđivanju sadržaja datoteke %s: \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Provera sistema obaveštavanja" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s%u sati" msgstr[1] "%s%u sati" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u minut" msgstr[1] "%s%u minut" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u sekunda" msgstr[1] "%s%u sekunda" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "Računar se gasi!" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "Računar se resetuje!" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "Bićete odjavljeni!" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Я Ovde sam!\n" "\n" "Stavi kursor preko mene da vi video odbrojavanje." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Stani" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Izabrano vreme je već proteklo" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Počni" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Nema zadatih rasporeda" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Da li ste sigurni?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Položaj" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "Položaj u fijoci." #: ../src/gui.c:283 msgid "At date and time" msgstr "Datuma, u vreme" #: ../src/gui.c:284 msgid "After a delay" msgstr "Nakon proteklih" #: ../src/gui.c:285 msgid "Now" msgstr "Odmah" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Ugasi računar" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Ponovo pokreni računar" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Odjavi se" #: ../src/gui.c:301 msgid "Extras" msgstr "Dodatno" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Proizvoljne komande..." #: ../src/gui.c:382 msgid "Not detected!" msgstr "Nije pronađeno!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Hađi automatski" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s ne postoji.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Ugasi računar" #: ../src/gui.c:640 msgid "Reboot" msgstr "Ponovo pokreni računar" #: ../src/gui.c:641 msgid "Logout" msgstr "Odjavi se" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Trenutačna naredba" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Obustavi trenutnu naredbu" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Da li sigurno želite da ugasite računar?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Da li sigurno želite da ponovo pokrenete računar?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Da li sigurno želite da se odjavite sa računara?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown nije u mogućnosti da odredi vaš menadžer displeja.Trenutno " "podržani su GDM i KDM.\n" "\n" "U postavkama programa odredite proizvoljne načine gašenja, ponovnog " "pokretanja i odjave." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "GShutdown nije u mogućnosti da odredi vaše korisničko sučelje.Trenutno " "podržana sučelja su GNOME i KDE.\n" "\n" "U postavkama programa odredite ispravno korisničko sučelje ručno." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "Nastroйki ne mogut bыtь zagruženы iz faйla %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "Postavke ne mogu biti sačuvane %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Vnimanie !" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Upozorenje! Vaš računar će se sada ugasiti!" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Upozorenje! Vaš računar će se sada ponovo pokrenuti!" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Upozorenje! Sada ćete biti odjavljeni sa računara!" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "Računar će se ugasiti za : " #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "Računar će se ponovo pokrenuti za : " #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Breme pre odjave :" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Vreme pre izvršenja naredbe :" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minuta " msgstr[1] "%s %u minuta " #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s i %u sekundi" msgstr[1] "%s i %u sekundi" #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u sati" msgstr[1] "%s %u sati" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s i %u minuti" msgstr[1] "%s i %u minuti" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u dan" msgstr[1] "%s %u dan" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s i %u sata" msgstr[1] "%s i %u sata" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u sekunda" msgstr[1] "%s%u sekunda" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Datoteka" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Izmeni" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "_Pomoć" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Sat" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minut" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Trenutno vreme" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Odaberi vreme" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "Napredan alat za gašenje" #: ../src/gshutdown.glade:267 #, fuzzy msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Španski)\n" "Alexander Sjögren (Švetski)\n" "Andrea Carnaroli (Italijanski)\n" "Andrew V. Sichevoi (Ruski)\n" "Bill Heldorf Soerensen (Danski)\n" "Dóra Kováts (Mađarski)\n" "GShutdown Team (Francuski)\n" "Miloš Popović (Srpski)\n" "Øyvind Pedersen (Norveški)\n" "Rolando Emanuel Lopes Pereira (Portugalski)\n" "Rolf Loire (Nemački)\n" "Siegfried Gevatter (Katalijanski)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Odaberi način:" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Proizvoljne komande" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Samostalno odaberi način" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Automatski odaberi način (preporučljivo)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Pokreni komandu pre zadate naredbe" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Naredbe" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Uvek" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Ukoliko je aktivan" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Nikada" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Umanji nakon početka izvršavanja naredbe" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Prikaži ikoicu u fijoci panela" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "Prikaži poruke uozorenja _pre zadate naredbe" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "T_est" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Izmeni vreme za obaveštenja" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Obaveštenja" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Dupuna" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Unesi komandu:" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Menadžer displeja:" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Radna površina: " #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Ručno odaberi metodu" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Ovde možete ručno odabrati koje je Vaše korisničko sučelje i menadžer " "displeja ako programnije u mogućnosti da odredi samostalno" #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Korisničko sučelje :" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Menadžer displeja :" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "sat" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "sek" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "U vreme :" #~ msgid "%s%u hours" #~ msgstr "%s%u sati" #~ msgid "%s%u minutes" #~ msgstr "%s%u minut" #~ msgid "%s%u seconds" #~ msgstr "%s%u sekunda" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minut" #~ msgid "%s and 1 second" #~ msgstr "%s i 1 sekunda" #~ msgid "%s 1 hour" #~ msgstr "%s 1 sat" #~ msgid "%s and 1 minute" #~ msgstr "%s i 1 minuta" #~ msgid "%s %u days" #~ msgstr "%s %u dana" #~ msgid "%s and 1 hour" #~ msgstr "%s i 1 čas" #, fuzzy #~ msgid "%s : %u second" #~ msgstr "%s: %u sekundi" #~ msgid "%s : %u seconds" #~ msgstr "%s: %u sekundi" #, fuzzy #~ msgid "%s%u hourz" #~ msgid_plural "%s%u hourzs" #~ msgstr[0] "%s%u sati" #~ msgstr[1] "%s%u sati" #~ msgid "Not implemented yet!" #~ msgstr "Još uvek nerealizovno!" gshutdown-0.2/po/pl.po0000644000175000017500000003203410637512710011713 00000000000000# Polish translation of gshutdown. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # 3ED , 2007. # # Fryzjer Fuzzy lubi ciągnąć lody! :D msgid "" msgstr "" "Project-Id-Version: SVN - thats same at wiki\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-06-24 15:50+0000\n" "PO-Revision-Date: 2007-02-07 19:30+CET\n" "Last-Translator: 3ED \n" "Language-Team: 3ED noteam \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../src/args.c:48 msgid "Launch the action after a certain delay : HH:MM" msgstr "Wykonaj akcję po upływie określonego czasu: GG:MM" #: ../src/args.c:49 msgid "Launch the action at : HH:MM YYYY/MM/DD" msgstr "Wykonaj akcję o: GG:MM RRRR/MM/DD" #: ../src/args.c:50 msgid "Launch the action now." msgstr "Wykonaj akcję natychmiast." #: ../src/args.c:51 msgid "Available actions are : \"shutdown\", \"reboot\" or \"logout\"" msgstr "Dostępne akcje to: \"shutdown\", \"reboot\" or \"logout\"" #: ../src/args.c:52 msgid "Minimize the window at startup." msgstr "Minimalizuj okno przy starcie" #: ../src/args.c:64 #, c-format msgid "Error when parsing the arguments...\n" msgstr "Błąd przy wykonywaniu argumentów..\n" #: ../src/args.c:81 #, c-format msgid "" "You cannot call --launch-after-delay, --launch-at or --launch-now at the " "same time.\n" msgstr "" "Możesz podać tylko jeden parametr z trzech dostępnych:\n" "--launch-after-delay, --launch-at lub --launch-now\n" #: ../src/args.c:106 #, c-format msgid "" "The authorized values in --action option are : shutdown, reboot or logout\n" msgstr "Dozwolone argumenty --action to shutdown, reboot lub logout\n" #: ../src/args.c:131 #, c-format msgid "Error on parsing the content of %s : \"%s\".\n" msgstr "Błędny argument parametru %s : \"%s\".\n" #: ../src/callback.c:213 msgid "Notification test" msgstr "Test powiadomień" #: ../src/callback.c:250 ../src/gui.c:248 #, fuzzy, c-format msgid "%s%u hour" msgid_plural "%s%u hours" msgstr[0] "%s%u godzina" msgstr[1] "%s%u godzina" #: ../src/callback.c:256 ../src/gui.c:255 #, fuzzy, c-format msgid "%s%u minute" msgid_plural "%s%u minutes" msgstr[0] "%s%u minuta" msgstr[1] "%s%u minuta" #: ../src/callback.c:262 ../src/gui.c:261 #, fuzzy, c-format msgid "%s%u second" msgid_plural "%s%u seconds" msgstr[0] "%s%u sekunda" msgstr[1] "%s%u sekunda" #: ../src/callback.c:386 msgid "Computer is going to shutdown now !" msgstr "Komputer wyłącza się !" #: ../src/callback.c:396 msgid "Computer is going to reboot now !" msgstr "Komputer restartuje się !" #: ../src/callback.c:406 msgid "Current session will be terminated !" msgstr "Obecna sesja zostanie przerwana !" #: ../src/callback_main_window.c:71 msgid "" "I'm here !\n" "\n" "Move over me to see the countdown." msgstr "" "Jestem tutaj !\n" "\n" "Przesuń na mnie myszkę żeby zobaczyć odliczanie." #: ../src/callback_main_window.c:86 msgid "_Stop" msgstr "_Zatrzymaj odliczanie" #: ../src/callback_main_window.c:101 msgid "Chosen time already exceeded" msgstr "Ustaw czas przyszły" #: ../src/callback_main_window.c:136 ../src/gshutdown.glade:226 msgid "_Start" msgstr "_Zacznij odliczanie" #: ../src/callback_main_window.c:139 ../src/gui.c:575 msgid "No action scheduled" msgstr "Nie zaplanowano akcji" #: ../src/callback_main_window.c:354 msgid "Are you sure you want to quit ?" msgstr "Czy jesteś pewien że chcesz opuścić program ?" #: ../src/eggtrayicon.c:128 msgid "Orientation" msgstr "Orientacja?" #: ../src/eggtrayicon.c:129 msgid "The orientation of the tray." msgstr "Orientacja w tray?" #: ../src/gui.c:283 msgid "At date and time" msgstr "W dniu i o godzinie" #: ../src/gui.c:284 msgid "After a delay" msgstr "Wykonaj akcję za :" #: ../src/gui.c:285 msgid "Now" msgstr "Wykonaj teraz" #: ../src/gui.c:295 ../src/gshutdown.glade:410 msgid "Turn off the computer" msgstr "Wyłącz komputer" #: ../src/gui.c:296 ../src/gshutdown.glade:419 msgid "Restart computer" msgstr "Zrestartuj komputer" #: ../src/gui.c:297 ../src/gshutdown.glade:428 msgid "End current session" msgstr "Wyloguj użytkownika" #: ../src/gui.c:301 msgid "Extras" msgstr "" #: ../src/gui.c:305 msgid "Custom command..." msgstr "Ręcznie wybierz polecenie dla akcji:" #: ../src/gui.c:382 msgid "Not detected!" msgstr "Nie wykryto!" #: ../src/gui.c:474 ../src/gui.c:483 msgid "Autodetect" msgstr "Automatyczne wykrywanie" #: ../src/gui.c:563 ../src/gui.c:603 #, c-format msgid "%s doesn't exist.\n" msgstr "%s nie istnieje.\n" #: ../src/gui.c:639 msgid "Shutdown" msgstr "Wyłącz komputer" #: ../src/gui.c:640 msgid "Reboot" msgstr "Zrestartuj komputer" #: ../src/gui.c:641 msgid "Logout" msgstr "Wyloguj użytkownika" #: ../src/gui.c:689 msgid "Immediate action" msgstr "Natychmiast" #: ../src/gui.c:692 msgid "Cancel current action" msgstr "Zatrzymaj odliczanie" #: ../src/gui.c:722 msgid "Are you sure you want to shutdown your computer now ?" msgstr "Czy jesteś pewnie że chcesz teraz wyłączyć komputer ?" #: ../src/gui.c:724 msgid "Are you sure you want to restart your computer now ?" msgstr "Czy jesteś pewnie że chcesz teraz zrestartować komputer ?" #: ../src/gui.c:726 msgid "Are you sure you want to logout from your session now ?" msgstr "Czy jesteś pewnie że chcesz teraz zakończyć sesję?" #: ../src/gui.c:751 msgid "" "GShutdown was unable to detect your display manager. Currently, GShutdown " "only supports GDM and KDM.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "Gshutdown nie potrafi wykryć twojego menadżera logowania. Obecnie Gshutdown " "obsługuje jedynie GDM i KDM.\n" "\n" "Edytuj preferencję w celu ręcznego wybrania poprawnej metody." #: ../src/gui.c:756 msgid "" "GShutdown was unable to detect your desktop. Currently, GShutdown only " "supports GNOME and KDE.\n" "\n" "Go to the configuration menu and specify the correct method to do that." msgstr "" "Gshutdown nie potrafi wykryć twojego pulpitu. Obecnie Gshutdown obsługuje " "jedynie GNOME i KDE.\n" "\n" "Edytuj preferencję w celu ręcznego wybrania poprawnej metody." #: ../src/main.c:176 #, c-format msgid "The configuration cannot be loaded from %s." msgstr "Nie można odczytać konfiguracji z %s." #: ../src/main.c:219 #, c-format msgid "The configuration cannot be saved in %s." msgstr "Nie można zapisać konfiguracji w %s." #: ../src/pconfirm.c:59 msgid "Warning !" msgstr "Uwaga !" #: ../src/pconfirm.c:77 msgid "Warning ! Your computer is going to shutdown now !" msgstr "Uwaga ! Teraz komputer wyłączy się !" #: ../src/pconfirm.c:79 msgid "Warning ! Your computer is going to restart now !" msgstr "Uwaga ! Teraz komputer restartuje się !" #: ../src/pconfirm.c:81 msgid "Warning ! Your going to logout now !" msgstr "Uwaga ! Teraz komputer wyloguje się !" #: ../src/timer.c:151 #, c-format msgid "The computer will be shut down in :" msgstr "Komputer wyłączy się za :" #: ../src/timer.c:153 #, c-format msgid "The computer will be restarted in :" msgstr "Komputer zrestartuje się za :" #: ../src/timer.c:155 #, c-format msgid "Time before logout :" msgstr "Czas do wylogowania :" #: ../src/timer.c:157 #, c-format msgid "Time before action :" msgstr "Czas przed akcją :" #: ../src/timer.c:165 #, fuzzy, c-format msgid "%s %u minute" msgid_plural "%s %u minutes" msgstr[0] "%s %u minut" msgstr[1] "%s %u minut" #: ../src/timer.c:171 #, fuzzy, c-format msgid "%s and %u second" msgid_plural "%s and %u seconds" msgstr[0] "%s i %u sekund" msgstr[1] "%s i %u sekund" #: ../src/timer.c:176 #, fuzzy, c-format msgid "%s %u hour" msgid_plural "%s %u hours" msgstr[0] "%s %u godzin" msgstr[1] "%s %u godzin" #: ../src/timer.c:180 #, fuzzy, c-format msgid "%s and %u minute" msgid_plural "%s and %u minutes" msgstr[0] "%s i %u minut" msgstr[1] "%s i %u minut" #: ../src/timer.c:184 #, fuzzy, c-format msgid "%s %u day" msgid_plural "%s %u days" msgstr[0] "%s %u dni" msgstr[1] "%s %u dni" #: ../src/timer.c:188 #, fuzzy, c-format msgid "%s and %u hour" msgid_plural "%s and %u hours" msgstr[0] "%s u %u godzin" msgstr[1] "%s u %u godzin" #: ../src/timer.c:202 #, fuzzy, c-format msgid "%s %u second" msgid_plural "%s %u seconds" msgstr[0] "%s%u sekunda" msgstr[1] "%s%u sekunda" #: ../src/gshutdown.glade:25 msgid "_File" msgstr "_Plik" #: ../src/gshutdown.glade:46 msgid "_Edit" msgstr "_Edycja" #: ../src/gshutdown.glade:67 msgid "_Help" msgstr "Pomo_c" #: ../src/gshutdown.glade:126 msgid "Hour" msgstr "Godziny" #: ../src/gshutdown.glade:152 msgid "Minute" msgstr "Minuty" #: ../src/gshutdown.glade:179 msgid "_Actual time" msgstr "_Aktualny czas" #: ../src/gshutdown.glade:194 msgid "Select a time" msgstr "Programowanie zegara" #: ../src/gshutdown.glade:248 msgid "An advanced shutdown utility" msgstr "" "Zaawansowany program do wykonywania czynności związanych z wyłączaniem, " "uruchamianiem ponownym oraz wylogowaniem użytkowników po upływie określonego " "czasu." #: ../src/gshutdown.glade:267 #, fuzzy msgid "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Kristopher (Polish)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)" msgstr "" "Alejandro Zarate (Spanish)\n" "Alexander Sjögren (Swedish)\n" "Andrea Carnaroli (Italian)\n" "Andrew V. Sichevoi (Russian)\n" "Bill Heldorf Soerensen (Danish)\n" "Dóra Kováts (Hungarian)\n" "GShutdown Team (French)\n" "Miloš Popović (Serbian)\n" "Øyvind Pedersen (Norwegian)\n" "Rolando Emanuel Lopes Pereira (Portuguese)\n" "Rolf Loire (German)\n" "Siegfried Gevatter (Catalan)\n" "Krzysztof AS aka \"3ED\" (Poland)" #: ../src/gshutdown.glade:324 msgid "Select a method :" msgstr "Wybierz metodę :" #: ../src/gshutdown.glade:343 msgid "Custom command" msgstr "Przypisz polecenie do akcji:" #: ../src/gshutdown.glade:386 msgid "Specify the method manually" msgstr "Ręczne (gdy automatyczne zawodzi)" #: ../src/gshutdown.glade:398 msgid "Autodetect the method (recommended)" msgstr "Automatyczne wykrywanie (zalecane)" #: ../src/gshutdown.glade:446 msgid "Launch a command before the action" msgstr "Wykonaj polecenie przed wykonaniem akcji" #: ../src/gshutdown.glade:488 msgid "Actions" msgstr "Akcje" #: ../src/gshutdown.glade:520 msgid "Always" msgstr "Zawsze" #: ../src/gshutdown.glade:530 msgid "If active" msgstr "Podczas odliczania" #: ../src/gshutdown.glade:540 msgid "Never" msgstr "Nigdy" #: ../src/gshutdown.glade:553 msgid "Iconify when the action is started" msgstr "Podczas odliczania schowaj okno do ikony" #: ../src/gshutdown.glade:567 msgid "Show system tray icon" msgstr "Pokazuj ikonkę w tray :" #: ../src/gshutdown.glade:595 msgid "Display warning message _before action" msgstr "_Wyświetlaj podczas odliczania" #: ../src/gshutdown.glade:604 msgid "T_est" msgstr "_Test" #: ../src/gshutdown.glade:614 msgid "_Customize notifications time" msgstr "_Ustaw przerwy pomiędzy powiadomieniami" #: ../src/gshutdown.glade:629 msgid "Notifications" msgstr "Powiadomienia" #: ../src/gshutdown.glade:652 msgid "Misc" msgstr "Dodatkowe ustawienia" #: ../src/gshutdown.glade:675 ../src/gshutdown.glade:772 #: ../src/gshutdown.glade:858 ../src/gshutdown.glade:944 #: ../src/gshutdown.glade:1114 msgid "gtk-close" msgstr "" #: ../src/gshutdown.glade:705 msgid "Enter the command :" msgstr "Wprowadź polecenie :" #: ../src/gshutdown.glade:805 msgid "Display manager :" msgstr "Menadżer logowania :" #: ../src/gshutdown.glade:817 msgid "Desktop :" msgstr "Pulpit :" #: ../src/gshutdown.glade:872 msgid "Select the method manually" msgstr "Wybierz metodę ręcznie" #: ../src/gshutdown.glade:889 msgid "" "Here, you can manually specify what is your desktop and display manager if " "GShutdown was unable to detect it itself." msgstr "" "Tutaj możesz ręcznie wybrać swój pulpit i menadżer logowań jeżeli Gshutdown " "nie zrobił tego poprawnie." #: ../src/gshutdown.glade:897 msgid "Desktop :" msgstr "Pulpit :" #: ../src/gshutdown.glade:916 msgid "Display manager :" msgstr "Menadżer logowania :" #: ../src/gshutdown.glade:983 msgid "gtk-remove" msgstr "" #: ../src/gshutdown.glade:1027 msgid "h" msgstr "godz" #: ../src/gshutdown.glade:1048 msgid "min" msgstr "min" #: ../src/gshutdown.glade:1069 msgid "s" msgstr "s" #: ../src/gshutdown.glade:1078 msgid "gtk-add" msgstr "" #: ../src/gshutdown.glade:1094 msgid "At time :" msgstr "Powiadamiaj co :" #~ msgid "%s%u hours" #~ msgstr "%s%u godzin" #~ msgid "%s%u minutes" #~ msgstr "%s%u minut" #~ msgid "%s%u seconds" #~ msgstr "%s%u sekund" #~ msgid "%s 1 minute" #~ msgstr "%s 1 minuta" #~ msgid "%s and 1 second" #~ msgstr "%s i 1 sekunda" #~ msgid "%s 1 hour" #~ msgstr "%s 1 godzina" #~ msgid "%s and 1 minute" #~ msgstr "%s i 1 minuta" #~ msgid "%s %u days" #~ msgstr "%s %u dni" #~ msgid "%s and 1 hour" #~ msgstr "%s i 1 godzina" #~ msgid "%s : %u second" #~ msgstr "%s : %u sekunda" #~ msgid "%s : %u seconds" #~ msgstr "%s : %u sekund" gshutdown-0.2/po/fr.gmo0000644000175000017500000002233410637512711012056 00000000000000c4Lpq"" 8 K ` y    h ; B 7_  4 5 " 3 = #H 8l   ! # $ C R d n &   + $  't}."& IS"d/'$)/ CQ cq u J#`#+(/D Z1d2$T CPntzZq "%BYr h@yI/$A>Z #=8R(n+((7Bz2*rJ(Ir"0;# ? #Q u |      ! 2!&S!0z!!#!!Q!"2"%U"={"?"&" #"7#Z# p#3|#0#)#Y $e$)}$ $$$ $$$$$F%+Y96^@!G5>)T ;Lc#30Ha.W\M'[(-X4?D7VP&<:A* /$2UI BN8SR`b_ Z1EO]= C,"K JQ%s %u day%s %u days%s %u hour%s %u hours%s %u minute%s %u minutes%s %u second%s %u seconds%s and %u hour%s and %u hours%s and %u minute%s and %u minutes%s and %u second%s and %u seconds%s doesn't exist. %s%u hour%s%u hours%s%u minute%s%u minutes%s%u second%s%u secondsDesktop :Display manager :ActionsAfter a delayAlejandro Zarate (Spanish) Alexander Sjögren (Swedish) Andrea Carnaroli (Italian) Andrew V. Sichevoi (Russian) Bill Heldorf Soerensen (Danish) Dóra Kováts (Hungarian) GShutdown Team (French) Kristopher (Polish) Miloš Popović (Serbian) Øyvind Pedersen (Norwegian) Rolando Emanuel Lopes Pereira (Portuguese) Rolf Loire (German) Siegfried Gevatter (Catalan)AlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_StophminsProject-Id-Version: gshutdown Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-06-11 00:15-0000 Last-Translator: Achraf cherti Language-Team: GShutdown Team MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: French X-Poedit-Country: FRANCE X-Poedit-SourceCharset: utf-8 Plural-Forms: nplurals=2; plural=n > 1 %s %u jour%s %u jours%s %u heure%s %u heures%s %u minute%s %u minutes%s %u seconde%s %u secondes%s et %u heure%s et %u heures%s et %u minute%s et %u minutes%s et %u seconde%s et %u secondesLe fichier %s n'existe pas. %s%u heure%s%u heures%s%u minute%s%u minutes%s%u seconde%s%u secondesBureau :Gestionnaire de session :ActionsAprès un délaiAlejandro Zarate (Spanish) Alexander Sjögren (Swedish) Andrea Carnaroli (Italian) Andrew V. Sichevoi (Russian) Bill Heldorf Soerensen (Danish) Dóra Kováts (Hungarian) GShutdown Team (French) Kristopher (Polish) Miloš Popović (Serbian) Øyvind Pedersen (Norwegian) Rolando Emanuel Lopes Pereira (Portuguese) Rolf Loire (German) Siegfried Gevatter (Catalan)ToujoursUtilitaire avancé pour programmer l'arrêt, le redémarrage de votre ordinateur, or la fermeture de la session en cours.Êtes-vous sûre de vouloir fermer la session ?Êtes-vous sûr de vouloir quitter ?Êtes-vous sûre de vouloir redémarrer l'ordinateur maintenant ?Êtes-vous sûre de vouloir arrêter l'ordinateur maintenant ?À une heure et une dateÀ l'heure :Détection automatiqueDétecter la méthode (recommandé)Les valeurs possibles sont : "shutdown", "reboot" ou "logout"Annuler l'action en coursTemps choisi déjà expiréL'ordinateur va redémarrer maintenant !L'ordinateur va être arrêté maintenant !La session actuelle va être terminée !Commande personnaliséeCommande personnalisée...Bureau :Gestionnaire de session :Afficher les notification, pour prévenir l'utilisateurFermer la session en coursEntrer la commande :Erreur lors de l'analyse du contenu de %s : "%s". Erreur lors de l'analyse des arguments... ExtrasGShutdown fut incapable de détecter votre bureau. Actuellement, il ne supporte que GNOME et KDE. Allez dans le menu "Préférences" pour spécifier la méthode à employer.GShutdown fut incapable de détecter votre gestionnaire de session. Actuellement, il ne supporte que GDM et KDM. Allez dans le menu "Préférences" pour spécifier la méthode correcte à employer.Vous pouvez spécifier le bureau et le gestionnaire de session manuellement, si GShutdown n'a pas pu le détecter.HeureJe suis ici ! Déplacez la souris au dessus de moi pour voir le compteur.Icônifier quand l'action est démarréeS'il est actifAction immédiateLancer une commande avant l'actionLancer l'action après un certain délai : HH:MMLancer l'action à une heure et une date : HH:MM AAAA/MM/JJLancer l'action maintenant.Fermer la sessionMinimiser la fenêtre au lancement.MinuteDiversJamaisAucune action programméeNon détecté!Test de la notificationNotificationsMaintenantOrientationRedémarrerRedémarrer l'ordinateurSélectionnez une méthode :Sélectionnez la date et l'heureSélectionner la méthode manuellementAfficher une icône dans la zone de notificationArrêterSpécifier la méthode manuellementT_esterLes valeurs autorisées dans l'option --action sont : shutdown, reboot ou logout L'ordinateur va redémarrer dans :L'ordinateur va être arrêté dans :La configuration ne peut être chargée depuis le fichier %s.La configuration ne peut être enregistrée dans le fichier %s.L'orientation de la barre des tâches.Temps avant l'action :La session va être fermée dans :Arrêter l'ordinateurAttention !Attention ! Votre ordinateur va être redémarré !Attention ! Votre ordinateur va être arrêté !Attention ! La session va être fermée !Vous ne pouvez appeler --launch-after-delay, --launch-at ou --launch-now en même temps. Date et heure _actuellePersonnaliser les dates des notifications_Édition_Fichier_Aide_Démarrer_Stopperhminsgshutdown-0.2/po/es.gmo0000644000175000017500000001715010637512711012056 00000000000000[ #7@x45   #) 8M   ! # $ $ 3 E O &a   + $   t^  . " * 4 "E /h '       $2 DR Vbiz J#A#e+(% ;1E2w$T $1OU[ahn v -@_h 5#<9?#y  %?*3(^%"  3"Vo0(]D(6_o%/) )JQV\y  " &0W"^N!/.Ix"52.,aR ) "+ 2<C K U`bf+Z 6W/Q#S5(-@X?* 4DB0NTM19OIY2J8%"<$[HE;)!P&=R ,7:> V'C3KA GULF. %s doesn't exist. Desktop :Display manager :ActionsAfter a delayAlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_Stopgtk-addgtk-closegtk-removehminsProject-Id-Version: gshutdown\n Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-06-10 23:37-0000 Last-Translator: Achraf cherti Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Spanish X-Poedit-Country: ARGENTINA Plural-Forms: nplurals=2; plural=n != 1; %s no existe. Escritorio:Manejador de pantalla: AccionesDespués de un retrasoSiempreUna utilidad de apagado avanzada¿Está seguro de que quiere cerrar la sesión ahora?¿Está seguro de que quiere salir?¿Está seguro de que quiere reiniciar la computadora ahora?¿Está seguro de que quiere apagar la computadora ahora?En un día y una fecha determinadosA la hora:AutodetectarAutodetectar el método (recomendado)Las acciones disponibles son : "shutdown", "reboot" or "logout"Cancelar acción actualEl tiempo seleccionado ya ha sido excedido¡La computadora va a reiniciarse ahora!¡La computadora va a apagarse ahora!¡La sesión actual será cerrada!Comando personalizadoComando personalizado...Escritorio:Manejador de pantalla:_Mostrar mensaje de advertencia antes de la acciónFinalizar sesión actualIngrese el comando:Error de sintaxis en el contenido de %s : "%s". Error de sintáxis en los argumentos... ExtrasGShutdown no pudo detectar su entorno de escritorio. Por el momento, Gshutdown sólo soporta GNOME y KDE. Vaya al menú de configuración y especifique el método correcto para hacer eso.GShutdown no pudo detectar su manejador de pantallas. Por el momento, Gshutdown sólo soporta GDM y KDM. Vaya al menú de configuración y especifique el método correcto para hacer eso.Aquí pude especificar manualmente cuales son su escritorio y su manejador de panatalla si GShutdown no fue capaz de detectarlos por si mismo.Hora¡Estoy aquí! n Mueva el cursor sobre mi para ver la cuenta atrás.Mostrar icono cuando la acción comienceSi está activoAcción inmediataLanzar un comando antes de la acciónLanzar la acción después de un retraso: HH:MMLanzar la acción a las: HH:MM YYYY/MM/DDLanzar la acción ahora.Cerrar sesiónMinimizar la ventana al iniciar.MinutoMiscNuncaNo hay acciones programadas.¡No detectado!Prueba de notificaciónNotificacionesAhoraOrientaciónReiniciarReiniciar computadoraSeleccionar método:Seleccionar una horaSeleccionar el método manualmenteMostrar icono en la bandeja de sistemaApagarEspecificar el método manualmente_ProbarLos valores autorizados en la opción --action son: shutdown, reboot o logout La computadora se reiniciará en:La computadora se apagará en:La configuración no puede ser cargada dede %s.La configuración no puede ser guardada en %s.La orientación de la bandeja.Tiempo hasta la acción:Tiempo antes de cerrar la sesión:Apagar la computadora¡Advertencia!Advertencia: ¡Su computadora va a reiniciarse ahora!Advertencia: ¡Su computadora va a apagarse ahora!Advertencia: ¡Va a cerrar su sesión ahora!No puede llamar --launch-after-delay, --launch-at o --launch-now al mismo tiempo. _Hora actualPersonalizar la hora de la _notificación_Edición_ArchivoAy_uda_Comenzar_Parargtk-addgtk-closegtk-removehminsgshutdown-0.2/po/ca.gmo0000644000175000017500000002176210637512711012036 00000000000000fL| "" "E h {      h k r 7  4 5 R c m #x 8   ! #* $N s   &   + $+PWt".'"V y"/'&-MTY_ s   #?JE##+(-J_t 12$T s  :Whpj2q162$W h r.9 1?$q  #+71cPD-#(,L$y$ + A O S _ i  " *  !N!h!!.!,!!",3"`"r":z"9"("Q# j#*x# ### ### # ####F%+Y96^@!G5>)T ;Lf#30Hd.W\M'[(-X4?D7cVP&<:A* /$2UI BN8SR`ae_ Z1EO]= C,b"K JQ%s %u day%s %u days%s %u hour%s %u hours%s %u minute%s %u minutes%s %u second%s %u seconds%s and %u hour%s and %u hours%s and %u minute%s and %u minutes%s and %u second%s and %u seconds%s doesn't exist. %s%u hour%s%u hours%s%u minute%s%u minutes%s%u second%s%u secondsDesktop :Display manager :ActionsAfter a delayAlejandro Zarate (Spanish) Alexander Sjögren (Swedish) Andrea Carnaroli (Italian) Andrew V. Sichevoi (Russian) Bill Heldorf Soerensen (Danish) Dóra Kováts (Hungarian) GShutdown Team (French) Kristopher (Polish) Miloš Popović (Serbian) Øyvind Pedersen (Norwegian) Rolando Emanuel Lopes Pereira (Portuguese) Rolf Loire (German) Siegfried Gevatter (Catalan)AlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_Stopgtk-addgtk-closegtk-removehminsProject-Id-Version: gshutdown Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-06-12 17:57+0100 Last-Translator: Siegfried-Angel Gevatter Pujals (RainCT) Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Catalan X-Poedit-Country: SPAIN X-Poedit-SourceCharset: utf-8 Plural-Forms: nplurals=2; plural=(n != 1); %s %u dia%s %u dies%s %u hora%s %u hores%s %u minut%s %u minuts%s %u segon%s %u segons%s i %u hora%s i %u hores%s i %u minut%s i %u minuts%s i %u segon%s i %u segons%s no existeix. %s %u hora%s %u hores%s %u minut%s %u minuts%s%u segon%s%u segonsEscriptori:"Display manager:"AccionsDesprés d'un retardAlejandro Zarate (Castellà) Alexander Sjögren (Suec) Andrea Carnaroli (Italià) Andrew V. Sichevoi (Rus) Bill Heldorf Soerensen (Danès) Dóra Kováts (Hongarès) GShutdown Team (Francès) Kristopher (Polonès) Miloš Popović (Serbi) Øyvind Pedersen (Noruec) Rolando Emanuel Lopes Pereira (Portuguès) Rolf Loire (Alemany) Siegfried-Angel Gevatter Pujals (Català)SempreUna avançada utilitat per apagar el teu ordinadorEstàs segur que vols tancar la teva sessió ara?Segur que vols sortir?Estàs segur que vols re-iniciar el teu ordinador ara?Estàs segur que vols apagar el teu ordinador ara?A la data i horaA l'hora:AutodetectarDetecta automàticament el mètode (recomanat)Accions disponibles són: "shutdown", "reboot" o "logout"Cancel·la l'acció actualL'hora triada ja ha passatL'ordinador es re-iniciarà ara!L'ordinador està a punt de tornar a ser iniciat!La sessió actual serà finalitzada!Ordres personalitzadesOrdres personalitzades...Escriptori:"Display manager":Mostra un missatge d'avís abansFinalitza la sessió actualIntrodueix l'ordre:Error al tractar el contingut de %s: "%s". Hi ha hagut un error al tractar els arguments... ExtresGShutdown no ha pogut detectar el teu escriptori. Actualment, GShutdown només suporta GNOME i KDE. Vés al menú de configuració i especifica el mètode correcte per fer això.GShutdown no ha pogut detectar el teu "display manager". Actualment, GShutdown només suporta GDM i KDM. Ves al menú de configuració i especifica el mètode correcte per fer això.Aquí, pots especificar manualment quin és el teu escriptori i "display manager" si GShutdown no ha pogut detectar-lo automàticament.HoraEstic aquí! Passa el ratolí per sobre per veure el compte enrere.Mostra una icona quan l'acció hagi començatSi està actiuAcció immediataExecuta una ordre abans de l'accióExecuta l'acció després d'un retard: HH:MMExecuta l'acció a: HH:MM DD/MM/YYYYExecuta l'acció ara.Tanca la sessióMinimitza aquesta finestra a l'iniciMinutDiversMaiNo hi ha cap tasca programadaNo s'ha detectat!Prova de notificacióNotificacionsAraOrientacióRe-iniciaRe-inicia l'ordinadorTria un mètode:Tria un dataSel·leciona el mètode manualmentMostra una icona a l'àrea de notificacióApagaEspecifica el mètode manualment_ProvaEls valors autoritzats per l'opció --action són: shutdown, reboot or logout L'ordinador es re-iniciarà en:L'ordinador s'apagarà en:No s'ha pogut carregar la configuració de %s.No s'ha pogut guardar la configuració a %s.L'orientació del la safata.Temps fins a l'acció:Temps restant fins que es tanqui la sessió:Apaga l'ordinadorAlerta!Alerta! El teu ordinador s'està preparant per re-iniciar!Alerta! El teu ordinador s'està preparant per apagar-se!Alerta! La teva sessió es tancarà ara!No pots cridar --launch-after-delay, --launch-at o --launch-now al mateix temps. _Temps actual_Personalitza la data de les notificacions_Modifica_ArxiuA_juda_Començar_Parargtk-addgtk-closegtk-removehminsgshutdown-0.2/po/sv.gmo0000644000175000017500000001241510637512711012076 00000000000000FLa|%>E7b45% 6 @#Ko!#$ &%L`t{t#  . "  " - 4 ; @ F T f j q       # #" +F (r    1 2 $J o |         q 3C Tb$i<'56) `nv. "6 LWizgF0NWj    (2IOo)% $+.6Z#   &?/C+ @ 5)D"<,B841>E $.3A%*-9(2# ! 7;60:='F %s doesn't exist. Desktop :Display manager :AlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Chosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLogoutMinuteMiscNeverNot detected!Notification testNowRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !_Actual time_Customize notifications time_Edit_File_Help_Start_StophminsProject-Id-Version: Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-01-02 10:57-0000 Last-Translator: Achraf cherti Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Swedish X-Poedit-Country: SWEDEN X-Poedit-SourceCharset: utf-8 %s finns inte. Desktop :Visa :AlltidEtt avancerat nersläcknigs program Är du säker på att du vill logga ut från din session nu?Är du säker på att du vill avsluta ?Är du säker på att du vill starta om din dator nu?Är du säker på att du vill stänga av din dator nu?Datum och tidÅt tidhitta Automatisk Automatisk detectering av metod (rekomenderad)Vald tid redan överskriden Datorn kommer startas om nu !Datorn kommer stängas ner nu ! Vald session kommer att avslutas !Färdig valt kommandoDesktop : Display manager :Visa varning meddelande _före Avsluta vald session Skriv in kommandot :ExtraGShutdown kunde inte hitta ditt skrivbord. Just nu stödjer GShutdown endast Gnome och KDE. Gå till konfigurations menyn för att välja den rätta metoden att göra det.Här kan du manuellt specificera vad som är ditt skrivbord och display manager om inte GShutdown kunde hitta det själv. _TimmeJag är här ! Flytta markeringen över mig för att se nedräkningenVisa när en process startar Om aktivOmedelbar handlingStarta ett kommando före Logga utMinutAnnatAldrigInte hittad! Uppfattnings testNuStarta om Starta om datornVälj en metodVälj en tidVälj metod manuelltVisa system tray ikon Stäng avVälj metoden manuelltT_estDatorn kommer startas om inom :Dator kommer stängas inom :Konfigurationen kan inte laddas från %s.Konfigurationen kan inte sparas i %s.Tid före handling :Tid innan utloggning: Stäng av datorn av datorn Varning !Varning ! Din dator kommer startas om nu ! Varning ! Din dator håller på att stängas ner nu ! Varning ! Du kommer loggas ut nu ! _Tid just nu _Redigera notifikations tid_redigera_fil_Hjälp_Start_Slutahminsgshutdown-0.2/po/pt.gmo0000644000175000017500000001676110637512711012101 00000000000000[ #7@x45   #) 8M   ! # $ $ 3 E O &a   + $   t^  . " * 4 "E /h '       $2 DR Vbiz J#A#e+(% ;1E2w$T $1OU[ahn v S6?O V1w541@ T&b? "!'$In+,'#TxHD$ $%1J%|!8G M Zd{!!!Mf8+ !#:^ t21.V k(y    +Z 6W/Q#S5(-@X?* 4DB0NTM19OIY2J8%"<$[HE;)!P&=R ,7:> V'C3KA GULF. %s doesn't exist. Desktop :Display manager :ActionsAfter a delayAlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_Stopgtk-addgtk-closegtk-removehminsProject-Id-Version: Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-06-12 00:19+0100 Last-Translator: Rolando Emanuel Lopes Pereira Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n != 1; %s não existe. Ambiente de trabalho :Gerenciador de janelas :AcçõesApós um atrasoSempreUm método avançado de desligarTem a certeza que quer terminar a sessão agora ?Tem a certeza que quer sair?Tem a certeza que quer reiniciar o computador agora ?Tem a certeza que quer desligar o computador agora ?À data e horaAo seguinte tempo :Auto detectarAuto detectar do método (recomendado)As acções disponíveis são: "shutdown", "reboot" ou "logout"Cancelar a acção actualTempo escolhido já ultrapassadoO computador vai reiniciar agora !O computador vai desligar agora !A sessão actual vai ser terminada !Comando personalizadoComando personalizado...Ambiente de trabalho :Gerenciador de janelas :Mostrar mensagem de aviso _antes da acçãoTerminar a sessão actualColocar o comando :Erro ao processar o conteúdo de %s : "%s". Erro ao processar os argumentos... ExtrasGShutdown não foi capaz de detectar o seu ambiente de trabalho. Actualmente, GShutdown apenas suporta GNOME e KDE. Vá ao menú de configuração e especifique o método correcto para executar isso.GShutdown não foi capaz de detectar o seu gerenciador de janelas. Actualmente, o GShutdown só suporta GDM e KDM. Vá ao menú de configuração e especifique o método correcto para executar isso.Aqui, você pode manualmente especificar qual é o seu desktop e gerenciador de janelas se o Gshutdown não os conseguir detectar sozinho.HoraEstou aqui ! Passe por cima de mim para ver a contagem decrescente.Iconificar quando a acção começarSe activoAcção imediataExecutar um comando antes da acçãoExecutar a acção, após um certo atraso : HH:MMExecutar acção às HH:MM YYYY/MM/DDExecutar a acção agora.DesligarMinimizar a janela ao iniciar.MinutoMiscNuncaNenhuma acção programadaNão detectado!Teste de NotificaçãoNotificaçõesAgoraOrientaçãoReiniciarReiniciar o computadorEscolha um método :Escolha um tempoEscolha o método individualmenteMostrar icone na barra de tarefasDesligarEspecifique o método manualmenteT_estarOs valores autorizados na opção --action são : shutdown, reboot ou logout O computador vai reiniciar em :O computador vai desligar em :A configuração não pode ser carregada a partir de %s.A configuração não pode ser salva em %s.Orientação da barra.Tempo antes da acção :Tempo antes de terminar a sessão :Desligar o computadorAtenção !Atenção ! O seu computador vai reiniciar agora !Atenção ! O seu computador vai desligar agora !Warning ! Você vai terminar a sessão agora !Não podes executar --launch-after-delay, --launch-at ou --launch-now ao mesmo tempo. _Tempo actual_Personalizar os tempos de notificação_Editar_Ficheiro_Ajuda_Começar_Parargtk-addgtk-closegtk-removehminsgshutdown-0.2/po/de.gmo0000644000175000017500000001534210637512711012040 00000000000000Nk 7.4N5  #8<R!o#$&" 6 +J $v  J t m .r "  " / '2 Z q x          & 4 O e n  J # # +#(Ox 12$D iv!=)Y>? )0BZ%$%%AP$b3)n=PD'  #7MTr y   $<U e qH!"3&6Z!! -.C&r   KJ$F/ N,6> 91M D 2G!'*C4B%=A&# 5;3?L":-@+EH(I 07)8<.%s doesn't exist. ActionsAfter a delayAlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !_Actual time_Customize notifications time_Edit_File_HelpProject-Id-Version: Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-01-30 23:34+0100 Last-Translator: Maxime Chéramy Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %s existiert nicht. AktionenNach dieser ZeitImmerEin erweitertes Shutdown-ProgrammSind Sie sicher, dass Sie diese Sitzung jetzt beenden wollen?Wollen Sie das Programm wirklich beenden?Sind Sie sicher, dass Sie den Rechner jetzt neustarten wollen?Sind Sie sicher, dass Sie den Rechner jetzt ausschalten wollen?Zu dieser ZeitZur Zeit:Bestimme automatischMethode automatisch bestimmen (empfohlen)Folgende Aktionen sind möglich : "shutdown", "reboot" or "logout"Diese Aktion abbrechenDiese Zeit liegt in der VergangenheitDer Rechner wird jetzt neugestartet!Der Rechner wird jetzt ausgeschaltet!Diese Sitzung wird beendet!Eigener BefehlEigener Befehl...Zeige eine Nachricht _vor der AktionDiese Sitzung beendenGeben Sie den Befehl ein:Fehler beim Analysieren des Inhalts von %s : "%s". Fehler beim Analysieren der Argumente... ExtrasGShutdown konnte ihre Desktopumgebung nicht identifizieren. GShutdown unterstützt derzeit GNOME und KDE. Gehen Sie zur Konfiguration und geben Sie den richtigen Befehl an, um die Aktion ausführen zu können.GShutdown konnte ihren Displaymanager nicht ausfindig machen. Zu diesem Zeitpunkt unterstützt GShutdown GDM und KDM. Gehen Sie zur Konfiguration und geben Sie den richtigen Befehl an, um die Aktion ausführen zu können.Hier können Sie ihren Desktop- und Displaymanager manuell angeben falls GShutdown dazu nicht in der Lage war.StundeIch bin hier! Zeige mit dem Cursor auf mich, um den Countdown sehen zu können.Zeige Icon, wenn Aktion gestartet wurdeWenn aktivSofortige AktionBefehl vor der Aktion ausführenStarte Aktion in : HH:MMStarte Aktion um : HH:MM YYYY/MM/DDStarte Aktion sofort.LogoutMinimiere Fenster beim Start.MinuteVerschiedenesNieKeine Aktion geplantNicht gefunden!BenachrichtigungstestBenachrichtigungenJetztOrientierungNeustartenRechner neustartenWählen Sie eine Methode:Wählen Sie die UhrzeitBestimme Methode manuellZeige Tray-IconAusschaltenGeben Sie die Methode manuell anT_estDie autorisierten Werte in --action sind: shutdown, reboot oder logout. Der Rechner wird neugestartet in:Der Rechner wird ausgeschaltet in:Die Konfiguration kann von %s nicht geladen werden.Die Konfiguration kann in %s nicht gespeichert werden.Orientierung des Tray-Symbols.Verbleibende Zeit bis zur Aktion:Verbleibende Zeit bis zum Logout:Schalte den Rechner ausAchtung!Achtung! Der Rechner wird jetzt neugestartet!Achtung! Der Rechner wird jetzt ausgeschaltet!Achtung! Die Sitzung wird nun beendet!_Jetzige Zeit_Benachrichtungsdauer verändern_Bearbeiten_Datei_Hilfegshutdown-0.2/po/da.gmo0000644000175000017500000001571210637512711012035 00000000000000[ #7@x45   #) 8M   ! # $ $ 3 E O &a   + $   t^  . " * 4 "E /h '       $2 DR Vbiz J#A#e+(% ;1E2w$T $1OU[ahn v   0H!`$ 7 <[p .*'YGkN=S% **#Ndk       4 KVnFt,%@Zp  !!c cp  +Z 6W/Q#S5(-@X?* 4DB0NTM19OIY2J8%"<$[HE;)!P&=R ,7:> V'C3KA GULF. %s doesn't exist. Desktop :Display manager :ActionsAfter a delayAlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_Stopgtk-addgtk-closegtk-removehminsProject-Id-Version: Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-01-30 23:31+0100 Last-Translator: Maxime Chéramy Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %s eksisterer ikke. Skrivebord :Display manager :HandlingForsinketHver gangAvanceret nedluknings værktøjØnsker du at logge af?Ønsker du at afslutte?Ønsker du at genstarte systemet?Ønsker du at lukke systemet ned nu?på tidspunktetKl. :AutodetekterAutomatisk metode (anbefalet)Mulige handlinger : "shutdown", "reboot" eller "logout"Fortryd nuværende handlingDen valgte tid er overskredet.Systemet genstartes.Systemet lukkes ned.Nuværende session afsluttes!Bruger kommando:Bruger kommando...Skrivebord :Display manager :Vis advarsel før handlingenAfslut denne sessionIndtast kommando:Fejl ved behandling af indhold for %s : "%s". Fejl ved behandling af argumenterne... EkstraGShutdown var ikke i stand til at identificere din vindues administrator, i øjeblikket understøttes udelukkende GNOME og KDE Brug konfigurations menuen til at instaille den rigtige metode.GShutdown kunne ikke identificere display manager. Gshutdown understøtter kun GDM og KDM. Brug konfigurations menuen til at indstille den rigtige metode.Her kan du indstille skrivebord og display manager manuelt, hvis GShutdown ikke kunne detektere disse selv.TimeJeg er her!Bevæg markøren over mig for at se nedtællingen.Iconificer når handlingen er startetHvis aktivØjebli9kkelig handlingKør kommando før handlingenUdfør handlingen efter angivet tid: TT:MMUdfør handlingen kl. TT:MM ÅÅÅÅ/MM/DDUdfør handlingen nu.Log afMinimer vinduet ved opstart.MinutForskelligtAldrigIngen handling planlagt.Ikke fundet!TestbeskedBeskedderNuOrientering.GenstartGenstart systemetVælg metode:Vælg tidVælg metode manueltVis system "tray" iconNedlukningIndstil metoden manueltT_estDe godkendte værdier for --action er : shutdown, reboot eller logout Systemet genstartes om :Systemet lukkes ned om :Konfigurationen kunne ikke indlæses fra %s.Konfigurationen kunne skrives til %s.Placering af bakke (tray)Tid før handlingen :Tid før der logges af :Sluk maskineAdvarsel!Advarsel! Systemet genstartes nu!Advarsel! Systemet lukkes ned nu!Advarsel! Du logges af nu!Det er ikke muligt at kalde --launch-after-delay, --launch-at eller --launch-now nu på samme tid. _Faktisk tidIndstil besked tid_Editer_Fil_Hjælp_Start_Stopgtk-addgtk-closegtk-removetminsgshutdown-0.2/po/hu.gmo0000644000175000017500000001630110637512711012060 00000000000000V|xy 74/5d  #8 3 !P #r $   &  ! +5 $a  5 t X .] "  " / ' E \ c          :PYuJ{##+(:c 12$/TT ( 8CW^~1//B R;s%($)Bl|3%1$:_g*zl;q) &4/Q'#27> Mn @:X2r/)"4 S3^06WR!b   )U 4-O!Q3&+>=( 2B@.LRK/7MGT0H6# :"VFC9'$;P *58<%A1I? ESJD, N%s doesn't exist. Desktop :ActionsAfter a delayAlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_StophminsProject-Id-Version: Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-01-27 02:20+0100 Last-Translator: Kováts Dóra Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %s nem létezik. Asztal :FolyamatokBizonyos idő utánMindigEgy fejlett leállító programBiztos ki akarsz jelentkezni?Biztos ki akarsz lépni?Biztos újra akarod indítani a számítógépet?Biztos le akarod állítani a számítógépet?Dátum és idő szerintEbben az időben :AutofelismerésMód autofelismerése (javasolt)Lehetséges folyamatok : "shutdown", "reboot" vagy "logout"A jelenlegi folyamat törléseA kiválasztott időpont már lejártA számítógép most fog újraindulni !A számítógép most fog leállni !A jelenlegi munkafolyamat le fog állni !Egyéni parancsEgyéni parancs...Asztal :Figyelmeztető üzenet kiírása a _folyamat előttA jelenlegi munkafolyamat befejezéseÍrd be a parancsot :Hiba a(z) %s : "%s" tartalmának elemzésénél. Hiba a tartományok elemzésekor... ExtrákA GShotdown nem tudta felismerni az asztalkörnyezetet. Jelenleg a GShutdown csak a GNOME-ot és a KDE-t támogatja. Menj a beállításokhoz és használd a megfelelő módot a támogatáshoz.A GShutdown nem volt képes felismerni a monitor-menedzsert. Jelenleg a GShutdown csak a GDM-et és a KDM-et támogatja. Menj a beállításokhoz és használd a megfelelő módot a támogatáshoz.Itt manuálisan beállíthatod, mi az asztali környezeted és a monitor-menedzsered, ha a GShutdown nem tudta felismerni.ÓraItt vagyok ! Mozgass át hogy lásd a visszaszámlálást.Ikon mutatása ha a folyamat elkedődöttHa aktívAzonnali cselekvésParancs elindítása a folyamat előttA folyamat ennyi késleltetés után indul : ÓÓ:PPA folyamat ekkor indul : ÓÓ:PP ÉÉÉÉ/HH/NNA folyamat indítása most.KijelentkezésAz ablak minimalizálása indításkor.PercEgyébSohaNincs ütemezett feladatNem található!Értesítési tesztÉrtesítésekMostIrányÚjraindításA számítógép újraindításaVálassz módot :Válassz időtMód kiválasztása manuálisanTálcaikon megjelenítéseLeállításMód megadása manuálisanT_esztA lehetséges értékek --action : shutdown, reboot vagy logout A számítógép újraindul :A számítógép leáll :A konfigurációt nem lehetett indítani %s -ből.A konfigurásiót nem lehetett menteni %s -ben.A tálca iránya.Folyamat elindítása ennyi idő múlva :Kijelentkezés ennyi idő múlva :A számítógép leállításaVigyázat!Vigyázat ! A számítógép most fog újrandulni !Vigyázat ! A számítógép most fog leállni !Vigyázat ! A számítógép most fog kijelentkezni ! Nem választhatod egyszerre, hogy --launch-after-delay, --launch-at vagy --launch-now. _Jelenlegi idő_Értesítési idő beállítása_Szerkesztés_Fájl_Súgó_Elindít_Leállítópercmpgshutdown-0.2/po/ru.gmo0000644000175000017500000002742010637512711012076 00000000000000c4Lpq"" 8 K ` y    h ; B 7_  4 5 " 3 = #H 8l   ! # $ C R d n &   + $  't}."& IS"d/'$)/ CQ cq u J#`#+(/D Z1d2$T CPntz9*,7'9_5?EU,t39 #0Te ~QOlqi.HI(0r7D< 8]z ,  S ?"!b!Z}!G" $6%\=%_%%'&T:&c&A&75'!m'5' '''6'3(%N(t( (((-(()*+)BV))<) )V)CL*;*R*P+Ap+.+Y+%;,a,ot,k,P--n.1.. .. . ../ /F%+Y96^@!G5>)T ;Lc#30Ha.W\M'[(-X4?D7VP&<:A* /$2UI BN8SR`b_ Z1EO]= C,"K JQ%s %u day%s %u days%s %u hour%s %u hours%s %u minute%s %u minutes%s %u second%s %u seconds%s and %u hour%s and %u hours%s and %u minute%s and %u minutes%s and %u second%s and %u seconds%s doesn't exist. %s%u hour%s%u hours%s%u minute%s%u minutes%s%u second%s%u secondsDesktop :Display manager :ActionsAfter a delayAlejandro Zarate (Spanish) Alexander Sjögren (Swedish) Andrea Carnaroli (Italian) Andrew V. Sichevoi (Russian) Bill Heldorf Soerensen (Danish) Dóra Kováts (Hungarian) GShutdown Team (French) Kristopher (Polish) Miloš Popović (Serbian) Øyvind Pedersen (Norwegian) Rolando Emanuel Lopes Pereira (Portuguese) Rolf Loire (German) Siegfried Gevatter (Catalan)AlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_StophminsProject-Id-Version: GShutdown Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-06-22 09:56+0300 Last-Translator: Andrew V. Sichevoi Language-Team: GShutdown Team MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Russian X-Poedit-Country: RUSSIAN FEDERATION Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2; X-Poedit-Bookmarks: -1,-1,-1,-1,12,-1,-1,-1,-1,-1 %s %u день%s %u дня%s %u дней%s %u час%s %u часа%s %u часов%s %u минута %s %u минуты%s %u минут%s%u секунда%s%u секунды%s%u секунд%s и %u час%s и %u часа%s и %u часов%s и %u минута%s и %u минуты%s и %u минут%s и %u секунда%s и %u секунды%s и %u секунд%s не существует. %s %u час%s %u часа%s %u часов%s%u минута%s%u минуты%s%u минут%s%u секунда%s%u секунды%s%u секундРабочий стол: Менеджер входа:ДействияПосле задержкиAlejandro Zarate (Испанский) Alexander Sjögren (Шведский) Andrea Carnaroli (Итальянский) Andrew V. Sichevoi (Русский) Bill Heldorf Soerensen (Датский) Dóra Kováts (Венгерский) GShutdown Team (Французский) Kristopher (Польский) Miloš Popović (Сербский) Øyvind Pedersen (Норвежский) Rolando Emanuel Lopes Pereira (Португальский) Rolf Loire (Немецкий) Siegfried Gevatter (Каталанский)ВсегдаУлучшенная программа выключения компьютераВы действительно хотите сейчас завершить текущий сеанс работы на компьютере?Вы действительно хотите закрыть программу?Вы действительно хотите сейчас перезагрузить свой компьютер?Вы действительно хотите сейчас выключить свой компьютер?Дата и времяВо время:АвтоопределениеАвтоопределение метода (рекомендуется)Доступные действия: "shutdown", "reboot" или "logout"Отменить текущее действиеВыбранное время уже превышеноСейчас компьютер будет перезагружен!Сейчас компьютер будет выключен!Текущий сеанс будет прекращен!Другая командаДругая команда...Рабочий стол:Менеджер входа:Показывать предупреждающее сообщение _перед выполнением действияЗавершить текущий сеансУкажите команду:Ошибка при обработке содержимого файла %s: "%s". Ошибка при обработке аргументов... ДополнительноGShutdown не смог определить ваш менеджер рабочего стола. На данный момент программой поддерживаются только GNOME и KDE. Перейдите в конфигурационное меню и выберите корректный метод определения.GShutdown не смог определить ваш менеджер входа. На данный момент программой поддерживаются только GDM и KDM. Перейдите в конфигурационное меню и выберите корректный метод определения.Здесь вы можете сами определить какие используются у вас менеджер рабочего стола и менеджер входа, если GShutdown не сможет определить это самостоятельно.ЧасЯ тут! Наведи курсор что бы увидеть таймер отсчетаСвернуть в системный лоток, когда действие запущеноЕсли активенНемедленное действиеВыполнить команду перед выполнением действияЗапустить действие после определенной задержки: ЧЧ:ММЗапустить команду в ЧЧ:ММ ГГГГ/ММ/ДДЗапустить событие немедленно.Завершение сеансаСворачивать окно при запускеМинутаДополнительноНикогдаНет запланированных действийНе определено!Проверка оповещенияУведомленияСейчасПоложениеПерезагрузкаПерезагрузить компьютерВыберите метод:Выберите времяВыберите метод вручнуюОтображать значок в системном лоткеВыключениеОпределить метод самостоятельноТ_естКорректные значения для --action: shutdown, reboot или logout Компьютер будет перезагружен через: Компьютер будет выключен через: Настройки не могут быть загружены из файла %s.Настройки не могут быть сохранены в файле %s.Положение значка в системном лотке.Время до запуска события:Время до завершения сеанса работы на компьютере:Выключить компьютерВнимание !Внимание! Сейчас произойдет перезагрузка вашего компьютера!Внимание! Сейчас произойдет выключение вашего компьютера!Внимание! Сейчас произойдет окончание текущего сеанса работы на вашем компьютере!Вы не можете одновременно вызвать параметры --launch-after-delay, --launch-at or --launch-now. _Текущее время_Изменить время оповещения_Настройки_Файл_Справка_Старт_Стопчминсекgshutdown-0.2/po/it.gmo0000644000175000017500000002125610637512711012065 00000000000000c4Lpq"" 8 K ` y    h ; B 7_  4 5 " 3 = #H 8l   ! # $ C R d n &   + $  't}."& IS"d/'$)/ CQ cq u J#`#+(/D Z1d2$T CPntz ; H R _ my  hw'~(.-H bm/= #,"P#s //5A(w`}A, #++O({    ,6 :GOcv%L!E g 1 0  !" !C! V!5b!3!*!V! N"#[" """ """""F%+Y96^@!G5>)T ;Lc#30Ha.W\M'[(-X4?D7VP&<:A* /$2UI BN8SR`b_ Z1EO]= C,"K JQ%s %u day%s %u days%s %u hour%s %u hours%s %u minute%s %u minutes%s %u second%s %u seconds%s and %u hour%s and %u hours%s and %u minute%s and %u minutes%s and %u second%s and %u seconds%s doesn't exist. %s%u hour%s%u hours%s%u minute%s%u minutes%s%u second%s%u secondsDesktop :Display manager :ActionsAfter a delayAlejandro Zarate (Spanish) Alexander Sjögren (Swedish) Andrea Carnaroli (Italian) Andrew V. Sichevoi (Russian) Bill Heldorf Soerensen (Danish) Dóra Kováts (Hungarian) GShutdown Team (French) Kristopher (Polish) Miloš Popović (Serbian) Øyvind Pedersen (Norwegian) Rolando Emanuel Lopes Pereira (Portuguese) Rolf Loire (German) Siegfried Gevatter (Catalan)AlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_StophminsProject-Id-Version: gshutdown Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-06-23 20:19+0100 Last-Translator: Andrea Carnaroli Language-Team: Andrea Carnaroli MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Italian X-Poedit-Country: ITALY Plural-Forms: nplurals=1; plural=0; %s %u giorno%s %u ora%s %u minuto%s %u secondo%s e %u ora%s e %u minuto%s e %u secondo%s non esiste. %s%u ora%s%u minuto%s%u secondoDesktop:Display manager: AzioneDopo un certo tempoAlejandro Zarate (Spanish) Alexander Sjögren (Swedish) Andrea Carnaroli (Italian) Andrew V. Sichevoi (Russian) Bill Heldorf Soerensen (Danish) Dóra Kováts (Hungarian) GShutdown Team (French) Kristopher (Polish) Miloš Popović (Serbian) Øyvind Pedersen (Norwegian) Rolando Emanuel Lopes Pereira (Portuguese) Rolf Loire (German) Siegfried Gevatter (Catalan)SempreUn'utilità avanzata per lo spegnimentoSei sicuro di volerti disconnettere ora?Sei sicuro di voler uscire?Sei sicuro di voler riavviare il computer ora?Sei sicuro di voler spegnere il computer ora?In data e ora specificatiAlle ore :Rileva automaticamenteRileva automaticamente il metodo (raccomandato)Le azioni disponibili sono : "shutdown", "reboot" or "logout"Cancella l'azione attualeIl tempo scelto è già scadutoIl computer sta per riavviarsi ora!Il computer sta per spegnersi ora!L'attuale sessione sarà terminata!Comando personalizzatoComando personalizzato...Desktop :Display manager :Mostra un messaggio d'avviso _prima dell'azioneTermina l'attuale sessioneInvia il comando:Errore nell'analizzare il contenuto di :" %s : "%s". Errore nell'analizzare gli argomenti... ExtrasGShutdown non è riuscito a rilevare il tuo desktop. Per il momento, Gshutdown supporta solamente GNOME e KDE. Vai al menù di configurazione e specifica il metodo corretto per farlo.GShutdown non è riuscito a rilevare il tuo display manager. Per il momento, Gshutdown supporta solamente GDM e KDM. Vai al menù di configurazione e specifica il metodo corretto per farlo.Qui, puoi specificare manualmente quale è il tuo desktop e display manager se GShutdown non è riuscito a rilevarlo da solo.OraSono qui ! Muovi il cursore sopra di me per vedere il countdown.Rendi a iconda quando l'azione è cominciataSe attivoAzione immediataEsegui un comando prima dell'azioneEseguire l'azione con un ritardo di : HH:MMEseguire l'azione alle :HH:MM YYYY/MM/DDEsegui l'azione ora.DisconnettiMinimizza la finestra all'avvio.MinutoMiscMaiNessuna azione scelta.Non rilevato!Test di notificaNotificheOraOrientamentoRiavviaRiavvia il computerScegli un metodo :Seleziona un'oraScegli il metodo manualmenteMostra l'icona della barra di sistemaSpegniSpecifica il metodo manualmente_ProvaI valori autorizzati in --action sono: spegnere, riavviare o disconnettersi Il computer verrà riavviato in :Il computer verrà spento in :La configurazione non può essere caricata da %s.La configurazione non può essere salvata in %s.L'orientamento della barra.Tempo prima della azione :Tempo prima della disconnessione :Spegni il computerAttenzione!Attenzione ! Il tuo computer sta per riavviarsi ora !Attenzione! Il tuo computer sta per spegnersi ora !Attenzione ! Stai per disconnetterti ora !Non puoi chiamare --launch-after-delay, --launch-at o --launch-now allo stesso tempo. _Ora attuale_Personalizza l'ora delle notifiche_Modifica_File_Aiuto_Comincia_Stophminsgshutdown-0.2/po/no.gmo0000644000175000017500000001374610637512711012072 00000000000000SqL$5N Vdk745K \ f#q8! ## $G l {  &     . "3 V ` "q / '    * 1 6 < P ^ p ~         J" #m # + (  ' < Q g 1q 2 $ T P]{1FZ y9%:9W>%!6Xu  # '<C4I~'*% 3I0Q    7IQmGs&', )7a +."(PK S5CB>$/J#+%F G<!:36R*9H'M01 -EQL N;4(" )K.@P&D= I2A8,?O7%s doesn't exist. Desktop :Display manager :ActionsAfter a delayAlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :ExtrasHourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_StophminsProject-Id-Version: gshutdown Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-06-10 23:39-0000 Last-Translator: Achraf cherti Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Norwegian Bokmal X-Poedit-Country: NORWAY Plural-Forms: nplurals=2; plural=n != 1; %s eksisterer ikke. Skrivebord :Visnings instillinger :HandlingerEtter utsettelsenAlltidavansert avsluttnings verktøyEr du sikker på at du vil logge ut av sesjonen din nå ?Er du sikker på at du vil avslutte ?Er du sikker på at du vil omstarte datamaskinen din nå ?Er du sikker på at du vil slå av datamaskinen din nå ?På dato og timeNår tiden er :Automatisk oppdagingAutomatisert metode (anbefalt)Tilgjengelige handlinger : "shutdown", "reboot" eller "logout"Avslutt handlingValgt tid er allerede overskridetDatamaskinen omstarter nå !Datamaskinen slår seg av nå !Sesjonen vil bli avsluttet !Egen kommandoEgen kommando...Skrivebord :Visnings instillinger :Vis advarsel melding _før handlingSlutt sesjonSkriv inn kommando :EkstraTimerJeg er her ! Flytt meg over til å se nedtellingen.Vis når handlingen er startetOm aktivUmiddelbar handlingKjør en kommando før selve handlingenKjør handlingen etter en viss tid : HH:MMKjører handlingen : HH:MM YYYY/MM/DDKjør handlingen nå.Logg utMinimer vinduet når datamaskinen slår seg på.MinutterAnnetAldriIngen handlinger planlaggtIkke funnet!Påminnelses testMeldingerNåOrienteringOmstartOmstart datamaskinVelg en metode :Velg tidVelg en metode manueltVis minimert ikonSlå avSpesifisere metoden manueltT_estautoriserte verdier i --action valg er : shutdown, reboot eller logout Datamaskinen vil bli omstartet innen :Datamaskinen vil bli slådd av innen : Konfigurasjonen kan ikke ble laddet ifra %s.Konfigurasjonen kan ikke bli lagret i %s.orienteringen av tray ikonet.Tid før handlingen :Tid før ut loggingen :Slå av datamaskinenAdvarsel !Advarsel ! Datamaskinen din omstartes nå !Advarsel ! Datamaskinen din slår seg av nå !Advarsel ! Du blir logget ut nå !Du kan ikke --launch-after-delay, --launch-at or --launch-now at the same time. _Egentlig tid_Egen notert tid_Rediger_Fil_Hjelp_Start_Stopptminsgshutdown-0.2/po/sr.gmo0000644000175000017500000002156210637512711012075 00000000000000X 7H4h5  #8 V l ! # $     &1 X l + $  t.  . "  " /8 'h         " &29J \jJ##5+Y( 12G$zT %+18>@DeF$'!?+HWt ZIHIJ%0p8% #?&c#!P!3UNC#6R=mDH"#@BS3' 3/E u  *6 .9*H*s&83.M |F@/ R> <  3 "!C!]!]p!L!X"Tt""2" #'# 9# E# Q#]#d#k#+W 6/Q#S5(-@?* 4DB0NTM19OIV2J8%"<$XHE;)!P&=R ,7:> 'C3KA GULF. %s doesn't exist. Desktop :Display manager :ActionsAfter a delayAlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_StophminsProject-Id-Version: GShutdown Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-02-02 15:13+0100 Last-Translator: Maxime Chéramy Language-Team: GShutdown Team MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Serbian %s не постоји. Радна површина: Менаџер дисплеја:НаредбеНакон протеклихУвекНапредан алат за гашењеДа ли сигурно желите да се одјавите са рачунара?Да ли сте сигурни?Да ли сигурно желите да поново покренете рачунар?Да ли сигурно желите да угасите рачунар?Датума, у времеУ време :Hађи аутоматскиАутоматски одабери начин (препоручљиво)Достурне наредбе су: "shutdown", "reboot" или "logout"Обустави тренутну наредбуИзабрано време је већ протеклоРачунар се ресетује!Рачунар се гаси!Бићете одјављени!Произвољне командеПроизвољне команде...Корисничко сучеље :Менаџер дисплеја :Прикажи поруке уозорења _пре задате наредбеОдјави сеУнеси команду:Грешка у прослеђивању садржаја датотеке %s: "%s". Грешка про прослеђивању аргумента... ДодатноGShutdown није у могућности да одреди ваше корисничко сучеље.Тренутно подржана сучеља су GNOME и KDE. У поставкама програма одредите исправно корисничко сучеље ручно.GShutdown није у могућности да одреди ваш менаџер дисплеја.Тренутно подржани су GDM и KDM. У поставкама програма одредите произвољне начине гашења, поновног покретања и одјаве.Овде можете ручно одабрати које је Ваше корисничко сучеље и менаџер дисплеја ако програмније у могућности да одреди самосталноСатЯ Овде сам! Стави курсор преко мене да ви видео одбројавање.Умањи након почетка извршавања наредбеУколико је активанТренутачна наредбаПокрени команду пре задате наредбеПокрени наредбу наконодређеног времена : HH:ММПокрени наредбу у : HH:MM YYYY/MM/DDПокрени наредбу сада.Одјави сеУмањи прозор по покретањуМинутДупунаНикадаНема задатих распоредаНије пронађено!Провера система обавештавањаОбавештењаОдмахПоложајПоново покрени рачунарПоново покрени рачунарОдабери начин:Одабери времеРучно одабери методуПрикажи икоицу у фијоци панелаУгаси рачунарСамостално одабери начинТ_естВредности за --action су: shutdown, reboot или logout Рачунар ће се поново покренути за : Рачунар ће се угасити за : Настройки не могут быть загружены из файла %s.Поставке не могу бити сачуване %s.Положај у фијоци.Време пре извршења наредбе :Бреме пре одјаве :Угаси рачунарВнимание !Упозорење! Ваш рачунар ће се сада поново покренути!Упозорење! Ваш рачунар ће се сада угасити!Упозорење! Сада ћете бити одјављени са рачунара!Не можете позвати --launch-after-delay, --launch-at or --launch-now. _Тренутно време_Измени време за обавештења_Измени_Датотека_Помоћ_Почни_Станисатминсекgshutdown-0.2/po/sr@Latn.gmo0000644000175000017500000001627310637512711013017 00000000000000X 7H4h5  #8 V l ! # $     &1 X l + $  t.  . "  " /8 'h         " &29J \jJ##5+Y( 12G$zT %+18>@DeF 2'Z3m* *6"Ys-& T^6m(E?*<O"c/$ $+BS r !;6A&x4#)H[ j7u.4FXh +W 6/Q#S5(-@?* 4DB0NTM19OIV2J8%"<$XHE;)!P&=R ,7:> 'C3KA GULF. %s doesn't exist. Desktop :Display manager :ActionsAfter a delayAlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... ExtrasGShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_StophminsProject-Id-Version: GShutdown Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-02-02 15:15+0100 Last-Translator: Maxime Chéramy Language-Team: GShutdown Team MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Serbian %s ne postoji. Radna površina: Menadžer displeja:NaredbeNakon proteklihUvekNapredan alat za gašenjeDa li sigurno želite da se odjavite sa računara?Da li ste sigurni?Da li sigurno želite da ponovo pokrenete računar?Da li sigurno želite da ugasite računar?Datuma, u vremeU vreme :Hađi automatskiAutomatski odaberi način (preporučljivo)Dosturne naredbe su: "shutdown", "reboot" ili "logout"Obustavi trenutnu naredbuIzabrano vreme je već protekloRačunar se resetuje!Računar se gasi!Bićete odjavljeni!Proizvoljne komandeProizvoljne komande...Korisničko sučelje :Menadžer displeja :Prikaži poruke uozorenja _pre zadate naredbeOdjavi seUnesi komandu:Greška u prosleđivanju sadržaja datoteke %s: "%s". Greška pro prosleđivanju argumenta... DodatnoGShutdown nije u mogućnosti da odredi vaše korisničko sučelje.Trenutno podržana sučelja su GNOME i KDE. U postavkama programa odredite ispravno korisničko sučelje ručno.GShutdown nije u mogućnosti da odredi vaš menadžer displeja.Trenutno podržani su GDM i KDM. U postavkama programa odredite proizvoljne načine gašenja, ponovnog pokretanja i odjave.Ovde možete ručno odabrati koje je Vaše korisničko sučelje i menadžer displeja ako programnije u mogućnosti da odredi samostalnoSatЯ Ovde sam! Stavi kursor preko mene da vi video odbrojavanje.Umanji nakon početka izvršavanja naredbeUkoliko je aktivanTrenutačna naredbaPokreni komandu pre zadate naredbePokreni naredbu nakonodređenog vremena : HH:MMPokreni naredbu u : HH:MM YYYY/MM/DDPokreni naredbu sada.Odjavi seUmanji prozor po pokretanjuMinutDupunaNikadaNema zadatih rasporedaNije pronađeno!Provera sistema obaveštavanjaObaveštenjaOdmahPoložajPonovo pokreni računarPonovo pokreni računarOdaberi način:Odaberi vremeRučno odaberi metoduPrikaži ikoicu u fijoci panelaUgasi računarSamostalno odaberi načinT_estVrednosti za --action su: shutdown, reboot ili logout Računar će se ponovo pokrenuti za : Računar će se ugasiti za : Nastroйki ne mogut bыtь zagruženы iz faйla %s.Postavke ne mogu biti sačuvane %s.Položaj u fijoci.Vreme pre izvršenja naredbe :Breme pre odjave :Ugasi računarVnimanie !Upozorenje! Vaš računar će se sada ponovo pokrenuti!Upozorenje! Vaš računar će se sada ugasiti!Upozorenje! Sada ćete biti odjavljeni sa računara!Ne možete pozvati --launch-after-delay, --launch-at or --launch-now. _Trenutno vreme_Izmeni vreme za obaveštenja_Izmeni_Datoteka_Pomoć_Počni_Stanisatminsekgshutdown-0.2/po/pl.gmo0000644000175000017500000001651210637512711012063 00000000000000W 784X5  #8 F \ !y # $     &! H \ +p $ i t  . "  " /! 'Q y          "3 ESnJ##+B(n 120$cT !')-=/m7q1<:Sgx"4-!Gi%'&>en#D+(p (4"9Uj    /AVo"<'<&d(' &3mZ()?DH*V 5.P"R4',?>) 3CA/MSL08NHU1I7$!;#WGD:( O<Q%+69= &B2J@ FTKE- %s doesn't exist. Desktop :Display manager :ActionsAfter a delayAlwaysAn advanced shutdown utilityAre you sure you want to logout from your session now ?Are you sure you want to quit ?Are you sure you want to restart your computer now ?Are you sure you want to shutdown your computer now ?At date and timeAt time :AutodetectAutodetect the method (recommended)Available actions are : "shutdown", "reboot" or "logout"Cancel current actionChosen time already exceededComputer is going to reboot now !Computer is going to shutdown now !Current session will be terminated !Custom commandCustom command...Desktop :Display manager :Display warning message _before actionEnd current sessionEnter the command :Error on parsing the content of %s : "%s". Error when parsing the arguments... GShutdown was unable to detect your desktop. Currently, GShutdown only supports GNOME and KDE. Go to the configuration menu and specify the correct method to do that.GShutdown was unable to detect your display manager. Currently, GShutdown only supports GDM and KDM. Go to the configuration menu and specify the correct method to do that.Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself.HourI'm here ! Move over me to see the countdown.Iconify when the action is startedIf activeImmediate actionLaunch a command before the actionLaunch the action after a certain delay : HH:MMLaunch the action at : HH:MM YYYY/MM/DDLaunch the action now.LogoutMinimize the window at startup.MinuteMiscNeverNo action scheduledNot detected!Notification testNotificationsNowOrientationRebootRestart computerSelect a method :Select a timeSelect the method manuallyShow system tray iconShutdownSpecify the method manuallyT_estThe authorized values in --action option are : shutdown, reboot or logout The computer will be restarted in :The computer will be shut down in :The configuration cannot be loaded from %s.The configuration cannot be saved in %s.The orientation of the tray.Time before action :Time before logout :Turn off the computerWarning !Warning ! Your computer is going to restart now !Warning ! Your computer is going to shutdown now !Warning ! Your going to logout now !You cannot call --launch-after-delay, --launch-at or --launch-now at the same time. _Actual time_Customize notifications time_Edit_File_Help_Start_StophminsProject-Id-Version: SVN - thats same at wiki Report-Msgid-Bugs-To: POT-Creation-Date: 2007-06-24 15:50+0000 PO-Revision-Date: 2007-02-07 19:30+CET Last-Translator: 3ED Language-Team: 3ED noteam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %s nie istnieje. Pulpit :Menadżer logowania :AkcjeWykonaj akcję za :ZawszeZaawansowany program do wykonywania czynności związanych z wyłączaniem, uruchamianiem ponownym oraz wylogowaniem użytkowników po upływie określonego czasu.Czy jesteś pewnie że chcesz teraz zakończyć sesję?Czy jesteś pewien że chcesz opuścić program ?Czy jesteś pewnie że chcesz teraz zrestartować komputer ?Czy jesteś pewnie że chcesz teraz wyłączyć komputer ?W dniu i o godziniePowiadamiaj co :Automatyczne wykrywanieAutomatyczne wykrywanie (zalecane)Dostępne akcje to: "shutdown", "reboot" or "logout"Zatrzymaj odliczanieUstaw czas przyszłyKomputer restartuje się !Komputer wyłącza się !Obecna sesja zostanie przerwana !Przypisz polecenie do akcji:Ręcznie wybierz polecenie dla akcji:Pulpit :Menadżer logowania :_Wyświetlaj podczas odliczaniaWyloguj użytkownikaWprowadź polecenie :Błędny argument parametru %s : "%s". Błąd przy wykonywaniu argumentów.. Gshutdown nie potrafi wykryć twojego pulpitu. Obecnie Gshutdown obsługuje jedynie GNOME i KDE. Edytuj preferencję w celu ręcznego wybrania poprawnej metody.Gshutdown nie potrafi wykryć twojego menadżera logowania. Obecnie Gshutdown obsługuje jedynie GDM i KDM. Edytuj preferencję w celu ręcznego wybrania poprawnej metody.Tutaj możesz ręcznie wybrać swój pulpit i menadżer logowań jeżeli Gshutdown nie zrobił tego poprawnie.GodzinyJestem tutaj ! Przesuń na mnie myszkę żeby zobaczyć odliczanie.Podczas odliczania schowaj okno do ikonyPodczas odliczaniaNatychmiastWykonaj polecenie przed wykonaniem akcjiWykonaj akcję po upływie określonego czasu: GG:MMWykonaj akcję o: GG:MM RRRR/MM/DDWykonaj akcję natychmiast.Wyloguj użytkownikaMinimalizuj okno przy starcieMinutyDodatkowe ustawieniaNigdyNie zaplanowano akcjiNie wykryto!Test powiadomieńPowiadomieniaWykonaj terazOrientacja?Zrestartuj komputerZrestartuj komputerWybierz metodę :Programowanie zegaraWybierz metodę ręczniePokazuj ikonkę w tray :Wyłącz komputerRęczne (gdy automatyczne zawodzi)_TestDozwolone argumenty --action to shutdown, reboot lub logout Komputer zrestartuje się za :Komputer wyłączy się za :Nie można odczytać konfiguracji z %s.Nie można zapisać konfiguracji w %s.Orientacja w tray?Czas przed akcją :Czas do wylogowania :Wyłącz komputerUwaga !Uwaga ! Teraz komputer restartuje się !Uwaga ! Teraz komputer wyłączy się !Uwaga ! Teraz komputer wyloguje się !Możesz podać tylko jeden parametr z trzech dostępnych: --launch-after-delay, --launch-at lub --launch-now _Aktualny czas_Ustaw przerwy pomiędzy powiadomieniami_Edycja_PlikPomo_c_Zacznij odliczanie_Zatrzymaj odliczaniegodzminsgshutdown-0.2/README0000644000175000017500000000324710610253304011176 00000000000000Description : GShutdown is an advanced shutdown utility which allows you to schedule the shutdown, the restart of your computer of the logout. Features : * Shutdown, reboot and logout : immediately or scheduled * No need to be root * Possibility to choose custom commands for the actions * Three different ways to schedule the action * Systray icon * Visuals notifications License : This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program 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 General Public License for more details. (See COPYING file) Requirements, to compile the source code : Gtk+ 2.0 http://www.gtk.org libnotify http://www.galago-project.org/files/releases/source libglade http://glade.gnome.org/ In Ubuntu, you can install the dependencies with : $ sudo apt-get install libgtk2.0-dev libglade2-dev libnotify-dev In Fedora Core, you can install it with : $ yum install gtk2-devel libglade2-devel libnotify-devel In Fedora Core, if your version of libnotify is too old, you can compile the source code without it : $ ./configure --enable-libnotify=no Tips : Middle click on the systray icon opens the immediate action menu. Authors : See AUTHORS file. Contact : gshutdown@gmail.com Website : http://gshutdown.tuxfamily.org gshutdown-0.2/binreloc.m40000644000175000017500000000503710610253304012354 00000000000000# Check for binary relocation support. # Written by Hongli Lai # http://autopackage.org/ AC_DEFUN([AM_BINRELOC], [ AC_ARG_ENABLE(binreloc, [ --enable-binreloc compile with binary relocation support (default=enable when available)], enable_binreloc=$enableval,enable_binreloc=auto) AC_ARG_ENABLE(binreloc-threads, [ --enable-binreloc-threads compile binary relocation with threads support (default=yes)], enable_binreloc_threads=$enableval,enable_binreloc_threads=yes) BINRELOC_CFLAGS= BINRELOC_LIBS= if test "x$enable_binreloc" = "xauto"; then AC_CHECK_FILE([/proc/self/maps]) AC_CACHE_CHECK([whether everything is installed to the same prefix], [br_cv_valid_prefixes], [ if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \ "$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \ "$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc' then br_cv_valid_prefixes=yes else br_cv_valid_prefixes=no fi ]) fi AC_CACHE_CHECK([whether binary relocation support should be enabled], [br_cv_binreloc], [if test "x$enable_binreloc" = "xyes"; then br_cv_binreloc=yes elif test "x$enable_binreloc" = "xauto"; then if test "x$br_cv_valid_prefixes" = "xyes" -a \ "x$ac_cv_file__proc_self_maps" = "xyes"; then br_cv_binreloc=yes else br_cv_binreloc=no fi else br_cv_binreloc=no fi]) if test "x$br_cv_binreloc" = "xyes"; then BINRELOC_CFLAGS="-DENABLE_BINRELOC" AC_DEFINE(ENABLE_BINRELOC,,[Use binary relocation?]) if test "x$enable_binreloc_threads" = "xyes"; then AC_CHECK_LIB([pthread], [pthread_getspecific]) fi AC_CACHE_CHECK([whether binary relocation should use threads], [br_cv_binreloc_threads], [if test "x$enable_binreloc_threads" = "xyes"; then if test "x$ac_cv_lib_pthread_pthread_getspecific" = "xyes"; then br_cv_binreloc_threads=yes else br_cv_binreloc_threads=no fi else br_cv_binreloc_threads=no fi]) if test "x$br_cv_binreloc_threads" = "xyes"; then BINRELOC_LIBS="-lpthread" AC_DEFINE(BR_PTHREAD,1,[Include pthread support for binary relocation?]) else BINRELOC_CFLAGS="$BINRELOC_CFLAGS -DBR_PTHREADS=0" AC_DEFINE(BR_PTHREAD,0,[Include pthread support for binary relocation?]) fi fi AC_SUBST(BINRELOC_CFLAGS) AC_SUBST(BINRELOC_LIBS) ]) gshutdown-0.2/configure.ac0000644000175000017500000000321010633111306012572 00000000000000dnl Ce fichier est utilisé par autoconf pour produire un script configure. AC_INIT(configure.ac) AM_INIT_AUTOMAKE(gshutdown, 0.2) AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE # Programmes AC_PROG_CC AC_PROG_CC_STDC AC_PROG_INSTALL # Headers AC_HEADER_STDC AC_ISC_POSIX AC_CHECK_HEADERS([libintl.h stdlib.h string.h sys/wait.h signal.h]) # Typedefs, structures AC_C_CONST AC_STRUCT_TM # Arguments AM_BINRELOC AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], [enable debug mode. It's used under development (default=no)])], enable_debug=$enableval, enable_debug="no") if test "$enable_debug" = "yes"; then CFLAGS="-ansi -Wall -g -DDEBUG" #-pedantic fi AC_ARG_ENABLE(libnotify, [AC_HELP_STRING([--enable-libnotify], [enable libnotify notifications (default=yes)])], enable_libnotify=$enableval, enable_libnotify="yes") if test "$enable_libnotify" = "yes"; then libnotify="libnotify >= 0.3.2" CFLAGS="$CFLAGS -DLIBNOTIFY_ENABLED" else libnotify="" fi # gtk+2 pkg_modules="gtk+-2.0 >= 2.0.0 glib-2.0 >= 2.6 libglade-2.0 >= 2.0.0 $libnotify" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) # Gettext ALL_LINGUAS="fr es ca sv pt de da hu ru it no sr sr@Latn pl" GETTEXT_PACKAGE=gshutdown AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package]) AM_GLIB_GNU_GETTEXT AC_OUTPUT([ Makefile man/Makefile src/Makefile po/Makefile.in gshutdown.spec gshutdown.lsm gshutdown.desktop PKGBUILD autopackage/default.apspec ]) #echo #echo "CFLAGS : $CFLAGS" #echo gshutdown-0.2/aclocal.m40000644000175000017500000014445710633112460012171 00000000000000# generated automatically by aclocal 1.9.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 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. # 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. # Copyright (C) 1995-2002 Free Software Foundation, Inc. # Copyright (C) 2001-2003,2004 Red Hat, 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 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. # # Macro to add for using GNU gettext. # Ulrich Drepper , 1995, 1996 # # Modified to never use included libintl. # Owen Taylor , 12/15/1998 # # Major rework to remove unused code # Owen Taylor , 12/11/2002 # # Added better handling of ALL_LINGUAS from GNU gettext version # written by Bruno Haible, Owen Taylor 5/30/3002 # # Modified to require ngettext # Matthias Clasen 08/06/2004 # # 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 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) else AC_MSG_RESULT(no) fi AC_SUBST($1)dnl ]) # GLIB_WITH_NLS #----------------- glib_DEFUN([GLIB_WITH_NLS], dnl NLS is obligatory [AC_REQUIRE([AC_CANONICAL_HOST])dnl 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]) 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.in. 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]) ]) dnl dnl Now the definitions that aclocal will find dnl ifdef(glib_configure_in,[],[ 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]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [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. _PKG_TEXT To get pkg-config, see .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 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_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # 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. # 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/../..'. # # 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. # # $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 # # 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. # # 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. # # 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 # 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 7 # 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]) AC_SUBST([$1_FALSE]) 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 # 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 8 # 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], 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 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 case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} 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 else am_cv_$1_dependencies_compiler_type=none fi ]) 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]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 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 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; 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. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue 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. # # 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"]) ]) # Copyright (C) 1996, 1997, 2000, 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. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 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 12 # 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.58])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 # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 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 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) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP 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 ]) ]) # 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_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # 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_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} 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 # 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 AC_DEFUN([AM_MAINTAINER_MODE], [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode is disabled by default AC_ARG_ENABLE(maintainer-mode, [ --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer], USE_MAINTAINER_MODE=$enableval, USE_MAINTAINER_MODE=no) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST(MAINT)dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 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 3 # 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 done .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 # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi 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, 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 4 # 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 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # 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 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 whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 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 3 # _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], [AC_FOREACH([_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 # 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_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # 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) 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="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # 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 m4_include([binreloc.m4]) gshutdown-0.2/Makefile.am0000644000175000017500000000042710610253304012347 00000000000000SUBDIRS = src po man Applicationsdir = $(datadir)/applications Applications_DATA = gshutdown.desktop EXTRA_DIST = \ autogen.sh \ gshutdown.desktop.in \ gshutdown.spec.in \ gshutdown.spec \ gshutdown.lsm.in \ gshutdown.lsm \ autopackage/default.apspec.in \ COPYING.lgpl gshutdown-0.2/Makefile.in0000644000175000017500000005234010637511527012376 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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 = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/PKGBUILD.in \ $(srcdir)/config.h.in $(srcdir)/gshutdown.desktop.in \ $(srcdir)/gshutdown.lsm.in $(srcdir)/gshutdown.spec.in \ $(top_srcdir)/autopackage/default.apspec.in \ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ TODO config.guess config.sub depcomp install-sh ltmain.sh \ missing mkinstalldirs subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/binreloc.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = gshutdown.spec gshutdown.lsm gshutdown.desktop \ PKGBUILD autopackage/default.apspec SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive 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 = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(Applicationsdir)" ApplicationsDATA_INSTALL = $(INSTALL_DATA) DATA = $(Applications_DATA) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINRELOC_CFLAGS = @BINRELOC_CFLAGS@ BINRELOC_LIBS = @BINRELOC_LIBS@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 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@ 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@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = src po man Applicationsdir = $(datadir)/applications Applications_DATA = gshutdown.desktop EXTRA_DIST = \ autogen.sh \ gshutdown.desktop.in \ gshutdown.spec.in \ gshutdown.spec \ gshutdown.lsm.in \ gshutdown.lsm \ autopackage/default.apspec.in \ COPYING.lgpl all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ cd $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 gshutdown.spec: $(top_builddir)/config.status $(srcdir)/gshutdown.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ gshutdown.lsm: $(top_builddir)/config.status $(srcdir)/gshutdown.lsm.in cd $(top_builddir) && $(SHELL) ./config.status $@ gshutdown.desktop: $(top_builddir)/config.status $(srcdir)/gshutdown.desktop.in cd $(top_builddir) && $(SHELL) ./config.status $@ PKGBUILD: $(top_builddir)/config.status $(srcdir)/PKGBUILD.in cd $(top_builddir) && $(SHELL) ./config.status $@ autopackage/default.apspec: $(top_builddir)/config.status $(top_srcdir)/autopackage/default.apspec.in cd $(top_builddir) && $(SHELL) ./config.status $@ uninstall-info-am: install-ApplicationsDATA: $(Applications_DATA) @$(NORMAL_INSTALL) test -z "$(Applicationsdir)" || $(mkdir_p) "$(DESTDIR)$(Applicationsdir)" @list='$(Applications_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(ApplicationsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(Applicationsdir)/$$f'"; \ $(ApplicationsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(Applicationsdir)/$$f"; \ done uninstall-ApplicationsDATA: @$(NORMAL_UNINSTALL) @list='$(Applications_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(Applicationsdir)/$$f'"; \ rm -f "$(DESTDIR)$(Applicationsdir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done 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; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(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; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(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; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkdir_p) $(distdir)/. $(distdir)/autopackage $(distdir)/po @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(Applicationsdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive 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: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_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-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-ApplicationsDATA install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-ApplicationsDATA uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-generic clean-recursive ctags \ ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \ dist-tarZ dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-recursive distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-ApplicationsDATA \ install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-generic \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-ApplicationsDATA uninstall-am \ uninstall-info-am # 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: gshutdown-0.2/PKGBUILD.in0000644000175000017500000000154410610253304012045 00000000000000# Maintainer: Achraf cherti pkgname=@PACKAGE@ pkgver=@VERSION@ pkgrel=1 pkgdesc="GShutdown is an advanced shutdown utility which allows you to schedule the shutdown or the restart of your computer. With it, you can simply and quickly choose the turn off time. The graphical user interface uses Gtk+2. Features : * Shutdown, reboot and logout : immediately or scheduled * No need to be root * Possibility to choose custom commands for the actions * Three different ways to schedule the action * Systray icon * Visuals notifications " url="http://gshutdown.tuxfamily.org" source="$pkgname-$pkgver.tar.gz" makedepends=('gcc' 'make' 'gtk2' 'libnotify' 'libglade') depends=('gtk2' 'libnotify' 'libglade') build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr/ make || return 1 make prefix=$startdir/pkg/usr/ install } gshutdown-0.2/config.h.in0000644000175000017500000000477410636057566012373 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Include pthread support for binary relocation? */ #undef BR_PTHREAD /* Use binary relocation? */ #undef ENABLE_BINRELOC /* always defined to indicate that i18n is enabled */ #undef ENABLE_NLS /* Gettext package */ #undef GETTEXT_PACKAGE /* Define to 1 if you have the `bind_textdomain_codeset' function. */ #undef HAVE_BIND_TEXTDOMAIN_CODESET /* Define to 1 if you have the `dcgettext' function. */ #undef HAVE_DCGETTEXT /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the header file. */ #undef HAVE_LIBINTL_H /* Define to 1 if you have the `pthread' library (-lpthread). */ #undef HAVE_LIBPTHREAD /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_SIGNAL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Version number of package */ #undef VERSION /* Define to empty if `const' does not conform to ANSI C. */ #undef const gshutdown-0.2/gshutdown.desktop.in0000644000175000017500000000152310610253304014333 00000000000000[Desktop Entry] Encoding=UTF-8 Name=GShutdown GenericName=Shutdown utility GenericName[sr]=Алат за гашење рачунара GenericName[sr@Latn]=Alat za gašenjeračunara Comment=An advanced shutdown utility which allows you to schedule the shutdown or the restart of your computer. Comment[sr]=Напредан алат који омогућава временско гашење, поновно покретање рачунара или одјаву. Comment[sr@Latn]=Napredan alat koji omogućava vremensko gašenje, ponovno pokretanje računara ili odjavu. Comment[fr]=Utilitaire pour programmer l'arrêt, le redémarrage de votre ordinateur ou la fermeture de la session actuelle. Exec=@prefix@/bin/gshutdown Icon=@prefix@/share/pixmaps/gshutdown.png StartupNotify=false Terminal=false Type=Application Categories=Application;Utility gshutdown-0.2/gshutdown.lsm.in0000644000175000017500000000122310610253304013452 00000000000000Begin4 Title: gshutdown Version: @VERSION@ Entered-date: 2006-08-24 Description: An advanced shutdown utility which allows you to schedule the shutdown or the restart of your computer. With it, you can simply and quickly choose the turn off time. Keywords: shutdown, halt, poweroff, reboot, restart, logout, lock, screen, gnome, xfce, kde, schedule Author: gshutdown@gmail.com (GShutdown Team) Maintained-by: gshutdown@gmail.com (GShutdown Team) Home-page: http://gshutdown.tuxfamily.org Platforms: Linux Copying-policy: GPL End gshutdown-0.2/gshutdown.spec.in0000644000175000017500000000411010610253304013607 00000000000000Name: @PACKAGE@ Version: @VERSION@ Release: 1 License: GPL Group: Applications/System URL: http://gshutdown.tuxfamily.org Packager: Achraf cherti Summary: An advanced shutdown utility Summary(fr): Utilitaire pour gérer l'arrêt de votre ordinateur d'une manière avancée BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Source: %{name}-%{version}.tar.gz BuildRequires: gtk2-devel libglade2-devel Requires: gtk2 libglade2 %description GShutdown is an advanced shutdown utility which allows you to schedule the shutdown or the restart of your computer. With it, you can simply and quickly choose the turn off time. The graphical user interface uses Gtk+2. Features : * Shutdown, reboot and logout : immediately or scheduled * No need to be root * Possibility to choose custom commands for the actions * Three different ways to schedule the action * Systray icon * Visuals notifications %description -l fr GShutdown est un utilitaire avancé pour programmer l'arrêt, le redémarrage de votre ordinateur, ou la fermeture de la session en cours. L'interface graphique utilise Gtk+2. Fonctionnalités : * Arrêt, redémarrage ou fermeture de la session en cours * Programmation du lancement de l'action de trois manières: À partir de maintenant, à une heure et une date, maintenant. * Vous n'êtes pas obligé d'être root pour arrêter ou redémarrer l'ordinateur * Il est possible de choisir des commandes personnalisées pour les actions * Une icône est ajoutée dans la zone de notification * Vous êtes prévenu avec une notification visuelle, avant le déclenchement d'une action %prep %setup -q %build %configure --enable-libnotify=no %install rpm -fr $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean rpm -fr $RPM_BUILD_ROOT %files %defattr(-, root, root, 0755) %doc README ChangeLog NEWS AUTHORS COPYING %{_bindir}/* %{_datadir}/gshutdown/* %{_datadir}/pixmaps/gshutdown.png %{_datadir}/applications/gshutdown.desktop %{_datadir}/locale/* %{_datadir}/man/* %changelog * Thu Aug 24 2006 Achraf cherti - Initial *.spec release. gshutdown-0.2/configure0000755000175000017500000071660710633112464012246 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="configure.ac" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP GREP EGREP BINRELOC_CFLAGS BINRELOC_LIBS PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS GETTEXT_PACKAGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os USE_NLS MSGFMT MSGFMT_OPTS GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG PACKAGE_CFLAGS PACKAGE_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # 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 this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-binreloc compile with binary relocation support (default=enable when available) --enable-binreloc-threads compile binary relocation with threads support (default=yes) --enable-debug enable debug mode. It's used under development (default=no) --enable-libnotify enable libnotify notifications (default=yes) Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility PACKAGE_CFLAGS C compiler flags for PACKAGE, overriding pkg-config PACKAGE_LIBS linker flags for PACKAGE, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version="1.9" ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # 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". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi 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 # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } 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 # Define the identity of the package. PACKAGE=gshutdown VERSION=0.2 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # 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. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE # Programmes ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else 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_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi 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 case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} 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_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi case $ac_cv_prog_cc_stdc in no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c99+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c99=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include #include // Check varargs macros. These examples are taken from C99 6.10.3.5. #define debug(...) fprintf (stderr, __VA_ARGS__) #define showlist(...) puts (#__VA_ARGS__) #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) static void test_varargs_macros (void) { int x = 1234; int y = 5678; debug ("Flag"); debug ("X = %d\n", x); showlist (The first, second, and third items.); report (x>y, "x is %d but y is %d", x, y); } // Check long long types. #define BIG64 18446744073709551615ull #define BIG32 4294967295ul #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) #if !BIG_OK your preprocessor is broken; #endif #if BIG_OK #else your preprocessor is broken; #endif static long long int bignum = -9223372036854775807LL; static unsigned long long int ubignum = BIG64; struct incomplete_array { int datasize; double data[]; }; struct named_init { int number; const wchar_t *name; double average; }; typedef const char *ccp; static inline int test_restrict (ccp restrict text) { // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\0'; ++i) continue; return 0; } // Check varargs and va_copy. static void test_varargs (const char *format, ...) { va_list args; va_start (args, format); va_list args_copy; va_copy (args_copy, args); const char *str; int number; float fnumber; while (*format) { switch (*format++) { case 's': // string str = va_arg (args_copy, const char *); break; case 'd': // int number = va_arg (args_copy, int); break; case 'f': // float fnumber = va_arg (args_copy, double); break; default: break; } } va_end (args_copy); va_end (args); } int main () { // Check bool. _Bool success = false; // Check restrict. if (test_restrict ("String literal") == 0) success = true; char *restrict newvar = "Another string"; // Check varargs. test_varargs ("s, d' f .", "string", 65, 34.234); test_varargs_macros (); // Check flexible array members. struct incomplete_array *ia = malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; // Check named initializers. struct named_init ni = { .number = 34, .name = L"Test wide string", .average = 543.34343, }; ni.number = 58; int dynamic_array[ni.number]; dynamic_array[ni.number - 1] = 543; // work around unused variable warnings return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' || dynamic_array[ni.number - 1] != 543); ; return 0; } _ACEOF for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99 do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c99=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c99" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c99" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;; esac if test "x$ac_cv_prog_cc_c99" != xno; then ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 else { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 else ac_cv_prog_cc_stdc=no fi fi ;; esac { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi case $ac_cv_prog_cc_stdc in no) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; '') { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;; esac # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Headers ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi { echo "$as_me:$LINENO: checking for library containing strerror" >&5 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } if test "${ac_cv_search_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_func_search_save_LIBS=$LIBS cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF for ac_lib in '' cposix; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_search_strerror=$ac_res else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext if test "${ac_cv_search_strerror+set}" = set; then break fi done if test "${ac_cv_search_strerror+set}" = set; then : else ac_cv_search_strerror=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 echo "${ECHO_T}$ac_cv_search_strerror" >&6; } ac_res=$ac_cv_search_strerror if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in libintl.h stdlib.h string.h sys/wait.h signal.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Typedefs, structures { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } if test "${ac_cv_struct_tm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_struct_tm=time.h else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 echo "${ECHO_T}$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then cat >>confdefs.h <<\_ACEOF #define TM_IN_SYS_TIME 1 _ACEOF fi # Arguments # Check whether --enable-binreloc was given. if test "${enable_binreloc+set}" = set; then enableval=$enable_binreloc; enable_binreloc=$enableval else enable_binreloc=auto fi # Check whether --enable-binreloc-threads was given. if test "${enable_binreloc_threads+set}" = set; then enableval=$enable_binreloc_threads; enable_binreloc_threads=$enableval else enable_binreloc_threads=yes fi BINRELOC_CFLAGS= BINRELOC_LIBS= if test "x$enable_binreloc" = "xauto"; then { echo "$as_me:$LINENO: checking for /proc/self/maps" >&5 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6; } if test "${ac_cv_file__proc_self_maps+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else test "$cross_compiling" = yes && { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} { (exit 1); exit 1; }; } if test -r "/proc/self/maps"; then ac_cv_file__proc_self_maps=yes else ac_cv_file__proc_self_maps=no fi fi { echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6; } { echo "$as_me:$LINENO: checking whether everything is installed to the same prefix" >&5 echo $ECHO_N "checking whether everything is installed to the same prefix... $ECHO_C" >&6; } if test "${br_cv_valid_prefixes+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \ "$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \ "$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc' then br_cv_valid_prefixes=yes else br_cv_valid_prefixes=no fi fi { echo "$as_me:$LINENO: result: $br_cv_valid_prefixes" >&5 echo "${ECHO_T}$br_cv_valid_prefixes" >&6; } fi { echo "$as_me:$LINENO: checking whether binary relocation support should be enabled" >&5 echo $ECHO_N "checking whether binary relocation support should be enabled... $ECHO_C" >&6; } if test "${br_cv_binreloc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$enable_binreloc" = "xyes"; then br_cv_binreloc=yes elif test "x$enable_binreloc" = "xauto"; then if test "x$br_cv_valid_prefixes" = "xyes" -a \ "x$ac_cv_file__proc_self_maps" = "xyes"; then br_cv_binreloc=yes else br_cv_binreloc=no fi else br_cv_binreloc=no fi fi { echo "$as_me:$LINENO: result: $br_cv_binreloc" >&5 echo "${ECHO_T}$br_cv_binreloc" >&6; } if test "x$br_cv_binreloc" = "xyes"; then BINRELOC_CFLAGS="-DENABLE_BINRELOC" cat >>confdefs.h <<\_ACEOF #define ENABLE_BINRELOC _ACEOF if test "x$enable_binreloc_threads" = "xyes"; then { echo "$as_me:$LINENO: checking for pthread_getspecific in -lpthread" >&5 echo $ECHO_N "checking for pthread_getspecific in -lpthread... $ECHO_C" >&6; } if test "${ac_cv_lib_pthread_pthread_getspecific+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_getspecific (); int main () { return pthread_getspecific (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_pthread_pthread_getspecific=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pthread_pthread_getspecific=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_getspecific" >&5 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_getspecific" >&6; } if test $ac_cv_lib_pthread_pthread_getspecific = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_LIBPTHREAD 1 _ACEOF LIBS="-lpthread $LIBS" fi fi { echo "$as_me:$LINENO: checking whether binary relocation should use threads" >&5 echo $ECHO_N "checking whether binary relocation should use threads... $ECHO_C" >&6; } if test "${br_cv_binreloc_threads+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$enable_binreloc_threads" = "xyes"; then if test "x$ac_cv_lib_pthread_pthread_getspecific" = "xyes"; then br_cv_binreloc_threads=yes else br_cv_binreloc_threads=no fi else br_cv_binreloc_threads=no fi fi { echo "$as_me:$LINENO: result: $br_cv_binreloc_threads" >&5 echo "${ECHO_T}$br_cv_binreloc_threads" >&6; } if test "x$br_cv_binreloc_threads" = "xyes"; then BINRELOC_LIBS="-lpthread" cat >>confdefs.h <<\_ACEOF #define BR_PTHREAD 1 _ACEOF else BINRELOC_CFLAGS="$BINRELOC_CFLAGS -DBR_PTHREADS=0" cat >>confdefs.h <<\_ACEOF #define BR_PTHREAD 0 _ACEOF fi fi # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then enableval=$enable_debug; enable_debug=$enableval else enable_debug="no" fi if test "$enable_debug" = "yes"; then CFLAGS="-ansi -Wall -g -DDEBUG" #-pedantic fi # Check whether --enable-libnotify was given. if test "${enable_libnotify+set}" = set; then enableval=$enable_libnotify; enable_libnotify=$enableval else enable_libnotify="yes" fi if test "$enable_libnotify" = "yes"; then libnotify="libnotify >= 0.3.2" CFLAGS="$CFLAGS -DLIBNOTIFY_ENABLED" else libnotify="" fi # gtk+2 pkg_modules="gtk+-2.0 >= 2.0.0 glib-2.0 >= 2.6 libglade-2.0 >= 2.0.0 $libnotify" if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for PACKAGE" >&5 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$PACKAGE_CFLAGS"; then pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$PACKAGE_LIBS"; then pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5 ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then 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 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"` else PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"` fi # Put the nasty error message in config.log where it belongs echo "$PACKAGE_PKG_ERRORS" >&5 { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met: $PACKAGE_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 PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&5 echo "$as_me: error: Package requirements ($pkg_modules) were not met: $PACKAGE_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 PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. " >&2;} { (exit 1); exit 1; }; } elif test $pkg_failed = untried; then { { echo "$as_me:$LINENO: 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 PACKAGE_CFLAGS and PACKAGE_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." >&5 echo "$as_me: 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 PACKAGE_CFLAGS and PACKAGE_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." >&2;} { (exit 1); exit 1; }; } else PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } : fi # Gettext ALL_LINGUAS="fr es ca sv pt de da hu ru it no sr sr@Latn pl" GETTEXT_PACKAGE=gshutdown cat >>confdefs.h <<_ACEOF #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" _ACEOF # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac for ac_header in locale.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test $ac_cv_header_locale_h = yes; then { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } if test "${am_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_val_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } if test $am_cv_val_LC_MESSAGES = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LC_MESSAGES 1 _ACEOF fi fi USE_NLS=yes gt_cv_have_gettext=no CATOBJEXT=NONE XGETTEXT=: INTLLIBS= if test "${ac_cv_header_libintl_h+set}" = set; then { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking libintl.h usability" >&5 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking libintl.h presence" >&5 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_libintl_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } fi if test $ac_cv_header_libintl_h = yes; then gt_cv_func_dgettext_libintl="no" libintl_extra_libs="" # # First check in libc # { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_ngettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !ngettext ("","", 1) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_ngettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_ngettext_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } if test "$gt_cv_func_ngettext_libc" = "yes" ; then { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_dgettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return !dgettext ("","") ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_dgettext_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_dgettext_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } fi if test "$gt_cv_func_ngettext_libc" = "yes" ; then for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done 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 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bindtextdomain (); int main () { return bindtextdomain (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_bindtextdomain=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_bindtextdomain=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } if test $ac_cv_lib_intl_bindtextdomain = yes; then { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dgettext (); int main () { return dgettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_dgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dgettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } if test $ac_cv_lib_intl_dgettext = yes; then gt_cv_func_dgettext_libintl=yes fi fi fi if test "$gt_cv_func_dgettext_libintl" != "yes" ; then { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: " >&5 echo "${ECHO_T}" >&6; } { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_ngettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ngettext (); int main () { return ngettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_ngettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_ngettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } if test $ac_cv_lib_intl_ngettext = yes; then { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } if test "${ac_cv_lib_intl_dcgettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl -liconv $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dcgettext (); int main () { return dcgettext (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_intl_dcgettext=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_intl_dcgettext=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } if test $ac_cv_lib_intl_dcgettext = yes; then gt_cv_func_dgettext_libintl=yes libintl_extra_libs=-liconv else : fi else : fi 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 for ac_func in bind_textdomain_codeset do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done 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 cat >>confdefs.h <<\_ACEOF #define HAVE_GETTEXT 1 _ACEOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGFMT" in /*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then ac_cv_path_MSGFMT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != "no"; then { echo "$as_me:$LINENO: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$MSGFMT" != "no"; then glib_save_LIBS="$LIBS" LIBS="$LIBS $INTLLIBS" for ac_func in dcgettext do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done MSGFMT_OPTS= { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; } cat >conftest.foo <<_ACEOF 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" _ACEOF if { (echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5 (msgfmt -c -o /dev/null conftest.foo) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } echo "$as_me: failed input was:" >&5 sed 's/^/| /' conftest.foo >&5 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$XGETTEXT" in /*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then ac_cv_path_XGETTEXT="$ac_dir/$ac_word" break fi fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then CATOBJEXT=.gmo DATADIRNAME=share else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 case $host in *-*-solaris*) { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define bind_textdomain_codeset to an innocuous variant, in case declares bind_textdomain_codeset. For example, HP-UX 11i declares gettimeofday. */ #define bind_textdomain_codeset innocuous_bind_textdomain_codeset /* System header to define __stub macros and hopefully few prototypes, which can conflict with char bind_textdomain_codeset (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef bind_textdomain_codeset /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char bind_textdomain_codeset (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset choke me #endif int main () { return bind_textdomain_codeset (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_bind_textdomain_codeset=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_bind_textdomain_codeset=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } if test $ac_cv_func_bind_textdomain_codeset = yes; then CATOBJEXT=.gmo DATADIRNAME=share else CATOBJEXT=.mo DATADIRNAME=lib fi ;; *) CATOBJEXT=.mo DATADIRNAME=lib ;; esac fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$glib_save_LIBS" INSTOBJEXT=.mo else gt_cv_have_gettext=no fi fi fi if test "$gt_cv_have_gettext" = "yes" ; then cat >>confdefs.h <<\_ACEOF #define ENABLE_NLS 1 _ACEOF fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi fi # We need to process the po/ directory. POSUB=po ac_config_commands="$ac_config_commands default-1" for lang in $ALL_LINGUAS; do GMOFILES="$GMOFILES $lang.gmo" POFILES="$POFILES $lang.po" done if test "$gt_cv_have_gettext" = "yes"; then if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } 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 { echo "$as_me:$LINENO: result: $LINGUAS" >&5 echo "${ECHO_T}$LINGUAS" >&6; } fi if test -n "$LINGUAS"; then for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done fi fi MKINSTALLDIRS= if test -n "$ac_aux_dir"; then MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi 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 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile po/Makefile.in gshutdown.spec gshutdown.lsm gshutdown.desktop PKGBUILD autopackage/default.apspec" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "gshutdown.spec") CONFIG_FILES="$CONFIG_FILES gshutdown.spec" ;; "gshutdown.lsm") CONFIG_FILES="$CONFIG_FILES gshutdown.lsm" ;; "gshutdown.desktop") CONFIG_FILES="$CONFIG_FILES gshutdown.desktop" ;; "PKGBUILD") CONFIG_FILES="$CONFIG_FILES PKGBUILD" ;; "autopackage/default.apspec") CONFIG_FILES="$CONFIG_FILES autopackage/default.apspec" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim MAINT!$MAINT$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim BINRELOC_CFLAGS!$BINRELOC_CFLAGS$ac_delim BINRELOC_LIBS!$BINRELOC_LIBS$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim USE_NLS!$USE_NLS$ac_delim MSGFMT!$MSGFMT$ac_delim MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF GMSGFMT!$GMSGFMT$ac_delim XGETTEXT!$XGETTEXT$ac_delim CATALOGS!$CATALOGS$ac_delim CATOBJEXT!$CATOBJEXT$ac_delim DATADIRNAME!$DATADIRNAME$ac_delim GMOFILES!$GMOFILES$ac_delim INSTOBJEXT!$INSTOBJEXT$ac_delim INTLLIBS!$INTLLIBS$ac_delim PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim POFILES!$POFILES$ac_delim POSUB!$POSUB$ac_delim MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| . 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; 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. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue 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_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile esac ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi #echo #echo "CFLAGS : $CFLAGS" #echo gshutdown-0.2/AUTHORS0000644000175000017500000000157310610253304011366 00000000000000Main programmers : GShutdown Team including : Achraf cherti Maxime Chéramy Translations : Alejandro Zarate (Spanish) Alexander Sjögren (Swedish) Andrea Carnaroli (Italian) Andrew V. Sichevoi (Russian) Bill Heldorf Soerensen (Danish) Dóra Kováts (Hungarian) GShutdown Team (French) Kristopher (Polish) Miloš Popović (Serbian) Øyvind Pedersen (Norwegian) Rolando Emanuel Lopes Pereira (Portuguese) Rolf Loire (German) Siegfried Gevatter (Catalan) Indirect contributions : GTK+2, Glade and GNU/Linux developers ;-) GDM Logout Action protocol implementation by Raffaele Sandrini, George Lebl and Mark McLoughlin. Egg Tray Icon by Anders Carlsson. Bin Reloc by Hongli Lai. Window Manager detection by Tomas Styblo. Bacon Message Connection by Bastien Nocera. gshutdown-0.2/COPYING0000644000175000017500000004312210535563747011372 00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. gshutdown-0.2/ChangeLog0000644000175000017500000004573310637507451012114 000000000000002007-06-23 Achraf cherti * Italian translation added (thanks to Andrea Carnaroli). 2007-06-22 Achraf cherti * Russian translation updated (thanks to Andrew V. Sichevoi). 2007-06-11 Achraf cherti * Catalan translation updated (thanks to Siegfried Gevatter). 2007-06-10 Achraf cherti * "Plural-forms:" added in es.po, no.po and ru.po. * gdm.c call is replaced by gdmflexiserver commad (because we have a communication problem with this session manager. * French translation updated * Portuguese (pt.po) translation updated (thanks to Rolando Pereira). 2007-05-19 Achraf cherti * ngettext support (plural forms) 2007-05-08 Achraf cherti * gdm.c updated from gnome-panel 2.18 2007-02-18 Achraf cherti * all dialogs are shown in the mouse position * main_window callbacks moved to callback_main_window.c * all main_window and about_dialog signal connection uses now the glade_xml_signal_autoconnect(). 2007-02-08 Achraf cherti * Polish translation added (thanks to Kristopher) 2007-02-04 Achraf cherti * Italian translation updated (Thanks to Andea Carnaroli) 2007-02-02 Achraf cherti * Serbian patch applied to gshutdown.desktop.in * HACKING updated (translation notes) 2007-02-02 Maxime Cheramy * Serbian translation added (Thanks to Miloš Popović) 2007-02-01 Achraf cherti * ngettext is used with plural form in on_btn_notification_date_close() and in gui_set_notification_date() 2007-01-31 Achraf cherti * GNOME logout bug fixed * XFCE support * release 0.2rc1 2007-01-30 Maxime Cheramy * Fix few translations 2007-01-30 Achraf cherti * some fixes 2007-01-27 Maxime Cheramy * Translations updated (Thanks to all translators) 2007-01-21 Achraf cherti * "no" added in configure.ac 2007-01-23 Maxime Cheramy * LGPL license text added * Bugfix : on_combo_action wasn't called... It's my fault :/ 2007-01-19 Maxime Cheramy * Norwegian translation added (Thanks to Øyvind Pedersen) 2007-01-19 Achraf cherti * Bugfix : the about's close button now closes the window 2007-01-18 Maxime Cheramy * Italian translation added (Thanks to Andea Carnaroli) * da and it added in configure.ac 2007-01-17 Achraf cherti * de, hu and ru added in configure.ac 2007-01-17 Maxime Cheramy * Hungarian translation added (Thanks to Dóra Kováts) * Dannish translation added (Thanks to Bill H. Soerensen) 2007-01-16 Maxime Cheramy * Russian translation added (Thanks to Andrew V. Sichevoi) 2007-01-10 Maxime Cheramy * German translation added (Thanks to Rolf Loire) 2007-01-02 Achraf cherti * Sweden translation added (Thanks to Alexander Sjögren) 2007-01-02 Maxime Cheramy * Portuguese translation added (Thanks to Rolando Pereira) * Some tranlations errors in all languages have been fixed 2007-01-01 Achraf cherti * Spanish translation added (Thanks to Alejandro Zarate) * Spanish and Catalan translation declared in configure.ac * --launch-from-now renamed to --launch-after-delay * French translation updated 2007-01-01 Maxime Cheramy * Add Catalan translation (Thanks to Siegfried Gevatter) 2006-12-30 Achraf cherti * French translation updated 2006-12-13 Achraf cherti * Short version of --launch-from-now is now -h (like shutdown) * Now, only the time is parsed in -h * It's possible to enter MM (minute) only (else than HH:MM) in -h option. 2006-12-09 Achraf cherti * New command line options : --launch-now, --launch-from-now, --launch-at * 0.1cvs changed by 0.2cvs in configure.ac * new files : debug.h debug.c * new function debug_printf() to show all debug messages, when DEBUG macro is defined * New values supported by --launch-at : tomorrow and demain. * New option : --minimize 2006-11-03 Maxime Cheramy * Add extras menu (only menu) 2006-11-01 Maxime Cheramy * Notification date dialog works. 2006-11-01 Achraf cherti * Little changes in the code (style of the code, warnings, etc.) 2006-10-31 Maxime Chéramy * Now notification date dialog shows current setting. 2006-10-15 Achraf cherti * French translation updated 2006-10-04 Achraf cherti * New function to handle all arguments handle_arguments() * glib >= 2.6 is now required in configure.ac * New command line option (--action=shutdown, reboot or logout) 2006-09-18 Achraf cherti * All Maxime's modification are merged * The file PKGBUILD is added in the project. Arch Linux package is now supported! 2006-09-15 Maxime Cheramy * which function removed and replaced to g_find_program_in_path 2006-09-04 Achraf cherti * Hour and Minute tooltip are now translatable * All maxime's modifications are merged 2006-09-03 Achraf cherti * In README and LISEZMOI, the dependencies to compile the source code in Fedora Core and Ubuntu are added. * It's now possible to choose if libnotify is compiled with GShutdown. * All notification code are now between #ifdef LIBNOTIFY_ENABLED and #endif. * frame_config_notifications is hidden when LIBNOTIFY_ENABLED is not defined. * In the time remaining, "Time before action" are replaced by "Time before shutdown", "Time before restart" and "Time before logout" (proposed by Thesa) 2006-09-02 Achraf cherti * ":" (in the main_window) is now centered in y alignment * The bug in the default values is now fixed * French translation updated: "sûre" replaced by "sûr" (proposed by Thesa) * Xmu header removed from detectwm.c * X11/cursorfont.h removed from detectwm.c * x11proto-core-dev added in the dependencies * New dependencies in gshutdown.spec.in, for Fedora Core : gtk+-devel libglade2-devel libnotify-dev (proposed by Sebastien Bilbeau) * New dependencies in debian/control : x11proto-core-dev, libxau-dev * Bug fixed : When "if active" is selected, the systray icon are now hidden when the program is started. 2006-09-01 GShutdown Team * First release 0.1 2006-09-01 Achraf cherti * KDE is now detected with the window manager KWin * XFCE is now detected with the window manager Xfwm4 * bacon-message-connection.* renamed to bacon.* * GNOME_DESKTOP_SESSION_ID environment variable is used to detect GNOME, after the window manager test. * Bug fixed when the selected desktop is saved in ~/.gshutdown * French translation updated * XFCE logout is now supported (xfce4-session-logout) * KDE logout is now supported (kdeinit_shutdown) * Some changes in the source code * XFCE, KDE, KDM added in the message box of detect_error_dialog() and in the french translation. * XFCE is now not supported 2006-09-01 Maxime Cheramy * Bugfix with the calendar * KDM detection added * KDM support added 2006-08-31 Achraf cherti * action_method, detected_display_manager and detected_desktop are now in "values" structure * action_autodetect() renamed to values_action_method_autodetect() * New variables in values selected_display_manager and selected_desktop. * New values in Desktop and DisplayManager enum (KDE, XFCE and KDM) * The selected display manager and desktop are now saved and loaded in the configuration file ~/.gshutdown * ACTION_DISPLAY_MANAGER_** -> DISPLAY_MANAGER_* and ACTION_DESKTOP_* -> ACTION_DESKTOP_* * Now, it's possible to run the selected method (KDE, XFCE, GNOME, GDM and KDM). * The storing of the method is changed from string to integer value (selected_display_manager and selected_desktop) * action_scheduled is now values.action_scheduled * New reading (relecture) of main.c, main.h, values.c and values.h, some little bugs are fixed. * GShutdown Team is now in all *.h *.c headers (copyright) * SIGINT and SIGCHLD are now in two functions (warning reported by rats auditing tool) 2006-08-31 Maxime Cheramy * Optimize time's selection * Bugfix : Bad countdown if the date is in another month or year * Change text's tooltip (about how to display time left) * French translation updated 2006-08-30 Achraf cherti * All warnings removed * New image in the left of the command entry (Custom command and command before action) to show if the command exists. * Some improvements in command_exists() * The pointer returned by bacon_message_connection_new() is now freed in called_at_exit() (reported by valgrind) * All dialogs/windows are not resizable * Vim folding organization added in callback.c * New dialog = action_method_dialog. It's to select manually the method. * French translation updated 2006-08-30 Maxime Cheramy * Callback called every day at 00:00 to change the day mark * Optimize time's selection * Warning on start if autodetection failed * Add a GtkNotebook in the config dialog * French translation updated 2006-08-29 Achraf cherti * In timer_notify(), if(timeleft < SECS_IN_HOUR), only the minute is shown. * Command before an action support implemented * Now, the action method is with radio buttons * New action method in the configuration dialog (manual, to specify manually KDE, GNOME, XFCE...) 2006-08-29 Maxime Cheramy * Now gshutdown detects if it's already opened * If gshutdown was already opened, show the main window * Systray Image now changes when an action is scheduled * Mark the current day in the calendar 2006-08-28 Maxime Cheramy * Now display notification contains an icon * Click on the notification now shows the main window 2006-08-28 Achraf cherti * New files detectwm.c detectwm.h (based on the Maxime's fork of WM detection) * New function in detectwm.c : detect_window_manager() * The desktop detection is now with the environment variable and with detect_window_manager(). * The version is now shown in about dialog * Gdm detection and GDM shutdown, reboot uses now gdm.c * New files binreloc.c and binreloc.h, binreloc.* added in src/Makefile.am and configure.ac. * Autopackage script added 2006-08-27 Maxime Cheramy * Fork of wmctrl to get wm detection (not currently added to gshutdown project yet) 2006-08-27 Achraf cheri * All action_run_command() code are now in run_command(), to be used by all function (not only by action*). * New function: command_exists() * Halt, reboot and logout are now work fine in GNOME/GDM, with the command line interface. * French translation updated * mnu_check_system is now in the action configuration dialog. The new name of this widget is btn_check_system. 2006-08-26 Achraf cherti * A macro is now used in traymenu() for more visibility * action_run_command() improved * Some changes in most files (for more visibility of the code) * Hour and Minute tooltip are now in the glade file * The preference dialog no longer have the exclusivity. Now It's possible to send an event to the main window in the same time. * New dialog, item in the menu named "Check system information". It's useful to show if the display manager or the desktop are detected. * All important printf are replaced by gtk_message_dialog * Bug fixed: gtk_main_quit() called only if main_loop == TRUE * New global variables : detected_desktop and detected_display_manager * action_autodetect() is now used to detect in detected_desktop and detected_display_manager. * The name of the desktop and the display manager are now in the check_system dialog. 2006-08-26 Maxime Cheramy * Now if you select a timecount, the precision is now at 1 sec instead of 1mn like before * Now display notification come from the systray icon if visible * Changing some text message * New function : confirm_dialog(Action *id_action) to confirm the action * cancel_dialog : now display a message considering the action instead of the generic message "...the action..." 2006-08-25 Maxime Cheramy * Optimize precision of time left (now shows seconds) * Bugfix : Cancel dialog didn't work more than one time * Now the user can't schedule an action in the past and a message dialog appears * Cancelling the action now close the dialog_confirm (cancel dialog) if active * First version of the README file 2006-08-25 Achraf cherti * New file gshutdown.spec.in (to create an RPM distribution) * New file gshutdown.lsm.in (The Linux Software Map) * gshutdown.desktop is moved to gshutdown.desktop.in (useful to generate dynamically this file) * gshutdown.desktop gshutdown.lsm.* and gshutdown.spec.* are added in configure.ac and Makefile.am. * New border in the container of the progress_confirm * The action is now launched in dialog_confirm callbacks * English man file * The debian source is now available in debian/. It's now possible to build a *.deb package. * Error message when values_load() or values_save() are failed. * gui_notification() have now a new argument : type * All "enum" are now "typedef enum" * The GNOME/GDM is now available action_autodetect() (it use the environment variable) * If the Display Manager or the Desktop is not detected, the action cannot be launched with on_btn_start(). * Some modifications in create_mnu_tray_action_now() * French translation updated * create_mnu_tray_action_now() is now "compressed" 2006-08-24 Maxime Cheramy * New files : progress_confirm.c, progress_confirm.h * New cancel dialog when timeleft before action is = 0 * New confirmation dialog when asking for an immediate action * French translation update * Change the place of the action timer 2006-08-24 Achraf cherti * French translation update (all GtkMenuItem and config_action_dialog widgets) * New check button "check_iconify" with on_check_iconify() callback. * New option : Iconify when the action is started. * New variables and functions : check_iconify, on_check_iconify, iconify in "values". It's saved and loaded from the configuration file. * Bug fixed : The main window is not showed when "on_mnu_tray_cancel" is called to hide the systray icon. * The Action description in label_action_description is now available. * New variable values.current_action to store the current action. It updated by a new callback name on_combo_action(). * The immediate actions (shutdown, reboot, logout) are now launched 2006-08-23 Maxime Cheramy * New functions : gui_systray_icon_hide() and gui_systray_icon_show() * Now systray icon is showed in function of settings : always, never or if active * bugfix : window was hidden on close even if systray icon is hidden... * Update french translation 2006-08-23 Achraf cherti * All synchronization functions deleted. Now, the synchronisation is with callbacks. * Function on_time_type renamed : on_combo_time_type * New callback : on_spin_hour() on_spin_minute() on_calendar() * values.current_choice is now values.time_choice. It's now an enum. * "Valid and Cancel" are replaced by "Close button" (GNOME/Gtk style) in the configuration widget. * Function to handle check_show_notifications * New callback: on_btn_test_notifications() * The value of check_show_notifications is now saved and loaded (from the configuration file) * Functions to handle all radio_systray* : on_radio_systray_always, on_radio_systray_never, on_radio_systray_if_active. * Save and load the check_radio_systray* value in the configuration file. * The items of combo_action and combo_time_type is now appended from gui.c. It's useful for the futur translations. * New dialog : config_action_dialog * New callback: on_btn_config_action() and on_combo_action_method(). It's to configure the actions (reboot, shutdown and restart). * New variables in "values" : Action action_shutdown, action_reboot, action_logout. * New function values_destroy() to free all allocated informations in values. * Bug fixed : values_init() is now called in main(). * In action_get_command, "" is returned if action->command==NULL. 2006-08-22 Maxime Cheramy * New submenu in systray menu : "immediate action" * Cancel button is now active only if action is scheduled * New function in values.c : values_init(), values_synchronize_from_gui(guint prev_choice, guint curr_choice) and void values_synchronize_to_gui(guint id); * New files : timer.c timer.h * New functions in timer.c : guint time_left(); and gboolean timer_notify() * Notification about time left before action is over * New tooltip over the tray icon which contain time left information * All values in values_load() are now initialized 2006-08-22 Achraf cherti * French translation updated * The first code of on_btn_start, to start or stop the action. * combo_action, btn_start, combo_time_type, mnu_tray_cancel are now global (useful for on_btn_start). * New variable in values.c : action_scheduled * action_scheduled=TRUE|FALSE in "on_btn_start()" * Load and save all values in the configuration files. The new functions are values_save() and values_load(). * Quit = Question("Are you sure you want to quit ?") * New functions in values.c load_configuration(), save_configuration(), values_load(), saves_save(). It's to load and save the configuration file. 2006-08-21 Achraf cherti * New function in action.c : run_action_custom_command(gchar *) * New function in action.c to launch a command (with fork and exec) * s/custom_command/command/ s/CUSTOM_COMMAND/COMMAND/ * btn_start handler (empty for while) * It's possible now to valid and handle the preference dialog * New files : values.c, values.h 2006-08-21 Maxime Cheramy * Bugfix : tray menu made gshutdown crash, it's now recoded directly in C * The tray menu contain new items * Add a struct which contain user choices 2006-08-20 Achraf cherti * New function data_path(). It return the path of a data file. * The dialogs (about and config) and main window are not destroyed when it's closed (gtk_widget_hide_on_delete). * All warnings removed * New function in misc.c : void quit(int status) * Custom command support in action.c 2006-08-19 Achraf cherti * New widget : Configuration dialog * French translation updated * New requirement in README * 64x64 icon to 48x48 * First action.c and action.h code. 2006-08-18 Achraf cherti * libnotify added in configure.ac * Atexit, SIGCHLD and SIGINT handling * New argument in configure script : --enable-debug * New files : misc.c, misc.h, template.c * New function in misc.c : which() * New entry in the menu : Edit -> Preferences * Requirements in README 2006-08-17 Achraf cherti * tray_menu.glade is now merged in gshutdown.glade * New combo box in the interface : Time type. * New callback "on_time_type". It Hide/Show some widgets and it save/restore some values. * French translation updated * Little memory leak fixed in gui_load_glade() * New files: action.c, action.h * New files : gdm.c, gdm.h * The date is not saved when the "time type" is changed. It's useless for while. * Some GtkWidget is changed with the true type of the widget (to avoid the casting) * Indirect authors added in AUTHORS 2006-08-17 Maxime Cheramy * Systray menu now uses a glade file 2006-08-17 Achraf cherti * gshutdown.desktop * Improvement of configure.ac and Makefile.am 2006-08-16 Maxime Cheramy * Systray support 2006-08-16 Achraf cherti * All source code is now available in the svn repository 2006-08-15 Achraf cherti * Automake/Autoconf scripts * Gettext support * First french translation 2006-08-15 Maxime Cheramy * First gui initialisation 2006-08-14 Achraf cherti * First version of the graphical user interface gshutdown-0.2/INSTALL0000644000175000017500000002243210535563747011371 00000000000000Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. (Caching is disabled by default to prevent problems with accidental use of stale cache files.) If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You only need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not support the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Here is a another example: /bin/bash ./configure CONFIG_SHELL=/bin/bash Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent configuration-related scripts to be executed by `/bin/bash'. `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. gshutdown-0.2/NEWS0000644000175000017500000000001710610253304011005 00000000000000See ChangeLog. gshutdown-0.2/TODO0000644000175000017500000000630510610253304011004 00000000000000Tâches libres : - envoyer le fichier *.desktop à tous les traducteurs - hibernation - Voir du côté de /opt/kde/bin/dcop --all-users --all-sessions ksmserver ksmserver logout 0 2 0 pour KDE - Utiliser libSM ou libICE pour 'tuer' la session - Ajouter des icônes dans les items du combo box. Par exemple, dans arrêter l'ordinateur, afficher l'icône d'extinction de GNOME (la rouge), dans redémarrer afficher une autre icône, etc. Même chose pour le combo qui contient le type du temps. Tâches actuelle de Maxime : - Support dbus pour executer des actions - Nouvelle action : Dans la liste déroulante des actions, ajouter la possibilité de communiquer avec certains programmes Gtk+/GNOME comme par exemple avec rhythmbox (l'équivalent de "Extras", disponible dans kshutdown) Tâches actuelle d'Achraf : - Dans la fonction pour tester les commandes, faire en sorte de tester le premier argument quand sudo est la commande - Mettre le code des arguments dans un fichier séparé de gui.c - Envoyer les arguments en ligne de commande (comme --action) avec bacon, dans le cas où gshutdown est déjà en marche - mettre tous le traitement des arguments dans un fichier à part - Annuler le message envoyé à KDM ou GDM quand le logout échoue. - Lancer l'action quand l'activié réseau est en dessous d'une limite - support enlightenment + gestionnaire de session e17 - pour XFCE, tester : echo POWEROFF | /opt/xfce4/libexec/xfsm-shutdown-helper Idées pour les futures versions : - Message pour informer l'utilisateur que la détection n'est pas bonne quand on choisit Automatique dans la sélection manuelle. - Nouveau type de programmation : Dans "Select a time", ajouter la possibilité de lancer une action après l'arrêt d'un processus. - Configuration : Parametrage de la durée de la notification visuelle - Feature : Un gestionnaire de plusieurs tâches programmées, qui ressemble à la playlist de totem. - Support DBus : Permettre de controller certaines applications proprement. - Support DBus : Permettre le controle de gshutdown par une autre application (annuler action en cours par exemple) - Centraliser l'exportation des values vers l'interface dans une seule fonction - Chercher comment faire pour ne pas appeler gnome session saver (ouvrir par exemple dynamiquement la bibliothèque de gnome pour utiliser une de ses fonctions). - Ajouter la possibilité de choisir "Attendre que le programme finisse (non recommandé)" dans la frame qui permet de choisir le programme à lancer avant l'action. Déjà dans le mind map : - Fermer tel programme à telle heure. - Nouvelle action : "lock session" avec gnome-screensaver, xscreensaver et kscreensaver. - Amélioration : Jouer un son quand le message d'avertissement final s'affiche. Ajouter aussi la possibilité de personnaliser ce son, de la desactiver, de cocher une case pour choisir s'il est répété... - Amélioration : Compléter automatiquement le nom du programme, quand l'utilisateur l'entre dans la fenêtre pour configurer les actions. - Ajouter l'option --cancel, pour annuler l'action en cours ! - Configuration : Permettre à l'utilisateur de choisir à quel moment il faut le prévenir du nombre de secondes restantes. gshutdown-0.2/config.guess0000755000175000017500000012626010524305372012646 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-07-02' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; i*:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; x86:Interix*:[3456]*) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T:Interix*:[3456]*) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gshutdown-0.2/config.sub0000755000175000017500000007746010524305372012320 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2006-09-20' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16c) basic_machine=cr16c-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gshutdown-0.2/depcomp0000755000175000017500000003710010535563747011713 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2005-07-09.11 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program 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 General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mecanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: gshutdown-0.2/install-sh0000755000175000017500000002202110535563747012336 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2005-05-14.22 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" chmodcmd="$chmodprog 0755" chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= no_target_directory= usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: -c (ignored) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test -n "$1"; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit $?;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit $?;; *) # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. test -n "$dir_arg$dstarg" && break # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done break;; esac done if test -z "$1"; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then mkdircmd=: chmodcmd= else mkdircmd=$mkdirprog fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` shift IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test -d "$pathcomp" || exit fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $mkdircmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else dstfile=`basename "$dst"` # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. $doit $cpprog "$src" "$dsttmp" && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { if test -f "$dstdir/$dstfile"; then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit 1; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit 0 } # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: gshutdown-0.2/ltmain.sh0000644000175000017500000060015710610253304012141 00000000000000# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION="1.5.22 Debian 1.5.22-2" TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" ##################################### # Shell function definitions: # This seems to be the best place for them # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $mkdir "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $echo $win32_libid_type } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xdir="$my_gentop/$my_xlib" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" $echo $echo "Copyright (C) 2005 Free Software Foundation, Inc." $echo "This is free software; see the source for copying conditions. There is NO" $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --features) $echo "host: $host" if test "$build_libtool_libs" = yes; then $echo "enable shared libraries" else $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then $echo "enable static libraries" else $echo "disable static libraries" fi exit $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; * ) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.f90) xform=f90 ;; *.for) xform=for ;; *.java) xform=java ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != "X$srcfile"; then $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes else if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built fi build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$finalize_command @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs -framework System" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -pg pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ -t[45]*|-txscale*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) # The PATH hackery in wrapper scripts is required on Windows # in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -static) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$libobjs $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object non_pic_objects="$non_pic_objects $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS%" test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" ;; esac fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` if eval $echo \"$deplib\" 2>/dev/null \ | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $echo $echo "*** Warning: Trying to link with static lib archive $deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because the file extensions .$libext of this argument makes me believe" $echo "*** that it is just a static archive that I should not used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath " in *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$temp_rpath $absdir" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes ; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if test "$shouldnotlink" = yes && test "$pass" = link ; then $echo if test "$linkmode" = prog; then $echo "*** Warning: Linking the executable $output against the loadable module" else $echo "*** Warning: Linking the shared library $output against the loadable module" fi $echo "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; shift libname=`eval \\$echo \"$libname_spec\"` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; then $echo "** Warning, lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $echo $echo "** And there doesn't seem to be a static archive available" $echo "** The link will probably fail, sorry" else add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && \ test "$hardcode_minus_L" != yes && \ test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $echo $echo "*** Warning: This system can not link to static lib archive $lib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $echo "*** But as you try to build a module library, libtool will still create " $echo "*** a static module, that should work as long as the dlopening application" $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$2" number_minor="$3" number_revision="$4" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor - 1` age="$number_minor" revision="$number_minor" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac ;; no) current="$2" revision="$3" age="$4" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current"; ;; irix | nonstopux) major=`expr $current - $age + 1` case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$echo "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. for path in $notinst_path; do lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $rm conftest.c cat > conftest.c </dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for file magic test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a file magic. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval \\$echo \"$libname_spec\"` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval $echo \"$potent_lib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $echo $echo "*** Warning: linker path does not have real file for library $a_deplib." $echo "*** I have the capability to make that library automatically link in when" $echo "*** you link to this library. But I can only do this if you have a" $echo "*** shared version of the library, which you do not appear to have" $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else $echo "*** with $libname and none of the candidates passed a file format test" $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $echo if test "X$deplibs_check_method" = "Xnone"; then $echo "*** Warning: inter-library dependencies are not supported in this platform." else $echo "*** Warning: inter-library dependencies are not known to be supported." fi $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $echo $echo "*** Warning: libtool could not satisfy all declared inter-library" $echo "*** dependencies of module $libname. Therefore, libtool will create" $echo "*** a static module, that should work as long as the dlopening" $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $echo $echo "*** However, this would only work if libtool was able to extract symbol" $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" $echo "*** not find such a program. So, this module is probably useless." $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $echo "*** The inter-library dependencies that have been dropped here will be" $echo "*** automatically added whenever a program is linked with this library" $echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $echo $echo "*** Since this library must not contain undefined symbols," $echo "*** because either the platform does not support them or" $echo "*** it was explicitly requested with -no-undefined," $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" shift; shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$objlist $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then $show "${rm}r $gentop" $run ${rm}r "$gentop" fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $run $rm $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $run eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if grep -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else grep -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` else compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` fi ;; * ) compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $rm $cwrappersource $cwrapper trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ char * find_executable (const char* wrapper) { int has_slash = 0; const char* p; const char* p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char* concat_name; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char* path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char* q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR(*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable(concat_name)) return concat_name; XFREE(concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen(tmp); concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable(concat_name)) return concat_name; XFREE(concat_name); return NULL; } char * strendzap(char *str, const char *pat) { size_t len, patlen; assert(str != NULL); assert(pat != NULL); len = strlen(str); patlen = strlen(pat); if (patlen <= len) { str += len - patlen; if (strcmp(str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variable: notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$echo are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || \\ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $mkdir \"\$progdir\" else $rm \"\$progdir/\$file\" fi" $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" exit $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 $echo \"See the $PACKAGE documentation for more information.\" 1>&2 exit $EXIT_FAILURE fi fi\ " chmod +x $output fi exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi done fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run eval "$striplib $destdir/$realname" || exit $? fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $echo "Libraries have been installed in:" for libdir in $libdirs; do $echo " $libdir" done $echo $echo "If you ever happen to want to link against installed libraries" $echo "in a given directory, LIBDIR, you must either use libtool, and" $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" $echo " during execution" fi if test -n "$runpath_var"; then $echo " - add LIBDIR to the \`$runpath_var' environment variable" $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $echo $echo "See any operating system documentation about shared libraries for" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables if test "${save_LC_ALL+set}" = set; then LC_ALL="$save_LC_ALL"; export LC_ALL fi if test "${save_LANG+set}" = set; then LANG="$save_LANG"; export LANG fi # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" exit $EXIT_SUCCESS fi ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" rm="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if (test -L "$file") >/dev/null 2>&1 \ || (test -h "$file") >/dev/null 2>&1 \ || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" \ && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [OPTION]... [MODE-ARG]... Provide generalized library-building support services. --config show all configuration variables --debug enable verbose shell tracing -n, --dry-run display commands without modifying any files --features display basic configuration information and exit --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: clean remove files from the build directory compile compile a source file into a libtool object execute automatically set library path, then run a program finish complete the installation of libtool libraries install install libraries or executables link create a library or an executable uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $echo \ "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $echo \ "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $echo \ "Usage: $modename [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $echo \ "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -static do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $echo \ "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: gshutdown-0.2/missing0000755000175000017500000002540610535563747011743 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2005-06-08.21 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program 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 General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case "$1" in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: gshutdown-0.2/mkinstalldirs0000755000175000017500000000370410637511521013131 00000000000000#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Public domain errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" 1>&2 exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac case $dirmode in '') if mkdir -p -- . 2>/dev/null; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" fi ;; *) if mkdir -m "$dirmode" -p -- . 2>/dev/null; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # End: # mkinstalldirs ends here gshutdown-0.2/autogen.sh0000755000175000017500000001102210610253304012305 00000000000000#!/bin/sh # Run this to generate all the initial makefiles, etc. #aclocal -I . #glib-gettextize --force --copy #intltoolize --copy --force --automake #autoheader #automake --add-missing #autoconf #./configure srcdir=`dirname $0` test -z "$srcdir" && srcdir=. DIE=0 if [ -n "$GNOME2_DIR" ]; then ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS" LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH" PATH="$GNOME2_DIR/bin:$PATH" export PATH export LD_LIBRARY_PATH fi (test -f $srcdir/configure.ac) || { echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" echo " top-level package directory" exit 1 } (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`autoconf' installed." echo "Download the appropriate package for your distribution," echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" DIE=1 } (grep "^AC_PROG_INTLTOOL" $srcdir/configure.ac >/dev/null) && { (intltoolize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`intltool' installed." echo "You can get it from:" echo " ftp://ftp.gnome.org/pub/GNOME/" DIE=1 } } (grep "^AM_PROG_XML_I18N_TOOLS" $srcdir/configure.ac >/dev/null) && { (xml-i18n-toolize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`xml-i18n-toolize' installed." echo "You can get it from:" echo " ftp://ftp.gnome.org/pub/GNOME/" DIE=1 } } (grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && { (libtool --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`libtool' installed." echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" DIE=1 } } (grep "^AM_GLIB_GNU_GETTEXT" $srcdir/configure.ac >/dev/null) && { (grep "sed.*POTFILES" $srcdir/configure.ac) > /dev/null || \ (glib-gettextize --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`glib' installed." echo "You can get it from: ftp://ftp.gtk.org/pub/gtk" DIE=1 } } (automake --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: You must have \`automake' installed." echo "You can get it from: ftp://ftp.gnu.org/pub/gnu/" DIE=1 NO_AUTOMAKE=yes } # if no automake, don't bother testing for aclocal test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || { echo echo "**Error**: Missing \`aclocal'. The version of \`automake'" echo "installed doesn't appear recent enough." echo "You can get automake from ftp://ftp.gnu.org/pub/gnu/" DIE=1 } if test "$DIE" -eq 1; then exit 1 fi if test -z "$*"; then echo "**Warning**: I am going to run \`configure' with no arguments." echo "If you wish to pass any to it, please specify them on the" echo \`$0\'" command line." echo fi case $CC in xlc ) am_opt=--include-deps;; esac for coin in `find $srcdir -name configure.ac -print` do dr=`dirname $coin` if test -f $dr/NO-AUTO-GEN; then echo skipping $dr -- flagged as no auto-gen else echo processing $dr ( cd $dr aclocalinclude="$ACLOCAL_FLAGS" if grep "^AM_GLIB_GNU_GETTEXT" configure.ac >/dev/null; then echo "Creating $dr/aclocal.m4 ..." test -r $dr/aclocal.m4 || touch $dr/aclocal.m4 echo "Running glib-gettextize... Ignore non-fatal messages." echo "no" | glib-gettextize --force --copy echo "Making $dr/aclocal.m4 writable ..." test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4 fi if grep "^AC_PROG_INTLTOOL" configure.ac >/dev/null; then echo "Running intltoolize..." intltoolize --copy --force --automake fi if grep "^AM_PROG_XML_I18N_TOOLS" configure.ac >/dev/null; then echo "Running xml-i18n-toolize..." xml-i18n-toolize --copy --force --automake fi if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then if test -z "$NO_LIBTOOLIZE" ; then echo "Running libtoolize..." libtoolize --force --copy fi fi echo "Running aclocal $aclocalinclude ..." aclocal $aclocalinclude -I . if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then echo "Running autoheader..." autoheader fi echo "Running automake --gnu $am_opt ..." automake --add-missing --gnu $am_opt echo "Running autoconf ..." autoconf ) fi done conf_flags="--enable-maintainer-mode" if test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... $srcdir/configure $conf_flags "$@" \ && echo Now type \`make\' to compile. || exit 1 else echo Skipping configure process. fi gshutdown-0.2/gshutdown.spec0000644000175000017500000000410210637512162013214 00000000000000Name: gshutdown Version: 0.2 Release: 1 License: GPL Group: Applications/System URL: http://gshutdown.tuxfamily.org Packager: Achraf cherti Summary: An advanced shutdown utility Summary(fr): Utilitaire pour gérer l'arrêt de votre ordinateur d'une manière avancée BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Source: %{name}-%{version}.tar.gz BuildRequires: gtk2-devel libglade2-devel Requires: gtk2 libglade2 %description GShutdown is an advanced shutdown utility which allows you to schedule the shutdown or the restart of your computer. With it, you can simply and quickly choose the turn off time. The graphical user interface uses Gtk+2. Features : * Shutdown, reboot and logout : immediately or scheduled * No need to be root * Possibility to choose custom commands for the actions * Three different ways to schedule the action * Systray icon * Visuals notifications %description -l fr GShutdown est un utilitaire avancé pour programmer l'arrêt, le redémarrage de votre ordinateur, ou la fermeture de la session en cours. L'interface graphique utilise Gtk+2. Fonctionnalités : * Arrêt, redémarrage ou fermeture de la session en cours * Programmation du lancement de l'action de trois manières: À partir de maintenant, à une heure et une date, maintenant. * Vous n'êtes pas obligé d'être root pour arrêter ou redémarrer l'ordinateur * Il est possible de choisir des commandes personnalisées pour les actions * Une icône est ajoutée dans la zone de notification * Vous êtes prévenu avec une notification visuelle, avant le déclenchement d'une action %prep %setup -q %build %configure --enable-libnotify=no %install rpm -fr $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean rpm -fr $RPM_BUILD_ROOT %files %defattr(-, root, root, 0755) %doc README ChangeLog NEWS AUTHORS COPYING %{_bindir}/* %{_datadir}/gshutdown/* %{_datadir}/pixmaps/gshutdown.png %{_datadir}/applications/gshutdown.desktop %{_datadir}/locale/* %{_datadir}/man/* %changelog * Thu Aug 24 2006 Achraf cherti - Initial *.spec release. gshutdown-0.2/gshutdown.lsm0000644000175000017500000000121510637512162013057 00000000000000Begin4 Title: gshutdown Version: 0.2 Entered-date: 2006-08-24 Description: An advanced shutdown utility which allows you to schedule the shutdown or the restart of your computer. With it, you can simply and quickly choose the turn off time. Keywords: shutdown, halt, poweroff, reboot, restart, logout, lock, screen, gnome, xfce, kde, schedule Author: gshutdown@gmail.com (GShutdown Team) Maintained-by: gshutdown@gmail.com (GShutdown Team) Home-page: http://gshutdown.tuxfamily.org Platforms: Linux Copying-policy: GPL End gshutdown-0.2/COPYING.lgpl0000644000175000017500000006354110610253304012311 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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.1 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! gshutdown-0.2/src/0000777000175000017500000000000010637512704011176 500000000000000gshutdown-0.2/src/Makefile.am0000644000175000017500000000146710610253303013142 00000000000000INCLUDES = \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @PACKAGE_CFLAGS@ bin_PROGRAMS = gshutdown gshutdown_SOURCES = \ args.c args.h \ debug.c debug.h \ binreloc.c binreloc.h \ detectwm.c detectwm.h \ values.c values.h \ callback.c callback.h \ callback_main_window.c callback_main_window.h \ misc.c misc.h \ timer.c timer.h \ action.c action.h \ gui.c gui.h \ main.c main.h \ gdm.c gdm.h \ pconfirm.c pconfirm.h \ bacon.c bacon.h \ eggtrayicon.c eggtrayicon.h gshutdown_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) gshutdown_LDFLAGS = -Wl,-export-dynamic sharedir = $(pkgdatadir) share_DATA = tray_icon2.png tray_icon.png gshutdown.png clock.png gshutdown.glade Pixmapsdir = $(datadir)/pixmaps Pixmaps_DATA = gshutdown.png EXTRA_DIST = $(share_DATA) gshutdown-0.2/src/Makefile.in0000644000175000017500000004172710637511527013174 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ bin_PROGRAMS = gshutdown$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/binreloc.m4 \ $(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 = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(Pixmapsdir)" \ "$(DESTDIR)$(sharedir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_gshutdown_OBJECTS = args.$(OBJEXT) debug.$(OBJEXT) \ binreloc.$(OBJEXT) detectwm.$(OBJEXT) values.$(OBJEXT) \ callback.$(OBJEXT) callback_main_window.$(OBJEXT) \ misc.$(OBJEXT) timer.$(OBJEXT) action.$(OBJEXT) gui.$(OBJEXT) \ main.$(OBJEXT) gdm.$(OBJEXT) pconfirm.$(OBJEXT) \ bacon.$(OBJEXT) eggtrayicon.$(OBJEXT) gshutdown_OBJECTS = $(am_gshutdown_OBJECTS) am__DEPENDENCIES_1 = gshutdown_DEPENDENCIES = $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(gshutdown_SOURCES) DIST_SOURCES = $(gshutdown_SOURCES) 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 = `echo $$p | sed -e 's|^.*/||'`; PixmapsDATA_INSTALL = $(INSTALL_DATA) shareDATA_INSTALL = $(INSTALL_DATA) DATA = $(Pixmaps_DATA) $(share_DATA) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINRELOC_CFLAGS = @BINRELOC_CFLAGS@ BINRELOC_LIBS = @BINRELOC_LIBS@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 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@ 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@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = \ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ @PACKAGE_CFLAGS@ gshutdown_SOURCES = \ args.c args.h \ debug.c debug.h \ binreloc.c binreloc.h \ detectwm.c detectwm.h \ values.c values.h \ callback.c callback.h \ callback_main_window.c callback_main_window.h \ misc.c misc.h \ timer.c timer.h \ action.c action.h \ gui.c gui.h \ main.c main.h \ gdm.c gdm.h \ pconfirm.c pconfirm.h \ bacon.c bacon.h \ eggtrayicon.c eggtrayicon.h gshutdown_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) gshutdown_LDFLAGS = -Wl,-export-dynamic sharedir = $(pkgdatadir) share_DATA = tray_icon2.png tray_icon.png gshutdown.png clock.png gshutdown.glade Pixmapsdir = $(datadir)/pixmaps Pixmaps_DATA = gshutdown.png EXTRA_DIST = $(share_DATA) all: all-am .SUFFIXES: .SUFFIXES: .c .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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/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 install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) gshutdown$(EXEEXT): $(gshutdown_OBJECTS) $(gshutdown_DEPENDENCIES) @rm -f gshutdown$(EXEEXT) $(LINK) $(gshutdown_LDFLAGS) $(gshutdown_OBJECTS) $(gshutdown_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/action.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/args.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bacon.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/binreloc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callback.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/callback_main_window.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debug.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/detectwm.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/eggtrayicon.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gdm.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gui.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pconfirm.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/values.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @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) '$<'` uninstall-info-am: install-PixmapsDATA: $(Pixmaps_DATA) @$(NORMAL_INSTALL) test -z "$(Pixmapsdir)" || $(mkdir_p) "$(DESTDIR)$(Pixmapsdir)" @list='$(Pixmaps_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(PixmapsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(Pixmapsdir)/$$f'"; \ $(PixmapsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(Pixmapsdir)/$$f"; \ done uninstall-PixmapsDATA: @$(NORMAL_UNINSTALL) @list='$(Pixmaps_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(Pixmapsdir)/$$f'"; \ rm -f "$(DESTDIR)$(Pixmapsdir)/$$f"; \ done install-shareDATA: $(share_DATA) @$(NORMAL_INSTALL) test -z "$(sharedir)" || $(mkdir_p) "$(DESTDIR)$(sharedir)" @list='$(share_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(shareDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sharedir)/$$f'"; \ $(shareDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sharedir)/$$f"; \ done uninstall-shareDATA: @$(NORMAL_UNINSTALL) @list='$(share_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(sharedir)/$$f'"; \ rm -f "$(DESTDIR)$(sharedir)/$$f"; \ done 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; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && 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)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 $(PROGRAMS) $(DATA) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(Pixmapsdir)" "$(DESTDIR)$(sharedir)"; 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: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_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-binPROGRAMS clean-generic 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 info: info-am info-am: install-data-am: install-PixmapsDATA install-shareDATA install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: 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 pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-PixmapsDATA uninstall-binPROGRAMS \ uninstall-info-am uninstall-shareDATA .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-generic distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-PixmapsDATA install-am \ install-binPROGRAMS install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-shareDATA install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ ps ps-am tags uninstall uninstall-PixmapsDATA uninstall-am \ uninstall-binPROGRAMS uninstall-info-am uninstall-shareDATA # 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: gshutdown-0.2/src/args.c0000644000175000017500000003106610610253303012204 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include #include #include "main.h" #include "debug.h" #include "timer.h" #include "misc.h" #include "gui.h" #include "args.h" #include "callback.h" static gboolean date_string_to_values(gchar *, gboolean); /* * Handle all arguments. * * Return TRUE on error. */ gboolean handle_arguments(int argc, char **argv) { gchar *action = NULL; gchar *launch_at = NULL; gchar *launch_from_now = NULL; gboolean launch_now = FALSE; gboolean minimize_window = FALSE; /* Minimiser la fenêtre par défaut TODO mettre dans un fichier à part avec le traitement des arguments */ gboolean ctx_ok; /* arguments parsing is ok ? */ GOptionContext *ctx; GOptionEntry options[] = { {"launch-after-delay", 'h', 0, G_OPTION_ARG_STRING, &launch_from_now, _("Launch the action after a certain delay : HH:MM"), NULL}, {"launch-at", 'a', 0, G_OPTION_ARG_STRING, &launch_at, _("Launch the action at : HH:MM YYYY/MM/DD"), NULL}, {"launch-now", 'n', 0, G_OPTION_ARG_NONE, &launch_now, _("Launch the action now."), NULL}, {"action", 'c', 0, G_OPTION_ARG_STRING, &action, _("Available actions are : \"shutdown\", \"reboot\" or \"logout\""), NULL}, {"minimize", 'm', 0, G_OPTION_ARG_NONE, &minimize_window, _("Minimize the window at startup."), NULL}, {NULL} }; /* Initialisation of g_option */ ctx = g_option_context_new(NULL); g_option_context_add_main_entries(ctx, options, NULL); ctx_ok = g_option_context_parse(ctx, &argc, &argv, NULL); g_option_context_free(ctx); /* First errors */ if(ctx_ok == FALSE) { fprintf(stderr, _("Error when parsing the arguments...\n")); quit(QUIT_FAILURE); } { gint launch_counter = 0; if(launch_from_now != NULL) launch_counter++; if(launch_at != NULL) launch_counter++; if(launch_now != FALSE) launch_counter++; if(launch_counter > 2) { fprintf(stderr, _("You cannot call --launch-after-delay, --launch-at or --launch-now at the same time.\n")); quit(QUIT_FAILURE); } } /* Minimize the window */ if(minimize_window == TRUE) { if(gui_systray_icon_is_showed()) gtk_widget_hide(main_window); else gtk_window_iconify(GTK_WINDOW(main_window)); } /* action */ if(action != NULL) { if(g_str_equal(action, "shutdown")) gtk_combo_box_set_active(combo_action, 0); else if(g_str_equal(action, "reboot")) gtk_combo_box_set_active(combo_action, 1); else if(g_str_equal(action, "logout")) gtk_combo_box_set_active(combo_action, 2); else { fprintf(stderr, _("The authorized values in --action option are : shutdown, reboot or logout\n")); return TRUE; } } /* Launch at/now/from now */ if(launch_now == TRUE) { gtk_combo_box_set_active(combo_time_type, 2); action_run(values.current_action); } else if(launch_at != NULL || launch_from_now != NULL) { gint combo_value = 1; gchar *value = launch_from_now; gchar *option = "--launch-after-delay"; gboolean time_only = TRUE; /* Only the time is parsed */ if(launch_at != NULL) { combo_value = 0; value = launch_at; option = "--launch-at"; time_only = FALSE; } gtk_combo_box_set_active(combo_time_type, combo_value); if(date_string_to_values(value, time_only) == TRUE) { fprintf(stderr, _("Error on parsing the content of %s : \"%s\".\n"), option, value); quit(QUIT_FAILURE); } on_btn_start_clicked(btn_start, NULL); } /* Free */ g_free(launch_at); g_free(launch_from_now); g_free(action); return FALSE; } /* date_string_to_values() * * Convert string format to values structure. If time_only == TRUE * only the time is parsed. * * Format: HH:MM YYYY/MM/DD */ static gboolean date_string_to_values(gchar *string, gboolean time_only) { gchar **list; gboolean result = FALSE; /* special date */ gchar *tomorrow[] = {"tomorrow", "demain"}; gint tomorrow_size = 2; /* In the time parsing, of this variable is true, the function * can accept a time format like this : "MM" else than "HH:MM". */ gboolean accept_minute_alone = time_only; /* valid() {{{2 * * Generic tester used by valid_time() * and valid_date(). * * TODO message d'erreur détaillé pour que * l'utilisateur sache quels sont ses * erreurs. * * type : * 0 = valid time * 1 = valid date */ gboolean valid(gchar *string, gchar type) { gchar *string_p; /* useful pointer */ gchar **list; /* contain the splits of 'string' */ gchar *separator; /* separator. e.g ":" for time */ gint value[3]; /* values of string (splited) */ size_t maximum_len_size; /* size of maximum_len[] table */ size_t maximum_len[3] = {4, 2, 2}; if(type == 0) { /* time */ separator = ":"; maximum_len_size = 2; } else { /* date */ gint i; separator = "/"; maximum_len_size = 3; /* special strings */ for(i = 0; i < tomorrow_size; i++) { if(g_str_equal(tomorrow[i], string) == TRUE) return TRUE; } } /* All characters are conform ? */ string_p = string; while(*string_p != 0) { if(!g_ascii_isdigit(*string_p) && *string_p != *separator) return FALSE; string_p++; } /* Split and test the numbers */ list = g_strsplit(string, separator, 0); if(list != NULL && g_strv_length(list) > 1) { gint i; gboolean valid = TRUE; for(i = 0; i < maximum_len_size; i++) { if(list[i] == NULL || strlen(list[i]) > maximum_len[i]) { valid = FALSE; break; } value[i] = atoi(list[i]); } g_strfreev(list); /* test values */ if(valid == TRUE) { /* time */ if(type == 0) { for(i = 0; i < 2; i++) if(value[i] < 0 || value[i] > 59) valid = FALSE; } /* date */ else { gint nb_days; gint year = value[0]; gint month = value[1]; gint day = value[2]; /* month */ if(month > 12 || month < 1) valid = FALSE; /* year */ else if(year < 1970) valid = FALSE; /* day */ else { nb_days = nb_days_in_month(month - 1, year); if(day > nb_days || day < 1) valid = FALSE; } } } return valid; } /* An error in time because it's not separated with ":" ? * It's ok, if accept_minute_alone is TRUE */ else if(accept_minute_alone == TRUE) { /* Test if the string contain only a number */ gchar *p_string = string; while(*p_string != 0) { if(!g_ascii_isdigit(*p_string)) return FALSE; /* Error ! */ else p_string++; } return TRUE; /* Good, it's the minute ! */ } return FALSE; } /* valid() }}}2 */ /* Valid time and date {{{2 */ /* * Function to test if string is a time * Format: HH:MM. */ gboolean valid_time(gchar *string) { return valid(string, 0); } /* * Function to test if 'string' is a date. * * Format: YYYY/MM/DD * * NB: it's better to use g_strstrip() with * string before calling this function. */ gboolean valid_date(gchar *string) { return valid(string, 1); } /* }}}2 */ /* Extract time and date {{{2 */ /* * Attention, you must verify 'element' with valid_time() * before calling this function. */ void extract_time_string_to_gui(const gchar *element) { gchar **sub_element = g_strsplit(element, ":", 2); if(sub_element != NULL && g_strv_length(sub_element) > 1) { gtk_spin_button_set_value(spin_hour, atoi(sub_element[0])); gtk_spin_button_set_value(spin_minute, atoi(sub_element[1])); g_strfreev(sub_element); } else if(accept_minute_alone == TRUE) { gtk_spin_button_set_value(spin_hour, 0); gtk_spin_button_set_value(spin_minute, atoi(element)); } debug_printf("The time is now %s\n", element); } /* * Attention, you muse verify 'element' with valid_date() * before calling this function. */ void extract_date_string_to_gui(const gchar *element) { gchar **sub_element; gint i; /* tomorrow */ for(i = 0; i < tomorrow_size; i++) { if(g_str_equal(element, tomorrow[i]) == TRUE) { guint year, month, day; guint nb_days; gtk_calendar_get_date(calendar, &year, &month, &day); /* TODO Incrémenter le jour avec une fonction plus haut niveau ? */ nb_days = nb_days_in_month(month, year); if(day >= nb_days) { month++; if(month > 11) { month = 0; year++; } day = 1; } else day++; gtk_calendar_select_month(calendar, month, year); gtk_calendar_select_day(calendar, day); return; } } /* Handle format YYYY/MM/DD */ sub_element = g_strsplit(element, "/", 3); if(sub_element != NULL) { gint year = atoi(sub_element[0]); gint month = atoi(sub_element[1]); gint day = atoi(sub_element[2]); gtk_calendar_select_month(calendar, month - 1, year); gtk_calendar_select_day(calendar, day); g_strfreev(sub_element); } debug_printf("The time is now %s\n", element); } /* }}}2 */ /* Split all elements (time or date) available in 'string' */ list = g_strsplit(string, " ", 0); if(list != NULL) { char **list_element = list; gint nb_element_handled = 0; while(*list_element != NULL && nb_element_handled < 2) { char *element = g_strstrip(*list_element); /* ignore empty string */ if(element[0] == 0) { list_element++; continue; } /* it's a date */ else if(time_only == FALSE && valid_date(element)) { extract_date_string_to_gui(element); nb_element_handled++; } /* it's a time */ else if(valid_time(element)) { extract_time_string_to_gui(element); nb_element_handled++; } /* Error */ else { /* Error message TODO */ result = TRUE; break; } list_element++; } g_strfreev(list); } return result; /* Error */ } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/args.h0000644000175000017500000000164510610253303012211 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ gboolean handle_arguments(int argc, char **argv); /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/debug.c0000644000175000017500000000224110610253302012326 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include #include #include "debug.h" #ifdef DEBUG /* * Show a debug message, if DEBUG macro is defined. */ void debug_printf(const char *fmt, ...) { va_list ap; fprintf(stderr, "DEBUG: "); va_start(ap, fmt); vfprintf(stderr, fmt, ap); va_end(ap); } #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/debug.h0000644000175000017500000000201610610253302012333 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_DEBUG__ #define __GSHUTDOWN_DEBUG__ #ifndef DEBUG #define debug_printf #else void debug_printf(const char *fmt, ...); #endif #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/binreloc.c0000644000175000017500000004557410610253303013056 00000000000000/* * BinReloc - a library for creating relocatable executables * Written by: Hongli Lai * http://autopackage.org/ * * This source code is public domain. You can relicense this code * under whatever license you want. * * See http://autopackage.org/docs/binreloc/ for * more information and how to use this. */ #ifndef __BINRELOC_C__ #define __BINRELOC_C__ #ifdef ENABLE_BINRELOC #include #include #include #endif /* ENABLE_BINRELOC */ #include #include #include #include #include "binreloc.h" G_BEGIN_DECLS /** @internal * Find the canonical filename of the executable. Returns the filename * (which must be freed) or NULL on error. If the parameter 'error' is * not NULL, the error code will be stored there, if an error occured. */ static char * _br_find_exe (GbrInitError *error) { #ifndef ENABLE_BINRELOC if (error) *error = GBR_INIT_ERROR_DISABLED; return NULL; #else char *path, *path2, *line, *result; size_t buf_size; ssize_t size; struct stat stat_buf; FILE *f; /* Read from /proc/self/exe (symlink) */ if (sizeof (path) > SSIZE_MAX) buf_size = SSIZE_MAX - 1; else buf_size = PATH_MAX - 1; path = (char *) g_try_malloc (buf_size); if (path == NULL) { /* Cannot allocate memory. */ if (error) *error = GBR_INIT_ERROR_NOMEM; return NULL; } path2 = (char *) g_try_malloc (buf_size); if (path2 == NULL) { /* Cannot allocate memory. */ if (error) *error = GBR_INIT_ERROR_NOMEM; g_free (path); return NULL; } strncpy (path2, "/proc/self/exe", buf_size - 1); while (1) { int i; size = readlink (path2, path, buf_size - 1); if (size == -1) { /* Error. */ g_free (path2); break; } /* readlink() success. */ path[size] = '\0'; /* Check whether the symlink's target is also a symlink. * We want to get the final target. */ i = stat (path, &stat_buf); if (i == -1) { /* Error. */ g_free (path2); break; } /* stat() success. */ if (!S_ISLNK (stat_buf.st_mode)) { /* path is not a symlink. Done. */ g_free (path2); return path; } /* path is a symlink. Continue loop and resolve this. */ strncpy (path, path2, buf_size - 1); } /* readlink() or stat() failed; this can happen when the program is * running in Valgrind 2.2. Read from /proc/self/maps as fallback. */ buf_size = PATH_MAX + 128; line = (char *) g_try_realloc (path, buf_size); if (line == NULL) { /* Cannot allocate memory. */ g_free (path); if (error) *error = GBR_INIT_ERROR_NOMEM; return NULL; } f = fopen ("/proc/self/maps", "r"); if (f == NULL) { g_free (line); if (error) *error = GBR_INIT_ERROR_OPEN_MAPS; return NULL; } /* The first entry should be the executable name. */ result = fgets (line, (int) buf_size, f); if (result == NULL) { fclose (f); g_free (line); if (error) *error = GBR_INIT_ERROR_READ_MAPS; return NULL; } /* Get rid of newline character. */ buf_size = strlen (line); if (buf_size <= 0) { /* Huh? An empty string? */ fclose (f); g_free (line); if (error) *error = GBR_INIT_ERROR_INVALID_MAPS; return NULL; } if (line[buf_size - 1] == 10) line[buf_size - 1] = 0; /* Extract the filename; it is always an absolute path. */ path = strchr (line, '/'); /* Sanity check. */ if (strstr (line, " r-xp ") == NULL || path == NULL) { fclose (f); g_free (line); if (error) *error = GBR_INIT_ERROR_INVALID_MAPS; return NULL; } path = g_strdup (path); g_free (line); fclose (f); return path; #endif /* ENABLE_BINRELOC */ } /** @internal * Find the canonical filename of the executable which owns symbol. * Returns a filename which must be freed, or NULL on error. */ static char * _br_find_exe_for_symbol (const void *symbol, GbrInitError *error) { #ifndef ENABLE_BINRELOC if (error) *error = GBR_INIT_ERROR_DISABLED; return (char *) NULL; #else #define SIZE PATH_MAX + 100 FILE *f; size_t address_string_len; char *address_string, line[SIZE], *found; if (symbol == NULL) return (char *) NULL; f = fopen ("/proc/self/maps", "r"); if (f == NULL) return (char *) NULL; address_string_len = 4; address_string = (char *) g_try_malloc (address_string_len); found = (char *) NULL; while (!feof (f)) { char *start_addr, *end_addr, *end_addr_end, *file; void *start_addr_p, *end_addr_p; size_t len; if (fgets (line, SIZE, f) == NULL) break; /* Sanity check. */ if (strstr (line, " r-xp ") == NULL || strchr (line, '/') == NULL) continue; /* Parse line. */ start_addr = line; end_addr = strchr (line, '-'); file = strchr (line, '/'); /* More sanity check. */ if (!(file > end_addr && end_addr != NULL && end_addr[0] == '-')) continue; end_addr[0] = '\0'; end_addr++; end_addr_end = strchr (end_addr, ' '); if (end_addr_end == NULL) continue; end_addr_end[0] = '\0'; len = strlen (file); if (len == 0) continue; if (file[len - 1] == '\n') file[len - 1] = '\0'; /* Get rid of "(deleted)" from the filename. */ len = strlen (file); if (len > 10 && strcmp (file + len - 10, " (deleted)") == 0) file[len - 10] = '\0'; /* I don't know whether this can happen but better safe than sorry. */ len = strlen (start_addr); if (len != strlen (end_addr)) continue; /* Transform the addresses into a string in the form of 0xdeadbeef, * then transform that into a pointer. */ if (address_string_len < len + 3) { address_string_len = len + 3; address_string = (char *) g_try_realloc (address_string, address_string_len); } memcpy (address_string, "0x", 2); memcpy (address_string + 2, start_addr, len); address_string[2 + len] = '\0'; sscanf (address_string, "%p", &start_addr_p); memcpy (address_string, "0x", 2); memcpy (address_string + 2, end_addr, len); address_string[2 + len] = '\0'; sscanf (address_string, "%p", &end_addr_p); if (symbol >= start_addr_p && symbol < end_addr_p) { found = file; break; } } g_free (address_string); fclose (f); if (found == NULL) return (char *) NULL; else return g_strdup (found); #endif /* ENABLE_BINRELOC */ } static gchar *exe = NULL; static void set_gerror (GError **error, GbrInitError errcode); /** Initialize the BinReloc library (for applications). * * This function must be called before using any other BinReloc functions. * It attempts to locate the application's canonical filename. * * @note If you want to use BinReloc for a library, then you should call * gbr_init_lib() instead. * * @param error If BinReloc failed to initialize, then the error report will * be stored in this variable. Set to NULL if you don't want an * error report. See the #GbrInitError for a list of error * codes. * * @returns TRUE on success, FALSE if BinReloc failed to initialize. */ gboolean gbr_init (GError **error) { GbrInitError errcode; /* Locate the application's filename. */ exe = _br_find_exe (&errcode); if (exe != NULL) /* Success! */ return TRUE; else { /* Failed :-( */ set_gerror (error, errcode); return FALSE; } } /** Initialize the BinReloc library (for libraries). * * This function must be called before using any other BinReloc functions. * It attempts to locate the calling library's canonical filename. * * @note The BinReloc source code MUST be included in your library, or this * function won't work correctly. * * @returns TRUE on success, FALSE if a filename cannot be found. */ gboolean gbr_init_lib (GError **error) { GbrInitError errcode; exe = _br_find_exe_for_symbol ((const void *) "", &errcode); if (exe != NULL) /* Success! */ return TRUE; else { /* Failed :-( */ set_gerror (error, errcode); return exe != NULL; } } static void set_gerror (GError **error, GbrInitError errcode) { gchar *error_message; if (error == NULL) return; switch (errcode) { case GBR_INIT_ERROR_NOMEM: error_message = "Cannot allocate memory."; break; case GBR_INIT_ERROR_OPEN_MAPS: error_message = "Unable to open /proc/self/maps for reading."; break; case GBR_INIT_ERROR_READ_MAPS: error_message = "Unable to read from /proc/self/maps."; break; case GBR_INIT_ERROR_INVALID_MAPS: error_message = "The file format of /proc/self/maps is invalid."; break; case GBR_INIT_ERROR_DISABLED: error_message = "Binary relocation support is disabled."; break; default: error_message = "Unknown error."; break; }; g_set_error (error, g_quark_from_static_string ("GBinReloc"), errcode, "%s", error_message); } /** Find the canonical filename of the current application. * * @param default_exe A default filename which will be used as fallback. * @returns A string containing the application's canonical filename, * which must be freed when no longer necessary. If BinReloc is * not initialized, or if the initialization function failed, * then a copy of default_exe will be returned. If default_exe * is NULL, then NULL will be returned. */ gchar * gbr_find_exe (const gchar *default_exe) { if (exe == NULL) { /* BinReloc is not initialized. */ if (default_exe != NULL) return g_strdup (default_exe); else return NULL; } return g_strdup (exe); } /** Locate the directory in which the current application is installed. * * The prefix is generated by the following pseudo-code evaluation: * \code * dirname(exename) * \endcode * * @param default_dir A default directory which will used as fallback. * @return A string containing the directory, which must be freed when no * longer necessary. If BinReloc is not initialized, or if the * initialization function failed, then a copy of default_dir * will be returned. If default_dir is NULL, then NULL will be * returned. */ gchar * gbr_find_exe_dir (const gchar *default_dir) { if (exe == NULL) { /* BinReloc not initialized. */ if (default_dir != NULL) return g_strdup (default_dir); else return NULL; } return g_path_get_dirname (exe); } /** Locate the prefix in which the current application is installed. * * The prefix is generated by the following pseudo-code evaluation: * \code * dirname(dirname(exename)) * \endcode * * @param default_prefix A default prefix which will used as fallback. * @return A string containing the prefix, which must be freed when no * longer necessary. If BinReloc is not initialized, or if the * initialization function failed, then a copy of default_prefix * will be returned. If default_prefix is NULL, then NULL will be * returned. */ gchar * gbr_find_prefix (const gchar *default_prefix) { gchar *dir1, *dir2; if (exe == NULL) { /* BinReloc not initialized. */ if (default_prefix != NULL) return g_strdup (default_prefix); else return NULL; } dir1 = g_path_get_dirname (exe); dir2 = g_path_get_dirname (dir1); g_free (dir1); return dir2; } /** Locate the application's binary folder. * * The path is generated by the following pseudo-code evaluation: * \code * prefix + "/bin" * \endcode * * @param default_bin_dir A default path which will used as fallback. * @return A string containing the bin folder's path, which must be freed when * no longer necessary. If BinReloc is not initialized, or if the * initialization function failed, then a copy of default_bin_dir will * be returned. If default_bin_dir is NULL, then NULL will be returned. */ gchar * gbr_find_bin_dir (const gchar *default_bin_dir) { gchar *prefix, *dir; prefix = gbr_find_prefix (NULL); if (prefix == NULL) { /* BinReloc not initialized. */ if (default_bin_dir != NULL) return g_strdup (default_bin_dir); else return NULL; } dir = g_build_filename (prefix, "bin", NULL); g_free (prefix); return dir; } /** Locate the application's superuser binary folder. * * The path is generated by the following pseudo-code evaluation: * \code * prefix + "/sbin" * \endcode * * @param default_sbin_dir A default path which will used as fallback. * @return A string containing the sbin folder's path, which must be freed when * no longer necessary. If BinReloc is not initialized, or if the * initialization function failed, then a copy of default_sbin_dir will * be returned. If default_bin_dir is NULL, then NULL will be returned. */ gchar * gbr_find_sbin_dir (const gchar *default_sbin_dir) { gchar *prefix, *dir; prefix = gbr_find_prefix (NULL); if (prefix == NULL) { /* BinReloc not initialized. */ if (default_sbin_dir != NULL) return g_strdup (default_sbin_dir); else return NULL; } dir = g_build_filename (prefix, "sbin", NULL); g_free (prefix); return dir; } /** Locate the application's data folder. * * The path is generated by the following pseudo-code evaluation: * \code * prefix + "/share" * \endcode * * @param default_data_dir A default path which will used as fallback. * @return A string containing the data folder's path, which must be freed when * no longer necessary. If BinReloc is not initialized, or if the * initialization function failed, then a copy of default_data_dir * will be returned. If default_data_dir is NULL, then NULL will be * returned. */ gchar * gbr_find_data_dir (const gchar *default_data_dir) { gchar *prefix, *dir; prefix = gbr_find_prefix (NULL); if (prefix == NULL) { /* BinReloc not initialized. */ if (default_data_dir != NULL) return g_strdup (default_data_dir); else return NULL; } dir = g_build_filename (prefix, "share", NULL); g_free (prefix); return dir; } /** Locate the application's localization folder. * * The path is generated by the following pseudo-code evaluation: * \code * prefix + "/share/locale" * \endcode * * @param default_locale_dir A default path which will used as fallback. * @return A string containing the localization folder's path, which must be freed when * no longer necessary. If BinReloc is not initialized, or if the * initialization function failed, then a copy of default_locale_dir will be returned. * If default_locale_dir is NULL, then NULL will be returned. */ gchar * gbr_find_locale_dir (const gchar *default_locale_dir) { gchar *data_dir, *dir; data_dir = gbr_find_data_dir (NULL); if (data_dir == NULL) { /* BinReloc not initialized. */ if (default_locale_dir != NULL) return g_strdup (default_locale_dir); else return NULL; } dir = g_build_filename (data_dir, "locale", NULL); g_free (data_dir); return dir; } /** Locate the application's library folder. * * The path is generated by the following pseudo-code evaluation: * \code * prefix + "/lib" * \endcode * * @param default_lib_dir A default path which will used as fallback. * @return A string containing the library folder's path, which must be freed when * no longer necessary. If BinReloc is not initialized, or if the * initialization function failed, then a copy of default_lib_dir will be returned. * If default_lib_dir is NULL, then NULL will be returned. */ gchar * gbr_find_lib_dir (const gchar *default_lib_dir) { gchar *prefix, *dir; prefix = gbr_find_prefix (NULL); if (prefix == NULL) { /* BinReloc not initialized. */ if (default_lib_dir != NULL) return g_strdup (default_lib_dir); else return NULL; } dir = g_build_filename (prefix, "lib", NULL); g_free (prefix); return dir; } /** Locate the application's libexec folder. * * The path is generated by the following pseudo-code evaluation: * \code * prefix + "/libexec" * \endcode * * @param default_libexec_dir A default path which will used as fallback. * @return A string containing the libexec folder's path, which must be freed when * no longer necessary. If BinReloc is not initialized, or if the initialization * function failed, then a copy of default_libexec_dir will be returned. * If default_libexec_dir is NULL, then NULL will be returned. */ gchar * gbr_find_libexec_dir (const gchar *default_libexec_dir) { gchar *prefix, *dir; prefix = gbr_find_prefix (NULL); if (prefix == NULL) { /* BinReloc not initialized. */ if (default_libexec_dir != NULL) return g_strdup (default_libexec_dir); else return NULL; } dir = g_build_filename (prefix, "libexec", NULL); g_free (prefix); return dir; } /** Locate the application's configuration files folder. * * The path is generated by the following pseudo-code evaluation: * \code * prefix + "/etc" * \endcode * * @param default_etc_dir A default path which will used as fallback. * @return A string containing the etc folder's path, which must be freed when * no longer necessary. If BinReloc is not initialized, or if the initialization * function failed, then a copy of default_etc_dir will be returned. * If default_etc_dir is NULL, then NULL will be returned. */ gchar * gbr_find_etc_dir (const gchar *default_etc_dir) { gchar *prefix, *dir; prefix = gbr_find_prefix (NULL); if (prefix == NULL) { /* BinReloc not initialized. */ if (default_etc_dir != NULL) return g_strdup (default_etc_dir); else return NULL; } dir = g_build_filename (prefix, "etc", NULL); g_free (prefix); return dir; } G_END_DECLS #endif /* __BINRELOC_C__ */ /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/binreloc.h0000644000175000017500000000512710610253303013051 00000000000000/* * BinReloc - a library for creating relocatable executables * Written by: Hongli Lai * http://autopackage.org/ * * This source code is public domain. You can relicense this code * under whatever license you want. * * See http://autopackage.org/docs/binreloc/ for * more information and how to use this. */ #ifndef __BINRELOC_H__ #define __BINRELOC_H__ #include G_BEGIN_DECLS /** These error codes can be returned by br_init(), br_init_lib(), gbr_init() or gbr_init_lib(). */ typedef enum { /** Cannot allocate memory. */ GBR_INIT_ERROR_NOMEM, /** Unable to open /proc/self/maps; see errno for details. */ GBR_INIT_ERROR_OPEN_MAPS, /** Unable to read from /proc/self/maps; see errno for details. */ GBR_INIT_ERROR_READ_MAPS, /** The file format of /proc/self/maps is invalid; kernel bug? */ GBR_INIT_ERROR_INVALID_MAPS, /** BinReloc is disabled (the ENABLE_BINRELOC macro is not defined). */ GBR_INIT_ERROR_DISABLED } GbrInitError; #ifndef BINRELOC_RUNNING_DOXYGEN /* Mangle symbol names to avoid symbol collisions with other ELF objects. */ #define gbr_find_exe QOXW83320890263446_gbr_find_exe #define gbr_find_exe_dir QOXW83320890263446_gbr_find_exe_dir #define gbr_find_prefix QOXW83320890263446_gbr_find_prefix #define gbr_find_bin_dir QOXW83320890263446_gbr_find_bin_dir #define gbr_find_sbin_dir QOXW83320890263446_gbr_find_sbin_dir #define gbr_find_data_dir QOXW83320890263446_gbr_find_data_dir #define gbr_find_locale_dir QOXW83320890263446_gbr_find_locale_dir #define gbr_find_lib_dir QOXW83320890263446_gbr_find_lib_dir #define gbr_find_libexec_dir QOXW83320890263446_gbr_find_libexec_dir #define gbr_find_etc_dir QOXW83320890263446_gbr_find_etc_dir #endif gboolean gbr_init (GError **error); gboolean gbr_init_lib (GError **error); gchar *gbr_find_exe (const gchar *default_exe); gchar *gbr_find_exe_dir (const gchar *default_dir); gchar *gbr_find_prefix (const gchar *default_prefix); gchar *gbr_find_bin_dir (const gchar *default_bin_dir); gchar *gbr_find_sbin_dir (const gchar *default_sbin_dir); gchar *gbr_find_data_dir (const gchar *default_data_dir); gchar *gbr_find_locale_dir (const gchar *default_locale_dir); gchar *gbr_find_lib_dir (const gchar *default_lib_dir); gchar *gbr_find_libexec_dir (const gchar *default_libexec_dir); gchar *gbr_find_etc_dir (const gchar *default_etc_dir); G_END_DECLS #endif /* __BINRELOC_H__ */ /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/detectwm.c0000644000175000017500000002221110610253303013054 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include #include #include #include #include #include #include #include #define MAX_PROPERTY_VALUE_LEN 4096 static gchar *wm_get_name(Display *disp); /* static int wm_info(Display *disp); */ static gchar *get_output_str(gchar *str, gboolean is_utf8); static void init_charset(void); static gchar *get_property(Display *disp, Window win, Atom xa_prop_type, gchar *prop_name, unsigned long *size); static struct { int verbose; int force_utf8; int show_class; int show_pid; int show_geometry; int match_by_id; int match_by_cls; int full_window_title_match; int wa_desktop_titles_invalid_utf8; char *param_window; char *param; } options; static gboolean envir_utf8; void p_verbose(const char *format, ...) { va_list ap; if(!options.verbose) return; va_start(ap, format); vfprintf(stderr, format, ap); va_end(ap); } /* * Return the name of the Window Manager. * Return NULL if it's not detected. * * NB: It must be freed by g_free() */ gchar *detect_window_manager() { gchar *name; Display *disp; init_charset(); if(!(disp = XOpenDisplay(NULL))) return NULL; name = wm_get_name(disp); XCloseDisplay(disp); return name; } #if 0 int main(int argc, char **argv) { int ret = EXIT_SUCCESS; Display *disp; /* necessary to make g_get_charset() and g_locale_*() work */ setlocale(LC_ALL, ""); init_charset(); if(!(disp = XOpenDisplay(NULL))) { fputs("Cannot open display.\n", stderr); return EXIT_FAILURE; } ret = wm_info(disp); XCloseDisplay(disp); return ret; } #endif /* * Return the name of the window manager. * NULL on error. */ static gchar *wm_get_name(Display *disp) { Window *sup_window = NULL; gchar *wm_name = NULL; gboolean name_is_utf8 = TRUE; gchar *name_out; if(!(sup_window = (Window *)get_property(disp, DefaultRootWindow(disp), XA_WINDOW, "_NET_SUPPORTING_WM_CHECK", NULL))) if(!(sup_window = (Window *)get_property(disp, DefaultRootWindow(disp), XA_CARDINAL, "_WIN_SUPPORTING_WM_CHECK", NULL))) return NULL; /* WM_NAME */ if(!(wm_name = get_property(disp, *sup_window, XInternAtom(disp, "UTF8_STRING", False), "_NET_WM_NAME", NULL))) return NULL; name_out = get_output_str(wm_name, name_is_utf8); g_free(sup_window); g_free(wm_name); return name_out; } static void init_charset(void) { const gchar *charset; /* unused */ gchar *lang = getenv("LANG") ? g_ascii_strup(getenv("LANG"), -1) : NULL; gchar *lc_ctype = getenv("LC_CTYPE") ? g_ascii_strup(getenv("LC_CTYPE"), -1) : NULL; /* this glib function doesn't work on my system ... */ envir_utf8 = g_get_charset(&charset); /* ... therefore we will examine the environment variables */ if(lc_ctype &&(strstr(lc_ctype, "UTF8") || strstr(lc_ctype, "UTF-8"))) envir_utf8 = TRUE; else if(lang &&(strstr(lang, "UTF8") || strstr(lang, "UTF-8"))) envir_utf8 = TRUE; g_free(lang); g_free(lc_ctype); if(options.force_utf8) envir_utf8 = TRUE; p_verbose("envir_utf8: %d\n", envir_utf8); } #if 0 static int wm_info(Display *disp) { Window *sup_window = NULL; gchar *wm_name = NULL; gchar *wm_class = NULL; unsigned long *wm_pid = NULL; unsigned long *showing_desktop = NULL; gboolean name_is_utf8 = TRUE; gchar *name_out; gchar *class_out; if(!(sup_window =(Window *)get_property(disp, DefaultRootWindow(disp), XA_WINDOW, "_NET_SUPPORTING_WM_CHECK", NULL))) { if(!(sup_window =(Window *)get_property(disp, DefaultRootWindow(disp), XA_CARDINAL, "_WIN_SUPPORTING_WM_CHECK", NULL))) { fputs("Cannot get window manager info properties.\n" "(_NET_SUPPORTING_WM_CHECK or _WIN_SUPPORTING_WM_CHECK)\n", stderr); return EXIT_FAILURE; } } /* WM_NAME */ if(!(wm_name = get_property(disp, *sup_window, XInternAtom(disp, "UTF8_STRING", False), "_NET_WM_NAME", NULL))) { name_is_utf8 = FALSE; if(!(wm_name = get_property(disp, *sup_window, XA_STRING, "_NET_WM_NAME", NULL))) { p_verbose("Cannot get name of the window manager (_NET_WM_NAME).\n"); } } name_out = get_output_str(wm_name, name_is_utf8); /* WM_CLASS */ if(!(wm_class = get_property(disp, *sup_window, XInternAtom(disp, "UTF8_STRING", False), "WM_CLASS", NULL))) { name_is_utf8 = FALSE; if(!(wm_class = get_property(disp, *sup_window, XA_STRING, "WM_CLASS", NULL))) { p_verbose("Cannot get class of the window manager (WM_CLASS).\n"); } } class_out = get_output_str(wm_class, name_is_utf8); /* WM_PID */ if(!(wm_pid = (unsigned long *)get_property(disp, *sup_window, XA_CARDINAL, "_NET_WM_PID", NULL))) { p_verbose("Cannot get pid of the window manager (_NET_WM_PID).\n"); } /* _NET_SHOWING_DESKTOP */ if(!(showing_desktop = (unsigned long *)get_property(disp, DefaultRootWindow(disp), XA_CARDINAL, "_NET_SHOWING_DESKTOP", NULL))) { p_verbose("Cannot get the _NET_SHOWING_DESKTOP property.\n"); } /* print out the info */ printf("Name: %s\n", name_out ? name_out : "N/A"); printf("Class: %s\n", class_out ? class_out : "N/A"); if(wm_pid) printf("PID: %lu\n", *wm_pid); else printf("PID: N/A\n"); if(showing_desktop) { printf("Window manager's \"showing the desktop\" mode: %s\n", *showing_desktop == 1 ? "ON" : "OFF"); } else { printf("Window manager's \"showing the desktop\" mode: N/A\n"); } g_free(name_out); g_free(sup_window); g_free(wm_name); g_free(wm_class); g_free(wm_pid); g_free(showing_desktop); return EXIT_SUCCESS; } #endif static gchar *get_property(Display *disp, Window win, Atom xa_prop_type, gchar *prop_name, unsigned long *size) { Atom xa_prop_name; Atom xa_ret_type; int ret_format; unsigned long ret_nitems; unsigned long ret_bytes_after; unsigned long tmp_size; unsigned char *ret_prop; gchar *ret; xa_prop_name = XInternAtom(disp, prop_name, False); /* MAX_PROPERTY_VALUE_LEN / 4 explanation (XGetWindowProperty manpage): * * long_length = Specifies the length in 32-bit multiples of the * data to be retrieved. */ if(XGetWindowProperty(disp, win, xa_prop_name, 0, MAX_PROPERTY_VALUE_LEN / 4, False, xa_prop_type, &xa_ret_type, &ret_format, &ret_nitems, &ret_bytes_after, &ret_prop) != Success) { p_verbose("Cannot get %s property.\n", prop_name); return NULL; } if(xa_ret_type != xa_prop_type) { p_verbose("Invalid type of %s property.\n", prop_name); XFree(ret_prop); return NULL; } /* null terminate the result to make string handling easier */ tmp_size =(ret_format / 8) * ret_nitems; ret = g_malloc(tmp_size + 1); memcpy(ret, ret_prop, tmp_size); ret[tmp_size] = '\0'; if(size) *size = tmp_size; XFree(ret_prop); return ret; } static gchar *get_output_str(gchar *str, gboolean is_utf8) { gchar *out; if(str == NULL) return NULL; if(envir_utf8) { if(is_utf8) out = g_strdup(str); else { if(!(out = g_locale_to_utf8(str, -1, NULL, NULL, NULL))) { p_verbose("Cannot convert string from locale charset to UTF-8.\n"); out = g_strdup(str); } } } else { if(is_utf8) { if(!(out = g_locale_from_utf8(str, -1, NULL, NULL, NULL))) { p_verbose("Cannot convert string from UTF-8 to locale charset.\n"); out = g_strdup(str); } } else out = g_strdup(str); } return out; } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/detectwm.h0000644000175000017500000000176510610253303013074 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_WMDETECT__ #define __GSHUTDOWN_WMDETECT__ #include gchar *detect_window_manager(); #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/values.c0000644000175000017500000004262510610253304012553 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include #include #include #include /* g_build_path */ #include "values.h" #include "gui.h" #include "detectwm.h" #include "gdm.h" #include "debug.h" /* The group name in the configuration file ~/.gshutdown */ #define GROUP_NAME "general" /* Global variables */ struct t_values values; /* Prototypes */ static GKeyFile *load_configuration(); static gboolean save_configuration(GKeyFile *key_file); /* * Detect automatically the Desktop and the * Display manager. */ void values_action_method_autodetect() { const gchar *gdm_session; const gchar *kdm_session; gchar *window_manager = NULL; static gboolean first_call = TRUE; if(first_call == FALSE) return; else first_call = FALSE; /* Default values */ values.detected_display_manager = DISPLAY_MANAGER_NONE; values.detected_desktop = DESKTOP_NONE; /* == DETECTION WITH THE WINDOW MANAGER == */ window_manager = detect_window_manager(); if(window_manager != NULL) { /* GNOME */ if(g_str_equal(window_manager, "Metacity") == TRUE) { values.detected_desktop = DESKTOP_GNOME; debug_printf("Metacity = GNOME !\n"); } /* KDE */ else if(g_str_equal(window_manager, "KWin") == TRUE) { values.detected_desktop = DESKTOP_KDE; debug_printf("KWin = KDE !\n"); } /* XFCE */ else if(g_str_equal(window_manager, "Xfwm4") == TRUE) { values.detected_desktop = DESKTOP_XFCE; debug_printf("Xfwm4 = XFCE !\n"); } #ifdef DEBUG else debug_printf("The Window Manager is not recognized : %s\n", window_manager); #endif g_free(window_manager); } /* == DETECT GDM == */ if(gdm_supports_logout_action(GDM_LOGOUT_ACTION_SHUTDOWN)) { /*TODO it's the best solution to detect GDM ? */ values.detected_display_manager = DISPLAY_MANAGER_GDM; } /* == DETECTION WITH ENVIRONMENT VARIABLE == */ if(values.detected_desktop == DESKTOP_NONE) { const gchar *desktop_session; /* GNOME */ desktop_session = g_getenv("GNOME_DESKTOP_SESSION_ID"); if(desktop_session != NULL && *desktop_session != 0) values.detected_desktop = DESKTOP_GNOME; } /* GDM */ if(values.detected_display_manager == DISPLAY_MANAGER_NONE) { gdm_session = g_getenv("GDMSESSION"); if(gdm_session != NULL && *gdm_session != 0) values.detected_display_manager = DISPLAY_MANAGER_GDM; } /* KDM */ if(values.detected_display_manager == DISPLAY_MANAGER_NONE) { kdm_session = g_getenv("XDM_MANAGED"); if(kdm_session != NULL && *kdm_session != 0) values.detected_display_manager = DISPLAY_MANAGER_KDM; } } /* * Write all variables in the configuration. * * Return TRUE on error. */ gboolean values_save() { gboolean result = FALSE; /* Load the configuration */ GKeyFile *key_file = load_configuration(); /* Change values */ if(key_file) { #define SET_INT(key, value) g_key_file_set_integer(key_file, GROUP_NAME, key, value); #define SET_BOOL(key, value) g_key_file_set_boolean(key_file, GROUP_NAME, key, value); #define SET_STRING(key, value) g_key_file_set_string(key_file, GROUP_NAME, key, value); #define SET_INT_LIST(key, value, length) g_key_file_set_integer_list(key_file, GROUP_NAME, key, value, length); SET_BOOL("show_notifications", values.show_notifications); SET_BOOL("iconify", values.iconify); SET_INT("show_systray_icon", values.systray_icon); SET_BOOL("command_before_action_enabled", values.command_before_action_enabled); SET_STRING("command_before_action", values.command_before_action); SET_INT("action_method", values.action_method) SET_STRING("action_shutdown.command", action_get_command(values.action_shutdown)); SET_STRING("action_restart.command", action_get_command(values.action_restart)); SET_STRING("action_logout.command", action_get_command(values.action_logout)); SET_INT("selected_display_manager", values.selected_display_manager); SET_INT("selected_desktop", values.selected_desktop); SET_INT("time_when_notify_nb", *values.time_when_notify.nb); SET_INT_LIST("time_when_notify_list", values.time_when_notify.time, *values.time_when_notify.nb); #undef SET_INT #undef SET_BOOL #undef SET_STRING #undef SET_INT_LIST } /* Save the configuration */ result = save_configuration(key_file); if(key_file) g_key_file_free(key_file); debug_printf("VALUES SAVED\n"); return result; } /* * Load all variables from the configuration file. * * Return TRUE on error. */ gboolean values_load() { gchar *string; gint integer; /* Load the configuration */ GKeyFile *key_file = load_configuration(); /* Load values */ #define GET_BOOL(key, variable) \ if(key_file != NULL && g_key_file_has_key(key_file, GROUP_NAME, key, NULL) == TRUE) \ variable = g_key_file_get_boolean(key_file, GROUP_NAME, key, NULL); #define GET_INT(key, variable) \ if(key_file != NULL && g_key_file_has_key(key_file, GROUP_NAME, key, NULL) == TRUE) \ variable = g_key_file_get_integer(key_file, GROUP_NAME, key, NULL); #define GET_STRING(key, variable) \ if(key_file != NULL && g_key_file_has_key(key_file, GROUP_NAME, key, NULL) == TRUE) \ variable = g_key_file_get_string(key_file, GROUP_NAME, key, NULL); #define GET_INT_LIST(key, variable, length) \ if(key_file != NULL && g_key_file_has_key(key_file, GROUP_NAME, key, NULL) == TRUE) \ variable = g_key_file_get_integer_list(key_file, GROUP_NAME, key, length , NULL); #define NOTNULL(str) ((str != NULL)?str:"") /* Show notifications */ values.show_notifications = TRUE; GET_BOOL("show_notifications", values.show_notifications); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_show_notifications), values.show_notifications); /* Iconify */ values.iconify = FALSE; GET_BOOL("iconify", values.iconify); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_iconify), values.iconify); /* Show/Hide systray icon */ values.systray_icon = SYSTRAY_ICON_ALWAYS; GET_INT("show_systray_icon", values.systray_icon); if(values.systray_icon == SYSTRAY_ICON_ALWAYS) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_systray_always), TRUE); else if(values.systray_icon == SYSTRAY_ICON_IF_ACTIVE) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_systray_if_active), TRUE); else gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_systray_never), TRUE); /* It's an Action custom command ? */ integer = ACTION_METHOD_AUTODETECT; GET_INT("action_method", integer); if(integer == ACTION_METHOD_MANUAL) { values.action_method = ACTION_METHOD_MANUAL; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_action_method_manual), TRUE); } else if(integer == ACTION_METHOD_CUSTOM_COMMAND) { values.action_method = ACTION_METHOD_CUSTOM_COMMAND; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_action_method_custom_command), TRUE); } else { values.action_method = ACTION_METHOD_AUTODETECT; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_action_method_autodetect), TRUE); } /* Command before action */ values.command_before_action_enabled = FALSE; GET_BOOL("command_before_action_enabled", values.command_before_action_enabled); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_command_before_action), values.command_before_action_enabled); string = NULL; GET_STRING("command_before_action", string); values_set_command_before_action(NOTNULL(string)); gtk_entry_set_text(GTK_ENTRY(entry_command_before_action), NOTNULL(string)); if(string != NULL) g_free(string); /* Action command */ string = NULL; GET_STRING("action_shutdown.command", string); action_set_command(values.action_shutdown, NOTNULL(string)); if(string != NULL) g_free(string); string = NULL; GET_STRING("action_restart.command", string); action_set_command(values.action_restart, NOTNULL(string)); if(string != NULL) g_free(string); string = NULL; GET_STRING("action_logout.command", string); action_set_command(values.action_logout, NOTNULL(string)); if(string != NULL) g_free(string); /* Manual desktop */ integer = DESKTOP_AUTO; GET_INT("selected_desktop", integer); { gint index = 0; /* Default = auto */ values.selected_desktop = DESKTOP_AUTO; /* = Auto */ if(integer == DESKTOP_GNOME) { index = 1; values.selected_desktop = DESKTOP_GNOME; } else if(integer == DESKTOP_KDE) { index = 2; values.selected_desktop = DESKTOP_KDE; } else if(integer == DESKTOP_XFCE) { index = 3; values.selected_desktop = DESKTOP_XFCE; } gtk_combo_box_set_active(GTK_COMBO_BOX(combo_method_manual_desktop), index); } /* Display manager */ integer = DISPLAY_MANAGER_AUTO; GET_INT("selected_display_manager", integer); { gint index = 0; /* Default = auto */ values.selected_display_manager = DISPLAY_MANAGER_AUTO; /* = Auto */ if(integer == DISPLAY_MANAGER_GDM) { index = 1; values.selected_display_manager = DISPLAY_MANAGER_GDM; } else if(integer == DISPLAY_MANAGER_KDM) { index = 2; values.selected_display_manager = DISPLAY_MANAGER_KDM; } gtk_combo_box_set_active(GTK_COMBO_BOX(combo_method_manual_display_manager), index); } integer = -1; GET_INT("time_when_notify_nb", integer); if(integer >= 0) { *values.time_when_notify.nb = integer; if(values.time_when_notify.time != NULL) g_free(values.time_when_notify.time); values.time_when_notify.time = g_malloc(integer * sizeof(gsize)); GET_INT_LIST("time_when_notify_list", values.time_when_notify.time, \ values.time_when_notify.nb); } #undef GET_BOOL #undef GET_INT #undef GET_STRING #undef GET_INT_LIST #undef NOTNULL if(key_file != NULL) g_key_file_free(key_file); debug_printf("VALUES LOADED\n"); return FALSE; } /* * Free all values. */ void values_destroy() { action_destroy(values.action_shutdown); action_destroy(values.action_restart); action_destroy(values.action_logout); if(values.command_before_action != NULL) g_free(values.command_before_action); if(values.time_when_notify.nb != NULL) g_free(values.time_when_notify.nb); if(values.time_when_notify.time != NULL) g_free(values.time_when_notify.time); memset(&values, 0, sizeof(struct t_values)); } /* * Init all values. */ void values_init() { memset(&values, 0, sizeof(struct t_values)); values.show_notifications = TRUE; values.systray_icon = SYSTRAY_ICON_ALWAYS; /* action allocation */ values.action_shutdown = action_new(); action_set_type(values.action_shutdown, ACTION_TYPE_SHUTDOWN); values.action_restart = action_new(); action_set_type(values.action_restart, ACTION_TYPE_RESTART); values.action_logout = action_new(); action_set_type(values.action_logout, ACTION_TYPE_LOGOUT); /* action variables */ values.current_action = values.action_shutdown; /* default action */ values.action_scheduled = FALSE; values.action_method = ACTION_METHOD_AUTODETECT; /* command */ values_set_command_before_action(""); values.command_before_action_enabled = FALSE; /* Time when notify */ values.time_when_notify.nb = g_malloc(sizeof(gsize)); *values.time_when_notify.nb = 6; values.time_when_notify.time = g_malloc(6 * sizeof(gint)); values.time_when_notify.time[0] = 60; values.time_when_notify.time[1] = 120; values.time_when_notify.time[2] = 300; values.time_when_notify.time[3] = 900; values.time_when_notify.time[4] = 1800; values.time_when_notify.time[5] = 3600; } /* * Return the path of the configuration file. "" is returned * if it's not found. * * Warning: The returned string must be freed with g_free(). */ gchar *get_configuration_path() { const gchar *home = g_get_home_dir(); if(home == NULL) return g_strdup(""); return g_build_path(G_DIR_SEPARATOR_S, home, ".gshutdown", NULL); } /* * Load the configuration file. * * Return NULL on error. * * Warning: You must be free the returned pointer * with g_key_file_free(). */ static GKeyFile *load_configuration() { gchar *path; GKeyFile *config; gboolean result; /* Load */ path = get_configuration_path(); if((*path) == 0) { g_free(path); return NULL; } config = g_key_file_new(); result = g_key_file_load_from_file(config, path, G_KEY_FILE_NONE, NULL); /* Error */ if(result == FALSE) { g_key_file_free(config); config = NULL; } /* Result */ g_free(path); return config; } /* * Save the content of "key_file" in ~/.gshutdown. */ static gboolean save_configuration(GKeyFile *key_file) { gchar *path; FILE *handle; gboolean result = FALSE; /* Save the values */ path = get_configuration_path(); handle = fopen(path, "w"); if(handle) { gchar **keys_list = NULL; gsize keys_list_size = 0; fprintf(handle, "[%s]\n", GROUP_NAME); if(key_file != NULL) keys_list = g_key_file_get_keys(key_file, GROUP_NAME, &keys_list_size, NULL); /* Save all keys */ if(keys_list != NULL) { gsize i; /* Write the variables */ for(i = 0; i < keys_list_size; i++) { gchar *value = g_key_file_get_string(key_file, GROUP_NAME, keys_list[i], NULL); if(value == NULL) continue; fprintf(handle, "%s=%s\n", keys_list[i], value); g_free(value); } g_strfreev(keys_list); } fclose(handle); } else result = TRUE; /* Error fopen */ /* Free */ g_free(path); return result; } /* * Return or modify the command before action. */ const gchar *values_get_command_before_action() { return (values.command_before_action != NULL) ? values.command_before_action : ""; } void values_set_command_before_action(const gchar *command) { if(values.command_before_action != NULL) g_free(values.command_before_action); values.command_before_action = g_strdup((command != NULL) ? command : ""); } /* * Add a notification date (sorted) */ gsize values_add_time_when_notify(gsize time) { gsize cur = 0; gsize i; gsize *buffer; buffer = g_malloc(*values.time_when_notify.nb * sizeof(gint)); for(i = 0; i < *values.time_when_notify.nb; i++) buffer[i] = values.time_when_notify.time[i]; g_free(values.time_when_notify.time); values.time_when_notify.time = g_malloc((*values.time_when_notify.nb + 1) * sizeof(gint)); if(*(buffer + *values.time_when_notify.nb - 1) < time) cur = *values.time_when_notify.nb; else while(*(buffer + cur) < time) cur++; *values.time_when_notify.nb += 1; for(i = 0; i < cur; i++) values.time_when_notify.time[i] = buffer[i]; *(values.time_when_notify.time + cur) = time; for(i = cur + 1; i < *values.time_when_notify.nb; i++) values.time_when_notify.time[i] = buffer[i - 1]; return cur; } /* * Delete a notification date */ void value_del_time_when_notify(gint cur) { gsize i; gsize *buffer; buffer = g_malloc(*values.time_when_notify.nb * sizeof(gint)); for(i = 0; i < *values.time_when_notify.nb; i++) buffer[i] = values.time_when_notify.time[i]; g_free(values.time_when_notify.time); values.time_when_notify.time = g_malloc((*values.time_when_notify.nb - 1) * sizeof(gint)); *values.time_when_notify.nb -= 1; for(i = 0; i < cur; i++) values.time_when_notify.time[i] = buffer[i]; for(i = cur; i < *values.time_when_notify.nb; i++) values.time_when_notify.time[i] = buffer[i + 1]; } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/values.h0000644000175000017500000000576410623561276012601 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_VALUES__ #define __GSHUTDOWN_VALUES__ #include #include "action.h" typedef enum { DISPLAY_MANAGER_NONE = 0, DISPLAY_MANAGER_AUTO = 0, DISPLAY_MANAGER_GDM = 1, DISPLAY_MANAGER_KDM = 2 } DisplayManager; typedef enum { DESKTOP_NONE = 0, DESKTOP_AUTO = 0, DESKTOP_GNOME = 1, DESKTOP_KDE = 2, DESKTOP_XFCE = 3 } Desktop; typedef enum { TIME_CHOICE_TIME_DATE = 0, TIME_CHOICE_TIME_FROM_NOW = 1, TIME_CHOICE_NOW = 2 } TimeChoice; typedef enum { SYSTRAY_ICON_ALWAYS = 0, SYSTRAY_ICON_IF_ACTIVE = 1, SYSTRAY_ICON_NEVER = 2 } SystrayIcon; struct t_values { /* values swapped with the interface */ struct { guint day, month, year; guint hour, min; } time_date; struct { guint hour, min, sec; } time_from_now; TimeChoice time_choice; DisplayManager detected_display_manager; Desktop detected_desktop; ActionMethod action_method; gboolean action_scheduled; /* The configuration values saved in ~/.gshutdown */ gboolean show_notifications; SystrayIcon systray_icon; Action *action_shutdown; Action *action_restart; Action *action_logout; Action *current_action; /* = ptr of action_shutdown, action_restart... */ gboolean iconify; /* Iconify when the action is started */ gboolean command_before_action_enabled; gchar *command_before_action; /* New allocated string, default=g_strdup("") */ /* selection in manual action method */ DisplayManager selected_display_manager; Desktop selected_desktop; struct { gsize *nb; gint *time; } time_when_notify; }; /* All global variables */ extern struct t_values values; extern gboolean action_scheduled; /* Prototypes */ void values_init(); void values_destroy(); gboolean values_save(); gboolean values_load(); gchar *get_configuration_path(); const gchar *values_get_command_before_action(); void values_set_command_before_action(const gchar *command); void values_action_method_autodetect(); gsize values_add_time_when_notify(gsize time); void value_del_time_when_notify(gint cur); #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/callback.c0000644000175000017500000003071510623560261013014 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "main.h" #include "gui.h" #include "callback.h" #include "misc.h" #include "timer.h" #include "pconfirm.h" #include /* About {{{1 */ void on_about_dialog_response(GtkWidget *widget, gint id, gpointer data) { if(id != GTK_RESPONSE_NONE) gtk_widget_hide(widget); } /* }}}1 */ /* Config Action (custom command) {{{1 */ /* Action Variables */ static Action *config_action_current_action = NULL; /* Called when the config action dialog is closed, to save all informations */ gboolean on_config_action_dialog_delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { const gchar *command; gtk_widget_hide(GTK_WIDGET(config_action_dialog)); /* Apply the action in "values" */ command = gtk_entry_get_text(GTK_ENTRY(entry_action_custom_command)); if(config_action_current_action != NULL) action_set_command(config_action_current_action, command); /* save */ values_save(); return gtk_widget_hide_on_delete(widget); } void on_btn_config_action_close(GtkWidget *widget, gpointer data) { on_config_action_dialog_delete_event(GTK_WIDGET(config_action_dialog), NULL, NULL); } void on_btn_config_action(GtkWidget *widget, gpointer data) { /* It must not be visible */ if(GTK_WIDGET_VISIBLE(GTK_WIDGET(config_action_dialog))) return; /* Get the actual action information */ if(widget == btn_config_shutdown) config_action_current_action = values.action_shutdown; else if(widget == btn_config_restart) config_action_current_action = values.action_restart; else if(widget == btn_config_logout) config_action_current_action = values.action_logout; else return; gtk_entry_set_text(GTK_ENTRY(entry_action_custom_command), action_get_command(config_action_current_action)); gtk_widget_grab_focus(entry_action_custom_command); /* Show the dialog */ gtk_widget_show(GTK_WIDGET(config_action_dialog)); } /* }}}1 */ /* Config Action (method) {{{1 */ void on_combo_method_manual_display_manager(GtkWidget *widget, gpointer data) { switch(gtk_combo_box_get_active(GTK_COMBO_BOX(widget))) { case 1: /* GDM */ values.selected_display_manager = DISPLAY_MANAGER_GDM; break; case 2: /* KDM */ values.selected_display_manager = DISPLAY_MANAGER_KDM; break; default: /* Auto */ values.selected_display_manager = DISPLAY_MANAGER_AUTO; } } void on_combo_method_manual_desktop(GtkWidget *widget, gpointer data) { switch(gtk_combo_box_get_active(GTK_COMBO_BOX(widget))) { case 1: /* GNOME */ values.selected_desktop = DESKTOP_GNOME; break; case 2: /* KDE */ values.selected_desktop = DESKTOP_KDE; break; case 3: /* XFCE */ values.selected_desktop = DESKTOP_XFCE; break; default: /* Auto */ values.selected_desktop = DESKTOP_AUTO; } } void on_btn_method_manual_close(GtkWidget *widget, gpointer data) { gtk_widget_hide(method_manual_dialog); } /* Method in general config dialog {{{2 */ void on_btn_action_method_manual(GtkWidget *widget, gpointer data) { gtk_widget_show(method_manual_dialog); } void on_radio_action_method(GtkWidget *widget, gpointer data) { /* Diable all */ gtk_widget_set_sensitive(btn_check_system, FALSE); gtk_widget_set_sensitive(btn_action_method_manual, FALSE); gtk_widget_set_sensitive(btn_config_shutdown, FALSE); gtk_widget_set_sensitive(btn_config_restart, FALSE); gtk_widget_set_sensitive(btn_config_logout, FALSE); /* Enable the required widgets */ if(widget == radio_action_method_autodetect) { values.action_method = ACTION_METHOD_AUTODETECT; gtk_widget_set_sensitive(btn_check_system, TRUE); } else if(widget == radio_action_method_manual) { values.action_method = ACTION_METHOD_MANUAL; gtk_widget_set_sensitive(btn_action_method_manual, TRUE); } else { values.action_method = ACTION_METHOD_CUSTOM_COMMAND; gtk_widget_set_sensitive(btn_config_shutdown, TRUE); gtk_widget_set_sensitive(btn_config_restart, TRUE); gtk_widget_set_sensitive(btn_config_logout, TRUE); } } /* }}}2 */ /* }}}1 */ /* Config Action (command before action) {{{1 */ void on_check_command_before_action(GtkWidget *widget, gpointer data) { gboolean enabled = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); gtk_widget_set_sensitive(entry_command_before_action, enabled); gtk_widget_grab_focus(entry_command_before_action); values.command_before_action_enabled = enabled; } /* }}}1 */ /* General configuration {{{1 */ /* * NB: It's update values. * * Show/Hide notifications * * */ void on_check_show_notifications(GtkWidget *widget, gpointer data) { if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) == TRUE) { gtk_widget_set_sensitive(GTK_WIDGET(btn_test_notifications), TRUE); values.show_notifications = TRUE; } else { gtk_widget_set_sensitive(GTK_WIDGET(btn_test_notifications), FALSE); values.show_notifications = FALSE; } } void on_btn_test_notifications(GtkWidget *widget, gpointer data) { gui_notification(_("Notification test"), NOTIFICATION_TYPE_IMPORTANT, NOTIFICATION_ICON_TIME); } void on_btn_notification_date(GtkWidget *widget, gpointer data) { gui_set_notification_date(); gtk_widget_show(GTK_WIDGET(notification_date_combo)); gtk_widget_show(GTK_WIDGET(notification_date_dialog)); } void on_btn_notification_date_close(GtkWidget *widget, gpointer data) { gtk_widget_hide(GTK_WIDGET(data)); } void on_btn_notification_date_add(GtkWidget *widget, gpointer data) { gchar text[100]; guint seconds = 0; gint minutes = 0; gint hours = 0; guint time_sec; guint i; seconds = gtk_spin_button_get_value(spin_notification_second); minutes = gtk_spin_button_get_value(spin_notification_minute); hours = gtk_spin_button_get_value(spin_notification_hour); time_sec = (3600 * hours) + (60 * minutes) + seconds; for(i = 0; i < *values.time_when_notify.nb; i++) if(values.time_when_notify.time[i] == time_sec) return; sprintf(text, " "); if(hours > 0) { sprintf(text, N_("%s%u hour", "%s%u hours", hours), " ", hours); } if(minutes > 0) { sprintf(text, N_("%s%u minute", "%s%u minutes", minutes), " ", minutes); } if(seconds > 0) { sprintf(text, N_("%s%u second", "%s%u seconds", seconds), " ", seconds); } gtk_combo_box_insert_text(GTK_COMBO_BOX(notification_date_combo), values_add_time_when_notify(time_sec), text); } void on_btn_notification_date_remove(GtkWidget *widget, gpointer data) { gint n_active; n_active = gtk_combo_box_get_active(GTK_COMBO_BOX(notification_date_combo)); if(n_active != -1) { gtk_combo_box_remove_text(GTK_COMBO_BOX(notification_date_combo), n_active); value_del_time_when_notify(n_active); } } /* * config dialog. */ gboolean on_config_dialog_delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { const gchar *text = gtk_entry_get_text(GTK_ENTRY(entry_command_before_action)); values_set_command_before_action(text); values_save(); return gtk_widget_hide_on_delete(widget); } void on_btn_cfg_close(GtkWidget *widget, gpointer data) { on_config_dialog_delete_event(config_dialog, NULL, NULL); } /* Complete a command */ void on_entry_command_complete(GtkWidget *widget, gpointer data) { gchar *stock_id = NULL; if(command_exists(gtk_entry_get_text(GTK_ENTRY(widget))) == TRUE) stock_id = GTK_STOCK_APPLY; else stock_id = GTK_STOCK_CANCEL; gtk_image_set_from_stock(GTK_IMAGE(data), stock_id, GTK_ICON_SIZE_BUTTON); } /* * Called when user clicked on the notify */ void on_notify_click(NotifyNotification *n, const char *action) { gtk_widget_show(main_window); } /* * Check system dialog. */ void on_btn_check_system(GtkWidget *widget, gpointer data) { gtk_widget_show(GTK_WIDGET(data)); } void on_btn_check_system_close(GtkWidget *widget, gpointer data) { gtk_widget_hide(GTK_WIDGET(data)); } /* * Radio button to show/hide the systray icon. */ void on_radio_systray_always(GtkWidget *widget, gpointer data) { values.systray_icon = SYSTRAY_ICON_ALWAYS; gtk_widget_set_sensitive(check_iconify, TRUE); gui_systray_icon_show(); } void on_radio_systray_if_active(GtkWidget *widget, gpointer data) { values.systray_icon = SYSTRAY_ICON_IF_ACTIVE; gtk_widget_set_sensitive(check_iconify, TRUE); if(values.action_scheduled) gui_systray_icon_show(); else gui_systray_icon_hide(); } void on_radio_systray_never(GtkWidget *widget, gpointer data) { values.systray_icon = SYSTRAY_ICON_NEVER; gtk_widget_set_sensitive(check_iconify, FALSE); gui_systray_icon_hide(); } void on_check_iconify(GtkWidget *widget, gpointer data) { values.iconify = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); } /* }}}1 */ /* Menu {{{1 */ /* * "Cancel" in the contextual menu. */ void on_mnu_tray_cancel(GtkWidget *widget, gpointer data) { if(values.action_scheduled) on_btn_start_clicked(btn_start, NULL); } /* }}}1 */ /* Systray {{{1 */ void on_shutdown_now(GtkWidget *widget, gpointer data) { if(confirm_dialog(values.action_shutdown) == TRUE) { gui_notification(_("Computer is going to shutdown now !"), NOTIFICATION_TYPE_IMPORTANT, NOTIFICATION_ICON_TIME); action_run(values.action_shutdown); } } void on_reboot_now(GtkWidget *widget, gpointer data) { if(confirm_dialog(values.action_restart) == TRUE) { gui_notification(_("Computer is going to reboot now !"), NOTIFICATION_TYPE_IMPORTANT, NOTIFICATION_ICON_TIME); action_run(values.action_restart); } } void on_logout_now(GtkWidget *widget, gpointer data) { if(confirm_dialog(values.action_logout) == TRUE) { gui_notification(_("Current session will be terminated !"), NOTIFICATION_TYPE_IMPORTANT, NOTIFICATION_ICON_TIME); action_run(values.action_logout); } } void on_tray_icon(GtkWidget *button, GdkEventButton *event, GtkWidget *window) { switch(event->button) { case 1: if(!GTK_WIDGET_VISIBLE(window)) gtk_window_present(GTK_WINDOW(window)); else gtk_widget_hide(window); break; case 2: gtk_menu_popup(GTK_MENU(create_mnu_tray_action_now()), NULL, NULL, NULL, NULL, event->button, event->time); break; case 3: gtk_menu_popup(traymenu(), NULL, NULL, NULL, NULL, event->button, event->time); break; } } /* }}}1 */ /* Progress confirm {{{1 */ void on_progress_cancel(GtkWidget *widget, gpointer data) { gtk_widget_destroy(GTK_WIDGET(data)); on_btn_start_clicked(btn_start, NULL); } void on_progress_execute(GtkWidget *widget, gpointer data) { gtk_widget_destroy(GTK_WIDGET(data)); action_run(values.current_action); on_btn_start_clicked(btn_start, NULL); } void on_progress_destroy(GtkWidget *widget, gpointer data) { guint *func_ref; func_ref = data; g_source_remove(*func_ref); g_free(func_ref); progress_confirm_open = FALSE; } /* }}}1 */ /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8:foldmethod=marker */ gshutdown-0.2/src/callback.h0000644000175000017500000000634210610253302013007 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_CALLBACK__ #define __GSHUTDOWN_CALLBACK__ #include #include #include #include "callback_main_window.h" void on_mnu_tray_cancel(GtkWidget *, gpointer); /* misc */ void on_about_response(GtkWidget *widget, gint id, gpointer data); void on_check_show_notifications(GtkWidget *widget, gpointer data); void on_check_iconify(GtkWidget *widget, gpointer data); void on_radio_systray_always(GtkWidget *widget, gpointer data); void on_radio_systray_if_active(GtkWidget *widget, gpointer data); void on_radio_systray_never(GtkWidget *widget, gpointer data); void on_btn_config_action(GtkWidget *widget, gpointer data); gboolean on_config_dialog_delete_event(GtkWidget *widget, GdkEvent *event, gpointer data); void on_btn_cfg_close(GtkWidget *widget, gpointer data); gboolean on_config_action_dialog_delete_event(GtkWidget *widget, GdkEvent *event, gpointer data); void on_btn_config_action_close(GtkWidget *widget, gpointer data); void on_check_command_before_action(GtkWidget *widget, gpointer data); void on_radio_action_method(GtkWidget *widget, gpointer data); void on_btn_action_method_manual(GtkWidget *widget, gpointer data); void on_combo_method_manual_desktop(GtkWidget *widget, gpointer data); void on_combo_method_manual_display_manager(GtkWidget *widget, gpointer data); void on_btn_method_manual_close(GtkWidget *widget, gpointer data); void on_entry_command_complete(GtkWidget *widget, gpointer data); void on_notify_click(NotifyNotification *n, const char *action); void on_btn_check_system_close(GtkWidget *widget, gpointer data); void on_btn_check_system(GtkWidget *widget, gpointer data); void on_tray_icon(GtkWidget *button, GdkEventButton *event, GtkWidget *window); void on_shutdown_now(GtkWidget *widget, gpointer data); void on_reboot_now(GtkWidget *widget, gpointer data); void on_logout_now(GtkWidget *widget, gpointer data); void on_btn_test_notifications(GtkWidget *widget, gpointer data); void on_btn_notification_date(GtkWidget *widget, gpointer data); void on_btn_notification_date_close(GtkWidget *widget, gpointer data); void on_btn_notification_date_add(GtkWidget *widget, gpointer data); void on_btn_notification_date_remove(GtkWidget *widget, gpointer data); void on_progress_cancel(GtkWidget *, gpointer); void on_progress_execute(GtkWidget *, gpointer); void on_progress_destroy(GtkWidget *, gpointer); #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/callback_main_window.c0000644000175000017500000002715110610253304015400 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_CALLBACK_MAIN_WINDOW__ #define __GSHUTDOWN_CALLBACK_MAIN_WINDOW__ #include "main.h" #include "misc.h" #include "timer.h" #include "callback.h" #include "values.h" #include "gui.h" #include "pconfirm.h" /* * Button : actual time. */ void on_btn_actual_time_clicked(GtkButton *button, gpointer data) { gui_set_actual_time(TRUE, TRUE); } /* * Start button (launch / stop button). */ void on_btn_start_clicked(GtkButton *button, gpointer data) { static guint func_ref; GtkWidget *dialog; guint timeleft; gchar *path; time_t t = time(0); struct tm *tm_time = localtime(&t); /* Launch the action */ if(values.action_scheduled == FALSE) { /* Test if the detection is ok */ if(detect_error_dialog()) return; /* Save sec */ values.time_from_now.sec = tm_time->tm_sec; timeleft = time_left(); /* Launch ! */ if(timeleft > 30) { if(values.systray_icon != SYSTRAY_ICON_NEVER) { gui_systray_icon_show(); /* Iconify with a notification ? */ if(values.iconify && values.systray_icon != SYSTRAY_ICON_NEVER) { gtk_widget_hide(main_window); gui_notification(_("I'm here !\n\nMove over me to see the countdown."), NOTIFICATION_TYPE_FAST_INFO, NOTIFICATION_ICON_NONE); } } values.action_scheduled = TRUE; /* Change systray image icon */ path = data_path("tray_icon2.png"); gtk_image_set_from_file(GTK_IMAGE(tray_image), path); /* Time type widgets */ gtk_widget_set_sensitive(vbox_select_time, 0); gtk_widget_set_sensitive(GTK_WIDGET(combo_action), 0); gtk_widget_set_sensitive(GTK_WIDGET(combo_time_type), 0); gtk_button_set_label(button, _("_Stop")); /* Timer : 1s*/ func_ref = g_timeout_add(1000, timer_notify, NULL); } else { if(timeleft > 0 || values.time_choice == TIME_CHOICE_NOW) { if(confirm_dialog(values.current_action) == TRUE) action_run(values.current_action); } else { dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Chosen time already exceeded")); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); } } } /* Stop the action */ else { if(values.systray_icon != SYSTRAY_ICON_ALWAYS) gui_systray_icon_hide(); if(values.iconify == TRUE && values.systray_icon != SYSTRAY_ICON_NEVER) gtk_widget_show(main_window); if(progress_confirm_open) progress_destroy(); values.action_scheduled = FALSE; /* Change systray image icon */ path = data_path("tray_icon.png"); gtk_image_set_from_file(GTK_IMAGE(tray_image), path); /* Remove timer */ g_source_remove(func_ref); /* Time Type widgets */ on_combo_time_type_changed(combo_time_type, NULL); /* Other */ gtk_widget_set_sensitive(vbox_select_time, 1); gtk_widget_set_sensitive(GTK_WIDGET(combo_action), 1); gtk_widget_set_sensitive(GTK_WIDGET(combo_time_type), 1); gtk_button_set_label(button, _("_Start")); /* Change tray tooltip */ gtk_tooltips_set_tip(tray_tooltips, tray_eventbox, _("No action scheduled"), NULL); } } /* * It modify the "values". */ void on_combo_action_changed(GtkWidget *widget, gpointer data) { gint current = gtk_combo_box_get_active(GTK_COMBO_BOX(widget)); switch(current) { case 0: /* Shutdown */ gtk_widget_hide(GTK_WIDGET(combo_extras)); values.current_action = values.action_shutdown; break; case 1: /* Restart */ gtk_widget_hide(GTK_WIDGET(combo_extras)); values.current_action = values.action_restart; break; case 2: /* Logout */ gtk_widget_hide(GTK_WIDGET(combo_extras)); values.current_action = values.action_logout; break; case 3: /* Extras */ gtk_widget_show(GTK_WIDGET(combo_extras)); break; } } /* * If the type of the time is changed : * - Hide and show some widgets * - Load and save some values */ void on_combo_time_type_changed(GtkComboBox *combo, gpointer data) { /* Hide/Show widgets */ gtk_widget_set_sensitive(GTK_WIDGET(calendar), 0); gtk_widget_set_sensitive(GTK_WIDGET(spin_hour), 0); gtk_widget_set_sensitive(GTK_WIDGET(spin_minute), 0); gtk_widget_set_sensitive(GTK_WIDGET(btn_actual_time), 0); /* Update "values" */ switch(gtk_combo_box_get_active(combo)) { case 0: values.time_choice = TIME_CHOICE_TIME_DATE; /* Set values */ gtk_spin_button_set_value(spin_hour, values.time_date.hour); gtk_spin_button_set_value(spin_minute, values.time_date.min); /* Enable widgets */ gtk_widget_set_sensitive(GTK_WIDGET(btn_actual_time), 1); gtk_widget_set_sensitive(GTK_WIDGET(spin_hour), 1); gtk_widget_set_sensitive(GTK_WIDGET(spin_minute), 1); gtk_widget_set_sensitive(GTK_WIDGET(calendar), 1); break; case 1: values.time_choice = TIME_CHOICE_TIME_FROM_NOW; /* Set values */ gtk_spin_button_set_value(spin_hour, values.time_from_now.hour); gtk_spin_button_set_value(spin_minute, values.time_from_now.min); /* Enable widgets */ gtk_widget_set_sensitive(GTK_WIDGET(spin_hour), 1); gtk_widget_set_sensitive(GTK_WIDGET(spin_minute), 1); break; case 2: values.time_choice = TIME_CHOICE_NOW; break; } } /* * If a the day is changed in the calendar. */ void on_calendar_day_selected(GtkCalendar *calendar, gpointer data) { gtk_calendar_get_date(calendar, &values.time_date.year, &values.time_date.month, &values.time_date.day); gui_mark_today(); } /* * Hour changed. */ void on_spin_hour_value_changed(GtkSpinButton *spin, GtkScrollType *arg1, gpointer data) { gint current_choice; gint day, month, year; current_choice = gtk_combo_box_get_active(GTK_COMBO_BOX(combo_time_type)); if(gtk_spin_button_get_value(spin_hour) == 24) { gtk_spin_button_set_value(spin_hour, 0); if(current_choice == TIME_CHOICE_TIME_DATE) { day = values.time_date.day; if(day < nb_days_in_month(values.time_date.month ,values.time_date.year)) { day += 1; gtk_calendar_select_day(calendar, day); } else { month = values.time_date.month + 1; year = values.time_date.year; if(month == 12) { month = 0; year += 1; } day = 1; gtk_calendar_select_day(calendar, day); gtk_calendar_select_month(calendar, month, year); } on_calendar_day_selected(calendar, NULL); } } else if(gtk_spin_button_get_value(spin_hour) == -1) { gtk_spin_button_set_value(spin_hour, 23); if(current_choice == TIME_CHOICE_TIME_DATE) { day = values.time_date.day; if(day == 1) { month = values.time_date.month - 1; year = values.time_date.year; if(month == -1) { month = 11; year -= 1; } day = nb_days_in_month(month, values.time_date.year); gtk_calendar_select_month(calendar, month, year); gtk_calendar_select_day(calendar, day); } else { day -= 1; gtk_calendar_select_day(calendar, day); } on_calendar_day_selected(calendar, NULL); } } switch(current_choice) { case 0: /* Time and date */ values.time_date.hour = gtk_spin_button_get_value(spin_hour); break; case 1: /* Time from now */ values.time_from_now.hour = gtk_spin_button_get_value(spin_hour); break; } } /* * Minute changed. */ void on_spin_minute_value_changed(GtkSpinButton *spin, GtkScrollType *arg1, gpointer data) { gint current_choice; if(gtk_spin_button_get_value(spin_minute) == 60) { gtk_spin_button_set_value(spin_minute, 0); gtk_spin_button_set_value(spin_hour, gtk_spin_button_get_value(spin_hour) + 1); on_spin_hour_value_changed(spin_hour, NULL, NULL); } else if(gtk_spin_button_get_value(spin_minute) == -1) { gtk_spin_button_set_value(spin_minute, 59); gtk_spin_button_set_value(spin_hour, gtk_spin_button_get_value(spin_hour) - 1); on_spin_hour_value_changed(spin_hour, NULL, NULL); } current_choice = gtk_combo_box_get_active(GTK_COMBO_BOX(combo_time_type)); switch(current_choice) { case 0: /* Time and date */ values.time_date.min = gtk_spin_button_get_value(spin_minute); break; case 1: /* Time from now */ values.time_from_now.min = gtk_spin_button_get_value(spin_minute); break; } } /* * Called before closing Window. */ gboolean on_main_window_delete_event(GtkWidget *widget, gpointer data) { if(gui_systray_icon_is_showed()) gtk_widget_hide(widget); else on_mnu_quit_activate(widget, data); return TRUE; } /* * Quit the program. */ void on_mnu_quit_activate(GtkWidget *widget, gpointer data) { GtkWidget *dialog; gint response; dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, (gchar *)_("Are you sure you want to quit ?")); response = gtk_dialog_run(GTK_DIALOG(dialog)); if(response == GTK_RESPONSE_YES) quit(QUIT_SUCCESS); /* atexit called */ gtk_widget_destroy(GTK_WIDGET(dialog)); } /* * Show about dialog. */ void on_mnu_about_activate(GtkWidget *widget, gpointer data) { gtk_widget_show(GTK_WIDGET(about_dialog)); } /* * Show the preference dialog. */ void on_mnu_config_activate(GtkComboBox *combo, gpointer data) { gtk_widget_show(config_dialog); } #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/callback_main_window.h0000644000175000017500000000311310610253304015375 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ /* window */ void on_btn_start_clicked(GtkButton *button, gpointer data); void on_calendar_day_selected(GtkCalendar *calendar, gpointer data); void on_combo_action_changed(GtkWidget *widget, gpointer data); void on_btn_actual_time_clicked(GtkButton *, gpointer); void on_spin_hour_value_changed(GtkSpinButton *, GtkScrollType *, gpointer); void on_spin_minute_value_changed(GtkSpinButton *, GtkScrollType *, gpointer); void on_combo_time_type_changed(GtkComboBox *, gpointer ); gboolean on_window_close_delete_event(GtkWidget *, gpointer); /* menu */ void on_mnu_quit_activate(GtkWidget *, gpointer); void on_mnu_about_activate(GtkWidget *widget, gpointer data); void on_mnu_config_activate(GtkComboBox *combo, gpointer data); /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/misc.c0000644000175000017500000001445310610253303012204 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include /* X_OK */ #include #include #include /* g_strdup_printf */ #include /* g_free */ #include /* g_getenv */ #include /* g_file_test() */ #include /* g_shell_parse_argv */ #include "config.h" #include "misc.h" #include "main.h" #include "binreloc.h" /* * Run a shell command, with arguments. * Return TRUE on error. */ #include /* exit() */ #include /* fork() */ #include /* Used by fork() and stat() */ gboolean run_command(const gchar *command) { gboolean result = FALSE; gint argc; gchar **argv = NULL; /* All arguments of command */ gchar *path = NULL; /* The full path of command */ if(g_shell_parse_argv(command, &argc, &argv, NULL) == FALSE) return TRUE; path = g_find_program_in_path(argv[0]); if(path != NULL && argc >= 1) { pid_t pid; /* Save */ gchar *save = argv[0]; argv[0] = path; /* The full path */ /* Run the command */ pid = fork(); if(pid == 0) { /* Child */ execv(argv[0], argv); exit(1); } else if(pid < 0) { /* Error */ perror("fork"); result = TRUE; } /* Restore */ argv[0] = save; } else result = TRUE; /* Error */ g_free(path); g_strfreev(argv); return result; } /* * Which returns the pathnames of the files which would be executed in * the current environment. It does this by searching the PATH for * executable files matching the names of the arguments. * * The returned string are allocated. It must be freed by g_free(). * If the command are not found, NULL are returned. * */ /* * Quit the program. * * Macros can be used in status : * QUIT_FAILURE * QUIT_SUCCESS */ void quit(int status) { called_at_exit(); exit(status); } /* * Return TRUE if a command exists in $PATH. */ gboolean command_exists(const gchar *full_command) { const gchar *env_path; gchar **env_path_split, **save_env_path_split; gchar result = FALSE; /* Default = Error */ gint argc; gchar **argv = NULL; /* All arguments of command */ gchar *command; /* Fist tests */ if(full_command == NULL || g_str_equal(full_command, "") == TRUE) return FALSE; if(g_shell_parse_argv(full_command, &argc, &argv, NULL) == FALSE) return FALSE; if(argc < 1) { g_strfreev(argv); return FALSE; } /* Get the command name */ command = argv[0]; argv[0] = NULL; g_strfreev(argv); /* Absolute or relative path */ if(g_str_has_prefix(command, G_DIR_SEPARATOR_S) == TRUE || g_str_has_prefix(command, ".." G_DIR_SEPARATOR_S) == TRUE || g_str_has_prefix(command, "." G_DIR_SEPARATOR_S) == TRUE) { if(g_access(command, X_OK) == 0) result = TRUE; g_free(command); return result; } /* Read $PATH */ if(!(env_path = g_getenv("PATH"))) { g_free(command); return FALSE; } /* Split $PATH variable */ env_path_split = g_strsplit(env_path, G_SEARCHPATH_SEPARATOR_S, 0); save_env_path_split = env_path_split; if(env_path_split == (gchar **)0) { g_free(command); return FALSE; } /* Scan all directories */ while(*env_path_split != 0) { gchar *new_path = g_strdup_printf("%s%s%s", *env_path_split, G_DIR_SEPARATOR_S, command); if(g_access(new_path, X_OK) == 0) { g_free(new_path); result = TRUE; break; } g_free(new_path); env_path_split++; } g_strfreev(save_env_path_split); g_free(command); return result; } /* * Return a path of a data file. * * For example, if filename contain file.glade, * this function return "/usr/share/gshutdown/file.glade" * or "./file.glade" if it's in this directory. * * If the data file are not found, it return NULL. * * NOTE: You must free the returned string with * g_free(). */ gchar *data_path(gchar *filename) { #ifdef PACKAGE_DATA_DIR gchar *path; #endif #ifdef ENABLE_BINRELOC { static gboolean binreloc_inited = FALSE; gchar *dir; if(binreloc_inited == FALSE) { gbr_init(NULL); binreloc_inited = TRUE; } dir = gbr_find_data_dir(NULL); if(dir) { path = g_strdup_printf("%s/gshutdown/%s", dir, filename); #ifdef DEBUG printf("Binreloc detected data dir: %s\n", dir); #endif free(dir); if(g_file_test(path, G_FILE_TEST_EXISTS) != FALSE) { return path; } else g_free(path); } } #endif /* This directory */ if(g_file_test(filename, G_FILE_TEST_EXISTS) != 0) return g_strdup(filename); /* $PREFIX/share/gshutdown */ #ifdef PACKAGE_DATA_DIR path = g_strdup_printf("%s%cgshutdown%c%s", PACKAGE_DATA_DIR, G_DIR_SEPARATOR, G_DIR_SEPARATOR, filename); if(g_file_test(path, G_FILE_TEST_EXISTS) != FALSE) return path; else g_free(path); #endif return NULL; } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/misc.h0000644000175000017500000000265510610253303012212 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_MISC__ #define __GSHUTDOWN_MISC__ #include /* gchar */ /* Return a data file path. e.g: gshutdown.glade */ gchar *data_path(gchar *filename); /* run a command with fork/exec */ gboolean run_command(const gchar *command); /* Test if a command exists */ gboolean command_exists(const gchar *command); /* Which returns the pathnames of the files which would * be executed in the current environment */ gchar *which(gchar *command); /* Quit the program */ #define QUIT_FAILURE 1 #define QUIT_SUCCESS 0 void quit(int); #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/timer.c0000644000175000017500000001445310623557736012416 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include #include "timer.h" #include "values.h" #include "gui.h" #include "pconfirm.h" #include "main.h" const guint SECS_IN_YEAR = 31536000; const guint SECS_IN_MONTH = 2628000; const guint SECS_IN_DAY = 86400; const guint SECS_IN_HOUR = 3600; const guint SECS_IN_MIN = 60; /* * Mumber of days in month. * * month : 0 to 11 * year : YYYY */ guint nb_days_in_month(guint month, guint year) { gint nb_days[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; /* Leap year */ if((!(year % 4) && year % 100) || !(year % 400)) nb_days[1] = 29; return nb_days[month]; } /* * Return time left in seconds. */ guint time_left() { time_t t = time(0); struct tm *tm_time = localtime(&t); gint timeleft = 0; gint nbdays = 0; guint month, year; /* At Date Time */ if(values.time_choice == TIME_CHOICE_TIME_DATE) { year = tm_time->tm_year + 1900; while(year - values.time_date.year) { if(values.time_date.month > 1) { if((!((year + 1) % 4) && (year + 1) % 100) || !((year + 1) % 400)) nbdays = 366; else nbdays = 365; } else { if((!(year % 4) && year % 100) || !(year % 400)) nbdays = 366; else nbdays = 365; } year++; } month = tm_time->tm_mon; while(values.time_date.month > month) { nbdays += nb_days_in_month(month, year); month++; } while(values.time_date.month < month) { nbdays -= nb_days_in_month(month, year); month--; } nbdays += values.time_date.day - tm_time->tm_mday; timeleft += nbdays * SECS_IN_DAY; timeleft += (values.time_date.hour - tm_time->tm_hour) * SECS_IN_HOUR; timeleft += (values.time_date.min - tm_time->tm_min) * SECS_IN_MIN; } /* Time from now */ if(values.time_choice == TIME_CHOICE_TIME_FROM_NOW) { timeleft += values.time_from_now.hour * SECS_IN_HOUR; timeleft += values.time_from_now.min * SECS_IN_MIN; timeleft += values.time_from_now.sec; } timeleft -= tm_time->tm_sec; if(timeleft < 0) timeleft = 0; return timeleft; } /* * Function called every seconds. * * Returne TRUE on error. */ gboolean timer_notify() { guint timeleft; time_t t = time(0); struct tm *tm_time = localtime(&t); static guint min = -1; gchar message[100]; gint i; if(min == -1) min = tm_time->tm_min; if(values.time_choice == TIME_CHOICE_TIME_FROM_NOW) { /* Minute has changed */ if(min != tm_time->tm_min) { min = tm_time->tm_min; if(values.time_from_now.min) values.time_from_now.min--; else { values.time_from_now.min = 59; values.time_from_now.hour--; } } } timeleft = time_left(); if(action_get_type(values.current_action) == ACTION_TYPE_SHUTDOWN) sprintf(message, _("The computer will be shut down in :")); else if(action_get_type(values.current_action) == ACTION_TYPE_RESTART) sprintf(message, _("The computer will be restarted in :")); else if(action_get_type(values.current_action) == ACTION_TYPE_LOGOUT) sprintf(message, _("Time before logout :")); else sprintf(message, _("Time before action :")); if(timeleft >= SECS_IN_MIN) { int tvalue; if(timeleft < SECS_IN_HOUR) { /* minutes */ tvalue = timeleft / SECS_IN_MIN; sprintf(message, N_("%s %u minute", "%s %u minutes", tvalue), message, tvalue); /* seconds */ if(timeleft < 5 * SECS_IN_MIN) { tvalue = timeleft % SECS_IN_MIN; sprintf(message, N_("%s and %u second", "%s and %u seconds", tvalue), message, tvalue); } } else if(timeleft < SECS_IN_DAY) { tvalue = timeleft / SECS_IN_HOUR; sprintf(message, N_("%s %u hour", "%s %u hours", tvalue), message, tvalue); tvalue = (timeleft % SECS_IN_HOUR) / SECS_IN_MIN; sprintf(message, N_("%s and %u minute", "%s and %u minutes", tvalue), message, tvalue); } else { /* plus d'un jour */ tvalue = timeleft / SECS_IN_DAY; sprintf(message, N_("%s %u day", "%s %u days", tvalue), message, tvalue); tvalue = (timeleft % SECS_IN_DAY) / SECS_IN_HOUR; sprintf(message, N_("%s and %u hour", "%s and %u hours", tvalue), message, tvalue); } gtk_tooltips_set_tip(tray_tooltips, tray_eventbox, message, NULL); for(i = 0; i < *values.time_when_notify.nb; i++) { if(timeleft == values.time_when_notify.time[i]) { gui_notification(message, NOTIFICATION_TYPE_IMPORTANT, NOTIFICATION_ICON_TIME); } } } else { sprintf(message, N_("%s %u second", "%s %u seconds", timeleft), message, timeleft); gtk_tooltips_set_tip(tray_tooltips, tray_eventbox, message, NULL); if(timeleft <= 30 && progress_confirm_open == FALSE) progress_confirm(); } return TRUE; } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/timer.h0000644000175000017500000000205310610253303012367 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_TIMER__ #define __GSHUTDOWN_TIMER__ #include guint time_left(); gboolean timer_notify(); guint nb_days_in_month(guint month, guint year); #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/action.c0000644000175000017500000001427310633110422012525 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include #include #include #include "action.h" #include "misc.h" #include "gui.h" #include "values.h" #include "gdm.h" /* Run the action now ! */ static gboolean action_run_command(Action *action); /* * Constructor. */ Action *action_new() { Action *ptr = g_malloc(sizeof(Action)); ptr->type = ACTION_TYPE_NONE; ptr->command = NULL; return ptr; } /* * Destructor. */ void action_destroy(Action *action) { if(action->command != NULL) g_free(action->command); else g_free(action); } /* * Read the action type (see ActionType * in action.h) */ ActionType action_get_type(Action *action) { return action->type; } /* * Modity the action type (see ActionType * in action.h) */ void action_set_type(Action *action, ActionType type) { action->type = type; } /* * Change the custom command. * * NB: "command" string is duplicated with g_strdup. */ void action_set_command(Action *action, const gchar *command) { if(action->command != NULL) g_free(action->command); action->command = g_strdup(command); } /* * Return the custom command. * * Warning: the returned pointer is internal, DO * NOT FREE IT! */ const gchar *action_get_command(Action *action) { return (action->command) ? action->command : ""; } /* * Kill a session by using the PID in the environment * variable SESSION_MANAGER. */ void kill_session() { const gchar *session_manager = g_getenv("SESSION_MANAGER"); if(session_manager) { gchar **splited = g_strsplit(session_manager, "/", 0); if(splited != NULL) { guint length = g_strv_length(splited); if(length > 0) { pid_t pid = atoi(splited[length - 1]); if(pid != 0) kill(pid, SIGQUIT); } g_strfreev(splited); } } } /* * Run the actual action. * * Return TRUE on error. */ gboolean action_run(Action *action) { Desktop current_desktop = values.detected_desktop; DisplayManager current_display_manager = values.detected_display_manager; /* Command before action */ if(values.command_before_action_enabled == TRUE) run_command(values.command_before_action); /* Method = command */ if(values.action_method == ACTION_METHOD_CUSTOM_COMMAND || action_get_type(action) == ACTION_TYPE_COMMAND) { return action_run_command(action); } /* Method = action selected manually */ if(values.action_method == ACTION_METHOD_MANUAL) { if(values.selected_desktop != DESKTOP_AUTO) current_desktop = values.selected_desktop; if(values.selected_display_manager != DISPLAY_MANAGER_AUTO) current_display_manager = values.selected_display_manager; } /* Not a root command ? Quit here, it's not useful to talk with the * session manager now. */ if(action_get_type(action) == ACTION_TYPE_SHUTDOWN || action_get_type(action) == ACTION_TYPE_RESTART) { /* WARNING: After this line, its important to use * current_display_manager and current_desktop */ if(current_desktop == DESKTOP_NONE || current_display_manager == DISPLAY_MANAGER_NONE) return TRUE; /* GDM */ if(current_display_manager == DISPLAY_MANAGER_GDM) { char action_str[256]; char command[30]; if(action_get_type(action) == ACTION_TYPE_SHUTDOWN) snprintf(command, 29, "SET_LOGOUT_ACTION HALT"); else if(action_get_type(action) == ACTION_TYPE_RESTART) snprintf(command, 29, "SET_LOGOUT_ACTION REBOOT"); else command[0] == 0; if(*command) { snprintf(action_str, 255, "gdmflexiserver -a --command=\"%s\"", command); run_command(action_str); } /* TODO code remplacé en attendant une solution ! GdmLogoutAction logout_action = GDM_LOGOUT_ACTION_NONE; if(action_get_type(action) == ACTION_TYPE_SHUTDOWN) logout_action = GDM_LOGOUT_ACTION_SHUTDOWN; else if(action_get_type(action) == ACTION_TYPE_RESTART) logout_action = GDM_LOGOUT_ACTION_REBOOT; gdm_set_logout_action(logout_action); */ } /* KDM */ else if(current_display_manager == DISPLAY_MANAGER_KDM) { if(action_get_type(action) == ACTION_TYPE_SHUTDOWN) run_command("kdmctl shutdown halt forcenow"); else if(action_get_type(action) == ACTION_TYPE_RESTART) run_command("kdmctl shutdown reboot forcenow"); } } /* Desktop */ /* GNOME */ if(current_desktop == DESKTOP_GNOME) /*TODO remplacer gnome-session-save par dbus */ kill_session(); /* KDE */ else if(current_desktop == DESKTOP_KDE) return run_command("kdeinit_shutdown"); /* XFCE */ else if(current_desktop == DESKTOP_XFCE) kill_session(); return TRUE; /* Error */ } /* * Run the custom command (action->command). * * Return TRUE on error. */ static gboolean action_run_command(Action *action) { if(action->command == NULL) return TRUE; return run_command(action->command); } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/action.h0000644000175000017500000000365010610253304012531 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_ACTION__ #define __GSHUTDOWN_ACTION__ #include typedef enum { ACTION_TYPE_NONE = 0, ACTION_TYPE_SHUTDOWN = 1, ACTION_TYPE_RESTART = 2, ACTION_TYPE_LOGOUT = 3, ACTION_TYPE_COMMAND = 4 } ActionType; /* Structure for one action */ typedef struct { ActionType type; gchar *command; /* command launched if type == ACTION_TYPE_TYPE */ } Action; typedef enum { ACTION_METHOD_AUTODETECT = 0, ACTION_METHOD_CUSTOM_COMMAND = 1, ACTION_METHOD_MANUAL = 2 /* choose manually if it's KDE, GNOME, XFCE, GDM, KDM... */ } ActionMethod; /* Constructor/Destructor */ Action *action_new(); void action_destroy(Action *action); /* Launch the default action */ gboolean action_run(Action *action); /* Read/Write the default action */ ActionType action_get_type(Action *action); void action_set_type(Action *action, ActionType type); /* Read/write the custom command */ void action_set_command(Action *action, const gchar *command); const gchar *action_get_command(Action *action); #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/gui.c0000644000175000017500000007001710623560367012052 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "main.h" #include "misc.h" #include "gui.h" #include "callback.h" #include "eggtrayicon.h" #ifdef LIBNOTIFY_ENABLED #include #endif /* Variables {{{1 */ /* Default values (in the arguments) */ ActionType default_action_type = ACTION_TYPE_SHUTDOWN; /* the xml data */ GladeXML *glade_xml = NULL; /* Main Window */ GtkWidget *vbox_select_time = NULL; GtkSpinButton *spin_hour = NULL; GtkSpinButton *spin_minute = NULL; GtkCalendar *calendar = NULL; GtkComboBox *combo_action = NULL; GtkButton *btn_actual_time = NULL; GtkComboBox *combo_extras = NULL; GtkButton *btn_start = NULL; /* Another widgets */ GtkWidget *about_dialog = NULL; GtkWidget *combo_method_manual_desktop = NULL; GtkWidget *combo_method_manual_display_manager = NULL; GtkWidget *method_manual_dialog = NULL; GtkWidget *radio_action_method_autodetect = NULL; GtkWidget *radio_action_method_manual = NULL; GtkWidget *radio_action_method_custom_command = NULL; GtkWidget *btn_action_method_manual = NULL; GtkWidget *check_command_before_action = NULL; GtkWidget *entry_command_before_action = NULL; GtkWidget *btn_check_system = NULL; GtkWidget *check_iconify = NULL; GtkWidget *label_action_description = NULL; GtkWidget *btn_config_shutdown = NULL; GtkWidget *btn_config_restart = NULL; GtkWidget *btn_config_logout = NULL; GtkWidget *entry_action_custom_command = NULL; GtkDialog *config_action_dialog = NULL; GtkWidget *dialog = NULL; GtkWidget *main_window = NULL; GtkComboBox *combo_time_type = NULL; GtkWidget *mnu_tray_cancel = NULL; GtkWidget *tray_eventbox = NULL; GtkTooltips *tray_tooltips = NULL; GtkButton *btn_test_notifications = NULL; GtkCheckButton *check_show_notifications = NULL; GtkWidget *radio_systray_always = NULL; GtkWidget *radio_systray_if_active = NULL; GtkWidget *radio_systray_never = NULL; EggTrayIcon *tray_icon = NULL; GtkWidget *config_dialog = NULL; GtkWidget *tray_image = NULL; GtkWidget *notification_date_dialog = NULL; GtkButton *btn_notification_date = NULL; GtkComboBox *notification_date_combo = NULL; GtkButton *notification_date_add = NULL; GtkButton *notification_date_remove = NULL; GtkSpinButton *spin_notification_hour = NULL, *spin_notification_minute = NULL, *spin_notification_second = NULL; /* }}}1 */ /* * Initialisation of the graphical user interface. * * It returne TRUE on error. */ gboolean gui_init(int argc, char **argv) { time_t t = time(0); struct tm *tm_time; gtk_init(&argc, &argv); #ifdef LIBNOTIFY_ENABLED notify_init(PACKAGE); #endif glade_xml = gui_load_glade("gshutdown.glade"); if(glade_xml == NULL) return TRUE; /* Error */ /* Call timer_day at 00:00 */ tm_time = localtime(&t); g_timeout_add((24 - tm_time->tm_hour) * 3600000 - tm_time->tm_min * 60000 - tm_time->tm_sec * 1000, timer_day, NULL); /* TODO ve */ return gui_connect_all(); } /* * TODO description */ gboolean timer_day() { gui_mark_today(); g_timeout_add(86400000, gui_mark_today, NULL); return FALSE; } /* * Mark the actual day in the interface. */ gboolean gui_mark_today() { time_t t = time(0); struct tm *tm_time = localtime(&t); gtk_calendar_clear_marks(calendar); if(values.time_date.year == tm_time->tm_year + 1900 && values.time_date.month == tm_time->tm_mon) gtk_calendar_mark_day(calendar, tm_time->tm_mday); return TRUE; } /* * Show a visual notification. */ void gui_notification(gchar *message, NotificationDelay type_delay, NotificationIcon show_icon) { #ifdef LIBNOTIFY_ENABLED NotifyNotification *notify; gint delay; gchar *path; GdkPixbuf *pixbuf; GtkWidget *widget = NULL; if(values.show_notifications == FALSE) return; if(gui_systray_icon_is_showed()) widget = GTK_WIDGET(tray_icon); notify = notify_notification_new("GShutdown", message, NULL, GTK_WIDGET(widget)); if(show_icon == NOTIFICATION_ICON_TIME) { path = data_path("clock.png"); if(path != NULL) { pixbuf = gdk_pixbuf_new_from_file_at_scale(path, 48, 48, TRUE, NULL); notify_notification_set_icon_from_pixbuf(notify, pixbuf); } } if(type_delay == NOTIFICATION_TYPE_IMPORTANT) delay = 5500; else /* NOTIFICATION_TYPE_FAST_INFO */ delay = 4000; notify_notification_set_timeout(notify, delay); notify_notification_add_action(notify, "default", "Open main window", (NotifyActionCallback)on_notify_click, NULL, NULL); notify_notification_show(notify, NULL); #endif } /* * Set the actual time in the spins. */ void gui_set_actual_time(gboolean modify_time, gboolean modify_date) { time_t t = time(0); struct tm *tm_time = localtime(&t); /* Hour, Minute */ if(modify_time == TRUE) { gtk_spin_button_set_value(spin_hour, tm_time->tm_hour); gtk_spin_button_set_value(spin_minute, tm_time->tm_min); } if(modify_date == TRUE) { /* Year, Month */ gtk_calendar_select_month(calendar, tm_time->tm_mon, tm_time->tm_year + 1900); /* Day */ gtk_calendar_select_day(calendar, tm_time->tm_mday); } gtk_calendar_mark_day (calendar, tm_time->tm_mday); } /* * Clean the list of notification date */ void gui_remove_notification_date() { gsize i; for(i=0; i < *values.time_when_notify.nb; i++) gtk_combo_box_remove_text(GTK_COMBO_BOX(notification_date_combo), 0); } /* * Update notification date from current configuration */ void gui_set_notification_date() { gchar text[100]; gsize cur_lec; guint seconds = 0; guint minutes = 0; guint hours = 0; gui_remove_notification_date(); for(cur_lec = 0; cur_lec < *values.time_when_notify.nb; cur_lec++) { seconds = *(values.time_when_notify.time + cur_lec); hours = seconds / 3600; sprintf(text, " "); if(hours > 0) { sprintf(text, N_("%s%u hour", "%s%u hours", hours), " ", hours); seconds -= 3600 * hours; } minutes = seconds / 60; if(minutes > 0) { sprintf(text, N_("%s%u minute", "%s%u minutes", minutes), " ", minutes); seconds -= 60 * minutes; } if(seconds > 0) { sprintf(text, N_("%s%u second", "%s%u seconds", seconds), " ", seconds); } gtk_combo_box_append_text(GTK_COMBO_BOX(notification_date_combo), text); } } /* * Connect all widgets inside 'glade_xml', with it respective functions. * It build and show some widgets (like the tray icon). * * It return TRUE on error. */ gboolean gui_connect_all() { GtkWidget *widget = NULL; GtkWidget *image = NULL; /* Main window */ main_window = glade_xml_get_widget(glade_xml, "main_window"); combo_time_type = GTK_COMBO_BOX(glade_xml_get_widget(glade_xml, "combo_time_type")); gtk_combo_box_append_text(combo_time_type, _("At date and time")); gtk_combo_box_append_text(combo_time_type, _("After a delay")); gtk_combo_box_append_text(combo_time_type, _("Now")); btn_start = GTK_BUTTON(glade_xml_get_widget(glade_xml, "btn_start")); vbox_select_time = glade_xml_get_widget(glade_xml, "vbox_select_time"); btn_actual_time = GTK_BUTTON(glade_xml_get_widget(glade_xml, "btn_actual_time")); spin_hour = GTK_SPIN_BUTTON(glade_xml_get_widget(glade_xml, "spin_hour")); spin_minute = GTK_SPIN_BUTTON(glade_xml_get_widget(glade_xml, "spin_minute")); calendar = GTK_CALENDAR(glade_xml_get_widget(glade_xml, "calendar")); combo_action = GTK_COMBO_BOX(glade_xml_get_widget(glade_xml, "combo_action")); gtk_combo_box_append_text(combo_action, _("Turn off the computer")); gtk_combo_box_append_text(combo_action, _("Restart computer")); gtk_combo_box_append_text(combo_action, _("End current session")); gtk_combo_box_set_active(combo_action, 0); #ifdef DEBUG /* In devel... */ gtk_combo_box_append_text(combo_action, _("Extras")); #endif combo_extras = GTK_COMBO_BOX(glade_xml_get_widget(glade_xml, "combo_extras")); gtk_combo_box_append_text(combo_extras, _("Custom command...")); /* Dialog */ about_dialog = glade_xml_get_widget(glade_xml, "about_dialog"); gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about_dialog), "GShutdown " VERSION); /* Configuration dialog */ config_dialog = glade_xml_get_widget(glade_xml, "config_dialog"); g_signal_connect(G_OBJECT(config_dialog), "delete-event", G_CALLBACK(on_config_dialog_delete_event), NULL); widget = glade_xml_get_widget(glade_xml, "btn_cfg_close"); g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(on_btn_cfg_close), NULL); check_iconify = glade_xml_get_widget(glade_xml, "check_iconify"); g_signal_connect(G_OBJECT(check_iconify), "toggled", G_CALLBACK(on_check_iconify), NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_iconify), FALSE); radio_systray_always = glade_xml_get_widget(glade_xml, "radio_systray_always"); radio_systray_if_active = glade_xml_get_widget(glade_xml, "radio_systray_if_active"); radio_systray_never = glade_xml_get_widget(glade_xml, "radio_systray_never"); g_signal_connect(G_OBJECT(radio_systray_always), "toggled", G_CALLBACK(on_radio_systray_always), NULL); g_signal_connect(G_OBJECT(radio_systray_if_active), "toggled", G_CALLBACK(on_radio_systray_if_active), NULL); g_signal_connect(G_OBJECT(radio_systray_never), "toggled", G_CALLBACK(on_radio_systray_never), NULL); btn_test_notifications = GTK_BUTTON(glade_xml_get_widget(glade_xml, "btn_test_notifications")); g_signal_connect(G_OBJECT(btn_test_notifications), "clicked", G_CALLBACK(on_btn_test_notifications), NULL); btn_notification_date = GTK_BUTTON(glade_xml_get_widget(glade_xml, "btn_notification_date")); g_signal_connect(G_OBJECT(btn_notification_date), "clicked", G_CALLBACK(on_btn_notification_date), NULL); check_show_notifications = GTK_CHECK_BUTTON(glade_xml_get_widget(glade_xml, "check_show_notifications")); g_signal_connect(G_OBJECT(check_show_notifications), "toggled", G_CALLBACK(on_check_show_notifications), NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_show_notifications), TRUE); /* DIALOG: Notification date */ notification_date_dialog = glade_xml_get_widget(glade_xml, "notification_date_dialog"); g_signal_connect(G_OBJECT(notification_date_dialog), "delete-event", G_CALLBACK(gtk_widget_hide_on_delete), NULL); widget = glade_xml_get_widget(glade_xml, "btn_notification_close"); g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(on_btn_notification_date_close), notification_date_dialog); notification_date_combo = GTK_COMBO_BOX(glade_xml_get_widget(glade_xml, "notification_date_combo")); notification_date_add = GTK_BUTTON(glade_xml_get_widget(glade_xml, "notification_date_add")); g_signal_connect(G_OBJECT(notification_date_add), "clicked", G_CALLBACK(on_btn_notification_date_add), NULL); notification_date_remove = GTK_BUTTON(glade_xml_get_widget(glade_xml, "notification_date_remove")); g_signal_connect(G_OBJECT(notification_date_remove), "clicked", G_CALLBACK(on_btn_notification_date_remove), NULL); spin_notification_hour = GTK_SPIN_BUTTON(glade_xml_get_widget(glade_xml, "spin_notification_hour")); spin_notification_minute = GTK_SPIN_BUTTON(glade_xml_get_widget(glade_xml, "spin_notification_minute")); spin_notification_second = GTK_SPIN_BUTTON(glade_xml_get_widget(glade_xml, "spin_notification_second")); /* Check system dialog */ dialog = glade_xml_get_widget(glade_xml, "check_system_dialog"); g_signal_connect(G_OBJECT(dialog), "delete-event", G_CALLBACK(gtk_widget_hide_on_delete), NULL); btn_check_system = glade_xml_get_widget(glade_xml, "btn_check_system"); g_signal_connect(G_OBJECT(btn_check_system), "clicked", G_CALLBACK(on_btn_check_system), dialog); widget = glade_xml_get_widget(glade_xml, "btn_check_system_close"); g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(on_btn_check_system_close), dialog); values_action_method_autodetect(); /* Detect Disp. Manager & Desktop */ { GtkWidget *desktop; GtkWidget *display; gchar *desktop_text = _("Not detected!"); gchar *display_text = desktop_text; desktop = glade_xml_get_widget(glade_xml, "label_check_system_desktop"); display = glade_xml_get_widget(glade_xml, "label_check_system_display_manager"); /* Display Manager */ if(values.detected_display_manager == DISPLAY_MANAGER_GDM) display_text = "GDM"; else if(values.detected_display_manager == DISPLAY_MANAGER_KDM) display_text = "KDM"; /* Desktop */ if(values.detected_desktop == DESKTOP_GNOME) desktop_text = "GNOME"; else if(values.detected_desktop == DESKTOP_KDE) desktop_text = "KDE"; else if(values.detected_desktop == DESKTOP_XFCE) desktop_text = "XFCE"; gtk_label_set_text(GTK_LABEL(desktop), desktop_text); gtk_label_set_text(GTK_LABEL(display), display_text); } /* Config Action dialog */ config_action_dialog = GTK_DIALOG(glade_xml_get_widget(glade_xml, "config_action_dialog")); g_signal_connect(G_OBJECT(config_action_dialog), "delete-event", G_CALLBACK(on_config_action_dialog_delete_event), NULL); btn_config_shutdown = glade_xml_get_widget(glade_xml, "btn_config_shutdown"); g_signal_connect(G_OBJECT(btn_config_shutdown), "clicked", G_CALLBACK(on_btn_config_action), NULL); widget = glade_xml_get_widget(glade_xml, "btn_config_action_close"); g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(on_btn_config_action_close), NULL); btn_config_restart = glade_xml_get_widget(glade_xml, "btn_config_restart"); g_signal_connect(G_OBJECT(btn_config_restart), "clicked", G_CALLBACK(on_btn_config_action), NULL); btn_config_logout = glade_xml_get_widget(glade_xml, "btn_config_logout"); g_signal_connect(G_OBJECT(btn_config_logout), "clicked", G_CALLBACK(on_btn_config_action), NULL); image = glade_xml_get_widget(glade_xml, "image_command_before_action"); check_command_before_action = glade_xml_get_widget(glade_xml, "check_command_before_action"); g_signal_connect(G_OBJECT(check_command_before_action), "toggled", G_CALLBACK(on_check_command_before_action), NULL); entry_command_before_action = glade_xml_get_widget(glade_xml, "entry_command_before_action"); g_signal_connect(G_OBJECT(entry_command_before_action), "changed", G_CALLBACK(on_entry_command_complete), image); on_check_command_before_action(check_command_before_action, NULL); on_entry_command_complete(entry_command_before_action, image); image = glade_xml_get_widget(glade_xml, "image_action_custom_command"); entry_action_custom_command = glade_xml_get_widget(glade_xml, "entry_action_custom_command"); g_signal_connect(G_OBJECT(entry_action_custom_command), "changed", G_CALLBACK(on_entry_command_complete), image); on_entry_command_complete(entry_action_custom_command, image); label_action_description = glade_xml_get_widget(glade_xml, "label_action_description"); btn_action_method_manual = glade_xml_get_widget(glade_xml, "btn_action_method_manual"); g_signal_connect(G_OBJECT(btn_action_method_manual), "clicked", G_CALLBACK(on_btn_action_method_manual), NULL); radio_action_method_autodetect = glade_xml_get_widget(glade_xml, "radio_action_method_autodetect"); radio_action_method_custom_command = glade_xml_get_widget(glade_xml, "radio_action_method_custom_command"); radio_action_method_manual = glade_xml_get_widget(glade_xml, "radio_action_method_manual"); g_signal_connect(G_OBJECT(radio_action_method_autodetect), "toggled", G_CALLBACK(on_radio_action_method), NULL); g_signal_connect(G_OBJECT(radio_action_method_manual), "toggled", G_CALLBACK(on_radio_action_method), NULL); g_signal_connect(G_OBJECT(radio_action_method_custom_command), "toggled", G_CALLBACK(on_radio_action_method), NULL); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio_action_method_autodetect), 0); on_radio_action_method(radio_action_method_autodetect, NULL); /* DIALOG: Select the action method manually */ method_manual_dialog = glade_xml_get_widget(glade_xml, "method_manual_dialog"); g_signal_connect(G_OBJECT(method_manual_dialog), "delete-event", G_CALLBACK(gtk_widget_hide_on_delete), NULL); widget = glade_xml_get_widget(glade_xml, "btn_method_manual_close"); g_signal_connect(G_OBJECT(widget), "clicked", G_CALLBACK(on_btn_method_manual_close), NULL); widget = glade_xml_get_widget(glade_xml, "combo_method_manual_display_manager"); g_signal_connect(G_OBJECT(widget), "changed", G_CALLBACK(on_combo_method_manual_display_manager), NULL); gtk_combo_box_append_text(GTK_COMBO_BOX(widget), _("Autodetect")); gtk_combo_box_append_text(GTK_COMBO_BOX(widget), "GDM"); gtk_combo_box_append_text(GTK_COMBO_BOX(widget), "KDM"); gtk_combo_box_set_active(GTK_COMBO_BOX(widget), 0); on_combo_method_manual_display_manager(widget, NULL); widget = glade_xml_get_widget(glade_xml, "combo_method_manual_desktop"); g_signal_connect(G_OBJECT(widget), "changed", G_CALLBACK(on_combo_method_manual_desktop), NULL); gtk_combo_box_append_text(GTK_COMBO_BOX(widget), _("Autodetect")); gtk_combo_box_append_text(GTK_COMBO_BOX(widget), "GNOME"); gtk_combo_box_append_text(GTK_COMBO_BOX(widget), "KDE"); gtk_combo_box_append_text(GTK_COMBO_BOX(widget), "XFCE"); gtk_combo_box_set_active(GTK_COMBO_BOX(widget), 0); on_combo_method_manual_desktop(widget, NULL); combo_method_manual_desktop = glade_xml_get_widget(glade_xml, "combo_method_manual_desktop"); g_signal_connect(G_OBJECT(combo_method_manual_desktop), "changed", G_CALLBACK(on_combo_method_manual_desktop), NULL); combo_method_manual_display_manager = glade_xml_get_widget(glade_xml, "combo_method_manual_display_manager"); g_signal_connect(G_OBJECT(combo_method_manual_display_manager), "changed", G_CALLBACK(on_combo_method_manual_display_manager), NULL); /* hide label config notification */ #ifndef LIBNOTIFY_ENABLED widget = glade_xml_get_widget(glade_xml, "frame_config_notifications"); gtk_widget_hide(widget); #endif /* Modifications */ gtk_combo_box_set_active(combo_time_type, 0); /* Select the item 0 */ gui_set_actual_time(TRUE, TRUE); /* Set the actual time/date */ gtk_widget_grab_focus(GTK_WIDGET(calendar)); /* Show all */ gtk_widget_show(main_window); if(gui_systray_icon(main_window)) return TRUE; return FALSE; } /* * Hide/Show the systray icon. */ void gui_systray_icon_hide() { gtk_widget_hide_all(GTK_WIDGET(tray_icon)); } void gui_systray_icon_show() { gtk_widget_show_all(GTK_WIDGET(tray_icon)); } gboolean gui_systray_icon_is_showed() { return GTK_WIDGET_VISIBLE(GTK_WIDGET(tray_icon)); } /* * Create an icon in the system tray. * * It return TRUE on error. */ gboolean gui_systray_icon() { gchar *path = NULL; /* Tray initialization */ tray_icon = egg_tray_icon_new(PACKAGE); tray_eventbox = gtk_event_box_new(); g_signal_connect(tray_eventbox, "button_press_event", G_CALLBACK(on_tray_icon), main_window); gtk_container_add(GTK_CONTAINER(tray_icon), tray_eventbox); g_object_ref(G_OBJECT(tray_icon)); /* Image loading */ path = data_path("tray_icon.png"); if(path == NULL) { GtkWidget *dialog; dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("%s doesn't exist.\n"), "tray_icon.png"); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); return TRUE; } tray_image = gtk_image_new_from_file(path); gtk_container_add(GTK_CONTAINER(tray_eventbox), tray_image); tray_tooltips = gtk_tooltips_new(); gtk_tooltips_set_tip(tray_tooltips, tray_eventbox, _("No action scheduled") , NULL); g_free(path); return FALSE; } /* * Load glade file. * * NULL are returned if the filename doesn't * exist. */ GladeXML *gui_load_glade(gchar *filename) { gchar *path = NULL; GladeXML *glade_xml = NULL; /* Load glade file */ path = data_path(filename); if(path == NULL) { GtkWidget *dialog; dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("%s doesn't exist.\n"), filename); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); return NULL; } glade_xml = glade_xml_new(path, NULL, NULL); g_free(path); glade_xml_signal_autoconnect(glade_xml); return glade_xml; } /* * Create the tray icon menu. */ GtkWidget *create_mnu_tray_action_now(void) { GtkWidget *image, *item; GtkWidget *menu = gtk_menu_new(); /* Macros */ #define ITEM(name, stock, callback) \ item = gtk_image_menu_item_new_with_mnemonic(name); \ gtk_widget_show(item); \ gtk_container_add(GTK_CONTAINER(menu), item); \ g_signal_connect(G_OBJECT(item), "activate", \ G_CALLBACK(callback), NULL); \ image = gtk_image_new_from_stock(stock, GTK_ICON_SIZE_MENU); \ gtk_widget_show(image); \ gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), image); \ /* Items */ ITEM(_("Shutdown"), "gtk-stop", on_shutdown_now); ITEM(_("Reboot"), "gtk-refresh", on_reboot_now); ITEM(_("Logout"), "gtk-disconnect", on_logout_now); #undef ITEM return menu; } /* * Generate TrayMenu. * * NOTE: Must be called one time. Because mnu_tray_cancel are global. */ GtkMenu *traymenu() { GtkWidget *item, *image; GtkWidget *menu = gtk_menu_new(); GtkAccelGroup *accel_group = gtk_accel_group_new(); /* Macros */ #define ITEM(name, stock, callback) \ if(stock == NULL && name == NULL) { \ item = gtk_separator_menu_item_new(); \ gtk_widget_show(item); \ gtk_container_add(GTK_CONTAINER(menu), item); \ gtk_widget_set_sensitive(item, FALSE); \ } else { \ if(stock == NULL && name != NULL) \ item = gtk_menu_item_new_with_mnemonic(name); \ else { \ if(name == NULL) \ item = gtk_image_menu_item_new_from_stock(stock, accel_group); \ else \ item = gtk_image_menu_item_new_with_mnemonic(name); \ } \ gtk_widget_show(item); \ gtk_container_add(GTK_CONTAINER(menu), item); \ if(callback != NULL) \ g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(callback), NULL); \ if(stock != NULL) { \ image = gtk_image_new_from_stock(stock, GTK_ICON_SIZE_MENU); \ gtk_widget_show(image); \ gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), image); \ } \ } #define SEPARATOR() ITEM(NULL, NULL, NULL) #define STOCK_ITEM(stock, callback) ITEM(NULL, stock, callback) /* Items */ ITEM(_("Immediate action"), NULL, NULL); gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), create_mnu_tray_action_now()); ITEM(_("Cancel current action"), "gtk-cancel", on_mnu_tray_cancel); mnu_tray_cancel = item; gtk_widget_set_sensitive(mnu_tray_cancel, values.action_scheduled); STOCK_ITEM("gtk-preferences", NULL); g_signal_connect(G_OBJECT(item), "activate", G_CALLBACK(on_mnu_config_activate), dialog); SEPARATOR(); STOCK_ITEM("gtk-quit", on_mnu_quit_activate); #undef STOCK_ITEM #undef ITEM #undef SEPARATOR return GTK_MENU(menu); } gboolean confirm_dialog(Action *id_action) { GtkWidget *dialog; gint response; gchar *message; if(detect_error_dialog()) return FALSE; /* Message dialog */ if(id_action == values.action_shutdown) message = _("Are you sure you want to shutdown your computer now ?"); else if(id_action == values.action_restart) message = _("Are you sure you want to restart your computer now ?"); else if(id_action == values.action_logout) message = _("Are you sure you want to logout from your session now ?"); dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, message); response = gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(GTK_WIDGET(dialog)); if(response == GTK_RESPONSE_YES) return TRUE; return FALSE; } gboolean detect_error_dialog() { if(values.action_method == ACTION_METHOD_AUTODETECT) { GtkWidget *dialog; gchar *message = ""; if(values.current_action != values.action_logout && values.detected_display_manager == DISPLAY_MANAGER_NONE) { message = _("GShutdown was unable to detect your display manager. " "Currently, GShutdown only supports GDM and KDM.\n\n" "Go to the configuration menu and specify the correct method to do that."); } else if(values.detected_desktop == DESKTOP_NONE) message = _("GShutdown was unable to detect your desktop. " "Currently, GShutdown only supports GNOME and KDE.\n\n" "Go to the configuration menu and specify the correct method to do that."); else return FALSE; dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, message); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); return TRUE; } return FALSE; } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8:foldmethod=indent */ gshutdown-0.2/src/gui.h0000644000175000017500000000746110610253303012043 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_GUI__ #define __GSHUTDOWN_GUI__ #include #include #include "values.h" /* Variables {{{1 */ extern GladeXML *glade_xml; /* main window */ extern GtkWidget *vbox_select_time; extern GtkSpinButton *spin_hour; extern GtkSpinButton *spin_minute; extern GtkCalendar *calendar; extern GtkComboBox *combo_action; extern GtkButton *btn_actual_time; extern GtkComboBox *combo_extras; extern GtkButton *btn_start; /* another */ extern GtkWidget *about_dialog; extern GtkWidget *combo_method_manual_desktop; extern GtkWidget *combo_method_manual_display_manager; extern GtkWidget *radio_action_method_autodetect; extern GtkWidget *radio_action_method_manual; extern GtkWidget *radio_action_method_custom_command; extern GtkWidget *check_command_before_action; extern GtkWidget *method_manual_dialog; extern GtkWidget *btn_action_method_manual; extern GtkButton *btn_test_notifications; extern GtkWidget *main_window; extern GtkComboBox *combo_time_type; extern GtkWidget *mnu_tray_cancel; extern GtkTooltips *tray_tooltips; extern GtkCheckButton *check_show_notifications; extern GtkWidget *radio_systray_always; extern GtkWidget *radio_systray_if_active; extern GtkWidget *radio_systray_never; extern GtkDialog *config_action_dialog; extern GtkWidget *tray_eventbox; extern GtkWidget *entry_action_custom_command; extern GtkWidget *btn_config_shutdown; extern GtkWidget *btn_config_restart; extern GtkWidget *btn_config_logout; extern GtkWidget *label_action_description; extern GtkWidget *check_iconify; extern GtkWidget *config_dialog; extern GtkWidget *btn_check_system; extern GtkWidget *tray_image; extern GtkWidget *entry_command_before_action; extern GtkWidget *notification_date_dialog; extern GtkComboBox *notification_date_combo; extern GtkButton *notification_date_add; extern GtkButton *notification_date_remove; extern GtkSpinButton *spin_notification_hour, *spin_notification_minute, *spin_notification_second; /* }}}1 */ /* Prototypes {{{1 */ gboolean confirm_dialog(Action *id_action); gboolean gui_init(int argc, char **argv); gboolean gui_connect_all(); gboolean gui_systray_icon(); void gui_set_actual_time(gboolean, gboolean); void gui_set_time(guint id); GladeXML *gui_load_glade(gchar *file); GtkMenu* traymenu(); GtkWidget* create_mnu_tray_action_now (void); void gui_set_time(guint id); void gui_systray_icon_hide(); void gui_systray_icon_show(); gboolean gui_systray_icon_is_showed(); gboolean timer_day(); gboolean gui_mark_today(); gboolean detect_error_dialog(); gboolean handle_arguments(int argc, char **argv); void gui_remove_notification_date(); void gui_set_notification_date(); /* }}}1 */ typedef enum { NOTIFICATION_TYPE_IMPORTANT = 0, NOTIFICATION_TYPE_FAST_INFO = 1 } NotificationDelay; typedef enum { NOTIFICATION_ICON_NONE = 0, NOTIFICATION_ICON_TIME = 1 } NotificationIcon; void gui_notification(gchar *message, NotificationDelay type_delay, NotificationIcon show_icon); #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8:foldmethod=marker */ gshutdown-0.2/src/main.c0000644000175000017500000001465110637465652012222 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include #include #include #include /* g_atexit() */ #include "main.h" #include "gui.h" #include "misc.h" #include "values.h" #include "bacon.h" #include "debug.h" #include "args.h" /* Variables */ static BaconMessageConnection *bacon_connection = NULL; static gboolean main_loop = FALSE; /* TRUE if gtk_main() is called */ static gboolean values_loaded = FALSE; /* TRUE if all values loaded from cfg */ /* Prototypes */ static void bacon_init(); static void bacon_on_message_received(const char *message, gpointer data); static void signals_init(); static void signals_handle_sigchld(int signal); static void signals_handle_sigint(int signal); static void data_and_gui_init(int argc, char **argv); static void gettext_init(); static void init(int argc, char **argv); /* * Le remplacement de gettext, quand ENABLE_NLS n'est pas à TRUE. */ #ifndef ENABLE_NLS char *internal_ngettext(const char *msgid, const char *msgid_plural, unsigned long int n) { return (n <= 1) ? msgid : msgid_plural; } #endif /* * Main program */ int main(int argc, char **argv) { /* Initialisation */ init(argc, argv); /* Main */ main_loop = TRUE; gtk_main(); return QUIT_SUCCESS; } /* * General init. */ static void init(int argc, char **argv) { gettext_init(); bacon_init(); signals_init(); data_and_gui_init(argc, argv); } /* * Gettext initialisation. */ static void gettext_init() { #ifdef ENABLE_NLS bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); #endif } /* * Bacon. */ static void bacon_init() { bacon_connection = bacon_message_connection_new("gshutdown"); if(bacon_connection != NULL) { if(bacon_message_connection_get_is_server(bacon_connection) == FALSE) { debug_printf("Still opened\n"); bacon_message_connection_send(bacon_connection, "show"); bacon_message_connection_free(bacon_connection); exit(0); } else { debug_printf("First opening\n"); bacon_message_connection_set_callback(bacon_connection, bacon_on_message_received, NULL); } } else g_warning("Cannot create the 'gshutdown' connection."); } static void bacon_on_message_received(const char *message, gpointer data) { if(g_str_equal(message, "show") == TRUE && main_window != NULL) gtk_widget_show(main_window); } /* * Signals. */ static void signals_init() { signal(SIGINT, signals_handle_sigint); signal(SIGCHLD, signals_handle_sigchld); g_atexit(called_at_exit); } static void signals_handle_sigint(int signal) { debug_printf("SIGINT handled.\n"); called_at_exit(); /* Free memory allocated, before quit */ } static void signals_handle_sigchld(int signal) { debug_printf("SIGCHLD handled.\n"); wait(NULL); } /* * Init variables : default values and GUI. * * It must be called after gettext_init(), * bacon_init() and signals_init(). */ static void data_and_gui_init(int argc, char **argv) { gboolean result; /* Default values of the variables */ values_init(); /* Gui */ if(gui_init(argc, argv) == TRUE) quit(QUIT_FAILURE); /* Load configuration file */ result = values_load(); /* It's important to call values_load() after gui_init() */ if(result == TRUE) { /* Error ? */ GtkWidget *dialog; dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("The configuration cannot be loaded from %s."), "~/.gshutdown"); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); } /* Handle the arguments. It's important to call * this after values_load() */ result = handle_arguments(argc, argv); if(result == TRUE) quit(QUIT_FAILURE); /* Show if needed detection (GDM, KDM, etc.) error warning */ detect_error_dialog(); /* It's ok */ values_loaded = TRUE; } /* * This function is called at quit. */ void called_at_exit() { static gboolean first_call = TRUE; if(first_call) { /* Change the "first call" flag */ first_call = FALSE; /* Save the configuration */ if(values_loaded == TRUE && values_save() == TRUE) { /* The condition "values_loaded == TRUE" is important * if gshutdown cfg cannot be loaded. * * For example, if the user send a SIGINt before * loading of configuration */ GtkWidget *dialog; dialog = gtk_message_dialog_new(GTK_WINDOW(main_window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, _("The configuration cannot be saved in %s."), "~/.gshutdown"); gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); } debug_printf("atexit() function called!\n"); if(main_loop == TRUE) gtk_main_quit(); bacon_message_connection_free(bacon_connection); /* free all alocated variables */ values_destroy(); } } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/main.h0000644000175000017500000000252310637456353012220 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef __GSHUTDOWN_MAIN__ #define __GSHUTDOWN_MAIN__ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef ENABLE_NLS #include #ifdef _ #undef _ #endif #define _(string) dgettext(GETTEXT_PACKAGE, string) #define N_(string1, string2, n) dngettext(GETTEXT_PACKAGE, string1, string2, n) #else #define _(string) (string) #define N_(string1, string2, n) internal_ngettext(string1, string2, n) #endif void called_at_exit(); #endif /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/gdm.c0000644000175000017500000002670610620201430012017 00000000000000/* * gdm-protocol.c: GDM logout action protocol implementation * * Copyright (C) 2005 Raffaele Sandrini * Copyright (C) 2005 Red Hat, Inc. * Copyright (C) 2002, 2003 George Lebl * Copyright (C) 2001 Queen of England, * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program 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 * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * Authors: * Raffaele Sandrini * George Lebl * Mark McLoughlin */ #include #include "gdm.h" #include #include #include #include #include #include #include #include #define GDM_PROTOCOL_UPDATE_INTERVAL 1 /* seconds */ #define GDM_PROTOCOL_SOCKET_PATH "/tmp/.gdm_socket" #define GDM_PROTOCOL_MSG_CLOSE "CLOSE" #define GDM_PROTOCOL_MSG_VERSION "VERSION" #define GDM_PROTOCOL_MSG_AUTHENTICATE "AUTH_LOCAL" #define GDM_PROTOCOL_MSG_QUERY_ACTION "QUERY_LOGOUT_ACTION" #define GDM_PROTOCOL_MSG_SET_ACTION "SET_SAFE_LOGOUT_ACTION" #define GDM_PROTOCOL_MSG_FLEXI_XSERVER "FLEXI_XSERVER" #define GDM_ACTION_STR_NONE "NONE" #define GDM_ACTION_STR_SHUTDOWN "HALT" #define GDM_ACTION_STR_REBOOT "REBOOT" #define GDM_ACTION_STR_SUSPEND "SUSPEND" typedef struct { int fd; char *auth_cookie; GdmLogoutAction available_actions; GdmLogoutAction current_actions; time_t last_update; } GdmProtocolData; static GdmProtocolData gdm_protocol_data = { 0, NULL, GDM_LOGOUT_ACTION_NONE, GDM_LOGOUT_ACTION_NONE, 0 }; static char * gdm_send_protocol_msg (GdmProtocolData *data, const char *msg) { GString *retval; char buf[256]; char *p; int len; p = g_strconcat (msg, "\n", NULL); if (write (data->fd, p, strlen (p)) < 0) { g_free (p); g_warning ("Failed to send message to GDM: %s", g_strerror (errno)); return NULL; } g_free (p); p = NULL; retval = NULL; while ((len = read (data->fd, buf, sizeof (buf) - 1)) > 0) { buf[len] = '\0'; if (!retval) retval = g_string_new (buf); else retval = g_string_append (retval, buf); if ((p = strchr (retval->str, '\n'))) break; } if (p) *p = '\0'; return retval ? g_string_free (retval, FALSE) : NULL; } static char * get_display_number (void) { const char *display_name; char *retval; char *p; display_name = gdk_display_get_name (gdk_display_get_default ()); p = strchr (display_name, ':'); if (!p) return g_strdup ("0"); while (*p == ':') p++; retval = g_strdup (p); p = strchr (retval, '.'); if (p != NULL) *p = '\0'; return retval; } static gboolean gdm_authenticate_connection (GdmProtocolData *data) { #define GDM_MIT_MAGIC_COOKIE_LEN 16 const char *xau_path; FILE *f; Xauth *xau; char *display_number; gboolean retval; if (data->auth_cookie) { char *msg; char *response; msg = g_strdup_printf (GDM_PROTOCOL_MSG_AUTHENTICATE " %s", data->auth_cookie); response = gdm_send_protocol_msg (data, msg); g_free (msg); if (response && !strcmp (response, "OK")) { g_free (response); return TRUE; } else { g_free (response); g_free (data->auth_cookie); data->auth_cookie = NULL; } } if (!(xau_path = XauFileName ())) return FALSE; if (!(f = fopen (xau_path, "r"))) return FALSE; retval = FALSE; display_number = get_display_number (); while ((xau = XauReadAuth (f))) { char buffer[40]; /* 2*16 == 32, so 40 is enough */ char *msg; char *response; int i; if (xau->family != FamilyLocal || strncmp (xau->number, display_number, xau->number_length) || strncmp (xau->name, "MIT-MAGIC-COOKIE-1", xau->name_length) || xau->data_length != GDM_MIT_MAGIC_COOKIE_LEN) { XauDisposeAuth (xau); continue; } for (i = 0; i < GDM_MIT_MAGIC_COOKIE_LEN; i++) g_snprintf (buffer + 2*i, 3, "%02x", (guint)(guchar)xau->data[i]); XauDisposeAuth (xau); msg = g_strdup_printf (GDM_PROTOCOL_MSG_AUTHENTICATE " %s", buffer); response = gdm_send_protocol_msg (data, msg); g_free (msg); if (response && !strcmp (response, "OK")) { data->auth_cookie = g_strdup (buffer); g_free (response); retval = TRUE; break; } g_free (response); } g_free (display_number); fclose (f); return retval; #undef GDM_MIT_MAGIC_COOKIE_LEN } static void gdm_shutdown_protocol_connection (GdmProtocolData *data) { if (data->fd) close (data->fd); data->fd = 0; } static gboolean gdm_init_protocol_connection (GdmProtocolData *data) { struct sockaddr_un addr; char *response; g_assert (data->fd <= 0); data->fd = socket (AF_UNIX, SOCK_STREAM, 0); if (data->fd < 0) { g_warning ("Failed to create GDM socket: %s", g_strerror (errno)); gdm_shutdown_protocol_connection (data); return FALSE; } strcpy (addr.sun_path, GDM_PROTOCOL_SOCKET_PATH); addr.sun_family = AF_UNIX; if (connect (data->fd, (struct sockaddr *) &addr, sizeof (addr)) < 0) { g_warning ("Failed to establish a connection with GDM: %s", g_strerror (errno)); gdm_shutdown_protocol_connection (data); return FALSE; } response = gdm_send_protocol_msg (data, GDM_PROTOCOL_MSG_VERSION); if (!response || strncmp (response, "GDM ", strlen ("GDM ") != 0)) { g_free (response); g_warning ("Failed to get protocol version from GDM"); gdm_shutdown_protocol_connection (data); return FALSE; } g_free (response); if (!gdm_authenticate_connection (data)) { g_warning ("Failed to authenticate with GDM"); gdm_shutdown_protocol_connection (data); return FALSE; } return TRUE; } static void gdm_parse_query_response (GdmProtocolData *data, const char *response) { char **actions; int i; data->available_actions = GDM_LOGOUT_ACTION_NONE; data->current_actions = GDM_LOGOUT_ACTION_NONE; if (strncmp (response, "OK ", 3) != 0) return; response += 3; actions = g_strsplit (response, ";", -1); for (i = 0; actions[i]; i++) { GdmLogoutAction action = GDM_LOGOUT_ACTION_NONE; gboolean selected = FALSE; char *str = actions [i]; int len; len = strlen (str); if (!len) continue; if (str[len - 1] == '!') { selected = TRUE; str[len - 1] = '\0'; } if (!strcmp (str, GDM_ACTION_STR_SHUTDOWN)) action = GDM_LOGOUT_ACTION_SHUTDOWN; else if (!strcmp (str, GDM_ACTION_STR_REBOOT)) action = GDM_LOGOUT_ACTION_REBOOT; else if (!strcmp (str, GDM_ACTION_STR_SUSPEND)) action = GDM_LOGOUT_ACTION_SUSPEND; data->available_actions |= action; if (selected) data->current_actions |= action; } g_strfreev (actions); } static void gdm_update_logout_actions (GdmProtocolData *data) { time_t current_time; char *response; current_time = time (NULL); if (current_time <= (data->last_update + GDM_PROTOCOL_UPDATE_INTERVAL)) return; data->last_update = current_time; if (!gdm_init_protocol_connection (data)) return; if ((response = gdm_send_protocol_msg (data, GDM_PROTOCOL_MSG_QUERY_ACTION))) { gdm_parse_query_response (data, response); g_free (response); } gdm_shutdown_protocol_connection (data); } gboolean gdm_supports_logout_action (GdmLogoutAction action) { gdm_update_logout_actions (&gdm_protocol_data); return (gdm_protocol_data.available_actions & action) != 0; } GdmLogoutAction gdm_get_logout_action (void) { gdm_update_logout_actions (&gdm_protocol_data); return gdm_protocol_data.current_actions; } void gdm_set_logout_action (GdmLogoutAction action) { char *action_str = NULL; char *msg; char *response; if (!gdm_init_protocol_connection (&gdm_protocol_data)) return; switch (action) { case GDM_LOGOUT_ACTION_NONE: action_str = GDM_ACTION_STR_NONE; break; case GDM_LOGOUT_ACTION_SHUTDOWN: action_str = GDM_ACTION_STR_SHUTDOWN; break; case GDM_LOGOUT_ACTION_REBOOT: action_str = GDM_ACTION_STR_REBOOT; break; case GDM_LOGOUT_ACTION_SUSPEND: action_str = GDM_ACTION_STR_SUSPEND; break; } msg = g_strdup_printf (GDM_PROTOCOL_MSG_SET_ACTION " %s", action_str); response = gdm_send_protocol_msg (&gdm_protocol_data, msg); g_free (msg); g_free (response); gdm_protocol_data.last_update = 0; gdm_shutdown_protocol_connection (&gdm_protocol_data); } void gdm_new_login (void) { char *response; if (!gdm_init_protocol_connection (&gdm_protocol_data)) return; response = gdm_send_protocol_msg (&gdm_protocol_data, GDM_PROTOCOL_MSG_FLEXI_XSERVER); g_free (response); gdm_protocol_data.last_update = 0; gdm_shutdown_protocol_connection (&gdm_protocol_data); } gshutdown-0.2/src/gdm.h0000644000175000017500000000317710620201376012032 00000000000000/* * gdm-logout-action.h: GDM logout action protocol implementation * * Copyright (C) 2005 Raffaele Sandrini * Copyright (C) 2005 Red Hat, Inc. * Copyright (C) 2002, 2003 George Lebl * Copyright (C) 2001 Queen of England, * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program 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 * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * Authors: * Raffaele Sandrini * George Lebl * Mark McLoughlin */ #ifndef __GDM_LOGOUT_ACTION_H__ #define __GDM_LOGOUT_ACTION_H__ #include G_BEGIN_DECLS typedef enum { GDM_LOGOUT_ACTION_NONE = 0, GDM_LOGOUT_ACTION_SHUTDOWN = 1 << 0, GDM_LOGOUT_ACTION_REBOOT = 1 << 1, GDM_LOGOUT_ACTION_SUSPEND = 1 << 2 } GdmLogoutAction; gboolean gdm_supports_logout_action (GdmLogoutAction action); void gdm_set_logout_action (GdmLogoutAction action); GdmLogoutAction gdm_get_logout_action (void); void gdm_new_login (void); G_END_DECLS #endif /* __GDM_LOGOUT_ACTION_H__ */ gshutdown-0.2/src/pconfirm.c0000644000175000017500000001076110610253304013065 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or *(at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "main.h" #include "callback.h" #include "pconfirm.h" #include "values.h" #include "gtk/gtk.h" static GtkWidget *cancel_dialog = NULL; gboolean progress_confirm_open = FALSE; gboolean update_progress_bar(gpointer data) { if(gtk_progress_bar_get_fraction(GTK_PROGRESS_BAR(data)) < 0.99) { gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(data), gtk_progress_bar_get_fraction(GTK_PROGRESS_BAR(data)) + 0.01); return TRUE; } else { on_progress_execute(NULL, cancel_dialog); return FALSE; } } void create_cancel_dialog(void) { GtkWidget *vbox1; GtkWidget *hbox4; GtkWidget *image; GtkWidget *label; GtkWidget *vbox3; GtkWidget *progressbar; GtkWidget *hbuttonbox1; GtkWidget *cancel_button; GtkWidget *execute_button; gchar *message; guint *func_ref; cancel_dialog = gtk_window_new(GTK_WINDOW_POPUP); gtk_container_set_border_width(GTK_CONTAINER(cancel_dialog), 20); gtk_window_set_title(GTK_WINDOW(cancel_dialog), _("Warning !")); gtk_window_set_position(GTK_WINDOW(cancel_dialog), GTK_WIN_POS_CENTER); gtk_window_set_resizable(GTK_WINDOW(cancel_dialog), FALSE); gtk_window_set_type_hint(GTK_WINDOW(cancel_dialog), GDK_WINDOW_TYPE_HINT_DESKTOP); vbox1 = gtk_vbox_new(FALSE, 0); gtk_widget_show(vbox1); gtk_container_add(GTK_CONTAINER(cancel_dialog), vbox1); hbox4 = gtk_hbox_new(FALSE, 15); gtk_widget_show(hbox4); gtk_box_pack_start(GTK_BOX(vbox1), hbox4, FALSE, FALSE, 0); image = gtk_image_new_from_stock("gtk-dialog-warning", GTK_ICON_SIZE_DIALOG); gtk_widget_show(image); gtk_box_pack_start(GTK_BOX(hbox4), image, TRUE, TRUE, 0); if(values.current_action == values.action_shutdown) message = _("Warning ! Your computer is going to shutdown now !"); else if(values.current_action == values.action_restart) message = _("Warning ! Your computer is going to restart now !"); else if(values.current_action == values.action_logout) message = _("Warning ! Your going to logout now !"); label = gtk_label_new(message); gtk_widget_show(label); gtk_box_pack_start(GTK_BOX(hbox4), label, FALSE, FALSE, 0); vbox3 = gtk_vbox_new(FALSE, 15); gtk_widget_show(vbox3); gtk_box_pack_start(GTK_BOX(vbox1), vbox3, TRUE, TRUE, 0); progressbar = gtk_progress_bar_new(); gtk_widget_show(progressbar); gtk_box_pack_start(GTK_BOX(vbox3), progressbar, FALSE, FALSE, 0); hbuttonbox1 = gtk_hbutton_box_new(); gtk_widget_show(hbuttonbox1); gtk_box_pack_start(GTK_BOX(vbox3), hbuttonbox1, TRUE, TRUE, 0); cancel_button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); gtk_widget_show(cancel_button); gtk_container_add(GTK_CONTAINER(hbuttonbox1), cancel_button); g_signal_connect(G_OBJECT(cancel_button), "clicked", G_CALLBACK(on_progress_cancel), cancel_dialog); execute_button = gtk_button_new_from_stock(GTK_STOCK_EXECUTE); gtk_widget_show(execute_button); gtk_container_add(GTK_CONTAINER(hbuttonbox1), execute_button); g_signal_connect(G_OBJECT(execute_button), "clicked", G_CALLBACK(on_progress_execute), cancel_dialog); func_ref = g_malloc(sizeof(guint)); *func_ref = g_timeout_add(300, update_progress_bar, progressbar); g_signal_connect(G_OBJECT(cancel_dialog), "destroy", G_CALLBACK(on_progress_destroy), func_ref); gtk_widget_show(cancel_dialog); } void progress_confirm(void) { create_cancel_dialog(); progress_confirm_open = TRUE; } void progress_destroy(void) { gtk_widget_destroy(cancel_dialog); } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/pconfirm.h0000644000175000017500000000204510610253304013066 00000000000000/* * This file is part of gshutdown. * * Copyright (c) 2006-2007, GShutdown Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with This program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ void progress_confirm(void); void create_cancel_dialog (void); void progress_destroy(void); gboolean update_progress_bar (gpointer data); extern gboolean progress_confirm_open; /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/bacon.c0000644000175000017500000002241410610253304012330 00000000000000/* * Copyright (C) 2003 Bastien Nocera * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include #include #include #include #include #include #include #include #include #include #include "bacon.h" #ifndef UNIX_PATH_MAX #define UNIX_PATH_MAX 108 #endif struct BaconMessageConnection { /* A server accepts connections */ gboolean is_server; /* The socket path itself */ char *path; /* File descriptor of the socket */ int fd; /* Channel to watch */ GIOChannel *chan; /* Event id returned by g_io_add_watch() */ int conn_id; /* Connections accepted by this connection */ GSList *accepted_connections; /* callback */ void (*func) (const char *message, gpointer user_data); gpointer data; }; static gboolean test_is_socket (const char *path) { struct stat s; if (stat (path, &s) == -1) return FALSE; if (S_ISSOCK (s.st_mode)) return TRUE; return FALSE; } static gboolean is_owned_by_user_and_socket (const char *path) { struct stat s; if (stat (path, &s) == -1) return FALSE; if (s.st_uid != geteuid ()) return FALSE; if ((s.st_mode & S_IFSOCK) != S_IFSOCK) return FALSE; return TRUE; } static gboolean server_cb (GIOChannel *source, GIOCondition condition, gpointer data); static gboolean setup_connection (BaconMessageConnection *conn) { g_return_val_if_fail (conn->chan == NULL, FALSE); conn->chan = g_io_channel_unix_new (conn->fd); if (!conn->chan) { return FALSE; } g_io_channel_set_line_term (conn->chan, "\n", 1); conn->conn_id = g_io_add_watch (conn->chan, G_IO_IN, server_cb, conn); return TRUE; } static void accept_new_connection (BaconMessageConnection *server_conn) { BaconMessageConnection *conn; int alen; g_return_if_fail (server_conn->is_server); conn = g_new0 (BaconMessageConnection, 1); conn->is_server = FALSE; conn->func = server_conn->func; conn->data = server_conn->data; conn->fd = accept (server_conn->fd, NULL, (guint *)&alen); server_conn->accepted_connections = g_slist_prepend (server_conn->accepted_connections, conn); setup_connection (conn); } static gboolean server_cb (GIOChannel *source, GIOCondition condition, gpointer data) { BaconMessageConnection *conn = (BaconMessageConnection *)data; char *message, *subs, buf; int cd, rc, offset; gboolean finished; offset = 0; if (conn->is_server && conn->fd == g_io_channel_unix_get_fd (source)) { accept_new_connection (conn); return TRUE; } message = g_malloc (1); cd = conn->fd; rc = read (cd, &buf, 1); while (rc > 0 && buf != '\n') { message = g_realloc (message, rc + offset + 1); message[offset] = buf; offset = offset + rc; rc = read (cd, &buf, 1); } if (rc <= 0) { g_io_channel_shutdown (conn->chan, FALSE, NULL); g_io_channel_unref (conn->chan); conn->chan = NULL; close (conn->fd); conn->fd = -1; g_free (message); conn->conn_id = 0; return FALSE; } message[offset] = '\0'; subs = message; finished = FALSE; while (finished == FALSE && *subs != '\0') { if (conn->func != NULL) (*conn->func) (subs, conn->data); subs += strlen (subs) + 1; if (subs - message >= offset) finished = TRUE; } g_free (message); return TRUE; } static char * find_file_with_pattern (const char *dir, const char *pattern) { GDir *filedir; char *found_filename; const char *filename; GPatternSpec *pat; filedir = g_dir_open (dir, 0, NULL); if (filedir == NULL) return NULL; pat = g_pattern_spec_new (pattern); if (pat == NULL) { g_dir_close (filedir); return NULL; } found_filename = NULL; while ((filename = g_dir_read_name (filedir))) { if (g_pattern_match_string (pat, filename)) { char *tmp = g_build_filename (dir, filename, NULL); if (is_owned_by_user_and_socket (tmp)) found_filename = g_strdup (filename); g_free (tmp); } if (found_filename != NULL) break; } g_pattern_spec_free (pat); g_dir_close (filedir); return found_filename; } static char * socket_filename (const char *prefix) { char *pattern, *newfile, *path, *filename; const char *tmpdir; pattern = g_strdup_printf ("%s.%s.*", prefix, g_get_user_name ()); tmpdir = g_get_tmp_dir (); filename = find_file_with_pattern (tmpdir, pattern); if (filename == NULL) { newfile = g_strdup_printf ("%s.%s.%u", prefix, g_get_user_name (), g_random_int ()); path = g_build_filename (tmpdir, newfile, NULL); g_free (newfile); } else { path = g_build_filename (tmpdir, filename, NULL); g_free (filename); } g_free (pattern); return path; } static gboolean try_server (BaconMessageConnection *conn) { struct sockaddr_un uaddr; uaddr.sun_family = AF_UNIX; strncpy (uaddr.sun_path, conn->path, MIN (strlen(conn->path)+1, UNIX_PATH_MAX)); conn->fd = socket (PF_UNIX, SOCK_STREAM, 0); if (bind (conn->fd, (struct sockaddr *) &uaddr, sizeof (uaddr)) == -1) { conn->fd = -1; return FALSE; } listen (conn->fd, 5); if (!setup_connection (conn)) return FALSE; return TRUE; } static gboolean try_client (BaconMessageConnection *conn) { struct sockaddr_un uaddr; uaddr.sun_family = AF_UNIX; strncpy (uaddr.sun_path, conn->path, MIN(strlen(conn->path)+1, UNIX_PATH_MAX)); conn->fd = socket (PF_UNIX, SOCK_STREAM, 0); if (connect (conn->fd, (struct sockaddr *) &uaddr, sizeof (uaddr)) == -1) { conn->fd = -1; return FALSE; } return setup_connection (conn); } BaconMessageConnection * bacon_message_connection_new (const char *prefix) { BaconMessageConnection *conn; g_return_val_if_fail (prefix != NULL, NULL); conn = g_new0 (BaconMessageConnection, 1); conn->path = socket_filename (prefix); if (test_is_socket (conn->path) == FALSE) { if (!try_server (conn)) { bacon_message_connection_free (conn); return NULL; } conn->is_server = TRUE; return conn; } if (try_client (conn) == FALSE) { unlink (conn->path); try_server (conn); if (conn->fd == -1) { bacon_message_connection_free (conn); return NULL; } conn->is_server = TRUE; return conn; } conn->is_server = FALSE; return conn; } void bacon_message_connection_free (BaconMessageConnection *conn) { GSList *child_conn; g_return_if_fail (conn != NULL); /* Only servers can accept other connections */ g_return_if_fail (conn->is_server != FALSE || conn->accepted_connections == NULL); child_conn = conn->accepted_connections; while (child_conn != NULL) { bacon_message_connection_free (child_conn->data); child_conn = g_slist_next (child_conn); } g_slist_free (conn->accepted_connections); if (conn->conn_id) { g_source_remove (conn->conn_id); conn->conn_id = 0; } if (conn->chan) { g_io_channel_shutdown (conn->chan, FALSE, NULL); g_io_channel_unref (conn->chan); } if (conn->is_server != FALSE) { unlink (conn->path); } if (conn->fd != -1) { close (conn->fd); } g_free (conn->path); g_free (conn); } void bacon_message_connection_set_callback (BaconMessageConnection *conn, BaconMessageReceivedFunc func, gpointer user_data) { g_return_if_fail (conn != NULL); conn->func = func; conn->data = user_data; } void bacon_message_connection_send (BaconMessageConnection *conn, const char *message) { g_return_if_fail (conn != NULL); g_return_if_fail (message != NULL); g_io_channel_write_chars (conn->chan, message, strlen (message), NULL, NULL); g_io_channel_write_chars (conn->chan, "\n", 1, NULL, NULL); g_io_channel_flush (conn->chan, NULL); } gboolean bacon_message_connection_get_is_server (BaconMessageConnection *conn) { g_return_val_if_fail (conn != NULL, FALSE); return conn->is_server; } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/bacon.h0000644000175000017500000000346110610253304012336 00000000000000/* * Copyright (C) 2003 Bastien Nocera * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #ifndef BACON_MESSAGE_CONNECTION_H #define BACON_MESSAGE_CONNECTION_H #ifndef S_IFSOCK # define S_IFSOCK __S_IFSOCK # define S_ISSOCK(mode) __S_ISTYPE((mode), __S_IFSOCK) #endif #include G_BEGIN_DECLS typedef void (*BaconMessageReceivedFunc) (const char *message, gpointer user_data); typedef struct BaconMessageConnection BaconMessageConnection; BaconMessageConnection *bacon_message_connection_new (const char *prefix); void bacon_message_connection_free (BaconMessageConnection *conn); void bacon_message_connection_set_callback (BaconMessageConnection *conn, BaconMessageReceivedFunc func, gpointer user_data); void bacon_message_connection_send (BaconMessageConnection *conn, const char *message); gboolean bacon_message_connection_get_is_server (BaconMessageConnection *conn); G_END_DECLS #endif /* BACON_MESSAGE_CONNECTION_H */ /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/eggtrayicon.c0000644000175000017500000003641110610253303013562 00000000000000/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* eggtrayicon.c * Copyright (C) 2002 Anders Carlsson * * 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. */ #include #include #include #include "eggtrayicon.h" #include #if defined (GDK_WINDOWING_X11) #include #include #elif defined (GDK_WINDOWING_WIN32) #include #endif #ifndef EGG_COMPILATION #ifndef _ #define _(x) dgettext (GETTEXT_PACKAGE, x) #define N_(x) x #endif #else #define _(x) x #define N_(x) x #endif #define SYSTEM_TRAY_REQUEST_DOCK 0 #define SYSTEM_TRAY_BEGIN_MESSAGE 1 #define SYSTEM_TRAY_CANCEL_MESSAGE 2 #define SYSTEM_TRAY_ORIENTATION_HORZ 0 #define SYSTEM_TRAY_ORIENTATION_VERT 1 enum { PROP_0, PROP_ORIENTATION }; static GtkPlugClass *parent_class = NULL; static void egg_tray_icon_init(EggTrayIcon *icon); static void egg_tray_icon_class_init(EggTrayIconClass *klass); static void egg_tray_icon_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); static void egg_tray_icon_realize(GtkWidget *widget); static void egg_tray_icon_unrealize(GtkWidget *widget); static void egg_tray_icon_add(GtkContainer *container, GtkWidget *widget); #ifdef GDK_WINDOWING_X11 static void egg_tray_icon_update_manager_window(EggTrayIcon *icon, gboolean dock_if_realized); static void egg_tray_icon_manager_window_destroyed(EggTrayIcon *icon); #endif GType egg_tray_icon_get_type (void) { static GType our_type = 0; if (our_type == 0) { static const GTypeInfo our_info = { sizeof (EggTrayIconClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) egg_tray_icon_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (EggTrayIcon), 0, /* n_preallocs */ (GInstanceInitFunc) egg_tray_icon_init }; our_type = g_type_register_static (GTK_TYPE_PLUG, "EggTrayIcon", &our_info, 0); } return our_type; } static void egg_tray_icon_init (EggTrayIcon *icon) { icon->stamp = 1; icon->orientation = GTK_ORIENTATION_HORIZONTAL; gtk_widget_add_events (GTK_WIDGET (icon), GDK_PROPERTY_CHANGE_MASK); } static void egg_tray_icon_class_init (EggTrayIconClass *klass) { GObjectClass *gobject_class = (GObjectClass *)klass; GtkWidgetClass *widget_class = (GtkWidgetClass *)klass; GtkContainerClass *container_class = (GtkContainerClass *)klass; parent_class = g_type_class_peek_parent (klass); gobject_class->get_property = egg_tray_icon_get_property; widget_class->realize = egg_tray_icon_realize; widget_class->unrealize = egg_tray_icon_unrealize; container_class->add = egg_tray_icon_add; g_object_class_install_property (gobject_class, PROP_ORIENTATION, g_param_spec_enum ("orientation", _("Orientation"), _("The orientation of the tray."), GTK_TYPE_ORIENTATION, GTK_ORIENTATION_HORIZONTAL, G_PARAM_READABLE)); #if defined (GDK_WINDOWING_X11) /* Nothing */ #elif defined (GDK_WINDOWING_WIN32) g_warning ("Port eggtrayicon to Win32"); #else g_warning ("Port eggtrayicon to this GTK+ backend"); #endif } static void egg_tray_icon_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { EggTrayIcon *icon = EGG_TRAY_ICON (object); switch (prop_id) { case PROP_ORIENTATION: g_value_set_enum (value, icon->orientation); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } #ifdef GDK_WINDOWING_X11 static void egg_tray_icon_get_orientation_property (EggTrayIcon *icon) { Display *xdisplay; Atom type; int format; union { gulong *prop; guchar *prop_ch; } prop = { NULL }; gulong nitems; gulong bytes_after; int error, result; g_assert (icon->manager_window != None); xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (icon))); gdk_error_trap_push (); type = None; result = XGetWindowProperty (xdisplay, icon->manager_window, icon->orientation_atom, 0, G_MAXLONG, FALSE, XA_CARDINAL, &type, &format, &nitems, &bytes_after, &(prop.prop_ch)); error = gdk_error_trap_pop (); if (error || result != Success) return; if (type == XA_CARDINAL) { GtkOrientation orientation; orientation = (prop.prop [0] == SYSTEM_TRAY_ORIENTATION_HORZ) ? GTK_ORIENTATION_HORIZONTAL : GTK_ORIENTATION_VERTICAL; if (icon->orientation != orientation) { icon->orientation = orientation; g_object_notify (G_OBJECT (icon), "orientation"); } } if (prop.prop) XFree (prop.prop); } static GdkFilterReturn egg_tray_icon_manager_filter (GdkXEvent *xevent, GdkEvent *event, gpointer user_data) { EggTrayIcon *icon = user_data; XEvent *xev = (XEvent *)xevent; if(xev->xany.type == ClientMessage && xev->xclient.message_type == icon->manager_atom && xev->xclient.data.l[1] == icon->selection_atom) { egg_tray_icon_update_manager_window (icon, TRUE); } else if(xev->xany.window == icon->manager_window) { if(xev->xany.type == PropertyNotify && xev->xproperty.atom == icon->orientation_atom) { egg_tray_icon_get_orientation_property (icon); } if(xev->xany.type == DestroyNotify) { egg_tray_icon_manager_window_destroyed (icon); } } return GDK_FILTER_CONTINUE; } #endif static void egg_tray_icon_unrealize (GtkWidget *widget) { #ifdef GDK_WINDOWING_X11 EggTrayIcon *icon = EGG_TRAY_ICON (widget); GdkWindow *root_window; if (icon->manager_window != None) { GdkWindow *gdkwin; gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (widget), icon->manager_window); gdk_window_remove_filter (gdkwin, egg_tray_icon_manager_filter, icon); } root_window = gdk_screen_get_root_window (gtk_widget_get_screen (widget)); gdk_window_remove_filter (root_window, egg_tray_icon_manager_filter, icon); if (GTK_WIDGET_CLASS (parent_class)->unrealize) (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget); #endif } #ifdef GDK_WINDOWING_X11 static void egg_tray_icon_send_manager_message (EggTrayIcon *icon, long message, Window window, long data1, long data2, long data3) { XClientMessageEvent ev; Display *display; ev.type = ClientMessage; ev.window = window; ev.message_type = icon->system_tray_opcode_atom; ev.format = 32; ev.data.l[0] = gdk_x11_get_server_time (GTK_WIDGET (icon)->window); ev.data.l[1] = message; ev.data.l[2] = data1; ev.data.l[3] = data2; ev.data.l[4] = data3; display = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (icon))); gdk_error_trap_push (); XSendEvent (display, icon->manager_window, False, NoEventMask, (XEvent *)&ev); XSync (display, False); gdk_error_trap_pop (); } static void egg_tray_icon_send_dock_request (EggTrayIcon *icon) { egg_tray_icon_send_manager_message (icon, SYSTEM_TRAY_REQUEST_DOCK, icon->manager_window, gtk_plug_get_id (GTK_PLUG (icon)), 0, 0); } static void egg_tray_icon_update_manager_window (EggTrayIcon *icon, gboolean dock_if_realized) { Display *xdisplay; if (icon->manager_window != None) return; xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (icon))); XGrabServer (xdisplay); icon->manager_window = XGetSelectionOwner (xdisplay, icon->selection_atom); if (icon->manager_window != None) XSelectInput (xdisplay, icon->manager_window, StructureNotifyMask|PropertyChangeMask); XUngrabServer (xdisplay); XFlush (xdisplay); if (icon->manager_window != None) { GdkWindow *gdkwin; gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (GTK_WIDGET (icon)), icon->manager_window); gdk_window_add_filter (gdkwin, egg_tray_icon_manager_filter, icon); if (dock_if_realized && GTK_WIDGET_REALIZED (icon)) egg_tray_icon_send_dock_request (icon); egg_tray_icon_get_orientation_property (icon); } } static void egg_tray_icon_manager_window_destroyed (EggTrayIcon *icon) { GdkWindow *gdkwin; g_return_if_fail (icon->manager_window != None); gdkwin = gdk_window_lookup_for_display (gtk_widget_get_display (GTK_WIDGET (icon)), icon->manager_window); gdk_window_remove_filter (gdkwin, egg_tray_icon_manager_filter, icon); icon->manager_window = None; egg_tray_icon_update_manager_window (icon, TRUE); } #endif static gboolean transparent_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data) { gdk_window_clear_area (widget->window, event->area.x, event->area.y, event->area.width, event->area.height); return FALSE; } static void make_transparent_again (GtkWidget *widget, GtkStyle *previous_style, gpointer user_data) { gdk_window_set_back_pixmap (widget->window, NULL, TRUE); } static void make_transparent (GtkWidget *widget, gpointer user_data) { if (GTK_WIDGET_NO_WINDOW (widget) || GTK_WIDGET_APP_PAINTABLE (widget)) return; gtk_widget_set_app_paintable (widget, TRUE); gtk_widget_set_double_buffered (widget, FALSE); gdk_window_set_back_pixmap (widget->window, NULL, TRUE); g_signal_connect (widget, "expose_event", G_CALLBACK (transparent_expose_event), NULL); g_signal_connect_after (widget, "style_set", G_CALLBACK (make_transparent_again), NULL); } static void egg_tray_icon_realize (GtkWidget *widget) { #ifdef GDK_WINDOWING_X11 EggTrayIcon *icon = EGG_TRAY_ICON (widget); GdkScreen *screen; GdkDisplay *display; Display *xdisplay; char buffer[256]; GdkWindow *root_window; if (GTK_WIDGET_CLASS (parent_class)->realize) GTK_WIDGET_CLASS (parent_class)->realize (widget); make_transparent (widget, NULL); screen = gtk_widget_get_screen (widget); display = gdk_screen_get_display (screen); xdisplay = gdk_x11_display_get_xdisplay (display); /* Now see if there's a manager window around */ g_snprintf (buffer, sizeof (buffer), "_NET_SYSTEM_TRAY_S%d", gdk_screen_get_number (screen)); icon->selection_atom = XInternAtom (xdisplay, buffer, False); icon->manager_atom = XInternAtom (xdisplay, "MANAGER", False); icon->system_tray_opcode_atom = XInternAtom (xdisplay, "_NET_SYSTEM_TRAY_OPCODE", False); icon->orientation_atom = XInternAtom (xdisplay, "_NET_SYSTEM_TRAY_ORIENTATION", False); egg_tray_icon_update_manager_window (icon, FALSE); egg_tray_icon_send_dock_request (icon); root_window = gdk_screen_get_root_window (screen); /* Add a root window filter so that we get changes on MANAGER */ gdk_window_add_filter (root_window, egg_tray_icon_manager_filter, icon); #endif } static void egg_tray_icon_add (GtkContainer *container, GtkWidget *widget) { g_signal_connect (widget, "realize", G_CALLBACK (make_transparent), NULL); GTK_CONTAINER_CLASS (parent_class)->add (container, widget); } EggTrayIcon * egg_tray_icon_new_for_screen (GdkScreen *screen, const char *name) { g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL); return g_object_new (EGG_TYPE_TRAY_ICON, "screen", screen, "title", name, NULL); } EggTrayIcon* egg_tray_icon_new (const gchar *name) { return g_object_new (EGG_TYPE_TRAY_ICON, "title", name, NULL); } guint egg_tray_icon_send_message (EggTrayIcon *icon, gint timeout, const gchar *message, gint len) { guint stamp; g_return_val_if_fail (EGG_IS_TRAY_ICON (icon), 0); g_return_val_if_fail (timeout >= 0, 0); g_return_val_if_fail (message != NULL, 0); #ifdef GDK_WINDOWING_X11 if (icon->manager_window == None) return 0; #endif if (len < 0) len = strlen (message); stamp = icon->stamp++; #ifdef GDK_WINDOWING_X11 /* Get ready to send the message */ egg_tray_icon_send_manager_message (icon, SYSTEM_TRAY_BEGIN_MESSAGE, (Window)gtk_plug_get_id (GTK_PLUG (icon)), timeout, len, stamp); /* Now to send the actual message */ gdk_error_trap_push (); while (len > 0) { XClientMessageEvent ev; Display *xdisplay; xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (icon))); ev.type = ClientMessage; ev.window = (Window)gtk_plug_get_id (GTK_PLUG (icon)); ev.format = 8; ev.message_type = XInternAtom (xdisplay, "_NET_SYSTEM_TRAY_MESSAGE_DATA", False); if (len > 20) { memcpy (&ev.data, message, 20); len -= 20; message += 20; } else { memcpy (&ev.data, message, len); len = 0; } XSendEvent (xdisplay, icon->manager_window, False, StructureNotifyMask, (XEvent *)&ev); XSync (xdisplay, False); } gdk_error_trap_pop (); #endif return stamp; } void egg_tray_icon_cancel_message (EggTrayIcon *icon, guint id) { g_return_if_fail (EGG_IS_TRAY_ICON (icon)); g_return_if_fail (id > 0); #ifdef GDK_WINDOWING_X11 egg_tray_icon_send_manager_message (icon, SYSTEM_TRAY_CANCEL_MESSAGE, (Window)gtk_plug_get_id (GTK_PLUG (icon)), id, 0, 0); #endif } GtkOrientation egg_tray_icon_get_orientation (EggTrayIcon *icon) { g_return_val_if_fail (EGG_IS_TRAY_ICON (icon), GTK_ORIENTATION_HORIZONTAL); return icon->orientation; } /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/eggtrayicon.h0000644000175000017500000000512210610253303013562 00000000000000/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* eggtrayicon.h * Copyright (C) 2002 Anders Carlsson * * 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. */ #ifndef __EGG_TRAY_ICON_H__ #define __EGG_TRAY_ICON_H__ #include #ifdef GDK_WINDOWING_X11 #include #endif G_BEGIN_DECLS #define EGG_TYPE_TRAY_ICON (egg_tray_icon_get_type()) #define EGG_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), EGG_TYPE_TRAY_ICON, EggTrayIcon)) #define EGG_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) #define EGG_IS_TRAY_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), EGG_TYPE_TRAY_ICON)) #define EGG_IS_TRAY_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EGG_TYPE_TRAY_ICON)) #define EGG_TRAY_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EGG_TYPE_TRAY_ICON, EggTrayIconClass)) typedef struct _EggTrayIcon EggTrayIcon; typedef struct _EggTrayIconClass EggTrayIconClass; struct _EggTrayIcon { GtkPlug parent_instance; guint stamp; #ifdef GDK_WINDOWING_X11 Atom selection_atom; Atom manager_atom; Atom system_tray_opcode_atom; Atom orientation_atom; Window manager_window; #endif GtkOrientation orientation; }; struct _EggTrayIconClass { GtkPlugClass parent_class; }; GType egg_tray_icon_get_type(void); EggTrayIcon *egg_tray_icon_new_for_screen(GdkScreen *screen, const gchar *name); EggTrayIcon *egg_tray_icon_new(const gchar *name); guint egg_tray_icon_send_message(EggTrayIcon *icon, gint timeout, const char *message, gint len); void egg_tray_icon_cancel_message(EggTrayIcon *icon, guint id); GtkOrientation egg_tray_icon_get_orientation (EggTrayIcon *icon); G_END_DECLS #endif /* __EGG_TRAY_ICON_H__ */ /* vim:cindent:et:sw=4:ts=4:sts=4:tw=78:fenc=utf-8 */ gshutdown-0.2/src/tray_icon2.png0000644000175000017500000000261710610253304013664 00000000000000PNG  IHDR bKGD pHYs  tIME I[IDAT8u[LSƿs)BЕ€"0P,,&sa/,q{Y-1˲ĩ>,q93 :#PJ+崧t^6=}?#L69vX`B??}0ALBFueddۈ~n666=ϔlޥR V+;o66tB.D8,nH=7Fqݝ5}[WcOqf º:8R55 o,y%4={ 4o/Bu2 ( DFNQ`EdPoo ====CCCzYQ"%DiȂkQBzYz{zι\.V>uzϞ=:;;_&I($I,3`w/F# d##fwlVy BZ`GGiBRy0Nܼ3+H(L`qPV |@`|8~b_s: Aq˞ ThHm0" l4]]aǎf{=LrϯOT*Uަj Z Á{?a#emm̀С"BMOO ?}WnV|b [ILe : () * ;c7˲> ~shIwe468P"K (Y 2SӐ% `MQ@75х ekTȹ#͖[ .Aq&RLDwf8+/cJ&`nnFH`vm ޽(JhVS C]爽$e`d҃$IT4 T@f H+Hsm%)FeX,$JѺUU.k0K0fpuFCC[@Fa?ruup:EQ,gi$F*g,()" BGϼ!2 bA@6E(WtYo,/҄g`1"%I"$IB4q [[[HH$}0WOf\ꦽD:Q|$f'{&N+,J:NU]]Mx<(fTQ{ؘk$PD4~S'%/߿t},EQL& ,v13'j2 z7^u;q.JRDQ.[R+W_iw)mf5?jNaCr<IENDB`gshutdown-0.2/src/tray_icon.png0000644000175000017500000000246010610253303013575 00000000000000PNG  IHDR bKGD pHYs  tIME б IDAT8˕MLwyRxZiH)τ6P8tNxY%Kvp'۲e esS35^}Z屌ڧSZ]8#}O'h99B<:;;gGGkᆭlD == S.1o(Z.]sF+$$e~ Ut5BbWa=x%Ma P(4::zv(˸ŗHJ*TQQ EQiP#?.\0~ EQPE\An>45ߛXlnbߗe)L&X}0 1Leڍ[K9zJZQ@y;0-4:`ss``@/UMMMz] 0F\&O謡PzAPè~ܙ3|~^J IRMOOϫ& rv܍D.<3 MUw8u03u_ (Y5M#պ,d[N W!}r˹R)<44?aς0 C(uwwl**X%[YȕvK,A'OvfB IR UU q$Iy/%kCChmkEQE7o~( v\---5a4M0 )\.,\.\.L&|4yhH7>}JqJTUE:F>G4!$mxGūD6ǟT3LPkk}mm`ss[[[z4Uf3vI<:55梦i@hd2_ZZѨg$L@@io a`O0 ]ھŏx"m6vgbXt: ؃5/IENDB`gshutdown-0.2/src/gshutdown.png0000644000175000017500000001156010610253303013631 00000000000000PNG  IHDR00WbKGD pHYs  tIME #F{IDAThZُ[}9rיᐣFHRmv[4F\`4@>%ۼ/y_  iIkk-h8w_ÐIJe.H绿~!@̥KGhu=<f3:~[y-۶g<]b(J!EQ`0 Cp8 #d2Ÿ`vRyղ&DŽQqm9B~o2.ҟPe(21M4-+IR4Elێ9x"m/R)Uj51t{gIVfpݿc%$Ef/$R8Jvvww =Y#X,8Nu'㼰=P Jiɶ8nrԙNK{0>8pjϿz.\08888uYR.eUUS~?]ד06 ~O$~Z1-o u%6\cNT2ȧ^ !ƆիJE"D- 1} ڙJy"^-;[ou||v97Y*z뭯BB,N=;uꔙfQ,Wj$ cp7c4n8c ?xPj)$IRg%I?{Wٹs+++BEQIL2;0=,Y= "IH#w2l]͛Fq>kN~Wzw矿'/]t*JU8u$R B)d߅6& pτrLJ_]EW )B!pE"[nYSW_}Upy(pmG1\ |w.I2j%DuY pX~R{/wׯ_(ʒiLp8@父kH6d*ABWbpq`XAŠd 8l4 OKp8+++BE!I 8O~;73R1v9s. SG0dpԩSHol t0\W^%O~)\}?ׯ_^zҥKAY9s88DJ)~}6nEEBB L".\]G0AI?mE"on۲(~HLkj677sr|FsN\]J%8hB15$E0B y6h`l¤Ӂ6ö2X^^F]=<b\Cuss3xٿd2_"ҘbaeeȲ=PJG(ZnG̜" JOah,<#SEP@R+IH&IRR*)qTbR @jx\'VVVBxB c`q˲y1d2l7ۨ=@ A t;##ȳk3 <B"$P*I>qƍx<@T3DL&jU 8;gZ8dNh$"˸]Pu|/.Wfz@82K:20}0mPEX^ nvu˲?-E,snN&$I'O>On.^mu݅2]j{I ]Ü/x@1Cs(v:lX X,8l6?r]X9=ϳ5M+(r0Ak!uP(&ɸ@*R4H8 UTM#n!` X If%0VTUm[Se\۶m9 f|>O}PJ$Iq8CdEڵ HP|BahD)E|v =z=l)>ds %22Lh:FzC]@ !%JRP(9y^4M8C:J&hFd{)"$ׅ0 D+UNm'.1:fN×eD.\@9@m# n0b t-\0hTG%LD$.2Yت((xw>6r J1U\ZZF uah&`rdömJ%E!By9)V*JtRJU(q`Y"Bdvl,3@$Hi qUk]KbjJx|sdY(Jx:(y<ҧO>U.Ïj}"2eeq@!Dڇ @b`=c;Ak_+Wp~)S)$ $IR)$I^K!snnJ&Yr%("IJ,2T*˶el.j p{,cN#y ^^|/_2Q(L&$INl?~ 9{g1mN&JP(WX$s}H$B m/Ű6Q(p\3>SOT*h4H$@ 01 *jbkkk30@朗R1hFE|aB!(Fc/]3/ͧ籲t:X,L&h4 Ndnnk?yѶ@unݺUrrTZesAI$I81 M&ExDc1xR 8dAQeYu݅r,BYӬub44M![XWwNRBL&J\Ю@ p8L,"R@ Y 2 B4F#t]ċi4Mt:4M?oZ5|1MB_ݼyBX,J\X\RJT*E=ϣa:²,h08S#FKF !loܹD"zVtڰm{WUՏiuko^'\ו`0F"5J O8^]]^o}JagAMA7tEXtSoftwareAdobe ImageReadyqe<SIDATxb?( F`dM#h F4F80@&FFơ#e y L LLR@302iN&~@cdd`33vǫ .bxP<5@}P[ v3e`dbUy/l H210131ipăD@7"@uc>8![n2<}($\ IA( 'bԬfUI *~jfFm.9z 0hR)+! ی}CgLm6&=q᠍)[$aFћ LCηE PbESH)#xOox|: @C+#&.QInm=Q]Ma%E~pdr;02`F (s-X!pdzH7H~2{ nݏ @v` >ßO;>_pAU2g @r630d'+4(;++0ԁ5G880Ƀ8Q'jpb7^~pϾB 6? ?g|1Åk>= kDgr006~33s!7,$ `~ 1 4`0 ceD,(#'?Єp@PX#%&&9@;fܭw [`w-çw? n,[ثL glWx=P(0 O%`!B"T"Ѽ̡ܬ t&@`; (9?# ɵw E ) @VCA P{A(L}=c!cP;÷Ghb Pz4q3@(‡< c^Ԣu,A"v!z5P B^L/iJ1s?|VN{V0Gx&lԽaC:&Et^kplBSe7B򴂦BsD? -/c'aׅ60g$5Lߵ 2"uO@ =Y%=V ւz㴛a;Y7M6:2fN 6 b o>#+$[Y, m $!0iHón]~p+?0{ 0?{ńT33o]@?0$TuTu%U$AnJRH"x F-7}b^}z- WT0<}'@b]a ITRDt~ 6vڈ`, Xl̜ u>rM )hu4(zpNy6d"8H]"dE~ak131X-/6Q|!M VPic6AO$ز87-s:P*$ K1]A11.>>6zfh0B}FH{ΝC$lE~6_p;_1\ Q5aVg0SbeeRU,<5Ժ?B7( hPy  Z&]%gs /Lz e ,< _CFXRGHCh,Rɽ {]a8*8뙛 3{H3h1 sf`d2# L2,Y2쪘d`(dn<VW W3)`Q`  iB3 o;$K ~3tŰ371.:9hX zBPUaÐPhXGi+CMR܃"[Haeo~`8 é]7dX$ Qf >$ґ#fa%`&Ј c@IL LL ϟe8 =`h .n')T! oK !H` 6܃8?^p /@ hX1=ZlNum+{&#`J֖%/DlT{aS ]dPaeSad!tH333b , '$h w_`i(>=gXÝ|̀ Iv`ŔF$ֹ2 ,v~м:xR뽣 '2>E!x &l ~/&^v^ ƎrV \KHr>G!5UNga%Xꇔ ϟ?Hn%* @iF _fϺLl 6 6>`&xqHU07HG (~[W>4?p.ۋ'qrF,/=O $z`cO 3~|ls{=+8! u<$$ D.`A-Mbf/ ;[g!;Wa,k_@~Ww߆(,@a?XB(12y-&VA h8g3f,`beh| 3 Fs`4gX.>̰nC\ `鉂{)))p>ll,BT&xՀ>nCyX邚h  С}`}RRRA臙)% + 0 %-`"hJօ\saljMYP3 kf_F`\Ġoj@[!9#Nd戏~0L[pc9M22`swÕ+_a:X"MyH` 1b)9Ѫ&j=R 2|{511qpE`ü'#r-xzi<[K{A/_dx xXy@ 4nioa L /_~05gs+Cڤp1>_!SϞq^o)? |xpi6Ђ p3@Q'/dŰ{+lzBZ@wO?3+FC}18wȇ홡%A4;;; n0"@" e90Ā4> H9!w N ?uccYg2$0I󂧯A^dV`}F2{'ҩ;2\ 4+q3@Q^-e g1`AajQ*g`UjdXPAO?0OX#u"B.aCȭ{d"[b[l&rCҨO@m00 AU]u!8,@a P f(P$/CdGD><`991d X}QHňgZ# T HxpDc 6[a +Pڒ0-et5E@u.vR u!7 ܚ/S?;CFÛL @}#9H Puc >bh2eBa>`fÎƄQm HK3b!G"j@W-J BB\01.` f!(,AaFx!O v@Dr O끡?k@:xBZү=v>/pyI&CeZFFDҡ<CC w1KFN^j6=243\r;0( Aa SP>$yleAL J L~9@C~1ڊ3D1{ Y*AۮC_vO͐`g//$:}D e[+2[D2ͥ0r hNm890hfN!=]V0( ^N-(>r v !-E@D7{,a  <` 0wހ,~yTjԽ j, j`F`ùf@dAeπ*@SDPz裈U#ah P2a ad 3P؁Խ ߄'$$Y +! jDf ' t>lb=|ph]r=`y_D3"u# Xgšq^Ɔ<@-9cR o CPU \\ e _n( Aay$l!a}0Ι"ːZ  @l+hd6* 27lH30 A{/@ 9d8Cr2÷o@S _|&.pݏ-LhE..tÀAmB"WiEdbbe 8@a KPVN֠L 6r& ,?) o/LF*| 6R A7O{o!R`5pvE_ a Ϟ=g8r(0aX`Þ=#iA &Ȉ-rc4Ɗz-Fx=0@߿? =fTٵa R sO!a |ltk3HHlP)@Q0Ɲ~113,x!ۡ܂ ^y7>2;p!5ScÆ /_gwad8w ɳ.^n0 Xa1} J'01f۸v2üySlY޻pw?05h,T RDHXC p"-Hlb-`l}H%Oe4+s\ bL/`g0_a O>z\ baȭun~?# (L`d;w:8CXX4090PZW^20H2pQc7u҉ ?`㏁<]"xFC? 8ennv \CC}_>3\~޽ o? 2=0c+_ ;@m1&\䣎aાhr Y IIi `ssP0=֠0 &Z"qi''hcw @z0kZ:H0F7`T]2b#tbX_wA[دyʜ!//AYY 1ܹs%*ÃOzz2wȂ mpY$ I-fHH8Cqqt_pedRd)(lAa kP/]pK= fAm febDB ˔/$h W}h9?H7Wx8-\4CJJCrr8]`i/ && FF& {el3܀/쑏.8 &~gp;ׯiof)h{`t#n*&>[j*=$$mDa֠0=(@q-eQ)r ,2Ĭ ? YuE9^ldmȼzP_~=z& /h`9A "bbJJU`.0|`aaŠ , v[SJJX6 ڡ Si` #pX8ŧo *ݨt{ 0e >oXJ> 7'[jEF uuE .. p>x jOaڴ `xݠ 50'!0l_]~9 Z 8AY:x@D8(V*,&\o?@"^͗_ 2y\ ^#r?5su>>n E &n{O DpBx#CGTm`-ЗcNv&x&U1(B(.@q$?#,.Y1&VqBDx`bSeffbr蘛Gg쁺( Z⟕ 6^1»G !IIQ 66f 6lHKoRAGGX}| .0 mP"O+ [(.@qʜZ _"| R _pCSUDD |Kr20 =x/o>=z + >} [;9ґ>jj* ee t#`?^-:&LccX@O"7o:0o o5xdb[Ҏ<( lI栰(.@q`dfc?l)Aq  IB_F.nȾ6dP  L|~R ~C4r}$N0abصV/dd>~ &&VsäIst%??17{6aܜ_Kh>}6\Xu=V߁m~`ij3;v)GY> [6%`6|$P^|u $D{%# XS2@AMD{`[4Do|AX3۴A.../pcqƝ N]2!`@K3 3*2(((&--FC'ؽ!?/}TS W?=z ,2<| \'h Ժ nB3%d+:ʸ(l 鴀tE q\* :xT<ؐZ5 ycй-|l _CfA+V_|46Sӷ 2?\]FA̞ȒV vv7]m 7n\40&#޽9/0ГAWWWN𴰐7/AuNqo#W||@U8v˗+`ABB ·|XCJāKGr<~;0ٙq 1H܀p@< Q @D$&I? :[|&0W `#y' y؎W{RgTֳ6mW r+dppp V3(*P^\mz\OB_Nb`xUd$gS#(0A;7O<o6RE ̇߁ +~47}mG}CݕĈ33~|F (n@m4P}>1t:!s, X87!Xds~mea "́Vo!"0à 첷F>֭{;n|"g`Vn30?@f ,G7ni. EO#777d&8}@oO>2f1pQ  8/8M3먻72;0Ü $N@q,hD8YU?f.hDD L~| v|rO`€Ymhixx ;.\,E9}l|ACC ӧ _e8)p?0GX *ZP$f-}{ b ACQdPWW%]YzD?4 .qa >A˜0 _P PXTE @D<djd!;+\ ! 0F>0+deeR kB ޽F [px50A`egp˿c1/۠zի\|X.B*H ܺV;"F !Q㈺N a*Aa,wI͐LI$ȭg7 H K9L젮p?q '>gyQF.FߩJ^==mpa߾C 1i3訃hjf0 J޽o#?A4SXu%pȪ臅l_C+A ϟ?=0_H\j;9/F8pf/"f(8 ]#hϟ6,5A)t* #Z㐺4,5 \t6l~w@ÇE||<>m` "] \XuHb&x}6(\B]%/5@f@AAANV> K йiamo/%?a 3BnNRR̙@>n;'أG3hkk0DE1Huz|1ß 'X~ # i:'gЁΏ3$iL Ajhh`m> u-do6zV>(dD *bAaf}'-6dPkAU ڜ"$$.OȠlFc0yĨ ]% *Aq2 X/ޜ[Nq^M@ ? Hw0C!AvZٹǪ"7D[ Xx=]٘%T], B? ..vTﶢ6cAz31O-1(AamWp|n4JDQAa8@Q@KYװ*obQ1.C8G@˱`t GU)NO>v^}p':\ .BK}O`XK585U@KJKDD ?`,uн<7@'iCUm:ÇzIiC[A!o)  ^exu 54FO<U-S !U0kPa&V~3_ y@Q} JC_>e8"F&H|g_ c@zZjgLp CEyy | ll \ XAI1{!ԓAa7pXœ?d$N@ZAcoAL/62W"3(|74 A&HBU@|u GS"S =b`()a0p01  :Xx 8Aa {P3$34T $4z_ Gu U6hCM$ЉFTP1+#3cw@.XB|lurc`g$'A͍H61s:x\RNAaz 05e #yO2=o Q. ( >ygfF4a 7n|߫iCBo‘|%J^P}81?8ixaw~0ܸA\r3҈,$N@}'_C g2้ _0?pZ$! n\<*@)v"8z5naϞ1010~4$-.AcD>"AêC̀태 %ZKBZrఆuY1?1<} ׫#_CN@%7nԭ/1~X JP7 ÎOgW?3y4{wmؠ'h(UЃ}.cxn@.ftqE.5kVl 2- =0q"_vvG .. \ !D#7 Eooŋ)w V%(LAa cXf=(@qq=W3 RI_^ L!;dsȯ Њo<<  ~3̛7 XjOϳW3hk@!˜@Wܸ = c ``aD93z?dMM-jqq ٳV*ן a%(LaW҃t[hw_]~ޝ(Z#n"|/<ÿ7~pwnȚQP k'<͔? =_zxNrrCRR:4f=rs?(ٿxjzӓ%"Ak|lXUIJJT|ɰjRp ᩦ ןAƠ9(Aqpow2w H:?~_!f{OMC.`;.Hr?C|)lmWnw=#7` ֦c}00{-,~2(F r+{o0}÷oLƐjGH{t?xcw HWQX?a q"u? (_7~/ytf:<Q&K. '' &a˄%*,)XMe`:y1 #/^dF. `\mD@t@[@,wl bA~PXt eP''2@nKDXs~[8ӟ Fh٧_T ^l~z/+?3A(&(8t2Ck%͠."[,;3]K@~x$ l#+zKa? 6v Q]( j}8@a KPƠ. 0>~BA_3Yْ;^1|04r_ϨB^~U`s m} Of3&xp1YC(9XNdX `cm<2~sS#G:lTyrC$@=R & 3&v0d1(v}uP:C4 r0^/o2\>t\=O r_JPky&Nue9ÁB:|PD" Ul ̷o3p͝ZpɅՍAs@GΙS#?GGO58@a ;P1?}yy/OAO38rȸmt@?_Orûx!ԃ%: t_dP]})j!7x#l L"ܙ o_3<45g '|$nE.J`(UĐg0Dxf0}zfl(,@aRYy!7 V0; SP؂}}pe7go67!dX ocugߟrlك: 4P@ׅx׮``tᝂ")Y`w_\2bGm#W < r3jgb@z䃮/(8 op f)(le XZd,$ ë>5/4W^C حٰ%5Z[s<0»}3 DDx2Hkk mӆ\G)>'\oC\?m.l +P|h W]9`X060(@g\y]K C'a^e%1þ@QcO;q~\{2rZvu8H2pXjTf '06.;0툅@r0xM (9K:?R+FU@;a/- 7? xt֬i nEхk1[Y`4{t݊ 2fON1w~0lF>(,@a P fSh牅>< {qh_=}]  jq׋K}p'åKۦB֯qB=! ~0$b8* 4B Ar֭DE.rbPu :܏&,'ȍ0w"V"Ý;3|°}W8 @a P؀V0c_Z{K]Yq g D@QsOm{>lng`\ > T~)b^| 1+1'c8 #P >~R5 wh9J 4ue0FA6c ]J[@n FP5r3hh_!%0(|0(L@a #PXfVpia/1p9 LO8exz'#xlx ]<ݣ Z􇃃a˶@8# S\rm 7 :]2|W~;!د ?^z PFG Nw'@E Jjb@Q;w B0R"5 ݇^rAֳ xۖa2? 1$'2P9a:lm9JK E9x=h8\T|1HjAm/_~͐t觧@+ À&G>h fmc :-bVGHh=׵f,b`ӵb6-]y~1BՄh׳O7`s@(G x6{V Ta`1ceg`paV&fHQ> 2|'K9BEH/^z0~1k288H1=r#z>>'PX`c@.0wv`GȤ_h fμ^ Q`ƽr'P 6 ]R)0Ot27ˍ f@_dbD``dP^0C[b0fPagL?AJOe} hhi0Q s۟b4üyDEXU$89r"%U״y1X6 Z Z Y6x)\R>Cq)0;W u*pn~@kQf}k Eρ?1 g`i In@9tڅa{ kb8r gebbec`Aj!PIqI04W@lڀ4AӵSO^야c8zt[G`OV!$D[A'PϐAi v`[n/0O< ŕ7 Wct72ßǡ=&'6 V d! 3Lz Y,/=fda%ID&Jʠy{v v=s? ,^r1P3Tj ɬ@mnjEBed ww3SOg@NB j& r 4+] & 9|` @ (mPa:˷? 텳g_+;w>0<6__^;F`"`F;RY@Չ/ ?K0u. Pi;XQQsH?q'(&W73\v'"G ?gο fg yЅFJ 2 " L&:;Uv0.ldL=HI fhgG!_-/_~?-{  +o9Ā70PM:x{6@&q<m%̿{Gn3<8q(尼s5_A,tltKZq3@ T@nJ1Z3Hg33ebgfP`&.!`}(@Ԅk@%? L: ;j24BS.d4g_O# Ȧ fXݳ/ãGP%lI[ߗa2Ҭ3j4HM4 V% lf&ievnaFp:T[`Atŀ] H"l|>1le hAz3({Ve`K`eRBm L_SG1|~z 0|_w)2w+y2q3@  gxtfu(`oYaP,rK)%v `cf`F<+T]w*THU!` ),ؗ}#َ͛ P?Y[|ݞ߁ >>s1|{]3M7~l?][ڿ\ @% ONV1]pWeqP9 " y`WR2ˠ^ JP h hQټln,]-νل+d]he- w&/^\k?As ??`"﷑"t ?z,xML:x/,NW \| Bl 31p3+4A@ @{ CXQ m .h† a8~? ~dx{ûoNe,oo}hh{R@ >ݬM@# L B |@,# 됑 XWbb#*DCKp t~3|yǗ!6@F%~fuEǁxB {@NœA\*00[01p3 2!3I,9y؁9еwl'`dAn1:b6~o`w7$Az@<auÏc~St-(At@4|Ȉ'h$"T*21pkz 2@,*X@7! ġe=tx%?Ͼ2 ? GShutdown False GTK_WIN_POS_CENTER gshutdown.png True True True _File True True True gtk-quit True True True _Edit True True True gtk-preferences True True True _Help True True True gtk-about True True False True 5 5 True 0 True 5 5 5 5 True 5 5 True 0 True True True Hour 0 -1 24 1 0 0 1 True 0 <b>:</b> True GTK_JUSTIFY_CENTER True False False 4 1 True True Minute 0 -1 60 1 0 0 1 2 False 1 True 2 True _Actual time True 3 True Select a time True label_item True False 1 False 2 True _Start True False 3 1 About False GTK_WIN_POS_MOUSE Copyright (c) GShutdown Team, 2006-2007 An advanced shutdown utility http://gshutdown.tuxfamily.org GShutdown is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. GShutdown 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 General Public License for more details. You should have received a copy of the GNU General Public License along with Nautilus; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA GShutdown Team (gshutdown@gmail.com) : Achraf cherti Maxime Chéramy Alejandro Zarate (Spanish) Alexander Sjögren (Swedish) Andrea Carnaroli (Italian) Andrew V. Sichevoi (Russian) Bill Heldorf Soerensen (Danish) Dóra Kováts (Hungarian) GShutdown Team (French) Kristopher (Polish) Miloš Popović (Serbian) Øyvind Pedersen (Norwegian) Rolando Emanuel Lopes Pereira (Portuguese) Rolf Loire (German) Siegfried Gevatter (Catalan) gshutdown.png True 12 True GTK_BUTTONBOX_END False GTK_PACK_END Preferences False GTK_WIN_POS_MOUSE gshutdown.png True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK True True 15 7 True 0 Select a method : False True 3 2 7 7 True Custom command True radio_action_method_autodetect 2 3 True ... 1 2 1 2 GTK_FILL True Check the autodetection True gtk-dialog-info 1 1 2 GTK_FILL True Specify the method manually True radio_action_method_autodetect 1 2 True Autodetect the method (recommended) True 1 True Turn off the computer 2 True Restart computer 3 True End current session 4 True False 5 True Launch a command before the action True 6 True 8 True gtk-dialog-question False False True 1 7 False True Actions tab False False True 15 7 True 0 True True 6 True 8 5 True Always True True radio_systray_if_active True Tray icon will be visible if GShutdown is active. If active True 1 True Never True radio_systray_if_active 2 True Iconify when the action is started True 1 True Show system tray icon True label_item False False True 0 True True 10 5 True Display warning message _before action True True True False T_est True 1 True _Customize notifications time True False 2 True Notifications True label_item False False 1 1 False True Misc tab 1 False False 2 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK GTK_BUTTONBOX_END True True gtk-close True False GTK_PACK_END Configure the action False GTK_WIN_POS_MOUSE True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK True 16 6 True 0 Enter the command : True False True 8 True gtk-dialog-question False False True 1 1 True 0 0 <b>Help :</b> You can set your custom command, for example : * poweroff * reboot <u>Warning:</u> In most cases, you need root privileges to run this commands. True True 2 2 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK GTK_BUTTONBOX_END True gtk-close True False GTK_PACK_END Check the autodetection False GTK_WIN_POS_MOUSE True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK True 15 2 2 10 10 True 0 <b>Display manager :</b> True 1 2 True 0 <b>Desktop :</b> True True 0 GDM?? 1 2 1 2 True 0 GNOME? 1 2 2 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK GTK_BUTTONBOX_END True gtk-close True False GTK_PACK_END Select the method manually False GTK_WIN_POS_MOUSE False True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK True 15 8 True 8 Here, you can manually specify what is your desktop and display manager if GShutdown was unable to detect it itself. True True 0 Desktop : 1 True 2 True 0 Display manager : 3 True 4 1 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK GTK_BUTTONBOX_END True gtk-close True False GTK_PACK_END 12 False True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK 8 True 8 True True True gtk-remove True False False 1 False False 1 True 0 GTK_SHADOW_OUT True 12 True 7 5 True True 0 0 1000 1 10 10 False False True h 1 True True 0 0 59 1 10 10 False False 2 True min 3 True True 0 0 59 1 10 10 False False 4 True s 5 True gtk-add True False False 6 True At time : True label_item 2 True GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_ENTER_NOTIFY_MASK GTK_BUTTONBOX_END True gtk-close True 1 False GTK_PACK_END gshutdown-0.2/man/0000777000175000017500000000000010637512713011162 500000000000000gshutdown-0.2/man/Makefile.am0000644000175000017500000000006210610253302013113 00000000000000man_MANS = gshutdown.1 EXTRA_DIST = $(man_MANS) gshutdown-0.2/man/Makefile.in0000644000175000017500000002445710637511526013160 00000000000000# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = man DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/binreloc.m4 \ $(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 = SOURCES = DIST_SOURCES = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BINRELOC_CFLAGS = @BINRELOC_CFLAGS@ BINRELOC_LIBS = @BINRELOC_LIBS@ CATALOGS = @CATALOGS@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ GMOFILES = @GMOFILES@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGFMT_OPTS = @MSGFMT_OPTS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_CFLAGS = @PACKAGE_CFLAGS@ PACKAGE_LIBS = @PACKAGE_LIBS@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POFILES = @POFILES@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ 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@ 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@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ man_MANS = gshutdown.1 EXTRA_DIST = $(man_MANS) all: all-am .SUFFIXES: $(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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu man/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 uninstall-info-am: install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$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 $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; 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: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_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 mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-man install-exec-am: install-info: install-info-am install-man: install-man1 installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-man uninstall-man: uninstall-man1 .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-man1 install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ uninstall-am uninstall-info-am uninstall-man uninstall-man1 # 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: gshutdown-0.2/man/gshutdown.10000644000175000017500000000060310610253302013164 00000000000000.TH GSHUTDOWN 1 "2006-08-25" .SH NAME gshutdown \- An avanced shutdown utility .SH SYNOPSIS .B gshutdown .br .SH DESCRIPTION .B GShutdown is an advanced shutdown utility, which allows you to schedule the shutdown or the restart of your computer. With it, you can simply and quickly choose the turn off time. .SH AUTHOR .B GShutdown was written by GShutdown Team