openbox-3.6.1/0000755000175300001440000000000012544731565010207 500000000000000openbox-3.6.1/data/0000755000175300001440000000000012544731565011120 500000000000000openbox-3.6.1/data/autostart/0000755000175300001440000000000012544731565013146 500000000000000openbox-3.6.1/data/autostart/openbox-xdg-autostart0000755000175300001440000001470212133512457017265 00000000000000#!/usr/bin/env python # openbox-xdg-autostart runs things based on the XDG autostart specification # Copyright (C) 2008 Dana Jansens # # XDG autostart specification can be found here: # http://standards.freedesktop.org/autostart-spec/ # # # # 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. ME="openbox-xdg-autostart" VERSION="1.1" import os, glob, sys try: from xdg import BaseDirectory from xdg.DesktopEntry import DesktopEntry from xdg.Exceptions import ParsingError except ImportError: print print >>sys.stderr, "ERROR:", ME, "requires PyXDG to be installed" print sys.exit(1) def main(argv=sys.argv): if "--help" in argv[1:]: show_help() return 0 if "--version" in argv[1:]: show_version() return 0 # get the autostart directories autodirs = BaseDirectory.load_config_paths("autostart") # find all the autostart files files = [] for dir in autodirs: for path in glob.glob(os.path.join(dir, '*.desktop')): try: autofile = AutostartFile(path) except ParsingError: print "Invalid .desktop file: " + path else: if not autofile in files: files.append(autofile) list = False if "--list" in argv[1:]: list = True argv.remove("--list") # run them ! environments = argv[1:] for autofile in files: if list: autofile.display(environments) else: autofile.run(environments) class AutostartFile: def __init__(self, path): self.path = path self.filename = os.path.basename(path) self.dirname = os.path.dirname(path) self.de = DesktopEntry(path) def __eq__(self, other): return self.filename == other.filename def __str__(self): return self.path + " : " + self.de.getName() def _isexecfile(self, path): return os.access(path, os.X_OK) def _findFile(self, path, search, match_func): # check empty path if not path: return None # check absolute path if path[0] == '/': if match_func(path): return path else: return None else: # check relative path for dirname in search.split(os.pathsep): if dirname != "": candidate = os.path.join(dirname, path) if (match_func(candidate)): return candidate def _alert(self, str, info=False): if info: print "\t ", str else: print "\t*", str def _showInEnvironment(self, envs, verbose=False): default = not self.de.getOnlyShowIn() noshow = False force = False for i in self.de.getOnlyShowIn(): if i in envs: force = True for i in self.de.getNotShowIn(): if i in envs: noshow = True if verbose: if not default and not force: s = "" for i in self.de.getOnlyShowIn(): if s: s += ", " s += i self._alert("Excluded by: OnlyShowIn (" + s + ")") if default and noshow and not force: s = "" for i in self.de.getNotShowIn(): if s: s += ", " s += i self._alert("Excluded by: NotShowIn (" + s + ")") return (default and not noshow) or force def _shouldRun(self, envs, verbose=False): if not self.de.getExec(): if verbose: self._alert("Excluded by: Missing Exec field") return False if self.de.getHidden(): if verbose: self._alert("Excluded by: Hidden") return False if self.de.getTryExec(): if not self._findFile(self.de.getTryExec(), os.getenv("PATH"), self._isexecfile): if verbose: self._alert("Excluded by: TryExec (" + self.de.getTryExec() + ")") return False if not self._showInEnvironment(envs, verbose): return False return True def display(self, envs): if self._shouldRun(envs): print "[*] " + self.de.getName() else: print "[ ] " + self.de.getName() self._alert("File: " + self.path, info=True) if self.de.getExec(): self._alert("Executes: " + self.de.getExec(), info=True) self._shouldRun(envs, True) print def run(self, envs): here = os.getcwd() if self.de.getPath(): os.chdir(self.de.getPath()) if self._shouldRun(envs): args = ["/bin/sh", "-c", "exec " + self.de.getExec()] os.spawnv(os.P_NOWAIT, args[0], args); os.chdir(here) def show_help(): print "Usage:", ME, "[OPTION]... [ENVIRONMENT]..." print print "This tool will run xdg autostart .desktop files" print print "OPTIONS" print " --list Show a list of the files which would be run" print " Files which would be run are marked with an asterix" print " symbol [*]. For files which would not be run," print " information is given for why they are excluded" print " --help Show this help and exit" print " --version Show version and copyright information" print print "ENVIRONMENT specifies a list of environments for which to run autostart" print "applications. If none are specified, only applications which do not " print "limit themselves to certain environments will be run." print print "ENVIRONMENT can be one or more of:" print " GNOME Gnome Desktop" print " KDE KDE Desktop" print " ROX ROX Desktop" print " XFCE XFCE Desktop" print " Old Legacy systems" print def show_version(): print ME, VERSION print "Copyright (c) 2008 Dana Jansens" print if __name__ == "__main__": sys.exit(main()) openbox-3.6.1/data/autostart/autostart.in0000644000175300001440000000071512426360220015430 00000000000000# # These things are run when an Openbox X Session is started. # You may place a similar script in $HOME/.config/openbox/autostart # to run user-specific things. # # If you want to use GNOME config tools... # #if test -x @libexecdir@/gnome-settings-daemon >/dev/null; then # @libexecdir@/gnome-settings-daemon & #elif which gnome-settings-daemon >/dev/null; then # gnome-settings-daemon & #fi # If you want to use XFCE config tools... # #xfce-mcs-manager & openbox-3.6.1/data/autostart/openbox-autostart.in0000755000175300001440000000163112426360170017105 00000000000000#!/bin/sh # Set a background color BG="" if which hsetroot >/dev/null 2>/dev/null; then BG=hsetroot elif which esetroot >/dev/null 2>/dev/null; then BG=esetroot elif which xsetroot >/dev/null 2>/dev/null; then BG=xsetroot fi test -z $BG || $BG -solid "#303030" GLOBALAUTOSTART="@rcdir@/autostart" AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart" # Run the global openbox autostart script if test -f $GLOBALAUTOSTART; then sh $GLOBALAUTOSTART elif test -f $GLOBALAUTOSTART.sh; then sh $GLOBALAUTOSTART.sh fi # Run the user openbox autostart script if test -f $AUTOSTART; then sh $AUTOSTART elif test -f $AUTOSTART.sh; then sh $AUTOSTART.sh fi # Run the XDG autostart stuff. These are found in /etc/xdg/autostart and # in $HOME/.config/autostart. This requires PyXDG to be installed. # See openbox-xdg-autostart --help for more details. @libexecdir@/openbox-xdg-autostart "$@" openbox-3.6.1/data/gnome-session/0000755000175300001440000000000012544731565013706 500000000000000openbox-3.6.1/data/gnome-session/openbox-gnome.session0000644000175300001440000000023412455022442017773 00000000000000[GNOME Session] Name=GNOME/Openbox RequiredComponents=openbox;gnome-settings-daemon;gnome-panel;nautilus-classic;gnome-flashback-services DesktopName=GNOME openbox-3.6.1/data/gnome-session/openbox-gnome-fallback.session0000644000175300001440000000017312455022442021532 00000000000000[GNOME Session] Name=GNOME/Openbox fallback (Safe Mode) RequiredComponents=openbox;gnome-settings-daemon DesktopName=GNOME openbox-3.6.1/data/gnome-wm-properties/0000755000175300001440000000000012544731565015040 500000000000000openbox-3.6.1/data/gnome-wm-properties/openbox.desktop0000644000175300001440000000031011345434251020005 00000000000000[Desktop Entry] Type=Application Name=Openbox Exec=openbox # name we put on the WM spec check window X-GNOME-WMName=Openbox # our config tool ConfigExec=obconf [Window Manager] SessionManaged=true openbox-3.6.1/data/xbm/0000755000175300001440000000000012544731565011706 500000000000000openbox-3.6.1/data/xbm/bullet.xbm0000644000175300001440000000020511003645205013602 00000000000000#define bullet_width 4 #define bullet_height 7 static unsigned char bullet_bits[] = { 0x01, 0x03, 0x07, 0x0f, 0x07, 0x03, 0x01 }; openbox-3.6.1/data/xbm/close.xbm0000644000175300001440000000017411003645205013425 00000000000000#define close_width 6 #define close_height 6 static unsigned char close_bits[] = { 0x33, 0x3f, 0x1e, 0x1e, 0x3f, 0x33 }; openbox-3.6.1/data/xbm/desk_toggled.xbm0000644000175300001440000000021611003645205014750 00000000000000#define desk_toggle_width 6 #define desk_toggle_height 6 static unsigned char desk_toggle_bits[] = { 0x00, 0x1e, 0x1a, 0x16, 0x1e, 0x00 }; openbox-3.6.1/data/xbm/desk.xbm0000644000175300001440000000017111003645205013243 00000000000000#define desk_width 6 #define desk_height 6 static unsigned char desk_bits[] = { 0x33, 0x33, 0x00, 0x00, 0x33, 0x33 }; openbox-3.6.1/data/xbm/iconify.xbm0000644000175300001440000000020211003645205013750 00000000000000#define iconify_width 6 #define iconify_height 6 static unsigned char iconify_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x3f, 0x3f }; openbox-3.6.1/data/xbm/max_toggled.xbm0000644000175300001440000000016611003645205014613 00000000000000#define max_width 6 #define max_height 6 static unsigned char max_bits[] = { 0x3e, 0x22, 0x2f, 0x29, 0x39, 0x0f }; openbox-3.6.1/data/xbm/max.xbm0000644000175300001440000000016611003645205013106 00000000000000#define max_width 6 #define max_height 6 static unsigned char max_bits[] = { 0x3f, 0x3f, 0x21, 0x21, 0x21, 0x3f }; openbox-3.6.1/data/xbm/shade_toggled.xbm0000644000175300001440000000020211003645205015101 00000000000000#define iconify_width 6 #define iconify_height 6 static unsigned char iconify_bits[] = { 0x3f, 0x3f, 0x00, 0x00, 0x00, 0x00 }; openbox-3.6.1/data/xbm/shade.xbm0000644000175300001440000000020211003645205013374 00000000000000#define iconify_width 6 #define iconify_height 6 static unsigned char iconify_bits[] = { 0x3f, 0x3f, 0x00, 0x00, 0x00, 0x00 }; openbox-3.6.1/data/xsession/0000755000175300001440000000000012544731565012773 500000000000000openbox-3.6.1/data/xsession/openbox.desktop.in0000644000175300001440000000030612133512457016353 00000000000000[Desktop Entry] Name=Openbox Comment=Log in using the Openbox window manager (without a session manager) Exec=@bindir@/openbox-session TryExec=@bindir@/openbox-session Icon=openbox Type=Application openbox-3.6.1/data/xsession/openbox-gnome.desktop.in0000644000175300001440000000031212133512457017453 00000000000000[Desktop Entry] Name=GNOME/Openbox Comment=Use the Openbox window manager inside of the GNOME desktop environment Exec=@bindir@/openbox-gnome-session TryExec=gnome-session Icon=openbox Type=Application openbox-3.6.1/data/xsession/openbox-kde.desktop.in0000644000175300001440000000027512133512457017121 00000000000000[Desktop Entry] Name=KDE/Openbox Comment=Use the Openbox window manager inside of the K Desktop Environment Exec=@bindir@/openbox-kde-session TryExec=startkde Icon=openbox Type=Application openbox-3.6.1/data/xsession/openbox-session.in0000644000175300001440000000111011337574134016363 00000000000000#!/bin/sh if test -n "$1"; then echo "Syntax: openbox-session" echo echo "See the openbox-session(1) manpage for help." exit fi # Clean up after GDM xprop -root -remove _NET_NUMBER_OF_DESKTOPS \ -remove _NET_DESKTOP_NAMES \ -remove _NET_CURRENT_DESKTOP 2> /dev/null # Set up the environment A="@configdir@/openbox/environment" test -r $A && . $A A="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/environment" test -r $A && . $A # Run Openbox, and have it run the autostart stuff exec @bindir@/openbox --startup "@libexecdir@/openbox-autostart OPENBOX" "$@" openbox-3.6.1/data/xsession/openbox-gnome-session.in0000644000175300001440000000374711646601236017505 00000000000000#!/bin/sh if test -n "$1"; then echo "Syntax: openbox-gnome-session" echo echo "See the openbox-gnome-session(1) manpage for help." exit fi # Clean up after GDM xprop -root -remove _NET_NUMBER_OF_DESKTOPS \ -remove _NET_DESKTOP_NAMES \ -remove _NET_CURRENT_DESKTOP 2> /dev/null VER=$(gnome-session --version 2>/dev/null | \ sed -e 's/[^0-9.]*\([0-9.]\+\)/\1/') MAJOR=$(echo $VER | cut -d . -f 1) MINOR=$(echo $VER | cut -d . -f 2) # run GNOME with Openbox as its window manager if test $MAJOR -lt 2 || (test $MAJOR = 2 && test $MINOR -le 22); then # older gnome-session was easy to work with export WINDOW_MANAGER="@bindir@/openbox" exec gnome-session --choose-session=openbox-session "$@" elif test $MAJOR -lt 3; then # old gnome-session requires openbox to be set in gconf and an # openbox.desktop to be installed in the applications directory SPATH=/desktop/gnome/session # get the current default session SESSION=$(gconftool-2 -g $SPATH/default_session 2> /dev/null) # make sure openbox is going to be run if test -z "$SESSION"; then # if its empty then just run openbox SESSION="[openbox]" elif ! echo "$SESSION" | grep -q openbox; then # if openbox isn't in the session then append it SESSION="${SESSION%]},openbox]" fi # get the current GNOME/Openbox session OB_SESSION=$(gconftool-2 -g $SPATH/openbox_session 2> /dev/null) # update the GNOME/Openbox session if needed if test x$OB_SESSION != x$SESSION; then # the default session changed or we didn't run GNOME/Openbox before gconftool-2 -t list --list-type=strings -s $SPATH/openbox_session \ "$SESSION" 2> /dev/null fi # run GNOME/Openbox exec gnome-session --default-session-key $SPATH/openbox_session "$@" else # new gnome-session requires session file installed in # /usr/share/gnome-session/sessions as well as openbox.desktop to be # installed in the applications directory exec gnome-session --session=openbox-gnome fi openbox-3.6.1/data/xsession/openbox-kde-session.in0000644000175300001440000000073411646601236017134 00000000000000#!/bin/sh if test -n "$1"; then echo "Syntax: openbox-kde-session" echo echo "See the openbox-kde-session(1) manpage for help." exit fi # Set the prefix for the menu layout to use export XDG_MENU_PREFIX="kde-4-" # Clean up after GDM xprop -root -remove _NET_NUMBER_OF_DESKTOPS \ -remove _NET_DESKTOP_NAMES \ -remove _NET_CURRENT_DESKTOP 2> /dev/null # Run KDE with Openbox as its window manager export KDEWM="@bindir@/openbox" exec startkde "$@" openbox-3.6.1/data/openbox.desktop0000644000175300001440000000052212133512457014073 00000000000000[Desktop Entry] Type=Application Name=Openbox Exec=openbox Icon=openbox NoDisplay=true # name we put on the WM spec check window X-GNOME-WMName=Openbox # gnome-session autostart X-GNOME-Autostart-Phase=WindowManager X-GNOME-Provides=windowmanager # Ubuntu stuff X-Ubuntu-Gettext-Domain=openbox # back compat X-GNOME-Autostart-Notify=true openbox-3.6.1/data/rc.xsd0000644000175300001440000007313712256575510012173 00000000000000 ]> all these elements are expected in a openbox config file defines behaviour of windows when close to each other or the screen edge defines aspects of window focus defines how new windows are placed defines desktop margins defines the number and names of desktops openbox-3.6.1/data/menu.xsd0000644000175300001440000003233211224205530012505 00000000000000 ]> openbox-3.6.1/data/openbox.png0000644000175300001440000000277011003645205013206 00000000000000PNG  IHDR00WbKGD pHYs tIME*uIDAThYMoE}5;&b !bP8"'\@$p?'™BHEƱ;$&x^z鞮];8v$F{v3]իbq2 bdA> "@D@cd2)>ؾwinw~su5h/۟(6`gw\pڸ|y{05%ӹ$0t%Ce:{ x :rD,z# P@"D@йzM$gˁH$+ [ZQeN9뾽u;zªbO31gXp* 8(pk;ae%vC~*{AKD$ç_ @r?GQ6 )S&5oKcX%4UpЖ1_QGZjM1&Ge  'be5`RVz!h(rJXtzqQ)W+]Ho'e;F/ArBrk-dHO7*2 'N6jdS۲ι9E | 猀{3 ?s)Pӛ*R!cTu%}A0&LbSȋPdHga/{ Ƿ:4#H(ɚ.Td=jsԁ@-&%.rDk _fR R3{!҄}ogP%ҡK}mJ<^HC0vEEm[wfuPQM%n+՛-=Nԉ_K$q9W(һQ%h|V iVqU8֥)$$f CUz{+sJo qF;  "6Dj@nj O+`[ (0q@+Utr1kt<cgۻtOdfžYynϥo~?2 `0ҫfn-2!$$Xb o|y1-0zo !ϴ5M߸ ,JL0-zh8:|G:CGe~VFx󠹩| 9 ~n6>ߙLqHS,y> G2:'K~vKVdrrCY8e00000r,س s 8Fs` 10 20 yes no yes no 200 no Smart
yes
Primary 1
Clearlooks NLIMC yes yes sans 8 bold normal sans 8 bold normal sans 9 normal normal sans 9 normal normal sans 9 bold normal sans 9 bold normal 4 1 875 yes Nonpixel Center 10 10 0 0 0 0 TopLeft 0 0 no Above Vertical no 300 300 Middle C-g leftno rightno upno downno leftno rightno upno downno 1 2 3 4 client-menu yesyes right left up down true Konqueror kfmclient openProfile filemanagement 1 500 400 false previous next previous next previous next no yes client-menu top left right bottom client-menu client-menu client-menu vertical horizontal previous next previous next previous next client-list-combined-menu root-menu previous next previous next menu.xml 200 no 100 400 yes yes
openbox-3.6.1/data/menu.xml0000644000175300001440000002262111312747274012525 00000000000000 gnome-calculator yes gnome-character-map yes ark yes gvim yes GVim emacs yes Emacs gedit yes kate yes kwrite yes urxvt gnome-terminal yes xfce4-terminal yes konsole yes xterm firefox yes Firefox opera yes Opera konqueror yes epiphany yes pidgin yes kopete yes xchat yes ooffice -base ooffice -calc ooffice -draw ooffice -impress ooffice -math ooffice-printeradmin ooffice -writer amarok yes rhythmbox yes k3b yes gmplayer yes MPlayer totem yes nautilus --no-desktop --browser yes Thunar yes kfmclient openURL ~ yes rox yes ROX-Filer pcmanfm yes gimp yes gwenview yes dia yes inkscape yes obconf yes gnome-control-center yes kcontrol yes xfce-setting-show yes xdg-open http://localhost:631/ no cups yes openbox-3.6.1/data/environment0000644000175300001440000000057311337574134013330 00000000000000# # Set system-wide environment variables here for Openbox # User-specific variables should be placed in $HOME/.config/openbox/environment # # To set your language for displaying messages and time/date formats, use the following: #LANG=en_CA.UTF8 # To set your keyboard layout, you need to modify your X config: # http://www.google.com/search?q=how+to+set+keyboard+layout+xorg openbox-3.6.1/doc/0000755000175300001440000000000012544731565010754 500000000000000openbox-3.6.1/doc/rc-mouse-focus.xml0000644000175300001440000004375711646601236014276 00000000000000 10 20 yes yes no yes 200 no Smart Clearlooks NLIMC yes yes sans 8 bold normal sans 8 bold normal sans 9 normal normal sans 9 normal normal sans 9 bold normal 4 1 yes Nonpixel Center TopLeft 0 0 no Above Vertical no 300 300 Middle C-g no no no no no no no no 1 2 3 4 client-menu yesyes true Konqueror kfmclient openProfile filemanagement 8 500 client-menu top left right bottom client-menu client-menu client-menu client-list-combined-menu root-menu menu.xml 200 no 100 yes openbox-3.6.1/doc/openbox.1.sgml0000644000175300001440000001742112133512457013365 00000000000000 manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> 1"> OPENBOX"> ]> &dhucpackage; &dhsection; &dhpackage; A minimalistic, highly configurable, next generation window manager with extensive standards support. &dhpackage; DESCRIPTION Openbox is minimalistic, highly configurable, next generation window manager with extensive standards support. You can start Openbox in three ways: If you run a display manager such as GDM, you will find 3 entries in the login session type menu for Openbox: GNOME/Openbox, KDE/Openbox and Openbox. If you want to use Openbox within GNOME or KDE, you can choose the appropriate entry, and it will launch GNOME or KDE with Openbox as the window manager. The third option at log in, which is Openbox without a session manager, uses the openbox-session command to start Openbox. On log in, &dhpackage; will run the ~/.config/openbox/autostart.sh script if it exists, and will run the system-wide script @configdir@/openbox/autostart.sh otherwise. You may place anything you want to run automatically in those files, for example:
xsetroot -solid grey & gnome-settings-daemon &
Make sure that each line is followed by a "&" or else the script will stop there and further commands will not be executed. You can use the @configdir@/openbox/autostart.sh file as an example for creating your own. The default @configdir@/openbox/autostart.sh runs a number of things with Openbox. Lastly, if you use startx to launch your X session, you can set up a ~/.xinitrc file to run openbox-session and follow the same directions as above regarding the autostart.sh file. You can use the obconf tool to configure Openbox easily with a graphical interface, however more in-depth configuration is possible by editing the configuration files by hand. The default configuration and menu files are installed in @configdir@/openbox/, and the user configuration is placed in ~/.config/openbox/. You can copy the default configuration and menus to ~/.config/openbox and edit it to your liking.
OPTIONS These are the possible options that &dhpackage; accepts: Show a summary of the command line options available and exit. Show the version of the program and exit. Replace the currently running window manager. Specify the path to the config file to use. If Openbox is already running on the display, tell it to reload its configuration. If Openbox is already running on the display, tell it to restart. This is useful if you have upgraded Openbox and don't want to restart X. Exit Openbox. Do not connect to the session manager. Run in synchronous mode (for debugging). Run CMD after starting. Display debugging output. Display debugging output for focus handling. Display debugging output for session management. Split the display into two fake xinerama regions, if xinerama is not already enabled. This is for debugging xinerama support. SEE ALSO obconf (1), openbox-session(1), openbox-gnome-session(1), openbox-kde-session(1). The program's full documentation is available on the website: http://openbox.org/ Please report bugs to: http://bugzilla.icculus.org/
openbox-3.6.1/doc/openbox.1.in0000644000175300001440000000763412133512457013036 00000000000000.TH "OPENBOX" "1" .SH "NAME" openbox \(em A minimalistic, highly configurable, next generation window manager with extensive standards support. .SH "SYNOPSIS" .PP \fBopenbox\fR [\fB\-\-help\fP] [\fB\-\-version\fP] [\fB\-\-replace\fP] [\fB\-\-reconfigure\fP] [\fB\-\-restart\fP] [\fB\-\-sm-disable\fP] [\fB\-\-sync\fP] [\fB\-\-debug\fP] [\fB\-\-debug-focus\fP] [\fB\-\-debug-xinerama\fP] .SH "DESCRIPTION" .PP Openbox is minimalistic, highly configurable, next generation window manager with extensive standards support. .PP You can start Openbox in three ways: .PP If you run a display manager such as GDM, you will find 3 entries in the login session type menu for Openbox: \fBGNOME/Openbox\fR, \fBKDE/Openbox\fR and \fBOpenbox\fR. If you want to use Openbox within GNOME or KDE, you can choose the appropriate entry, and it will launch GNOME or KDE with Openbox as the window manager. .PP The third option at log in, which is \fBOpenbox\fR without a session manager, uses the \fBopenbox-session\fR command to start Openbox. On log in, \fBopenbox\fR will run the ~/.config/openbox/autostart.sh script if it exists, and will run the system-wide script @configdir@/openbox/autostart.sh otherwise. You may place anything you want to run automatically in those files, for example: .PP .RS .PP .nf xsetroot \-solid grey & gnome-settings-daemon & .fi .RE .PP Make sure that each line is followed by a "&" or else the script will stop there and further commands will not be executed. You can use the @configdir@/openbox/autostart.sh file as an example for creating your own. .PP The default @configdir@/openbox/autostart.sh runs a number of things with Openbox. .PP Lastly, if you use \fBstartx\fR to launch your X session, you can set up a ~/.xinitrc file to run \fBopenbox-session\fR and follow the same directions as above regarding the autostart.sh file. .PP You can use the \fBobconf\fR tool to configure Openbox easily with a graphical interface, however more in-depth configuration is possible by editing the configuration files by hand. .PP The default configuration and menu files are installed in @configdir@/openbox/, and the user configuration is placed in ~/.config/openbox/. You can copy the default configuration and menus to ~/.config/openbox and edit it to your liking. .SH "OPTIONS" .PP These are the possible options that \fBopenbox\fR accepts: .IP "\fB\-\-help\fP" 10 Show a summary of the command line options available and exit. .IP "\fB\-\-version\fP" 10 Show the version of the program and exit. .IP "\fB\-\-replace\fP" 10 Replace the currently running window manager. .IP "\fB\-\-config-file FILE\fP" 10 Specify the path to the config file to use. .IP "\fB\-\-reconfigure\fP" 10 If Openbox is already running on the display, tell it to reload its configuration. .IP "\fB\-\-restart\fP" 10 If Openbox is already running on the display, tell it to restart. This is useful if you have upgraded Openbox and don't want to restart X. .IP "\fB\-\-exit\fP" 10 Exit Openbox. .IP "\fB\-\-sm-disable\fP" 10 Do not connect to the session manager. .IP "\fB\-\-sync\fP" 10 Run in synchronous mode (for debugging). .IP "\fB\-\-startup CMD\fP" 10 Run CMD after starting. .IP "\fB\-\-debug\fP" 10 Display debugging output. .IP "\fB\-\-debug-focus\fP" 10 Display debugging output for focus handling. .IP "\fB\-\-debug-session\fP" 10 Display debugging output for session management. .IP "\fB\-\-debug-xinerama\fP" 10 Split the display into two fake xinerama regions, if xinerama is not already enabled. This is for debugging xinerama support. .SH "SEE ALSO" .PP obconf (1), openbox-session(1), openbox-gnome-session(1), openbox-kde-session(1). .PP The program's full documentation is available on the website: \fBhttp://openbox.org/\fP .PP Please report bugs to: \fBhttp://bugzilla.icculus.org/ \fP .\" created by instant / docbook-to-man, Sun 30 Sep 2012, 17:58 openbox-3.6.1/doc/openbox-session.1.sgml0000644000175300001440000000536211321656754015056 00000000000000 manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> 1"> OPENBOX"> ]> &dhucpackage; &dhsection; &dhpackage; Runs an Openbox session without any session manager. DESCRIPTION &dhpackage; runs an openbox session without any session manager. Without a session manager, you will not be able to save your state from one log in to the next. &dhpackage; does not take any command line arguments. On log in, &dhpackage; will run the ~/.config/openbox/autostart.sh script if it exists, and will run the system-wide script @configdir@/openbox/autostart.sh otherwise. You may place anything you want to run automatically in those files, for example:
xsetroot -solid grey & gnome-settings-daemon &
Make sure that each line is followed by a "&" or else the script will stop there and further commands will not be executed. You can use the @configdir@/openbox/autostart.sh file as an example for creating your own.
SEE ALSO openbox(1), openbox-session(1), openbox-gnome-session(1). The program's full documentation is available on the website: http://openbox.org/ Please report bugs to: http://bugzilla.icculus.org/
openbox-3.6.1/doc/openbox-session.1.in0000644000175300001440000000235411321656754014520 00000000000000.TH "OPENBOX" "1" .SH "NAME" openbox-session \(em Runs an Openbox session without any session manager. .SH "DESCRIPTION" .PP \fBopenbox-session\fR runs an openbox session without any session manager. Without a session manager, you will not be able to save your state from one log in to the next. .PP \fBopenbox-session\fR does not take any command line arguments. .PP On log in, \fBopenbox-session\fR will run the ~/.config/openbox/autostart.sh script if it exists, and will run the system-wide script @configdir@/openbox/autostart.sh otherwise. You may place anything you want to run automatically in those files, for example: .PP .RS .PP .nf xsetroot \-solid grey & gnome-settings-daemon & .fi .RE .PP Make sure that each line is followed by a "&" or else the script will stop there and further commands will not be executed. You can use the @configdir@/openbox/autostart.sh file as an example for creating your own. .SH "SEE ALSO" .PP openbox(1), openbox-session(1), openbox-gnome-session(1). .PP The program's full documentation is available on the website: \fBhttp://openbox.org/\fP .PP Please report bugs to: \fBhttp://bugzilla.icculus.org/ \fP .\" created by instant / docbook-to-man, Wed 06 Jan 2010, 13:40 openbox-3.6.1/doc/openbox-gnome-session.1.sgml0000644000175300001440000000375111321656754016161 00000000000000 manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> 1"> OPENBOX"> ]> &dhucpackage; &dhsection; &dhpackage; Run a GNOME session with Openbox as the window manager DESCRIPTION &dhpackage; runs a GNOME session with Openbox as the window manager. &dhpackage; does not take any command line arguments. SEE ALSO openbox(1), openbox-kde-session(1), openbox-session(1). The program's full documentation is available on the website: http://openbox.org/ Please report bugs to: http://bugzilla.icculus.org/ openbox-3.6.1/doc/openbox-gnome-session.1.in0000644000175300001440000000114211321656754015615 00000000000000.TH "OPENBOX" "1" .SH "NAME" openbox-gnome-session \(em Run a GNOME session with Openbox as the window manager .SH "DESCRIPTION" .PP \fBopenbox-gnome-session\fR runs a GNOME session with Openbox as the window manager. .PP \fBopenbox-gnome-session\fR does not take any command line arguments. .SH "SEE ALSO" .PP openbox(1), openbox-kde-session(1), openbox-session(1). .PP The program's full documentation is available on the website: \fBhttp://openbox.org/\fP .PP Please report bugs to: \fBhttp://bugzilla.icculus.org/ \fP .\" created by instant / docbook-to-man, Wed 06 Jan 2010, 13:40 openbox-3.6.1/doc/openbox-kde-session.1.sgml0000644000175300001440000000374511321656754015622 00000000000000 manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> 1"> OPENBOX"> ]> &dhucpackage; &dhsection; &dhpackage; Run a KDE session with Openbox as the window manager DESCRIPTION &dhpackage; runs a KDE session with Openbox as the window manager. &dhpackage; does not take any command line arguments. SEE ALSO openbox(1), openbox-gnome-session(1), openbox-session(1). The program's full documentation is available on the website: http://openbox.org/ Please report bugs to: http://bugzilla.icculus.org/ openbox-3.6.1/doc/openbox-kde-session.1.in0000644000175300001440000000113211321656754015252 00000000000000.TH "OPENBOX" "1" .SH "NAME" openbox-kde-session \(em Run a KDE session with Openbox as the window manager .SH "DESCRIPTION" .PP \fBopenbox-kde-session\fR runs a KDE session with Openbox as the window manager. .PP \fBopenbox-kde-session\fR does not take any command line arguments. .SH "SEE ALSO" .PP openbox(1), openbox-gnome-session(1), openbox-session(1). .PP The program's full documentation is available on the website: \fBhttp://openbox.org/\fP .PP Please report bugs to: \fBhttp://bugzilla.icculus.org/ \fP .\" created by instant / docbook-to-man, Wed 06 Jan 2010, 13:40 openbox-3.6.1/doc/obxprop.1.sgml0000644000175300001440000000732111334405415013377 00000000000000 manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> 1"> OBXPROP"> ]> &dhucpackage; &dhsection; &dhpackage; A minimalistic, highly configurable, next generation window manager with extensive standards support. &dhpackage; --help --display DISPLAY --id ID --root -- PROPERTY DESCRIPTION obxprop is a tool for displaying the properties on an x window. This tool has a similar functionality to xprop, but obxprop allows you to see UTF-8 strings as text. You may use the --id option to specify a window identifier, otherwise obxprop will allow you to select a window by clicking on it. Primarily, this tool exists for Openbox users to see the value of the _OB_APP_NAME, _OB_APP_CLASS, _OB_APP_ROLE, and _OB_APP_TYPE properties, which Openbox uses for matching windows against user-defined application rules. OPTIONS These are the possible options that &dhpackage; accepts: Show a summary of the options available. DISPLAY Specify the X display to use. ID Specify the window identifier for the window whose properties will be displayed. Similar to xprop, you may pass one or more property names to have &dhpackage; limit its output to only the properties requested. SEE ALSO openbox (1), openbox-session(1), openbox-gnome-session(1), openbox-kde-session(1). Please report bugs to: http://bugzilla.icculus.org/ openbox-3.6.1/doc/obxprop.1.in0000644000175300001440000000302611334405415013041 00000000000000.TH "OBXPROP" "1" .SH "NAME" openbox \(em A minimalistic, highly configurable, next generation window manager with extensive standards support. .SH "SYNOPSIS" .PP \fBopenbox\fR [\-\-help] [\-\-display DISPLAY] [\-\-id ID] [\-\-root] [\-\-] [PROPERTY \&...] .SH "DESCRIPTION" .PP obxprop is a tool for displaying the properties on an x window. .PP This tool has a similar functionality to \fBxprop\fR, but obxprop allows you to see UTF-8 strings as text. .PP You may use the \fB\-\-id\fR option to specify a window identifier, otherwise obxprop will allow you to select a window by clicking on it. .PP Primarily, this tool exists for Openbox users to see the value of the _OB_APP_NAME, _OB_APP_CLASS, _OB_APP_ROLE, and _OB_APP_TYPE properties, which Openbox uses for matching windows against user-defined application rules. .SH "OPTIONS" .PP These are the possible options that \fBopenbox\fR accepts: .IP "\fB\-\-help\fP" 10 Show a summary of the options available. .IP "\fB\-\-display\fP DISPLAY" 10 Specify the X display to use. .IP "\fB\-\-id\fP ID" 10 Specify the window identifier for the window whose properties will be displayed. .PP Similar to \fBxprop\fR, you may pass one or more property names to have \fBopenbox\fR limit its output to only the properties requested. .SH "SEE ALSO" .PP openbox (1), openbox-session(1), openbox-gnome-session(1), openbox-kde-session(1). .PP Please report bugs to: \fBhttp://bugzilla.icculus.org/ \fP .\" created by instant / docbook-to-man, Mon 08 Feb 2010, 15:03 openbox-3.6.1/m4/0000755000175300001440000000000012544731565010527 500000000000000openbox-3.6.1/m4/gettext.m40000644000175300001440000006070011003646455012370 00000000000000# gettext.m4 serial 53 (gettext-0.15) dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2005. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], [no], [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. dnl Add a version number to the cache macros. define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, [AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ]], [])[extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], gt_cv_func_gnugettext_libc=yes, gt_cv_func_gnugettext_libc=no)]) if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], gt_cv_func_gnugettext_libintl, [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ]], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], gt_cv_func_gnugettext_libintl=yes, gt_cv_func_gnugettext_libintl=no) dnl Now see whether libintl exists and depends on libiconv. if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ]], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" gt_cv_func_gnugettext_libintl=yes ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if test "$gt_cv_func_gnugettext_libc" = "yes" \ || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE(HAVE_GETTEXT, 1, [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE(HAVE_DCGETTEXT, 1, [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST(BUILD_INCLUDED_LIBINTL) AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(CATOBJEXT) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST(DATADIRNAME) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST(INSTOBJEXT) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST(GENCAT) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST(INTLOBJS) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST(INTLLIBS) dnl Make all documented variables known to autoconf. AC_SUBST(LIBINTL) AC_SUBST(LTLIBINTL) AC_SUBST(POSUB) ]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. AC_DEFUN([AM_INTL_SUBDIR], [ AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([gt_GLIBC2])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([gl_VISIBILITY])dnl AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl AC_REQUIRE([bh_C_SIGNED])dnl AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl AC_REQUIRE([gt_TYPE_WCHAR_T])dnl AC_REQUIRE([gt_TYPE_WINT_T])dnl AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gt_TYPE_INTMAX_T]) AC_REQUIRE([gt_PRINTF_POSIX]) AC_REQUIRE([gl_GLIBC21])dnl AC_REQUIRE([gl_XSIZE])dnl AC_REQUIRE([gt_INTL_MACOSX])dnl AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). gt_CHECK_DECL(_snprintf, [#include ]) gt_CHECK_DECL(_snwprintf, [#include ]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL(getc_unlocked, [#include ]) case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac AC_SUBST([HAVE_POSIX_PRINTF]) if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi AC_SUBST([HAVE_ASPRINTF]) if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi AC_SUBST([HAVE_SNPRINTF]) if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi AC_SUBST([HAVE_WPRINTF]) AM_LANGINFO_CODESET gt_LC_MESSAGES dnl Compilation on mingw and Cygwin needs special Makefile rules, because dnl 1. when we install a shared library, we must arrange to export dnl auxiliary pointer variables for every exported variable, dnl 2. when we install a shared library and a static library simultaneously, dnl the include file specifies __declspec(dllimport) and therefore we dnl must arrange to define the auxiliary pointer variables for the dnl exported variables _also_ in the static library. if test "$enable_shared" = yes; then case "$host_os" in cygwin*) is_woe32dll=yes ;; *) is_woe32dll=no ;; esac else is_woe32dll=no fi WOE32DLL=$is_woe32dll AC_SUBST([WOE32DLL]) dnl Rename some macros and functions used for locking. AH_BOTTOM([ #define __libc_lock_t gl_lock_t #define __libc_lock_define gl_lock_define #define __libc_lock_define_initialized gl_lock_define_initialized #define __libc_lock_init gl_lock_init #define __libc_lock_lock gl_lock_lock #define __libc_lock_unlock gl_lock_unlock #define __libc_lock_recursive_t gl_recursive_lock_t #define __libc_lock_define_recursive gl_recursive_lock_define #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized #define __libc_lock_init_recursive gl_recursive_lock_init #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use #define glthread_lock_init libintl_lock_init #define glthread_lock_lock libintl_lock_lock #define glthread_lock_unlock libintl_lock_unlock #define glthread_lock_destroy libintl_lock_destroy #define glthread_rwlock_init libintl_rwlock_init #define glthread_rwlock_rdlock libintl_rwlock_rdlock #define glthread_rwlock_wrlock libintl_rwlock_wrlock #define glthread_rwlock_unlock libintl_rwlock_unlock #define glthread_rwlock_destroy libintl_rwlock_destroy #define glthread_recursive_lock_init libintl_recursive_lock_init #define glthread_recursive_lock_lock libintl_recursive_lock_lock #define glthread_recursive_lock_unlock libintl_recursive_lock_unlock #define glthread_recursive_lock_destroy libintl_recursive_lock_destroy #define glthread_once libintl_once #define glthread_once_call libintl_once_call #define glthread_once_singlethreaded libintl_once_singlethreaded ]) ]) dnl Checks for the core files of the intl subdirectory: dnl dcigettext.c dnl eval-plural.h dnl explodename.c dnl finddomain.c dnl gettextP.h dnl gmo.h dnl hash-string.h hash-string.c dnl l10nflist.c dnl libgnuintl.h.in (except the *printf stuff) dnl loadinfo.h dnl loadmsgcat.c dnl localealias.c dnl log.c dnl plural-exp.h plural-exp.c dnl plural.y dnl Used by libglocale. AC_DEFUN([gt_INTL_SUBDIR_CORE], [ AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([gt_INTDIV0])dnl AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl AC_REQUIRE([gl_HEADER_INTTYPES_H])dnl AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_LOCK])dnl AC_TRY_LINK( [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], [], [AC_DEFINE([HAVE_BUILTIN_EXPECT], 1, [Define to 1 if the compiler understands __builtin_expect.])]) AC_CHECK_HEADERS([argz.h limits.h unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \ argz_next __fsetlocking]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL(feof_unlocked, [#include ]) gt_CHECK_DECL(fgets_unlocked, [#include ]) AM_ICONV dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined, dnl and a _NL_LOCALE_NAME macro always. AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name, [AC_TRY_LINK([#include #include ], [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));], gt_cv_nl_locale_name=yes, gt_cv_nl_locale_name=no) ]) if test $gt_cv_nl_locale_name = yes; then AC_DEFINE(HAVE_NL_LOCALE_NAME, 1, [Define if you have and it defines the NL_LOCALE_NAME macro if _GNU_SOURCE is defined.]) fi dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't dnl compile. dnl bison is only needed for the maintainer (who touches plural.y). But in dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put dnl the rule in general Makefile. Now, some people carelessly touch the dnl files or have a broken "make" program, hence the plural.c rule will dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not dnl present or too old. AC_CHECK_PROGS([INTLBISON], [bison]) if test -z "$INTLBISON"; then ac_verc_fail=yes else dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) changequote([,])dnl ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then INTLBISON=: fi ]) dnl Checks for special options needed on MacOS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], gt_cv_func_CFPreferencesCopyAppValue, [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) dnl gt_CHECK_DECL(FUNC, INCLUDES) dnl Check whether a function is declared. AC_DEFUN([gt_CHECK_DECL], [ AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, [AC_TRY_COMPILE([$2], [ #ifndef $1 char *p = (char *) $1; #endif ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) if test $ac_cv_have_decl_$1 = yes; then gt_value=1 else gt_value=0 fi AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) openbox-3.6.1/m4/iconv.m40000644000175300001440000000642611003646455012027 00000000000000# iconv.m4 serial AM4 (gettext-0.11.3) dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_func_iconv=yes) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_lib_iconv=yes am_cv_func_iconv=yes) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST(LIBICONV) AC_SUBST(LTLIBICONV) ]) AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$]{ac_t:- }[$]am_cv_proto_iconv) AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, [Define as const if the declaration of iconv() needs const.]) fi ]) openbox-3.6.1/m4/lib-ld.m40000644000175300001440000000653111003646455012051 00000000000000# lib-ld.m4 serial 3 (gettext-0.13) dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 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 ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(acl_cv_path_LD, [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) openbox-3.6.1/m4/lib-link.m40000644000175300001440000006304611003646455012413 00000000000000# lib-link.m4 serial 8 (gettext-0.15) dnl Copyright (C) 2001-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ(2.50) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes undefine([Name]) undefine([NAME]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. If found, it dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" LIBS="$LIBS $LIB[]NAME" AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) undefine([Name]) undefine([NAME]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, dnl hardcode_direct, hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE(rpath, [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib$1-prefix], [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib --without-lib$1-prefix don't search for lib$1 in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) openbox-3.6.1/m4/lib-prefix.m40000644000175300001440000001503611003646455012747 00000000000000# lib-prefix.m4 serial 5 (gettext-0.15) dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing dnl the basename of the libdir, either "lib" or "lib64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. The current dnl practice is that on a system supporting 32-bit and 64-bit instruction dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit dnl libraries go under $prefix/lib. We determine the compiler's default dnl mode by looking at the compiler's library search path. If at least dnl of its elements ends in /lib64 or points to a directory whose absolute dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the dnl default, namely "lib". acl_libdirstem=lib searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ]) openbox-3.6.1/m4/libtool.m40000644000175300001440000112570012544730633012356 00000000000000# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # 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. m4_define([_LT_COPYING], [dnl # Copyright (C) 2014 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. # GNU Libtool 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 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool 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, see . ]) # serial 58 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_PREPARE_CC_BASENAME # ----------------------- m4_defun([_LT_PREPARE_CC_BASENAME], [ # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in @S|@*""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } ])# _LT_PREPARE_CC_BASENAME # _LT_CC_BASENAME(CC) # ------------------- # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, # but that macro is also expanded into generated libtool script, which # arranges for $SED and $ECHO to be set by different means. m4_defun([_LT_CC_BASENAME], [m4_require([_LT_PREPARE_CC_BASENAME])dnl AC_REQUIRE([_LT_DECL_SED])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl func_cc_basename $1 cc_basename=$func_cc_basename_result ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl m4_require([_LT_CMD_TRUNCATE])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from 'configure', and 'config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # 'config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain=$ac_aux_dir/ltmain.sh ])# _LT_PROG_LTMAIN ## ------------------------------------- ## ## Accumulate code for creating libtool. ## ## ------------------------------------- ## # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the 'libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) ## ------------------------ ## ## FIXME: Eliminate VARNAME ## ## ------------------------ ## # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to 'config.status' so that its # declaration there will have the same value as in 'configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags='_LT_TAGS'dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into 'config.status', and then the shell code to quote escape them in # for loops in 'config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # 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 sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # '#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test 0 = "$lt_write_fail" && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $[#] do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try '$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try '$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 _LT_COPYING _LT_LIBTOOL_TAGS # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE _LT_PREPARE_MUNGE_PATH_LIST _LT_PREPARE_CC_BASENAME # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS=$save_LDFLAGS ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[[012]][[,.]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test yes = "$lt_cv_ld_force_load"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script that will find a shell with a builtin # printf (that we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case $ECHO in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot if not specified).])], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([$with_sysroot]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and where our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test yes = "[$]$2"; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ]) if test yes = "[$]$2"; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n "$lt_cv_sys_max_cmd_len"; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes = "$cross_compiling"; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen=shl_load], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen=dlopen], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) ]) ]) ]) ]) ]) ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links=nottested if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test no = "$hard_links"; then AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", [Define to the sub-directory where libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then # We can hardcode non-existent directories. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_PREPARE_MUNGE_PATH_LIST # --------------------------- # Make sure func_munge_path_list() is defined correctly. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], [[# func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x@S|@2 in x) ;; *:) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" ;; x:*) eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; *::*) eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" ;; *) eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" ;; esac } ]])# _LT_PREPARE_PATH_LIST # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown AC_ARG_VAR([LT_SYS_LIBRARY_PATH], [User-defined run-time library search path.]) case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a[(]lib.so.V[)]' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], [Detected run-time system search path for libraries]) _LT_DECL([], [configure_time_lt_sys_library_path], [2], [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program that can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$1"; then lt_cv_path_MAGIC_CMD=$ac_dir/"$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac]) MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program that can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test no = "$withval" || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], [if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi]) rm -f conftest.i conftest2.i conftest.out]) ])# _LT_PATH_DD # _LT_CMD_TRUNCATE # ---------------- # find command to truncate a binary pipe m4_defun([_LT_CMD_TRUNCATE], [m4_require([_LT_PATH_DD]) AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], [printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], [Command to truncate a binary pipe]) ])# _LT_CMD_TRUNCATE # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_MAGIC_METHOD], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[[4-9]]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[[45]]*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi]) if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # _LT_DLL_DEF_P([FILE]) # --------------------- # True iff FILE is a Windows DLL '.def' file. # Keep in sync with func_dll_def_p in the libtool script AC_DEFUN([_LT_DLL_DEF_P], [dnl test DEF = "`$SED -n dnl -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl -e q dnl Only consider the first "real" line $1`" dnl ])# _LT_DLL_DEF_P # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM=-lm) ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test yes = "$GCC"; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], [Transform the output of nm into a list of symbols to manually relocate]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], [The name lister interface]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test yes = "$GCC"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) case $host_os in os2*) _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS=$save_LDFLAGS]) if test yes = "$lt_cv_irix_exported_symbol"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(ld_shlibs, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; osf3*) if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting $shlibpath_var if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC=$CC AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report what library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC=$lt_save_CC ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no ;; esac if test yes = "$GXX"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. # The "-G" linker flag allows undefined symbols. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported shrext_cmds=.dll _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(GCC, $1)=$GXX _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case @S|@2 in .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)=$prev$p else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)=$p else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)=$p else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test no = "$F77"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$G77 _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code=$lt_simple_compile_test_code # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ ############################################################ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # ############################################################ m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f "$lt_ac_sed" && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test 10 -lt "$lt_ac_count" && break lt_ac_count=`expr $lt_ac_count + 1` if test "$lt_ac_count" -gt "$lt_ac_max"; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine what file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS openbox-3.6.1/m4/ltoptions.m40000644000175300001440000003426212544730633012746 00000000000000# Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 8 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option '$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl 'shared' nor 'disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], [_LT_WITH_AIX_SONAME([aix])]) ]) ])# _LT_SET_OPTIONS ## --------------------------------- ## ## Macros to handle LT_INIT options. ## ## --------------------------------- ## # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the 'shared' and # 'disable-shared' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the 'static' and # 'disable-static' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the 'fast-install' # and 'disable-fast-install' LT_INIT options. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_AIX_SONAME([DEFAULT]) # ---------------------------------- # implement the --with-aix-soname flag, and support the `aix-soname=aix' # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. m4_define([_LT_WITH_AIX_SONAME], [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[[5-9]]*,yes) AC_MSG_CHECKING([which variant of shared library versioning to provide]) AC_ARG_WITH([aix-soname], [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], [case $withval in aix|svr4|both) ;; *) AC_MSG_ERROR([Unknown argument to --with-aix-soname]) ;; esac lt_cv_with_aix_soname=$with_aix_soname], [AC_CACHE_VAL([lt_cv_with_aix_soname], [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) with_aix_soname=$lt_cv_with_aix_soname]) AC_MSG_RESULT([$with_aix_soname]) if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac _LT_DECL([], [shared_archive_member_spec], [0], [Shared archive member basename, for filename based shared library versioning on AIX])dnl ])# _LT_WITH_AIX_SONAME LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' # LT_INIT options. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac], [pic_mode=m4_default([$1], [default])]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) ## ----------------- ## ## LTDL_INIT Options ## ## ----------------- ## m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) openbox-3.6.1/m4/ltsugar.m40000644000175300001440000001044012544730633012364 00000000000000# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59, which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) openbox-3.6.1/m4/ltversion.m40000644000175300001440000000127312544730633012734 00000000000000# ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 4179 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.6]) m4_define([LT_PACKAGE_REVISION], [2.4.6]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.6' macro_revision='2.4.6' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) openbox-3.6.1/m4/lt~obsolete.m40000644000175300001440000001377412544730633013272 00000000000000# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software # Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) openbox-3.6.1/m4/nls.m40000644000175300001440000000226611003646455011503 00000000000000# nls.m4 serial 3 (gettext-0.15) dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ(2.50) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE(nls, [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT($USE_NLS) AC_SUBST(USE_NLS) ]) openbox-3.6.1/m4/openbox.m40000644000175300001440000000644412421143620012352 00000000000000# OB_DEBUG() # # Check if the user has requested a debug build. # Sets the DEBUG or NDEBUG variables as appropriate # Sets the CVS environment variable when building CVS sources. AC_DEFUN([OB_DEBUG], [ AC_MSG_CHECKING([build type]) AC_ARG_ENABLE([strict-ansi], AC_HELP_STRING([--enable-strict-ansi],[Enable strict ANSI compliance build [[default=no]]]), [STRICT=$enableval], [STRICT="no"]) AC_ARG_ENABLE([super-warnings], AC_HELP_STRING([--enable-super-warnings],[Enable extra compiler warnings [[default=no]]]), [SUPERWARN=$enableval], [SUPERWARN="no"]) AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug],[build a debug version [[default=no]]]), [DEBUG=$enableval], [DEBUG="no"]) AC_ARG_ENABLE([gprof], AC_HELP_STRING([--enable-gprof],[Enable gprof profiling output [[default=no]]]), [PROF=$enableval], [PROF="no"]) AC_ARG_ENABLE([gprof-libc], AC_HELP_STRING([--enable-gprof-libc],[Link against libc with profiling support [[default=no]]]), [PROFLC=$enableval], [PROFLC="no"]) if test "$PROFLC" = "yes"; then PROF="yes" # always enable profiling then fi TEST="" test "${PACKAGE_VERSION%*alpha*}" != "$PACKAGE_VERSION" && TEST="yes" test "${PACKAGE_VERSION%*beta*}" != "$PACKAGE_VERSION" && TEST="yes" test "$TEST" = "yes" && DEBUG="yes" if test "$DEBUG" = "yes"; then MSG="DEBUG" else MSG="RELEASE" fi if test "$TEST" = "yes"; then MSG="$MSG (test release)" fi if test "$STRICT" = "yes"; then MSG="$MSG with strict ANSI compliance" fi if test "$SUPERWARN" = "yes"; then MSG="$MSG with super warnings" fi AC_MSG_RESULT([$MSG]) test "$DEBUG" = "yes" && \ AC_DEFINE([DEBUG], [1], [Creating a debug build]) ]) # OB_COMPILER_FLAGS() # # Check what compiler is being used for compilation. # It sets the CFLAGS variable appropriately for the compiler, including flags # for debug builds. AC_DEFUN([OB_COMPILER_FLAGS], [ AC_REQUIRE([AC_PROG_CPP]) AC_REQUIRE([AC_PROG_CC]) FLAGS="" L="" if test "$DEBUG" = "yes"; then FLAGS="-DDEBUG" else FLAGS="-DNDEBUG -DG_DISABLE_ASSERT" fi # Check what compiler we are using AC_MSG_CHECKING([for GNU CC]) if test "$GCC" = "yes"; then AC_MSG_RESULT([yes]) if test "$DEBUG" = "yes"; then FLAGS="$FLAGS -O0 -ggdb -fno-inline -Wwrite-strings" FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return" FLAGS="$FLAGS -Wbad-function-cast -Wpointer-arith" FLAGS="$FLAGS -Wno-write-strings" # for Python.h #FLAGS="$FLAGS -Wno-long-long" fi if test "$SUPERWARN" = "yes"; then # glib can't handle -Wcast-qual FLAGS="$FLAGS -Wcast-qual -Wextra" fi if test "$STRICT" = "yes"; then FLAGS="$FLAGS -ansi -pedantic -D_XOPEN_SOURCE" fi if test "$PROF" = "yes"; then FLAGS="$FLAGS -pg -fno-inline" fi if test "$PROFLC" = "yes"; then L="$L -lc_p -lm_p" fi FLAGS="$FLAGS -fno-strict-aliasing" fi AC_MSG_CHECKING([for compiler specific flags]) AC_MSG_RESULT([$FLAGS]) CFLAGS="$CFLAGS $FLAGS" LIBS="$LIBS $L" ]) AC_DEFUN([OB_NLS], [ AC_ARG_ENABLE([nls], AC_HELP_STRING([--enable-nls],[Enable NLS translations [[default=yes]]]), [NLS=$enableval], [NLS="yes"]) if test "$NLS" = yes; then DEFS="$DEFS -DENABLE_NLS" fi ]) openbox-3.6.1/m4/po.m40000644000175300001440000004336711003646455011334 00000000000000# po.m4 serial 13 (gettext-0.15) dnl Copyright (C) 1995-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ(2.50) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AM_NLS])dnl dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; 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 INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <, 1996. AC_PREREQ(2.50) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # 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 # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # 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. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done 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 ]) openbox-3.6.1/m4/x11.m40000644000175300001440000002261511615544036011321 00000000000000# X11_DEVEL() # # Check for the presence of the X Window System headers and libraries. # Sets the CPPFLAGS and LIBS variables as appropriate. AC_DEFUN([X11_DEVEL], [ AC_PATH_XTRA test "$no_x" = "yes" && \ AC_MSG_ERROR([The X Window System could not be found.]) # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" X_LIBS="$X_PRE_LIBS $X_LIBS -lX11" LIBS="$LIBS $X_LIBS" # Check for required functions in -lX11 AC_CHECK_LIB( [X11], [XOpenDisplay], , AC_MSG_ERROR([Could not find XOpenDisplay in -lX11.]) ) # Restore the old values. Use X_CFLAGS and X_LIBS in # the Makefiles LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS ]) # X11_EXT_XKB() # # Check for the presence of the "Xkb" X Window System extension. # Defines "XKB" and sets the $(XKB) variable to "yes" if the extension is # present. AC_DEFUN([X11_EXT_XKB], [ AC_REQUIRE([X11_DEVEL]) AC_ARG_ENABLE([xkb], AC_HELP_STRING( [--disable-xkb], [build without support for xkb extension [default=enabled]]), [USE=$enableval], [USE="yes"]) if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" AC_CHECK_LIB([X11], [XkbBell], AC_MSG_CHECKING([for X11/XKBlib.h]) AC_TRY_LINK( [ #include #include #include ], [ Display *d; Window w; XkbBell(d, w, 0, 0); ], [ AC_MSG_RESULT([yes]) XKB="yes" AC_DEFINE([XKB], [1], [Found the XKB extension]) XKB_CFLAGS="" XKB_LIBS="" AC_SUBST(XKB_CFLAGS) AC_SUBST(XKB_LIBS) ], [ AC_MSG_RESULT([no]) XKB="no" ]) ) LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi AC_MSG_CHECKING([for the Xkb extension]) if test "$XKB" = "yes"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ]) # X11_EXT_XRANDR() # # Check for the presence of the "XRandR" X Window System extension. # Defines "XRANDR" and sets the $(XRANDR) variable to "yes" if the extension is # present. AC_DEFUN([X11_EXT_XRANDR], [ AC_REQUIRE([X11_DEVEL]) AC_ARG_ENABLE([xrandr], AC_HELP_STRING( [--disable-xrandr], [build without support for xrandr extension [default=enabled]]), [USE=$enableval], [USE="yes"]) if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS -lXext -lXrender -lXrandr" AC_CHECK_LIB([Xrandr], [XRRSelectInput], AC_MSG_CHECKING([for X11/extensions/Xrandr.h]) AC_TRY_LINK( [ #include #include ], [ Display *d; Drawable r; int i; XRRQueryExtension(d, &i, &i); XRRGetScreenInfo(d, r); ], [ AC_MSG_RESULT([yes]) XRANDR="yes" AC_DEFINE([XRANDR], [1], [Found the XRandR extension]) XRANDR_CFLAGS="" XRANDR_LIBS="-lXext -lXrender -lXrandr" AC_SUBST(XRANDR_CFLAGS) AC_SUBST(XRANDR_LIBS) ], [ AC_MSG_RESULT([no]) XRANDR="no" ]) ) LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi AC_MSG_CHECKING([for the XRandR extension]) if test "$XRANDR" = "yes"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ]) # X11_EXT_SHAPE() # # Check for the presence of the "Shape" X Window System extension. # Defines "SHAPE", sets the $(SHAPE) variable to "yes", and sets the $(LIBS) # appropriately if the extension is present. AC_DEFUN([X11_EXT_SHAPE], [ AC_REQUIRE([X11_DEVEL]) AC_ARG_ENABLE([xshape], AC_HELP_STRING( [--disable-xshape], [build without support for xshape extension [default=enabled]]), [USE=$enableval], [USE="yes"]) if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" AC_CHECK_LIB([Xext], [XShapeCombineShape], AC_MSG_CHECKING([for X11/extensions/shape.h]) AC_TRY_LINK( [ #include #include #include ], [ long foo = ShapeSet; ], [ AC_MSG_RESULT([yes]) SHAPE="yes" AC_DEFINE([SHAPE], [1], [Found the XShape extension]) XSHAPE_CFLAGS="" XSHAPE_LIBS="-lXext" AC_SUBST(XSHAPE_CFLAGS) AC_SUBST(XSHAPE_LIBS) ], [ AC_MSG_RESULT([no]) SHAPE="no" ]) ) LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi AC_MSG_CHECKING([for the Shape extension]) if test "$SHAPE" = "yes"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ]) # X11_EXT_XINERAMA() # # Check for the presence of the "Xinerama" X Window System extension. # Defines "XINERAMA", sets the $(XINERAMA) variable to "yes", and sets the # $(LIBS) appropriately if the extension is present. AC_DEFUN([X11_EXT_XINERAMA], [ AC_REQUIRE([X11_DEVEL]) AC_ARG_ENABLE([xinerama], AC_HELP_STRING( [--disable-xinerama], [build without support for xinerama [default=enabled]]), [USE=$enableval], [USE="yes"]) if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS -lXext" AC_CHECK_LIB([Xinerama], [XineramaQueryExtension], [ AC_MSG_CHECKING([for X11/extensions/Xinerama.h]) AC_TRY_LINK( [ #include #include ], [ XineramaScreenInfo foo; ], [ AC_MSG_RESULT([yes]) XINERAMA="yes" AC_DEFINE([XINERAMA], [1], [Enable support of the Xinerama extension]) XINERAMA_LIBS="-lXext -lXinerama" AC_SUBST(XINERAMA_LIBS) ], [ AC_MSG_RESULT([no]) XINERAMA="no" ]) ]) LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi AC_MSG_CHECKING([for the Xinerama extension]) if test "$XINERAMA" = "yes"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ]) # X11_EXT_SYNC() # # Check for the presence of the "Sync" X Window System extension. # Defines "SYNC", sets the $(SYNC) variable to "yes", and sets the $(LIBS) # appropriately if the extension is present. AC_DEFUN([X11_EXT_SYNC], [ AC_REQUIRE([X11_DEVEL]) AC_ARG_ENABLE([xsync], AC_HELP_STRING( [--disable-xsync], [build without support for xsync extension [default=enabled]]), [USE=$enableval], [USE="yes"]) if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" AC_CHECK_LIB([Xext], [XSyncInitialize], AC_MSG_CHECKING([for X11/extensions/sync.h]) AC_TRY_LINK( [ #include #include #include ], [ XSyncValueType foo; ], [ AC_MSG_RESULT([yes]) SYNC="yes" AC_DEFINE([SYNC], [1], [Found the XSync extension]) XSYNC_CFLAGS="" XSYNC_LIBS="-lXext" AC_SUBST(XSYNC_CFLAGS) AC_SUBST(XSYNC_LIBS) ], [ AC_MSG_RESULT([no]) SYNC="no" ]) ) LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi AC_MSG_CHECKING([for the Sync extension]) if test "$SYNC" = "yes"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ]) # X11_EXT_AUTH() # # Check for the presence of the "Xau" X Window System extension. # Defines "AUTH, sets the $(AUTH) variable to "yes", and sets the $(LIBS) # appropriately if the extension is present. AC_DEFUN([X11_EXT_AUTH], [ AC_REQUIRE([X11_DEVEL]) # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" AC_CHECK_LIB([Xau], [XauReadAuth], AC_MSG_CHECKING([for X11/Xauth.h]) AC_TRY_LINK( [ #include #include #include ], [ ], [ AC_MSG_RESULT([yes]) AUTH="yes" AC_DEFINE([AUTH], [1], [Found the Xauth extension]) XAUTH_CFLAGS="" XAUTH_LIBS="-lXau" AC_SUBST(XAUTH_CFLAGS) AC_SUBST(XAUTH_LIBS) ], [ AC_MSG_RESULT([no]) AUTH="no" ]) ) LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS AC_MSG_CHECKING([for the Xauth extension]) if test "$AUTH" = "yes"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ]) # X11_SM() # # Check for the presence of SMlib for session management. # Defines "USE_SM" if SMlib is present. AC_DEFUN([X11_SM], [ AC_REQUIRE([X11_DEVEL]) AC_ARG_ENABLE([session-management], AC_HELP_STRING( [--disable-session-management], [build without support for session managers [default=enabled]]), [SM=$enableval], [SM="yes"]) if test "$SM" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" SM="no" AC_CHECK_LIB([SM], [SmcSaveYourselfDone], [ AC_CHECK_HEADERS([X11/SM/SMlib.h], [ SM_CFLAGS="$X_CFLAGS" SM_LIBS="-lSM -lICE" AC_DEFINE(USE_SM, 1, [Use session management]) AC_SUBST(SM_CFLAGS) AC_SUBST(SM_LIBS) SM="yes" ]) ]) LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi AC_MSG_CHECKING([for session management support]) if test "$SM" = "yes"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ]) openbox-3.6.1/m4/Makefile.am0000644000175300001440000000072611003646273012476 00000000000000EXTRA_DIST=\ codeset.m4 \ gettext.m4 \ glibc21.m4 \ glibc2.m4 \ iconv.m4 \ intdiv0.m4 \ intmax.m4 \ inttypes_h.m4 \ inttypes-h.m4 \ inttypes-pri.m4 \ lcmessage.m4 \ lib-ld.m4 \ lib-link.m4 \ lib-prefix.m4 \ lock.m4 \ longdouble.m4 \ longlong.m4 \ nls.m4 \ openbox.m4 \ po.m4 \ printf-posix.m4 \ progtest.m4 \ signed.m4 \ size_max.m4 \ stdint_h.m4 \ uintmax_t.m4 \ ulonglong.m4 \ visibility.m4 \ wchar_t.m4 \ wint_t.m4 \ x11.m4 \ xsize.m4 openbox-3.6.1/m4/Makefile.in0000644000175300001440000003225412544730644012517 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = m4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/openbox.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/x11.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIRNAME = @DIRNAME@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EFENCE_LIBS = @EFENCE_LIBS@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ IMLIB2_CFLAGS = @IMLIB2_CFLAGS@ IMLIB2_LIBS = @IMLIB2_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRSVG_CFLAGS = @LIBRSVG_CFLAGS@ LIBRSVG_LIBS = @LIBRSVG_LIBS@ LIBS = @LIBS@ LIBSN_CFLAGS = @LIBSN_CFLAGS@ LIBSN_LIBS = @LIBSN_LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OBT_AGE = @OBT_AGE@ OBT_BINARY_AGE = @OBT_BINARY_AGE@ OBT_CURRENT = @OBT_CURRENT@ OBT_CURRENT_MINUS_AGE = @OBT_CURRENT_MINUS_AGE@ OBT_INTERFACE_AGE = @OBT_INTERFACE_AGE@ OBT_MAJOR_VERSION = @OBT_MAJOR_VERSION@ OBT_MICRO_VERSION = @OBT_MICRO_VERSION@ OBT_MINOR_VERSION = @OBT_MINOR_VERSION@ OBT_RELEASE = @OBT_RELEASE@ OBT_REVISION = @OBT_REVISION@ OBT_VERSION = @OBT_VERSION@ OB_VERSION = @OB_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGO_CFLAGS = @PANGO_CFLAGS@ PANGO_LIBS = @PANGO_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_IMLIB = @PKG_CONFIG_IMLIB@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_LIBRSVG = @PKG_CONFIG_LIBRSVG@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ RANLIB = @RANLIB@ RR_AGE = @RR_AGE@ RR_BINARY_AGE = @RR_BINARY_AGE@ RR_CURRENT = @RR_CURRENT@ RR_CURRENT_MINUS_AGE = @RR_CURRENT_MINUS_AGE@ RR_INTERFACE_AGE = @RR_INTERFACE_AGE@ RR_MAJOR_VERSION = @RR_MAJOR_VERSION@ RR_MICRO_VERSION = @RR_MICRO_VERSION@ RR_MINOR_VERSION = @RR_MINOR_VERSION@ RR_RELEASE = @RR_RELEASE@ RR_REVISION = @RR_REVISION@ RR_VERSION = @RR_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SM_CFLAGS = @SM_CFLAGS@ SM_LIBS = @SM_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XAUTH_CFLAGS = @XAUTH_CFLAGS@ XAUTH_LIBS = @XAUTH_LIBS@ XCURSOR_CFLAGS = @XCURSOR_CFLAGS@ XCURSOR_LIBS = @XCURSOR_LIBS@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XINERAMA_LIBS = @XINERAMA_LIBS@ XKB_CFLAGS = @XKB_CFLAGS@ XKB_LIBS = @XKB_LIBS@ XMKMF = @XMKMF@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ XRANDR_CFLAGS = @XRANDR_CFLAGS@ XRANDR_LIBS = @XRANDR_LIBS@ XSHAPE_CFLAGS = @XSHAPE_CFLAGS@ XSHAPE_LIBS = @XSHAPE_LIBS@ XSYNC_CFLAGS = @XSYNC_CFLAGS@ XSYNC_LIBS = @XSYNC_LIBS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ EXTRA_DIST = \ codeset.m4 \ gettext.m4 \ glibc21.m4 \ glibc2.m4 \ iconv.m4 \ intdiv0.m4 \ intmax.m4 \ inttypes_h.m4 \ inttypes-h.m4 \ inttypes-pri.m4 \ lcmessage.m4 \ lib-ld.m4 \ lib-link.m4 \ lib-prefix.m4 \ lock.m4 \ longdouble.m4 \ longlong.m4 \ nls.m4 \ openbox.m4 \ po.m4 \ printf-posix.m4 \ progtest.m4 \ signed.m4 \ size_max.m4 \ stdint_h.m4 \ uintmax_t.m4 \ ulonglong.m4 \ visibility.m4 \ wchar_t.m4 \ wint_t.m4 \ x11.m4 \ xsize.m4 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign m4/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign m4/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: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-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: openbox-3.6.1/m4/codeset.m40000644000175300001440000000135111003646455012327 00000000000000# codeset.m4 serial AM1 (gettext-0.10.40) dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET);], am_cv_langinfo_codeset=yes, am_cv_langinfo_codeset=no) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, [Define if you have and nl_langinfo(CODESET).]) fi ]) openbox-3.6.1/m4/glibc21.m40000644000175300001440000000144511003646455012130 00000000000000# glibc21.m4 serial 3 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.1 or newer. # From Bruno Haible. AC_DEFUN([gl_GLIBC21], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, ac_cv_gnu_library_2_1, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2_1=yes, ac_cv_gnu_library_2_1=no) ] ) AC_SUBST(GLIBC21) GLIBC21="$ac_cv_gnu_library_2_1" ] ) openbox-3.6.1/m4/glibc2.m40000644000175300001440000000135411003646455012046 00000000000000# glibc2.m4 serial 1 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.0 or newer. # From Bruno Haible. AC_DEFUN([gt_GLIBC2], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer, ac_cv_gnu_library_2, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2=yes, ac_cv_gnu_library_2=no) ] ) AC_SUBST(GLIBC2) GLIBC2="$ac_cv_gnu_library_2" ] ) openbox-3.6.1/m4/intdiv0.m40000644000175300001440000000334011003646455012256 00000000000000# intdiv0.m4 serial 1 (gettext-0.11.3) dnl Copyright (C) 2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gt_INTDIV0], [ AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], gt_cv_int_divbyzero_sigfpe, [ AC_TRY_RUN([ #include #include static void #ifdef __cplusplus sigfpe_handler (int sig) #else sigfpe_handler (sig) int sig; #endif { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } ], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, [ # Guess based on the CPU. case "$host_cpu" in alpha* | i[34567]86 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac ]) ]) case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, [Define if integer division by zero raises signal SIGFPE.]) ]) openbox-3.6.1/m4/intmax.m40000644000175300001440000000174611003646455012211 00000000000000# intmax.m4 serial 2 (gettext-0.14.2) dnl Copyright (C) 2002-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the system has the 'intmax_t' type, but don't attempt to dnl find a replacement if it is lacking. AC_DEFUN([gt_TYPE_INTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, [AC_TRY_COMPILE([ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif ], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)]) if test $gt_cv_c_intmax_t = yes; then AC_DEFINE(HAVE_INTMAX_T, 1, [Define if you have the 'intmax_t' type in or .]) fi ]) openbox-3.6.1/m4/inttypes_h.m40000644000175300001440000000162311003646455013071 00000000000000# inttypes_h.m4 serial 6 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], gl_cv_header_inttypes_h=yes, gl_cv_header_inttypes_h=no)]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) openbox-3.6.1/m4/inttypes-h.m40000644000175300001440000000150011003646455013001 00000000000000# inttypes-h.m4 serial 1 (gettext-0.15) dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_INTTYPES_H if exists and doesn't clash with # . AC_DEFUN([gl_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, [ AC_TRY_COMPILE( [#include #include ], [], gl_cv_header_inttypes_h=yes, gl_cv_header_inttypes_h=no) ]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists and doesn't clash with .]) fi ]) openbox-3.6.1/m4/inttypes-pri.m40000644000175300001440000000200611003646455013346 00000000000000# inttypes-pri.m4 serial 2 (gettext-0.15) dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. # Define PRI_MACROS_BROKEN if exists and defines the PRI* # macros to non-string values. This is the case on AIX 4.3.3. AC_DEFUN([gt_INTTYPES_PRI], [ AC_REQUIRE([gl_HEADER_INTTYPES_H]) if test $gl_cv_header_inttypes_h = yes; then AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], gt_cv_inttypes_pri_broken, [ AC_TRY_COMPILE([#include #ifdef PRId32 char *p = PRId32; #endif ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) ]) fi if test "$gt_cv_inttypes_pri_broken" = yes; then AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, [Define if exists and defines unusable PRI* macros.]) fi ]) openbox-3.6.1/m4/lcmessage.m40000644000175300001440000000240411003646455012644 00000000000000# lcmessage.m4 serial 4 (gettext-0.14.2) dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995. # Check whether LC_MESSAGES is available in . AC_DEFUN([gt_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)]) if test $gt_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi ]) openbox-3.6.1/m4/lock.m40000644000175300001440000002667311003646455011647 00000000000000# lock.m4 serial 2 (gettext-0.15) dnl Copyright (C) 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Tests for a multithreading library to be used. dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS, dnl USE_PTH_THREADS, USE_WIN32_THREADS dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with dnl libtool). dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for dnl programs that really need multithread functionality. The difference dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread". dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for dnl multithread-safe programs. AC_DEFUN([gl_LOCK], [ AC_REQUIRE([gl_LOCK_BODY]) ]) dnl The guts of gl_LOCK. Needs to be expanded only once. AC_DEFUN([gl_LOCK_BODY], [ dnl Ordering constraints: This macro modifies CPPFLAGS in a way that dnl influences the result of the autoconf tests that test for *_unlocked dnl declarations, on AIX 5 at least. Therefore it must come early. AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl AC_BEFORE([$0], [gl_ARGP])dnl AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems dnl Check for multithreading. AC_ARG_ENABLE(threads, AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) AC_HELP_STRING([--disable-threads], [build without multithread safety]), gl_use_threads=$enableval, gl_use_threads=yes) gl_threads_api=none LIBTHREAD= LTLIBTHREAD= LIBMULTITHREAD= LTLIBMULTITHREAD= if test "$gl_use_threads" != no; then dnl Check whether the compiler and linker support weak declarations. AC_MSG_CHECKING([whether imported symbols can be declared weak]) gl_have_weak=no AC_TRY_LINK([extern void xyzzy (); #pragma weak xyzzy], [xyzzy();], [gl_have_weak=yes]) AC_MSG_RESULT([$gl_have_weak]) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . gl_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -D_REENTRANT" AC_CHECK_HEADER(pthread.h, gl_have_pthread_h=yes, gl_have_pthread_h=no) CPPFLAGS="$gl_save_CPPFLAGS" if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) # -lgthreads case "$host_os" in osf*) # On OSF/1, the compiler needs the flag -D_REENTRANT so that it # groks . cc also understands the flag -pthread, but # we don't use it because 1. gcc-2.95 doesn't understand -pthread, # 2. putting a flag into CPPFLAGS that has an effect on the linker # causes the AC_TRY_LINK test below to succeed unexpectedly, # leading to wrong values of LIBTHREAD and LTLIBTHREAD. CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac gl_have_pthread= # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist # in libc. IRIX 6.5 has the first one in both libc and libpthread, but # the second one only in libpthread, and lock.c needs it. AC_TRY_LINK([#include ], [pthread_mutex_lock((pthread_mutex_t*)0); pthread_mutexattr_init((pthread_mutexattr_t*)0);], [gl_have_pthread=yes]) # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test -n "$gl_have_pthread"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. AC_CHECK_LIB(pthread, pthread_kill, [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread # On Solaris and HP-UX, most pthread functions exist also in libc. # Therefore pthread_in_use() needs to actually try to create a # thread: pthread_create from libc will fail, whereas # pthread_create will actually create a thread. case "$host_os" in solaris* | hpux*) AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], 1, [Define if the pthread_in_use() detection is hard.]) esac ]) else # Some library is needed. Try libpthread and libc_r. AC_CHECK_LIB(pthread, pthread_kill, [gl_have_pthread=yes LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread]) if test -z "$gl_have_pthread"; then # For FreeBSD 4. AC_CHECK_LIB(c_r, pthread_kill, [gl_have_pthread=yes LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r]) fi fi if test -n "$gl_have_pthread"; then gl_threads_api=posix AC_DEFINE([USE_POSIX_THREADS], 1, [Define if the POSIX multithreading library can be used.]) if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if test $gl_have_weak = yes; then AC_DEFINE([USE_POSIX_THREADS_WEAK], 1, [Define if references to the POSIX multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the # pthread_rwlock_* functions. AC_CHECK_TYPE([pthread_rwlock_t], [AC_DEFINE([HAVE_PTHREAD_RWLOCK], 1, [Define if the POSIX multithreading library has read/write locks.])], [], [#include ]) # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. AC_TRY_COMPILE([#include ], [#if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." #else int x = (int)PTHREAD_MUTEX_RECURSIVE; #endif], [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], 1, [Define if the defines PTHREAD_MUTEX_RECURSIVE.])]) # Some systems optimize for single-threaded programs by default, and # need special flags to disable these optimizations. For example, the # definition of 'errno' in . case "$host_os" in aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac fi fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then gl_have_solaristhread= gl_save_LIBS="$LIBS" LIBS="$LIBS -lthread" AC_TRY_LINK([#include #include ], [thr_self();], [gl_have_solaristhread=yes]) LIBS="$gl_save_LIBS" if test -n "$gl_have_solaristhread"; then gl_threads_api=solaris LIBTHREAD=-lthread LTLIBTHREAD=-lthread LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" AC_DEFINE([USE_SOLARIS_THREADS], 1, [Define if the old Solaris multithreading library can be used.]) if test $gl_have_weak = yes; then AC_DEFINE([USE_SOLARIS_THREADS_WEAK], 1, [Define if references to the old Solaris multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi fi fi if test "$gl_use_threads" = pth; then gl_save_CPPFLAGS="$CPPFLAGS" AC_LIB_LINKFLAGS(pth) gl_have_pth= gl_save_LIBS="$LIBS" LIBS="$LIBS -lpth" AC_TRY_LINK([#include ], [pth_self();], gl_have_pth=yes) LIBS="$gl_save_LIBS" if test -n "$gl_have_pth"; then gl_threads_api=pth LIBTHREAD="$LIBPTH" LTLIBTHREAD="$LTLIBPTH" LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" AC_DEFINE([USE_PTH_THREADS], 1, [Define if the GNU Pth multithreading library can be used.]) if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if test $gl_have_weak = yes; then AC_DEFINE([USE_PTH_THREADS_WEAK], 1, [Define if references to the GNU Pth multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi else CPPFLAGS="$gl_save_CPPFLAGS" fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then if { case "$host_os" in mingw*) true;; *) false;; esac }; then gl_threads_api=win32 AC_DEFINE([USE_WIN32_THREADS], 1, [Define if the Win32 multithreading API can be used.]) fi fi fi fi AC_MSG_CHECKING([for multithread API to use]) AC_MSG_RESULT([$gl_threads_api]) AC_SUBST(LIBTHREAD) AC_SUBST(LTLIBTHREAD) AC_SUBST(LIBMULTITHREAD) AC_SUBST(LTLIBMULTITHREAD) gl_PREREQ_LOCK ]) # Prerequisites of lib/lock.c. AC_DEFUN([gl_PREREQ_LOCK], [ AC_REQUIRE([AC_C_INLINE]) ]) dnl Survey of platforms: dnl dnl Platform Available Compiler Supports test-lock dnl flavours option weak result dnl --------------- --------- --------- -------- --------- dnl Linux 2.4/glibc posix -lpthread Y OK dnl dnl GNU Hurd/glibc posix dnl dnl FreeBSD 5.3 posix -lc_r Y dnl posix -lkse ? Y dnl posix -lpthread ? Y dnl posix -lthr Y dnl dnl FreeBSD 5.2 posix -lc_r Y dnl posix -lkse Y dnl posix -lthr Y dnl dnl FreeBSD 4.0,4.10 posix -lc_r Y OK dnl dnl NetBSD 1.6 -- dnl dnl OpenBSD 3.4 posix -lpthread Y OK dnl dnl MacOS X 10.[123] posix -lpthread Y OK dnl dnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OK dnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OK dnl dnl HP-UX 11 posix -lpthread N (cc) OK dnl Y (gcc) dnl dnl IRIX 6.5 posix -lpthread Y 0.5 dnl dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK dnl dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK dnl -lpthread (gcc) Y dnl dnl Cygwin posix -lpthread Y OK dnl dnl Any of the above pth -lpth 0.0 dnl dnl Mingw win32 N OK dnl dnl BeOS 5 -- dnl dnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD is dnl turned off: dnl OK if all three tests terminate OK, dnl 0.5 if the first test terminates OK but the second one loops endlessly, dnl 0.0 if the first test already loops endlessly. openbox-3.6.1/m4/longdouble.m40000644000175300001440000000227711003646455013043 00000000000000# longdouble.m4 serial 2 (gettext-0.15) dnl Copyright (C) 2002-2003, 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the compiler supports the 'long double' type. dnl Prerequisite: AC_PROG_CC dnl This file is only needed in autoconf <= 2.59. Newer versions of autoconf dnl have a macro AC_TYPE_LONG_DOUBLE with identical semantics. AC_DEFUN([gt_TYPE_LONGDOUBLE], [ AC_CACHE_CHECK([for long double], gt_cv_c_long_double, [if test "$GCC" = yes; then gt_cv_c_long_double=yes else AC_TRY_COMPILE([ /* The Stardent Vistra knows sizeof(long double), but does not support it. */ long double foo = 0.0; /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ int array [2*(sizeof(long double) >= sizeof(double)) - 1]; ], , gt_cv_c_long_double=yes, gt_cv_c_long_double=no) fi]) if test $gt_cv_c_long_double = yes; then AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.]) fi ]) openbox-3.6.1/m4/longlong.m40000644000175300001440000000141611003646455012522 00000000000000# longlong.m4 serial 5 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_LONG_LONG if 'long long' works. AC_DEFUN([gl_AC_TYPE_LONG_LONG], [ AC_CACHE_CHECK([for long long], ac_cv_type_long_long, [AC_TRY_LINK([long long ll = 1LL; int i = 63;], [long long llmax = (long long) -1; return ll << i | ll >> i | llmax / ll | llmax % ll;], ac_cv_type_long_long=yes, ac_cv_type_long_long=no)]) if test $ac_cv_type_long_long = yes; then AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have the 'long long' type.]) fi ]) openbox-3.6.1/m4/printf-posix.m40000644000175300001440000000266111003646455013350 00000000000000# printf-posix.m4 serial 2 (gettext-0.13.1) dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the printf() function supports POSIX/XSI format strings with dnl positions. AC_DEFUN([gt_PRINTF_POSIX], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings], gt_cv_func_printf_posix, [ AC_TRY_RUN([ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, [ AC_EGREP_CPP(notposix, [ #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif ], gt_cv_func_printf_posix="guessing no", gt_cv_func_printf_posix="guessing yes") ]) ]) case $gt_cv_func_printf_posix in *yes) AC_DEFINE(HAVE_POSIX_PRINTF, 1, [Define if your printf() function supports format strings with positions.]) ;; esac ]) openbox-3.6.1/m4/signed.m40000644000175300001440000000115411003646455012153 00000000000000# signed.m4 serial 1 (gettext-0.10.40) dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([bh_C_SIGNED], [ AC_CACHE_CHECK([for signed], bh_cv_c_signed, [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)]) if test $bh_cv_c_signed = no; then AC_DEFINE(signed, , [Define to empty if the C compiler doesn't support this keyword.]) fi ]) openbox-3.6.1/m4/size_max.m40000644000175300001440000000433011003646455012520 00000000000000# size_max.m4 serial 4 dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gl_SIZE_MAX], [ AC_CHECK_HEADERS(stdint.h) dnl First test whether the system already has SIZE_MAX. AC_MSG_CHECKING([for SIZE_MAX]) result= AC_EGREP_CPP([Found it], [ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif ], result=yes) if test -z "$result"; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. Try hard to find a definition that can dnl be used in a preprocessor #if, i.e. doesn't contain a cast. _AC_COMPUTE_INT([sizeof (size_t) * CHAR_BIT - 1], size_t_bits_minus_1, [#include #include ], size_t_bits_minus_1=) _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, [#include ], fits_in_uint=) if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. AC_TRY_COMPILE([#include extern size_t foo; extern unsigned long foo; ], [], fits_in_uint=0) fi dnl We cannot use 'expr' to simplify this expression, because 'expr' dnl works only with 'long' integers in the host environment, while we dnl might be cross-compiling from a 32-bit platform to a 64-bit platform. if test $fits_in_uint = 1; then result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" else result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" fi else dnl Shouldn't happen, but who knows... result='((size_t)~(size_t)0)' fi fi AC_MSG_RESULT([$result]) if test "$result" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$result], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi ]) openbox-3.6.1/m4/stdint_h.m40000644000175300001440000000157311003646455012523 00000000000000# stdint_h.m4 serial 5 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_STDINT_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_STDINT_H], [ AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], gl_cv_header_stdint_h=yes, gl_cv_header_stdint_h=no)]) if test $gl_cv_header_stdint_h = yes; then AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) openbox-3.6.1/m4/uintmax_t.m40000644000175300001440000000207611003646455012716 00000000000000# uintmax_t.m4 serial 9 dnl Copyright (C) 1997-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. AC_PREREQ(2.13) # Define uintmax_t to 'unsigned long' or 'unsigned long long' # if it is not already defined in or . AC_DEFUN([gl_AC_TYPE_UINTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG]) test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [Define to unsigned long or unsigned long long if and don't define.]) else AC_DEFINE(HAVE_UINTMAX_T, 1, [Define if you have the 'uintmax_t' type in or .]) fi ]) openbox-3.6.1/m4/ulonglong.m40000644000175300001440000000161511003646455012710 00000000000000# ulonglong.m4 serial 4 dnl Copyright (C) 1999-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works. AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG], [ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;], [unsigned long long ullmax = (unsigned long long) -1; return ull << i | ull >> i | ullmax / ull | ullmax % ull;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) if test $ac_cv_type_unsigned_long_long = yes; then AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, [Define if you have the 'unsigned long long' type.]) fi ]) openbox-3.6.1/m4/visibility.m40000644000175300001440000000413011003646455013066 00000000000000# visibility.m4 serial 1 (gettext-0.15) dnl Copyright (C) 2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Tests whether the compiler supports the command-line option dnl -fvisibility=hidden and the function and variable attributes dnl __attribute__((__visibility__("hidden"))) and dnl __attribute__((__visibility__("default"))). dnl Does *not* test for __visibility__("protected") - which has tricky dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on dnl MacOS X. dnl Does *not* test for __visibility__("internal") - which has processor dnl dependent semantics. dnl Does *not* test for #pragma GCC visibility push(hidden) - which is dnl "really only recommended for legacy code". dnl Set the variable CFLAG_VISIBILITY. dnl Defines and sets the variable HAVE_VISIBILITY. AC_DEFUN([gl_VISIBILITY], [ AC_REQUIRE([AC_PROG_CC]) CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then AC_MSG_CHECKING([for simple visibility declarations]) AC_CACHE_VAL(gl_cv_cc_visibility, [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" AC_TRY_COMPILE( [extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void);], [], gl_cv_cc_visibility=yes, gl_cv_cc_visibility=no) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_visibility]) if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 fi fi AC_SUBST([CFLAG_VISIBILITY]) AC_SUBST([HAVE_VISIBILITY]) AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY], [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) ]) openbox-3.6.1/m4/wchar_t.m40000644000175300001440000000132611003646455012332 00000000000000# wchar_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, [AC_TRY_COMPILE([#include wchar_t foo = (wchar_t)'\0';], , gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) fi ]) openbox-3.6.1/m4/wint_t.m40000644000175300001440000000130411003646455012203 00000000000000# wint_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wint_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, [AC_TRY_COMPILE([#include wint_t foo = (wchar_t)'\0';], , gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) fi ]) openbox-3.6.1/m4/xsize.m40000644000175300001440000000064511003646455012050 00000000000000# xsize.m4 serial 3 dnl Copyright (C) 2003-2004 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_XSIZE], [ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_REQUIRE([AC_C_INLINE]) AC_CHECK_HEADERS(stdint.h) ]) openbox-3.6.1/obrender/0000755000175300001440000000000012544731565012007 500000000000000openbox-3.6.1/obrender/version.h.in0000644000175300001440000000100311320420537014145 00000000000000#ifndef rr__version_h #define rr__version_h #define RR_MAJOR_VERSION @RR_MAJOR_VERSION@ #define RR_MINOR_VERSION @RR_MINOR_VERSION@ #define RR_MICRO_VERSION @RR_MICRO_VERSION@ #define RR_VERSION RR_MAJOR_VERSION.RR_MINOR_VERSION.RR_MICRO_VERSION #define RR_CHECK_VERSION(major,minor,micro) \ (RR_MAJOR_VERSION > (major) || \ (RR_MAJOR_VERSION == (major) && RR_MINOR_VERSION > (minor)) || \ (RR_MAJOR_VERSION == (major) && RR_MINOR_VERSION == (minor) && \ RR_MICRO_VERSION >= (micro))) #endif openbox-3.6.1/obrender/obrender-3.5.pc.in0000644000175300001440000000055512201660632014752 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ xcflags=@X_CFLAGS@ xlibs=@X_LIBS@ Name: ObRender Description: Openbox Render Library Version: @RR_VERSION@ Requires: obt-3.5 glib-2.0 xft pangoxft @PKG_CONFIG_IMLIB@ @PKG_CONFIG_LIBRSVG@ Libs: -L${libdir} -lobrender ${xlibs} Cflags: -I${includedir}/openbox/@RR_VERSION@ ${xcflags} openbox-3.6.1/obrender/color.h0000644000175300001440000000251212426440016013201 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- color.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __color_h #define __color_h #include "render.h" #include #include #include struct _RrColor { const RrInstance *inst; gint r; gint g; gint b; gulong pixel; GC gc; gint key; gint refcount; #ifdef DEBUG gint id; #endif }; void RrColorAllocateGC(RrColor *in); XColor *RrPickColor(const RrInstance *inst, gint r, gint g, gint b); void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im); void RrIncreaseDepth(const RrInstance *inst, RrPixel32 *data, XImage *im); #endif /* __color_h */ openbox-3.6.1/obrender/font.h0000644000175300001440000000267012426440016013036 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- font.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __font_h #define __font_h #include "render.h" #include "geom.h" #include struct _RrFont { const RrInstance *inst; gint ref; PangoFontDescription *font_desc; PangoLayout *layout; /*!< Used for measuring and rendering strings */ PangoAttribute *shortcut_underline; /*< For underlining the shortcut key */ gint ascent; /*!< The font's ascent in pango-units */ gint descent; /*!< The font's descent in pango-units */ }; void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *position); /*! Increment the references for this font, RrFontClose will decrement until 0 and then really close it */ void RrFontRef(RrFont *f); #endif /* __font_h */ openbox-3.6.1/obrender/geom.h0000644000175300001440000000205712426440016013016 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- geom.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __render_geom_h #define __render_geom_h typedef struct { int width; int height; } RrSize; typedef struct { int x; int y; int width; int height; } RrRect; #define RECT_SET(r, nx, ny, w, h) \ (r).x = (nx), (r).y = (ny), (r).width = (w), (r).height = (h) #endif openbox-3.6.1/obrender/gradient.h0000644000175300001440000000162012426440016013657 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- gradient.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __gradient_h #define __gradient_h #include "render.h" void RrRender(RrAppearance *a, gint w, gint h); #endif /* __gradient_h */ openbox-3.6.1/obrender/image.h0000644000175300001440000000212612426440016013146 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- image.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __image_h #define __image_h #include "render.h" #include "geom.h" void RrImageDrawImage(RrPixel32 *target, RrTextureImage *img, gint target_w, gint target_h, RrRect *area); void RrImageDrawRGBA(RrPixel32 *target, RrTextureRGBA *rgba, gint target_w, gint target_h, RrRect *area); #endif openbox-3.6.1/obrender/instance.h0000644000175300001440000000264212426440016013673 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- instance.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __render_instance_h #define __render_instance_h #include #include #include struct _RrInstance { Display *display; gint screen; Visual *visual; gint depth; Colormap colormap; PangoContext *pango; gint red_offset; gint green_offset; gint blue_offset; gint red_shift; gint green_shift; gint blue_shift; gint red_mask; gint green_mask; gint blue_mask; gint pseudo_bpc; XColor *pseudo_colors; GHashTable *color_hash; }; guint RrPseudoBPC (const RrInstance *inst); XColor* RrPseudoColors (const RrInstance *inst); GHashTable* RrColorHash (const RrInstance *inst); #endif openbox-3.6.1/obrender/mask.h0000644000175300001440000000217112426440016013017 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- mask.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __mask_h #define __mask_h #include "render.h" #include "geom.h" RrPixmapMask *RrPixmapMaskNew(const RrInstance *inst, gint w, gint h, const gchar *data); void RrPixmapMaskFree(RrPixmapMask *m); RrPixmapMask *RrPixmapMaskCopy(const RrPixmapMask *src); void RrPixmapMaskDraw(Pixmap p, const RrTextureMask *m, const RrRect *area); #endif openbox-3.6.1/obrender/render.h0000644000175300001440000003514112426457710013357 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- render.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __render_h #define __render_h #include /* some platforms dont include this as needed for Xft */ #include #include G_BEGIN_DECLS #include "obrender/geom.h" #include "obrender/version.h" typedef union _RrTextureData RrTextureData; typedef struct _RrAppearance RrAppearance; typedef struct _RrSurface RrSurface; typedef struct _RrFont RrFont; typedef struct _RrTexture RrTexture; typedef struct _RrTextureMask RrTextureMask; typedef struct _RrTextureRGBA RrTextureRGBA; typedef struct _RrTextureImage RrTextureImage; typedef struct _RrTextureText RrTextureText; typedef struct _RrTextureLineArt RrTextureLineArt; typedef struct _RrPixmapMask RrPixmapMask; typedef struct _RrInstance RrInstance; typedef struct _RrColor RrColor; typedef struct _RrImage RrImage; typedef struct _RrImageSet RrImageSet; typedef struct _RrImagePic RrImagePic; typedef struct _RrImageCache RrImageCache; typedef struct _RrButton RrButton; typedef guint32 RrPixel32; /* ARGB format, not premultiplied alpha */ typedef guint16 RrPixel16; typedef guchar RrPixel8; typedef enum { RR_RELIEF_FLAT, RR_RELIEF_RAISED, RR_RELIEF_SUNKEN, RR_RELIEF_NUM_TYPES } RrReliefType; typedef enum { RR_BEVEL_1, RR_BEVEL_2, RR_BEVEL_NUM_TYPES } RrBevelType; typedef enum { RR_SURFACE_NONE, RR_SURFACE_PARENTREL, RR_SURFACE_SOLID, RR_SURFACE_SPLIT_VERTICAL, RR_SURFACE_HORIZONTAL, RR_SURFACE_VERTICAL, RR_SURFACE_DIAGONAL, RR_SURFACE_CROSS_DIAGONAL, RR_SURFACE_PYRAMID, RR_SURFACE_MIRROR_HORIZONTAL, RR_SURFACE_NUM_TYPES } RrSurfaceColorType; typedef enum { RR_TEXTURE_NONE, RR_TEXTURE_MASK, RR_TEXTURE_TEXT, RR_TEXTURE_LINE_ART, RR_TEXTURE_RGBA, RR_TEXTURE_IMAGE, RR_TEXTURE_NUM_TYPES } RrTextureType; typedef enum { RR_JUSTIFY_LEFT, RR_JUSTIFY_CENTER, RR_JUSTIFY_RIGHT, RR_JUSTIFY_NUM_TYPES } RrJustify; /* Put middle first so it's the default */ typedef enum { RR_ELLIPSIZE_MIDDLE, RR_ELLIPSIZE_NONE, RR_ELLIPSIZE_START, RR_ELLIPSIZE_END, RR_ELLIPSIZE_NUM_TYPES } RrEllipsizeMode; typedef enum { RR_FONTWEIGHT_LIGHT, RR_FONTWEIGHT_NORMAL, RR_FONTWEIGHT_SEMIBOLD, RR_FONTWEIGHT_BOLD, RR_FONTWEIGHT_ULTRABOLD, RR_FONTWEIGHT_NUM_TYPES } RrFontWeight; typedef enum { RR_FONTSLANT_NORMAL, RR_FONTSLANT_ITALIC, RR_FONTSLANT_OBLIQUE, RR_FONTSLANT_NUM_TYPES } RrFontSlant; struct _RrSurface { RrSurfaceColorType grad; RrReliefType relief; RrBevelType bevel; RrColor *primary; RrColor *secondary; RrColor *border_color; RrColor *bevel_dark; RrColor *bevel_light; RrColor *interlace_color; gboolean interlaced; gboolean border; RrAppearance *parent; gint parentx; gint parenty; RrPixel32 *pixel_data; gint bevel_dark_adjust; /* 0-255, default is 64 */ gint bevel_light_adjust; /* 0-255, default is 128 */ RrColor *split_primary; RrColor *split_secondary; }; struct _RrTextureText { RrFont *font; RrJustify justify; RrColor *color; const gchar *string; gint shadow_offset_x; gint shadow_offset_y; RrColor *shadow_color; gboolean shortcut; /*!< Underline a character */ guint shortcut_pos; /*!< Position in bytes of the character to underline */ RrEllipsizeMode ellipsize; gboolean flow; /* allow multiple lines. must set maxwidth below */ gint maxwidth; guchar shadow_alpha; /* at the bottom to improve alignment */ }; struct _RrPixmapMask { const RrInstance *inst; Pixmap mask; gint width; gint height; gchar *data; }; struct _RrTextureMask { RrColor *color; RrPixmapMask *mask; }; struct _RrTextureRGBA { gint width; gint height; gint alpha; RrPixel32 *data; /* size and position to draw at (if these are zero, then it will be drawn to fill the entire texture */ gint tx; gint ty; gint twidth; gint theight; }; struct _RrTextureImage { RrImage *image; gint alpha; /* size and position to draw at (if these are zero, then it will be drawn to fill the entire texture */ gint tx; gint ty; gint twidth; gint theight; }; struct _RrTextureLineArt { RrColor *color; gint x1; gint y1; gint x2; gint y2; }; union _RrTextureData { RrTextureRGBA rgba; RrTextureImage image; RrTextureText text; RrTextureMask mask; RrTextureLineArt lineart; }; struct _RrTexture { /* If changing the type of a texture, you should DEFINITELY call RrAppearanceClearTextures() first! */ RrTextureType type; RrTextureData data; }; struct _RrAppearance { const RrInstance *inst; RrSurface surface; gint textures; RrTexture *texture; Pixmap pixmap; XftDraw *xftdraw; /* cached for internal use */ gint w, h; }; /*! Holds a RGBA image picture */ struct _RrImagePic { gint width, height; RrPixel32 *data; /* The sum of all the pixels. This is used to compare pictures if their hashes match. */ gint sum; }; typedef void (*RrImageDestroyFunc)(RrImage *image, gpointer data); /*! An RrImage refers to a RrImageSet. If multiple RrImageSets end up holding the same image data, they will be marged and the RrImages that point to them would be updated. */ struct _RrImage { gint ref; RrImageSet *set; /* This function (if not NULL) will be called just before destroying RrImage. */ RrImageDestroyFunc destroy_func; gpointer destroy_data; }; /*! An RrImage is a sort of meta-image. It can contain multiple versions of an image at different sizes, which may or may not be completely different pictures */ struct _RrImageSet { RrImageCache *cache; /*! If a picture is loaded by a name, then it has a name attached to it. This contains a list of strings, containing all names that have ever been associated with the RrImageSet. A name in the RrImageCache can only be associated with a single RrImageSet. */ GSList *names; /*! RrImages that point at this RrImageSet. If this is empty, then there are no images using the set and it can be freed. */ GSList *images; /*! An array of "originals", that is of RrPictures that have been added to the image in various sizes, and that have not been resized. These are explicitly added to the RrImageSet. */ RrImagePic **original; gint n_original; /*! An array of "resized" pictures. When an "original" RrPicture needs to be resized for drawing, it is saved in here so that it doesn't need to be resized again. These are automatically added to the RrImage. */ RrImagePic **resized; gint n_resized; }; struct _RrButton { const RrInstance *inst; /* colors */ RrColor *focused_unpressed_color; RrColor *unfocused_unpressed_color; RrColor *focused_pressed_color; RrColor *unfocused_pressed_color; RrColor *focused_disabled_color; RrColor *unfocused_disabled_color; RrColor *focused_hover_color; RrColor *unfocused_hover_color; RrColor *focused_hover_toggled_color; RrColor *unfocused_hover_toggled_color; RrColor *focused_pressed_toggled_color; RrColor *unfocused_pressed_toggled_color; RrColor *focused_unpressed_toggled_color; RrColor *unfocused_unpressed_toggled_color; /* masks */ RrPixmapMask *unpressed_mask; RrPixmapMask *pressed_mask; RrPixmapMask *disabled_mask; RrPixmapMask *hover_mask; RrPixmapMask *unpressed_toggled_mask; RrPixmapMask *hover_toggled_mask; RrPixmapMask *pressed_toggled_mask; /* textures */ RrAppearance *a_focused_unpressed; RrAppearance *a_unfocused_unpressed; RrAppearance *a_focused_pressed; RrAppearance *a_unfocused_pressed; RrAppearance *a_focused_disabled; RrAppearance *a_unfocused_disabled; RrAppearance *a_focused_hover; RrAppearance *a_unfocused_hover; RrAppearance *a_focused_unpressed_toggled; RrAppearance *a_unfocused_unpressed_toggled; RrAppearance *a_focused_pressed_toggled; RrAppearance *a_unfocused_pressed_toggled; RrAppearance *a_focused_hover_toggled; RrAppearance *a_unfocused_hover_toggled; }; /* these are the same on all endian machines because it seems to be dependant on the endianness of the gfx card, not the cpu. */ #define RrDefaultAlphaOffset 24 #define RrDefaultRedOffset 16 #define RrDefaultGreenOffset 8 #define RrDefaultBlueOffset 0 #define RrDefaultFontFamily "arial,sans" #define RrDefaultFontSize 8 #define RrDefaultFontWeight RR_FONTWEIGHT_NORMAL #define RrDefaultFontSlant RR_FONTSLANT_NORMAL RrInstance* RrInstanceNew (Display *display, gint screen); void RrInstanceFree (RrInstance *inst); Display* RrDisplay (const RrInstance *inst); gint RrScreen (const RrInstance *inst); Window RrRootWindow (const RrInstance *inst); Visual* RrVisual (const RrInstance *inst); gint RrDepth (const RrInstance *inst); Colormap RrColormap (const RrInstance *inst); gint RrRedOffset (const RrInstance *inst); gint RrGreenOffset (const RrInstance *inst); gint RrBlueOffset (const RrInstance *inst); gint RrRedShift (const RrInstance *inst); gint RrGreenShift (const RrInstance *inst); gint RrBlueShift (const RrInstance *inst); gint RrRedMask (const RrInstance *inst); gint RrGreenMask (const RrInstance *inst); gint RrBlueMask (const RrInstance *inst); RrColor *RrColorNew (const RrInstance *inst, gint r, gint g, gint b); RrColor *RrColorCopy (RrColor *c); RrColor *RrColorParse (const RrInstance *inst, gchar *colorname); void RrColorFree (RrColor *in); gint RrColorRed (const RrColor *c); gint RrColorGreen (const RrColor *c); gint RrColorBlue (const RrColor *c); gulong RrColorPixel (const RrColor *c); GC RrColorGC (RrColor *c); RrAppearance *RrAppearanceNew (const RrInstance *inst, gint numtex); RrAppearance *RrAppearanceCopy (RrAppearance *a); void RrAppearanceFree (RrAppearance *a); void RrAppearanceRemoveTextures(RrAppearance *a); void RrAppearanceAddTextures(RrAppearance *a, gint numtex); /*! Always call this when changing the type of a texture in an appearance */ void RrAppearanceClearTextures(RrAppearance *a); RrButton *RrButtonNew (const RrInstance *inst); void RrButtonFree(RrButton *b); RrFont *RrFontOpen (const RrInstance *inst, const gchar *name, gint size, RrFontWeight weight, RrFontSlant slant); RrFont *RrFontOpenDefault (const RrInstance *inst); void RrFontClose (RrFont *f); /*! Returns an RrSize, that was allocated with g_slice_new(). Use g_slice_free() to free it. */ RrSize *RrFontMeasureString (const RrFont *f, const gchar *str, gint shadow_offset_x, gint shadow_offset_y, gboolean flow, gint maxwidth); gint RrFontHeight (const RrFont *f, gint shadow_offset_y); gint RrFontMaxCharWidth (const RrFont *f); /* Paint into the appearance. The old pixmap is returned (if there was one). It is the responsibility of the caller to call XFreePixmap on the return when it is non-null. */ Pixmap RrPaintPixmap (RrAppearance *a, gint w, gint h); void RrPaint (RrAppearance *a, Window win, gint w, gint h); void RrMinSize (RrAppearance *a, gint *w, gint *h); gint RrMinWidth (RrAppearance *a); /* For text textures, if flow is TRUE, then the string must be set before calling this, otherwise it doesn't need to be */ gint RrMinHeight (RrAppearance *a); void RrMargins (RrAppearance *a, gint *l, gint *t, gint *r, gint *b); gboolean RrPixmapToRGBA(const RrInstance *inst, Pixmap pmap, Pixmap mask, gint *w, gint *h, RrPixel32 **data); /*! Create a new image cache for RrImages. @param max_resized_saved The number of resized copies of an image to save */ RrImageCache* RrImageCacheNew(gint max_resized_saved); void RrImageCacheRef(RrImageCache *self); void RrImageCacheUnref(RrImageCache *self); /*! Create a new image, or return one from the cache that matches. @param cache The image cache. @param old The current RrImage, which the new image should be added to. Use this if loading a different sized version of the same image. The returned RrImage should replace the one passed in as old. Pass NULL here if adding an image which is (or may be) entirely new. @param name The name of the icon to be loaded off disk, or used in the cache @return Returns NULL if unable to load an image by the name and it is not in the cache already */ RrImage* RrImageNewFromName(RrImageCache *cache, const gchar *name); /*! Create a new image, or return one from the cache that matches. @param cache The image cache. @param data The image data in RGBA32 format. There should be @w * @h many values in the data array. @param w The width of the image data. @param h The height of the image data. @return Returns NULL if unable to load an image by the name and it is not in the cache already */ RrImage* RrImageNewFromData(RrImageCache *cache, RrPixel32 *data, gint w, gint h); /*! Add a new size of a picture to an image. If a picture has multiple versions of different sizes (example 16x16, 32x32 and so on), they should all be under the same RrImage. This adds a new size to an existing RrImage, associating the newly sized picture with the others in the RrImage - classifying them as being the same logical image at a different dimention. */ void RrImageAddFromData(RrImage *image, RrPixel32 *data, gint w, gint h); void RrImageRef(RrImage *im); void RrImageUnref(RrImage *im); G_END_DECLS #endif /*__render_h*/ openbox-3.6.1/obrender/theme.h0000644000175300001440000001457012426564611013204 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- theme.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __theme_h #define __theme_h #include "render.h" G_BEGIN_DECLS typedef struct _RrTheme RrTheme; struct _RrTheme { const RrInstance *inst; /* style settings - fonts */ RrFont *win_font_focused; RrFont *win_font_unfocused; RrFont *menu_title_font; RrFont *menu_font; RrFont *osd_font_hilite; RrFont *osd_font_unhilite; /* style settings - geometry */ gint paddingx; gint paddingy; gint handle_height; gint fbwidth; /*!< frame border width */ gint mbwidth; /*!< menu border width */ gint obwidth; /*!< osd border width */ gint ubwidth; /*!< undecorated frame border width */ gint cbwidthx; gint cbwidthy; gint menu_overlap_x; gint menu_overlap_y; gint menu_sep_width; gint menu_sep_paddingx; gint menu_sep_paddingy; /* these ones are calculated, not set directly by the theme file */ gint win_font_height; gint menu_title_font_height; gint menu_font_height; gint label_height; gint title_height; gint button_size; gint grip_width; gint menu_title_label_height; gint menu_title_height; /* style settings - colors */ RrColor *menu_border_color; RrColor *osd_border_color; RrColor *frame_focused_border_color; RrColor *frame_undecorated_focused_border_color; RrColor *frame_unfocused_border_color; RrColor *frame_undecorated_unfocused_border_color; RrColor *title_separator_focused_color; RrColor *title_separator_unfocused_color; RrColor *cb_focused_color; RrColor *cb_unfocused_color; RrColor *title_focused_color; RrColor *title_unfocused_color; RrColor *titlebut_focused_disabled_color; RrColor *titlebut_unfocused_disabled_color; RrColor *titlebut_focused_hover_color; RrColor *titlebut_unfocused_hover_color; RrColor *titlebut_focused_hover_toggled_color; RrColor *titlebut_unfocused_hover_toggled_color; RrColor *titlebut_focused_pressed_toggled_color; RrColor *titlebut_unfocused_pressed_toggled_color; RrColor *titlebut_focused_unpressed_toggled_color; RrColor *titlebut_unfocused_unpressed_toggled_color; RrColor *titlebut_focused_pressed_color; RrColor *titlebut_unfocused_pressed_color; RrColor *titlebut_focused_unpressed_color; RrColor *titlebut_unfocused_unpressed_color; RrColor *menu_title_color; RrColor *menu_sep_color; RrColor *menu_color; RrColor *menu_bullet_color; RrColor *menu_bullet_selected_color; RrColor *menu_selected_color; RrColor *menu_disabled_color; RrColor *menu_disabled_selected_color; RrColor *title_focused_shadow_color; gchar title_focused_shadow_alpha; RrColor *title_unfocused_shadow_color; gchar title_unfocused_shadow_alpha; RrColor *osd_text_active_color; RrColor *osd_text_inactive_color; RrColor *osd_text_active_shadow_color; RrColor *osd_text_inactive_shadow_color; gchar osd_text_active_shadow_alpha; gchar osd_text_inactive_shadow_alpha; RrColor *osd_pressed_color; RrColor *osd_unpressed_color; RrColor *osd_focused_color; RrColor *osd_pressed_lineart; RrColor *osd_focused_lineart; RrColor *menu_title_shadow_color; RrColor *menu_text_shadow_color; /* style settings - pics */ RrPixel32 *def_win_icon; /* RGBA */ gint def_win_icon_w; gint def_win_icon_h; /* style settings - masks */ RrPixmapMask *menu_bullet_mask; /* submenu pointer */ #if 0 RrPixmapMask *menu_toggle_mask; /* menu boolean */ #endif RrPixmapMask *down_arrow_mask; RrPixmapMask *up_arrow_mask; /* buttons */ RrButton *btn_max; RrButton *btn_close; RrButton *btn_desk; RrButton *btn_shade; RrButton *btn_iconify; /* global appearances */ RrAppearance *a_focused_grip; RrAppearance *a_unfocused_grip; RrAppearance *a_focused_title; RrAppearance *a_unfocused_title; RrAppearance *a_focused_label; RrAppearance *a_unfocused_label; /* always parentrelative, so no focused/unfocused */ RrAppearance *a_icon; RrAppearance *a_focused_handle; RrAppearance *a_unfocused_handle; RrAppearance *a_menu_text_title; RrAppearance *a_menu_title; RrAppearance *a_menu; RrAppearance *a_menu_normal; RrAppearance *a_menu_selected; RrAppearance *a_menu_disabled; RrAppearance *a_menu_disabled_selected; RrAppearance *a_menu_text_normal; RrAppearance *a_menu_text_disabled; RrAppearance *a_menu_text_disabled_selected; RrAppearance *a_menu_text_selected; RrAppearance *a_menu_bullet_normal; RrAppearance *a_menu_bullet_selected; RrAppearance *a_clear; /* clear with no texture */ RrAppearance *a_clear_tex; /* clear with a texture */ RrAppearance *osd_bg; /* can never be parent relative */ RrAppearance *osd_hilite_bg; /* can never be parent relative */ RrAppearance *osd_hilite_label; /* can be parent relative */ RrAppearance *osd_unhilite_bg; /* can never be parent relative */ RrAppearance *osd_unhilite_label; /* can be parent relative */ RrAppearance *osd_pressed_button; RrAppearance *osd_unpressed_button; RrAppearance *osd_focused_button; gchar *name; }; /*! The font values are all optional. If a NULL is used for any of them, then the default font will be used. */ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *theme, gboolean allow_fallback, RrFont *active_window_font, RrFont *inactive_window_font, RrFont *menu_title_font, RrFont *menu_item_font, RrFont *active_osd_font, RrFont *inactive_osd_font); void RrThemeFree(RrTheme *theme); G_END_DECLS #endif openbox-3.6.1/obrender/version.h0000644000175300001440000000072112544730653013562 00000000000000#ifndef rr__version_h #define rr__version_h #define RR_MAJOR_VERSION 3 #define RR_MINOR_VERSION 6 #define RR_MICRO_VERSION 32 #define RR_VERSION RR_MAJOR_VERSION.RR_MINOR_VERSION.RR_MICRO_VERSION #define RR_CHECK_VERSION(major,minor,micro) \ (RR_MAJOR_VERSION > (major) || \ (RR_MAJOR_VERSION == (major) && RR_MINOR_VERSION > (minor)) || \ (RR_MAJOR_VERSION == (major) && RR_MINOR_VERSION == (minor) && \ RR_MICRO_VERSION >= (micro))) #endif openbox-3.6.1/obrender/button.c0000644000175300001440000000722312426457710013406 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- button.c for the Openbox window manager Copyright (c) 2012 Mikael Magnusson Copyright (c) 2012 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "render.h" #include "instance.h" #include "mask.h" #include #include #include RrButton *RrButtonNew (const RrInstance *inst) { RrButton *out = NULL; /* no need to alloc colors and masks, set them null (for freeing later) */ out = g_new0(RrButton, 1); out->inst = inst; /* allocate appearances */ out->a_focused_unpressed = RrAppearanceNew(inst, 1); out->a_unfocused_unpressed = RrAppearanceNew(inst, 1); out->a_focused_pressed = RrAppearanceNew(inst, 1); out->a_unfocused_pressed = RrAppearanceNew(inst, 1); out->a_focused_disabled = RrAppearanceNew(inst, 1); out->a_unfocused_disabled = RrAppearanceNew(inst, 1); out->a_focused_hover = RrAppearanceNew(inst, 1); out->a_unfocused_hover = RrAppearanceNew(inst, 1); out->a_focused_unpressed_toggled = RrAppearanceNew(inst, 1); out->a_unfocused_unpressed_toggled = RrAppearanceNew(inst, 1); out->a_focused_pressed_toggled = RrAppearanceNew(inst, 1); out->a_unfocused_pressed_toggled = RrAppearanceNew(inst, 1); out->a_focused_hover_toggled = RrAppearanceNew(inst, 1); out->a_unfocused_hover_toggled = RrAppearanceNew(inst, 1); return out; } void RrButtonFree(RrButton *b) { /* colors */ RrColorFree(b->focused_unpressed_color); RrColorFree(b->unfocused_unpressed_color); RrColorFree(b->focused_pressed_color); RrColorFree(b->unfocused_pressed_color); RrColorFree(b->focused_disabled_color); RrColorFree(b->unfocused_disabled_color); RrColorFree(b->focused_hover_color); RrColorFree(b->unfocused_hover_color); RrColorFree(b->focused_hover_toggled_color); RrColorFree(b->unfocused_hover_toggled_color); RrColorFree(b->focused_pressed_toggled_color); RrColorFree(b->unfocused_pressed_toggled_color); RrColorFree(b->focused_unpressed_toggled_color); RrColorFree(b->unfocused_unpressed_toggled_color); /* masks */ RrPixmapMaskFree(b->unpressed_mask); RrPixmapMaskFree(b->pressed_mask); RrPixmapMaskFree(b->disabled_mask); RrPixmapMaskFree(b->hover_mask); RrPixmapMaskFree(b->unpressed_toggled_mask); RrPixmapMaskFree(b->hover_toggled_mask); RrPixmapMaskFree(b->pressed_toggled_mask); /* appearances */ RrAppearanceFree(b->a_focused_unpressed); RrAppearanceFree(b->a_unfocused_unpressed); RrAppearanceFree(b->a_focused_pressed); RrAppearanceFree(b->a_unfocused_pressed); RrAppearanceFree(b->a_focused_disabled); RrAppearanceFree(b->a_unfocused_disabled); RrAppearanceFree(b->a_focused_hover); RrAppearanceFree(b->a_unfocused_hover); RrAppearanceFree(b->a_focused_unpressed_toggled); RrAppearanceFree(b->a_unfocused_unpressed_toggled); RrAppearanceFree(b->a_focused_pressed_toggled); RrAppearanceFree(b->a_unfocused_pressed_toggled); RrAppearanceFree(b->a_focused_hover_toggled); RrAppearanceFree(b->a_unfocused_hover_toggled); } openbox-3.6.1/obrender/color.c0000644000175300001440000002555612426440016013211 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- color.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #include "render.h" #include "color.h" #include "instance.h" #include #include #include void RrColorAllocateGC(RrColor *in) { XGCValues gcv; gcv.foreground = in->pixel; gcv.cap_style = CapProjecting; in->gc = XCreateGC(RrDisplay(in->inst), RrRootWindow(in->inst), GCForeground | GCCapStyle, &gcv); } RrColor *RrColorParse(const RrInstance *inst, gchar *colorname) { XColor xcol; g_assert(colorname != NULL); /* get rgb values from colorname */ xcol.red = 0; xcol.green = 0; xcol.blue = 0; xcol.pixel = 0; if (!XParseColor(RrDisplay(inst), RrColormap(inst), colorname, &xcol)) { g_message("Unable to parse color '%s'", colorname); return NULL; } return RrColorNew(inst, xcol.red >> 8, xcol.green >> 8, xcol.blue >> 8); } /*#define NO_COLOR_CACHE*/ #ifdef DEBUG gint id; #endif RrColor *RrColorNew(const RrInstance *inst, gint r, gint g, gint b) { /* this should be replaced with something far cooler */ RrColor *out = NULL; XColor xcol; gint key; g_assert(r >= 0 && r < 256); g_assert(g >= 0 && g < 256); g_assert(b >= 0 && b < 256); key = (r << 24) + (g << 16) + (b << 8); #ifndef NO_COLOR_CACHE if ((out = g_hash_table_lookup(RrColorHash(inst), &key))) { out->refcount++; } else { #endif xcol.red = (r << 8) | r; xcol.green = (g << 8) | g; xcol.blue = (b << 8) | b; if (XAllocColor(RrDisplay(inst), RrColormap(inst), &xcol)) { out = g_slice_new(RrColor); out->inst = inst; out->r = xcol.red >> 8; out->g = xcol.green >> 8; out->b = xcol.blue >> 8; out->gc = None; out->pixel = xcol.pixel; out->key = key; out->refcount = 1; #ifdef DEBUG out->id = id++; #endif #ifndef NO_COLOR_CACHE g_hash_table_insert(RrColorHash(inst), &out->key, out); } #endif } return out; } RrColor *RrColorCopy(RrColor* c) { return RrColorNew(c->inst, c->r, c->g, c->b); } void RrColorFree(RrColor *c) { if (c) { if (--c->refcount < 1) { #ifndef NO_COLOR_CACHE g_assert(g_hash_table_lookup(RrColorHash(c->inst), &c->key)); g_hash_table_remove(RrColorHash(c->inst), &c->key); #endif if (c->pixel) XFreeColors(RrDisplay(c->inst), RrColormap(c->inst), &c->pixel, 1, 0); if (c->gc) XFreeGC(RrDisplay(c->inst), c->gc); g_slice_free(RrColor, c); } } } void RrReduceDepth(const RrInstance *inst, RrPixel32 *data, XImage *im) { gint r, g, b; gint x,y; gint ro = RrRedOffset(inst); gint bo = RrBlueOffset(inst); gint go = RrGreenOffset(inst); gint rs = RrRedShift(inst); gint bs = RrBlueShift(inst); gint gs = RrGreenShift(inst); RrPixel32 *p32 = (RrPixel32 *) im->data; RrPixel16 *p16 = (RrPixel16 *) im->data; RrPixel8 *p8 = (RrPixel8 *) im->data; switch (im->bits_per_pixel) { case 32: if ((ro != RrDefaultRedOffset) || (bo != RrDefaultBlueOffset) || (go != RrDefaultGreenOffset)) { for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { r = (data[x] >> RrDefaultRedOffset) & 0xFF; g = (data[x] >> RrDefaultGreenOffset) & 0xFF; b = (data[x] >> RrDefaultBlueOffset) & 0xFF; p32[x] = (r << ro) + (g << go) + (b << bo); } data += im->width; p32 += im->width; } } else im->data = (gchar*) data; break; case 24: { /* reverse the ordering, shifting left 16bit should be the first byte out of three, etc */ const guint roff = (16 - ro) / 8; const guint goff = (16 - go) / 8; const guint boff = (16 - bo) / 8; gint outx; for (y = 0; y < im->height; y++) { for (x = 0, outx = 0; x < im->width; x++, outx += 3) { r = (data[x] >> RrDefaultRedOffset) & 0xFF; g = (data[x] >> RrDefaultGreenOffset) & 0xFF; b = (data[x] >> RrDefaultBlueOffset) & 0xFF; p8[outx+roff] = r; p8[outx+goff] = g; p8[outx+boff] = b; } data += im->width; p8 += im->bytes_per_line; } break; } case 16: for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { r = (data[x] >> RrDefaultRedOffset) & 0xFF; r = r >> rs; g = (data[x] >> RrDefaultGreenOffset) & 0xFF; g = g >> gs; b = (data[x] >> RrDefaultBlueOffset) & 0xFF; b = b >> bs; p16[x] = (r << ro) + (g << go) + (b << bo); } data += im->width; p16 += im->bytes_per_line/2; } break; case 8: if (RrVisual(inst)->class == TrueColor) { for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { r = (data[x] >> RrDefaultRedOffset) & 0xFF; r = r >> rs; g = (data[x] >> RrDefaultGreenOffset) & 0xFF; g = g >> gs; b = (data[x] >> RrDefaultBlueOffset) & 0xFF; b = b >> bs; p8[x] = (r << ro) + (g << go) + (b << bo); } data += im->width; p8 += im->bytes_per_line; } } else { for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { p8[x] = RrPickColor(inst, data[x] >> RrDefaultRedOffset, data[x] >> RrDefaultGreenOffset, data[x] >> RrDefaultBlueOffset)->pixel; } data += im->width; p8 += im->bytes_per_line; } } break; default: g_error("This image bit depth (%i) is currently unhandled", im->bits_per_pixel); } } XColor *RrPickColor(const RrInstance *inst, gint r, gint g, gint b) { r = (r & 0xff) >> (8-RrPseudoBPC(inst)); g = (g & 0xff) >> (8-RrPseudoBPC(inst)); b = (b & 0xff) >> (8-RrPseudoBPC(inst)); return &RrPseudoColors(inst)[(r << (2*RrPseudoBPC(inst))) + (g << (1*RrPseudoBPC(inst))) + b]; } static void swap_byte_order(XImage *im) { gint x, y, di; di = 0; for (y = 0; y < im->height; ++y) { for (x = 0; x < im->width; ++x) { gchar *c = &im->data[di + x * im->bits_per_pixel / 8]; gchar t; switch (im->bits_per_pixel) { case 32: t = c[2]; c[2] = c[3]; c[3] = t; case 16: t = c[0]; c[0] = c[1]; c[1] = t; case 8: case 1: break; default: g_error("Your bit depth (%i) is currently unhandled", im->bits_per_pixel); } } di += im->bytes_per_line; } if (im->byte_order == LSBFirst) im->byte_order = MSBFirst; else im->byte_order = LSBFirst; } void RrIncreaseDepth(const RrInstance *inst, RrPixel32 *data, XImage *im) { gint r, g, b; gint x,y; RrPixel32 *p32 = (RrPixel32 *) im->data; RrPixel16 *p16 = (RrPixel16 *) im->data; guchar *p8 = (guchar *)im->data; if (im->byte_order != LSBFirst) swap_byte_order(im); switch (im->bits_per_pixel) { case 32: for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { r = (p32[x] >> RrRedOffset(inst)) & 0xff; g = (p32[x] >> RrGreenOffset(inst)) & 0xff; b = (p32[x] >> RrBlueOffset(inst)) & 0xff; data[x] = (r << RrDefaultRedOffset) + (g << RrDefaultGreenOffset) + (b << RrDefaultBlueOffset) + (0xff << RrDefaultAlphaOffset); } data += im->width; p32 += im->bytes_per_line/4; } break; case 16: for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { r = (p16[x] & RrRedMask(inst)) >> RrRedOffset(inst) << RrRedShift(inst); g = (p16[x] & RrGreenMask(inst)) >> RrGreenOffset(inst) << RrGreenShift(inst); b = (p16[x] & RrBlueMask(inst)) >> RrBlueOffset(inst) << RrBlueShift(inst); data[x] = (r << RrDefaultRedOffset) + (g << RrDefaultGreenOffset) + (b << RrDefaultBlueOffset) + (0xff << RrDefaultAlphaOffset); } data += im->width; p16 += im->bytes_per_line/2; } break; case 8: g_error("This image bit depth (%i) is currently unhandled", 8); break; case 1: for (y = 0; y < im->height; y++) { for (x = 0; x < im->width; x++) { if (!(((p8[x / 8]) >> (x % 8)) & 0x1)) data[x] = 0xff << RrDefaultAlphaOffset; /* black */ else data[x] = 0xffffffff; /* white */ } data += im->width; p8 += im->bytes_per_line; } break; default: g_error("This image bit depth (%i) is currently unhandled", im->bits_per_pixel); } } gint RrColorRed(const RrColor *c) { return c->r; } gint RrColorGreen(const RrColor *c) { return c->g; } gint RrColorBlue(const RrColor *c) { return c->b; } gulong RrColorPixel(const RrColor *c) { return c->pixel; } GC RrColorGC(RrColor *c) { if (!c->gc) RrColorAllocateGC(c); return c->gc; } openbox-3.6.1/obrender/font.c0000644000175300001440000003145312426440016013032 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- font.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #include "font.h" #include "color.h" #include "mask.h" #include "theme.h" #include "geom.h" #include "instance.h" #include "gettext.h" #include #include #include #include static void measure_font(const RrInstance *inst, RrFont *f) { PangoFontMetrics *metrics; static PangoLanguage *lang = NULL; if (lang == NULL) { #if PANGO_VERSION_MAJOR > 1 || \ (PANGO_VERSION_MAJOR == 1 && PANGO_VERSION_MINOR >= 16) lang = pango_language_get_default(); #else gchar *locale, *p; /* get the default language from the locale (based on gtk_get_default_language in gtkmain.c) */ locale = g_strdup(setlocale(LC_CTYPE, NULL)); if ((p = strchr(locale, '.'))) *p = '\0'; /* strip off the . */ if ((p = strchr(locale, '@'))) *p = '\0'; /* strip off the @ */ lang = pango_language_from_string(locale); g_free(locale); #endif } /* measure the ascent and descent */ metrics = pango_context_get_metrics(inst->pango, f->font_desc, lang); f->ascent = pango_font_metrics_get_ascent(metrics); f->descent = pango_font_metrics_get_descent(metrics); pango_font_metrics_unref(metrics); } RrFont *RrFontOpen(const RrInstance *inst, const gchar *name, gint size, RrFontWeight weight, RrFontSlant slant) { RrFont *out; PangoWeight pweight; PangoStyle pstyle; PangoAttrList *attrlist; out = g_slice_new(RrFont); out->inst = inst; out->ref = 1; out->font_desc = pango_font_description_new(); out->layout = pango_layout_new(inst->pango); out->shortcut_underline = pango_attr_underline_new(PANGO_UNDERLINE_SINGLE); out->shortcut_underline->start_index = 0; out->shortcut_underline->end_index = 0; attrlist = pango_attr_list_new(); /* shortcut_underline is owned by the attrlist */ pango_attr_list_insert(attrlist, out->shortcut_underline); /* the attributes are owned by the layout */ pango_layout_set_attributes(out->layout, attrlist); pango_attr_list_unref(attrlist); switch (weight) { case RR_FONTWEIGHT_LIGHT: pweight = PANGO_WEIGHT_LIGHT; break; case RR_FONTWEIGHT_NORMAL: pweight = PANGO_WEIGHT_NORMAL; break; case RR_FONTWEIGHT_SEMIBOLD: pweight = PANGO_WEIGHT_SEMIBOLD; break; case RR_FONTWEIGHT_BOLD: pweight = PANGO_WEIGHT_BOLD; break; case RR_FONTWEIGHT_ULTRABOLD: pweight = PANGO_WEIGHT_ULTRABOLD; break; default: g_assert_not_reached(); } switch (slant) { case RR_FONTSLANT_NORMAL: pstyle = PANGO_STYLE_NORMAL; break; case RR_FONTSLANT_ITALIC: pstyle = PANGO_STYLE_ITALIC; break; case RR_FONTSLANT_OBLIQUE: pstyle = PANGO_STYLE_OBLIQUE; break; default: g_assert_not_reached(); } /* setup the font */ pango_font_description_set_family(out->font_desc, name); pango_font_description_set_weight(out->font_desc, pweight); pango_font_description_set_style(out->font_desc, pstyle); pango_font_description_set_size(out->font_desc, size * PANGO_SCALE); /* setup the layout */ pango_layout_set_font_description(out->layout, out->font_desc); pango_layout_set_wrap(out->layout, PANGO_WRAP_WORD_CHAR); /* get the ascent and descent */ measure_font(inst, out); return out; } RrFont *RrFontOpenDefault(const RrInstance *inst) { return RrFontOpen(inst, RrDefaultFontFamily, RrDefaultFontSize, RrDefaultFontWeight, RrDefaultFontSlant); } void RrFontRef(RrFont *f) { ++f->ref; } void RrFontClose(RrFont *f) { if (f) { if (--f->ref < 1) { g_object_unref(f->layout); pango_font_description_free(f->font_desc); g_slice_free(RrFont, f); } } } static void font_measure_full(const RrFont *f, const gchar *str, gint *x, gint *y, gint shadow_x, gint shadow_y, gboolean flow, gint maxwidth) { PangoRectangle rect; pango_layout_set_text(f->layout, str, -1); if (flow) { pango_layout_set_single_paragraph_mode(f->layout, FALSE); pango_layout_set_width(f->layout, maxwidth * PANGO_SCALE); pango_layout_set_ellipsize(f->layout, PANGO_ELLIPSIZE_NONE); } else { /* single line mode */ pango_layout_set_single_paragraph_mode(f->layout, TRUE); pango_layout_set_width(f->layout, -1); pango_layout_set_ellipsize(f->layout, PANGO_ELLIPSIZE_MIDDLE); } /* pango_layout_get_pixel_extents lies! this is the right way to get the size of the text's area */ pango_layout_get_extents(f->layout, NULL, &rect); #if PANGO_VERSION_MAJOR > 1 || \ (PANGO_VERSION_MAJOR == 1 && PANGO_VERSION_MINOR >= 16) /* pass the logical rect as the ink rect, this is on purpose so we get the full area for the text */ pango_extents_to_pixels(&rect, NULL); #else rect.width = (rect.width + PANGO_SCALE - 1) / PANGO_SCALE; rect.height = (rect.height + PANGO_SCALE - 1) / PANGO_SCALE; #endif *x = rect.width + ABS(shadow_x) + 4 /* we put a 2 px edge on each side */; *y = rect.height + ABS(shadow_y); } RrSize *RrFontMeasureString(const RrFont *f, const gchar *str, gint shadow_x, gint shadow_y, gboolean flow, gint maxwidth) { RrSize *size; g_assert(!flow || maxwidth > 0); size = g_slice_new(RrSize); font_measure_full(f, str, &size->width, &size->height, shadow_x, shadow_y, flow, maxwidth); return size; } gint RrFontHeight(const RrFont *f, gint shadow_y) { return (f->ascent + f->descent) / PANGO_SCALE + ABS(shadow_y); } static inline int font_calculate_baseline(RrFont *f, gint height) { /* For my own reference: * _________ * ^space/2 ^height ^baseline * v_________|_ | * | ^ascent | _ _ * | | | | |_ _____ _| |_ _ _ * | | | | _/ -_) \ / _| || | * | v_________v \__\___/_\_\\__|\_, | * | ^descent |__/ * __________|_v * ^space/2 | * V_________v */ return (((height * PANGO_SCALE) /* height of the space in pango units */ - (f->ascent + f->descent)) /* minus space taken up by text */ / 2 /* divided by two -> half of the empty space (this is the top of the text) */ + f->ascent) /* now move down to the baseline */ / PANGO_SCALE; /* back to pixels */ } void RrFontDraw(XftDraw *d, RrTextureText *t, RrRect *area) { gint x,y,w; XftColor c; gint mw; PangoRectangle rect; PangoAttrList *attrlist; PangoEllipsizeMode ell; g_assert(!t->flow || t->maxwidth > 0); y = area->y; if (!t->flow) /* center the text vertically We do this centering based on the 'baseline' since different fonts have different top edges. It looks bad when the whole string is moved when 1 character from a non-default language is included in the string */ y += font_calculate_baseline(t->font, area->height); /* the +2 and -4 leave a small blank edge on the sides */ x = area->x + 2; w = area->width; if (t->flow) w = MAX(w, t->maxwidth); w -= 4; /* h = area->height; */ if (t->flow) ell = PANGO_ELLIPSIZE_NONE; else { switch (t->ellipsize) { case RR_ELLIPSIZE_NONE: ell = PANGO_ELLIPSIZE_NONE; break; case RR_ELLIPSIZE_START: ell = PANGO_ELLIPSIZE_START; break; case RR_ELLIPSIZE_MIDDLE: ell = PANGO_ELLIPSIZE_MIDDLE; break; case RR_ELLIPSIZE_END: ell = PANGO_ELLIPSIZE_END; break; default: g_assert_not_reached(); } } pango_layout_set_text(t->font->layout, t->string, -1); pango_layout_set_width(t->font->layout, w * PANGO_SCALE); pango_layout_set_ellipsize(t->font->layout, ell); pango_layout_set_single_paragraph_mode(t->font->layout, !t->flow); /* * * end of setting up the layout * * */ pango_layout_get_pixel_extents(t->font->layout, NULL, &rect); mw = rect.width; /* pango_layout_set_alignment doesn't work with pango_xft_render_layout_line */ switch (t->justify) { case RR_JUSTIFY_LEFT: break; case RR_JUSTIFY_RIGHT: x += (w - mw); break; case RR_JUSTIFY_CENTER: x += (w - mw) / 2; break; case RR_JUSTIFY_NUM_TYPES: g_assert_not_reached(); } if (t->shadow_offset_x || t->shadow_offset_y) { /* From nvidia's readme (chapter 23): When rendering to a 32-bit window, keep in mind that the X RENDER extension, used by most composite managers, expects "premultiplied alpha" colors. This means that if your color has components (r,g,b) and alpha value a, then you must render (a*r, a*g, a*b, a) into the target window. */ c.color.red = (t->shadow_color->r | t->shadow_color->r << 8) * t->shadow_alpha / 255; c.color.green = (t->shadow_color->g | t->shadow_color->g << 8) * t->shadow_alpha / 255; c.color.blue = (t->shadow_color->b | t->shadow_color->b << 8) * t->shadow_alpha / 255; c.color.alpha = 0xffff * t->shadow_alpha / 255; c.pixel = t->shadow_color->pixel; /* see below... */ if (!t->flow) { pango_xft_render_layout_line (d, &c, #if PANGO_VERSION_MAJOR > 1 || \ (PANGO_VERSION_MAJOR == 1 && PANGO_VERSION_MINOR >= 16) pango_layout_get_line_readonly(t->font->layout, 0), #else pango_layout_get_line(t->font->layout, 0), #endif (x + t->shadow_offset_x) * PANGO_SCALE, (y + t->shadow_offset_y) * PANGO_SCALE); } else { pango_xft_render_layout(d, &c, t->font->layout, (x + t->shadow_offset_x) * PANGO_SCALE, (y + t->shadow_offset_y) * PANGO_SCALE); } } c.color.red = t->color->r | t->color->r << 8; c.color.green = t->color->g | t->color->g << 8; c.color.blue = t->color->b | t->color->b << 8; c.color.alpha = 0xff | 0xff << 8; /* fully opaque text */ c.pixel = t->color->pixel; if (t->shortcut) { const gchar *s = t->string + t->shortcut_pos; t->font->shortcut_underline->start_index = t->shortcut_pos; t->font->shortcut_underline->end_index = t->shortcut_pos + (g_utf8_next_char(s) - s); /* the attributes are owned by the layout. re-add the attributes to the layout after changing the start and end index */ attrlist = pango_layout_get_attributes(t->font->layout); pango_attr_list_ref(attrlist); pango_layout_set_attributes(t->font->layout, attrlist); pango_attr_list_unref(attrlist); } /* layout_line() uses y to specify the baseline The line doesn't need to be freed, it's a part of the layout */ if (!t->flow) { pango_xft_render_layout_line (d, &c, #if PANGO_VERSION_MAJOR > 1 || \ (PANGO_VERSION_MAJOR == 1 && PANGO_VERSION_MINOR >= 16) pango_layout_get_line_readonly(t->font->layout, 0), #else pango_layout_get_line(t->font->layout, 0), #endif x * PANGO_SCALE, y * PANGO_SCALE); } else { pango_xft_render_layout(d, &c, t->font->layout, x * PANGO_SCALE, y * PANGO_SCALE); } if (t->shortcut) { t->font->shortcut_underline->start_index = 0; t->font->shortcut_underline->end_index = 0; /* the attributes are owned by the layout. re-add the attributes to the layout after changing the start and end index */ attrlist = pango_layout_get_attributes(t->font->layout); pango_attr_list_ref(attrlist); pango_layout_set_attributes(t->font->layout, attrlist); pango_attr_list_unref(attrlist); } } openbox-3.6.1/obrender/gradient.c0000644000175300001440000006464212426440016013667 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- gradient.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2008 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #include "render.h" #include "gradient.h" #include "color.h" #include #include static void highlight(RrSurface *s, RrPixel32 *x, RrPixel32 *y, gboolean raised); static void gradient_parentrelative(RrAppearance *a, gint w, gint h); static void gradient_solid(RrAppearance *l, gint w, gint h); static void gradient_splitvertical(RrAppearance *a, gint w, gint h); static void gradient_vertical(RrSurface *sf, gint w, gint h); static void gradient_horizontal(RrSurface *sf, gint w, gint h); static void gradient_mirrorhorizontal(RrSurface *sf, gint w, gint h); static void gradient_diagonal(RrSurface *sf, gint w, gint h); static void gradient_crossdiagonal(RrSurface *sf, gint w, gint h); static void gradient_pyramid(RrSurface *sf, gint inw, gint inh); void RrRender(RrAppearance *a, gint w, gint h) { RrPixel32 *data = a->surface.pixel_data; RrPixel32 current; guint r,g,b; register gint off, x; switch (a->surface.grad) { case RR_SURFACE_PARENTREL: gradient_parentrelative(a, w, h); break; case RR_SURFACE_SOLID: gradient_solid(a, w, h); break; case RR_SURFACE_SPLIT_VERTICAL: gradient_splitvertical(a, w, h); break; case RR_SURFACE_VERTICAL: gradient_vertical(&a->surface, w, h); break; case RR_SURFACE_HORIZONTAL: gradient_horizontal(&a->surface, w, h); break; case RR_SURFACE_MIRROR_HORIZONTAL: gradient_mirrorhorizontal(&a->surface, w, h); break; case RR_SURFACE_DIAGONAL: gradient_diagonal(&a->surface, w, h); break; case RR_SURFACE_CROSS_DIAGONAL: gradient_crossdiagonal(&a->surface, w, h); break; case RR_SURFACE_PYRAMID: gradient_pyramid(&a->surface, w, h); break; default: g_assert_not_reached(); /* unhandled gradient */ return; } if (a->surface.interlaced) { gint i; RrPixel32 *p; r = a->surface.interlace_color->r; g = a->surface.interlace_color->g; b = a->surface.interlace_color->b; current = (r << RrDefaultRedOffset) + (g << RrDefaultGreenOffset) + (b << RrDefaultBlueOffset); p = data; for (i = 0; i < h; i += 2, p += w) for (x = 0; x < w; ++x, ++p) *p = current; } if (a->surface.relief == RR_RELIEF_FLAT && a->surface.border) { r = a->surface.border_color->r; g = a->surface.border_color->g; b = a->surface.border_color->b; current = (r << RrDefaultRedOffset) + (g << RrDefaultGreenOffset) + (b << RrDefaultBlueOffset); for (off = 0, x = 0; x < w; ++x, off++) { *(data + off) = current; *(data + off + ((h-1) * w)) = current; } for (off = 0, x = 0; x < h; ++x, off++) { *(data + (off * w)) = current; *(data + (off * w) + w - 1) = current; } } if (a->surface.relief != RR_RELIEF_FLAT) { if (a->surface.bevel == RR_BEVEL_1) { for (off = 1, x = 1; x < w - 1; ++x, off++) highlight(&a->surface, data + off, data + off + (h-1) * w, a->surface.relief==RR_RELIEF_RAISED); for (off = 0, x = 0; x < h; ++x, off++) highlight(&a->surface, data + off * w, data + off * w + w - 1, a->surface.relief==RR_RELIEF_RAISED); } if (a->surface.bevel == RR_BEVEL_2) { for (off = 2, x = 2; x < w - 2; ++x, off++) highlight(&a->surface, data + off + w, data + off + (h-2) * w, a->surface.relief==RR_RELIEF_RAISED); for (off = 1, x = 1; x < h-1; ++x, off++) highlight(&a->surface, data + off * w + 1, data + off * w + w - 2, a->surface.relief==RR_RELIEF_RAISED); } } } static void highlight(RrSurface *s, RrPixel32 *x, RrPixel32 *y, gboolean raised) { register gint r, g, b; RrPixel32 *up, *down; if (raised) { up = x; down = y; } else { up = y; down = x; } r = (*up >> RrDefaultRedOffset) & 0xFF; r += (r * s->bevel_light_adjust) >> 8; g = (*up >> RrDefaultGreenOffset) & 0xFF; g += (g * s->bevel_light_adjust) >> 8; b = (*up >> RrDefaultBlueOffset) & 0xFF; b += (b * s->bevel_light_adjust) >> 8; if (r > 0xFF) r = 0xFF; if (g > 0xFF) g = 0xFF; if (b > 0xFF) b = 0xFF; *up = (r << RrDefaultRedOffset) + (g << RrDefaultGreenOffset) + (b << RrDefaultBlueOffset); r = (*down >> RrDefaultRedOffset) & 0xFF; r -= (r * s->bevel_dark_adjust) >> 8; g = (*down >> RrDefaultGreenOffset) & 0xFF; g -= (g * s->bevel_dark_adjust) >> 8; b = (*down >> RrDefaultBlueOffset) & 0xFF; b -= (b * s->bevel_dark_adjust) >> 8; *down = (r << RrDefaultRedOffset) + (g << RrDefaultGreenOffset) + (b << RrDefaultBlueOffset); } static void create_bevel_colors(RrAppearance *l) { register gint r, g, b; /* light color */ r = l->surface.primary->r; r += (r * l->surface.bevel_light_adjust) >> 8; g = l->surface.primary->g; g += (g * l->surface.bevel_light_adjust) >> 8; b = l->surface.primary->b; b += (b * l->surface.bevel_light_adjust) >> 8; if (r > 0xFF) r = 0xFF; if (g > 0xFF) g = 0xFF; if (b > 0xFF) b = 0xFF; g_assert(!l->surface.bevel_light); l->surface.bevel_light = RrColorNew(l->inst, r, g, b); /* dark color */ r = l->surface.primary->r; r -= (r * l->surface.bevel_dark_adjust) >> 8; g = l->surface.primary->g; g -= (g * l->surface.bevel_dark_adjust) >> 8; b = l->surface.primary->b; b -= (b * l->surface.bevel_dark_adjust) >> 8; g_assert(!l->surface.bevel_dark); l->surface.bevel_dark = RrColorNew(l->inst, r, g, b); } /*! Repeat the first pixel over the entire block of memory @param start The block of memory. start[0] will be copied to the rest of the block. @param w The width of the block of memory (including the already-set first element */ static inline void repeat_pixel(RrPixel32 *start, gint w) { register gint x; RrPixel32 *dest; dest = start + 1; /* for really small things, just copy ourselves */ if (w < 8) { for (x = w-1; x > 0; --x) *(dest++) = *start; } /* for >= 8, then use O(log n) memcpy's... */ else { gchar *cdest; gint lenbytes; /* copy the first 3 * 32 bits (3 words) ourselves - then we have 3 + the original 1 = 4 words to make copies of at a time this is faster than doing memcpy for 1 or 2 words at a time */ for (x = 3; x > 0; --x) *(dest++) = *start; /* cdest is a pointer to the pixel data that is typed char* so that adding 1 to its position moves it only one byte lenbytes is the amount of bytes that we will be copying each iteration. this doubles each time through the loop. x is the number of bytes left to copy into. lenbytes will alwaysa be bounded by x this loop will run O(log n) times (n is the number of bytes we need to copy into), since the size of the copy is doubled each iteration. it seems that gcc does some nice optimizations to make this memcpy very fast on hardware with support for vector operations such as mmx or see. here is an idea of the kind of speed up we are getting by doing this (splitvertical3 switches from doing "*(data++) = color" n times to doing this memcpy thing log n times: % cumulative self self total time seconds seconds calls ms/call ms/call name 49.44 0.88 0.88 1063 0.83 0.83 splitvertical1 47.19 1.72 0.84 1063 0.79 0.79 splitvertical2 2.81 1.77 0.05 1063 0.05 0.05 splitvertical3 */ cdest = (gchar*)dest; lenbytes = 4 * sizeof(RrPixel32); for (x = (w - 4) * sizeof(RrPixel32); x > 0;) { memcpy(cdest, start, lenbytes); x -= lenbytes; cdest += lenbytes; lenbytes <<= 1; if (lenbytes > x) lenbytes = x; } } } static void gradient_parentrelative(RrAppearance *a, gint w, gint h) { RrPixel32 *source, *dest; gint sw, sh, partial_w, partial_h; register gint i; g_assert (a->surface.parent); g_assert (a->surface.parent->w); sw = a->surface.parent->w; sh = a->surface.parent->h; /* This is a little hack. When a texture is parentrelative, and the same area as the parent, and has a bevel, it will draw its bevel on top of the parent's, amplifying it. So instead, rerender the child with the parent's settings, but the child's bevel and interlace */ if (a->surface.relief != RR_RELIEF_FLAT && (a->surface.parent->surface.relief != RR_RELIEF_FLAT || a->surface.parent->surface.border) && !a->surface.parentx && !a->surface.parenty && sw == w && sh == h) { RrSurface old = a->surface; a->surface = a->surface.parent->surface; /* turn these off for the parent */ a->surface.relief = RR_RELIEF_FLAT; a->surface.border = FALSE; a->surface.pixel_data = old.pixel_data; RrRender(a, w, h); a->surface = old; } else { source = (a->surface.parent->surface.pixel_data + a->surface.parentx + sw * a->surface.parenty); dest = a->surface.pixel_data; if (a->surface.parentx + w > sw) { partial_w = sw - a->surface.parentx; } else partial_w = w; if (a->surface.parenty + h > sh) { partial_h = sh - a->surface.parenty; } else partial_h = h; for (i = 0; i < partial_h; i++, source += sw, dest += w) { memcpy(dest, source, partial_w * sizeof(RrPixel32)); } } } static void gradient_solid(RrAppearance *l, gint w, gint h) { register gint i; RrPixel32 pix; RrPixel32 *data = l->surface.pixel_data; RrSurface *sp = &l->surface; gint left = 0, top = 0, right = w - 1, bottom = h - 1; pix = (sp->primary->r << RrDefaultRedOffset) + (sp->primary->g << RrDefaultGreenOffset) + (sp->primary->b << RrDefaultBlueOffset); for (i = 0; i < w * h; i++) *data++ = pix; if (sp->interlaced) return; XFillRectangle(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->primary), 0, 0, w, h); switch (sp->relief) { case RR_RELIEF_RAISED: if (!sp->bevel_dark) create_bevel_colors(l); switch (sp->bevel) { case RR_BEVEL_1: XDrawLine(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->bevel_dark), left, bottom, right, bottom); XDrawLine(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->bevel_dark), right, bottom, right, top); XDrawLine(RrDisplay(l->inst), l->pixmap,RrColorGC(sp->bevel_light), left, top, right, top); XDrawLine(RrDisplay(l->inst), l->pixmap,RrColorGC(sp->bevel_light), left, bottom, left, top); break; case RR_BEVEL_2: XDrawLine(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->bevel_dark), left + 2, bottom - 1, right - 2, bottom - 1); XDrawLine(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->bevel_dark), right - 1, bottom - 1, right - 1, top + 1); XDrawLine(RrDisplay(l->inst), l->pixmap,RrColorGC(sp->bevel_light), left + 2, top + 1, right - 2, top + 1); XDrawLine(RrDisplay(l->inst), l->pixmap,RrColorGC(sp->bevel_light), left + 1, bottom - 1, left + 1, top + 1); break; default: g_assert_not_reached(); /* unhandled BevelType */ } break; case RR_RELIEF_SUNKEN: if (!sp->bevel_dark) create_bevel_colors(l); switch (sp->bevel) { case RR_BEVEL_1: XDrawLine(RrDisplay(l->inst), l->pixmap,RrColorGC(sp->bevel_light), left, bottom, right, bottom); XDrawLine(RrDisplay(l->inst), l->pixmap,RrColorGC(sp->bevel_light), right, bottom, right, top); XDrawLine(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->bevel_dark), left, top, right, top); XDrawLine(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->bevel_dark), left, bottom, left, top); break; case RR_BEVEL_2: XDrawLine(RrDisplay(l->inst), l->pixmap,RrColorGC(sp->bevel_light), left + 2, bottom - 1, right - 2, bottom - 1); XDrawLine(RrDisplay(l->inst), l->pixmap,RrColorGC(sp->bevel_light), right - 1, bottom - 1, right - 1, top + 1); XDrawLine(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->bevel_dark), left + 2, top + 1, right - 2, top + 1); XDrawLine(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->bevel_dark), left + 1, bottom - 1, left + 1, top + 1); break; default: g_assert_not_reached(); /* unhandled BevelType */ } break; case RR_RELIEF_FLAT: if (sp->border) { XDrawRectangle(RrDisplay(l->inst), l->pixmap, RrColorGC(sp->border_color), left, top, right, bottom); } break; default: g_assert_not_reached(); /* unhandled ReliefType */ } } /* * * * * * * * * * * * * * GRADIENT MAGIC WOOT * * * * * * * * * * * * * * */ #define VARS(x) \ register gint len##x; \ guint color##x[3]; \ gint cdelta##x[3], error##x[3] = { 0, 0, 0 }, inc##x[3]; \ gboolean bigslope##x[3] /* color slope > 1 */ #define SETUP(x, from, to, w) \ len##x = w; \ \ color##x[0] = from->r; \ color##x[1] = from->g; \ color##x[2] = from->b; \ \ cdelta##x[0] = to->r - from->r; \ cdelta##x[1] = to->g - from->g; \ cdelta##x[2] = to->b - from->b; \ \ if (cdelta##x[0] < 0) { \ cdelta##x[0] = -cdelta##x[0]; \ inc##x[0] = -1; \ } else \ inc##x[0] = 1; \ if (cdelta##x[1] < 0) { \ cdelta##x[1] = -cdelta##x[1]; \ inc##x[1] = -1; \ } else \ inc##x[1] = 1; \ if (cdelta##x[2] < 0) { \ cdelta##x[2] = -cdelta##x[2]; \ inc##x[2] = -1; \ } else \ inc##x[2] = 1; \ bigslope##x[0] = cdelta##x[0] > w;\ bigslope##x[1] = cdelta##x[1] > w;\ bigslope##x[2] = cdelta##x[2] > w #define COLOR_RR(x, c) \ c->r = color##x[0]; \ c->g = color##x[1]; \ c->b = color##x[2] #define COLOR(x) \ ((color##x[0] << RrDefaultRedOffset) + \ (color##x[1] << RrDefaultGreenOffset) + \ (color##x[2] << RrDefaultBlueOffset)) #define INCREMENT(x, i) \ (inc##x[i]) #define NEXT(x) \ { \ register gint i; \ for (i = 2; i >= 0; --i) { \ if (!cdelta##x[i]) continue; \ \ if (!bigslope##x[i]) { \ /* Y (color) is dependant on X */ \ error##x[i] += cdelta##x[i]; \ if ((error##x[i] << 1) >= len##x) { \ color##x[i] += INCREMENT(x, i); \ error##x[i] -= len##x; \ } \ } else { \ /* X is dependant on Y (color) */ \ while (1) { \ color##x[i] += INCREMENT(x, i); \ error##x[i] += len##x; \ if ((error##x[i] << 1) >= cdelta##x[i]) { \ error##x[i] -= cdelta##x[i]; \ break; \ } \ } \ } \ } \ } static void gradient_splitvertical(RrAppearance *a, gint w, gint h) { register gint y1, y2, y3; RrSurface *sf = &a->surface; RrPixel32 *data; register gint y1sz, y2sz, y3sz; VARS(y1); VARS(y2); VARS(y3); /* if h <= 5, then a 0 or 1px middle gradient. if h > 5, then always a 1px middle gradient. */ if (h <= 5) { y1sz = MAX(h/2, 0); y2sz = (h < 3) ? 0 : (h & 1); y3sz = MAX(h/2, 1); } else { y1sz = h/2 - (1 - (h & 1)); y2sz = 1; y3sz = h/2; } SETUP(y1, sf->split_primary, sf->primary, y1sz); if (y2sz) { /* setup to get the colors _in between_ these other 2 */ SETUP(y2, sf->primary, sf->secondary, y2sz + 2); NEXT(y2); /* skip the first one, its the same as the last of y1 */ } SETUP(y3, sf->secondary, sf->split_secondary, y3sz); /* find the color for the first pixel of each row first */ data = sf->pixel_data; if (y1sz) { for (y1 = y1sz-1; y1 > 0; --y1) { *data = COLOR(y1); data += w; NEXT(y1); } *data = COLOR(y1); data += w; } if (y2sz) { for (y2 = y2sz-1; y2 > 0; --y2) { *data = COLOR(y2); data += w; NEXT(y2); } *data = COLOR(y2); data += w; } for (y3 = y3sz-1; y3 > 0; --y3) { *data = COLOR(y3); data += w; NEXT(y3); } *data = COLOR(y3); /* copy the first pixels into the whole rows */ data = sf->pixel_data; for (y1 = h; y1 > 0; --y1) { repeat_pixel(data, w); data += w; } } static void gradient_horizontal(RrSurface *sf, gint w, gint h) { register gint x, y, cpbytes; RrPixel32 *data = sf->pixel_data, *datav; gchar *datac; VARS(x); SETUP(x, sf->primary, sf->secondary, w); /* set the color values for the first row */ datav = data; for (x = w - 1; x > 0; --x) { /* 0 -> w - 1 */ *datav = COLOR(x); ++datav; NEXT(x); } *datav = COLOR(x); ++datav; /* copy the first row to the rest in O(logn) copies */ datac = (gchar*)datav; cpbytes = 1 * w * sizeof(RrPixel32); for (y = (h - 1) * w * sizeof(RrPixel32); y > 0;) { memcpy(datac, data, cpbytes); y -= cpbytes; datac += cpbytes; cpbytes <<= 1; if (cpbytes > y) cpbytes = y; } } static void gradient_mirrorhorizontal(RrSurface *sf, gint w, gint h) { register gint x, y, half1, half2, cpbytes; RrPixel32 *data = sf->pixel_data, *datav; gchar *datac; VARS(x); half1 = (w + 1) / 2; half2 = w / 2; /* set the color values for the first row */ SETUP(x, sf->primary, sf->secondary, half1); datav = data; for (x = half1 - 1; x > 0; --x) { /* 0 -> half1 - 1 */ *datav = COLOR(x); ++datav; NEXT(x); } *datav = COLOR(x); ++datav; if (half2 > 0) { SETUP(x, sf->secondary, sf->primary, half2); for (x = half2 - 1; x > 0; --x) { /* 0 -> half2 - 1 */ *datav = COLOR(x); ++datav; NEXT(x); } *datav = COLOR(x); ++datav; } /* copy the first row to the rest in O(logn) copies */ datac = (gchar*)datav; cpbytes = 1 * w * sizeof(RrPixel32); for (y = (h - 1) * w * sizeof(RrPixel32); y > 0;) { memcpy(datac, data, cpbytes); y -= cpbytes; datac += cpbytes; cpbytes <<= 1; if (cpbytes > y) cpbytes = y; } } static void gradient_vertical(RrSurface *sf, gint w, gint h) { register gint y; RrPixel32 *data; VARS(y); SETUP(y, sf->primary, sf->secondary, h); /* find the color for the first pixel of each row first */ data = sf->pixel_data; for (y = h - 1; y > 0; --y) { /* 0 -> h-1 */ *data = COLOR(y); data += w; NEXT(y); } *data = COLOR(y); /* copy the first pixels into the whole rows */ data = sf->pixel_data; for (y = h; y > 0; --y) { repeat_pixel(data, w); data += w; } } static void gradient_diagonal(RrSurface *sf, gint w, gint h) { register gint x, y; RrPixel32 *data = sf->pixel_data; RrColor left, right; RrColor extracorner; VARS(lefty); VARS(righty); VARS(x); extracorner.r = (sf->primary->r + sf->secondary->r) / 2; extracorner.g = (sf->primary->g + sf->secondary->g) / 2; extracorner.b = (sf->primary->b + sf->secondary->b) / 2; SETUP(lefty, sf->primary, (&extracorner), h); SETUP(righty, (&extracorner), sf->secondary, h); for (y = h - 1; y > 0; --y) { /* 0 -> h-1 */ COLOR_RR(lefty, (&left)); COLOR_RR(righty, (&right)); SETUP(x, (&left), (&right), w); for (x = w - 1; x > 0; --x) { /* 0 -> w-1 */ *(data++) = COLOR(x); NEXT(x); } *(data++) = COLOR(x); NEXT(lefty); NEXT(righty); } COLOR_RR(lefty, (&left)); COLOR_RR(righty, (&right)); SETUP(x, (&left), (&right), w); for (x = w - 1; x > 0; --x) { /* 0 -> w-1 */ *(data++) = COLOR(x); NEXT(x); } *data = COLOR(x); } static void gradient_crossdiagonal(RrSurface *sf, gint w, gint h) { register gint x, y; RrPixel32 *data = sf->pixel_data; RrColor left, right; RrColor extracorner; VARS(lefty); VARS(righty); VARS(x); extracorner.r = (sf->primary->r + sf->secondary->r) / 2; extracorner.g = (sf->primary->g + sf->secondary->g) / 2; extracorner.b = (sf->primary->b + sf->secondary->b) / 2; SETUP(lefty, (&extracorner), sf->secondary, h); SETUP(righty, sf->primary, (&extracorner), h); for (y = h - 1; y > 0; --y) { /* 0 -> h-1 */ COLOR_RR(lefty, (&left)); COLOR_RR(righty, (&right)); SETUP(x, (&left), (&right), w); for (x = w - 1; x > 0; --x) { /* 0 -> w-1 */ *(data++) = COLOR(x); NEXT(x); } *(data++) = COLOR(x); NEXT(lefty); NEXT(righty); } COLOR_RR(lefty, (&left)); COLOR_RR(righty, (&right)); SETUP(x, (&left), (&right), w); for (x = w - 1; x > 0; --x) { /* 0 -> w-1 */ *(data++) = COLOR(x); NEXT(x); } *data = COLOR(x); } static void gradient_pyramid(RrSurface *sf, gint w, gint h) { RrPixel32 *ldata, *rdata; RrPixel32 *cp; RrColor left, right; RrColor extracorner; register gint x, y, halfw, halfh, midx, midy; VARS(lefty); VARS(righty); VARS(x); extracorner.r = (sf->primary->r + sf->secondary->r) / 2; extracorner.g = (sf->primary->g + sf->secondary->g) / 2; extracorner.b = (sf->primary->b + sf->secondary->b) / 2; halfw = w >> 1; halfh = h >> 1; midx = w - halfw - halfw; /* 0 or 1, depending if w is even or odd */ midy = h - halfh - halfh; /* 0 or 1, depending if h is even or odd */ SETUP(lefty, sf->primary, (&extracorner), halfh + midy); SETUP(righty, (&extracorner), sf->secondary, halfh + midy); /* draw the top half it is faster to draw both top quarters together than to draw one and then copy it over to the other side. */ ldata = sf->pixel_data; rdata = ldata + w - 1; for (y = halfh + midy; y > 0; --y) { /* 0 -> (h+1)/2 */ RrPixel32 c; COLOR_RR(lefty, (&left)); COLOR_RR(righty, (&right)); SETUP(x, (&left), (&right), halfw + midx); for (x = halfw + midx - 1; x > 0; --x) { /* 0 -> (w+1)/2 */ c = COLOR(x); *(ldata++) = *(rdata--) = c; NEXT(x); } c = COLOR(x); *ldata = *rdata = c; ldata += halfw + 1; rdata += halfw - 1 + midx + w; NEXT(lefty); NEXT(righty); } /* copy the top half into the bottom half, mirroring it, so we can only copy one row at a time it is faster, to move the writing pointer forward, and the reading pointer backward this is the current code, moving the write pointer forward and read pointer backward 41.78 4.26 1.78 504 3.53 3.53 gradient_pyramid2 this is the opposite, moving the read pointer forward and the write pointer backward 42.27 4.40 1.86 504 3.69 3.69 gradient_pyramid2 */ ldata = sf->pixel_data + (halfh - 1) * w; cp = ldata + (midy + 1) * w; for (y = halfh; y > 0; --y) { memcpy(cp, ldata, w * sizeof(RrPixel32)); ldata -= w; cp += w; } } openbox-3.6.1/obrender/icon.h0000644000175300001440000007727412426440016013034 00000000000000/* GIMP RGBA C-Source image dump (icon.h) */ /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- icon.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #define OB_DEFAULT_ICON_WIDTH (48) #define OB_DEFAULT_ICON_HEIGHT (48) #define OB_DEFAULT_ICON_BYTES_PER_PIXEL (4) /* 3:RGB, 4:RGBA */ #define OB_DEFAULT_ICON_COMMENT \ "To recreate this file, save an image as \"C-Source\" in The Gimp. Use \"ob_default_icon\" as the Prefixed Name. Enable Glib Types. Enable Save Alpha Channel. Enable Use Macros instead of Struct." #define OB_DEFAULT_ICON_PIXEL_DATA ((guint8*) OB_DEFAULT_ICON_pixel_data) static const guint8 OB_DEFAULT_ICON_pixel_data[48 * 48 * 4 + 1] = ("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\40J\207\15\40J\207\23\40J\207" "\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J" "\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23" "\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207" "\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J" "\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23" "\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207\23\40J\207" "\23\40J\207\15\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0'P\213\267'Q\214\275'Q\214\275" "'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214" "\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275" "'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275(R\215\275'Q\214\275'Q\214" "\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275" "'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275'Q\214\275(R\215" "\275(R\215\275(R\215\275&P\213\267\40J\207\20\0\0\0\0\0\0\0\0\40J\207+Y{\252" "\377\216\253\320\377\204\243\314\377\204\243\314\377\204\243\314\377\204\243" "\314\377\204\243\314\377\204\243\314\377\204\243\314\377\204\243\314\377\204" "\243\314\377\204\243\314\377\204\243\314\377\204\243\314\377\204\243\314\377" "\204\243\314\377\204\243\314\377\204\243\314\377\204\243\314\377\204\243\314" "\377\204\243\314\377\204\243\314\377\204\243\314\377\204\243\314\377\204\243" "\314\377\204\243\314\377\203\243\314\377\203\243\313\377\203\243\313\377\203" "\243\313\377\203\242\313\377\202\242\313\377\202\242\313\377\202\241\313\377" "\201\241\312\377\201\241\312\377\201\240\312\377\201\240\312\377\200\240\312" "\377\200\240\312\377\200\240\312\377\200\240\312\377\211\247\316\377Jn\241" "\377\40J\207+\0\0\0\0\0\0\0\0\40J\207+Wy\251\377]\207\275\377>o\260\377>o" "\260\377>o\260\377>o\260\377>o\260\377>o\260\377>o\260\377>o\260\377>o\260" "\377>o\260\377>o\260\377>o\260\377>o\260\377>o\260\377>o\260\377>o\260\377" ">o\260\377>o\260\377>o\260\377>o\260\377>o\260\377>o\260\377>o\260\377>o\260" "\377>o\260\377>o\260\377>o\260\377>o\260\377=o\260\377=o\260\377=o\260\377" "=o\260\377=o\260\377=o\260\377=o\260\377=o\260\377=o\260\377=o\260\377=o\260" "\377=o\260\377_\210\275\377Hm\241\377\40J\207+\0\0\0\0\0\0\0\0\40J\207+Tw" "\251\377]\207\276\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r" "\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263" "\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377" "?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263" "\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377" "?r\263\377?r\263\377?r\263\377?r\263\377?r\263\377]\210\277\377Fl\241\377" "\40J\207+\0\0\0\0\0\0\0\0\40J\207+Rv\250\377\\\210\300\377At\265\377At\265" "\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377" "At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265" "\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377" "At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265" "\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377At\265\377" "At\265\377\\\210\300\377Dj\240\377\40J\207+\0\0\0\0\0\0\0\0\40J\207+Ot\247" "\377\\\211\302\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271" "\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377" "Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271" "\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377" "Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377Dw\271" "\377Dw\271\377Dw\271\377Dw\271\377Dw\271\377[\211\302\377Bi\240\377\40J\207" "+\0\0\0\0\0\0\0\0\40J\207+Ls\247\377\\\211\303\377Fy\273\377Fy\273\377Fy\273" "\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377" "Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273" "\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377" "Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273" "\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377Fy\273\377" "\\\211\303\377Ah\240\377\40J\207+\0\0\0\0\0\0\0\0\40J\207+Jq\246\377\\\212" "\305\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277" "\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377" "I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277" "\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377" "I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277" "\377I}\277\377I}\277\377I}\277\377[\212\305\377?g\237\377\40J\207+\0\0\0\0" "\0\0\0\0\40J\207+Jq\246\377\\\212\305\377I}\277\377I}\277\377I}\277\377I}" "\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277" "\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377I}\277\377" "I}\277\377I}\277\377I}\277\377J~\300\377K\177\301\377K\177\301\377K\177\301" "\377K\177\301\377K\177\301\377K\177\301\377K\177\301\377K\177\301\377K\177" "\301\377K\177\301\377K\177\301\377K\177\301\377K\177\301\377K\177\301\377" "K\177\301\377K\177\301\377K\177\301\377K\177\301\377Z\212\307\377=f\237\377" "\40J\207+\0\0\0\0\0\0\0\0\40J\207+Ip\247\377\\\213\307\377J\177\301\377J\177" "\301\377J\177\301\377J\177\301\377J\177\301\377J\177\301\377J\177\301\377" "J\177\301\377J\177\301\377J\177\301\377J\177\301\377J\177\301\377J\177\301" "\377J\177\301\377J\177\301\377J\177\301\377J\177\301\377J\177\301\377J\177" "\301\377J\177\301\377J\177\301\377K\200\302\377K\200\302\377K\200\302\377" "K\200\302\377K\200\302\377K\200\302\377K\200\302\377K\200\302\377K\200\302" "\377K\200\302\377K\200\302\377K\200\302\377K\200\302\377K\200\302\377K\200" "\302\377K\200\302\377K\200\302\377K\200\302\377K\200\302\377Z\212\307\377" "=f\237\377\40J\207+\0\0\0\0\0\0\0\0\40J\207+Ho\247\377e\223\314\377Z\213\310" "\377Z\213\310\377Z\213\310\377Z\213\310\377Z\213\307\377Z\213\307\377Z\213" "\307\377Z\213\307\377Z\213\307\377Y\212\307\377Y\212\307\377Y\212\307\377" "Y\212\307\377Y\212\307\377X\212\307\377X\212\307\377X\212\307\377X\211\307" "\377X\212\307\377X\212\307\377X\211\307\377X\211\307\377X\211\307\377X\211" "\307\377X\211\307\377X\211\307\377X\211\307\377X\211\307\377X\211\307\377" "X\211\307\377W\211\307\377W\211\307\377W\211\307\377W\211\307\377W\211\307" "\377W\211\307\377V\211\307\377V\211\307\377V\210\307\377V\210\307\377`\217" "\312\377 #endif #ifdef USE_LIBRSVG #include #include #endif #include #define FRACTION 12 #define FLOOR(i) ((i) & (~0UL << FRACTION)) #define AVERAGE(a, b) (((((a) ^ (b)) & 0xfefefefeL) >> 1) + ((a) & (b))) /************************************************************************ RrImagePic functions. RrImagePics are pictures that are grouped together into RrImageSets. Each RrImagePic in the set has the same logical image inside it, but they are of different sizes. An RrImagePic can be an original (which comes from some outside source, such as an image file), or resized from some other RrImagePic to meet the needs of the user. **************************************************************************/ /*! Set up an RrImagePic. This does _not_ make a copy of the data. So the value of data must be owned by the caller of this function, and not freed afterward. This function does not allocate an RrImagePic, and can be used for setting up a temporary RrImagePic on the stack. Such an object would then also not be freed with RrImagePicFree. */ static void RrImagePicInit(RrImagePic *pic, gint w, gint h, RrPixel32 *data) { gint i; pic->width = w; pic->height = h; pic->data = data; pic->sum = 0; for (i = w*h; i > 0; --i) pic->sum += *(data++); } /*! Create a new RrImagePic from some picture data. This makes a duplicate of the data. */ static RrImagePic* RrImagePicNew(gint w, gint h, RrPixel32 *data) { RrImagePic *pic; pic = g_slice_new(RrImagePic); RrImagePicInit(pic, w, h, g_memdup(data, w*h*sizeof(RrPixel32))); return pic; } /*! Destroy an RrImagePic. This frees the RrImagePic object and everything inside it. */ static void RrImagePicFree(RrImagePic *pic) { if (pic) { g_free(pic->data); g_slice_free(RrImagePic, pic); } } /************************************************************************ RrImageSet functions. RrImageSets hold a group of pictures, each of which represent the same logical image, but are physically different sizes. At any time, it may be discovered that two different RrImageSets are actually holding the same logical image. At that time, they would be merged. An RrImageSet holds both original images which come from an outside source, and resized images, which are generated when requests for a specific size are made, and kept around in case they are request again. There is a maximum number of resized images that an RrImageSet will keep around, however. Each RrImage points to a single RrImageSet, which keeps track of which RrImages point to it. If two RrImageSets are merged, then the RrImages which pointed to the two RrImageSets will all point at the resulting merged set. **************************************************************************/ /*! Free an RrImageSet and the stuff inside it. This should only occur when there are no more RrImages pointing to the set. */ static void RrImageSetFree(RrImageSet *self) { GSList *it; gint i; if (self) { g_assert(self->images == NULL); /* remove all names associated with this RrImageSet */ for (it = self->names; it; it = g_slist_next(it)) { g_hash_table_remove(self->cache->name_table, it->data); g_free(it->data); } g_slist_free(self->names); /* destroy the RrImagePic objects stored in the RrImageSet. they will be keys in the cache to RrImageSet objects, so remove them from the cache's pic_table as well. */ for (i = 0; i < self->n_original; ++i) { g_hash_table_remove(self->cache->pic_table, self->original[i]); RrImagePicFree(self->original[i]); } g_free(self->original); for (i = 0; i < self->n_resized; ++i) { g_hash_table_remove(self->cache->pic_table, self->resized[i]); RrImagePicFree(self->resized[i]); } g_free(self->resized); g_slice_free(RrImageSet, self); } } /*! Remove a picture from an RrImageSet as a given position. @param set The RrImageSet to remove the picture from. @param i The index of the picture in the RrImageSet in the list of originals (if @original is TRUE), or in the list of resized pictures (if @original is FALSE). @param original TRUE if the picture is an original, FALSE if it is a resized version of another picture in the RrImageSet. */ static void RrImageSetRemovePictureAt(RrImageSet *self, gint i, gboolean original) { RrImagePic ***list; gint *len; if (original) { list = &self->original; len = &self->n_original; } else { list = &self->resized; len = &self->n_resized; } g_assert(i >= 0 && i < *len); /* remove the picture data as a key in the cache */ g_hash_table_remove(self->cache->pic_table, (*list)[i]); /* free the picture being removed */ RrImagePicFree((*list)[i]); /* copy the elements after the removed one in the array forward one space and shrink the array down one size */ for (i = i+1; i < *len; ++i) (*list)[i-1] = (*list)[i]; --(*len); *list = g_renew(RrImagePic*, *list, *len); } /*! Add an RrImagePic to an RrImageSet. The RrImagePic should _not_ exist in the image cache already. Pictures are added to the front of the list, to maintain the ordering of newest to oldest. */ static void RrImageSetAddPicture(RrImageSet *self, RrImagePic *pic, gboolean original) { gint i; RrImagePic ***list; gint *len; g_assert(pic->width > 0 && pic->height > 0); g_assert(g_hash_table_lookup(self->cache->pic_table, pic) == NULL); /* choose which list in the RrImageSet to add the new picture to. */ if (original) { /* remove the resized picture of the same size if one exists */ for (i = 0; i < self->n_resized; ++i) if (self->resized[i]->width == pic->width || self->resized[i]->height == pic->height) { RrImageSetRemovePictureAt(self, i, FALSE); break; } list = &self->original; len = &self->n_original; } else { list = &self->resized; len = &self->n_resized; } /* grow the list by one spot, shift everything down one, and insert the new picture at the front of the list */ *list = g_renew(RrImagePic*, *list, ++*len); for (i = *len-1; i > 0; --i) (*list)[i] = (*list)[i-1]; (*list)[0] = pic; /* add the picture as a key to point to this image in the cache */ g_hash_table_insert(self->cache->pic_table, (*list)[0], self); /* #ifdef DEBUG g_debug("Adding %s picture to the cache:\n " "Image 0x%lx, w %d h %d Hash %u", (*list == self->original ? "ORIGINAL" : "RESIZED"), (gulong)self, pic->width, pic->height, RrImagePicHash(pic)); #endif */ } /*! Merges two image sets, destroying one, and returning the other. */ RrImageSet* RrImageSetMergeSets(RrImageSet *b, RrImageSet *a) { gint a_i, b_i, merged_i; RrImagePic **original, **resized; gint n_original, n_resized, tmp; GSList *it; gint max_resized; if (!a) return b; if (!b) return a; if (a == b) return b; /* the original and resized picture lists in an RrImageSet are kept ordered as newest to oldest. we don't have timestamps for them, so we cannot preserve this in the merged RrImageSet exactly. a decent approximation, i think, is to add them in alternating order (one from a, one from b, repeat). this way, the newest from each will be near the front at least, and in the resized list, when we drop an old picture, we will not always only drop from a or b only, but from each of them equally (or from whichever has more resized pictures. */ g_assert(b->cache == a->cache); max_resized = a->cache->max_resized_saved; a_i = b_i = merged_i = 0; n_original = a->n_original + b->n_original; original = g_new(RrImagePic*, n_original); while (merged_i < n_original) { if (a_i < a->n_original) original[merged_i++] = a->original[a_i++]; if (b_i < b->n_original) original[merged_i++] = b->original[b_i++]; } a_i = b_i = merged_i = 0; n_resized = MIN(max_resized, a->n_resized + b->n_resized); resized = g_new(RrImagePic*, n_resized); while (merged_i < n_resized) { if (a_i < a->n_resized) resized[merged_i++] = a->resized[a_i++]; if (b_i < b->n_resized && merged_i < n_resized) resized[merged_i++] = b->resized[b_i++]; } /* if there are any RrImagePic objects left over in a->resized or b->resized, they need to be disposed of, and removed from the cache. updates the size of the list, as we want to remember which pointers were merged from which list (and don't want to remember the ones we did not merge and have freed). */ tmp = a_i; for (; a_i < a->n_resized; ++a_i) { g_hash_table_remove(a->cache->pic_table, a->resized[a_i]); RrImagePicFree(a->resized[a_i]); } a->n_resized = tmp; tmp = b_i; for (; b_i < b->n_resized; ++b_i) { g_hash_table_remove(a->cache->pic_table, b->resized[b_i]); RrImagePicFree(b->resized[b_i]); } b->n_resized = tmp; /* we will use the a object as the merge destination, so things in b will be moving. the cache's name_table will point to b for all the names in b->names, so these need to be updated to point at a instead. also, the cache's pic_table will point to b for all the pictures in b, so these need to be updated to point at a as well. any RrImage objects that were using b should now use a instead. the names and images will be all moved into a, and the merged picture lists will be placed in a. the pictures in a and b are moved to new arrays, so the arrays in a and b need to be freed explicitly (the RrImageSetFree function would free the picture data too which we do not want here). then b can be freed. */ for (it = b->names; it; it = g_slist_next(it)) g_hash_table_insert(a->cache->name_table, it->data, a); for (b_i = 0; b_i < b->n_original; ++b_i) g_hash_table_insert(a->cache->pic_table, b->original[b_i], a); for (b_i = 0; b_i < b->n_resized; ++b_i) g_hash_table_insert(a->cache->pic_table, b->resized[b_i], a); for (it = b->images; it; it = g_slist_next(it)) ((RrImage*)it->data)->set = a; a->images = g_slist_concat(a->images, b->images); b->images = NULL; a->names = g_slist_concat(a->names, b->names); b->names = NULL; a->n_original = a->n_resized = 0; g_free(a->original); g_free(a->resized); a->original = a->resized = NULL; b->n_original = b->n_resized = 0; g_free(b->original); g_free(b->resized); b->original = b->resized = NULL; a->n_original = n_original; a->original = original; a->n_resized = n_resized; a->resized = resized; RrImageSetFree(b); return a; } static void RrImageSetAddName(RrImageSet *set, const gchar *name) { gchar *n; n = g_strdup(name); set->names = g_slist_prepend(set->names, n); /* add the new name to the hash table */ g_assert(g_hash_table_lookup(set->cache->name_table, n) == NULL); g_hash_table_insert(set->cache->name_table, n, set); } /************************************************************************ RrImage functions. **************************************************************************/ void RrImageRef(RrImage *self) { ++self->ref; } void RrImageUnref(RrImage *self) { if (self && --self->ref == 0) { RrImageSet *set; /* #ifdef DEBUG g_debug("Refcount to 0, removing ALL pictures from the cache:\n " "Image 0x%lx", (gulong)self); #endif */ if (self->destroy_func) self->destroy_func(self, self->destroy_data); set = self->set; set->images = g_slist_remove(set->images, self); /* free the set as well if there are no images pointing to it */ if (!set->images) RrImageSetFree(set); g_slice_free(RrImage, self); } } /*! Set function that will be called just before RrImage is destroyed. */ void RrImageSetDestroyFunc(RrImage *self, RrImageDestroyFunc func, gpointer data) { self->destroy_func = func; self->destroy_data = data; } void RrImageAddFromData(RrImage *self, RrPixel32 *data, gint w, gint h) { RrImagePic pic, *ppic; RrImageSet *set; g_return_if_fail(self != NULL); g_return_if_fail(data != NULL); g_return_if_fail(w > 0 && h > 0); RrImagePicInit(&pic, w, h, data); set = g_hash_table_lookup(self->set->cache->pic_table, &pic); if (set) self->set = RrImageSetMergeSets(self->set, set); else { ppic = RrImagePicNew(w, h, data); RrImageSetAddPicture(self->set, ppic, TRUE); } } RrImage* RrImageNewFromData(RrImageCache *cache, RrPixel32 *data, gint w, gint h) { RrImagePic pic, *ppic; RrImage *self; RrImageSet *set; g_return_val_if_fail(cache != NULL, NULL); g_return_val_if_fail(data != NULL, NULL); g_return_val_if_fail(w > 0 && h > 0, NULL); /* finds a picture in the cache, if it is already in there, and use the RrImageSet the picture lives in. */ RrImagePicInit(&pic, w, h, data); set = g_hash_table_lookup(cache->pic_table, &pic); if (set) { self = set->images->data; /* just grab any RrImage from the list */ RrImageRef(self); return self; } /* the image does not exist in any RrImageSet in the cache, so make a new RrImageSet, and a new RrImage that points to it, and place the new image inside the new RrImageSet */ self = g_slice_new0(RrImage); self->ref = 1; self->set = g_slice_new0(RrImageSet); self->set->cache = cache; self->set->images = g_slist_append(self->set->images, self); ppic = RrImagePicNew(w, h, data); RrImageSetAddPicture(self->set, ppic, TRUE); return self; } #if defined(USE_IMLIB2) typedef struct _ImlibLoader ImlibLoader; struct _ImlibLoader { Imlib_Image img; }; void DestroyImlibLoader(ImlibLoader *loader) { if (!loader) return; imlib_free_image(); g_slice_free(ImlibLoader, loader); } ImlibLoader* LoadWithImlib(gchar *path, RrPixel32 **pixel_data, gint *width, gint *height) { ImlibLoader *loader = g_slice_new0(ImlibLoader); if (!(loader->img = imlib_load_image(path))) { DestroyImlibLoader(loader); return NULL; } /* Get data and dimensions of the image. WARNING: This stuff is NOT threadsafe !! */ imlib_context_set_image(loader->img); *pixel_data = imlib_image_get_data_for_reading_only(); *width = imlib_image_get_width(); *height = imlib_image_get_height(); return loader; } #endif /* USE_IMLIB2 */ #if defined(USE_LIBRSVG) typedef struct _RsvgLoader RsvgLoader; struct _RsvgLoader { RsvgHandle *handle; cairo_surface_t *surface; RrPixel32 *pixel_data; }; void DestroyRsvgLoader(RsvgLoader *loader) { if (!loader) return; if (loader->pixel_data) g_free(loader->pixel_data); if (loader->surface) cairo_surface_destroy(loader->surface); if (loader->handle) g_object_unref(loader->handle); g_slice_free(RsvgLoader, loader); } RsvgLoader* LoadWithRsvg(gchar *path, RrPixel32 **pixel_data, gint *width, gint *height) { RsvgLoader *loader = g_slice_new0(RsvgLoader); if (!(loader->handle = rsvg_handle_new_from_file(path, NULL))) { DestroyRsvgLoader(loader); return NULL; } if (!rsvg_handle_close(loader->handle, NULL)) { DestroyRsvgLoader(loader); return NULL; } RsvgDimensionData dimension_data; rsvg_handle_get_dimensions(loader->handle, &dimension_data); *width = dimension_data.width; *height = dimension_data.height; loader->surface = cairo_image_surface_create( CAIRO_FORMAT_ARGB32, *width, *height); cairo_t* context = cairo_create(loader->surface); gboolean success = rsvg_handle_render_cairo(loader->handle, context); cairo_destroy(context); if (!success) { DestroyRsvgLoader(loader); return NULL; } loader->pixel_data = g_new(guint32, *width * *height); /* Cairo has its data in ARGB with premultiplied alpha, but RrPixel32 non-premultipled, so convert that. Also, RrPixel32 doesn't allow strides not equal to the width of the image. */ /* Verify that RrPixel32 has the same ordering as cairo. */ g_assert(RrDefaultAlphaOffset == 24); g_assert(RrDefaultRedOffset == 16); g_assert(RrDefaultGreenOffset == 8); g_assert(RrDefaultBlueOffset == 0); guint32 *out_row = loader->pixel_data; guint32 *in_row = (guint32*)cairo_image_surface_get_data(loader->surface); gint in_stride = cairo_image_surface_get_stride(loader->surface); gint y; for (y = 0; y < *height; ++y) { gint x; for (x = 0; x < *width; ++x) { guchar a = in_row[x] >> 24; guchar r = (in_row[x] >> 16) & 0xff; guchar g = (in_row[x] >> 8) & 0xff; guchar b = in_row[x] & 0xff; out_row[x] = ((r * 256 / (a + 1)) << RrDefaultRedOffset) + ((g * 256 / (a + 1)) << RrDefaultGreenOffset) + ((b * 256 / (a + 1)) << RrDefaultBlueOffset) + (a << RrDefaultAlphaOffset); } in_row += in_stride / 4; out_row += *width; } *pixel_data = loader->pixel_data; return loader; } #endif /* USE_LIBRSVG */ RrImage* RrImageNewFromName(RrImageCache *cache, const gchar *name) { RrImage *self; RrImageSet *set; gint w, h; RrPixel32 *data; gchar *path; gboolean loaded; #if defined(USE_IMLIB2) ImlibLoader *imlib_loader = NULL; #endif #if defined(USE_LIBRSVG) RsvgLoader *rsvg_loader = NULL; #endif g_return_val_if_fail(cache != NULL, NULL); g_return_val_if_fail(name != NULL, NULL); set = g_hash_table_lookup(cache->name_table, name); if (set) { self = set->images->data; RrImageRef(self); return self; } /* XXX find the path via freedesktop icon spec (use obt) ! */ path = g_strdup(name); loaded = FALSE; #if defined(USE_LIBRSVG) if (!loaded) { rsvg_loader = LoadWithRsvg(path, &data, &w, &h); loaded = !!rsvg_loader; } #endif #if defined(USE_IMLIB2) if (!loaded) { imlib_loader = LoadWithImlib(path, &data, &w, &h); loaded = !!imlib_loader; } #endif if (!loaded) { g_message("Cannot load image \"%s\" from file \"%s\"", name, path); g_free(path); #if defined(USE_LIBRSVG) DestroyRsvgLoader(rsvg_loader); #endif #if defined(USE_IMLIB2) DestroyImlibLoader(imlib_loader); #endif return NULL; } g_free(path); /* get an RrImage that contains an RrImageSet with this picture in it. the RrImage might be new, or reused if the picture was already in the cache. either way, we get back an RrImageSet (via the RrImage), and we must add the name to that RrImageSet. because of the check above, we know that there is no RrImageSet in the cache which already has the given name asosciated with it. */ self = RrImageNewFromData(cache, data, w, h); RrImageSetAddName(self->set, name); #if defined(USE_LIBRSVG) DestroyRsvgLoader(rsvg_loader); #endif #if defined(USE_IMLIB2) DestroyImlibLoader(imlib_loader); #endif return self; } /************************************************************************ Image drawing and resizing operations. **************************************************************************/ /*! Given a picture in RGBA format, of a specified size, resize it to the new requested size (but keep its aspect ratio). If the image does not need to be resized (it is already the right size) then this returns NULL. Otherwise it returns a newly allocated RrImagePic with the resized picture inside it @return Returns a newly allocated RrImagePic object with a new version of the image in the requested size (keeping aspect ratio). */ static RrImagePic* ResizeImage(RrPixel32 *src, gulong srcW, gulong srcH, gulong dstW, gulong dstH) { RrPixel32 *dst, *dststart; RrImagePic *pic; gulong dstX, dstY, srcX, srcY; gulong srcX1, srcX2, srcY1, srcY2; gulong ratioX, ratioY; gulong aspectW, aspectH; g_assert(srcW > 0); g_assert(srcH > 0); g_assert(dstW > 0); g_assert(dstH > 0); /* keep the aspect ratio */ aspectW = dstW; aspectH = (gint)(dstW * ((gdouble)srcH / srcW)); if (aspectH > dstH) { aspectH = dstH; aspectW = (gint)(dstH * ((gdouble)srcW / srcH)); } dstW = aspectW ? aspectW : 1; dstH = aspectH ? aspectH : 1; if (srcW == dstW && srcH == dstH) return NULL; /* no scaling needed! */ dststart = dst = g_new(RrPixel32, dstW * dstH); ratioX = (srcW << FRACTION) / dstW; ratioY = (srcH << FRACTION) / dstH; srcY2 = 0; for (dstY = 0; dstY < dstH; dstY++) { srcY1 = srcY2; srcY2 += ratioY; srcX2 = 0; for (dstX = 0; dstX < dstW; dstX++) { gulong red = 0, green = 0, blue = 0, alpha = 0; gulong portionX, portionY, portionXY, sumXY = 0; RrPixel32 pixel; srcX1 = srcX2; srcX2 += ratioX; for (srcY = srcY1; srcY < srcY2; srcY += (1UL << FRACTION)) { if (srcY == srcY1) { srcY = FLOOR(srcY); portionY = (1UL << FRACTION) - (srcY1 - srcY); if (portionY > srcY2 - srcY1) portionY = srcY2 - srcY1; } else if (srcY == FLOOR(srcY2)) portionY = srcY2 - srcY; else portionY = (1UL << FRACTION); for (srcX = srcX1; srcX < srcX2; srcX += (1UL << FRACTION)) { if (srcX == srcX1) { srcX = FLOOR(srcX); portionX = (1UL << FRACTION) - (srcX1 - srcX); if (portionX > srcX2 - srcX1) portionX = srcX2 - srcX1; } else if (srcX == FLOOR(srcX2)) portionX = srcX2 - srcX; else portionX = (1UL << FRACTION); portionXY = (portionX * portionY) >> FRACTION; sumXY += portionXY; pixel = *(src + (srcY >> FRACTION) * srcW + (srcX >> FRACTION)); red += ((pixel >> RrDefaultRedOffset) & 0xFF) * portionXY; green += ((pixel >> RrDefaultGreenOffset) & 0xFF) * portionXY; blue += ((pixel >> RrDefaultBlueOffset) & 0xFF) * portionXY; alpha += ((pixel >> RrDefaultAlphaOffset) & 0xFF) * portionXY; } } g_assert(sumXY != 0); red /= sumXY; green /= sumXY; blue /= sumXY; alpha /= sumXY; *dst++ = (red << RrDefaultRedOffset) | (green << RrDefaultGreenOffset) | (blue << RrDefaultBlueOffset) | (alpha << RrDefaultAlphaOffset); } } pic = g_slice_new(RrImagePic); RrImagePicInit(pic, dstW, dstH, dststart); return pic; } /*! This draws an RGBA picture into the target, within the rectangle specified by the area parameter. If the area's size differs from the source's then it will be centered within the rectangle */ void DrawRGBA(RrPixel32 *target, gint target_w, gint target_h, RrPixel32 *source, gint source_w, gint source_h, gint alpha, RrRect *area) { RrPixel32 *dest; gint col, num_pixels; gint dw, dh; g_assert(source_w <= area->width && source_h <= area->height); g_assert(area->x + area->width <= target_w); g_assert(area->y + area->height <= target_h); /* keep the aspect ratio */ dw = area->width; dh = (gint)(dw * ((gdouble)source_h / source_w)); if (dh > area->height) { dh = area->height; dw = (gint)(dh * ((gdouble)source_w / source_h)); } /* copy source -> dest, and apply the alpha channel. center the image if it is smaller than the area */ col = 0; num_pixels = dw * dh; dest = target + area->x + (area->width - dw) / 2 + (target_w * (area->y + (area->height - dh) / 2)); while (num_pixels-- > 0) { guchar a, r, g, b, bgr, bgg, bgb; /* apply the rgba's opacity as well */ a = ((*source >> RrDefaultAlphaOffset) * alpha) >> 8; r = *source >> RrDefaultRedOffset; g = *source >> RrDefaultGreenOffset; b = *source >> RrDefaultBlueOffset; /* background color */ bgr = *dest >> RrDefaultRedOffset; bgg = *dest >> RrDefaultGreenOffset; bgb = *dest >> RrDefaultBlueOffset; r = bgr + (((r - bgr) * a) >> 8); g = bgg + (((g - bgg) * a) >> 8); b = bgb + (((b - bgb) * a) >> 8); *dest = ((r << RrDefaultRedOffset) | (g << RrDefaultGreenOffset) | (b << RrDefaultBlueOffset)); dest++; source++; if (++col >= dw) { col = 0; dest += target_w - dw; } } } /*! Draw an RGBA texture into a target pixel buffer. */ void RrImageDrawRGBA(RrPixel32 *target, RrTextureRGBA *rgba, gint target_w, gint target_h, RrRect *area) { RrImagePic *scaled; scaled = ResizeImage(rgba->data, rgba->width, rgba->height, area->width, area->height); if (scaled) { #ifdef DEBUG g_warning("Scaling an RGBA! You should avoid this and just make " "it the right size yourself!"); #endif DrawRGBA(target, target_w, target_h, scaled->data, scaled->width, scaled->height, rgba->alpha, area); RrImagePicFree(scaled); } else DrawRGBA(target, target_w, target_h, rgba->data, rgba->width, rgba->height, rgba->alpha, area); } /*! Draw an RrImage texture into a target pixel buffer. If the RrImage does not contain a picture of the appropriate size, then one of its "original" pictures will be resized and used (and stored in the RrImage as a "resized" picture). */ void RrImageDrawImage(RrPixel32 *target, RrTextureImage *img, gint target_w, gint target_h, RrRect *area) { gint i, min_diff, min_i, min_aspect_diff, min_aspect_i; RrImage *self; RrImageSet *set; RrImagePic *pic; gboolean free_pic; self = img->image; set = self->set; pic = NULL; free_pic = FALSE; /* is there an original of this size? (only the larger of w or h has to be right cuz we maintain aspect ratios) */ for (i = 0; i < set->n_original; ++i) if ((set->original[i]->width >= set->original[i]->height && set->original[i]->width == area->width) || (set->original[i]->width <= set->original[i]->height && set->original[i]->height == area->height)) { pic = set->original[i]; break; } /* is there a resize of this size? */ for (i = 0; i < set->n_resized; ++i) if ((set->resized[i]->width >= set->resized[i]->height && set->resized[i]->width == area->width) || (set->resized[i]->width <= set->resized[i]->height && set->resized[i]->height == area->height)) { gint j; RrImagePic *saved; /* save the selected one */ saved = set->resized[i]; /* shift all the others down */ for (j = i; j > 0; --j) set->resized[j] = set->resized[j-1]; /* and move the selected one to the top of the list */ set->resized[0] = saved; pic = set->resized[0]; break; } if (!pic) { gdouble aspect; RrImageSet *cache_set; /* find an original with a close size */ min_diff = min_aspect_diff = -1; min_i = min_aspect_i = 0; aspect = ((gdouble)area->width) / area->height; for (i = 0; i < set->n_original; ++i) { gint diff; gint wdiff, hdiff; gdouble myasp; /* our size difference metric.. */ wdiff = set->original[i]->width - area->width; if (wdiff < 0) wdiff *= 2; /* prefer scaling down than up */ hdiff = set->original[i]->height - area->height; if (hdiff < 0) hdiff *= 2; /* prefer scaling down than up */ diff = (wdiff * wdiff) + (hdiff * hdiff); /* find the smallest difference */ if (min_diff < 0 || diff < min_diff) { min_diff = diff; min_i = i; } /* and also find the smallest difference with the same aspect ratio (and prefer this one) */ myasp = ((gdouble)set->original[i]->width) / set->original[i]->height; if (ABS(aspect - myasp) < 0.0000001 && (min_aspect_diff < 0 || diff < min_aspect_diff)) { min_aspect_diff = diff; min_aspect_i = i; } } /* use the aspect ratio correct source if there is one */ if (min_aspect_i >= 0) min_i = min_aspect_i; /* resize the original to the given area */ pic = ResizeImage(set->original[min_i]->data, set->original[min_i]->width, set->original[min_i]->height, area->width, area->height); /* is it already in the cache ? */ cache_set = g_hash_table_lookup(set->cache->pic_table, pic); if (cache_set) { /* merge this set with the one found in the cache - they are apparently the same image ! then next time we won't have to do this resizing, we will use the cache_set's pic instead. */ set = RrImageSetMergeSets(set, cache_set); free_pic = TRUE; } else { /* add the resized image to the image, as the first in the resized list */ while (set->n_resized >= set->cache->max_resized_saved) /* remove the last one (last used one) to make space for adding our resized picture */ RrImageSetRemovePictureAt(set, set->n_resized-1, FALSE); if (set->cache->max_resized_saved) /* add it to the resized list */ RrImageSetAddPicture(set, pic, FALSE); else free_pic = TRUE; /* don't leak mem! */ } } /* The RrImageSet may have changed if we merged it with another, so the RrImage object needs to be updated to use the new merged RrImageSet. */ self->set = set; g_assert(pic != NULL); DrawRGBA(target, target_w, target_h, pic->data, pic->width, pic->height, img->alpha, area); if (free_pic) RrImagePicFree(pic); } openbox-3.6.1/obrender/imagecache.h0000644000175300001440000000425012426440016014132 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- imagecache.h for the Openbox window manager Copyright (c) 2008 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __imagecache_h #define __imagecache_h #include struct _RrImagePic; guint RrImagePicHash(const struct _RrImagePic *p); /*! Create a new image cache. An image cache is basically a hash table to look up RrImages. Each RrImage in the cache may contain one or more Pictures, that is one or more actual copies of image data at various sizes. For eg, for a window, all of its various icons are loaded into the same RrImage. When an RrImage is drawn and a picture inside it needs to be resized, that is also saved within the RrImage. For each picture that an RrImage has, the picture is hashed and that is used as a key to find the RrImage. So, given any picture in any RrImage in the cache, if you hash it, you will find the RrImage. */ struct _RrImageCache { gint ref; /*! When an original picture is resized for an RrImage, the resized picture is saved in the RrImage. This specifies how many pictures should be saved at a time. When this is exceeded, the least recently used "resized" picture is deleted. */ gint max_resized_saved; /*! A hash table of image sets in the cache that don't have a file name attached to them, with their key being a hash of the contents of the image. */ GHashTable *pic_table; /*! Used to find out if an image file has already been loaded into an image set. Provides a quick file_name -> RrImageSet lookup. */ GHashTable *name_table; }; #endif openbox-3.6.1/obrender/imagecache.c0000644000175300001440000000777612426440016014145 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- imagecache.c for the Openbox window manager Copyright (c) 2008 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "render.h" #include "imagecache.h" #include "image.h" static gboolean RrImagePicEqual(const RrImagePic *p1, const RrImagePic *p2); RrImageCache* RrImageCacheNew(gint max_resized_saved) { RrImageCache *self; g_assert(max_resized_saved >= 0); self = g_slice_new(RrImageCache); self->ref = 1; self->max_resized_saved = max_resized_saved; self->pic_table = g_hash_table_new((GHashFunc)RrImagePicHash, (GEqualFunc)RrImagePicEqual); self->name_table = g_hash_table_new(g_str_hash, g_str_equal); return self; } void RrImageCacheRef(RrImageCache *self) { ++self->ref; } void RrImageCacheUnref(RrImageCache *self) { if (self && --self->ref == 0) { g_assert(g_hash_table_size(self->pic_table) == 0); g_hash_table_unref(self->pic_table); self->pic_table = NULL; g_assert(g_hash_table_size(self->name_table) == 0); g_hash_table_destroy(self->name_table); self->name_table = NULL; g_slice_free(RrImageCache, self); } } #define hashsize(n) ((RrPixel32)1<<(n)) #define hashmask(n) (hashsize(n)-1) #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) /* mix -- mix 3 32-bit values reversibly. */ #define mix(a,b,c) \ { \ a -= c; a ^= rot(c, 4); c += b; \ b -= a; b ^= rot(a, 6); a += c; \ c -= b; c ^= rot(b, 8); b += a; \ a -= c; a ^= rot(c,16); c += b; \ b -= a; b ^= rot(a,19); a += c; \ c -= b; c ^= rot(b, 4); b += a; \ } /* final -- final mixing of 3 32-bit values (a,b,c) into c */ #define final(a,b,c) \ { \ c ^= b; c -= rot(b,14); \ a ^= c; a -= rot(c,11); \ b ^= a; b -= rot(a,25); \ c ^= b; c -= rot(b,16); \ a ^= c; a -= rot(c,4); \ b ^= a; b -= rot(a,14); \ c ^= b; c -= rot(b,24); \ } /* This is a fast, reversable hash function called "lookup3", found here: http://burtleburtle.net/bob/c/lookup3.c, by Bob Jenkins This hashing algorithm is "reversible", that is, not cryptographically secure at all. But we don't care about that, we just want something to tell when images are the same or different relatively quickly. */ guint32 hashword(const guint32 *key, gint length, guint32 initval) { guint32 a,b,c; /* Set up the internal state */ a = b = c = 0xdeadbeef + (((guint32)length)<<2) + initval; /* handle most of the key */ while (length > 3) { a += key[0]; b += key[1]; c += key[2]; mix(a,b,c); length -= 3; key += 3; } /* handle the last 3 guint32's */ switch(length) /* all the case statements fall through */ { case 3: c+=key[2]; case 2: b+=key[1]; case 1: a+=key[0]; final(a,b,c); case 0: /* case 0: nothing left to add */ break; } /* report the result */ return c; } /*! This is some arbitrary initial value for the hashing function. It's constant so that you get the same result from the same data each time. */ #define HASH_INITVAL 0xf00d guint RrImagePicHash(const RrImagePic *p) { return hashword(p->data, p->width * p->height, HASH_INITVAL); } static gboolean RrImagePicEqual(const RrImagePic *p1, const RrImagePic *p2) { return p1->width == p2->width && p1->height == p2->height && p1->sum == p2->sum; } openbox-3.6.1/obrender/instance.c0000644000175300001440000002154612426440016013672 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- instance.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "render.h" #include "instance.h" static RrInstance *definst = NULL; static void RrTrueColorSetup (RrInstance *inst); static void RrPseudoColorSetup (RrInstance *inst); #ifdef DEBUG #include "color.h" #endif static void dest(gpointer data) { #ifdef DEBUG RrColor *c = data; if (c->refcount > 0) g_error("color %d (%d,%d,%d) in hash table with %d " "leftover references", c->id, RrColorRed(c), RrColorGreen(c), RrColorBlue(c), c->refcount); #endif } #if 0 static void f(gpointer key, gpointer value, gpointer n) { RrColor *c = value; if (c->id == *(gint*)n) g_message("color %d has %d references", c->id, c->refcount); } void print_refs(gint id) { g_hash_table_foreach(RrColorHash(definst), f, &id); } #endif RrInstance* RrInstanceNew (Display *display, gint screen) { definst = g_slice_new(RrInstance); definst->display = display; definst->screen = screen; definst->depth = DefaultDepth(display, screen); definst->visual = DefaultVisual(display, screen); definst->colormap = DefaultColormap(display, screen); definst->pango = pango_xft_get_context(display, screen); definst->pseudo_colors = NULL; definst->color_hash = g_hash_table_new_full(g_int_hash, g_int_equal, NULL, dest); switch (definst->visual->class) { case TrueColor: RrTrueColorSetup(definst); break; case PseudoColor: case StaticColor: case GrayScale: case StaticGray: RrPseudoColorSetup(definst); break; default: g_critical("Unsupported visual class"); g_free (definst); return definst = NULL; } return definst; } static void RrTrueColorSetup (RrInstance *inst) { gulong red_mask, green_mask, blue_mask; XImage *timage = NULL; timage = XCreateImage(inst->display, inst->visual, inst->depth, ZPixmap, 0, NULL, 1, 1, 32, 0); g_assert(timage != NULL); /* find the offsets for each color in the visual's masks */ inst->red_mask = red_mask = timage->red_mask; inst->green_mask = green_mask = timage->green_mask; inst->blue_mask = blue_mask = timage->blue_mask; inst->red_offset = 0; inst->green_offset = 0; inst->blue_offset = 0; while (! (red_mask & 1)) { inst->red_offset++; red_mask >>= 1; } while (! (green_mask & 1)) { inst->green_offset++; green_mask >>= 1; } while (! (blue_mask & 1)) { inst->blue_offset++; blue_mask >>= 1; } inst->red_shift = inst->green_shift = inst->blue_shift = 8; while (red_mask) { red_mask >>= 1; inst->red_shift--; } while (green_mask) { green_mask >>= 1; inst->green_shift--; } while (blue_mask) { blue_mask >>= 1; inst->blue_shift--; } XFree(timage); } #define RrPseudoNcolors(inst) (1 << (inst->pseudo_bpc * 3)) static void RrPseudoColorSetup (RrInstance *inst) { XColor icolors[256]; gint tr, tg, tb, n, r, g, b, i, incolors, ii; gulong dev; gint cpc, _ncolors; /* determine the number of colors and the bits-per-color */ inst->pseudo_bpc = 2; /* XXX THIS SHOULD BE A USER OPTION */ g_assert(inst->pseudo_bpc >= 1); _ncolors = RrPseudoNcolors(inst); if (_ncolors > 1 << inst->depth) { g_message("Invalid colormap size. Resizing."); inst->pseudo_bpc = 1 << (inst->depth/3) >> 3; _ncolors = 1 << (inst->pseudo_bpc * 3); } /* build a color cube */ inst->pseudo_colors = g_new(XColor, _ncolors); cpc = 1 << inst->pseudo_bpc; /* colors per channel */ for (n = 0, r = 0; r < cpc; r++) for (g = 0; g < cpc; g++) for (b = 0; b < cpc; b++, n++) { tr = (gint)(((gfloat)(r)/(gfloat)(cpc-1)) * 0xFF); tg = (gint)(((gfloat)(g)/(gfloat)(cpc-1)) * 0xFF); tb = (gint)(((gfloat)(b)/(gfloat)(cpc-1)) * 0xFF); inst->pseudo_colors[n].red = tr | tr << 8; inst->pseudo_colors[n].green = tg | tg << 8; inst->pseudo_colors[n].blue = tb | tb << 8; /* used to track allocation */ inst->pseudo_colors[n].flags = DoRed|DoGreen|DoBlue; } /* allocate the colors */ for (i = 0; i < _ncolors; i++) if (!XAllocColor(inst->display, inst->colormap, &inst->pseudo_colors[i])) inst->pseudo_colors[i].flags = 0; /* mark it as unallocated */ /* try allocate any colors that failed allocation above */ /* get the allocated values from the X server (only the first 256 XXX why!?) */ incolors = (((1 << inst->depth) > 256) ? 256 : (1 << inst->depth)); for (i = 0; i < incolors; i++) icolors[i].pixel = i; XQueryColors(inst->display, inst->colormap, icolors, incolors); /* try match unallocated ones */ for (i = 0; i < _ncolors; i++) { if (!inst->pseudo_colors[i].flags) { /* if it wasn't allocated... */ gulong closest = 0xffffffff, close = 0; for (ii = 0; ii < incolors; ii++) { /* find deviations */ r = (inst->pseudo_colors[i].red - icolors[ii].red) & 0xff; g = (inst->pseudo_colors[i].green - icolors[ii].green) & 0xff; b = (inst->pseudo_colors[i].blue - icolors[ii].blue) & 0xff; /* find a weighted absolute deviation */ dev = (r * r) + (g * g) + (b * b); if (dev < closest) { closest = dev; close = ii; } } inst->pseudo_colors[i].red = icolors[close].red; inst->pseudo_colors[i].green = icolors[close].green; inst->pseudo_colors[i].blue = icolors[close].blue; inst->pseudo_colors[i].pixel = icolors[close].pixel; /* try alloc this closest color, it had better succeed! */ if (XAllocColor(inst->display, inst->colormap, &inst->pseudo_colors[i])) /* mark as alloced */ inst->pseudo_colors[i].flags = DoRed|DoGreen|DoBlue; else /* wtf has gone wrong, its already alloced for chissake! */ g_assert_not_reached(); } } } void RrInstanceFree (RrInstance *inst) { if (inst) { if (inst == definst) definst = NULL; g_free(inst->pseudo_colors); g_hash_table_destroy(inst->color_hash); g_object_unref(inst->pango); g_slice_free(RrInstance, inst); } } Display* RrDisplay (const RrInstance *inst) { return (inst ? inst : definst)->display; } gint RrScreen (const RrInstance *inst) { return (inst ? inst : definst)->screen; } Window RrRootWindow (const RrInstance *inst) { return RootWindow (RrDisplay (inst), RrScreen (inst)); } Visual *RrVisual (const RrInstance *inst) { return (inst ? inst : definst)->visual; } gint RrDepth (const RrInstance *inst) { return (inst ? inst : definst)->depth; } Colormap RrColormap (const RrInstance *inst) { return (inst ? inst : definst)->colormap; } gint RrRedOffset (const RrInstance *inst) { return (inst ? inst : definst)->red_offset; } gint RrGreenOffset (const RrInstance *inst) { return (inst ? inst : definst)->green_offset; } gint RrBlueOffset (const RrInstance *inst) { return (inst ? inst : definst)->blue_offset; } gint RrRedShift (const RrInstance *inst) { return (inst ? inst : definst)->red_shift; } gint RrGreenShift (const RrInstance *inst) { return (inst ? inst : definst)->green_shift; } gint RrBlueShift (const RrInstance *inst) { return (inst ? inst : definst)->blue_shift; } gint RrRedMask (const RrInstance *inst) { return (inst ? inst : definst)->red_mask; } gint RrGreenMask (const RrInstance *inst) { return (inst ? inst : definst)->green_mask; } gint RrBlueMask (const RrInstance *inst) { return (inst ? inst : definst)->blue_mask; } guint RrPseudoBPC (const RrInstance *inst) { return (inst ? inst : definst)->pseudo_bpc; } XColor *RrPseudoColors (const RrInstance *inst) { return (inst ? inst : definst)->pseudo_colors; } GHashTable* RrColorHash (const RrInstance *inst) { return (inst ? inst : definst)->color_hash; } openbox-3.6.1/obrender/mask.c0000644000175300001440000000527412426440016013021 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- mask.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #include "render.h" #include "color.h" #include "mask.h" RrPixmapMask *RrPixmapMaskNew(const RrInstance *inst, gint w, gint h, const gchar *data) { RrPixmapMask *m = g_slice_new(RrPixmapMask); m->inst = inst; m->width = w; m->height = h; /* round up to nearest byte */ m->data = g_memdup(data, (w + 7) / 8 * h); m->mask = XCreateBitmapFromData(RrDisplay(inst), RrRootWindow(inst), data, w, h); return m; } void RrPixmapMaskFree(RrPixmapMask *m) { if (m) { XFreePixmap(RrDisplay(m->inst), m->mask); g_free(m->data); g_slice_free(RrPixmapMask, m); } } void RrPixmapMaskDraw(Pixmap p, const RrTextureMask *m, const RrRect *area) { gint x, y; if (m->mask == NULL) return; /* no mask given */ /* set the clip region */ x = area->x + (area->width - m->mask->width) / 2; y = area->y + (area->height - m->mask->height) / 2; if (x < 0) x = 0; if (y < 0) y = 0; XSetClipMask(RrDisplay(m->mask->inst), RrColorGC(m->color), m->mask->mask); XSetClipOrigin(RrDisplay(m->mask->inst), RrColorGC(m->color), x, y); /* fill in the clipped region */ XFillRectangle(RrDisplay(m->mask->inst), p, RrColorGC(m->color), x, y, x + m->mask->width, y + m->mask->height); /* unset the clip region */ XSetClipMask(RrDisplay(m->mask->inst), RrColorGC(m->color), None); XSetClipOrigin(RrDisplay(m->mask->inst), RrColorGC(m->color), 0, 0); } RrPixmapMask *RrPixmapMaskCopy(const RrPixmapMask *src) { RrPixmapMask *m = g_slice_new(RrPixmapMask); m->inst = src->inst; m->width = src->width; m->height = src->height; /* round up to nearest byte */ m->data = g_memdup(src->data, (src->width + 7) / 8 * src->height); m->mask = XCreateBitmapFromData(RrDisplay(m->inst), RrRootWindow(m->inst), m->data, m->width, m->height); return m; } openbox-3.6.1/obrender/render.c0000644000175300001440000004354712426440016013352 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- render.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #include "render.h" #include "gradient.h" #include "font.h" #include "mask.h" #include "color.h" #include "image.h" #include "theme.h" #include #include #include #include #ifdef HAVE_STDLIB_H # include #endif static void pixel_data_to_pixmap(RrAppearance *l, gint x, gint y, gint w, gint h); Pixmap RrPaintPixmap(RrAppearance *a, gint w, gint h) { gint i, transferred = 0, force_transfer = 0; Pixmap oldp = None; RrRect tarea; /* area in which to draw textures */ gboolean resized; if (w <= 0 || h <= 0) return None; if (a->surface.parentx < 0 || a->surface.parenty < 0) { /* ob_debug("Invalid parent co-ordinates\n"); */ return None; } if (a->surface.grad == RR_SURFACE_PARENTREL && (a->surface.parentx >= a->surface.parent->w || a->surface.parenty >= a->surface.parent->h)) { return None; } resized = (a->w != w || a->h != h); oldp = a->pixmap; /* save to free after changing the visible pixmap */ a->pixmap = XCreatePixmap(RrDisplay(a->inst), RrRootWindow(a->inst), w, h, RrDepth(a->inst)); g_assert(a->pixmap != None); a->w = w; a->h = h; if (a->xftdraw != NULL) XftDrawDestroy(a->xftdraw); a->xftdraw = XftDrawCreate(RrDisplay(a->inst), a->pixmap, RrVisual(a->inst), RrColormap(a->inst)); g_assert(a->xftdraw != NULL); if (resized) { g_free(a->surface.pixel_data); a->surface.pixel_data = g_new(RrPixel32, w * h); } RrRender(a, w, h); { gint l, t, r, b; RrMargins(a, &l, &t, &r, &b); RECT_SET(tarea, l, t, w - l - r, h - t - b); } for (i = 0; i < a->textures; i++) { switch (a->texture[i].type) { case RR_TEXTURE_NONE: break; case RR_TEXTURE_TEXT: if (!transferred) { transferred = 1; if ((a->surface.grad != RR_SURFACE_SOLID) || (a->surface.interlaced)) pixel_data_to_pixmap(a, 0, 0, w, h); } if (a->xftdraw == NULL) { a->xftdraw = XftDrawCreate(RrDisplay(a->inst), a->pixmap, RrVisual(a->inst), RrColormap(a->inst)); } RrFontDraw(a->xftdraw, &a->texture[i].data.text, &tarea); break; case RR_TEXTURE_LINE_ART: if (!transferred) { transferred = 1; if ((a->surface.grad != RR_SURFACE_SOLID) || (a->surface.interlaced)) pixel_data_to_pixmap(a, 0, 0, w, h); } XDrawLine(RrDisplay(a->inst), a->pixmap, RrColorGC(a->texture[i].data.lineart.color), a->texture[i].data.lineart.x1, a->texture[i].data.lineart.y1, a->texture[i].data.lineart.x2, a->texture[i].data.lineart.y2); break; case RR_TEXTURE_MASK: if (!transferred) { transferred = 1; if ((a->surface.grad != RR_SURFACE_SOLID) || (a->surface.interlaced)) pixel_data_to_pixmap(a, 0, 0, w, h); } RrPixmapMaskDraw(a->pixmap, &a->texture[i].data.mask, &tarea); break; case RR_TEXTURE_IMAGE: g_assert(!transferred); { RrRect narea = tarea; RrTextureImage *img = &a->texture[i].data.image; narea.x += img->tx; narea.width -= img->tx; narea.y += img->ty; narea.height -= img->ty; if (img->twidth) narea.width = MIN(narea.width, img->twidth); if (img->theight) narea.height = MIN(narea.height, img->theight); RrImageDrawImage(a->surface.pixel_data, &a->texture[i].data.image, a->w, a->h, &narea); } force_transfer = 1; break; case RR_TEXTURE_RGBA: g_assert(!transferred); { RrRect narea = tarea; RrTextureRGBA *rgb = &a->texture[i].data.rgba; narea.x += rgb->tx; narea.width -= rgb->tx; narea.y += rgb->ty; narea.height -= rgb->ty; if (rgb->twidth) narea.width = MIN(narea.width, rgb->twidth); if (rgb->theight) narea.height = MIN(narea.height, rgb->theight); RrImageDrawRGBA(a->surface.pixel_data, &a->texture[i].data.rgba, a->w, a->h, &narea); } force_transfer = 1; break; case RR_TEXTURE_NUM_TYPES: g_assert_not_reached(); } } if (!transferred) { transferred = 1; if ((a->surface.grad != RR_SURFACE_SOLID) || (a->surface.interlaced) || force_transfer) { pixel_data_to_pixmap(a, 0, 0, w, h); } } return oldp; } void RrPaint(RrAppearance *a, Window win, gint w, gint h) { Pixmap oldp; oldp = RrPaintPixmap(a, w, h); XSetWindowBackgroundPixmap(RrDisplay(a->inst), win, a->pixmap); XClearWindow(RrDisplay(a->inst), win); /* free this after changing the visible pixmap */ if (oldp) XFreePixmap(RrDisplay(a->inst), oldp); } RrAppearance *RrAppearanceNew(const RrInstance *inst, gint numtex) { RrAppearance *out; out = g_slice_new0(RrAppearance); out->inst = inst; out->textures = numtex; out->surface.bevel_light_adjust = 128; out->surface.bevel_dark_adjust = 64; if (numtex) out->texture = g_new0(RrTexture, numtex); return out; } void RrAppearanceRemoveTextures(RrAppearance *a) { g_free(a->texture); a->textures = 0; } void RrAppearanceAddTextures(RrAppearance *a, gint numtex) { g_assert(a->textures == 0); a->textures = numtex; if (numtex) a->texture = g_new0(RrTexture, numtex); } void RrAppearanceClearTextures(RrAppearance *a) { memset(a->texture, 0, a->textures * sizeof(RrTexture)); } /* deep copy of orig, means reset ref to 1 on copy * and copy each thing memwise. */ RrAppearance *RrAppearanceCopy(RrAppearance *orig) { RrSurface *spo, *spc; RrAppearance *copy = g_slice_new(RrAppearance); copy->inst = orig->inst; spo = &(orig->surface); spc = &(copy->surface); spc->grad = spo->grad; spc->relief = spo->relief; spc->bevel = spo->bevel; if (spo->primary != NULL) spc->primary = RrColorNew(copy->inst, spo->primary->r, spo->primary->g, spo->primary->b); else spc->primary = NULL; if (spo->secondary != NULL) spc->secondary = RrColorNew(copy->inst, spo->secondary->r, spo->secondary->g, spo->secondary->b); else spc->secondary = NULL; if (spo->border_color != NULL) spc->border_color = RrColorNew(copy->inst, spo->border_color->r, spo->border_color->g, spo->border_color->b); else spc->border_color = NULL; if (spo->interlace_color != NULL) spc->interlace_color = RrColorNew(copy->inst, spo->interlace_color->r, spo->interlace_color->g, spo->interlace_color->b); else spc->interlace_color = NULL; if (spo->bevel_dark != NULL) spc->bevel_dark = RrColorNew(copy->inst, spo->bevel_dark->r, spo->bevel_dark->g, spo->bevel_dark->b); else spc->bevel_dark = NULL; if (spo->bevel_light != NULL) spc->bevel_light = RrColorNew(copy->inst, spo->bevel_light->r, spo->bevel_light->g, spo->bevel_light->b); else spc->bevel_light = NULL; if (spo->split_primary != NULL) spc->split_primary = RrColorNew(copy->inst, spo->split_primary->r, spo->split_primary->g, spo->split_primary->b); else spc->split_primary = NULL; if (spo->split_secondary != NULL) spc->split_secondary = RrColorNew(copy->inst, spo->split_secondary->r, spo->split_secondary->g, spo->split_secondary->b); else spc->split_secondary = NULL; spc->interlaced = spo->interlaced; spc->bevel_light_adjust = spo->bevel_light_adjust; spc->bevel_dark_adjust = spo->bevel_dark_adjust; spc->border = spo->border; spc->parent = NULL; spc->parentx = spc->parenty = 0; spc->pixel_data = NULL; copy->textures = orig->textures; copy->texture = g_memdup(orig->texture, orig->textures * sizeof(RrTexture)); copy->pixmap = None; copy->xftdraw = NULL; copy->w = copy->h = 0; return copy; } /* now decrements ref counter, and frees only if ref <= 0 */ void RrAppearanceFree(RrAppearance *a) { if (a) { RrSurface *p; if (a->pixmap != None) XFreePixmap(RrDisplay(a->inst), a->pixmap); if (a->xftdraw != NULL) XftDrawDestroy(a->xftdraw); if (a->textures) g_free(a->texture); p = &a->surface; RrColorFree(p->primary); RrColorFree(p->secondary); RrColorFree(p->border_color); RrColorFree(p->interlace_color); RrColorFree(p->bevel_dark); RrColorFree(p->bevel_light); RrColorFree(p->split_primary); RrColorFree(p->split_secondary); g_free(p->pixel_data); p->pixel_data = NULL; g_slice_free(RrAppearance, a); } } static void pixel_data_to_pixmap(RrAppearance *l, gint x, gint y, gint w, gint h) { RrPixel32 *in, *scratch; Pixmap out; XImage *im = NULL; im = XCreateImage(RrDisplay(l->inst), RrVisual(l->inst), RrDepth(l->inst), ZPixmap, 0, NULL, w, h, 32, 0); g_assert(im != NULL); in = l->surface.pixel_data; out = l->pixmap; /* this malloc is a complete waste of time on normal 32bpp as reduce_depth just sets im->data = data and returns */ scratch = g_new(RrPixel32, im->width * im->height); im->data = (gchar*) scratch; RrReduceDepth(l->inst, in, im); XPutImage(RrDisplay(l->inst), out, DefaultGC(RrDisplay(l->inst), RrScreen(l->inst)), im, 0, 0, x, y, w, h); im->data = NULL; XDestroyImage(im); g_free(scratch); } void RrMargins (RrAppearance *a, gint *l, gint *t, gint *r, gint *b) { *l = *t = *r = *b = 0; if (a->surface.grad != RR_SURFACE_PARENTREL) { if (a->surface.relief != RR_RELIEF_FLAT) { switch (a->surface.bevel) { case RR_BEVEL_1: *l = *t = *r = *b = 1; break; case RR_BEVEL_2: *l = *t = *r = *b = 2; break; case RR_BEVEL_NUM_TYPES: g_assert_not_reached(); } } else if (a->surface.border) { *l = *t = *r = *b = 1; } } } void RrMinSize(RrAppearance *a, gint *w, gint *h) { *w = RrMinWidth(a); *h = RrMinHeight(a); } gint RrMinWidth(RrAppearance *a) { gint i; RrSize *m; gint l, t, r, b; gint w = 0; RrMargins(a, &l, &t, &r, &b); for (i = 0; i < a->textures; ++i) { switch (a->texture[i].type) { case RR_TEXTURE_NONE: break; case RR_TEXTURE_MASK: w = MAX(w, a->texture[i].data.mask.mask->width); break; case RR_TEXTURE_TEXT: m = RrFontMeasureString(a->texture[i].data.text.font, a->texture[i].data.text.string, a->texture[i].data.text.shadow_offset_x, a->texture[i].data.text.shadow_offset_y, a->texture[i].data.text.flow, a->texture[i].data.text.maxwidth); w = MAX(w, m->width); g_slice_free(RrSize, m); break; case RR_TEXTURE_RGBA: w += MAX(w, a->texture[i].data.rgba.width); break; case RR_TEXTURE_IMAGE: /* images resize so they don't contribute anything to the min */ break; case RR_TEXTURE_LINE_ART: w = MAX(w, MAX(a->texture[i].data.lineart.x1 - l - r, a->texture[i].data.lineart.x2 - l - r)); break; case RR_TEXTURE_NUM_TYPES: g_assert_not_reached(); } } w += l + r; if (w < 1) w = 1; return w; } gint RrMinHeight(RrAppearance *a) { gint i; gint l, t, r, b; RrSize *m; gint h = 0; RrMargins(a, &l, &t, &r, &b); for (i = 0; i < a->textures; ++i) { switch (a->texture[i].type) { case RR_TEXTURE_NONE: break; case RR_TEXTURE_MASK: h = MAX(h, a->texture[i].data.mask.mask->height); break; case RR_TEXTURE_TEXT: if (a->texture[i].data.text.flow) { g_assert(a->texture[i].data.text.string != NULL); m = RrFontMeasureString (a->texture[i].data.text.font, a->texture[i].data.text.string, a->texture[i].data.text.shadow_offset_x, a->texture[i].data.text.shadow_offset_y, a->texture[i].data.text.flow, a->texture[i].data.text.maxwidth); h += MAX(h, m->height); g_slice_free(RrSize, m); } else h += MAX(h, RrFontHeight (a->texture[i].data.text.font, a->texture[i].data.text.shadow_offset_y)); break; case RR_TEXTURE_RGBA: h += MAX(h, a->texture[i].data.rgba.height); break; case RR_TEXTURE_IMAGE: /* images resize so they don't contribute anything to the min */ break; case RR_TEXTURE_LINE_ART: h = MAX(h, MAX(a->texture[i].data.lineart.y1 - t - b, a->texture[i].data.lineart.y2 - t - b)); break; case RR_TEXTURE_NUM_TYPES: g_assert_not_reached(); } } h += t + b; if (h < 1) h = 1; return h; } static void reverse_bits(gchar *c, gint n) { gint i; for (i = 0; i < n; i++, c++) *c = (((*c * 0x0802UL & 0x22110UL) | (*c * 0x8020UL & 0x88440UL)) * 0x10101UL) >> 16; } gboolean RrPixmapToRGBA(const RrInstance *inst, Pixmap pmap, Pixmap mask, gint *w, gint *h, RrPixel32 **data) { Window xr; gint xx, xy; guint pw, ph, mw, mh, xb, xd, i, x, y, di; XImage *xi, *xm = NULL; if (!XGetGeometry(RrDisplay(inst), pmap, &xr, &xx, &xy, &pw, &ph, &xb, &xd)) return FALSE; if (mask) { if (!XGetGeometry(RrDisplay(inst), mask, &xr, &xx, &xy, &mw, &mh, &xb, &xd)) return FALSE; if (pw != mw || ph != mh || xd != 1) return FALSE; } xi = XGetImage(RrDisplay(inst), pmap, 0, 0, pw, ph, 0xffffffff, ZPixmap); if (!xi) return FALSE; if (mask) { xm = XGetImage(RrDisplay(inst), mask, 0, 0, mw, mh, 0xffffffff, ZPixmap); if (!xm) { XDestroyImage(xi); return FALSE; } if ((xm->bits_per_pixel == 1) && (xm->bitmap_bit_order != LSBFirst)) reverse_bits(xm->data, xm->bytes_per_line * xm->height); } if ((xi->bits_per_pixel == 1) && (xi->bitmap_bit_order != LSBFirst)) reverse_bits(xi->data, xi->bytes_per_line * xi->height); *data = g_new(RrPixel32, pw * ph); RrIncreaseDepth(inst, *data, xi); if (mask) { /* apply transparency from the mask */ di = 0; for (i = 0, y = 0; y < ph; ++y) { for (x = 0; x < pw; ++x, ++i) { if (!((((unsigned)xm->data[di + x / 8]) >> (x % 8)) & 0x1)) (*data)[i] &= ~(0xff << RrDefaultAlphaOffset); } di += xm->bytes_per_line; } } *w = pw; *h = ph; XDestroyImage(xi); if (mask) XDestroyImage(xm); return TRUE; } openbox-3.6.1/obrender/theme.c0000644000175300001440000017355512426564611013210 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- theme.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "render.h" #include "color.h" #include "font.h" #include "mask.h" #include "theme.h" #include "icon.h" #include "obt/paths.h" #include #include #include #include #include struct fallbacks { RrAppearance *focused_disabled; RrAppearance *unfocused_disabled; RrAppearance *focused_hover; RrAppearance *unfocused_hover; RrAppearance *focused_unpressed; RrAppearance *focused_pressed; RrAppearance *unfocused_unpressed; RrAppearance *unfocused_pressed; RrAppearance *focused_hover_toggled; RrAppearance *unfocused_hover_toggled; RrAppearance *focused_unpressed_toggled; RrAppearance *focused_pressed_toggled; RrAppearance *unfocused_unpressed_toggled; RrAppearance *unfocused_pressed_toggled; }; static XrmDatabase loaddb(const gchar *name, gchar **path); static gboolean read_int(XrmDatabase db, const gchar *rname, gint *value); static gboolean read_string(XrmDatabase db, const gchar *rname, gchar **value); static gboolean read_color(XrmDatabase db, const RrInstance *inst, const gchar *rname, RrColor **value); static gboolean read_mask(const RrInstance *inst, const gchar *path, const gchar *maskname, RrPixmapMask **value); static gboolean read_appearance(XrmDatabase db, const RrInstance *inst, const gchar *rname, RrAppearance *value, gboolean allow_trans); static int parse_inline_number(const char *p); static RrPixel32* read_c_image(gint width, gint height, const guint8 *data); static void set_default_appearance(RrAppearance *a); static void read_button_styles(XrmDatabase db, const RrInstance *inst, gchar *path, const RrTheme *theme, RrButton *btn, const gchar *btnname, struct fallbacks *fbs, guchar *normal_mask, guchar *toggled_mask); static RrFont *get_font(RrFont *target, RrFont **default_font, const RrInstance *inst) { if (target) { RrFontRef(target); return target; } else { /* Only load the default font once */ if (*default_font) { RrFontRef(*default_font); } else { *default_font = RrFontOpenDefault(inst); } return *default_font; } } #define READ_INT(x_resstr, x_var, x_min, x_max, x_def) \ if (!read_int(db, x_resstr, & x_var) || \ x_var < x_min || x_var > x_max) \ x_var = x_def; #define READ_COLOR(x_resstr, x_var, x_def) \ if (!read_color(db, inst, x_resstr, & x_var)) \ x_var = x_def; #define READ_COLOR_(x_res1, x_res2, x_var, x_def) \ if (!read_color(db, inst, x_res1, & x_var) && \ !read_color(db, inst, x_res2, & x_var)) \ x_var = x_def; #define READ_MASK_COPY(x_file, x_var, x_copysrc) \ if (!read_mask(inst, path, x_file, & x_var)) \ x_var = RrPixmapMaskCopy(x_copysrc); #define READ_APPEARANCE(x_resstr, x_var, x_parrel) \ if (!read_appearance(db, inst, x_resstr, x_var, x_parrel)) \ set_default_appearance(x_var); #define READ_APPEARANCE_COPY(x_resstr, x_var, x_parrel, x_defval) \ if (!read_appearance(db, inst, x_resstr, x_var, x_parrel)) {\ RrAppearanceFree(x_var); \ x_var = RrAppearanceCopy(x_defval); } #define READ_APPEARANCE_COPY_TEXTURES(x_resstr, x_var, x_parrel, x_defval, n_tex) \ if (!read_appearance(db, inst, x_resstr, x_var, x_parrel)) {\ RrAppearanceFree(x_var); \ x_var = RrAppearanceCopy(x_defval); \ RrAppearanceRemoveTextures(x_var); \ RrAppearanceAddTextures(x_var, 5); } #define READ_APPEARANCE_(x_res1, x_res2, x_var, x_parrel, x_defval) \ if (!read_appearance(db, inst, x_res1, x_var, x_parrel) && \ !read_appearance(db, inst, x_res2, x_var, x_parrel)) {\ RrAppearanceFree(x_var); \ x_var = RrAppearanceCopy(x_defval); } RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name, gboolean allow_fallback, RrFont *active_window_font, RrFont *inactive_window_font, RrFont *menu_title_font, RrFont *menu_item_font, RrFont *active_osd_font, RrFont *inactive_osd_font) { XrmDatabase db = NULL; RrJustify winjust, mtitlejust; gchar *str; RrTheme *theme; RrFont *default_font = NULL; gchar *path; gint menu_overlap = 0; struct fallbacks fbs; if (name) { db = loaddb(name, &path); if (db == NULL) { g_message("Unable to load the theme '%s'", name); if (allow_fallback) g_message("Falling back to the default theme '%s'", DEFAULT_THEME); /* fallback to the default theme */ name = NULL; } } if (name == NULL) { if (allow_fallback) { db = loaddb(DEFAULT_THEME, &path); if (db == NULL) { g_message("Unable to load the theme '%s'", DEFAULT_THEME); return NULL; } } else return NULL; } /* initialize temp reading textures */ fbs.focused_disabled = RrAppearanceNew(inst, 1); fbs.unfocused_disabled = RrAppearanceNew(inst, 1); fbs.focused_hover = RrAppearanceNew(inst, 1); fbs.unfocused_hover = RrAppearanceNew(inst, 1); fbs.focused_unpressed_toggled = RrAppearanceNew(inst, 1); fbs.unfocused_unpressed_toggled = RrAppearanceNew(inst, 1); fbs.focused_hover_toggled = RrAppearanceNew(inst, 1); fbs.unfocused_hover_toggled = RrAppearanceNew(inst, 1); fbs.focused_pressed_toggled = RrAppearanceNew(inst, 1); fbs.unfocused_pressed_toggled = RrAppearanceNew(inst, 1); fbs.focused_unpressed = RrAppearanceNew(inst, 1); fbs.focused_pressed = RrAppearanceNew(inst, 1); fbs.unfocused_unpressed = RrAppearanceNew(inst, 1); fbs.unfocused_pressed = RrAppearanceNew(inst, 1); /* initialize theme */ theme = g_slice_new0(RrTheme); theme->inst = inst; theme->name = g_strdup(name ? name : DEFAULT_THEME); /* init buttons */ theme->btn_max = RrButtonNew(inst); theme->btn_close = RrButtonNew(inst); theme->btn_desk = RrButtonNew(inst); theme->btn_shade = RrButtonNew(inst); theme->btn_iconify = RrButtonNew(inst); /* init appearances */ theme->a_focused_grip = RrAppearanceNew(inst, 0); theme->a_unfocused_grip = RrAppearanceNew(inst, 0); theme->a_focused_title = RrAppearanceNew(inst, 0); theme->a_unfocused_title = RrAppearanceNew(inst, 0); theme->a_focused_label = RrAppearanceNew(inst, 1); theme->a_unfocused_label = RrAppearanceNew(inst, 1); theme->a_icon = RrAppearanceNew(inst, 1); theme->a_focused_handle = RrAppearanceNew(inst, 0); theme->a_unfocused_handle = RrAppearanceNew(inst, 0); theme->a_menu = RrAppearanceNew(inst, 0); theme->a_menu_title = RrAppearanceNew(inst, 0); theme->a_menu_text_title = RrAppearanceNew(inst, 1); theme->a_menu_normal = RrAppearanceNew(inst, 0); theme->a_menu_selected = RrAppearanceNew(inst, 0); theme->a_menu_disabled = RrAppearanceNew(inst, 0); /* a_menu_disabled_selected is copied from a_menu_selected */ theme->a_menu_text_normal = RrAppearanceNew(inst, 1); theme->a_menu_text_selected = RrAppearanceNew(inst, 1); theme->a_menu_text_disabled = RrAppearanceNew(inst, 1); theme->a_menu_text_disabled_selected = RrAppearanceNew(inst, 1); theme->a_menu_bullet_normal = RrAppearanceNew(inst, 1); theme->a_menu_bullet_selected = RrAppearanceNew(inst, 1); theme->a_clear = RrAppearanceNew(inst, 0); theme->a_clear_tex = RrAppearanceNew(inst, 1); theme->osd_bg = RrAppearanceNew(inst, 0); theme->osd_hilite_label = RrAppearanceNew(inst, 1); theme->osd_hilite_bg = RrAppearanceNew(inst, 0); theme->osd_unhilite_label = RrAppearanceNew(inst, 1); theme->osd_unhilite_bg = RrAppearanceNew(inst, 0); theme->osd_unpressed_button = RrAppearanceNew(inst, 1); theme->osd_pressed_button = RrAppearanceNew(inst, 5); theme->osd_focused_button = RrAppearanceNew(inst, 5); /* load the font stuff */ theme->win_font_focused = get_font(active_window_font, &default_font, inst); theme->win_font_unfocused = get_font(inactive_window_font, &default_font, inst); winjust = RR_JUSTIFY_LEFT; if (read_string(db, "window.label.text.justify", &str)) { if (!g_ascii_strcasecmp(str, "right")) winjust = RR_JUSTIFY_RIGHT; else if (!g_ascii_strcasecmp(str, "center")) winjust = RR_JUSTIFY_CENTER; } theme->menu_title_font = get_font(menu_title_font, &default_font, inst); mtitlejust = RR_JUSTIFY_LEFT; if (read_string(db, "menu.title.text.justify", &str)) { if (!g_ascii_strcasecmp(str, "right")) mtitlejust = RR_JUSTIFY_RIGHT; else if (!g_ascii_strcasecmp(str, "center")) mtitlejust = RR_JUSTIFY_CENTER; } theme->menu_font = get_font(menu_item_font, &default_font, inst); theme->osd_font_hilite = get_font(active_osd_font, &default_font, inst); theme->osd_font_unhilite = get_font(inactive_osd_font, &default_font,inst); /* load direct dimensions */ READ_INT("menu.overlap", menu_overlap, -100, 100, 0); READ_INT("menu.overlap.x", theme->menu_overlap_x, -100, 100, menu_overlap); READ_INT("menu.overlap.y", theme->menu_overlap_y, -100, 100, menu_overlap); READ_INT("window.handle.width", theme->handle_height, 0, 100, 6); READ_INT("padding.width", theme->paddingx, 0, 100, 3); READ_INT("padding.height", theme->paddingy, 0, 100, theme->paddingx); READ_INT("border.width", theme->fbwidth, 0, 100, 1); READ_INT("menu.border.width", theme->mbwidth, 0, 100, theme->fbwidth); READ_INT("osd.border.width", theme->obwidth, 0, 100, theme->fbwidth); READ_INT("undecorated.border.width", theme->ubwidth, 0, 100, theme->fbwidth); READ_INT("menu.separator.width", theme->menu_sep_width, 1, 100, 1); READ_INT("menu.separator.padding.width", theme->menu_sep_paddingx, 0, 100, 6); READ_INT("menu.separator.padding.height", theme->menu_sep_paddingy, 0, 100, 3); READ_INT("window.client.padding.width", theme->cbwidthx, 0, 100, theme->paddingx); READ_INT("window.client.padding.height", theme->cbwidthy, 0, 100, theme->cbwidthx); /* load colors */ READ_COLOR_("window.active.border.color", "border.color", theme->frame_focused_border_color, RrColorNew(inst, 0, 0, 0)); READ_COLOR("window.undecorated.active.border.color", theme->frame_undecorated_focused_border_color, RrColorCopy(theme->frame_focused_border_color)); READ_COLOR("window.active.title.separator.color", theme->title_separator_focused_color, RrColorCopy(theme->frame_focused_border_color)); READ_COLOR("window.inactive.border.color", theme->frame_unfocused_border_color, RrColorCopy(theme->frame_focused_border_color)); READ_COLOR("window.undecorated.inactive.border.color", theme->frame_undecorated_unfocused_border_color, RrColorCopy(theme->frame_unfocused_border_color)); READ_COLOR("window.inactive.title.separator.color", theme->title_separator_unfocused_color, RrColorCopy(theme->frame_unfocused_border_color)); READ_COLOR("menu.border.color", theme->menu_border_color, RrColorCopy(theme->frame_focused_border_color)); READ_COLOR("osd.border.color", theme->osd_border_color, RrColorCopy(theme->frame_focused_border_color)); READ_COLOR("window.active.client.color", theme->cb_focused_color, RrColorNew(inst, 0xff, 0xff, 0xff)); READ_COLOR("window.inactive.client.color", theme->cb_unfocused_color, RrColorNew(inst, 0xff, 0xff, 0xff)); READ_COLOR("window.active.label.text.color", theme->title_focused_color, RrColorNew(inst, 0x0, 0x0, 0x0)); READ_COLOR("window.inactive.label.text.color", theme->title_unfocused_color, RrColorNew(inst, 0xff, 0xff, 0xff)); READ_COLOR_("osd.active.label.text.color", "osd.label.text.color", theme->osd_text_active_color, RrColorCopy(theme->title_focused_color)); READ_COLOR_("osd.inactive.label.text.color", "osd.label.text.color", theme->osd_text_inactive_color, RrColorCopy(theme->title_unfocused_color)); READ_COLOR("window.active.button.unpressed.image.color", theme->titlebut_focused_unpressed_color, RrColorNew(inst, 0, 0, 0)); READ_COLOR("window.inactive.button.unpressed.image.color", theme->titlebut_unfocused_unpressed_color, RrColorNew(inst, 0xff, 0xff, 0xff)); READ_COLOR("window.active.button.pressed.image.color", theme->titlebut_focused_pressed_color, RrColorCopy(theme->titlebut_focused_unpressed_color)); READ_COLOR("window.inactive.button.pressed.image.color", theme->titlebut_unfocused_pressed_color, RrColorCopy(theme->titlebut_unfocused_unpressed_color)); READ_COLOR("window.active.button.disabled.image.color", theme->titlebut_focused_disabled_color, RrColorNew(inst, 0xff, 0xff, 0xff)); READ_COLOR("window.inactive.button.disabled.image.color", theme->titlebut_unfocused_disabled_color, RrColorNew(inst, 0, 0, 0)); READ_COLOR("window.active.button.hover.image.color", theme->titlebut_focused_hover_color, RrColorCopy(theme->titlebut_focused_unpressed_color)); READ_COLOR("window.inactive.button.hover.image.color", theme->titlebut_unfocused_hover_color, RrColorCopy(theme->titlebut_unfocused_unpressed_color)); READ_COLOR_("window.active.button.toggled.unpressed.image.color", "window.active.button.toggled.image.color", theme->titlebut_focused_unpressed_toggled_color, RrColorCopy(theme->titlebut_focused_pressed_color)); READ_COLOR_("window.inactive.button.toggled.unpressed.image.color", "window.inactive.button.toggled.image.color", theme->titlebut_unfocused_unpressed_toggled_color, RrColorCopy(theme->titlebut_unfocused_pressed_color)); READ_COLOR("window.active.button.toggled.hover.image.color", theme->titlebut_focused_hover_toggled_color, RrColorCopy(theme->titlebut_focused_unpressed_toggled_color)); READ_COLOR("window.inactive.button.toggled.hover.image.color", theme->titlebut_unfocused_hover_toggled_color, RrColorCopy(theme->titlebut_unfocused_unpressed_toggled_color)); READ_COLOR("window.active.button.toggled.pressed.image.color", theme->titlebut_focused_pressed_toggled_color, RrColorCopy(theme->titlebut_focused_pressed_color)); READ_COLOR("window.inactive.button.toggled.pressed.image.color", theme->titlebut_unfocused_pressed_toggled_color, RrColorCopy(theme->titlebut_unfocused_pressed_color)); READ_COLOR("menu.title.text.color", theme->menu_title_color, RrColorNew(inst, 0, 0, 0)); READ_COLOR("menu.items.text.color", theme->menu_color, RrColorNew(inst, 0xff, 0xff, 0xff)); READ_COLOR("menu.bullet.image.color", theme->menu_bullet_color, RrColorCopy(theme->menu_color)); READ_COLOR("menu.items.disabled.text.color", theme->menu_disabled_color, RrColorNew(inst, 0, 0, 0)); READ_COLOR("menu.items.active.disabled.text.color", theme->menu_disabled_selected_color, RrColorCopy(theme->menu_disabled_color)); READ_COLOR("menu.items.active.text.color", theme->menu_selected_color, RrColorNew(inst, 0, 0, 0)); READ_COLOR("menu.separator.color", theme->menu_sep_color, RrColorCopy(theme->menu_color)); READ_COLOR("menu.bullet.selected.image.color", theme->menu_bullet_selected_color, RrColorCopy(theme->menu_selected_color)); READ_COLOR("osd.button.unpressed.text.color", theme->osd_unpressed_color, RrColorCopy(theme->osd_text_active_color)); READ_COLOR("osd.button.pressed.text.color", theme->osd_pressed_color, RrColorCopy(theme->osd_text_active_color)); READ_COLOR("osd.button.focused.text.color", theme->osd_focused_color, RrColorCopy(theme->osd_text_active_color)); READ_COLOR("osd.button.pressed.box.color", theme->osd_pressed_lineart, RrColorCopy(theme->titlebut_focused_pressed_color)); READ_COLOR("osd.button.focused.box.color", theme->osd_focused_lineart, RrColorCopy(theme->titlebut_focused_hover_color)); /* load window buttons */ /* bases: unpressed, pressed, disabled */ READ_APPEARANCE("window.active.button.unpressed.bg", fbs.focused_unpressed, TRUE); READ_APPEARANCE("window.inactive.button.unpressed.bg", fbs.unfocused_unpressed, TRUE); READ_APPEARANCE("window.active.button.pressed.bg", fbs.focused_pressed, TRUE); READ_APPEARANCE("window.inactive.button.pressed.bg", fbs.unfocused_pressed, TRUE); READ_APPEARANCE("window.active.button.disabled.bg", fbs.focused_disabled, TRUE); READ_APPEARANCE("window.inactive.button.disabled.bg", fbs.unfocused_disabled, TRUE); /* hover */ READ_APPEARANCE_COPY("window.active.button.hover.bg", fbs.focused_hover, TRUE, fbs.focused_unpressed); READ_APPEARANCE_COPY("window.inactive.button.hover.bg", fbs.unfocused_hover, TRUE, fbs.unfocused_unpressed); /* toggled unpressed */ READ_APPEARANCE_("window.active.button.toggled.unpressed.bg", "window.active.button.toggled.bg", fbs.focused_unpressed_toggled, TRUE, fbs.focused_pressed); READ_APPEARANCE_("window.inactive.button.toggled.unpressed.bg", "window.inactive.button.toggled.bg", fbs.unfocused_unpressed_toggled, TRUE, fbs.unfocused_pressed); /* toggled pressed */ READ_APPEARANCE_COPY("window.active.button.toggled.pressed.bg", fbs.focused_pressed_toggled, TRUE, fbs.focused_pressed); READ_APPEARANCE_COPY("window.inactive.button.toggled.pressed.bg", fbs.unfocused_pressed_toggled, TRUE, fbs.unfocused_pressed); /* toggled hover */ READ_APPEARANCE_COPY("window.active.button.toggled.hover.bg", fbs.focused_hover_toggled, TRUE, fbs.focused_unpressed_toggled); READ_APPEARANCE_COPY("window.inactive.button.toggled.hover.bg", fbs.unfocused_hover_toggled, TRUE, fbs.unfocused_unpressed_toggled); /* now do individual buttons, if specified */ /* max button */ { guchar normal_mask[] = { 0x3f, 0x3f, 0x21, 0x21, 0x21, 0x3f }; guchar toggled_mask[] = { 0x3e, 0x22, 0x2f, 0x29, 0x39, 0x0f }; read_button_styles(db, inst, path, theme, theme->btn_max, "max", &fbs, normal_mask, toggled_mask); } /* close button */ { guchar normal_mask[] = { 0x33, 0x3f, 0x1e, 0x1e, 0x3f, 0x33 }; read_button_styles(db, inst, path, theme, theme->btn_close, "close", &fbs, normal_mask, NULL); } /* all desktops button */ { guchar normal_mask[] = { 0x33, 0x33, 0x00, 0x00, 0x33, 0x33 }; guchar toggled_mask[] = { 0x00, 0x1e, 0x1a, 0x16, 0x1e, 0x00 }; read_button_styles(db, inst, path, theme, theme->btn_desk, "desk", &fbs, normal_mask, toggled_mask); } /* shade button */ { guchar normal_mask[] = { 0x3f, 0x3f, 0x00, 0x00, 0x00, 0x00 }; read_button_styles(db, inst, path, theme, theme->btn_shade, "shade", &fbs, normal_mask, normal_mask); } /* iconify button */ { guchar normal_mask[] = { 0x00, 0x00, 0x00, 0x00, 0x3f, 0x3f }; read_button_styles(db, inst, path, theme, theme->btn_iconify, "iconify", &fbs, normal_mask, NULL); } /* submenu bullet mask */ if (!read_mask(inst, path, "bullet.xbm", &theme->menu_bullet_mask)) { guchar data[] = { 0x01, 0x03, 0x07, 0x0f, 0x07, 0x03, 0x01 }; theme->menu_bullet_mask = RrPixmapMaskNew(inst, 4, 7, (gchar*)data); } /* up and down arrows */ { guchar data[] = { 0xfe, 0x00, 0x7c, 0x00, 0x38, 0x00, 0x10, 0x00 }; theme->down_arrow_mask = RrPixmapMaskNew(inst, 9, 4, (gchar*)data); } { guchar data[] = { 0x10, 0x00, 0x38, 0x00, 0x7c, 0x00, 0xfe, 0x00 }; theme->up_arrow_mask = RrPixmapMaskNew(inst, 9, 4, (gchar*)data); } /* setup the default window icon */ theme->def_win_icon = read_c_image(OB_DEFAULT_ICON_WIDTH, OB_DEFAULT_ICON_HEIGHT, OB_DEFAULT_ICON_pixel_data); theme->def_win_icon_w = OB_DEFAULT_ICON_WIDTH; theme->def_win_icon_h = OB_DEFAULT_ICON_HEIGHT; /* read the decoration textures */ READ_APPEARANCE("window.active.title.bg", theme->a_focused_title, FALSE); READ_APPEARANCE("window.inactive.title.bg", theme->a_unfocused_title, FALSE); READ_APPEARANCE("window.active.label.bg", theme->a_focused_label, TRUE); READ_APPEARANCE("window.inactive.label.bg", theme->a_unfocused_label, TRUE); READ_APPEARANCE("window.active.handle.bg", theme->a_focused_handle, FALSE); READ_APPEARANCE("window.inactive.handle.bg",theme->a_unfocused_handle, FALSE); READ_APPEARANCE("window.active.grip.bg", theme->a_focused_grip, TRUE); READ_APPEARANCE("window.inactive.grip.bg", theme->a_unfocused_grip, TRUE); READ_APPEARANCE("menu.items.bg", theme->a_menu, FALSE); READ_APPEARANCE("menu.title.bg", theme->a_menu_title, TRUE); READ_APPEARANCE("menu.items.active.bg", theme->a_menu_selected, TRUE); theme->a_menu_disabled_selected = RrAppearanceCopy(theme->a_menu_selected); /* read appearances for non-decorations (on-screen-display) */ if (!read_appearance(db, inst, "osd.bg", theme->osd_bg, FALSE)) { RrAppearanceFree(theme->osd_bg); theme->osd_bg = RrAppearanceCopy(theme->a_focused_title); } if (!read_appearance(db, inst, "osd.active.label.bg", theme->osd_hilite_label, TRUE) && !read_appearance(db, inst, "osd.label.bg", theme->osd_hilite_label, TRUE)) { RrAppearanceFree(theme->osd_hilite_label); theme->osd_hilite_label = RrAppearanceCopy(theme->a_focused_label); } if (!read_appearance(db, inst, "osd.inactive.label.bg", theme->osd_unhilite_label, TRUE)) { RrAppearanceFree(theme->osd_unhilite_label); theme->osd_unhilite_label = RrAppearanceCopy(theme->a_unfocused_label); } /* osd_hilite_fg can't be parentrel */ if (!read_appearance(db, inst, "osd.hilight.bg", theme->osd_hilite_bg, FALSE)) { RrAppearanceFree(theme->osd_hilite_bg); if (theme->a_focused_label->surface.grad != RR_SURFACE_PARENTREL) theme->osd_hilite_bg = RrAppearanceCopy(theme->a_focused_label); else theme->osd_hilite_bg = RrAppearanceCopy(theme->a_focused_title); } /* osd_unhilite_fg can't be parentrel either */ if (!read_appearance(db, inst, "osd.unhilight.bg", theme->osd_unhilite_bg, FALSE)) { RrAppearanceFree(theme->osd_unhilite_bg); if (theme->a_unfocused_label->surface.grad != RR_SURFACE_PARENTREL) theme->osd_unhilite_bg=RrAppearanceCopy(theme->a_unfocused_label); else theme->osd_unhilite_bg=RrAppearanceCopy(theme->a_unfocused_title); } /* osd buttons */ READ_APPEARANCE_COPY("osd.button.unpressed.bg", theme->osd_unpressed_button, TRUE, fbs.focused_unpressed); READ_APPEARANCE_COPY_TEXTURES("osd.button.pressed.bg", theme->osd_pressed_button, TRUE, fbs.focused_pressed, 5); READ_APPEARANCE_COPY_TEXTURES("osd.button.focused.bg", theme->osd_focused_button, TRUE, fbs.focused_unpressed, 5); theme->a_icon->surface.grad = theme->a_clear->surface.grad = theme->a_clear_tex->surface.grad = theme->a_menu_text_title->surface.grad = theme->a_menu_normal->surface.grad = theme->a_menu_disabled->surface.grad = theme->a_menu_text_normal->surface.grad = theme->a_menu_text_selected->surface.grad = theme->a_menu_text_disabled->surface.grad = theme->a_menu_text_disabled_selected->surface.grad = theme->a_menu_bullet_normal->surface.grad = theme->a_menu_bullet_selected->surface.grad = RR_SURFACE_PARENTREL; /* set up the textures */ theme->a_focused_label->texture[0].type = RR_TEXTURE_TEXT; theme->a_focused_label->texture[0].data.text.justify = winjust; theme->a_focused_label->texture[0].data.text.font=theme->win_font_focused; theme->a_focused_label->texture[0].data.text.color = theme->title_focused_color; if (read_string(db, "window.active.label.text.font", &str)) { char *p; gint i = 0; gint j; if (strstr(str, "shadow=y")) { if ((p = strstr(str, "shadowoffset="))) i = parse_inline_number(p + strlen("shadowoffset=")); else i = 1; theme->a_focused_label->texture[0].data.text.shadow_offset_x = i; theme->a_focused_label->texture[0].data.text.shadow_offset_y = i; } if ((p = strstr(str, "shadowtint="))) { i = parse_inline_number(p + strlen("shadowtint=")); j = (i > 0 ? 0 : 255); i = ABS(i*255/100); theme->title_focused_shadow_color = RrColorNew(inst, j, j, j); theme->title_focused_shadow_alpha = i; } else { theme->title_focused_shadow_color = RrColorNew(inst, 0, 0, 0); theme->title_focused_shadow_alpha = 50; } } theme->a_focused_label->texture[0].data.text.shadow_color = theme->title_focused_shadow_color; theme->a_focused_label->texture[0].data.text.shadow_alpha = theme->title_focused_shadow_alpha; theme->osd_hilite_label->texture[0].type = RR_TEXTURE_TEXT; theme->osd_hilite_label->texture[0].data.text.justify = RR_JUSTIFY_LEFT; theme->osd_hilite_label->texture[0].data.text.font = theme->osd_font_hilite; theme->osd_hilite_label->texture[0].data.text.color = theme->osd_text_active_color; if (read_string(db, "osd.active.label.text.font", &str) || read_string(db, "osd.label.text.font", &str)) { char *p; gint i = 0; gint j; if (strstr(str, "shadow=y")) { if ((p = strstr(str, "shadowoffset="))) i = parse_inline_number(p + strlen("shadowoffset=")); else i = 1; theme->osd_hilite_label->texture[0].data.text.shadow_offset_x = i; theme->osd_hilite_label->texture[0].data.text.shadow_offset_y = i; } if ((p = strstr(str, "shadowtint="))) { i = parse_inline_number(p + strlen("shadowtint=")); j = (i > 0 ? 0 : 255); i = ABS(i*255/100); theme->osd_text_active_shadow_color = RrColorNew(inst, j, j, j); theme->osd_text_active_shadow_alpha = i; } else { theme->osd_text_active_shadow_color = RrColorNew(inst, 0, 0, 0); theme->osd_text_active_shadow_alpha = 50; } } else { /* inherit the font settings from the focused label */ theme->osd_hilite_label->texture[0].data.text.shadow_offset_x = theme->a_focused_label->texture[0].data.text.shadow_offset_x; theme->osd_hilite_label->texture[0].data.text.shadow_offset_y = theme->a_focused_label->texture[0].data.text.shadow_offset_y; if (theme->title_focused_shadow_color) theme->osd_text_active_shadow_color = RrColorCopy(theme->title_focused_shadow_color); else theme->osd_text_active_shadow_color = RrColorNew(inst, 0, 0, 0); theme->osd_text_active_shadow_alpha = theme->title_focused_shadow_alpha; } theme->osd_hilite_label->texture[0].data.text.shadow_color = theme->osd_text_active_shadow_color; theme->osd_hilite_label->texture[0].data.text.shadow_alpha = theme->osd_text_active_shadow_alpha; theme->osd_unpressed_button->texture[0].type = theme->osd_pressed_button->texture[0].type = theme->osd_focused_button->texture[0].type = RR_TEXTURE_TEXT; theme->osd_unpressed_button->texture[0].data.text.justify = theme->osd_pressed_button->texture[0].data.text.justify = theme->osd_focused_button->texture[0].data.text.justify = RR_JUSTIFY_CENTER; theme->osd_unpressed_button->texture[0].data.text.font = theme->osd_pressed_button->texture[0].data.text.font = theme->osd_focused_button->texture[0].data.text.font = theme->osd_font_hilite; theme->osd_unpressed_button->texture[0].data.text.color = theme->osd_unpressed_color; theme->osd_pressed_button->texture[0].data.text.color = theme->osd_pressed_color; theme->osd_focused_button->texture[0].data.text.color = theme->osd_focused_color; theme->osd_pressed_button->texture[1].data.lineart.color = theme->osd_pressed_button->texture[2].data.lineart.color = theme->osd_pressed_button->texture[3].data.lineart.color = theme->osd_pressed_button->texture[4].data.lineart.color = theme->osd_pressed_lineart; theme->osd_focused_button->texture[1].data.lineart.color = theme->osd_focused_button->texture[2].data.lineart.color = theme->osd_focused_button->texture[3].data.lineart.color = theme->osd_focused_button->texture[4].data.lineart.color = theme->osd_focused_lineart; theme->a_unfocused_label->texture[0].type = RR_TEXTURE_TEXT; theme->a_unfocused_label->texture[0].data.text.justify = winjust; theme->a_unfocused_label->texture[0].data.text.font = theme->win_font_unfocused; theme->a_unfocused_label->texture[0].data.text.color = theme->title_unfocused_color; if (read_string(db, "window.inactive.label.text.font", &str)) { char *p; gint i = 0; gint j; if (strstr(str, "shadow=y")) { if ((p = strstr(str, "shadowoffset="))) i = parse_inline_number(p + strlen("shadowoffset=")); else i = 1; theme->a_unfocused_label->texture[0].data.text.shadow_offset_x = i; theme->a_unfocused_label->texture[0].data.text.shadow_offset_y = i; } if ((p = strstr(str, "shadowtint="))) { i = parse_inline_number(p + strlen("shadowtint=")); j = (i > 0 ? 0 : 255); i = ABS(i*255/100); theme->title_unfocused_shadow_color = RrColorNew(inst, j, j, j); theme->title_unfocused_shadow_alpha = i; } else { theme->title_unfocused_shadow_color = RrColorNew(inst, 0, 0, 0); theme->title_unfocused_shadow_alpha = 50; } } theme->a_unfocused_label->texture[0].data.text.shadow_color = theme->title_unfocused_shadow_color; theme->a_unfocused_label->texture[0].data.text.shadow_alpha = theme->title_unfocused_shadow_alpha; theme->osd_unhilite_label->texture[0].type = RR_TEXTURE_TEXT; theme->osd_unhilite_label->texture[0].data.text.justify = RR_JUSTIFY_LEFT; theme->osd_unhilite_label->texture[0].data.text.font = theme->osd_font_unhilite; theme->osd_unhilite_label->texture[0].data.text.color = theme->osd_text_inactive_color; if (read_string(db, "osd.inactive.label.text.font", &str)) { char *p; gint i = 0; gint j; if (strstr(str, "shadow=y")) { if ((p = strstr(str, "shadowoffset="))) i = parse_inline_number(p + strlen("shadowoffset=")); else i = 1; theme->osd_unhilite_label->texture[0].data.text.shadow_offset_x=i; theme->osd_unhilite_label->texture[0].data.text.shadow_offset_y=i; } if ((p = strstr(str, "shadowtint="))) { i = parse_inline_number(p + strlen("shadowtint=")); j = (i > 0 ? 0 : 255); i = ABS(i*255/100); theme->osd_text_inactive_shadow_color = RrColorNew(inst, j, j, j); theme->osd_text_inactive_shadow_alpha = i; } else { theme->osd_text_inactive_shadow_color = RrColorNew(inst, 0, 0, 0); theme->osd_text_inactive_shadow_alpha = 50; } } else { /* inherit the font settings from the unfocused label */ theme->osd_unhilite_label->texture[0].data.text.shadow_offset_x = theme->a_unfocused_label->texture[0].data.text.shadow_offset_x; theme->osd_unhilite_label->texture[0].data.text.shadow_offset_y = theme->a_unfocused_label->texture[0].data.text.shadow_offset_y; if (theme->title_unfocused_shadow_color) theme->osd_text_inactive_shadow_color = RrColorCopy(theme->title_unfocused_shadow_color); else theme->osd_text_inactive_shadow_color = RrColorNew(inst, 0, 0, 0); theme->osd_text_inactive_shadow_alpha = theme->title_unfocused_shadow_alpha; } theme->osd_unhilite_label->texture[0].data.text.shadow_color = theme->osd_text_inactive_shadow_color; theme->osd_unhilite_label->texture[0].data.text.shadow_alpha = theme->osd_text_inactive_shadow_alpha; theme->a_menu_text_title->texture[0].type = RR_TEXTURE_TEXT; theme->a_menu_text_title->texture[0].data.text.justify = mtitlejust; theme->a_menu_text_title->texture[0].data.text.font = theme->menu_title_font; theme->a_menu_text_title->texture[0].data.text.color = theme->menu_title_color; if (read_string(db, "menu.title.text.font", &str)) { char *p; gint i = 0; gint j; if (strstr(str, "shadow=y")) { if ((p = strstr(str, "shadowoffset="))) i = parse_inline_number(p + strlen("shadowoffset=")); else i = 1; theme->a_menu_text_title->texture[0].data.text.shadow_offset_x = i; theme->a_menu_text_title->texture[0].data.text.shadow_offset_y = i; } if ((p = strstr(str, "shadowtint="))) { i = parse_inline_number(p + strlen("shadowtint=")); j = (i > 0 ? 0 : 255); i = ABS(i*255/100); theme->menu_title_shadow_color = RrColorNew(inst, j, j, j); } else { theme->menu_title_shadow_color = RrColorNew(inst, 0, 0, 0); i = 50; } theme->a_menu_text_title->texture[0].data.text.shadow_color = theme->menu_title_shadow_color; theme->a_menu_text_title->texture[0].data.text.shadow_alpha = i; } theme->a_menu_text_normal->texture[0].type = theme->a_menu_text_selected->texture[0].type = theme->a_menu_text_disabled->texture[0].type = theme->a_menu_text_disabled_selected->texture[0].type = RR_TEXTURE_TEXT; theme->a_menu_text_normal->texture[0].data.text.justify = theme->a_menu_text_selected->texture[0].data.text.justify = theme->a_menu_text_disabled->texture[0].data.text.justify = theme->a_menu_text_disabled_selected->texture[0].data.text.justify = RR_JUSTIFY_LEFT; theme->a_menu_text_normal->texture[0].data.text.font = theme->a_menu_text_selected->texture[0].data.text.font = theme->a_menu_text_disabled->texture[0].data.text.font = theme->a_menu_text_disabled_selected->texture[0].data.text.font = theme->menu_font; theme->a_menu_text_normal->texture[0].data.text.color = theme->menu_color; theme->a_menu_text_selected->texture[0].data.text.color = theme->menu_selected_color; theme->a_menu_text_disabled->texture[0].data.text.color = theme->menu_disabled_color; theme->a_menu_text_disabled_selected->texture[0].data.text.color = theme->menu_disabled_selected_color; if (read_string(db, "menu.items.font", &str)) { char *p; gint i = 0; gint j; if (strstr(str, "shadow=y")) { if ((p = strstr(str, "shadowoffset="))) i = parse_inline_number(p + strlen("shadowoffset=")); else i = 1; theme->a_menu_text_normal-> texture[0].data.text.shadow_offset_x = i; theme->a_menu_text_normal-> texture[0].data.text.shadow_offset_y = i; theme->a_menu_text_selected-> texture[0].data.text.shadow_offset_x = i; theme->a_menu_text_selected-> texture[0].data.text.shadow_offset_y = i; theme->a_menu_text_disabled-> texture[0].data.text.shadow_offset_x = i; theme->a_menu_text_disabled-> texture[0].data.text.shadow_offset_y = i; theme->a_menu_text_disabled_selected-> texture[0].data.text.shadow_offset_x = i; theme->a_menu_text_disabled_selected-> texture[0].data.text.shadow_offset_y = i; } if ((p = strstr(str, "shadowtint="))) { i = parse_inline_number(p + strlen("shadowtint=")); j = (i > 0 ? 0 : 255); i = ABS(i*255/100); theme->menu_text_shadow_color = RrColorNew(inst, j, j, j); } else { theme->menu_text_shadow_color = RrColorNew(inst, 0, 0, 0); i = 50; } theme->a_menu_text_normal->texture[0].data.text.shadow_color = theme->a_menu_text_selected->texture[0].data.text.shadow_color = theme->a_menu_text_disabled->texture[0].data.text.shadow_color = theme->a_menu_text_disabled_selected->texture[0].data.text.shadow_color = theme->menu_text_shadow_color; theme->a_menu_text_normal->texture[0].data.text.shadow_alpha = theme->a_menu_text_selected->texture[0].data.text.shadow_alpha = theme->a_menu_text_disabled->texture[0].data.text.shadow_alpha = theme->a_menu_text_disabled_selected->texture[0].data.text.shadow_alpha = i; } theme->a_menu_bullet_normal->texture[0].type = theme->a_menu_bullet_selected->texture[0].type = RR_TEXTURE_MASK; theme->a_menu_bullet_normal->texture[0].data.mask.mask = theme->a_menu_bullet_selected->texture[0].data.mask.mask = theme->menu_bullet_mask; theme->a_menu_bullet_normal->texture[0].data.mask.color = theme->menu_bullet_color; theme->a_menu_bullet_selected->texture[0].data.mask.color = theme->menu_bullet_selected_color; g_free(path); XrmDestroyDatabase(db); /* set the font heights */ theme->win_font_height = RrFontHeight(theme->win_font_focused, theme->a_focused_label->texture[0].data.text.shadow_offset_y); theme->win_font_height = MAX(theme->win_font_height, RrFontHeight(theme->win_font_focused, theme->a_unfocused_label->texture[0].data.text.shadow_offset_y)); theme->menu_title_font_height = RrFontHeight(theme->menu_title_font, theme->a_menu_text_title->texture[0].data.text.shadow_offset_y); theme->menu_font_height = RrFontHeight(theme->menu_font, theme->a_menu_text_normal->texture[0].data.text.shadow_offset_y); /* calculate some last extents */ { gint ft, fb, fl, fr, ut, ub, ul, ur; RrMargins(theme->a_focused_label, &fl, &ft, &fr, &fb); RrMargins(theme->a_unfocused_label, &ul, &ut, &ur, &ub); theme->label_height = theme->win_font_height + MAX(ft + fb, ut + ub); theme->label_height += theme->label_height % 2; /* this would be nice I think, since padding.width can now be 0, but it breaks frame.c horribly and I don't feel like fixing that right now, so if anyone complains, here is how to keep text from going over the title's bevel/border with a padding.width of 0 and a bevelless/borderless label RrMargins(theme->a_focused_title, &fl, &ft, &fr, &fb); RrMargins(theme->a_unfocused_title, &ul, &ut, &ur, &ub); theme->title_height = theme->label_height + MAX(MAX(theme->padding * 2, ft + fb), MAX(theme->padding * 2, ut + ub)); */ theme->title_height = theme->label_height + theme->paddingy * 2; RrMargins(theme->a_menu_title, &ul, &ut, &ur, &ub); theme->menu_title_label_height = theme->menu_title_font_height+ut+ub; theme->menu_title_height = theme->menu_title_label_height + theme->paddingy * 2; } theme->button_size = theme->label_height - 2; theme->grip_width = 25; RrAppearanceFree(fbs.focused_disabled); RrAppearanceFree(fbs.unfocused_disabled); RrAppearanceFree(fbs.focused_hover); RrAppearanceFree(fbs.unfocused_hover); RrAppearanceFree(fbs.focused_unpressed); RrAppearanceFree(fbs.focused_pressed); RrAppearanceFree(fbs.unfocused_unpressed); RrAppearanceFree(fbs.unfocused_pressed); RrAppearanceFree(fbs.focused_hover_toggled); RrAppearanceFree(fbs.unfocused_hover_toggled); RrAppearanceFree(fbs.focused_unpressed_toggled); RrAppearanceFree(fbs.focused_pressed_toggled); RrAppearanceFree(fbs.unfocused_unpressed_toggled); RrAppearanceFree(fbs.unfocused_pressed_toggled); return theme; } void RrThemeFree(RrTheme *theme) { if (theme) { g_free(theme->name); RrButtonFree(theme->btn_max); RrButtonFree(theme->btn_close); RrButtonFree(theme->btn_desk); RrButtonFree(theme->btn_shade); RrButtonFree(theme->btn_iconify); RrColorFree(theme->menu_border_color); RrColorFree(theme->osd_border_color); RrColorFree(theme->frame_focused_border_color); RrColorFree(theme->frame_undecorated_focused_border_color); RrColorFree(theme->frame_unfocused_border_color); RrColorFree(theme->frame_undecorated_unfocused_border_color); RrColorFree(theme->title_separator_focused_color); RrColorFree(theme->title_separator_unfocused_color); RrColorFree(theme->cb_unfocused_color); RrColorFree(theme->cb_focused_color); RrColorFree(theme->title_focused_color); RrColorFree(theme->title_unfocused_color); RrColorFree(theme->titlebut_focused_disabled_color); RrColorFree(theme->titlebut_unfocused_disabled_color); RrColorFree(theme->titlebut_focused_hover_color); RrColorFree(theme->titlebut_unfocused_hover_color); RrColorFree(theme->titlebut_focused_hover_toggled_color); RrColorFree(theme->titlebut_unfocused_hover_toggled_color); RrColorFree(theme->titlebut_focused_pressed_toggled_color); RrColorFree(theme->titlebut_unfocused_pressed_toggled_color); RrColorFree(theme->titlebut_focused_unpressed_toggled_color); RrColorFree(theme->titlebut_unfocused_unpressed_toggled_color); RrColorFree(theme->titlebut_focused_pressed_color); RrColorFree(theme->titlebut_unfocused_pressed_color); RrColorFree(theme->titlebut_focused_unpressed_color); RrColorFree(theme->titlebut_unfocused_unpressed_color); RrColorFree(theme->menu_title_color); RrColorFree(theme->menu_sep_color); RrColorFree(theme->menu_color); RrColorFree(theme->menu_bullet_color); RrColorFree(theme->menu_bullet_selected_color); RrColorFree(theme->menu_selected_color); RrColorFree(theme->menu_disabled_color); RrColorFree(theme->menu_disabled_selected_color); RrColorFree(theme->title_focused_shadow_color); RrColorFree(theme->title_unfocused_shadow_color); RrColorFree(theme->osd_text_active_color); RrColorFree(theme->osd_text_inactive_color); RrColorFree(theme->osd_text_active_shadow_color); RrColorFree(theme->osd_text_inactive_shadow_color); RrColorFree(theme->osd_pressed_color); RrColorFree(theme->osd_unpressed_color); RrColorFree(theme->osd_focused_color); RrColorFree(theme->osd_pressed_lineart); RrColorFree(theme->osd_focused_lineart); RrColorFree(theme->menu_title_shadow_color); RrColorFree(theme->menu_text_shadow_color); g_free(theme->def_win_icon); RrPixmapMaskFree(theme->menu_bullet_mask); RrPixmapMaskFree(theme->down_arrow_mask); RrPixmapMaskFree(theme->up_arrow_mask); RrFontClose(theme->win_font_focused); RrFontClose(theme->win_font_unfocused); RrFontClose(theme->menu_title_font); RrFontClose(theme->menu_font); RrFontClose(theme->osd_font_hilite); RrFontClose(theme->osd_font_unhilite); RrAppearanceFree(theme->a_focused_grip); RrAppearanceFree(theme->a_unfocused_grip); RrAppearanceFree(theme->a_focused_title); RrAppearanceFree(theme->a_unfocused_title); RrAppearanceFree(theme->a_focused_label); RrAppearanceFree(theme->a_unfocused_label); RrAppearanceFree(theme->a_icon); RrAppearanceFree(theme->a_focused_handle); RrAppearanceFree(theme->a_unfocused_handle); RrAppearanceFree(theme->a_menu); RrAppearanceFree(theme->a_menu_title); RrAppearanceFree(theme->a_menu_text_title); RrAppearanceFree(theme->a_menu_normal); RrAppearanceFree(theme->a_menu_selected); RrAppearanceFree(theme->a_menu_disabled); RrAppearanceFree(theme->a_menu_disabled_selected); RrAppearanceFree(theme->a_menu_text_normal); RrAppearanceFree(theme->a_menu_text_selected); RrAppearanceFree(theme->a_menu_text_disabled); RrAppearanceFree(theme->a_menu_text_disabled_selected); RrAppearanceFree(theme->a_menu_bullet_normal); RrAppearanceFree(theme->a_menu_bullet_selected); RrAppearanceFree(theme->a_clear); RrAppearanceFree(theme->a_clear_tex); RrAppearanceFree(theme->osd_bg); RrAppearanceFree(theme->osd_hilite_bg); RrAppearanceFree(theme->osd_hilite_label); RrAppearanceFree(theme->osd_unhilite_bg); RrAppearanceFree(theme->osd_unhilite_label); RrAppearanceFree(theme->osd_pressed_button); RrAppearanceFree(theme->osd_unpressed_button); RrAppearanceFree(theme->osd_focused_button); g_slice_free(RrTheme, theme); } } static XrmDatabase loaddb(const gchar *name, gchar **path) { GSList *it; XrmDatabase db = NULL; gchar *s; if (name[0] == '/') { s = g_build_filename(name, "openbox-3", "themerc", NULL); if ((db = XrmGetFileDatabase(s))) *path = g_path_get_dirname(s); g_free(s); } else { ObtPaths *p; p = obt_paths_new(); /* XXX backwards compatibility, remove me sometime later */ s = g_build_filename(g_get_home_dir(), ".themes", name, "openbox-3", "themerc", NULL); if ((db = XrmGetFileDatabase(s))) *path = g_path_get_dirname(s); g_free(s); for (it = obt_paths_data_dirs(p); !db && it; it = g_slist_next(it)) { s = g_build_filename(it->data, "themes", name, "openbox-3", "themerc", NULL); if ((db = XrmGetFileDatabase(s))) *path = g_path_get_dirname(s); g_free(s); } obt_paths_unref(p); } if (db == NULL) { s = g_build_filename(name, "themerc", NULL); if ((db = XrmGetFileDatabase(s))) *path = g_path_get_dirname(s); g_free(s); } return db; } static gchar *create_class_name(const gchar *rname) { gchar *rclass = g_strdup(rname); gchar *p = rclass; while (TRUE) { *p = toupper(*p); p = strchr(p+1, '.'); if (p == NULL) break; ++p; if (*p == '\0') break; } return rclass; } static gboolean read_int(XrmDatabase db, const gchar *rname, gint *value) { gboolean ret = FALSE; gchar *rclass = create_class_name(rname); gchar *rettype, *end; XrmValue retvalue; if (XrmGetResource(db, rname, rclass, &rettype, &retvalue) && retvalue.addr != NULL) { *value = (gint)strtol(retvalue.addr, &end, 10); if (end != retvalue.addr) ret = TRUE; } g_free(rclass); return ret; } static gboolean read_string(XrmDatabase db, const gchar *rname, gchar **value) { gboolean ret = FALSE; gchar *rclass = create_class_name(rname); gchar *rettype; XrmValue retvalue; if (XrmGetResource(db, rname, rclass, &rettype, &retvalue) && retvalue.addr != NULL) { g_strstrip(retvalue.addr); *value = retvalue.addr; ret = TRUE; } g_free(rclass); return ret; } static gboolean read_color(XrmDatabase db, const RrInstance *inst, const gchar *rname, RrColor **value) { gboolean ret = FALSE; gchar *rclass = create_class_name(rname); gchar *rettype; XrmValue retvalue; if (XrmGetResource(db, rname, rclass, &rettype, &retvalue) && retvalue.addr != NULL) { RrColor *c; /* retvalue.addr is inside the xrdb database so we can't destroy it but we can edit it in place, as g_strstrip does. */ g_strstrip(retvalue.addr); c = RrColorParse(inst, retvalue.addr); if (c != NULL) { *value = c; ret = TRUE; } } g_free(rclass); return ret; } static gboolean read_mask(const RrInstance *inst, const gchar *path, const gchar *maskname, RrPixmapMask **value) { gboolean ret = FALSE; gchar *s; gint hx, hy; /* ignored */ guint w, h; guchar *b; s = g_build_filename(path, maskname, NULL); if (XReadBitmapFileData(s, &w, &h, &b, &hx, &hy) == BitmapSuccess) { ret = TRUE; *value = RrPixmapMaskNew(inst, w, h, (gchar*)b); XFree(b); } g_free(s); return ret; } static void parse_appearance(gchar *tex, RrSurfaceColorType *grad, RrReliefType *relief, RrBevelType *bevel, gboolean *interlaced, gboolean *border, gboolean allow_trans) { gchar *t; /* convert to all lowercase */ for (t = tex; *t != '\0'; ++t) *t = g_ascii_tolower(*t); if (allow_trans && strstr(tex, "parentrelative") != NULL) { *grad = RR_SURFACE_PARENTREL; } else { if (strstr(tex, "gradient") != NULL) { if (strstr(tex, "crossdiagonal") != NULL) *grad = RR_SURFACE_CROSS_DIAGONAL; else if (strstr(tex, "pyramid") != NULL) *grad = RR_SURFACE_PYRAMID; else if (strstr(tex, "mirrorhorizontal") != NULL) *grad = RR_SURFACE_MIRROR_HORIZONTAL; else if (strstr(tex, "horizontal") != NULL) *grad = RR_SURFACE_HORIZONTAL; else if (strstr(tex, "splitvertical") != NULL) *grad = RR_SURFACE_SPLIT_VERTICAL; else if (strstr(tex, "vertical") != NULL) *grad = RR_SURFACE_VERTICAL; else *grad = RR_SURFACE_DIAGONAL; } else { *grad = RR_SURFACE_SOLID; } } if (strstr(tex, "sunken") != NULL) *relief = RR_RELIEF_SUNKEN; else if (strstr(tex, "flat") != NULL) *relief = RR_RELIEF_FLAT; else if (strstr(tex, "raised") != NULL) *relief = RR_RELIEF_RAISED; else *relief = (*grad == RR_SURFACE_PARENTREL) ? RR_RELIEF_FLAT : RR_RELIEF_RAISED; *border = FALSE; if (*relief == RR_RELIEF_FLAT) { if (strstr(tex, "border") != NULL) *border = TRUE; } else { if (strstr(tex, "bevel2") != NULL) *bevel = RR_BEVEL_2; else *bevel = RR_BEVEL_1; } if (strstr(tex, "interlaced") != NULL) *interlaced = TRUE; else *interlaced = FALSE; } static gboolean read_appearance(XrmDatabase db, const RrInstance *inst, const gchar *rname, RrAppearance *value, gboolean allow_trans) { gboolean ret = FALSE; gchar *rclass = create_class_name(rname); gchar *cname, *ctoname, *bcname, *icname, *hname, *sname; gchar *csplitname, *ctosplitname; gchar *rettype; XrmValue retvalue; gint i; cname = g_strconcat(rname, ".color", NULL); ctoname = g_strconcat(rname, ".colorTo", NULL); bcname = g_strconcat(rname, ".border.color", NULL); icname = g_strconcat(rname, ".interlace.color", NULL); hname = g_strconcat(rname, ".highlight", NULL); sname = g_strconcat(rname, ".shadow", NULL); csplitname = g_strconcat(rname, ".color.splitTo", NULL); ctosplitname = g_strconcat(rname, ".colorTo.splitTo", NULL); if (XrmGetResource(db, rname, rclass, &rettype, &retvalue) && retvalue.addr != NULL) { parse_appearance(retvalue.addr, &value->surface.grad, &value->surface.relief, &value->surface.bevel, &value->surface.interlaced, &value->surface.border, allow_trans); if (!read_color(db, inst, cname, &value->surface.primary)) value->surface.primary = RrColorNew(inst, 0, 0, 0); if (!read_color(db, inst, ctoname, &value->surface.secondary)) value->surface.secondary = RrColorNew(inst, 0, 0, 0); if (value->surface.border) if (!read_color(db, inst, bcname, &value->surface.border_color)) value->surface.border_color = RrColorNew(inst, 0, 0, 0); if (value->surface.interlaced) if (!read_color(db, inst, icname, &value->surface.interlace_color)) value->surface.interlace_color = RrColorNew(inst, 0, 0, 0); if (read_int(db, hname, &i) && i >= 0) value->surface.bevel_light_adjust = i; if (read_int(db, sname, &i) && i >= 0 && i <= 256) value->surface.bevel_dark_adjust = i; if (value->surface.grad == RR_SURFACE_SPLIT_VERTICAL) { gint r, g, b; if (!read_color(db, inst, csplitname, &value->surface.split_primary)) { r = value->surface.primary->r; r += r >> 2; g = value->surface.primary->g; g += g >> 2; b = value->surface.primary->b; b += b >> 2; if (r > 0xFF) r = 0xFF; if (g > 0xFF) g = 0xFF; if (b > 0xFF) b = 0xFF; value->surface.split_primary = RrColorNew(inst, r, g, b); } if (!read_color(db, inst, ctosplitname, &value->surface.split_secondary)) { r = value->surface.secondary->r; r += r >> 4; g = value->surface.secondary->g; g += g >> 4; b = value->surface.secondary->b; b += b >> 4; if (r > 0xFF) r = 0xFF; if (g > 0xFF) g = 0xFF; if (b > 0xFF) b = 0xFF; value->surface.split_secondary = RrColorNew(inst, r, g, b); } } ret = TRUE; } g_free(ctosplitname); g_free(csplitname); g_free(sname); g_free(hname); g_free(icname); g_free(bcname); g_free(ctoname); g_free(cname); g_free(rclass); return ret; } static int parse_inline_number(const char *p) { int neg = 1; int res = 0; if (*p == '-') { neg = -1; ++p; } for (; isdigit(*p); ++p) res = res * 10 + *p - '0'; res *= neg; return res; } static void set_default_appearance(RrAppearance *a) { a->surface.grad = RR_SURFACE_SOLID; a->surface.relief = RR_RELIEF_FLAT; a->surface.bevel = RR_BEVEL_1; a->surface.interlaced = FALSE; a->surface.border = FALSE; a->surface.primary = RrColorNew(a->inst, 0, 0, 0); a->surface.secondary = RrColorNew(a->inst, 0, 0, 0); } /* Reads the output from gimp's C-Source file format into valid RGBA data for an RrTextureRGBA. */ static RrPixel32* read_c_image(gint width, gint height, const guint8 *data) { RrPixel32 *im, *p; gint i; p = im = g_memdup(data, width * height * sizeof(RrPixel32)); for (i = 0; i < width * height; ++i) { guchar a = ((*p >> 24) & 0xff); guchar b = ((*p >> 16) & 0xff); guchar g = ((*p >> 8) & 0xff); guchar r = ((*p >> 0) & 0xff); *p = ((r << RrDefaultRedOffset) + (g << RrDefaultGreenOffset) + (b << RrDefaultBlueOffset) + (a << RrDefaultAlphaOffset)); p++; } return im; } static void read_button_styles(XrmDatabase db, const RrInstance *inst, gchar *path, const RrTheme *theme, RrButton *btn, const gchar *btnname, struct fallbacks *fbs, guchar *normal_mask, guchar *toggled_mask) { gchar name[128], name2[128]; gboolean userdef = TRUE; g_snprintf(name, 128, "%s.xbm", btnname); if (!read_mask(inst, path, name, &btn->unpressed_mask) && normal_mask) { btn->unpressed_mask = RrPixmapMaskNew(inst, 6, 6, (gchar*)normal_mask); userdef = FALSE; } g_snprintf(name, 128, "%s_toggled.xbm", btnname); if (toggled_mask && !read_mask(inst, path, name, &btn->unpressed_toggled_mask)) { if (userdef) btn->unpressed_toggled_mask = RrPixmapMaskCopy(btn->unpressed_mask); else btn->unpressed_toggled_mask = RrPixmapMaskNew(inst, 6, 6, (gchar*)toggled_mask); } #define READ_BUTTON_MASK_COPY(type, fallback) \ g_snprintf(name, 128, "%s_" #type ".xbm", btnname); \ READ_MASK_COPY(name, btn->type##_mask, fallback); READ_BUTTON_MASK_COPY(pressed, btn->unpressed_mask); READ_BUTTON_MASK_COPY(disabled, btn->unpressed_mask); READ_BUTTON_MASK_COPY(hover, btn->unpressed_mask); if (toggled_mask) { READ_BUTTON_MASK_COPY(pressed_toggled, btn->unpressed_toggled_mask); READ_BUTTON_MASK_COPY(hover_toggled, btn->unpressed_toggled_mask); } #define READ_BUTTON_APPEARANCE(typedots, type, fallback) \ g_snprintf(name, 128, "window.active.button.%s." typedots ".image.color", btnname); \ READ_COLOR(name, btn->focused_##type##_color, RrColorCopy(theme->titlebut_focused_##type##_color)); \ g_snprintf(name, 128, "window.inactive.button.%s." typedots ".image.color", btnname); \ READ_COLOR(name, btn->unfocused_##type##_color, RrColorCopy(theme->titlebut_unfocused_##type##_color)); \ if (fallback) { \ g_snprintf(name, 128, "window.active.button.%s." typedots ".bg", btnname); \ g_snprintf(name2, 128, "window.active.button.%s.toggled.bg", btnname); \ READ_APPEARANCE_(name, name2, btn->a_focused_##type, TRUE, fbs->focused_##type); \ g_snprintf(name, 128, "window.inactive.button.%s." typedots ".bg", btnname); \ g_snprintf(name2, 128, "window.inactive.button.%s.toggled.bg", btnname); \ READ_APPEARANCE_(name, name2, btn->a_unfocused_##type, TRUE, fbs->unfocused_##type); \ } else { \ g_snprintf(name, 128, "window.active.button.%s." typedots ".bg", btnname); \ READ_APPEARANCE_COPY(name, btn->a_focused_##type, TRUE, fbs->focused_##type); \ g_snprintf(name, 128, "window.inactive.button.%s." typedots ".bg", btnname); \ READ_APPEARANCE_COPY(name, btn->a_unfocused_##type, TRUE, fbs->unfocused_##type); \ } \ btn->a_unfocused_##type->texture[0].typ##e = \ btn->a_focused_##type->texture[0].typ##e = \ RR_TEXTURE_MASK; \ btn->a_unfocused_##type->texture[0].data.mask.mask = \ btn->a_focused_##type->texture[0].data.mask.mask = \ btn->type##_mask; \ btn->a_unfocused_##type->texture[0].data.mask.color = \ btn->unfocused_##type##_color; \ btn->a_focused_##type->texture[0].data.mask.color = \ btn->focused_##type##_color; READ_BUTTON_APPEARANCE("unpressed", unpressed, 0); READ_BUTTON_APPEARANCE("pressed", pressed, 0); READ_BUTTON_APPEARANCE("disabled", disabled, 0); READ_BUTTON_APPEARANCE("hover", hover, 0); if (toggled_mask) { READ_BUTTON_APPEARANCE("unpressed.toggled", unpressed_toggled, 1); READ_BUTTON_APPEARANCE("pressed.toggled", pressed_toggled, 0); READ_BUTTON_APPEARANCE("hover.toggled", hover_toggled, 0); } } openbox-3.6.1/obrender/test.c0000644000175300001440000000634212426440016013042 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- test.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens Copyright (c) 2003 Derek Foreman 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include #include #include #include "render.h" #include static gint x_error_handler(Display * disp, XErrorEvent * error) { gchar buf[1024]; XGetErrorText(disp, error->error_code, buf, 1024); printf("%s\n", buf); return 0; } Display *ob_display; gint ob_screen; Window ob_root; gint main() { Window win; RrInstance *inst; RrAppearance *look; int done; XEvent report; gint h = 500, w = 500; ob_display = XOpenDisplay(NULL); XSetErrorHandler(x_error_handler); ob_screen = DefaultScreen(ob_display); ob_root = RootWindow(ob_display, ob_screen); win = XCreateWindow(ob_display, RootWindow(ob_display, 0), 10, 10, w, h, 10, CopyFromParent, /* depth */ CopyFromParent, /* class */ CopyFromParent, /* visual */ 0, /* valuemask */ 0); /* attributes */ XMapWindow(ob_display, win); XSelectInput(ob_display, win, ExposureMask | StructureNotifyMask); inst = RrInstanceNew(ob_display, ob_screen); look = RrAppearanceNew(inst, 0); look->surface.grad = RR_SURFACE_MIRROR_HORIZONTAL; look->surface.secondary = RrColorParse(inst, "Yellow"); look->surface.split_secondary = RrColorParse(inst, "Red"); look->surface.split_primary = RrColorParse(inst, "Green"); look->surface.primary = RrColorParse(inst, "Blue"); look->surface.interlaced = FALSE; if (ob_display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } #if BIGTEST int i; look->surface.pixel_data = g_new(RrPixel32, w*h); for (i = 0; i < 10000; ++i) { printf("\r%d", i); fflush(stdout); RrRender(look, w, h); } exit (0); #endif RrPaint(look, win, w, h); done = 0; while (!done) { XNextEvent(ob_display, &report); switch (report.type) { case Expose: break; case ConfigureNotify: RrPaint(look, win, report.xconfigure.width, report.xconfigure.height); break; case UnmapNotify: done = 1; break; } } RrAppearanceFree (look); RrInstanceFree (inst); return 1; } openbox-3.6.1/obt/0000755000175300001440000000000012544731565010773 500000000000000openbox-3.6.1/obt/obt-3.5.pc.in0000644000175300001440000000046411407716711012730 00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ xcflags=@X_CFLAGS@ xlibs=@X_LIBS@ Name: Obt Description: Openbox Toolkit Library Version: @OBT_VERSION@ Requires: glib-2.0 libxml-2.0 Libs: -L${libdir} -lobt ${xlibs} Cflags: -I${includedir}/openbox/@OBT_VERSION@ ${xcflags} openbox-3.6.1/obt/version.h.in0000644000175300001440000000102611007304115013131 00000000000000#ifndef obt__version_h #define obt__version_h #define OBT_MAJOR_VERSION @OBT_MAJOR_VERSION@ #define OBT_MINOR_VERSION @OBT_MINOR_VERSION@ #define OBT_MICRO_VERSION @OBT_MICRO_VERSION@ #define OBT_VERSION OBT_MAJOR_VERSION.OBT_MINOR_VERSION.OBT_MICRO_VERSION #define OBT_CHECK_VERSION(major,minor,micro) \ (OBT_MAJOR_VERSION > (major) || \ (OBT_MAJOR_VERSION == (major) && OBT_MINOR_VERSION > (minor)) || \ (OBT_MAJOR_VERSION == (major) && OBT_MINOR_VERSION == (minor) && \ OBT_MICRO_VERSION >= (micro))) #endif openbox-3.6.1/obt/link.h0000644000175300001440000001020012426440016011775 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/link.h for the Openbox window manager Copyright (c) 2009 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_link_h #define __obt_link_h #include G_BEGIN_DECLS struct _ObtPaths; typedef enum { OBT_LINK_TYPE_APPLICATION = 1, OBT_LINK_TYPE_URL = 2, OBT_LINK_TYPE_DIRECTORY = 3 } ObtLinkType; typedef enum { OBT_LINK_APP_STARTUP_NO_SUPPORT, OBT_LINK_APP_STARTUP_PROTOCOL_SUPPORT, OBT_LINK_APP_STARTUP_LEGACY_SUPPORT } ObtLinkAppStartup; /*! These bit flags are environments for links. Some links are used or not used in various environments. */ typedef enum { OBT_LINK_ENV_OPENBOX = 1 << 0, OBT_LINK_ENV_GNOME = 1 << 1, OBT_LINK_ENV_KDE = 1 << 2, OBT_LINK_ENV_LXDE = 1 << 3, OBT_LINK_ENV_ROX = 1 << 4, OBT_LINK_ENV_XFCE = 1 << 5, OBT_LINK_ENV_OLD = 1 << 6 } ObtLinkEnvFlags; typedef enum { /*! The app can be launched with a single local file */ OBT_LINK_APP_SINGLE_LOCAL = 1 << 0, /*! The app can be launched with multiple local files */ OBT_LINK_APP_MULTI_LOCAL = 1 << 1, /*! The app can be launched with a single URL */ OBT_LINK_APP_SINGLE_URL = 1 << 2, /*! The app can be launched with multiple URLs */ OBT_LINK_APP_MULTI_URL = 1 << 3 } ObtLinkAppOpen; typedef struct _ObtLink ObtLink; ObtLink* obt_link_from_ddfile(const gchar *name, GSList *paths, struct _ObtPaths *p); void obt_link_ref(ObtLink *e); void obt_link_unref(ObtLink *e); /*! Returns TRUE if the file exists but says it should be ignored, with the Hidden flag. No other functions can be used for the ObtLink in this case. */ gboolean obt_link_deleted (ObtLink *e); /*! Returns the type of object refered to by the .desktop file. */ ObtLinkType obt_link_type (ObtLink *e); /*! Returns TRUE if the .desktop file should be displayed to users, given the current environment. If FALSE, the .desktop file should not be showed. This also uses the TryExec option if it is present. @env A semicolon-deliminated list of environemnts. Can be one or more of: GNOME, KDE, ROX, XFCE. Other environments not listed here may also be supported. This can be null also if not listing any environment. */ gboolean obt_link_display(ObtLink *e, const gchar *env); const gchar* obt_link_name (ObtLink *e); const gchar* obt_link_generic_name (ObtLink *e); const gchar* obt_link_comment (ObtLink *e); /*! Returns the icon for the object referred to by the .desktop file. Returns either an absolute path, or a string which can be used to find the icon using the algorithm given by: http://freedesktop.org/wiki/Specifications/icon-theme-spec?action=show&redirect=Standards/icon-theme-spec */ const gchar* obt_link_icon (ObtLink *e); const gchar *obt_link_url_path(ObtLink *e); const gchar* obt_link_app_executable (ObtLink *e); /*! Returns the path in which the application should be run */ const gchar* obt_link_app_path (ObtLink *e); gboolean obt_link_app_run_in_terminal (ObtLink *e); const gchar*const* obt_link_app_mime_types (ObtLink *e); const GQuark* obt_link_app_categories (ObtLink *e, gulong *n); /*! Returns a combination of values in the ObtLinkAppOpen enum, specifying if the application can be launched to open one or more files and URLs. */ ObtLinkAppOpen obt_link_app_open(ObtLink *e); ObtLinkAppStartup obt_link_app_startup_notify(ObtLink *e); const gchar* obt_link_app_startup_wmclass(ObtLink *e); G_END_DECLS #endif openbox-3.6.1/obt/display.h0000644000175300001440000000410012426440016012507 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/display.h for the Openbox window manager Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_display_h #define __obt_display_h #include #include #include /* shape.h uses Region which is in here */ #ifdef XKB #include #endif #ifdef SHAPE #include #endif #ifdef XINERAMA #include #endif #ifdef XRANDR #include #endif #ifdef SYNC #include #endif G_BEGIN_DECLS extern gboolean obt_display_error_occured; extern gboolean obt_display_extension_xkb; extern gint obt_display_extension_xkb_basep; extern gboolean obt_display_extension_shape; extern gint obt_display_extension_shape_basep; extern gboolean obt_display_extension_xinerama; extern gint obt_display_extension_xinerama_basep; extern gboolean obt_display_extension_randr; extern gint obt_display_extension_randr_basep; extern gboolean obt_display_extension_sync; extern gint obt_display_extension_sync_basep; extern Display* obt_display; /*! Open the X display. You should call g_set_prgname() before calling this function for X Input Methods to work correctly. */ gboolean obt_display_open(const char *display_name); void obt_display_close(void); void obt_display_ignore_errors(gboolean ignore); #define obt_root(screen) (RootWindow(obt_display, screen)) G_END_DECLS #endif /*__obt_display_h*/ openbox-3.6.1/obt/keyboard.h0000644000175300001440000000533012426440016012650 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/keyboard.h for the Openbox window manager Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_keyboard_h #define __obt_keyboard_h #include #include #include G_BEGIN_DECLS /*! These keys are bound to the modifier masks in any fashion, except for CapsLock, Shift, and Control. */ typedef enum { OBT_KEYBOARD_MODKEY_NONE, OBT_KEYBOARD_MODKEY_CAPSLOCK, OBT_KEYBOARD_MODKEY_NUMLOCK, OBT_KEYBOARD_MODKEY_SCROLLLOCK, OBT_KEYBOARD_MODKEY_SHIFT, OBT_KEYBOARD_MODKEY_CONTROL, OBT_KEYBOARD_MODKEY_SUPER, OBT_KEYBOARD_MODKEY_HYPER, OBT_KEYBOARD_MODKEY_META, OBT_KEYBOARD_MODKEY_ALT, OBT_KEYBOARD_NUM_MODKEYS } ObtModkeysKey; typedef struct _ObtIC ObtIC; void obt_keyboard_reload(void); /*! Get the modifier mask(s) for a keyboard event. (eg. a keycode bound to Alt_L could return a mask of (Mod1Mask | Mask3Mask)) */ guint obt_keyboard_keyevent_to_modmask(XEvent *e); /*! Strip off all modifiers except for the modifier keys. This strips stuff like Button1Mask, and also LockMask, NumlockMask, and ScrolllockMask */ guint obt_keyboard_only_modmasks(guint mask); /*! Get the modifier masks for a modifier key. This includes both the left and right keys when there are both. */ guint obt_keyboard_modkey_to_modmask(ObtModkeysKey key); /*! Convert a KeySym to all the KeyCodes which generate it. */ KeyCode* obt_keyboard_keysym_to_keycode(KeySym sym); /*! Translate a KeyPress event to the unicode character it represents */ gunichar obt_keyboard_keypress_to_unichar(ObtIC *ic, XEvent *ev); /*! Translate a KeyPress event to the KeySym that it represents. Use this for control keys, not for getting text input! */ KeySym obt_keyboard_keypress_to_keysym(XEvent *ev); /*! Create an input context for a window. @client The top-level client window for the input context. @focus The subwindow within the client for the input context. */ ObtIC* obt_keyboard_context_new(Window client, Window focus); void obt_keyboard_context_ref(ObtIC *ic); void obt_keyboard_context_unref(ObtIC *ic); G_END_DECLS #endif /* __obt_keyboard_h */ openbox-3.6.1/obt/xml.h0000644000175300001440000000733412426440016011656 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/xml.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_xml_h #define __obt_xml_h #include #include G_BEGIN_DECLS typedef struct _ObtXmlInst ObtXmlInst; typedef void (*ObtXmlCallback)(xmlNodePtr node, gpointer data); ObtXmlInst* obt_xml_instance_new(void); void obt_xml_instance_ref(ObtXmlInst *inst); void obt_xml_instance_unref(ObtXmlInst *inst); gboolean obt_xml_load_file(ObtXmlInst *inst, const gchar *path, const gchar *root_node); gboolean obt_xml_load_config_file(ObtXmlInst *inst, const gchar *domain, const gchar *filename, const gchar *root_node); gboolean obt_xml_load_data_file(ObtXmlInst *inst, const gchar *domain, const gchar *filename, const gchar *root_node); gboolean obt_xml_load_theme_file(ObtXmlInst *inst, const gchar *theme, const gchar *domain, const gchar *filename, const gchar *root_node); gboolean obt_xml_load_mem(ObtXmlInst *inst, gpointer data, guint len, const gchar *root_node); /* Returns true if an error is present. */ gboolean obt_xml_last_error(ObtXmlInst *inst); gchar* obt_xml_last_error_file(ObtXmlInst *inst); gint obt_xml_last_error_line(ObtXmlInst *inst); gchar* obt_xml_last_error_message(ObtXmlInst *inst); gboolean obt_xml_save_file(ObtXmlInst *inst, const gchar *path, gboolean pretty); xmlDocPtr obt_xml_doc(ObtXmlInst *inst); xmlNodePtr obt_xml_root(ObtXmlInst *inst); void obt_xml_close(ObtXmlInst *inst); void obt_xml_register(ObtXmlInst *inst, const gchar *tag, ObtXmlCallback func, gpointer data); void obt_xml_unregister(ObtXmlInst *inst, const gchar *tag); void obt_xml_tree(ObtXmlInst *i, xmlNodePtr node); void obt_xml_tree_from_root(ObtXmlInst *i); /* helpers */ xmlNodePtr obt_xml_find_node (xmlNodePtr node, const gchar *name); gboolean obt_xml_node_contains (xmlNodePtr node, const gchar *val); gchar *obt_xml_node_string_unstripped(xmlNodePtr node); gchar *obt_xml_node_string (xmlNodePtr node); gint obt_xml_node_int (xmlNodePtr node); gboolean obt_xml_node_bool (xmlNodePtr node); gboolean obt_xml_attr_contains (xmlNodePtr node, const gchar *name, const gchar *val); gboolean obt_xml_attr_string_unstripped(xmlNodePtr node, const gchar *name, gchar **value); gboolean obt_xml_attr_string (xmlNodePtr node, const gchar *name, gchar **value); gboolean obt_xml_attr_int (xmlNodePtr node, const gchar *name, gint *value); gboolean obt_xml_attr_bool (xmlNodePtr node, const gchar *name, gboolean *value); G_END_DECLS #endif openbox-3.6.1/obt/paths.h0000644000175300001440000000311012426440016012161 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/paths.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_paths_h #define __obt_paths_h #include G_BEGIN_DECLS typedef struct _ObtPaths ObtPaths; ObtPaths* obt_paths_new(void); void obt_paths_ref(ObtPaths *p); void obt_paths_unref(ObtPaths *p); const gchar* obt_paths_config_home(ObtPaths *p); const gchar* obt_paths_data_home(ObtPaths *p); const gchar* obt_paths_cache_home(ObtPaths *p); GSList* obt_paths_config_dirs(ObtPaths *p); GSList* obt_paths_data_dirs(ObtPaths *p); GSList* obt_paths_autostart_dirs(ObtPaths *p); gchar *obt_paths_expand_tilde(const gchar *f); gboolean obt_paths_mkdir(const gchar *path, gint mode); gboolean obt_paths_mkdir_path(const gchar *path, gint mode); /*! Returns TRUE if the @path points to an executable file. If the @path is not an absolute path, then it is searched for in $PATH. */ gboolean obt_paths_try_exec(ObtPaths *p, const gchar *path); G_END_DECLS #endif openbox-3.6.1/obt/prop.h0000644000175300001440000002600512426440016012032 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/prop.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_prop_h #define __obt_prop_h #include #include G_BEGIN_DECLS typedef enum { /* types */ OBT_PROP_CARDINAL, /*!< The atom which represents the Cardinal data type */ OBT_PROP_WINDOW, /*!< The atom which represents window ids */ OBT_PROP_PIXMAP, /*!< The atom which represents pixmap ids */ OBT_PROP_ATOM, /*!< The atom which represents atom values */ OBT_PROP_STRING, /*!< The atom which represents latin1 strings */ OBT_PROP_COMPOUND_TEXT, /*!< The atom which represents locale-encoded strings */ OBT_PROP_UTF8_STRING, /*!< The atom which represents utf8-encoded strings*/ /* selection stuff */ OBT_PROP_MANAGER, /* window hints */ OBT_PROP_WM_COLORMAP_WINDOWS, OBT_PROP_WM_PROTOCOLS, OBT_PROP_WM_STATE, OBT_PROP_WM_DELETE_WINDOW, OBT_PROP_WM_TAKE_FOCUS, OBT_PROP_WM_CHANGE_STATE, OBT_PROP_WM_NAME, OBT_PROP_WM_ICON_NAME, OBT_PROP_WM_CLASS, OBT_PROP_WM_WINDOW_ROLE, OBT_PROP_WM_CLIENT_MACHINE, OBT_PROP_WM_COMMAND, OBT_PROP_WM_CLIENT_LEADER, OBT_PROP_WM_TRANSIENT_FOR, OBT_PROP_MOTIF_WM_HINTS, OBT_PROP_MOTIF_WM_INFO, /* SM atoms */ OBT_PROP_SM_CLIENT_ID, /* NETWM atoms */ /* Atoms that are used inside messages - these don't go in net_supported */ OBT_PROP_NET_WM_MOVERESIZE_SIZE_TOPLEFT, OBT_PROP_NET_WM_MOVERESIZE_SIZE_TOP, OBT_PROP_NET_WM_MOVERESIZE_SIZE_TOPRIGHT, OBT_PROP_NET_WM_MOVERESIZE_SIZE_RIGHT, OBT_PROP_NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT, OBT_PROP_NET_WM_MOVERESIZE_SIZE_BOTTOM, OBT_PROP_NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT, OBT_PROP_NET_WM_MOVERESIZE_SIZE_LEFT, OBT_PROP_NET_WM_MOVERESIZE_MOVE, OBT_PROP_NET_WM_MOVERESIZE_SIZE_KEYBOARD, OBT_PROP_NET_WM_MOVERESIZE_MOVE_KEYBOARD, OBT_PROP_NET_WM_MOVERESIZE_CANCEL, OBT_PROP_NET_WM_STATE_ADD, OBT_PROP_NET_WM_STATE_REMOVE, OBT_PROP_NET_WM_STATE_TOGGLE, OBT_PROP_NET_WM_ORIENTATION_HORZ, OBT_PROP_NET_WM_ORIENTATION_VERT, OBT_PROP_NET_WM_TOPLEFT, OBT_PROP_NET_WM_TOPRIGHT, OBT_PROP_NET_WM_BOTTOMRIGHT, OBT_PROP_NET_WM_BOTTOMLEFT, OBT_PROP_NET_WM_WINDOW_TYPE_POPUP_MENU, OBT_PROP_PRIVATE_PADDING1, OBT_PROP_PRIVATE_PADDING2, OBT_PROP_PRIVATE_PADDING3, OBT_PROP_PRIVATE_PADDING4, OBT_PROP_PRIVATE_PADDING5, OBT_PROP_PRIVATE_PADDING6, OBT_PROP_PRIVATE_PADDING7, OBT_PROP_PRIVATE_PADDING8, OBT_PROP_PRIVATE_PADDING9, OBT_PROP_PRIVATE_PADDING10, OBT_PROP_PRIVATE_PADDING11, OBT_PROP_PRIVATE_PADDING12, /* Everything below here must go in net_supported on the root window */ /* root window properties */ OBT_PROP_NET_SUPPORTED, OBT_PROP_NET_CLIENT_LIST, OBT_PROP_NET_CLIENT_LIST_STACKING, OBT_PROP_NET_NUMBER_OF_DESKTOPS, OBT_PROP_NET_DESKTOP_GEOMETRY, OBT_PROP_NET_DESKTOP_VIEWPORT, OBT_PROP_NET_CURRENT_DESKTOP, OBT_PROP_NET_DESKTOP_NAMES, OBT_PROP_NET_ACTIVE_WINDOW, /* Atom net_restack_window;*/ OBT_PROP_NET_WORKAREA, OBT_PROP_NET_SUPPORTING_WM_CHECK, OBT_PROP_NET_DESKTOP_LAYOUT, OBT_PROP_NET_SHOWING_DESKTOP, /* root window messages */ OBT_PROP_NET_CLOSE_WINDOW, OBT_PROP_NET_WM_MOVERESIZE, OBT_PROP_NET_MOVERESIZE_WINDOW, OBT_PROP_NET_REQUEST_FRAME_EXTENTS, OBT_PROP_NET_RESTACK_WINDOW, /* helpful hints to apps that aren't used for anything */ OBT_PROP_NET_WM_FULL_PLACEMENT, /* startup-notification extension */ OBT_PROP_NET_STARTUP_ID, /* application window properties */ OBT_PROP_NET_WM_NAME, OBT_PROP_NET_WM_VISIBLE_NAME, OBT_PROP_NET_WM_ICON_NAME, OBT_PROP_NET_WM_VISIBLE_ICON_NAME, OBT_PROP_NET_WM_DESKTOP, OBT_PROP_NET_WM_WINDOW_TYPE, OBT_PROP_NET_WM_STATE, OBT_PROP_NET_WM_STRUT, OBT_PROP_NET_WM_STRUT_PARTIAL, OBT_PROP_NET_WM_ICON, OBT_PROP_NET_WM_ICON_GEOMETRY, OBT_PROP_NET_WM_PID, OBT_PROP_NET_WM_ALLOWED_ACTIONS, OBT_PROP_NET_WM_WINDOW_OPACITY, OBT_PROP_NET_WM_USER_TIME, /* OBT_PROP_NET_WM_USER_TIME_WINDOW, */ OBT_PROP_NET_FRAME_EXTENTS, /* application protocols */ OBT_PROP_NET_WM_PING, #ifdef SYNC OBT_PROP_NET_WM_SYNC_REQUEST, OBT_PROP_NET_WM_SYNC_REQUEST_COUNTER, #endif OBT_PROP_NET_WM_WINDOW_TYPE_DESKTOP, OBT_PROP_NET_WM_WINDOW_TYPE_DOCK, OBT_PROP_NET_WM_WINDOW_TYPE_TOOLBAR, OBT_PROP_NET_WM_WINDOW_TYPE_MENU, OBT_PROP_NET_WM_WINDOW_TYPE_UTILITY, OBT_PROP_NET_WM_WINDOW_TYPE_SPLASH, OBT_PROP_NET_WM_WINDOW_TYPE_DIALOG, OBT_PROP_NET_WM_WINDOW_TYPE_NORMAL, OBT_PROP_NET_WM_ACTION_MOVE, OBT_PROP_NET_WM_ACTION_RESIZE, OBT_PROP_NET_WM_ACTION_MINIMIZE, OBT_PROP_NET_WM_ACTION_SHADE, /* OBT_PROP_NET_WM_ACTION_STICK,*/ OBT_PROP_NET_WM_ACTION_MAXIMIZE_HORZ, OBT_PROP_NET_WM_ACTION_MAXIMIZE_VERT, OBT_PROP_NET_WM_ACTION_FULLSCREEN, OBT_PROP_NET_WM_ACTION_CHANGE_DESKTOP, OBT_PROP_NET_WM_ACTION_CLOSE, OBT_PROP_NET_WM_ACTION_ABOVE, OBT_PROP_NET_WM_ACTION_BELOW, OBT_PROP_NET_WM_STATE_MODAL, /* OBT_PROP_NET_WM_STATE_STICKY,*/ OBT_PROP_NET_WM_STATE_MAXIMIZED_VERT, OBT_PROP_NET_WM_STATE_MAXIMIZED_HORZ, OBT_PROP_NET_WM_STATE_SHADED, OBT_PROP_NET_WM_STATE_SKIP_TASKBAR, OBT_PROP_NET_WM_STATE_SKIP_PAGER, OBT_PROP_NET_WM_STATE_HIDDEN, OBT_PROP_NET_WM_STATE_FULLSCREEN, OBT_PROP_NET_WM_STATE_ABOVE, OBT_PROP_NET_WM_STATE_BELOW, OBT_PROP_NET_WM_STATE_DEMANDS_ATTENTION, /* KDE atoms */ OBT_PROP_KDE_WM_CHANGE_STATE, OBT_PROP_KDE_NET_WM_FRAME_STRUT, OBT_PROP_KDE_NET_WM_WINDOW_TYPE_OVERRIDE, /* OBT_PROP_ROOTPMAPID, OBT_PROP_ESETROOTID, */ /* Openbox specific atoms */ OBT_PROP_OB_WM_ACTION_UNDECORATE, OBT_PROP_OB_WM_STATE_UNDECORATED, OBT_PROP_OPENBOX_PID, /* this is depreecated in favour of ob_control */ OBT_PROP_OB_THEME, OBT_PROP_OB_CONFIG_FILE, OBT_PROP_OB_CONTROL, OBT_PROP_OB_VERSION, OBT_PROP_OB_APP_ROLE, OBT_PROP_OB_APP_TITLE, OBT_PROP_OB_APP_NAME, OBT_PROP_OB_APP_CLASS, OBT_PROP_OB_APP_GROUP_NAME, OBT_PROP_OB_APP_GROUP_CLASS, OBT_PROP_OB_APP_TYPE, OBT_PROP_NUM_ATOMS } ObtPropAtom; Atom obt_prop_atom(ObtPropAtom a); typedef enum { /*! STRING is latin1 encoded. It cannot contain control characters except for tab and line-feed. */ OBT_PROP_TEXT_STRING = 1, /*! STRING text restricted to characters in the X Portable Character Set, which is a subset of latin1. http://static.cray-cyber.org/Documentation/NEC_SX_R10_1/G1AE02E/CHAP1.HTML */ OBT_PROP_TEXT_STRING_XPCS = 2, /*! STRING text restricted to not allow any control characters to be present. */ OBT_PROP_TEXT_STRING_NO_CC = 3, /* COMPOUND_TEXT is encoded in the current locale setting. */ OBT_PROP_TEXT_COMPOUND_TEXT = 4, /* UTF8_STRING is encoded as utf-8. */ OBT_PROP_TEXT_UTF8_STRING = 5, } ObtPropTextType; gboolean obt_prop_get32(Window win, Atom prop, Atom type, guint32 *ret); gboolean obt_prop_get_array32(Window win, Atom prop, Atom type, guint32 **ret, guint *nret); gboolean obt_prop_get_text(Window win, Atom prop, ObtPropTextType type, gchar **ret); gboolean obt_prop_get_array_text(Window win, Atom prop, ObtPropTextType type, gchar ***ret); void obt_prop_set32(Window win, Atom prop, Atom type, gulong val); void obt_prop_set_array32(Window win, Atom prop, Atom type, gulong *val, guint num); void obt_prop_set_text(Window win, Atom prop, const gchar *str); void obt_prop_set_array_text(Window win, Atom prop, const gchar *const *strs); void obt_prop_erase(Window win, Atom prop); void obt_prop_message(gint screen, Window about, Atom messagetype, glong data0, glong data1, glong data2, glong data3, glong data4, glong mask); void obt_prop_message_to(Window to, Window about, Atom messagetype, glong data0, glong data1, glong data2, glong data3, glong data4, glong mask); #define OBT_PROP_ATOM(prop) obt_prop_atom(OBT_PROP_##prop) #define OBT_PROP_GET32(win, prop, type, ret) \ (obt_prop_get32(win, OBT_PROP_ATOM(prop), OBT_PROP_ATOM(type), ret)) #define OBT_PROP_GETA32(win, prop, type, ret, nret) \ (obt_prop_get_array32(win, OBT_PROP_ATOM(prop), OBT_PROP_ATOM(type), \ ret, nret)) #define OBT_PROP_GETS(win, prop, ret) \ (obt_prop_get_text(win, OBT_PROP_ATOM(prop), 0, ret)) #define OBT_PROP_GETSS(win, prop, ret) \ (obt_prop_get_array_text(win, OBT_PROP_ATOM(prop), 0, ret)) #define OBT_PROP_GETS_TYPE(win, prop, type, ret) \ (obt_prop_get_text(win, OBT_PROP_ATOM(prop), OBT_PROP_TEXT_##type, ret)) #define OBT_PROP_GETSS_TYPE(win, prop, type, ret) \ (obt_prop_get_array_text(win, OBT_PROP_ATOM(prop), \ OBT_PROP_TEXT_##type, ret)) #define OBT_PROP_GETS_UTF8(win, prop, ret) \ OBT_PROP_GETS_TYPE(win, prop, UTF8_STRING, ret) #define OBT_PROP_GETSS_UTF8(win, prop, ret) \ OBT_PROP_GETSS_TYPE(win, prop, UTF8_STRING, ret) #define OBT_PROP_GETS_XPCS(win, prop, ret) \ OBT_PROP_GETS_TYPE(win, prop, STRING_XPCS, ret) #define OBT_PROP_SET32(win, prop, type, val) \ (obt_prop_set32(win, OBT_PROP_ATOM(prop), OBT_PROP_ATOM(type), val)) #define OBT_PROP_SETA32(win, prop, type, val, num) \ (obt_prop_set_array32(win, OBT_PROP_ATOM(prop), OBT_PROP_ATOM(type), \ val, num)) #define OBT_PROP_SETS(win, prop, val) \ (obt_prop_set_text(win, OBT_PROP_ATOM(prop), val)) #define OBT_PROP_SETSS(win, prop, strs) \ (obt_prop_set_array_text(win, OBT_PROP_ATOM(prop), strs)) #define OBT_PROP_ERASE(win, prop) (obt_prop_erase(win, OBT_PROP_ATOM(prop))) #define OBT_PROP_MSG(screen, about, msgtype, data0, data1, data2, data3, \ data4) \ (obt_prop_message(screen, about, OBT_PROP_ATOM(msgtype), \ data0, data1, data2, data3, data4, \ SubstructureNotifyMask | SubstructureRedirectMask)) #define OBT_PROP_MSG_TO(to, about, msgtype, data0, data1, data2, data3, \ data4, mask) \ (obt_prop_message_to(to, about, OBT_PROP_ATOM(msgtype), \ data0, data1, data2, data3, data4, mask)) G_END_DECLS #endif /* __obt_prop_h */ openbox-3.6.1/obt/signal.h0000644000175300001440000000322412426440016012325 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/signal.h for the Openbox window manager Copyright (c) 2010 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_signal_h #define __obt_signal_h #include G_BEGIN_DECLS typedef void (*ObtSignalHandler)(gint signal, gpointer data); /*! Listen for signals and report them through the default GMainContext within main program thread (except signals that require immediate exit). The app should not set its own signal handler function or it will interfere with this one. */ void obt_signal_listen(void); /*! Stop listening to signals and clean up */ void obt_signal_stop(void); /*! Adds a signal handler for a signal. The callback function @func will be called when the signal @sig is fired. @sig must not be a signal that would cause the core to dump as these are handled internally. */ void obt_signal_add_callback(gint sig, ObtSignalHandler func, gpointer data); /*! Removes the most recently added callback with the given function. */ void obt_signal_remove_callback(gint sig, ObtSignalHandler func); G_END_DECLS #endif openbox-3.6.1/obt/util.h0000644000175300001440000000201512426440016012022 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/util.h for the Openbox window manager Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_util_h #define __obt_util_h #include #ifdef HAVE_STRING_H # include /* for memset() */ #endif G_BEGIN_DECLS /* Util funcs */ #define obt_free g_free #define obt_free0(p, type, num) memset((p), 0, sizeof(type) * (num)), g_free(p) G_END_DECLS #endif /*__obt_util_h*/ openbox-3.6.1/obt/version.h0000644000175300001440000000074012544730653012547 00000000000000#ifndef obt__version_h #define obt__version_h #define OBT_MAJOR_VERSION 3 #define OBT_MINOR_VERSION 6 #define OBT_MICRO_VERSION 4 #define OBT_VERSION OBT_MAJOR_VERSION.OBT_MINOR_VERSION.OBT_MICRO_VERSION #define OBT_CHECK_VERSION(major,minor,micro) \ (OBT_MAJOR_VERSION > (major) || \ (OBT_MAJOR_VERSION == (major) && OBT_MINOR_VERSION > (minor)) || \ (OBT_MAJOR_VERSION == (major) && OBT_MINOR_VERSION == (minor) && \ OBT_MICRO_VERSION >= (micro))) #endif openbox-3.6.1/obt/xqueue.h0000644000175300001440000000726412426440016012374 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/xqueue.h for the Openbox window manager Copyright (c) 2010 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_xqueue_h #define __obt_xqueue_h #include #include G_BEGIN_DECLS typedef struct _ObtXQueueWindowType { Window window; int type; } ObtXQueueWindowType; typedef struct _ObtXQueueWindowMessage { Window window; Atom message; } ObtXQueueWindowMessage; typedef gboolean (*xqueue_match_func)(XEvent *e, gpointer data); /*! Returns TRUE if the event matches the window pointed to by @data */ gboolean xqueue_match_window(XEvent *e, gpointer data); /*! Returns TRUE if the event matches the type contained in the value of @data */ gboolean xqueue_match_type(XEvent *e, gpointer data); /*! Returns TRUE if the event matches the type and window in the ObtXQueueWindowType pointed to by @data */ gboolean xqueue_match_window_type(XEvent *e, gpointer data); /*! Returns TRUE if a ClientMessage event matches the message and window in the ObtXQueueWindowMessage pointed to by @data */ gboolean xqueue_match_window_message(XEvent *e, gpointer data); /*! Returns TRUE and passes the next event in the queue and removes it from the queue. On error, returns FALSE */ gboolean xqueue_next(XEvent *event_return); /*! Returns TRUE and passes the next event in the local queue and removes it from the queue. If no event is in the local queue, it returns FALSE. */ gboolean xqueue_next_local(XEvent *event_return); /*! Returns TRUE if there is anything in the local event queue, and FALSE otherwise. */ gboolean xqueue_pending_local(void); /*! Returns TRUE and passes the next event in the queue, or FALSE if there is an error */ gboolean xqueue_peek(XEvent *event_return); /*! Returns TRUE and passes the next event in the queue, if there is one, and returns FALSE otherwise. */ gboolean xqueue_peek_local(XEvent *event_return); /*! Returns TRUE if xqueue_match_func returns TRUE for some event in the current event queue or in the stream of events from the server, and passes the matching event without removing it from the queue. This blocks until an event is found or an error occurs. */ gboolean xqueue_exists(xqueue_match_func match, gpointer data); /*! Returns TRUE if xqueue_match_func returns TRUE for some event in the current event queue, and passes the matching event without removing it from the queue. */ gboolean xqueue_exists_local(xqueue_match_func match, gpointer data); /*! Returns TRUE if xqueue_match_func returns TRUE for some event in the current event queue, and passes the matching event while removing it from the queue. */ gboolean xqueue_remove_local(XEvent *event_return, xqueue_match_func match, gpointer data); typedef void (*ObtXQueueFunc)(const XEvent *ev, gpointer data); /*! Begin listening for X events in the default GMainContext, and feed them to the registered callback functions, added with xqueue_add_callback(). */ void xqueue_listen(void); void xqueue_add_callback(ObtXQueueFunc f, gpointer data); void xqueue_remove_callback(ObtXQueueFunc f, gpointer data); G_END_DECLS #endif openbox-3.6.1/obt/bsearch.h0000644000175300001440000000732512426440016012465 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/bsearch.h for the Openbox window manager Copyright (c) 2010 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_bsearch_h #define __obt_bsearch_h #include G_BEGIN_DECLS /*! Setup to do a binary search on an array. */ #define BSEARCH_SETUP() \ register guint l_BSEARCH, r_BSEARCH, out_BSEARCH; \ register gboolean nearest_BSEARCH; (void)nearest_BSEARCH; /*! Helper macro that just returns the input */ #define BSEARCH_IS_T(t) (t) /*! Search an array @ar holding elements of type @t, starting at index @start, with @size elements, looking for value @val. */ #define BSEARCH(t, ar, start, size, val) \ BSEARCH_CMP(t, ar, start, size, val, BSEARCH_IS_T) /*! Search an array @ar, starting at index @start, with @size elements, looking for value @val of type @t, using the macro @to_t to convert values in the arrau @ar to type @t. If all elements in @ar are less than @val, then BSEARCH_AT() will be the last element in @ar. If all elements in @ar are greater than @val, then BSEARCH_AT() will be the first element in @ar. Otherwise, if the element @val is not found then BSEARCH_AT() will be set to the position before the first element larger than @val. */ #define BSEARCH_CMP(t, ar, start, size, val, to_t) \ do { \ out_BSEARCH = (start); \ l_BSEARCH = (size) > 0 ? (start) : (start + 1); \ r_BSEARCH = (size) > 0 ? (start)+(size)-1 : (start); \ nearest_BSEARCH = FALSE; \ while (l_BSEARCH <= r_BSEARCH) { \ /* m is in the middle, but to the left if there's an even number \ of elements */ \ out_BSEARCH = l_BSEARCH + (r_BSEARCH - l_BSEARCH)/2; \ if ((val) == to_t((ar)[out_BSEARCH])) { \ break; \ } \ else if ((val) < to_t((ar)[out_BSEARCH])) { \ if (out_BSEARCH > start) { \ r_BSEARCH = out_BSEARCH-1; /* search to the left side */ \ } else { \ /* reached the start of the array */ \ r_BSEARCH = out_BSEARCH; \ l_BSEARCH = out_BSEARCH + 1; \ } \ } \ else { \ l_BSEARCH = out_BSEARCH+1; /* search to the right side */ \ } \ } \ if ((size) > 0 && (val) != to_t((ar)[out_BSEARCH])) { \ if ((val) > to_t((ar)[out_BSEARCH])) { \ nearest_BSEARCH = TRUE; \ } \ else if (out_BSEARCH > start) { \ --out_BSEARCH; \ nearest_BSEARCH = (val) > to_t((ar)[out_BSEARCH]); \ } \ } \ } while (0) /*! Returns true if the element last searched for was found in the array */ #define BSEARCH_FOUND() (l_BSEARCH <= r_BSEARCH) /*! Returns the position in the array at which the element last searched for was found. */ #define BSEARCH_AT() (out_BSEARCH) /*! Returns true if the element at BSEARCH_AT() in the array is the largest value in the array smaller than the search key. Returns false if there was nothing in the array smaller than the search key. Should only be used when BSEARCH_FOUND() is false. */ #define BSEARCH_FOUND_NEAREST_SMALLER() (!BSEARCH_FOUND() && nearest_BSEARCH) G_END_DECLS #endif openbox-3.6.1/obt/display.c0000644000175300001440000001144112426440016012510 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/display.c for the Openbox window manager Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "obt/display.h" #include "obt/prop.h" #include "obt/internal.h" #include "obt/keyboard.h" #include "obt/xqueue.h" #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_FCNTL_H # include #endif #ifdef HAVE_UNISTD_H # include #endif /* from xqueue.c */ extern void xqueue_init(void); extern void xqueue_destroy(void); Display* obt_display = NULL; gboolean obt_display_error_occured = FALSE; gboolean obt_display_extension_xkb = FALSE; gint obt_display_extension_xkb_basep; gboolean obt_display_extension_shape = FALSE; gint obt_display_extension_shape_basep; gboolean obt_display_extension_xinerama = FALSE; gint obt_display_extension_xinerama_basep; gboolean obt_display_extension_randr = FALSE; gint obt_display_extension_randr_basep; gboolean obt_display_extension_sync = FALSE; gint obt_display_extension_sync_basep; static gint xerror_handler(Display *d, XErrorEvent *e); static gboolean xerror_ignore = FALSE; gboolean obt_display_open(const char *display_name) { gchar *n; Display *d = NULL; n = display_name ? g_strdup(display_name) : NULL; obt_display = d = XOpenDisplay(n); if (d) { gint junk, major, minor; (void)junk, (void)major, (void)minor; if (fcntl(ConnectionNumber(d), F_SETFD, 1) == -1) g_message("Failed to set display as close-on-exec"); XSetErrorHandler(xerror_handler); /* read what extensions are present */ #ifdef XKB major = XkbMajorVersion; minor = XkbMinorVersion; obt_display_extension_xkb = XkbQueryExtension(d, &junk, &obt_display_extension_xkb_basep, &junk, &major, &minor); if (!obt_display_extension_xkb) g_message("XKB extension is not present on the server or too old"); #endif #ifdef SHAPE obt_display_extension_shape = XShapeQueryExtension(d, &obt_display_extension_shape_basep, &junk); if (!obt_display_extension_shape) g_message("X Shape extension is not present on the server"); #endif #ifdef XINERAMA obt_display_extension_xinerama = XineramaQueryExtension(d, &obt_display_extension_xinerama_basep, &junk) && XineramaIsActive(d); if (!obt_display_extension_xinerama) g_message("Xinerama extension is not present on the server"); #endif #ifdef XRANDR obt_display_extension_randr = XRRQueryExtension(d, &obt_display_extension_randr_basep, &junk); if (!obt_display_extension_randr) g_message("XRandR extension is not present on the server"); #endif #ifdef SYNC obt_display_extension_sync = XSyncQueryExtension(d, &obt_display_extension_sync_basep, &junk) && XSyncInitialize(d, &junk, &junk); if (!obt_display_extension_sync) g_message("X Sync extension is not present on the server or is an " "incompatible version"); #endif obt_prop_startup(); obt_keyboard_reload(); } g_free(n); if (obt_display) xqueue_init(); return obt_display != NULL; } void obt_display_close(void) { obt_keyboard_shutdown(); if (obt_display) { xqueue_destroy(); XCloseDisplay(obt_display); } } static gint xerror_handler(Display *d, XErrorEvent *e) { #ifdef DEBUG gchar errtxt[128]; XGetErrorText(d, e->error_code, errtxt, 127); if (!xerror_ignore) { if (e->error_code == BadWindow) /*g_debug(_("X Error: %s\n"), errtxt)*/; else g_error("X Error: %s", errtxt); } else g_debug("Ignoring XError code %d '%s'", e->error_code, errtxt); #else (void)d; (void)e; #endif obt_display_error_occured = TRUE; return 0; } void obt_display_ignore_errors(gboolean ignore) { XSync(obt_display, FALSE); xerror_ignore = ignore; if (ignore) obt_display_error_occured = FALSE; } openbox-3.6.1/obt/internal.h0000644000175300001440000000163612426440016012671 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/internal.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __obt_internal_h #define __obt_internal_h void obt_prop_startup(void); void obt_keyboard_shutdown(void); #endif /* __obt_internal_h */ openbox-3.6.1/obt/keyboard.c0000644000175300001440000003130712426440016012646 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/keyboard.c for the Openbox window manager Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "obt/display.h" #include "obt/keyboard.h" #include #include struct _ObtIC { guint ref; XIC xic; Window client; Window focus; }; /* These masks are constants and the modifier keys are bound to them as anyone sees fit: ShiftMask (1<<0), LockMask (1<<1), ControlMask (1<<2), Mod1Mask (1<<3), Mod2Mask (1<<4), Mod3Mask (1<<5), Mod4Mask (1<<6), Mod5Mask (1<<7) */ #define NUM_MASKS 8 #define ALL_MASKS 0xff /* an or'ing of all 8 keyboard masks */ /* Get the bitflag for the n'th modifier mask */ #define nth_mask(n) (1 << n) static void set_modkey_mask(guchar mask, KeySym sym); static void xim_init(void); void obt_keyboard_shutdown(); void obt_keyboard_context_renew(ObtIC *ic); static XModifierKeymap *modmap; static KeySym *keymap; static gint min_keycode, max_keycode, keysyms_per_keycode; /*! This is a bitmask of the different masks for each modifier key */ static guchar modkeys_keys[OBT_KEYBOARD_NUM_MODKEYS]; static gboolean alt_l = FALSE; static gboolean meta_l = FALSE; static gboolean super_l = FALSE; static gboolean hyper_l = FALSE; static gboolean started = FALSE; static XIM xim = NULL; static XIMStyle xim_style = 0; static GSList *xic_all = NULL; void obt_keyboard_reload(void) { gint i, j, k; if (started) obt_keyboard_shutdown(); /* free stuff */ started = TRUE; xim_init(); /* reset the keys to not be bound to any masks */ for (i = 0; i < OBT_KEYBOARD_NUM_MODKEYS; ++i) modkeys_keys[i] = 0; modmap = XGetModifierMapping(obt_display); /* note: modmap->max_keypermod can be 0 when there is no valid key layout available */ XDisplayKeycodes(obt_display, &min_keycode, &max_keycode); keymap = XGetKeyboardMapping(obt_display, min_keycode, max_keycode - min_keycode + 1, &keysyms_per_keycode); alt_l = meta_l = super_l = hyper_l = FALSE; /* go through each of the modifier masks (eg ShiftMask, CapsMask...) */ for (i = 0; i < NUM_MASKS; ++i) { /* go through each keycode that is bound to the mask */ for (j = 0; j < modmap->max_keypermod; ++j) { KeySym sym; /* get a keycode that is bound to the mask (i) */ KeyCode keycode = modmap->modifiermap[i*modmap->max_keypermod + j]; if (keycode) { /* go through each keysym bound to the given keycode */ for (k = 0; k < keysyms_per_keycode; ++k) { sym = keymap[(keycode-min_keycode) * keysyms_per_keycode + k]; if (sym != NoSymbol) { /* bind the key to the mask (e.g. Alt_L => Mod1Mask) */ set_modkey_mask(nth_mask(i), sym); } } } } } /* CapsLock, Shift, and Control are special and hard-coded */ modkeys_keys[OBT_KEYBOARD_MODKEY_CAPSLOCK] = LockMask; modkeys_keys[OBT_KEYBOARD_MODKEY_SHIFT] = ShiftMask; modkeys_keys[OBT_KEYBOARD_MODKEY_CONTROL] = ControlMask; } void obt_keyboard_shutdown(void) { GSList *it; XFreeModifiermap(modmap); modmap = NULL; XFree(keymap); keymap = NULL; for (it = xic_all; it; it = g_slist_next(it)) { ObtIC* ic = it->data; if (ic->xic) { XDestroyIC(ic->xic); ic->xic = NULL; } } if (xim) XCloseIM(xim); xim = NULL; xim_style = 0; started = FALSE; } void xim_init(void) { GSList *it; gchar *aname, *aclass; aname = g_strdup(g_get_prgname()); if (!aname) aname = g_strdup("obt"); aclass = g_strdup(aname); if (g_ascii_islower(aclass[0])) aclass[0] = g_ascii_toupper(aclass[0]); xim = XOpenIM(obt_display, NULL, aname, aclass); if (!xim) g_message("Failed to open an Input Method"); else { XIMStyles *xim_styles = NULL; char *r; /* get the input method styles */ r = XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); if (r || !xim_styles) g_message("Input Method does not support any styles"); if (xim_styles) { int i; /* find a style that doesnt need preedit or status */ for (i = 0; i < xim_styles->count_styles; ++i) { if (xim_styles->supported_styles[i] == (XIMPreeditNothing | XIMStatusNothing)) { xim_style = xim_styles->supported_styles[i]; break; } } XFree(xim_styles); } if (!xim_style) { g_message("Input Method does not support a usable style"); XCloseIM(xim); xim = NULL; } } /* any existing contexts need to be recreated for the new input method */ for (it = xic_all; it; it = g_slist_next(it)) obt_keyboard_context_renew(it->data); g_free(aclass); g_free(aname); } guint obt_keyboard_keyevent_to_modmask(XEvent *e) { gint i, masknum; g_return_val_if_fail(e->type == KeyPress || e->type == KeyRelease, OBT_KEYBOARD_MODKEY_NONE); for (masknum = 0; masknum < NUM_MASKS; ++masknum) for (i = 0; i < modmap->max_keypermod; ++i) { KeyCode c = modmap->modifiermap[masknum*modmap->max_keypermod + i]; if (c == e->xkey.keycode) return 1<type == KeyPress, 0); if (!ic) g_warning("Using obt_keyboard_keypress_to_unichar() without an " "Input Context. No i18n support!"); if (ic && ic->xic) { buf = fixbuf; bufsz = sizeof(fixbuf); #ifdef X_HAVE_UTF8_STRING len = Xutf8LookupString(ic->xic, &ev->xkey, buf, bufsz, &sym, &status); #else len = XmbLookupString(ic->xic, &ev->xkey, buf, bufsz, &sym, &status); #endif if (status == XBufferOverflow) { buf = g_new(char, len); bufsz = len; #ifdef X_HAVE_UTF8_STRING len = Xutf8LookupString(ic->xic, &ev->xkey, buf, bufsz, &sym, &status); #else len = XmbLookupString(ic->xic, &ev->xkey, buf, bufsz, &sym, &status); #endif } if ((status == XLookupChars || status == XLookupBoth)) { if ((guchar)buf[0] >= 32) { /* not an ascii control character */ #ifndef X_HAVE_UTF8_STRING /* convert to utf8 */ gchar *buf2 = buf; buf = g_locale_to_utf8(buf2, len, NULL, NULL, NULL); g_free(buf2); #endif got_string = TRUE; } } else if (status == XLookupKeySym) /* this key doesn't have a text representation, it is a command key of some sort */; else g_message("Bad keycode lookup. Keysym 0x%x Status: %s\n", (guint) sym, (status == XBufferOverflow ? "BufferOverflow" : status == XLookupNone ? "XLookupNone" : status == XLookupKeySym ? "XLookupKeySym" : "Unknown status")); } else { buf = fixbuf; bufsz = sizeof(fixbuf); len = XLookupString(&ev->xkey, buf, bufsz, &sym, NULL); if ((guchar)buf[0] >= 32) /* not an ascii control character */ got_string = TRUE; } if (got_string) { gunichar u = g_utf8_get_char_validated(buf, len); if (u && u != (gunichar)-1 && u != (gunichar)-2) unikey = u; } if (buf != fixbuf) g_free(buf); return unikey; } KeySym obt_keyboard_keypress_to_keysym(XEvent *ev) { KeySym sym; g_return_val_if_fail(ev->type == KeyPress, None); sym = None; XLookupString(&ev->xkey, NULL, 0, &sym, NULL); return sym; } void obt_keyboard_context_renew(ObtIC *ic) { if (xim) { ic->xic = XCreateIC(xim, XNInputStyle, xim_style, XNClientWindow, ic->client, XNFocusWindow, ic->focus, NULL); if (!ic->xic) g_message("Error creating Input Context for window 0x%x 0x%x\n", (guint)ic->client, (guint)ic->focus); } } ObtIC* obt_keyboard_context_new(Window client, Window focus) { ObtIC *ic; g_return_val_if_fail(client != None && focus != None, NULL); ic = g_slice_new(ObtIC); ic->ref = 1; ic->client = client; ic->focus = focus; ic->xic = NULL; obt_keyboard_context_renew(ic); xic_all = g_slist_prepend(xic_all, ic); return ic; } void obt_keyboard_context_ref(ObtIC *ic) { ++ic->ref; } void obt_keyboard_context_unref(ObtIC *ic) { if (--ic->ref < 1) { xic_all = g_slist_remove(xic_all, ic); if (ic->xic) XDestroyIC(ic->xic); g_slice_free(ObtIC, ic); } } openbox-3.6.1/obt/xml.c0000644000175300001440000003274312426440016011653 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/xml.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "obt/xml.h" #include "obt/paths.h" #include #include #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_UNISTD_H # include #endif struct Callback { gchar *tag; ObtXmlCallback func; gpointer data; }; struct _ObtXmlInst { gint ref; ObtPaths *xdg_paths; GHashTable *callbacks; xmlDocPtr doc; xmlNodePtr root; gchar *path; gchar *last_error_file; gint last_error_line; gchar *last_error_message; }; static void obt_xml_save_last_error(ObtXmlInst* inst); static void destfunc(struct Callback *c) { g_free(c->tag); g_slice_free(struct Callback, c); } ObtXmlInst* obt_xml_instance_new(void) { ObtXmlInst *i = g_slice_new(ObtXmlInst); i->ref = 1; i->xdg_paths = obt_paths_new(); i->callbacks = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, (GDestroyNotify)destfunc); i->doc = NULL; i->root = NULL; i->path = NULL; i->last_error_file = NULL; i->last_error_line = -1; i->last_error_message = NULL; return i; } void obt_xml_instance_ref(ObtXmlInst *i) { ++i->ref; } void obt_xml_instance_unref(ObtXmlInst *i) { if (i && --i->ref == 0) { obt_paths_unref(i->xdg_paths); g_hash_table_destroy(i->callbacks); g_free(i->last_error_file); g_free(i->last_error_message); g_slice_free(ObtXmlInst, i); } } xmlDocPtr obt_xml_doc(ObtXmlInst *i) { g_assert(i->doc); /* a doc is open? */ return i->doc; } xmlNodePtr obt_xml_root(ObtXmlInst *i) { g_assert(i->doc); /* a doc is open? */ return i->root; } void obt_xml_register(ObtXmlInst *i, const gchar *tag, ObtXmlCallback func, gpointer data) { struct Callback *c; if (g_hash_table_lookup(i->callbacks, tag)) { g_error("Tag '%s' already registered", tag); return; } c = g_slice_new(struct Callback); c->tag = g_strdup(tag); c->func = func; c->data = data; g_hash_table_insert(i->callbacks, c->tag, c); } void obt_xml_unregister(ObtXmlInst *i, const gchar *tag) { g_hash_table_remove(i->callbacks, tag); } static gboolean load_file(ObtXmlInst *i, const gchar *domain, const gchar *filename, const gchar *root_node, GSList *paths) { GSList *it; gboolean r = FALSE; g_assert(i->doc == NULL); /* another doc isn't open already? */ xmlResetLastError(); for (it = paths; !r && it; it = g_slist_next(it)) { gchar *path; struct stat s; if (!domain && !filename) /* given a full path to the file */ path = g_strdup(it->data); else path = g_build_filename(it->data, domain, filename, NULL); if (stat(path, &s) >= 0) { /* XML_PARSE_BLANKS is needed apparently, or the tree can end up with extra nodes in it. */ i->doc = xmlReadFile(path, NULL, (XML_PARSE_NOBLANKS | XML_PARSE_RECOVER)); xmlXIncludeProcessFlags(i->doc, (XML_PARSE_NOBLANKS | XML_PARSE_RECOVER)); if (i->doc) { i->root = xmlDocGetRootElement(i->doc); if (!i->root) { xmlFreeDoc(i->doc); i->doc = NULL; g_message("%s is an empty XML document", path); } else if (xmlStrcmp(i->root->name, (const xmlChar*)root_node)) { xmlFreeDoc(i->doc); i->doc = NULL; i->root = NULL; g_message("XML document %s is of wrong type. Root " "node is not '%s'", path, root_node); } else { i->path = g_strdup(path); r = TRUE; /* ok! */ } } } g_free(path); } obt_xml_save_last_error(i); return r; } gboolean obt_xml_load_file(ObtXmlInst *i, const gchar *path, const gchar *root_node) { GSList *paths; gboolean r; paths = g_slist_append(NULL, g_strdup(path)); r = load_file(i, NULL, NULL, root_node, paths); while (paths) { g_free(paths->data); paths = g_slist_delete_link(paths, paths); } return r; } gboolean obt_xml_load_config_file(ObtXmlInst *i, const gchar *domain, const gchar *filename, const gchar *root_node) { GSList *it, *paths = NULL; gboolean r; for (it = obt_paths_config_dirs(i->xdg_paths); it; it = g_slist_next(it)) paths = g_slist_append(paths, g_strdup(it->data)); r = load_file(i, domain, filename, root_node, paths); while (paths) { g_free(paths->data); paths = g_slist_delete_link(paths, paths); } return r; } gboolean obt_xml_load_data_file(ObtXmlInst *i, const gchar *domain, const gchar *filename, const gchar *root_node) { GSList *it, *paths = NULL; gboolean r; for (it = obt_paths_data_dirs(i->xdg_paths); it; it = g_slist_next(it)) paths = g_slist_append(paths, g_strdup(it->data)); r = load_file(i, domain, filename, root_node, paths); while (paths) { g_free(paths->data); paths = g_slist_delete_link(paths, paths); } return r; } gboolean obt_xml_load_theme_file(ObtXmlInst *i, const gchar *theme, const gchar *domain, const gchar *filename, const gchar *root_node) { GSList *it, *paths = NULL; gboolean r; /* use ~/.themes for backwards compatibility */ paths = g_slist_append (paths, g_build_filename(g_get_home_dir(), ".themes", theme, NULL)); for (it = obt_paths_data_dirs(i->xdg_paths); it; it = g_slist_next(it)) paths = g_slist_append (paths, g_build_filename(it->data, "themes", theme, NULL)); r = load_file(i, domain, filename, root_node, paths); while (paths) { g_free(paths->data); paths = g_slist_delete_link(paths, paths); } return r; } gboolean obt_xml_load_mem(ObtXmlInst *i, gpointer data, guint len, const gchar *root_node) { gboolean r = FALSE; g_assert(i->doc == NULL); /* another doc isn't open already? */ xmlResetLastError(); i->doc = xmlParseMemory(data, len); if (i->doc) { i->root = xmlDocGetRootElement(i->doc); if (!i->root) { xmlFreeDoc(i->doc); i->doc = NULL; g_message("Given memory is an empty document"); } else if (xmlStrcmp(i->root->name, (const xmlChar*)root_node)) { xmlFreeDoc(i->doc); i->doc = NULL; i->root = NULL; g_message("XML Document in given memory is of wrong " "type. Root node is not '%s'\n", root_node); } else r = TRUE; /* ok ! */ } obt_xml_save_last_error(i); return r; } static void obt_xml_save_last_error(ObtXmlInst* inst) { xmlErrorPtr error = xmlGetLastError(); if (error) { inst->last_error_file = g_strdup(error->file); inst->last_error_line = error->line; inst->last_error_message = g_strdup(error->message); xmlResetError(error); } } gboolean obt_xml_last_error(ObtXmlInst *inst) { return inst->last_error_file && inst->last_error_line >= 0 && inst->last_error_message; } gchar* obt_xml_last_error_file(ObtXmlInst *inst) { if (!obt_xml_last_error(inst)) return NULL; return inst->last_error_file; } gint obt_xml_last_error_line(ObtXmlInst *inst) { if (!obt_xml_last_error(inst)) return -1; return inst->last_error_line; } gchar* obt_xml_last_error_message(ObtXmlInst *inst) { if (!obt_xml_last_error(inst)) return NULL; return inst->last_error_message; } gboolean obt_xml_save_file(ObtXmlInst *inst, const gchar *path, gboolean pretty) { return xmlSaveFormatFile(path, inst->doc, pretty) != -1; } void obt_xml_close(ObtXmlInst *i) { if (i && i->doc) { xmlFreeDoc(i->doc); g_free(i->path); i->doc = NULL; i->root = NULL; i->path = NULL; } } void obt_xml_tree(ObtXmlInst *i, xmlNodePtr node) { g_assert(i->doc); /* a doc is open? */ while (node) { if (node->name) { struct Callback *c = g_hash_table_lookup(i->callbacks, node->name); if (c) c->func(node, c->data); } node = node->next; } } void obt_xml_tree_from_root(ObtXmlInst *i) { obt_xml_tree(i, i->root->children); } gchar *obt_xml_node_string_unstripped(xmlNodePtr node) { xmlChar *c = xmlNodeGetContent(node); gchar *s; s = g_strdup(c ? (gchar*)c : ""); xmlFree(c); return s; } gchar *obt_xml_node_string(xmlNodePtr node) { gchar* result = obt_xml_node_string_unstripped(node); g_strstrip(result); /* strip leading/trailing whitespace */ return result; } gint obt_xml_node_int(xmlNodePtr node) { xmlChar *c = xmlNodeGetContent(node); gint i; if (c) g_strstrip((char*)c); /* strip leading/trailing whitespace */ i = c ? atoi((gchar*)c) : 0; xmlFree(c); return i; } gboolean obt_xml_node_bool(xmlNodePtr node) { xmlChar *c = xmlNodeGetContent(node); gboolean b = FALSE; if (c) g_strstrip((char*)c); /* strip leading/trailing whitespace */ if (c && !xmlStrcasecmp(c, (const xmlChar*) "true")) b = TRUE; else if (c && !xmlStrcasecmp(c, (const xmlChar*) "yes")) b = TRUE; else if (c && !xmlStrcasecmp(c, (const xmlChar*) "on")) b = TRUE; xmlFree(c); return b; } gboolean obt_xml_node_contains(xmlNodePtr node, const gchar *val) { xmlChar *c = xmlNodeGetContent(node); gboolean r; if (c) g_strstrip((char*)c); /* strip leading/trailing whitespace */ r = !xmlStrcasecmp(c, (const xmlChar*) val); xmlFree(c); return r; } xmlNodePtr obt_xml_find_node(xmlNodePtr node, const gchar *tag) { while (node) { if (!xmlStrcmp(node->name, (const xmlChar*) tag)) return node; node = node->next; } return NULL; } gboolean obt_xml_attr_bool(xmlNodePtr node, const gchar *name, gboolean *value) { xmlChar *c = xmlGetProp(node, (const xmlChar*) name); gboolean r = FALSE; if (c) { g_strstrip((char*)c); /* strip leading/trailing whitespace */ if (!xmlStrcasecmp(c, (const xmlChar*) "true")) *value = TRUE, r = TRUE; else if (!xmlStrcasecmp(c, (const xmlChar*) "yes")) *value = TRUE, r = TRUE; else if (!xmlStrcasecmp(c, (const xmlChar*) "on")) *value = TRUE, r = TRUE; else if (!xmlStrcasecmp(c, (const xmlChar*) "false")) *value = FALSE, r = TRUE; else if (!xmlStrcasecmp(c, (const xmlChar*) "no")) *value = FALSE, r = TRUE; else if (!xmlStrcasecmp(c, (const xmlChar*) "off")) *value = FALSE, r = TRUE; } xmlFree(c); return r; } gboolean obt_xml_attr_int(xmlNodePtr node, const gchar *name, gint *value) { xmlChar *c = xmlGetProp(node, (const xmlChar*) name); gboolean r = FALSE; if (c) { g_strstrip((char*)c); /* strip leading/trailing whitespace */ *value = atoi((gchar*)c); r = TRUE; } xmlFree(c); return r; } gboolean obt_xml_attr_string_unstripped(xmlNodePtr node, const gchar *name, gchar **value) { xmlChar *c = xmlGetProp(node, (const xmlChar*) name); gboolean r = FALSE; if (c) { *value = g_strdup((gchar*)c); r = TRUE; } xmlFree(c); return r; } gboolean obt_xml_attr_string(xmlNodePtr node, const gchar *name, gchar **value) { gboolean result = obt_xml_attr_string_unstripped(node, name, value); if (result) g_strstrip(*value); /* strip leading/trailing whitespace */ return result; } gboolean obt_xml_attr_contains(xmlNodePtr node, const gchar *name, const gchar *val) { xmlChar *c = xmlGetProp(node, (const xmlChar*) name); gboolean r = FALSE; if (c) { g_strstrip((char*)c); /* strip leading/trailing whitespace */ r = !xmlStrcasecmp(c, (const xmlChar*) val); } xmlFree(c); return r; } openbox-3.6.1/obt/ddparse.h0000644000175300001440000000352712426440016012500 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/ddparse.h for the Openbox window manager Copyright (c) 2009 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include typedef struct _ObtDDParseGroup ObtDDParseGroup; typedef enum { OBT_DDPARSE_EXEC, OBT_DDPARSE_STRING, OBT_DDPARSE_LOCALESTRING, OBT_DDPARSE_STRINGS, OBT_DDPARSE_LOCALESTRINGS, OBT_DDPARSE_BOOLEAN, OBT_DDPARSE_NUMERIC, OBT_DDPARSE_ENUM_TYPE, OBT_DDPARSE_ENVIRONMENTS, OBT_DDPARSE_NUM_VALUE_TYPES } ObtDDParseValueType; typedef struct _ObtDDParseValue { ObtDDParseValueType type; union _ObtDDParseValueValue { gchar *string; struct _ObtDDParseValueStrings { gchar **a; gulong n; } strings; gboolean boolean; gfloat numeric; guint enumerable; guint environments; /*!< A mask of flags from ObtLinkEnvMask */ } value; } ObtDDParseValue; /* Returns a hash table where the keys are groups, and the values are ObtDDParseGroups */ GHashTable* obt_ddparse_file(const gchar *name, GSList *paths); /* Returns a hash table where the keys are "keys" in the .desktop file, and the values are "values" in the .desktop file, for the group @g. */ GHashTable* obt_ddparse_group_keys(ObtDDParseGroup *g); openbox-3.6.1/obt/ddparse.c0000644000175300001440000006124212426440016012471 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/ddparse.c for the Openbox window manager Copyright (c) 2009 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "obt/ddparse.h" #include "obt/link.h" #ifdef HAVE_STRING_H #include #endif #ifdef HAVE_STDIO_H #include #endif typedef struct _ObtDDParse ObtDDParse; /* Parses the value and adds it to the group's key_hash, with the given key Return TRUE if it is added to the hash table, and FALSE if not. */ typedef gboolean (*ObtDDParseValueFunc)(gchar *key, const gchar *val, ObtDDParse *parse, gboolean *error); enum { DE_TYPE = 1 << 0, DE_TYPE_APPLICATION = 1 << 1, DE_TYPE_LINK = 1 << 2, DE_NAME = 1 << 3, DE_EXEC = 1 << 4, DE_URL = 1 << 5 }; struct _ObtDDParse { gchar *filename; gulong lineno; gulong flags; ObtDDParseGroup *group; /* the key is a group name, the value is a ObtDDParseGroup */ GHashTable *group_hash; }; struct _ObtDDParseGroup { gchar *name; gboolean seen; ObtDDParseValueFunc value_func; /* the key is a string (a key inside the group in the .desktop). the value is an ObtDDParseValue */ GHashTable *key_hash; }; /* Displays a warning message including the file name and line number, and sets the boolean @error to true if it points to a non-NULL address. */ static void parse_error(const gchar *m, const ObtDDParse *const parse, gboolean *error) { if (!parse->filename) g_warning("%s at line %lu of input", m, parse->lineno); else g_warning("%s at line %lu of file %s", m, parse->lineno, parse->filename); if (error) *error = TRUE; } static void parse_value_free(ObtDDParseValue *v) { switch (v->type) { case OBT_DDPARSE_EXEC: case OBT_DDPARSE_STRING: case OBT_DDPARSE_LOCALESTRING: g_free(v->value.string); break; case OBT_DDPARSE_STRINGS: case OBT_DDPARSE_LOCALESTRINGS: g_strfreev(v->value.strings.a); v->value.strings.n = 0; break; case OBT_DDPARSE_BOOLEAN: case OBT_DDPARSE_NUMERIC: case OBT_DDPARSE_ENUM_TYPE: case OBT_DDPARSE_ENVIRONMENTS: break; default: g_assert_not_reached(); } g_slice_free(ObtDDParseValue, v); } static ObtDDParseGroup* parse_group_new(gchar *name, ObtDDParseValueFunc f) { ObtDDParseGroup *g = g_slice_new(ObtDDParseGroup); g->name = name; g->value_func = f; g->seen = FALSE; g->key_hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify)parse_value_free); return g; } static void parse_group_free(ObtDDParseGroup *g) { g_free(g->name); g_hash_table_destroy(g->key_hash); g_slice_free(ObtDDParseGroup, g); } /*! Reads an input string, strips out invalid stuff, and parses backslash-stuff. */ static gchar* parse_value_string(const gchar *in, gboolean locale, gboolean semicolonterminate, gulong *len, const ObtDDParse *const parse, gboolean *error) { gint bytes; gboolean backslash; gchar *out, *o; const gchar *end, *i; /* find the end/size of the string */ backslash = FALSE; for (end = in; *end; ++end) { if (semicolonterminate) { if (backslash) backslash = FALSE; else if (*end == '\\') backslash = TRUE; else if (*end == ';') break; } } bytes = end - in; g_return_val_if_fail(in != NULL, NULL); if (locale && !g_utf8_validate(in, bytes, &end)) { parse_error("Invalid bytes in localestring", parse, error); bytes = end - in; } out = g_new(char, bytes + 1); if (len) *len = 0; i = in; o = out; backslash = FALSE; while (i < end) { const gchar *next; /* find the next character in the string */ if (!locale) next = i+1; else if (!(next = g_utf8_find_next_char(i, end))) next = end; if (backslash) { switch(*i) { case 's': *o++ = ' '; break; case 'n': *o++ = '\n'; break; case 't': *o++ = '\t'; break; case 'r': *o++ = '\r'; break; case ';': *o++ = ';'; break; case '\\': *o++ = '\\'; break; default: parse_error((locale ? "Invalid escape sequence in localestring" : "Invalid escape sequence in string"), parse, error); } backslash = FALSE; } else if (*i == '\\') backslash = TRUE; else if ((guchar)*i >= 127 || (guchar)*i < 32) { /* avoid ascii control characters */ parse_error("Found control character in string", parse, error); break; } else { const gulong s = next-i; memcpy(o, i, s); o += s; if (len) *len += s; } i = next; } *o = '\0'; return out; } /*! Reads a list of input strings, strips out invalid stuff, and parses backslash-stuff. */ static gchar** parse_value_strings(const gchar *in, gboolean locale, gulong *nstrings, const ObtDDParse *const parse, gboolean *error) { gchar **out; const gchar *i; out = g_new(gchar*, 1); out[0] = NULL; *nstrings = 0; i = in; while (TRUE) { gchar *a; gulong len; a = parse_value_string(i, locale, TRUE, &len, parse, error); i += len; if (len) { (*nstrings)++; out = g_renew(gchar*, out, *nstrings+1); out[*nstrings-1] = a; out[*nstrings] = NULL; } if (!*i) break; /* no more strings */ ++i; } return out; } static guint parse_value_environments(const gchar *in, const ObtDDParse *const parse, gboolean *error) { const gchar *s; guint mask = 0; s = in; while (*s) { switch (*(s++)) { case 'G': if (strcmp(s, "NOME") == 0) { mask |= OBT_LINK_ENV_GNOME; s += 4; } break; case 'K': if (strcmp(s, "DE") == 0) { mask |= OBT_LINK_ENV_KDE; s += 2; } break; case 'L': if (strcmp(s, "XDE") == 0) { mask |= OBT_LINK_ENV_LXDE; s += 3; } break; case 'R': if (strcmp(s, "OX") == 0) { mask |= OBT_LINK_ENV_ROX; s += 2; } break; case 'X': if (strcmp(s, "FCE") == 0) { mask |= OBT_LINK_ENV_XFCE; s += 3; } break; case 'O': switch (*(s++)) { case 'l': if (strcmp(s, "d") == 0) { mask |= OBT_LINK_ENV_OLD; s += 1; } break; case 'P': if (strcmp(s, "ENBOX") == 0) { mask |= OBT_LINK_ENV_OPENBOX; s += 5; } break; } } /* find the next string, or the end of the sequence */ while (*s && *s != ';') ++s; } return mask; } static gboolean parse_value_boolean(const gchar *in, const ObtDDParse *const parse, gboolean *error) { if (strcmp(in, "true") == 0) return TRUE; else if (strcmp(in, "false") != 0) parse_error("Invalid boolean value", parse, error); return FALSE; } static gfloat parse_value_numeric(const gchar *in, const ObtDDParse *const parse, gboolean *error) { gfloat out = 0; if (sscanf(in, "%f", &out) == 0) parse_error("Invalid numeric value", parse, error); return out; } static gboolean parse_file_line(FILE *f, gchar **buf, gulong *size, gulong *read, ObtDDParse *parse, gboolean *error) { const gulong BUFMUL = 80; size_t ret; gulong i, null; if (*size == 0) { g_assert(*read == 0); *size = BUFMUL; *buf = g_new(char, *size); } /* remove everything up to a null zero already in the buffer and shift the rest to the front */ null = *size; for (i = 0; i < *read; ++i) { if (null < *size) (*buf)[i-null-1] = (*buf)[i]; else if ((*buf)[i] == '\0') null = i; } if (null < *size) *read -= null + 1; /* is there already a newline in the buffer? */ for (i = 0; i < *read; ++i) if ((*buf)[i] == '\n') { /* turn it into a null zero and done */ (*buf)[i] = '\0'; return TRUE; } /* we need to read some more to find a newline */ while (TRUE) { gulong eol; gchar *newread; newread = *buf + *read; ret = fread(newread, sizeof(char), *size-*read, f); if (ret < *size - *read && !feof(f)) { parse_error("Error reading", parse, error); return FALSE; } *read += ret; /* strip out null zeros in the input and look for an endofline */ null = 0; eol = *size; for (i = newread-*buf; i < *read; ++i) { if (null > 0) (*buf)[i] = (*buf)[i+null]; if ((*buf)[i] == '\0') { ++null; --(*read); --i; /* try again */ } else if ((*buf)[i] == '\n' && eol == *size) { eol = i; /* turn it into a null zero */ (*buf)[i] = '\0'; } } if (eol != *size) /* found an endofline, done */ break; else if (feof(f) && *read < *size) { /* found the endoffile, done (if there is space) */ if (*read > 0) { /* stick a null zero on if there is test on the last line */ (*buf)[(*read)++] = '\0'; } break; } else { /* read more */ size += BUFMUL; *buf = g_renew(char, *buf, *size); } } return *read > 0; } static void parse_group(const gchar *buf, gulong len, ObtDDParse *parse, gboolean *error) { ObtDDParseGroup *g; gchar *group; gulong i; /* get the group name */ group = g_strndup(buf+1, len-2); for (i = 0; i < len-2; ++i) if ((guchar)group[i] < 32 || (guchar)group[i] >= 127) { /* valid ASCII only */ parse_error("Invalid character found", parse, NULL); group[i] = '\0'; /* stopping before this character */ break; } /* make sure it's a new group */ g = g_hash_table_lookup(parse->group_hash, group); if (g && g->seen) { parse_error("Duplicate group found", parse, error); g_free(group); return; } /* if it's the first group, make sure it's named Desktop Entry */ else if (!parse->group && strcmp(group, "Desktop Entry") != 0) { parse_error("Incorrect group found, " "expected [Desktop Entry]", parse, error); g_free(group); return; } else { if (!g) { g = parse_group_new(group, NULL); g_hash_table_insert(parse->group_hash, g->name, g); } else g_free(group); g->seen = TRUE; parse->group = g; g_print("Found group %s\n", g->name); } } static void parse_key_value(const gchar *buf, gulong len, ObtDDParse *parse, gboolean *error) { gulong i, keyend, valstart, eq; char *key; /* find the end of the key */ for (i = 0; i < len; ++i) if (!(((guchar)buf[i] >= 'A' && (guchar)buf[i] <= 'Z') || ((guchar)buf[i] >= 'a' && (guchar)buf[i] <= 'z') || ((guchar)buf[i] >= '0' && (guchar)buf[i] <= '9') || ((guchar)buf[i] == '-'))) { /* not part of the key */ break; } keyend = i; if (keyend < 1) { parse_error("Empty key", parse, error); return; } /* find the = character */ for (i = keyend; i < len; ++i) { if (buf[i] == '=') { eq = i; break; } else if (buf[i] != ' ') { parse_error("Invalid character in key name", parse, error); return ; } } if (i == len) { parse_error("Key without value found", parse, error); return; } /* find the start of the value */ for (i = eq+1; i < len; ++i) if (buf[i] != ' ') { valstart = i; break; } if (i == len) { parse_error("Empty value found", parse, error); return; } key = g_strndup(buf, keyend); if (g_hash_table_lookup(parse->group->key_hash, key)) { parse_error("Duplicate key found", parse, error); g_free(key); return; } g_print("Found key/value %s=%s.\n", key, buf+valstart); if (parse->group->value_func) if (!parse->group->value_func(key, buf+valstart, parse, error)) { parse_error("Unknown key", parse, error); g_free(key); } } static gboolean parse_file(FILE *f, ObtDDParse *parse) { gchar *buf = NULL; gulong bytes = 0, read = 0; gboolean error = FALSE; while (!error && parse_file_line(f, &buf, &bytes, &read, parse, &error)) { gulong len = strlen(buf); if (buf[0] == '#' || buf[0] == '\0') ; /* ignore comment lines */ else if (buf[0] == '[' && buf[len-1] == ']') parse_group(buf, len, parse, &error); else if (!parse->group) /* just ignore keys outside of groups */ parse_error("Key found before group", parse, NULL); else /* ignore errors in key-value pairs and continue */ parse_key_value(buf, len, parse, NULL); ++parse->lineno; } if (buf) g_free(buf); return !error; } static gboolean parse_desktop_entry_value(gchar *key, const gchar *val, ObtDDParse *parse, gboolean *error) { ObtDDParseValue v, *pv; switch (key[0]) { case 'C': switch (key[1]) { case 'a': /* Categories */ if (strcmp(key+2, "tegories")) return FALSE; v.type = OBT_DDPARSE_STRINGS; break; case 'o': /* Comment */ if (strcmp(key+2, "mment")) return FALSE; v.type = OBT_DDPARSE_LOCALESTRING; break; default: return FALSE; } break; case 'E': /* Exec */ if (strcmp(key+1, "xec")) return FALSE; v.type = OBT_DDPARSE_EXEC; parse->flags |= DE_EXEC; break; case 'G': /* GenericName */ if (strcmp(key+1, "enericName")) return FALSE; v.type = OBT_DDPARSE_LOCALESTRING; break; case 'I': /* Icon */ if (strcmp(key+1, "con")) return FALSE; v.type = OBT_DDPARSE_LOCALESTRING; break; case 'H': /* Hidden */ if (strcmp(key+1, "idden")) return FALSE; v.type = OBT_DDPARSE_BOOLEAN; break; case 'M': /* MimeType */ if (strcmp(key+1, "imeType")) return FALSE; v.type = OBT_DDPARSE_STRINGS; break; case 'N': switch (key[1]) { case 'a': /* Name */ if (strcmp(key+2, "me")) return FALSE; v.type = OBT_DDPARSE_LOCALESTRING; parse->flags |= DE_NAME; break; case 'o': switch (key[2]) { case 'D': /* NoDisplay */ if (strcmp(key+3, "isplay")) return FALSE; v.type = OBT_DDPARSE_BOOLEAN; break; case 't': /* NotShowIn */ if (strcmp(key+3, "ShowIn")) return FALSE; v.type = OBT_DDPARSE_STRINGS; break; default: return FALSE; } break; default: return FALSE; } break; case 'P': /* Path */ if (strcmp(key+1, "ath")) return FALSE; v.type = OBT_DDPARSE_STRING; break; case 'S': /* Path */ if (key[1] == 't' && key[2] == 'a' && key[3] == 'r' && key[4] == 't' && key[5] == 'u' && key[6] == 'p') switch (key[7]) { case 'N': /* StartupNotify */ if (strcmp(key+8, "otify")) return FALSE; v.type = OBT_DDPARSE_BOOLEAN; break; case 'W': /* StartupWMClass */ if (strcmp(key+8, "MClass")) return FALSE; v.type = OBT_DDPARSE_STRING; break; default: return FALSE; } else return FALSE; break; case 'T': switch (key[1]) { case 'e': /* Terminal */ if (strcmp(key+2, "rminal")) return FALSE; v.type = OBT_DDPARSE_BOOLEAN; break; case 'r': /* TryExec */ if (strcmp(key+2, "yExec")) return FALSE; v.type = OBT_DDPARSE_STRING; break; case 'y': /* Type */ if (strcmp(key+2, "pe")) return FALSE; v.type = OBT_DDPARSE_ENUM_TYPE; parse->flags |= DE_TYPE; break; default: return FALSE; } break; case 'U': /* URL */ if (strcmp(key+1, "RL")) return FALSE; v.type = OBT_DDPARSE_STRING; parse->flags |= DE_URL; break; case 'V': /* MimeType */ if (strcmp(key+1, "ersion")) return FALSE; v.type = OBT_DDPARSE_STRING; break; default: return FALSE; } /* parse the value */ switch (v.type) { case OBT_DDPARSE_EXEC: { gchar *c, *m; gboolean percent; gboolean found; v.value.string = parse_value_string(val, FALSE, FALSE, NULL, parse, error); g_assert(v.value.string); /* an exec string can only contain one of the file/url-opening %'s */ percent = found = FALSE; for (c = v.value.string; *c; ++c) { if (percent) { switch (*c) { case 'f': case 'F': case 'u': case 'U': if (found) { m = g_strdup_printf("Malformed Exec key, " "extraneous %%%c", *c); parse_error(m, parse, error); g_free(m); } found = TRUE; break; case 'd': case 'D': case 'n': case 'N': case 'v': case 'm': m = g_strdup_printf("Malformed Exec key, " "uses deprecated %%%c", *c); parse_error(m, parse, NULL); /* just a warning */ g_free(m); break; case 'i': case 'c': case 'k': case '%': break; default: m = g_strdup_printf("Malformed Exec key, " "uses unknown %%%c", *c); parse_error(m, parse, NULL); /* just a warning */ g_free(m); } percent = FALSE; } else if (*c == '%') percent = TRUE; } break; } case OBT_DDPARSE_STRING: v.value.string = parse_value_string(val, FALSE, FALSE, NULL, parse, error); g_assert(v.value.string); break; case OBT_DDPARSE_LOCALESTRING: v.value.string = parse_value_string(val, TRUE, FALSE, NULL, parse, error); g_assert(v.value.string); break; case OBT_DDPARSE_STRINGS: v.value.strings.a = parse_value_strings(val, FALSE, &v.value.strings.n, parse, error); g_assert(v.value.strings.a); g_assert(v.value.strings.n); break; case OBT_DDPARSE_LOCALESTRINGS: v.value.strings.a = parse_value_strings(val, TRUE, &v.value.strings.n, parse, error); g_assert(v.value.strings.a); g_assert(v.value.strings.n); break; case OBT_DDPARSE_BOOLEAN: v.value.boolean = parse_value_boolean(val, parse, error); break; case OBT_DDPARSE_NUMERIC: v.value.numeric = parse_value_numeric(val, parse, error); break; case OBT_DDPARSE_ENUM_TYPE: if (val[0] == 'A' && strcmp(val+1, "pplication") == 0) { v.value.enumerable = OBT_LINK_TYPE_APPLICATION; parse->flags |= DE_TYPE_APPLICATION; } else if (val[0] == 'L' && strcmp(val+1, "ink") == 0) { v.value.enumerable = OBT_LINK_TYPE_URL; parse->flags |= DE_TYPE_LINK; } else if (val[0] == 'D' && strcmp(val+1, "irectory") == 0) v.value.enumerable = OBT_LINK_TYPE_DIRECTORY; else { parse_error("Unknown Type", parse, error); return FALSE; } break; case OBT_DDPARSE_ENVIRONMENTS: v.value.environments = parse_value_environments(val, parse, error); break; default: g_assert_not_reached(); } pv = g_slice_new(ObtDDParseValue); *pv = v; g_hash_table_insert(parse->group->key_hash, key, pv); return TRUE; } GHashTable* obt_ddparse_file(const gchar *name, GSList *paths) { ObtDDParse parse; ObtDDParseGroup *desktop_entry; GSList *it; FILE *f; gboolean success; parse.filename = NULL; parse.lineno = 0; parse.group = NULL; parse.group_hash = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, (GDestroyNotify)parse_group_free); /* set up the groups (there's only one right now) */ desktop_entry = parse_group_new(g_strdup("Desktop Entry"), parse_desktop_entry_value); g_hash_table_insert(parse.group_hash, desktop_entry->name, desktop_entry); success = FALSE; for (it = paths; it && !success; it = g_slist_next(it)) { gchar *path = g_strdup_printf("%s/%s", (char*)it->data, name); if ((f = fopen(path, "r"))) { parse.filename = path; parse.lineno = 1; parse.flags = 0; if ((success = parse_file(f, &parse))) { /* check that required keys exist */ if (!(parse.flags & DE_TYPE)) { g_warning("Missing Type key in %s", path); success = FALSE; } if (!(parse.flags & DE_NAME)) { g_warning("Missing Name key in %s", path); success = FALSE; } if (parse.flags & DE_TYPE_APPLICATION && !(parse.flags & DE_EXEC)) { g_warning("Missing Exec key for Application in %s", path); success = FALSE; } else if (parse.flags & DE_TYPE_LINK && !(parse.flags & DE_URL)) { g_warning("Missing URL key for Link in %s", path); success = FALSE; } } fclose(f); } g_free(path); } if (!success) { g_hash_table_destroy(parse.group_hash); parse.group_hash = NULL; } return parse.group_hash; } GHashTable* obt_ddparse_group_keys(ObtDDParseGroup *g) { return g->key_hash; } openbox-3.6.1/obt/link.c0000644000175300001440000001751412426440016012007 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/link.c for the Openbox window manager Copyright (c) 2009 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "obt/link.h" #include "obt/ddparse.h" #include "obt/paths.h" #include struct _ObtLink { guint ref; ObtLinkType type; gchar *name; /*!< Specific name for the object (eg Firefox) */ gboolean display; /*ref = 1; link->display = TRUE; v = g_hash_table_lookup(keys, "Type"); g_assert(v); link->type = v->value.enumerable; if ((v = g_hash_table_lookup(keys, "Hidden"))) link->deleted = v->value.boolean; if ((v = g_hash_table_lookup(keys, "NoDisplay"))) link->display = !v->value.boolean; if ((v = g_hash_table_lookup(keys, "GenericName"))) link->generic = v->value.string, v->value.string = NULL; if ((v = g_hash_table_lookup(keys, "Comment"))) link->comment = v->value.string, v->value.string = NULL; if ((v = g_hash_table_lookup(keys, "Icon"))) link->icon = v->value.string, v->value.string = NULL; if ((v = g_hash_table_lookup(keys, "OnlyShowIn"))) link->env_required = v->value.environments; else link->env_required = 0; if ((v = g_hash_table_lookup(keys, "NotShowIn"))) link->env_restricted = v->value.environments; else link->env_restricted = 0; /* type-specific keys */ if (link->type == OBT_LINK_TYPE_APPLICATION) { gchar *c; gboolean percent; v = g_hash_table_lookup(keys, "Exec"); g_assert(v); link->d.app.exec = v->value.string; v->value.string = NULL; /* parse link->d.app.exec to determine link->d.app.open */ percent = FALSE; for (c = link->d.app.exec; *c; ++c) { if (percent) { switch (*c) { case 'f': link->d.app.open = OBT_LINK_APP_SINGLE_LOCAL; break; case 'F': link->d.app.open = OBT_LINK_APP_MULTI_LOCAL; break; case 'u': link->d.app.open = OBT_LINK_APP_SINGLE_URL; break; case 'U': link->d.app.open = OBT_LINK_APP_MULTI_URL; break; default: percent = FALSE; } if (percent) break; /* found f/F/u/U */ } else if (*c == '%') percent = TRUE; } if ((v = g_hash_table_lookup(keys, "TryExec"))) { /* XXX spawn a thread to check TryExec? */ link->display = link->display && obt_paths_try_exec(p, v->value.string); } if ((v = g_hash_table_lookup(keys, "Path"))) { /* steal the string */ link->d.app.wdir = v->value.string; v->value.string = NULL; } if ((v = g_hash_table_lookup(keys, "Terminal"))) link->d.app.term = v->value.boolean; if ((v = g_hash_table_lookup(keys, "StartupNotify"))) link->d.app.startup = v->value.boolean ? OBT_LINK_APP_STARTUP_PROTOCOL_SUPPORT : OBT_LINK_APP_STARTUP_NO_SUPPORT; else { link->d.app.startup = OBT_LINK_APP_STARTUP_LEGACY_SUPPORT; if ((v = g_hash_table_lookup(keys, "StartupWMClass"))) { /* steal the string */ link->d.app.startup_wmclass = v->value.string; v->value.string = NULL; } } if ((v = g_hash_table_lookup(keys, "Categories"))) { gulong i; gchar *end; link->d.app.categories = g_new(GQuark, v->value.strings.n); link->d.app.n_categories = v->value.strings.n; for (i = 0; i < v->value.strings.n; ++i) { link->d.app.categories[i] = g_quark_from_string(v->value.strings.a[i]); c = end = end+1; /* next */ } } if ((v = g_hash_table_lookup(keys, "MimeType"))) { /* steal the string array */ link->d.app.mime = v->value.strings.a; v->value.strings.a = NULL; v->value.strings.n = 0; } } else if (link->type == OBT_LINK_TYPE_URL) { v = g_hash_table_lookup(keys, "URL"); g_assert(v); link->d.url.addr = v->value.string; v->value.string = NULL; } /* destroy the parsing info */ g_hash_table_destroy(groups); return link; } void obt_link_ref(ObtLink *dd) { ++dd->ref; } void obt_link_unref(ObtLink *dd) { if (--dd->ref < 1) { g_free(dd->name); g_free(dd->generic); g_free(dd->comment); g_free(dd->icon); if (dd->type == OBT_LINK_TYPE_APPLICATION) { g_free(dd->d.app.exec); g_free(dd->d.app.wdir); g_strfreev(dd->d.app.mime); g_free(dd->d.app.categories); g_free(dd->d.app.startup_wmclass); } else if (dd->type == OBT_LINK_TYPE_URL) g_free(dd->d.url.addr); g_slice_free(ObtLink, dd); } } const GQuark* obt_link_app_categories(ObtLink *e, gulong *n) { g_return_val_if_fail(e != NULL, NULL); g_return_val_if_fail(e->type == OBT_LINK_TYPE_APPLICATION, NULL); g_return_val_if_fail(n != NULL, NULL); *n = e->d.app.n_categories; return e->d.app.categories; } openbox-3.6.1/obt/paths.c0000644000175300001440000002307612426440016012171 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/paths.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "obt/bsearch.h" #include "obt/paths.h" #include "obt/util.h" #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_STRING_H # include #endif #ifdef HAVE_UNISTD_H # include #endif #ifdef HAVE_GRP_H # include #endif #ifdef HAVE_PWD_H # include #endif struct _ObtPaths { gint ref; gchar *config_home; gchar *data_home; gchar *cache_home; GSList *config_dirs; GSList *data_dirs; GSList *autostart_dirs; GSList *exec_dirs; uid_t uid; gid_t *gid; guint n_gid; }; static gint slist_path_cmp(const gchar *a, const gchar *b) { return strcmp(a, b); } typedef GSList* (*GSListFunc) (gpointer list, gconstpointer data); static GSList* slist_path_add(GSList *list, gpointer data, GSListFunc func) { g_assert(func); if (!data) return list; if (!g_slist_find_custom(list, data, (GCompareFunc) slist_path_cmp)) list = func(list, data); else g_free(data); return list; } static GSList* split_paths(const gchar *paths) { GSList *list = NULL; gchar **spl, **it; if (!paths) return NULL; spl = g_strsplit(paths, ":", -1); for (it = spl; *it; ++it) { if ((*it)[0]) /* skip empty strings */ list = slist_path_add(list, *it, (GSListFunc) g_slist_append); } g_free(spl); return list; } int gid_cmp(const void *va, const void *vb) { const gid_t a = *(const gid_t*)va, b = *(const gid_t*)vb; return a>b ? 1 : (a == b ? 0 : -1); } static void find_uid_gid(uid_t *u, gid_t **g, guint *n) { struct passwd *pw; const gchar *name; struct group *gr; *u = getuid(); pw = getpwuid(*u); name = pw->pw_name; *g = g_new(gid_t, *n=1); (*g)[0] = getgid(); while ((gr = getgrent())) { if (gr->gr_gid != (*g)[0]) { /* skip the main group */ gchar **c; for (c = gr->gr_mem; *c; ++c) if (strcmp(*c, name) == 0) { *g = g_renew(gid_t, *g, ++(*n)); /* save the group */ (*g)[*n-1] = gr->gr_gid; break; } } } endgrent(); qsort(*g, *n, sizeof(gid_t), gid_cmp); } ObtPaths* obt_paths_new(void) { ObtPaths *p; const gchar *path; GSList *it; p = g_slice_new0(ObtPaths); p->ref = 1; find_uid_gid(&p->uid, &p->gid, &p->n_gid); path = g_getenv("XDG_CONFIG_HOME"); if (path && path[0] != '\0') /* not unset or empty */ p->config_home = g_build_filename(path, NULL); else p->config_home = g_build_filename(g_get_home_dir(), ".config", NULL); path = g_getenv("XDG_DATA_HOME"); if (path && path[0] != '\0') /* not unset or empty */ p->data_home = g_build_filename(path, NULL); else p->data_home = g_build_filename(g_get_home_dir(), ".local", "share", NULL); path = g_getenv("XDG_CACHE_HOME"); if (path && path[0] != '\0') /* not unset or empty */ p->cache_home = g_build_filename(path, NULL); else p->cache_home = g_build_filename(g_get_home_dir(), ".cache", NULL); path = g_getenv("XDG_CONFIG_DIRS"); if (path && path[0] != '\0') /* not unset or empty */ p->config_dirs = split_paths(path); else { p->config_dirs = slist_path_add(p->config_dirs, g_strdup(CONFIGDIR), (GSListFunc) g_slist_append); p->config_dirs = slist_path_add(p->config_dirs, g_build_filename (G_DIR_SEPARATOR_S, "etc", "xdg", NULL), (GSListFunc) g_slist_append); } p->config_dirs = slist_path_add(p->config_dirs, g_strdup(p->config_home), (GSListFunc) g_slist_prepend); for (it = p->config_dirs; it; it = g_slist_next(it)) { gchar *const s = g_strdup_printf("%s/autostart", (gchar*)it->data); p->autostart_dirs = g_slist_append(p->autostart_dirs, s); } path = g_getenv("XDG_DATA_DIRS"); if (path && path[0] != '\0') /* not unset or empty */ p->data_dirs = split_paths(path); else { p->data_dirs = slist_path_add(p->data_dirs, g_strdup(DATADIR), (GSListFunc) g_slist_append); p->data_dirs = slist_path_add(p->data_dirs, g_build_filename (G_DIR_SEPARATOR_S, "usr", "local", "share", NULL), (GSListFunc) g_slist_append); p->data_dirs = slist_path_add(p->data_dirs, g_build_filename (G_DIR_SEPARATOR_S, "usr", "share", NULL), (GSListFunc) g_slist_append); } p->data_dirs = slist_path_add(p->data_dirs, g_strdup(p->data_home), (GSListFunc) g_slist_prepend); path = g_getenv("PATH"); if (path && path[0] != '\0') /* not unset or empty */ p->exec_dirs = split_paths(path); else p->exec_dirs = NULL; return p; } void obt_paths_ref(ObtPaths *p) { ++p->ref; } void obt_paths_unref(ObtPaths *p) { if (p && --p->ref == 0) { GSList *it; for (it = p->config_dirs; it; it = g_slist_next(it)) g_free(it->data); g_slist_free(p->config_dirs); for (it = p->data_dirs; it; it = g_slist_next(it)) g_free(it->data); g_slist_free(p->data_dirs); for (it = p->autostart_dirs; it; it = g_slist_next(it)) g_free(it->data); g_slist_free(p->autostart_dirs); for (it = p->exec_dirs; it; it = g_slist_next(it)) g_free(it->data); g_slist_free(p->exec_dirs); g_free(p->config_home); g_free(p->data_home); g_free(p->cache_home); g_free(p->gid); g_slice_free(ObtPaths, p); } } gchar *obt_paths_expand_tilde(const gchar *f) { gchar *ret; GRegex *regex; if (!f) return NULL; regex = g_regex_new("(?:^|(?<=[ \\t]))~(?=[/ \\t$])", G_REGEX_MULTILINE | G_REGEX_RAW, 0, NULL); ret = g_regex_replace_literal(regex, f, -1, 0, g_get_home_dir(), 0, NULL); g_regex_unref(regex); return ret; } gboolean obt_paths_mkdir(const gchar *path, gint mode) { gboolean ret = TRUE; g_return_val_if_fail(path != NULL, FALSE); g_return_val_if_fail(path[0] != '\0', FALSE); if (!g_file_test(path, G_FILE_TEST_IS_DIR)) if (mkdir(path, mode) == -1) ret = FALSE; return ret; } gboolean obt_paths_mkdir_path(const gchar *path, gint mode) { gboolean ret = TRUE; g_return_val_if_fail(path != NULL, FALSE); g_return_val_if_fail(path[0] == '/', FALSE); if (!g_file_test(path, G_FILE_TEST_IS_DIR)) { gchar *c, *e; c = g_strdup(path); e = c; while ((e = strchr(e + 1, '/'))) { *e = '\0'; if (!(ret = obt_paths_mkdir(c, mode))) goto parse_mkdir_path_end; *e = '/'; } ret = obt_paths_mkdir(c, mode); parse_mkdir_path_end: g_free(c); } return ret; } const gchar* obt_paths_config_home(ObtPaths *p) { return p->config_home; } const gchar* obt_paths_data_home(ObtPaths *p) { return p->data_home; } const gchar* obt_paths_cache_home(ObtPaths *p) { return p->cache_home; } GSList* obt_paths_config_dirs(ObtPaths *p) { return p->config_dirs; } GSList* obt_paths_data_dirs(ObtPaths *p) { return p->data_dirs; } GSList* obt_paths_autostart_dirs(ObtPaths *p) { return p->autostart_dirs; } static inline gboolean try_exec(const ObtPaths *const p, const gchar *const path) { struct stat st; BSEARCH_SETUP(); if (stat(path, &st) != 0) return FALSE; if (!S_ISREG(st.st_mode)) return FALSE; if (st.st_uid == p->uid) return st.st_mode & S_IXUSR; BSEARCH(guint, p->gid, 0, p->n_gid, st.st_gid); if (BSEARCH_FOUND()) return st.st_mode & S_IXGRP; return st.st_mode & S_IXOTH; } gboolean obt_paths_try_exec(ObtPaths *p, const gchar *path) { if (path[0] == '/') { return try_exec(p, path); } else { GSList *it; for (it = p->exec_dirs; it; it = g_slist_next(it)) { gchar *f = g_build_filename(it->data, path, NULL); gboolean e = try_exec(p, f); g_free(f); if (e) return TRUE; } } return FALSE; } openbox-3.6.1/obt/prop.c0000644000175300001440000004556112426440016012035 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/prop.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "obt/prop.h" #include "obt/display.h" #include #ifdef HAVE_STRING_H # include #endif Atom prop_atoms[OBT_PROP_NUM_ATOMS]; gboolean prop_started = FALSE; #define CREATE_NAME(var, name) (prop_atoms[OBT_PROP_##var] = \ XInternAtom((obt_display), (name), FALSE)) #define CREATE(var) CREATE_NAME(var, #var) #define CREATE_(var) CREATE_NAME(var, "_" #var) void obt_prop_startup(void) { if (prop_started) return; prop_started = TRUE; g_assert(obt_display); CREATE(CARDINAL); CREATE(WINDOW); CREATE(PIXMAP); CREATE(ATOM); CREATE(STRING); CREATE(COMPOUND_TEXT); CREATE(UTF8_STRING); CREATE(MANAGER); CREATE(WM_COLORMAP_WINDOWS); CREATE(WM_PROTOCOLS); CREATE(WM_STATE); CREATE(WM_CHANGE_STATE); CREATE(WM_DELETE_WINDOW); CREATE(WM_TAKE_FOCUS); CREATE(WM_NAME); CREATE(WM_ICON_NAME); CREATE(WM_CLASS); CREATE(WM_WINDOW_ROLE); CREATE(WM_CLIENT_MACHINE); CREATE(WM_COMMAND); CREATE(WM_CLIENT_LEADER); CREATE(WM_TRANSIENT_FOR); CREATE_(MOTIF_WM_HINTS); CREATE_(MOTIF_WM_INFO); CREATE(SM_CLIENT_ID); CREATE_(NET_WM_FULL_PLACEMENT); CREATE_(NET_SUPPORTED); CREATE_(NET_CLIENT_LIST); CREATE_(NET_CLIENT_LIST_STACKING); CREATE_(NET_NUMBER_OF_DESKTOPS); CREATE_(NET_DESKTOP_GEOMETRY); CREATE_(NET_DESKTOP_VIEWPORT); CREATE_(NET_CURRENT_DESKTOP); CREATE_(NET_DESKTOP_NAMES); CREATE_(NET_ACTIVE_WINDOW); /* CREATE_(NET_RESTACK_WINDOW);*/ CREATE_(NET_WORKAREA); CREATE_(NET_SUPPORTING_WM_CHECK); CREATE_(NET_DESKTOP_LAYOUT); CREATE_(NET_SHOWING_DESKTOP); CREATE_(NET_CLOSE_WINDOW); CREATE_(NET_WM_MOVERESIZE); CREATE_(NET_MOVERESIZE_WINDOW); CREATE_(NET_REQUEST_FRAME_EXTENTS); CREATE_(NET_RESTACK_WINDOW); CREATE_(NET_STARTUP_ID); CREATE_(NET_WM_NAME); CREATE_(NET_WM_VISIBLE_NAME); CREATE_(NET_WM_ICON_NAME); CREATE_(NET_WM_VISIBLE_ICON_NAME); CREATE_(NET_WM_DESKTOP); CREATE_(NET_WM_WINDOW_TYPE); CREATE_(NET_WM_STATE); CREATE_(NET_WM_STRUT); CREATE_(NET_WM_STRUT_PARTIAL); CREATE_(NET_WM_ICON); CREATE_(NET_WM_ICON_GEOMETRY); CREATE_(NET_WM_PID); CREATE_(NET_WM_ALLOWED_ACTIONS); CREATE_(NET_WM_WINDOW_OPACITY); CREATE_(NET_WM_USER_TIME); /* CREATE_(NET_WM_USER_TIME_WINDOW); */ CREATE_(KDE_NET_WM_FRAME_STRUT); CREATE_(NET_FRAME_EXTENTS); CREATE_(NET_WM_PING); #ifdef SYNC CREATE_(NET_WM_SYNC_REQUEST); CREATE_(NET_WM_SYNC_REQUEST_COUNTER); #endif CREATE_(NET_WM_WINDOW_TYPE_DESKTOP); CREATE_(NET_WM_WINDOW_TYPE_DOCK); CREATE_(NET_WM_WINDOW_TYPE_TOOLBAR); CREATE_(NET_WM_WINDOW_TYPE_MENU); CREATE_(NET_WM_WINDOW_TYPE_UTILITY); CREATE_(NET_WM_WINDOW_TYPE_SPLASH); CREATE_(NET_WM_WINDOW_TYPE_DIALOG); CREATE_(NET_WM_WINDOW_TYPE_NORMAL); CREATE_(NET_WM_WINDOW_TYPE_POPUP_MENU); prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_SIZE_TOPLEFT] = 0; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_SIZE_TOP] = 1; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_SIZE_TOPRIGHT] = 2; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_SIZE_RIGHT] = 3; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT] = 4; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_SIZE_BOTTOM] = 5; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT] = 6; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_SIZE_LEFT] = 7; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_MOVE] = 8; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_SIZE_KEYBOARD] = 9; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_MOVE_KEYBOARD] = 10; prop_atoms[OBT_PROP_NET_WM_MOVERESIZE_CANCEL] = 11; CREATE_(NET_WM_ACTION_MOVE); CREATE_(NET_WM_ACTION_RESIZE); CREATE_(NET_WM_ACTION_MINIMIZE); CREATE_(NET_WM_ACTION_SHADE); CREATE_(NET_WM_ACTION_MAXIMIZE_HORZ); CREATE_(NET_WM_ACTION_MAXIMIZE_VERT); CREATE_(NET_WM_ACTION_FULLSCREEN); CREATE_(NET_WM_ACTION_CHANGE_DESKTOP); CREATE_(NET_WM_ACTION_CLOSE); CREATE_(NET_WM_ACTION_ABOVE); CREATE_(NET_WM_ACTION_BELOW); CREATE_(NET_WM_STATE_MODAL); /* CREATE_(NET_WM_STATE_STICKY);*/ CREATE_(NET_WM_STATE_MAXIMIZED_VERT); CREATE_(NET_WM_STATE_MAXIMIZED_HORZ); CREATE_(NET_WM_STATE_SHADED); CREATE_(NET_WM_STATE_SKIP_TASKBAR); CREATE_(NET_WM_STATE_SKIP_PAGER); CREATE_(NET_WM_STATE_HIDDEN); CREATE_(NET_WM_STATE_FULLSCREEN); CREATE_(NET_WM_STATE_ABOVE); CREATE_(NET_WM_STATE_BELOW); CREATE_(NET_WM_STATE_DEMANDS_ATTENTION); prop_atoms[OBT_PROP_NET_WM_STATE_ADD] = 1; prop_atoms[OBT_PROP_NET_WM_STATE_REMOVE] = 0; prop_atoms[OBT_PROP_NET_WM_STATE_TOGGLE] = 2; prop_atoms[OBT_PROP_NET_WM_ORIENTATION_HORZ] = 0; prop_atoms[OBT_PROP_NET_WM_ORIENTATION_VERT] = 1; prop_atoms[OBT_PROP_NET_WM_TOPLEFT] = 0; prop_atoms[OBT_PROP_NET_WM_TOPRIGHT] = 1; prop_atoms[OBT_PROP_NET_WM_BOTTOMRIGHT] = 2; prop_atoms[OBT_PROP_NET_WM_BOTTOMLEFT] = 3; CREATE_(KDE_WM_CHANGE_STATE); CREATE_(KDE_NET_WM_WINDOW_TYPE_OVERRIDE); /* CREATE_NAME(ROOTPMAPId, "_XROOTPMAP_ID"); CREATE_NAME(ESETROOTId, "ESETROOT_PMAP_ID"); */ CREATE_(OPENBOX_PID); CREATE_(OB_THEME); CREATE_(OB_CONFIG_FILE); CREATE_(OB_WM_ACTION_UNDECORATE); CREATE_(OB_WM_STATE_UNDECORATED); CREATE_(OB_CONTROL); CREATE_(OB_VERSION); CREATE_(OB_APP_ROLE); CREATE_(OB_APP_TITLE); CREATE_(OB_APP_NAME); CREATE_(OB_APP_CLASS); CREATE_(OB_APP_GROUP_NAME); CREATE_(OB_APP_GROUP_CLASS); CREATE_(OB_APP_TYPE); } Atom obt_prop_atom(ObtPropAtom a) { g_assert(prop_started); g_assert(a < OBT_PROP_NUM_ATOMS); return prop_atoms[a]; } static gboolean get_prealloc(Window win, Atom prop, Atom type, gint size, guchar *data, gulong num) { gboolean ret = FALSE; gint res; guchar *xdata = NULL; Atom ret_type; gint ret_size; gulong ret_items, bytes_left; glong num32 = 32 / size * num; /* num in 32-bit elements */ res = XGetWindowProperty(obt_display, win, prop, 0l, num32, FALSE, type, &ret_type, &ret_size, &ret_items, &bytes_left, &xdata); if (res == Success && ret_items && xdata) { if (ret_size == size && ret_items >= num) { guint i; for (i = 0; i < num; ++i) switch (size) { case 8: data[i] = xdata[i]; break; case 16: ((guint16*)data)[i] = ((gushort*)xdata)[i]; break; case 32: ((guint32*)data)[i] = ((gulong*)xdata)[i]; break; default: g_assert_not_reached(); /* unhandled size */ } ret = TRUE; } XFree(xdata); } return ret; } static gboolean get_all(Window win, Atom prop, Atom type, gint size, guchar **data, guint *num) { gboolean ret = FALSE; gint res; guchar *xdata = NULL; Atom ret_type; gint ret_size; gulong ret_items, bytes_left; res = XGetWindowProperty(obt_display, win, prop, 0l, G_MAXLONG, FALSE, type, &ret_type, &ret_size, &ret_items, &bytes_left, &xdata); if (res == Success) { if (ret_size == size && ret_items > 0) { guint i; *data = g_malloc(ret_items * (size / 8)); for (i = 0; i < ret_items; ++i) switch (size) { case 8: (*data)[i] = xdata[i]; break; case 16: ((guint16*)*data)[i] = ((gushort*)xdata)[i]; break; case 32: ((guint32*)*data)[i] = ((gulong*)xdata)[i]; break; default: g_assert_not_reached(); /* unhandled size */ } *num = ret_items; ret = TRUE; } XFree(xdata); } return ret; } /*! Get a text property from a window, and fill out the XTextProperty with it. @param win The window to read the property from. @param prop The atom of the property to read off the window. @param tprop The XTextProperty to fill out. @param type 0 to get text of any type, or a value from ObtPropTextType to restrict the value to a specific type. @return TRUE if the text was read and validated against the @type, and FALSE otherwise. */ static gboolean get_text_property(Window win, Atom prop, XTextProperty *tprop, ObtPropTextType type) { if (!(XGetTextProperty(obt_display, win, tprop, prop) && tprop->nitems)) return FALSE; if (!type) return TRUE; /* no type checking */ switch (type) { case OBT_PROP_TEXT_STRING: case OBT_PROP_TEXT_STRING_XPCS: case OBT_PROP_TEXT_STRING_NO_CC: return tprop->encoding == OBT_PROP_ATOM(STRING); case OBT_PROP_TEXT_COMPOUND_TEXT: return tprop->encoding == OBT_PROP_ATOM(COMPOUND_TEXT); case OBT_PROP_TEXT_UTF8_STRING: return tprop->encoding == OBT_PROP_ATOM(UTF8_STRING); default: g_assert_not_reached(); return FALSE; } } /*! Returns one or more UTF-8 encoded strings from the text property. @param tprop The XTextProperty to convert into UTF-8 string(s). @param type The type which specifies the format that the text must meet, or 0 to allow any valid characters that can be converted to UTF-8 through. @param max The maximum number of strings to return. -1 to return them all. @return If max is 1, then this returns a gchar* with the single string. Otherwise, this returns a gchar** of no more than max strings (or all strings read, if max is negative). If an error occurs, NULL is returned. */ static void* convert_text_property(XTextProperty *tprop, ObtPropTextType type, gint max) { enum { LATIN1, UTF8, LOCALE } encoding; const gboolean return_single = (max == 1); gboolean ok = FALSE; gchar **strlist = NULL; gchar *single[1] = { NULL }; gchar **retlist = single; /* single is used when max == 1 */ gint i, n_strs; /* Read each string in the text property and store a pointer to it in retlist. These pointers point into the X data structures directly. Then we will convert them to UTF-8, and replace the retlist pointer with a new one. */ if (tprop->encoding == OBT_PROP_ATOM(COMPOUND_TEXT)) { encoding = LOCALE; ok = (XmbTextPropertyToTextList( obt_display, tprop, &strlist, &n_strs) == Success); if (ok) { if (max >= 0) n_strs = MIN(max, n_strs); if (!return_single) retlist = g_new0(gchar*, n_strs+1); if (retlist) for (i = 0; i < n_strs; ++i) retlist[i] = strlist[i]; } } else if (tprop->encoding == OBT_PROP_ATOM(UTF8_STRING) || tprop->encoding == OBT_PROP_ATOM(STRING)) { gchar *p; /* iterator */ if (tprop->encoding == OBT_PROP_ATOM(STRING)) encoding = LATIN1; else encoding = UTF8; ok = TRUE; /* First, count the number of strings. Then make a structure for them and copy pointers to them into it. */ p = (gchar*)tprop->value; n_strs = 0; while (p < (gchar*)tprop->value + tprop->nitems) { p += strlen(p) + 1; /* next string */ ++n_strs; } if (max >= 0) n_strs = MIN(max, n_strs); if (!return_single) retlist = g_new0(gchar*, n_strs+1); if (retlist) { p = (gchar*)tprop->value; for (i = 0; i < n_strs; ++i) { retlist[i] = p; p += strlen(p) + 1; /* next string */ } } } if (!(ok && retlist)) { if (strlist) XFreeStringList(strlist); return NULL; } /* convert each element in retlist to UTF-8, and replace it. */ for (i = 0; i < n_strs; ++i) { if (encoding == UTF8) { const gchar *end; /* the first byte past the valid data */ g_utf8_validate(retlist[i], -1, &end); retlist[i] = g_strndup(retlist[i], end-retlist[i]); } else if (encoding == LOCALE) { gsize nvalid; /* the number of valid bytes at the front of the string */ gchar *utf; /* the string converted into utf8 */ utf = g_locale_to_utf8(retlist[i], -1, &nvalid, NULL, NULL); if (!utf) utf = g_locale_to_utf8(retlist[i], nvalid, NULL, NULL, NULL); g_assert(utf); retlist[i] = utf; } else { /* encoding == LATIN1 */ gsize nvalid; /* the number of valid bytes at the front of the string */ gchar *utf; /* the string converted into utf8 */ gchar *p; /* iterator */ /* look for invalid characters */ for (p = retlist[i], nvalid = 0; *p; ++p, ++nvalid) { /* The only valid control characters are TAB(HT)=9 and NEWLINE(LF)=10. This is defined in ICCCM section 2: http://tronche.com/gui/x/icccm/sec-2.html. See a definition of the latin1 codepage here: http://en.wikipedia.org/wiki/ISO/IEC_8859-1. The above page includes control characters in the table, which we must explicitly exclude, as the g_convert function will happily take them. */ const register guchar c = (guchar)*p; /* unsigned value at p */ if ((c < 32 && c != 9 && c != 10) || (c >= 127 && c <= 160)) break; /* found a control character that isn't allowed */ if (type == OBT_PROP_TEXT_STRING_NO_CC && c < 32) break; /* absolutely no control characters are allowed */ if (type == OBT_PROP_TEXT_STRING_XPCS) { const gboolean valid = ( (c >= 32 && c < 128) || c == 9 || c == 10); if (!valid) break; /* strict whitelisting for XPCS */ } } /* look for invalid latin1 characters */ utf = g_convert(retlist[i], nvalid, "utf-8", "iso-8859-1", &nvalid, NULL, NULL); if (!utf) utf = g_convert(retlist[i], nvalid, "utf-8", "iso-8859-1", NULL, NULL, NULL); g_assert(utf); retlist[i] = utf; } } if (strlist) XFreeStringList(strlist); if (return_single) return retlist[0]; else return retlist; } gboolean obt_prop_get32(Window win, Atom prop, Atom type, guint32 *ret) { return get_prealloc(win, prop, type, 32, (guchar*)ret, 1); } gboolean obt_prop_get_array32(Window win, Atom prop, Atom type, guint32 **ret, guint *nret) { return get_all(win, prop, type, 32, (guchar**)ret, nret); } gboolean obt_prop_get_text(Window win, Atom prop, ObtPropTextType type, gchar **ret_string) { XTextProperty tprop; gchar *str; gboolean ret = FALSE; if (get_text_property(win, prop, &tprop, type)) { str = (gchar*)convert_text_property(&tprop, type, 1); if (str) { *ret_string = str; ret = TRUE; } } XFree(tprop.value); return ret; } gboolean obt_prop_get_array_text(Window win, Atom prop, ObtPropTextType type, gchar ***ret_strings) { XTextProperty tprop; gchar **strs; gboolean ret = FALSE; if (get_text_property(win, prop, &tprop, type)) { strs = (gchar**)convert_text_property(&tprop, type, -1); if (strs) { *ret_strings = strs; ret = TRUE; } } XFree(tprop.value); return ret; } void obt_prop_set32(Window win, Atom prop, Atom type, gulong val) { XChangeProperty(obt_display, win, prop, type, 32, PropModeReplace, (guchar*)&val, 1); } void obt_prop_set_array32(Window win, Atom prop, Atom type, gulong *val, guint num) { XChangeProperty(obt_display, win, prop, type, 32, PropModeReplace, (guchar*)val, num); } void obt_prop_set_text(Window win, Atom prop, const gchar *val) { XChangeProperty(obt_display, win, prop, OBT_PROP_ATOM(UTF8_STRING), 8, PropModeReplace, (const guchar*)val, strlen(val)); } void obt_prop_set_array_text(Window win, Atom prop, const gchar *const *strs) { GString *str; gchar const *const *s; str = g_string_sized_new(0); for (s = strs; *s; ++s) { str = g_string_append(str, *s); str = g_string_append_c(str, '\0'); } XChangeProperty(obt_display, win, prop, OBT_PROP_ATOM(UTF8_STRING), 8, PropModeReplace, (guchar*)str->str, str->len); g_string_free(str, TRUE); } void obt_prop_erase(Window win, Atom prop) { XDeleteProperty(obt_display, win, prop); } void obt_prop_message(gint screen, Window about, Atom messagetype, glong data0, glong data1, glong data2, glong data3, glong data4, glong mask) { obt_prop_message_to(obt_root(screen), about, messagetype, data0, data1, data2, data3, data4, mask); } void obt_prop_message_to(Window to, Window about, Atom messagetype, glong data0, glong data1, glong data2, glong data3, glong data4, glong mask) { XEvent ce; ce.xclient.type = ClientMessage; ce.xclient.message_type = messagetype; ce.xclient.display = obt_display; ce.xclient.window = about; ce.xclient.format = 32; ce.xclient.data.l[0] = data0; ce.xclient.data.l[1] = data1; ce.xclient.data.l[2] = data2; ce.xclient.data.l[3] = data3; ce.xclient.data.l[4] = data4; XSendEvent(obt_display, to, FALSE, mask, &ce); } openbox-3.6.1/obt/signal.c0000644000175300001440000001763312426440016012331 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/signal.c for the Openbox window manager Copyright (c) 2010 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "signal.h" #ifdef HAVE_STDIO_H #include #endif #ifdef HAVE_STDLIB_H #include #endif #ifdef HAVE_SIGNAL_H # include #endif #ifdef HAVE_UNISTD_H # include #endif typedef struct _ObtSignalCallback ObtSignalCallback; struct _ObtSignalCallback { ObtSignalHandler func; gpointer data; }; static gboolean signal_prepare(GSource *source, gint *timeout); static gboolean signal_check(GSource *source); static gboolean signal_occurred(GSource *source, GSourceFunc callback, gpointer data); static void sighandler(gint sig); /* this should be more than the number of possible signals on any architecture... */ #define NUM_SIGNALS 99 /* a set of all possible signals */ static sigset_t all_signals_set; /* keep track of what signals have a signal handler installed, and remember the action we replaced when installing it for when we clean up */ static struct { guint installed; /* a ref count */ struct sigaction oldact; } all_signals[NUM_SIGNALS]; /* signals which cause a core dump, these can't be used for callbacks */ static const gint core_signals[] = { SIGABRT, SIGSEGV, SIGFPE, SIGILL, SIGQUIT, SIGTRAP, SIGSYS, SIGBUS, SIGXCPU, SIGXFSZ }; #define NUM_CORE_SIGNALS (gint)(sizeof(core_signals) / sizeof(core_signals[0])) static GSourceFuncs source_funcs = { signal_prepare, signal_check, signal_occurred, NULL }; static GSource *gsource = NULL; static guint listeners = 0; /* a ref count for the signal listener */ static gboolean signal_fired; guint signals_fired[NUM_SIGNALS]; GSList *callbacks[NUM_SIGNALS]; void obt_signal_listen(void) { if (!listeners) { guint i; struct sigaction action; sigset_t sigset; /* initialize the all_signals_set */ sigfillset(&all_signals_set); sigemptyset(&sigset); action.sa_handler = sighandler; action.sa_mask = sigset; action.sa_flags = SA_NOCLDSTOP; /* always grab all the signals that cause core dumps */ for (i = 0; i < NUM_CORE_SIGNALS; ++i) { /* SIGABRT is curiously not grabbed here!! that's because when we get one of the core_signals, we use abort() to dump the core. And having the abort() only go back to our signal handler again is less than optimal */ if (core_signals[i] != SIGABRT) { sigaction(core_signals[i], &action, &all_signals[core_signals[i]].oldact); all_signals[core_signals[i]].installed++; } } gsource = g_source_new(&source_funcs, sizeof(GSource)); g_source_set_priority(gsource, G_PRIORITY_HIGH); g_source_attach(gsource, NULL); } ++listeners; } void obt_signal_stop(void) { --listeners; if (!listeners) { gint i; GSList *it, *next; g_source_unref(gsource); gsource = NULL; /* remove user defined signal handlers */ for (i = 0; i < NUM_SIGNALS; ++i) for (it = callbacks[i]; it; it = next) { ObtSignalCallback *cb = it->data; next = g_slist_next(it); obt_signal_remove_callback(i, cb->func); } /* release all the signals that cause core dumps */ for (i = 0; i < NUM_CORE_SIGNALS; ++i) { if (all_signals[core_signals[i]].installed) { sigaction(core_signals[i], &all_signals[core_signals[i]].oldact, NULL); all_signals[core_signals[i]].installed--; } } #ifdef DEBUG for (i = 0; i < NUM_SIGNALS; ++i) g_assert(all_signals[i].installed == 0); #endif } } void obt_signal_add_callback(gint sig, ObtSignalHandler func, gpointer data) { ObtSignalCallback *cb; gint i; g_return_if_fail(func != NULL); g_return_if_fail(sig >= 0 && sig <= NUM_SIGNALS); for (i = 0; i < NUM_CORE_SIGNALS; ++i) g_return_if_fail(sig != core_signals[i]); cb = g_slice_new(ObtSignalCallback); cb->func = func; cb->data = data; callbacks[sig] = g_slist_prepend(callbacks[sig], cb); /* install the signal handler */ if (!all_signals[sig].installed) { struct sigaction action; sigset_t sigset; sigemptyset(&sigset); action.sa_handler = sighandler; action.sa_mask = sigset; action.sa_flags = SA_NOCLDSTOP; sigaction(sig, &action, &all_signals[sig].oldact); } all_signals[sig].installed++; } void obt_signal_remove_callback(gint sig, ObtSignalHandler func) { GSList *it; gint i; g_return_if_fail(func != NULL); g_return_if_fail(sig >= 0 && sig <= NUM_SIGNALS); for (i = 0; i < NUM_CORE_SIGNALS; ++i) g_return_if_fail(sig != core_signals[i]); for (it = callbacks[sig]; it; it = g_slist_next(it)) { ObtSignalCallback *cb = it->data; if (cb->func == func) { g_assert(all_signals[sig].installed > 0); callbacks[sig] = g_slist_delete_link(callbacks[sig], it); g_slice_free(ObtSignalCallback, cb); /* uninstall the signal handler */ all_signals[sig].installed--; if (!all_signals[sig].installed) sigaction(sig, &all_signals[sig].oldact, NULL); break; } } } static gboolean signal_prepare(GSource *source, gint *timeout) { *timeout = -1; return signal_fired; } static gboolean signal_check(GSource *source) { return signal_fired; } static gboolean signal_occurred(GSource *source, GSourceFunc callback, gpointer data) { guint i; sigset_t oldset; guint fired[NUM_SIGNALS]; /* block signals so that we can do this without the data changing on us */ sigprocmask(SIG_SETMASK, &all_signals_set, &oldset); /* make a copy of the signals that fired */ for (i = 0; i < NUM_SIGNALS; ++i) { fired[i] = signals_fired[i]; signals_fired[i] = 0; } signal_fired = FALSE; sigprocmask(SIG_SETMASK, &oldset, NULL); /* call the signal callbacks for the signals */ for (i = 0; i < NUM_SIGNALS; ++i) { while (fired[i]) { GSList *it; for (it = callbacks[i]; it; it = g_slist_next(it)) { const ObtSignalCallback *cb = it->data; cb->func(i, cb->data); } --fired[i]; } } return TRUE; /* repeat */ } static void sighandler(gint sig) { guint i; g_return_if_fail(sig < NUM_SIGNALS); for (i = 0; i < NUM_CORE_SIGNALS; ++i) if (sig == core_signals[i]) { /* XXX special case for signals that default to core dump. but throw some helpful output here... */ fprintf(stderr, "How are you gentlemen? All your base are" " belong to us. (Openbox received signal %d)\n", sig); /* die with a core dump */ abort(); } signal_fired = TRUE; ++signals_fired[sig]; /* i don't think we want to modify the GMainContext inside a signal handler, so use a GSource instead of an idle func to call back to the application */ } openbox-3.6.1/obt/xqueue.c0000644000175300001440000002346712426440016012372 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- obt/display.c for the Openbox window manager Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "obt/xqueue.h" #include "obt/display.h" #define MINSZ 16 static XEvent *q = NULL; static gulong qsz = 0; static gulong qstart; /* the first event in the queue */ static gulong qend; /* the last event in the queue */ static gulong qnum = 0; static inline void shrink(void) { if (qsz > MINSZ && qnum < qsz / 4) { const gulong newsz = qsz/2; gulong i; if (qnum == 0) { qstart = 0; qend = -1; } /* all in the shinking part, move it to pos 0 */ else if (qstart >= newsz && qend >= newsz) { for (i = 0; i < qnum; ++i) q[i] = q[qstart+i]; qstart = 0; qend = qnum - 1; } /* it wraps around to 0 right now, move the part between newsz and qsz to be before newsz */ else if (qstart >= newsz) { const gulong n = qsz - qstart; for (i = 0; i < n; ++i) q[newsz-n+i] = q[qstart+i]; qstart = newsz-n; } /* it needs to wrap around to 0, move the stuff after newsz to pos 0 */ else if (qend >= newsz) { const gulong n = qend + 1 - newsz; for (i = 0; i < n; ++i) q[i] = q[newsz+i]; qend = n - 1; } q = g_renew(XEvent, q, newsz); qsz = newsz; } } static inline void grow(void) { if (qnum == qsz) { const gulong newsz = qsz*2; gulong i; q = g_renew(XEvent, q, newsz); g_assert(qnum > 0); if (qend < qstart) { /* it wraps around to 0 right now */ for (i = 0; i <= qend; ++i) q[qsz+i] = q[i]; qend = qsz + qend; } qsz = newsz; } } /* Grab all pending X events */ static gboolean read_events(gboolean block) { gint sth, n; n = XEventsQueued(obt_display, QueuedAfterFlush) > 0; sth = FALSE; while ((block && !sth) || n > 0) { XEvent e; if (XNextEvent(obt_display, &e) != Success) return FALSE; grow(); /* make sure there is room */ ++qnum; qend = (qend + 1) % qsz; /* move the end */ q[qend] = e; /* stick the event at the end */ --n; sth = TRUE; } return sth; /* return if we read anything */ } static void pop(const gulong p) { /* remove the event */ --qnum; if (qnum == 0) { qstart = 0; qend = -1; } else if (p == qstart) qstart = (qstart + 1) % qsz; else { gulong pi; /* is it cheaper to move the start or the end ? */ if ((p >= qstart && p < qstart + qnum/2) || (p < qstart && p < (qstart + qnum/2) % qsz)) { /* move the start */ pi = p; while (pi != qstart) { const gulong pi_next = (pi == 0 ? qsz-1 : pi-1); q[pi] = q[pi_next]; pi = pi_next; } qstart = (qstart + 1) % qsz; } else { /* move the end */ pi = p; while (pi != qend) { const gulong pi_next = (pi + 1) % qsz; q[pi] = q[pi_next]; pi = pi_next; } qend = (qend == 0 ? qsz-1 : qend-1); } } shrink(); /* shrink the q if too little in it */ } void xqueue_init(void) { if (q != NULL) return; qsz = MINSZ; q = g_new(XEvent, qsz); qstart = 0; qend = -1; } void xqueue_destroy(void) { if (q == NULL) return; g_free(q); q = NULL; qsz = 0; } gboolean xqueue_match_window(XEvent *e, gpointer data) { const Window w = *(Window*)data; return e->xany.window == w; } gboolean xqueue_match_type(XEvent *e, gpointer data) { return e->type == GPOINTER_TO_INT(data); } gboolean xqueue_match_window_type(XEvent *e, gpointer data) { const ObtXQueueWindowType x = *(ObtXQueueWindowType*)data; return e->xany.window == x.window && e->type == x.type; } gboolean xqueue_match_window_message(XEvent *e, gpointer data) { const ObtXQueueWindowMessage x = *(ObtXQueueWindowMessage*)data; return e->xany.window == x.window && e->type == ClientMessage && e->xclient.message_type == x.message; } gboolean xqueue_peek(XEvent *event_return) { g_return_val_if_fail(q != NULL, FALSE); g_return_val_if_fail(event_return != NULL, FALSE); if (!qnum) read_events(TRUE); if (!qnum) return FALSE; *event_return = q[qstart]; /* get the head */ return TRUE; } gboolean xqueue_peek_local(XEvent *event_return) { g_return_val_if_fail(q != NULL, FALSE); g_return_val_if_fail(event_return != NULL, FALSE); if (!qnum) read_events(FALSE); if (!qnum) return FALSE; *event_return = q[qstart]; /* get the head */ return TRUE; } gboolean xqueue_next(XEvent *event_return) { g_return_val_if_fail(q != NULL, FALSE); g_return_val_if_fail(event_return != NULL, FALSE); if (!qnum) read_events(TRUE); if (qnum) { *event_return = q[qstart]; /* get the head */ pop(qstart); return TRUE; } return FALSE; } gboolean xqueue_next_local(XEvent *event_return) { g_return_val_if_fail(q != NULL, FALSE); g_return_val_if_fail(event_return != NULL, FALSE); if (!qnum) read_events(FALSE); if (qnum) { *event_return = q[qstart]; /* get the head */ pop(qstart); return TRUE; } return FALSE; } gboolean xqueue_exists(xqueue_match_func match, gpointer data) { gulong i, checked; g_return_val_if_fail(q != NULL, FALSE); g_return_val_if_fail(match != NULL, FALSE); checked = 0; while (TRUE) { for (i = checked; i < qnum; ++i, ++checked) { const gulong p = (qstart + i) % qsz; if (match(&q[p], data)) return TRUE; } if (!read_events(TRUE)) break; /* error */ } return FALSE; } gboolean xqueue_exists_local(xqueue_match_func match, gpointer data) { gulong i, checked; g_return_val_if_fail(q != NULL, FALSE); g_return_val_if_fail(match != NULL, FALSE); checked = 0; while (TRUE) { for (i = checked; i < qnum; ++i, ++checked) { const gulong p = (qstart + i) % qsz; if (match(&q[p], data)) return TRUE; } if (!read_events(FALSE)) break; } return FALSE; } gboolean xqueue_remove_local(XEvent *event_return, xqueue_match_func match, gpointer data) { gulong i, checked; g_return_val_if_fail(q != NULL, FALSE); g_return_val_if_fail(event_return != NULL, FALSE); g_return_val_if_fail(match != NULL, FALSE); checked = 0; while (TRUE) { for (i = checked; i < qnum; ++i, ++checked) { const gulong p = (qstart + i) % qsz; if (match(&q[p], data)) { *event_return = q[p]; pop(p); return TRUE; } } if (!read_events(FALSE)) break; } return FALSE; } gboolean xqueue_pending_local(void) { g_return_val_if_fail(q != NULL, FALSE); if (!qnum) read_events(FALSE); return qnum != 0; } typedef struct _ObtXQueueCB { ObtXQueueFunc func; gpointer data; } ObtXQueueCB; static ObtXQueueCB *callbacks = NULL; static guint n_callbacks = 0; static gboolean event_read(GSource *source, GSourceFunc callback, gpointer data) { XEvent ev; while (xqueue_next_local(&ev)) { guint i; for (i = 0; i < n_callbacks; ++i) callbacks[i].func(&ev, callbacks[i].data); } return TRUE; /* repeat */ } static gboolean x_source_prepare(GSource *source, gint *timeout) { *timeout = -1; return XPending(obt_display); } static gboolean x_source_check(GSource *source) { return XPending(obt_display); } struct x_source { GSource source; GPollFD pfd; }; static GSourceFuncs x_source_funcs = { x_source_prepare, x_source_check, event_read, NULL }; void xqueue_listen(void) { GSource *source = g_source_new(&x_source_funcs, sizeof(struct x_source)); struct x_source *x_source = (struct x_source *)source; GPollFD *pfd = &x_source->pfd; *pfd = (GPollFD){ ConnectionNumber(obt_display), G_IO_IN, G_IO_IN }; g_source_add_poll(source, pfd); g_source_attach(source, NULL); } void xqueue_add_callback(ObtXQueueFunc f, gpointer data) { guint i; g_return_if_fail(f != NULL); for (i = 0; i < n_callbacks; ++i) if (callbacks[i].func == f && callbacks[i].data == data) return; callbacks = g_renew(ObtXQueueCB, callbacks, n_callbacks + 1); callbacks[n_callbacks].func = f; callbacks[n_callbacks].data = data; ++n_callbacks; } void xqueue_remove_callback(ObtXQueueFunc f, gpointer data) { guint i; g_return_if_fail(f != NULL); for (i = 0; i < n_callbacks; ++i) { if (callbacks[i].func == f && callbacks[i].data == data) { /* remove it */ for (; i < n_callbacks - 1; ++i) callbacks[i] = callbacks[i+1]; callbacks = g_renew(ObtXQueueCB, callbacks, n_callbacks - 1); --n_callbacks; break; } } } openbox-3.6.1/obt/unittest_base.h0000644000175300001440000000335512426440016013726 00000000000000#ifndef __obt_unittest_base_h #define __obt_unittest_base_h #include #include G_BEGIN_DECLS extern guint g_test_failures; extern guint g_test_failures_at_test_start; extern const gchar* g_active_test_suite; extern const gchar* g_active_test_name; #define ADD_FAILURE() { ++g_test_failures; } #define FAILURE_AT() \ fprintf(stderr, "Failure at %s:%u\n", __FILE__, __LINE__); \ ADD_FAILURE(); #define EXPECT_BOOL_EQ(expected, actual) \ if ((expected) != (actual)) { \ FAILURE_AT(); \ fprintf(stderr, "Expected: %s\nActual: %s\n", \ ((expected) ? "true" : "false"), \ ((actual) ? "true" : "false")); \ } #define EXPECT_CHAR_EQ(expected, actual) \ if ((expected) != (actual)) { \ FAILURE_AT(); \ fprintf(stderr, "Expected: %c\nActual: %c\n", (expected), (actual)); \ } #define EXPECT_INT_EQ(expected, actual) \ if ((expected) != (actual)) { \ FAILURE_AT(); \ fprintf(stderr, "Expected: %d\nActual: %d\n", (expected), (actual)); \ } #define EXPECT_UINT_EQ(expected, actual) \ if ((expected) != (actual)) { \ FAILURE_AT(); \ fprintf(stderr, "Expected: %u\nActual: %u\n", (expected), (actual)); \ } #define EXPECT_STRING_EQ(expected, actual) \ if ((expected) != (actual)) { \ FAILURE_AT(); \ fprintf(stderr, "Expected: %s\nActual: %s\n", \ ((expected) ? (expected) : "NULL"), \ ((actual) ? (actual) : NULL)); \ } void unittest_start_suite(const char* suite_name); void unittest_end_suite(); void unittest_start(const char* test_name); void unittest_end(); #define TEST_START() unittest_start(__func__); #define TEST_END() unittest_end(); G_END_DECLS #endif openbox-3.6.1/obt/unittest_base.c0000644000175300001440000000260212426440016013713 00000000000000#include #include "obt/unittest_base.h" guint g_test_failures = 0; guint g_test_failures_at_test_start = 0; const gchar* g_active_test_suite = NULL; const gchar* g_active_test_name = NULL; /* Add all test suites here. Keep them sorted. */ extern void run_bsearch_unittest(); gint main(gint argc, gchar **argv) { /* Add all test suites here. Keep them sorted. */ run_bsearch_unittest(); return g_test_failures == 0 ? 0 : 1; } void unittest_start_suite(const char* suite_name) { g_assert(g_active_test_suite == NULL); g_active_test_suite = suite_name; printf("[--------] %s\n", suite_name); } void unittest_end_suite() { g_assert(g_active_test_suite); printf("[--------] %s\n", g_active_test_suite); printf("\n"); g_active_test_suite = NULL; } void unittest_start(const char* test_name) { g_test_failures_at_test_start = g_test_failures; g_assert(g_active_test_name == NULL); g_active_test_name = test_name; printf("[ RUN ] %s.%s\n", g_active_test_suite, g_active_test_name); } void unittest_end() { g_assert(g_active_test_name); if (g_test_failures_at_test_start == g_test_failures) { printf("[ OK ] %s.%s\n", g_active_test_suite, g_active_test_name); } else { printf("[ FAILED ] %s.%s\n", g_active_test_suite, g_active_test_name); } g_active_test_name = NULL; } openbox-3.6.1/obt/bsearch_unittest.c0000644000175300001440000002250512426440016014414 00000000000000#include "obt/unittest_base.h" #include "obt/bsearch.h" #include static void empty() { TEST_START(); BSEARCH_SETUP(); int* array = NULL; guint array_size = 0; /* Search in an empty array. */ BSEARCH(int, array, 0, array_size, 10); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(0, BSEARCH_AT()); /* Search in an empty array with a non-zero starting position. */ BSEARCH(int, array, 10, array_size, -10); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(10, BSEARCH_AT()); TEST_END(); } static void single_element() { TEST_START(); BSEARCH_SETUP(); int array[1]; guint array_size = 1; /* Search for something smaller than the only element. */ array[0] = 20; BSEARCH(int, array, 0, array_size, -10); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(0, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); /* Search for something bigger than the only element. */ array[0] = 20; BSEARCH(int, array, 0, array_size, 30); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(0, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); /* Search for something smaller than the only element. */ array[0] = -20; BSEARCH(int, array, 0, array_size, -30); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(0, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); /* Search for something bigger than the only element. */ array[0] = -20; BSEARCH(int, array, 0, array_size, 10); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(0, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); /* Search for the only element that exists. */ array[0] = -20; BSEARCH(int, array, 0, array_size, -20); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(0, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); TEST_END(); } static void single_element_nonzero_start() { TEST_START(); BSEARCH_SETUP(); int array[10]; guint array_start = 9; guint array_size = 1; /* Search for something smaller than the only element. */ array[array_start] = 20; BSEARCH(int, array, array_start, array_size, -10); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); /* Search for something bigger than the only element. */ array[array_start] = 20; BSEARCH(int, array, array_start, array_size, 30); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); /* Search for something smaller than the only element. */ array[array_start] = -20; BSEARCH(int, array, array_start, array_size, -30); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); /* Search for something bigger than the only element. */ array[array_start] = -20; BSEARCH(int, array, array_start, array_size, 10); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); /* Search for the only element that exists. */ array[array_start] = -20; BSEARCH(int, array, array_start, array_size, -20); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); TEST_END(); } static void present() { TEST_START(); BSEARCH_SETUP(); int array[5]; guint array_start = 0; guint array_size = 5; array[0] = 10; array[1] = 12; array[2] = 14; array[3] = 16; array[4] = 18; /* Search for something that is in the array. */ BSEARCH(int, array, array_start, array_size, 10); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(0, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 12); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(1, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 14); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(2, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 16); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(3, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 18); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(4, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); TEST_END(); } static void present_nonzero_start() { TEST_START(); BSEARCH_SETUP(); int array[5]; guint array_start = 2; guint array_size = 3; array[0] = 10; array[1] = 12; array[2] = 14; array[3] = 16; array[4] = 18; /* Search for something that is in the array. */ BSEARCH(int, array, array_start, array_size, 10); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 12); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 14); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(2, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 16); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(3, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 18); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND()); EXPECT_UINT_EQ(4, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); TEST_END(); } static void missing() { TEST_START(); BSEARCH_SETUP(); int array[5]; guint array_start = 0; guint array_size = 5; array[0] = 10; array[1] = 12; array[2] = 14; array[3] = 16; array[4] = 18; /* Search for something that is _not_ in the array. */ BSEARCH(int, array, array_start, array_size, 9); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(0, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 11); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(0, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 13); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(1, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 15); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(2, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 17); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(3, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 19); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(4, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); TEST_END(); } static void missing_nonzero_start() { TEST_START(); BSEARCH_SETUP(); int array[5]; guint array_start = 2; guint array_size = 3; array[0] = 10; array[1] = 12; array[2] = 14; array[3] = 16; array[4] = 18; /* Search for something that is _not_ in the array. */ BSEARCH(int, array, array_start, array_size, 9); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 11); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 13); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(array_start, BSEARCH_AT()); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 15); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(2, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 17); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(3, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); BSEARCH(int, array, array_start, array_size, 19); EXPECT_BOOL_EQ(FALSE, BSEARCH_FOUND()); EXPECT_UINT_EQ(4, BSEARCH_AT()); EXPECT_BOOL_EQ(TRUE, BSEARCH_FOUND_NEAREST_SMALLER()); TEST_END(); } void run_bsearch_unittest() { unittest_start_suite("bsearch"); empty(); single_element(); single_element_nonzero_start(); present(); present_nonzero_start(); missing(); missing_nonzero_start(); unittest_end_suite(); } openbox-3.6.1/openbox/0000755000175300001440000000000012544731565011661 500000000000000openbox-3.6.1/openbox/actions/0000755000175300001440000000000012544731565013321 500000000000000openbox-3.6.1/openbox/actions/all.c0000644000175300001440000000240312426440016014137 00000000000000#include "all.h" void action_all_startup(void) { action_execute_startup(); action_debug_startup(); action_showmenu_startup(); action_showdesktop_startup(); action_reconfigure_startup(); action_exit_startup(); action_restart_startup(); action_cyclewindows_startup(); action_breakchroot_startup(); action_close_startup(); action_move_startup(); action_focus_startup(); action_raise_startup(); action_lower_startup(); action_raiselower_startup(); action_unfocus_startup(); action_iconify_startup(); action_fullscreen_startup(); action_maximize_startup(); action_moveresizeto_startup(); action_moverelative_startup(); action_shade_startup(); action_kill_startup(); action_omnipresent_startup(); action_directionalwindows_startup(); action_resize_startup(); action_decorations_startup(); action_desktop_startup(); action_dock_startup(); action_resizerelative_startup(); action_addremovedesktop_startup(); action_dockautohide_startup(); action_layer_startup(); action_movetoedge_startup(); action_growtoedge_startup(); action_if_startup(); action_focustobottom_startup(); /* 3.4-compatibility */ action_shadelowerraise_startup(); } openbox-3.6.1/openbox/actions/all.h0000644000175300001440000000274212426440016014152 00000000000000#ifndef __actions_all_h #define __actions_all_h void action_all_startup(void); void action_execute_startup(void); void action_debug_startup(void); void action_showmenu_startup(void); void action_showdesktop_startup(void); void action_reconfigure_startup(void); void action_exit_startup(void); void action_restart_startup(void); void action_cyclewindows_startup(void); void action_breakchroot_startup(void); void action_close_startup(void); void action_move_startup(void); void action_focus_startup(void); void action_raise_startup(void); void action_lower_startup(void); void action_raiselower_startup(void); void action_unfocus_startup(void); void action_iconify_startup(void); void action_fullscreen_startup(void); void action_maximize_startup(void); void action_moveresizeto_startup(void); void action_moverelative_startup(void); void action_shade_startup(void); void action_kill_startup(void); void action_omnipresent_startup(void); void action_directionalwindows_startup(void); void action_resize_startup(void); void action_decorations_startup(void); void action_desktop_startup(void); void action_dock_startup(void); void action_resizerelative_startup(void); void action_addremovedesktop_startup(void); void action_dockautohide_startup(void); void action_layer_startup(void); void action_movetoedge_startup(void); void action_growtoedge_startup(void); void action_if_startup(void); void action_focustobottom_startup(void); /* 3.4-compatibility */ void action_shadelowerraise_startup(void); #endif openbox-3.6.1/openbox/actions/addremovedesktop.c0000644000175300001440000000561112426440016016733 00000000000000#include "openbox/actions.h" #include "openbox/screen.h" #include typedef struct { gboolean current; gboolean add; } Options; static gpointer setup_func(xmlNodePtr node); static gpointer setup_add_func(xmlNodePtr node); static gpointer setup_remove_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); /* 3.4-compatibility */ static gpointer setup_addcurrent_func(xmlNodePtr node); static gpointer setup_addlast_func(xmlNodePtr node); static gpointer setup_removecurrent_func(xmlNodePtr node); static gpointer setup_removelast_func(xmlNodePtr node); void action_addremovedesktop_startup(void) { actions_register("AddDesktop", setup_add_func, free_func, run_func); actions_register("RemoveDesktop", setup_remove_func, free_func, run_func); /* 3.4-compatibility */ actions_register("AddDesktopLast", setup_addlast_func, free_func, run_func); actions_register("RemoveDesktopLast", setup_removelast_func, free_func, run_func); actions_register("AddDesktopCurrent", setup_addcurrent_func, free_func, run_func); actions_register("RemoveDesktopCurrent", setup_removecurrent_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); if ((n = obt_xml_find_node(node, "where"))) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "last")) o->current = FALSE; else if (!g_ascii_strcasecmp(s, "current")) o->current = TRUE; g_free(s); } return o; } static gpointer setup_add_func(xmlNodePtr node) { Options *o = setup_func(node); o->add = TRUE; return o; } static gpointer setup_remove_func(xmlNodePtr node) { Options *o = setup_func(node); o->add = FALSE; return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; actions_client_move(data, TRUE); if (o->add) screen_add_desktop(o->current); else screen_remove_desktop(o->current); actions_client_move(data, FALSE); return FALSE; } /* 3.4-compatibility */ static gpointer setup_addcurrent_func(xmlNodePtr node) { Options *o = setup_add_func(node); o->current = TRUE; return o; } static gpointer setup_addlast_func(xmlNodePtr node) { Options *o = setup_add_func(node); o->current = FALSE; return o; } static gpointer setup_removecurrent_func(xmlNodePtr node) { Options *o = setup_remove_func(node); o->current = TRUE; return o; } static gpointer setup_removelast_func(xmlNodePtr node) { Options *o = setup_remove_func(node); o->current = FALSE; return o; } openbox-3.6.1/openbox/actions/breakchroot.c0000644000175300001440000000073312426440016015676 00000000000000#include "openbox/actions.h" #include "openbox/keyboard.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_breakchroot_startup(void) { actions_register("BreakChroot", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { /* break out of one chroot */ keyboard_reset_chains(1); return FALSE; } openbox-3.6.1/openbox/actions/close.c0000644000175300001440000000067712426440016014507 00000000000000#include "openbox/actions.h" #include "openbox/client.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_close_startup(void) { actions_register("Close", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { if (data->client) client_close(data->client); return FALSE; } openbox-3.6.1/openbox/actions/cyclewindows.c0000644000175300001440000002032612426440016016105 00000000000000#include "openbox/actions.h" #include "openbox/stacking.h" #include "openbox/window.h" #include "openbox/event.h" #include "openbox/focus_cycle.h" #include "openbox/openbox.h" #include "gettext.h" #include "obt/keyboard.h" typedef struct { gboolean linear; gboolean dock_windows; gboolean desktop_windows; gboolean only_hilite_windows; gboolean all_desktops; gboolean forward; gboolean bar; gboolean raise; gboolean interactive; ObFocusCyclePopupMode dialog_mode; GSList *actions; /* options for after we're done */ gboolean cancel; /* did the user cancel or not */ guint state; /* keyboard state when finished */ } Options; static gpointer setup_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_forward_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_backward_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static void free_func(gpointer options); static gboolean run_func(ObActionsData *data, gpointer options); static gboolean i_input_func(guint initial_state, XEvent *e, ObtIC *ic, gpointer options, gboolean *used); static void i_cancel_func(gpointer options); static void i_post_func(gpointer options); void action_cyclewindows_startup(void) { actions_register_i("NextWindow", setup_forward_func, free_func, run_func); actions_register_i("PreviousWindow", setup_backward_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); o->bar = TRUE; o->dialog_mode = OB_FOCUS_CYCLE_POPUP_MODE_LIST; o->interactive = TRUE; if ((n = obt_xml_find_node(node, "linear"))) o->linear = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "dialog"))) { if (obt_xml_node_contains(n, "none")) o->dialog_mode = OB_FOCUS_CYCLE_POPUP_MODE_NONE; else if (obt_xml_node_contains(n, "no")) o->dialog_mode = OB_FOCUS_CYCLE_POPUP_MODE_NONE; else if (obt_xml_node_contains(n, "icons")) o->dialog_mode = OB_FOCUS_CYCLE_POPUP_MODE_ICONS; } if ((n = obt_xml_find_node(node, "interactive"))) o->interactive = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "bar"))) o->bar = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "raise"))) o->raise = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "panels"))) o->dock_windows = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "hilite"))) o->only_hilite_windows = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "desktop"))) o->desktop_windows = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "allDesktops"))) o->all_desktops = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "finalactions"))) { xmlNodePtr m; m = obt_xml_find_node(n->children, "action"); while (m) { ObActionsAct *action = actions_parse(m); if (action) o->actions = g_slist_append(o->actions, action); m = obt_xml_find_node(m->next, "action"); } } else { o->actions = g_slist_prepend(o->actions, actions_parse_string("Focus")); o->actions = g_slist_prepend(o->actions, actions_parse_string("Raise")); o->actions = g_slist_prepend(o->actions, actions_parse_string("Unshade")); } *input = i_input_func; *cancel = i_cancel_func; *post = i_post_func; return o; } static gpointer setup_forward_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_func(node, pre, input, cancel, post); o->forward = TRUE; return o; } static gpointer setup_backward_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_func(node, pre, input, cancel, post); o->forward = FALSE; return o; } static void free_func(gpointer options) { Options *o = options; while (o->actions) { actions_act_unref(o->actions->data); o->actions = g_slist_delete_link(o->actions, o->actions); } g_slice_free(Options, o); } static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; struct _ObClient *ft; gboolean done = FALSE; gboolean cancel = FALSE; ft = focus_cycle( o->forward, o->all_desktops, !o->only_hilite_windows, o->dock_windows, o->desktop_windows, o->linear, (o->interactive ? o->bar : FALSE), (o->interactive ? o->dialog_mode : OB_FOCUS_CYCLE_POPUP_MODE_NONE), done, cancel); stacking_restore(); if (o->raise && ft) stacking_temp_raise(CLIENT_AS_WINDOW(ft)); return o->interactive; } static gboolean i_input_func(guint initial_state, XEvent *e, ObtIC *ic, gpointer options, gboolean *used) { Options *o = options; guint mods, initial_mods; initial_mods = obt_keyboard_only_modmasks(initial_state); mods = obt_keyboard_only_modmasks(e->xkey.state); if (e->type == KeyRelease) { /* remove from the state the mask of the modifier key being released, if it is a modifier key being released that is */ mods &= ~obt_keyboard_keyevent_to_modmask(e); } if (e->type == KeyPress) { KeySym sym = obt_keyboard_keypress_to_keysym(e); /* Escape cancels no matter what */ if (sym == XK_Escape) { o->cancel = TRUE; o->state = e->xkey.state; return FALSE; } /* There were no modifiers and they pressed enter */ else if ((sym == XK_Return || sym == XK_KP_Enter) && !initial_mods) { o->cancel = FALSE; o->state = e->xkey.state; return FALSE; } } /* They released the modifiers */ else if (e->type == KeyRelease && initial_mods && !(mods & initial_mods)) { o->cancel = FALSE; o->state = e->xkey.state; return FALSE; } return TRUE; } static void i_cancel_func(gpointer options) { Options *o = options; o->cancel = TRUE; o->state = 0; } static void i_post_func(gpointer options) { Options *o = options; struct _ObClient *ft; gboolean done = TRUE; ft = focus_cycle(o->forward, o->all_desktops, !o->only_hilite_windows, o->dock_windows, o->desktop_windows, o->linear, o->bar, o->dialog_mode, done, o->cancel); if (ft) actions_run_acts(o->actions, OB_USER_ACTION_KEYBOARD_KEY, o->state, -1, -1, 0, OB_FRAME_CONTEXT_NONE, ft); stacking_restore(); } openbox-3.6.1/openbox/actions/debug.c0000644000175300001440000000160612426440016014461 00000000000000#include "openbox/actions.h" #include typedef struct { gchar *str; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer options); static gboolean run_func(ObActionsData *data, gpointer options); void action_debug_startup(void) { actions_register("Debug", setup_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); if ((n = obt_xml_find_node(node, "string"))) o->str = obt_xml_node_string(n); return o; } static void free_func(gpointer options) { Options *o = options; g_free(o->str); g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (o->str) g_print("%s\n", o->str); return FALSE; } openbox-3.6.1/openbox/actions/decorations.c0000644000175300001440000000266212426440016015710 00000000000000#include "openbox/actions.h" #include "openbox/client.h" static gboolean run_func_on(ObActionsData *data, gpointer options); static gboolean run_func_off(ObActionsData *data, gpointer options); static gboolean run_func_toggle(ObActionsData *data, gpointer options); void action_decorations_startup(void) { actions_register("Decorate", NULL, NULL, run_func_on); actions_register("Undecorate", NULL, NULL, run_func_off); actions_register("ToggleDecorations", NULL, NULL, run_func_toggle); } /* Always return FALSE because its not interactive */ static gboolean run_func_on(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); client_set_undecorated(data->client, FALSE); actions_client_move(data, FALSE); } return FALSE; } /* Always return FALSE because its not interactive */ static gboolean run_func_off(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); client_set_undecorated(data->client, TRUE); actions_client_move(data, FALSE); } return FALSE; } /* Always return FALSE because its not interactive */ static gboolean run_func_toggle(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); client_set_undecorated(data->client, !data->client->undecorated); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/desktop.c0000644000175300001440000002311312426440016015041 00000000000000#include "openbox/actions.h" #include "openbox/screen.h" #include "openbox/client.h" #include "openbox/openbox.h" #include "obt/keyboard.h" typedef enum { LAST, CURRENT, RELATIVE, ABSOLUTE } SwitchType; typedef struct { SwitchType type; union { struct { guint desktop; } abs; struct { gboolean linear; gboolean wrap; ObDirection dir; } rel; } u; gboolean send; gboolean follow; } Options; static gpointer setup_func(xmlNodePtr node); static gpointer setup_send_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); /* 3.4-compatibility */ static gpointer setup_go_last_func(xmlNodePtr node); static gpointer setup_send_last_func(xmlNodePtr node); static gpointer setup_go_abs_func(xmlNodePtr node); static gpointer setup_go_next_func(xmlNodePtr node); static gpointer setup_send_next_func(xmlNodePtr node); static gpointer setup_go_prev_func(xmlNodePtr node); static gpointer setup_send_prev_func(xmlNodePtr node); static gpointer setup_go_left_func(xmlNodePtr node); static gpointer setup_send_left_func(xmlNodePtr node); static gpointer setup_go_right_func(xmlNodePtr node); static gpointer setup_send_right_func(xmlNodePtr node); static gpointer setup_go_up_func(xmlNodePtr node); static gpointer setup_send_up_func(xmlNodePtr node); static gpointer setup_go_down_func(xmlNodePtr node); static gpointer setup_send_down_func(xmlNodePtr node); void action_desktop_startup(void) { actions_register("GoToDesktop", setup_func, free_func, run_func); actions_register("SendToDesktop", setup_send_func, free_func, run_func); /* 3.4-compatibility */ actions_register("DesktopLast", setup_go_last_func, free_func, run_func); actions_register("SendToDesktopLast", setup_send_last_func, free_func, run_func); actions_register("Desktop", setup_go_abs_func, free_func, run_func); actions_register("DesktopNext", setup_go_next_func, free_func, run_func); actions_register("SendToDesktopNext", setup_send_next_func, free_func, run_func); actions_register("DesktopPrevious", setup_go_prev_func, free_func, run_func); actions_register("SendToDesktopPrevious", setup_send_prev_func, free_func, run_func); actions_register("DesktopLeft", setup_go_left_func, free_func, run_func); actions_register("SendToDesktopLeft", setup_send_left_func, free_func, run_func); actions_register("DesktopRight", setup_go_right_func, free_func, run_func); actions_register("SendToDesktopRight", setup_send_right_func, free_func, run_func); actions_register("DesktopUp", setup_go_up_func, free_func, run_func); actions_register("SendToDesktopUp", setup_send_up_func, free_func, run_func); actions_register("DesktopDown", setup_go_down_func, free_func, run_func); actions_register("SendToDesktopDown", setup_send_down_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); /* don't go anywhere if there are no options given */ o->type = ABSOLUTE; o->u.abs.desktop = screen_desktop; /* wrap by default - it's handy! */ o->u.rel.wrap = TRUE; if ((n = obt_xml_find_node(node, "to"))) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "last")) o->type = LAST; else if (!g_ascii_strcasecmp(s, "current")) o->type = CURRENT; else if (!g_ascii_strcasecmp(s, "next")) { o->type = RELATIVE; o->u.rel.linear = TRUE; o->u.rel.dir = OB_DIRECTION_EAST; } else if (!g_ascii_strcasecmp(s, "previous")) { o->type = RELATIVE; o->u.rel.linear = TRUE; o->u.rel.dir = OB_DIRECTION_WEST; } else if (!g_ascii_strcasecmp(s, "north") || !g_ascii_strcasecmp(s, "up")) { o->type = RELATIVE; o->u.rel.dir = OB_DIRECTION_NORTH; } else if (!g_ascii_strcasecmp(s, "south") || !g_ascii_strcasecmp(s, "down")) { o->type = RELATIVE; o->u.rel.dir = OB_DIRECTION_SOUTH; } else if (!g_ascii_strcasecmp(s, "west") || !g_ascii_strcasecmp(s, "left")) { o->type = RELATIVE; o->u.rel.dir = OB_DIRECTION_WEST; } else if (!g_ascii_strcasecmp(s, "east") || !g_ascii_strcasecmp(s, "right")) { o->type = RELATIVE; o->u.rel.dir = OB_DIRECTION_EAST; } else { o->type = ABSOLUTE; o->u.abs.desktop = atoi(s) - 1; } g_free(s); } if ((n = obt_xml_find_node(node, "wrap"))) o->u.rel.wrap = obt_xml_node_bool(n); return o; } static gpointer setup_send_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = setup_func(node); if ((n = obt_xml_find_node(node, "desktop"))) { /* 3.4 compatibility */ o->u.abs.desktop = obt_xml_node_int(n) - 1; o->type = ABSOLUTE; } o->send = TRUE; o->follow = TRUE; if ((n = obt_xml_find_node(node, "follow"))) o->follow = obt_xml_node_bool(n); return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; guint d; switch (o->type) { case LAST: d = screen_last_desktop; break; case CURRENT: d = screen_desktop; break; case ABSOLUTE: d = o->u.abs.desktop; break; case RELATIVE: d = screen_find_desktop(screen_desktop, o->u.rel.dir, o->u.rel.wrap, o->u.rel.linear); break; default: g_assert_not_reached(); } if (d < screen_num_desktops && (d != screen_desktop || (data->client && data->client->desktop != screen_desktop))) { gboolean go = TRUE; actions_client_move(data, TRUE); if (o->send && data->client && client_normal(data->client)) { client_set_desktop(data->client, d, o->follow, FALSE); go = o->follow; } if (go) { screen_set_desktop(d, TRUE); if (data->client) client_bring_helper_windows(data->client); } actions_client_move(data, FALSE); } return FALSE; } /* 3.4-compatilibity */ static gpointer setup_follow(xmlNodePtr node) { xmlNodePtr n; Options *o = g_slice_new0(Options); o->send = TRUE; o->follow = TRUE; if ((n = obt_xml_find_node(node, "follow"))) o->follow = obt_xml_node_bool(n); return o; } static gpointer setup_go_last_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->type = LAST; return o; } static gpointer setup_send_last_func(xmlNodePtr node) { Options *o = setup_follow(node); o->type = LAST; return o; } static gpointer setup_go_abs_func(xmlNodePtr node) { xmlNodePtr n; Options *o = g_slice_new0(Options); o->type = ABSOLUTE; if ((n = obt_xml_find_node(node, "desktop"))) o->u.abs.desktop = obt_xml_node_int(n) - 1; else o->u.abs.desktop = screen_desktop; return o; } static void setup_rel(Options *o, xmlNodePtr node, gboolean lin, ObDirection dir) { xmlNodePtr n; o->type = RELATIVE; o->u.rel.linear = lin; o->u.rel.dir = dir; o->u.rel.wrap = TRUE; if ((n = obt_xml_find_node(node, "wrap"))) o->u.rel.wrap = obt_xml_node_bool(n); } static gpointer setup_go_next_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); setup_rel(o, node, TRUE, OB_DIRECTION_EAST); return o; } static gpointer setup_send_next_func(xmlNodePtr node) { Options *o = setup_follow(node); setup_rel(o, node, TRUE, OB_DIRECTION_EAST); return o; } static gpointer setup_go_prev_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); setup_rel(o, node, TRUE, OB_DIRECTION_WEST); return o; } static gpointer setup_send_prev_func(xmlNodePtr node) { Options *o = setup_follow(node); setup_rel(o, node, TRUE, OB_DIRECTION_WEST); return o; } static gpointer setup_go_left_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); setup_rel(o, node, FALSE, OB_DIRECTION_WEST); return o; } static gpointer setup_send_left_func(xmlNodePtr node) { Options *o = setup_follow(node); setup_rel(o, node, FALSE, OB_DIRECTION_WEST); return o; } static gpointer setup_go_right_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); setup_rel(o, node, FALSE, OB_DIRECTION_EAST); return o; } static gpointer setup_send_right_func(xmlNodePtr node) { Options *o = setup_follow(node); setup_rel(o, node, FALSE, OB_DIRECTION_EAST); return o; } static gpointer setup_go_up_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); setup_rel(o, node, FALSE, OB_DIRECTION_NORTH); return o; } static gpointer setup_send_up_func(xmlNodePtr node) { Options *o = setup_follow(node); setup_rel(o, node, FALSE, OB_DIRECTION_NORTH); return o; } static gpointer setup_go_down_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); setup_rel(o, node, FALSE, OB_DIRECTION_SOUTH); return o; } static gpointer setup_send_down_func(xmlNodePtr node) { Options *o = setup_follow(node); setup_rel(o, node, FALSE, OB_DIRECTION_SOUTH); return o; } openbox-3.6.1/openbox/actions/dock.c0000644000175300001440000000171312426440016014312 00000000000000#include "openbox/actions.h" #include "openbox/stacking.h" #include "openbox/window.h" #include "openbox/dock.h" static gboolean raise_func(ObActionsData *data, gpointer options); static gboolean lower_func(ObActionsData *data, gpointer options); void action_dock_startup(void) { actions_register("RaiseDock", NULL, NULL, raise_func); actions_register("LowerDock", NULL, NULL, lower_func); } /* Always return FALSE because its not interactive */ static gboolean raise_func(ObActionsData *data, gpointer options) { actions_client_move(data, TRUE); dock_raise_dock(); actions_client_move(data, FALSE); return FALSE; } /* Always return FALSE because its not interactive */ static gboolean lower_func(ObActionsData *data, gpointer options) { actions_client_move(data, TRUE); dock_lower_dock(); actions_client_move(data, FALSE); return FALSE; } openbox-3.6.1/openbox/actions/dockautohide.c0000644000175300001440000000077312426440016016042 00000000000000#include "openbox/actions.h" #include "openbox/dock.h" #include "openbox/config.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_dockautohide_startup(void) { actions_register("ToggleDockAutoHide", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { config_dock_hide = !config_dock_hide; dock_configure(); return FALSE; } openbox-3.6.1/openbox/actions/directionalwindows.c0000644000175300001440000004247012426440016017307 00000000000000#include "openbox/actions.h" #include "openbox/event.h" #include "openbox/stacking.h" #include "openbox/window.h" #include "openbox/focus_cycle.h" #include "openbox/openbox.h" #include "openbox/misc.h" #include "gettext.h" #include "obt/keyboard.h" typedef struct { gboolean interactive; gboolean dialog; gboolean dock_windows; gboolean desktop_windows; ObDirection direction; gboolean bar; gboolean raise; GSList *actions; } Options; static gboolean cycling = FALSE; static gpointer setup_func(xmlNodePtr node); static gpointer setup_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post); static gpointer setup_target_func(xmlNodePtr node); static void free_func(gpointer options); static gboolean run_func(ObActionsData *data, gpointer options); static gboolean i_input_func(guint initial_state, XEvent *e, ObtIC *ic, gpointer options, gboolean *used); static void i_cancel_func(gpointer options); static void end_cycle(gboolean cancel, guint state, Options *o); /* 3.4-compatibility */ static gpointer setup_north_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_south_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_east_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_west_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_northwest_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_northeast_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_southwest_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_southeast_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *in, ObActionsICancelFunc *c, ObActionsIPostFunc *post); static gpointer setup_north_target_func(xmlNodePtr node); static gpointer setup_south_target_func(xmlNodePtr node); static gpointer setup_east_target_func(xmlNodePtr node); static gpointer setup_west_target_func(xmlNodePtr node); static gpointer setup_northwest_target_func(xmlNodePtr node); static gpointer setup_northeast_target_func(xmlNodePtr node); static gpointer setup_southwest_target_func(xmlNodePtr node); static gpointer setup_southeast_target_func(xmlNodePtr node); void action_directionalwindows_startup(void) { actions_register_i("DirectionalCycleWindows", setup_cycle_func, free_func, run_func); actions_register("DirectionalTargetWindow", setup_target_func, free_func, run_func); /* 3.4-compatibility */ actions_register_i("DirectionalFocusNorth", setup_north_cycle_func, free_func, run_func); actions_register_i("DirectionalFocusSouth", setup_south_cycle_func, free_func, run_func); actions_register_i("DirectionalFocusWest", setup_west_cycle_func, free_func, run_func); actions_register_i("DirectionalFocusEast", setup_east_cycle_func, free_func, run_func); actions_register_i("DirectionalFocusNorthWest", setup_northwest_cycle_func, free_func, run_func); actions_register_i("DirectionalFocusNorthEast", setup_northeast_cycle_func, free_func, run_func); actions_register_i("DirectionalFocusSouthWest", setup_southwest_cycle_func, free_func, run_func); actions_register_i("DirectionalFocusSouthEast", setup_southeast_cycle_func, free_func, run_func); actions_register("DirectionalTargetNorth", setup_north_target_func, free_func, run_func); actions_register("DirectionalTargetSouth", setup_south_target_func, free_func, run_func); actions_register("DirectionalTargetWest", setup_west_target_func, free_func, run_func); actions_register("DirectionalTargetEast", setup_east_target_func, free_func, run_func); actions_register("DirectionalTargetNorthWest", setup_northwest_target_func, free_func, run_func); actions_register("DirectionalTargetNorthEast", setup_northeast_target_func, free_func, run_func); actions_register("DirectionalTargetSouthWest", setup_southwest_target_func, free_func, run_func); actions_register("DirectionalTargetSouthEast", setup_southeast_target_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); o->dialog = TRUE; o->bar = TRUE; if ((n = obt_xml_find_node(node, "dialog"))) o->dialog = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "bar"))) o->bar = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "raise"))) o->raise = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "panels"))) o->dock_windows = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "desktop"))) o->desktop_windows = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "direction"))) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "north") || !g_ascii_strcasecmp(s, "up")) o->direction = OB_DIRECTION_NORTH; else if (!g_ascii_strcasecmp(s, "northwest")) o->direction = OB_DIRECTION_NORTHWEST; else if (!g_ascii_strcasecmp(s, "northeast")) o->direction = OB_DIRECTION_NORTHEAST; else if (!g_ascii_strcasecmp(s, "west") || !g_ascii_strcasecmp(s, "left")) o->direction = OB_DIRECTION_WEST; else if (!g_ascii_strcasecmp(s, "east") || !g_ascii_strcasecmp(s, "right")) o->direction = OB_DIRECTION_EAST; else if (!g_ascii_strcasecmp(s, "south") || !g_ascii_strcasecmp(s, "down")) o->direction = OB_DIRECTION_SOUTH; else if (!g_ascii_strcasecmp(s, "southwest")) o->direction = OB_DIRECTION_SOUTHWEST; else if (!g_ascii_strcasecmp(s, "southeast")) o->direction = OB_DIRECTION_SOUTHEAST; g_free(s); } if ((n = obt_xml_find_node(node, "finalactions"))) { xmlNodePtr m; m = obt_xml_find_node(n->children, "action"); while (m) { ObActionsAct *action = actions_parse(m); if (action) o->actions = g_slist_append(o->actions, action); m = obt_xml_find_node(m->next, "action"); } } else { o->actions = g_slist_prepend(o->actions, actions_parse_string("Focus")); o->actions = g_slist_prepend(o->actions, actions_parse_string("Raise")); o->actions = g_slist_prepend(o->actions, actions_parse_string("Unshade")); } return o; } static gpointer setup_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_func(node); o->interactive = TRUE; *input = i_input_func; *cancel = i_cancel_func; return o; } static gpointer setup_target_func(xmlNodePtr node) { Options *o = setup_func(node); o->interactive = FALSE; return o; } static void free_func(gpointer options) { Options *o = options; while (o->actions) { actions_act_unref(o->actions->data); o->actions = g_slist_delete_link(o->actions, o->actions); } g_slice_free(Options, o); } static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (!o->interactive) end_cycle(FALSE, data->state, o); else { struct _ObClient *ft; ft = focus_directional_cycle(o->direction, o->dock_windows, o->desktop_windows, TRUE, o->bar, o->dialog, FALSE, FALSE); cycling = TRUE; stacking_restore(); if (o->raise && ft) stacking_temp_raise(CLIENT_AS_WINDOW(ft)); } return o->interactive; } static gboolean i_input_func(guint initial_state, XEvent *e, ObtIC *ic, gpointer options, gboolean *used) { guint mods, initial_mods; initial_mods = obt_keyboard_only_modmasks(initial_state); mods = obt_keyboard_only_modmasks(e->xkey.state); if (e->type == KeyRelease) { /* remove from the state the mask of the modifier key being released, if it is a modifier key being released that is */ mods &= ~obt_keyboard_keyevent_to_modmask(e); } if (e->type == KeyPress) { KeySym sym = obt_keyboard_keypress_to_keysym(e); /* Escape cancels no matter what */ if (sym == XK_Escape) { end_cycle(TRUE, e->xkey.state, options); return FALSE; } /* There were no modifiers and they pressed enter */ else if ((sym == XK_Return || sym == XK_KP_Enter) && !initial_mods) { end_cycle(FALSE, e->xkey.state, options); return FALSE; } } /* They released the modifiers */ else if (e->type == KeyRelease && initial_mods && !(mods & initial_mods)) { end_cycle(FALSE, e->xkey.state, options); return FALSE; } return TRUE; } static void i_cancel_func(gpointer options) { /* we get cancelled when we move focus, but we're not cycling anymore, so just ignore that */ if (cycling) end_cycle(TRUE, 0, options); } static void end_cycle(gboolean cancel, guint state, Options *o) { struct _ObClient *ft; ft = focus_directional_cycle(o->direction, o->dock_windows, o->desktop_windows, o->interactive, o->bar, o->dialog, TRUE, cancel); cycling = FALSE; if (ft) actions_run_acts(o->actions, OB_USER_ACTION_KEYBOARD_KEY, state, -1, -1, 0, OB_FRAME_CONTEXT_NONE, ft); stacking_restore(); } /* 3.4-compatibility */ static gpointer setup_north_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_cycle_func(node, pre, input, cancel, post); o->direction = OB_DIRECTION_NORTH; return o; } static gpointer setup_south_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_cycle_func(node, pre, input, cancel, post); o->direction = OB_DIRECTION_SOUTH; return o; } static gpointer setup_east_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_cycle_func(node, pre, input, cancel, post); o->direction = OB_DIRECTION_EAST; return o; } static gpointer setup_west_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_cycle_func(node, pre, input, cancel, post); o->direction = OB_DIRECTION_WEST; return o; } static gpointer setup_northwest_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_cycle_func(node, pre, input, cancel, post); o->direction = OB_DIRECTION_NORTHWEST; return o; } static gpointer setup_northeast_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_cycle_func(node, pre, input, cancel, post); o->direction = OB_DIRECTION_EAST; return o; } static gpointer setup_southwest_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_cycle_func(node, pre, input, cancel, post); o->direction = OB_DIRECTION_SOUTHWEST; return o; } static gpointer setup_southeast_cycle_func(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post) { Options *o = setup_cycle_func(node, pre, input, cancel, post); o->direction = OB_DIRECTION_SOUTHEAST; return o; } static gpointer setup_north_target_func(xmlNodePtr node) { Options *o = setup_target_func(node); o->direction = OB_DIRECTION_NORTH; return o; } static gpointer setup_south_target_func(xmlNodePtr node) { Options *o = setup_target_func(node); o->direction = OB_DIRECTION_SOUTH; return o; } static gpointer setup_east_target_func(xmlNodePtr node) { Options *o = setup_target_func(node); o->direction = OB_DIRECTION_EAST; return o; } static gpointer setup_west_target_func(xmlNodePtr node) { Options *o = setup_target_func(node); o->direction = OB_DIRECTION_WEST; return o; } static gpointer setup_northwest_target_func(xmlNodePtr node) { Options *o = setup_target_func(node); o->direction = OB_DIRECTION_NORTHWEST; return o; } static gpointer setup_northeast_target_func(xmlNodePtr node) { Options *o = setup_target_func(node); o->direction = OB_DIRECTION_NORTHEAST; return o; } static gpointer setup_southwest_target_func(xmlNodePtr node) { Options *o = setup_target_func(node); o->direction = OB_DIRECTION_SOUTHWEST; return o; } static gpointer setup_southeast_target_func(xmlNodePtr node) { Options *o = setup_target_func(node); o->direction = OB_DIRECTION_SOUTHEAST; return o; } openbox-3.6.1/openbox/actions/execute.c0000644000175300001440000002053212426440016015034 00000000000000#include "openbox/actions.h" #include "openbox/event.h" #include "openbox/startupnotify.h" #include "openbox/client.h" #include "openbox/prompt.h" #include "openbox/screen.h" #include "obt/paths.h" #include "gettext.h" #ifdef HAVE_STDLIB_H # include #endif typedef struct { gchar *cmd; gboolean sn; gchar *sn_name; gchar *sn_icon; gchar *sn_wmclass; gchar *prompt; ObActionsData *data; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer options); static gboolean run_func(ObActionsData *data, gpointer options); static void shutdown_func(void); static void client_dest(ObClient *client, gpointer data); static GSList *prompt_opts = NULL; void action_execute_startup(void) { actions_register("Execute", setup_func, free_func, run_func); actions_set_shutdown("Execute", shutdown_func); actions_set_modifies_focused_window("Execute", FALSE); client_add_destroy_notify(client_dest, NULL); } static void client_dest(ObClient *client, gpointer data) { GSList *it; for (it = prompt_opts; it; it = g_slist_next(it)) { Options *o = it->data; if (o->data->client == client) o->data->client = NULL; } } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); if ((n = obt_xml_find_node(node, "command")) || (n = obt_xml_find_node(node, "execute"))) { gchar *s = obt_xml_node_string(n); o->cmd = obt_paths_expand_tilde(s); g_free(s); } if ((n = obt_xml_find_node(node, "prompt"))) o->prompt = obt_xml_node_string(n); if ((n = obt_xml_find_node(node, "startupnotify"))) { xmlNodePtr m; if ((m = obt_xml_find_node(n->children, "enabled"))) o->sn = obt_xml_node_bool(m); if ((m = obt_xml_find_node(n->children, "name"))) o->sn_name = obt_xml_node_string(m); if ((m = obt_xml_find_node(n->children, "icon"))) o->sn_icon = obt_xml_node_string(m); if ((m = obt_xml_find_node(n->children, "wmclass"))) o->sn_wmclass = obt_xml_node_string(m); } return o; } static void shutdown_func(void) { client_remove_destroy_notify(client_dest); } static void free_func(gpointer options) { Options *o = options; if (o) { prompt_opts = g_slist_remove(prompt_opts, o); g_free(o->cmd); g_free(o->sn_name); g_free(o->sn_icon); g_free(o->sn_wmclass); g_free(o->prompt); if (o->data) g_slice_free(ObActionsData, o->data); g_slice_free(Options, o); } } static Options* dup_options(Options *in, ObActionsData *data) { Options *o = g_slice_new(Options); o->cmd = g_strdup(in->cmd); o->sn = in->sn; o->sn_name = g_strdup(in->sn_name); o->sn_icon = g_strdup(in->sn_icon); o->sn_wmclass = g_strdup(in->sn_wmclass); o->prompt = NULL; o->data = g_slice_new(ObActionsData); memcpy(o->data, data, sizeof(ObActionsData)); return o; } static gboolean prompt_cb(ObPrompt *p, gint result, gpointer options) { Options *o = options; if (result) run_func(o->data, o); return TRUE; /* call the cleanup func */ } static void prompt_cleanup(ObPrompt *p, gpointer options) { prompt_unref(p); free_func(options); } /* Replace occurrences of $variables */ static gchar* expand_variables(gchar* cmd, ObActionsData* data) { gchar *c, *before, *expand; expand = NULL; before = cmd; while ((c = strchr(before, '$'))) { if ((c[1] == 'p' || c[1] == 'P') && (c[2] == 'i' || c[2] == 'I') && (c[3] == 'd' || c[3] == 'D') && !g_ascii_isalnum(c[4])) { /* found $pid */ gchar *tmp; *c = '\0'; tmp = expand; expand = g_strdup_printf("%s%s%u", (expand ? expand : ""), before, data->client ? data->client->pid : 0); g_free(tmp); before = c + 4; /* 4 = strlen("$pid") */ } else if ((c[1] == 'w' || c[1] == 'W') && (c[2] == 'i' || c[2] == 'I') && (c[3] == 'd' || c[3] == 'D') && !g_ascii_isalnum(c[4])) { /* found $wid */ gchar *tmp; *c = '\0'; tmp = expand; expand = g_strdup_printf("%s%s%lu", (expand ? expand : ""), before, data->client ? data->client->window : 0); g_free(tmp); before = c + 4; /* 4 = strlen("$wid") */ } else if ((c[1] == 'p' || c[1] == 'P') && (c[2] == 'o' || c[2] == 'O') && (c[3] == 'i' || c[3] == 'I') && (c[4] == 'n' || c[4] == 'N') && (c[5] == 't' || c[5] == 'T') && (c[6] == 'e' || c[6] == 'E') && (c[7] == 'r' || c[7] == 'R') && !g_ascii_isalnum(c[8])) { /* found $pointer */ gchar *tmp; *c = '\0'; tmp = expand; expand = g_strdup_printf("%s%s%u %u", (expand ? expand : ""), before, data->x, data->y); g_free(tmp); before = c + 8; /* 4 = strlen("$pointer") */ } else { /* found something unknown, copy the $ and continue */ gchar *tmp; *c = '\0'; tmp = expand; expand = g_strdup_printf("%s%s$", (expand ? expand : ""), before); g_free(tmp); before = c + 1; /* 1 = strlen("$") */ } } if (expand) { gchar *tmp; /* add on the end of the string after the last replacement */ tmp = expand; expand = g_strconcat(expand, before, NULL); g_free(tmp); /* replace the command with the expanded one */ g_free(cmd); cmd = expand; } return cmd; } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { GError *e; gchar **argv = NULL; gchar *cmd; Options *o = options; if (!o->cmd) return FALSE; if (o->prompt) { ObPrompt *p; Options *ocp; ObPromptAnswer answers[] = { { _("No"), 0 }, { _("Yes"), 1 } }; ocp = dup_options(options, data); p = prompt_new(o->prompt, _("Execute"), answers, 2, 0, 0, prompt_cb, prompt_cleanup, ocp); prompt_show(p, NULL, FALSE); return FALSE; } cmd = g_filename_from_utf8(o->cmd, -1, NULL, NULL, NULL); if (!cmd) { g_message(_("Failed to convert the path \"%s\" from utf8"), o->cmd); return FALSE; } cmd = expand_variables(cmd, data); /* If there is a keyboard grab going on then we need to cancel it so the application can grab things */ if (data->uact != OB_USER_ACTION_MENU_SELECTION) event_cancel_all_key_grabs(); e = NULL; if (!g_shell_parse_argv(cmd, NULL, &argv, &e)) { g_message("%s", e->message); g_error_free(e); } else { gchar *program = NULL; gboolean ok; if (o->sn) { program = g_path_get_basename(argv[0]); /* sets up the environment */ sn_setup_spawn_environment(program, o->sn_name, o->sn_icon, o->sn_wmclass, /* launch it on the current desktop */ screen_desktop); } e = NULL; ok = g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, NULL, &e); if (!ok) { g_message("%s", e->message); g_error_free(e); } if (o->sn) { if (!ok) sn_spawn_cancel(); g_unsetenv("DESKTOP_STARTUP_ID"); } g_free(program); g_strfreev(argv); } g_free(cmd); return FALSE; } openbox-3.6.1/openbox/actions/exit.c0000644000175300001440000000372112426440016014344 00000000000000#include "openbox/actions.h" #include "openbox/openbox.h" #include "openbox/prompt.h" #include "openbox/session.h" #include "gettext.h" typedef struct { gboolean prompt; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); void action_exit_startup(void) { actions_register("Exit", setup_func, free_func, run_func); actions_register("SessionLogout", setup_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); o->prompt = TRUE; if ((n = obt_xml_find_node(node, "prompt"))) o->prompt = obt_xml_node_bool(n); return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } static void do_exit(void) { if (session_connected()) session_request_logout(FALSE); else ob_exit(0); } static gboolean prompt_cb(ObPrompt *p, gint result, gpointer data) { if (result) do_exit(); return TRUE; /* call the cleanup func */ } static void prompt_cleanup(ObPrompt *p, gpointer data) { prompt_unref(p); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (o->prompt) { ObPrompt *p; ObPromptAnswer answers[] = { { _("Cancel"), 0 }, { _("Exit"), 1 } }; if (session_connected()) p = prompt_new(_("Are you sure you want to log out?"), _("Log Out"), answers, 2, 0, 0, prompt_cb, prompt_cleanup, NULL); else p = prompt_new(_("Are you sure you want to exit Openbox?"), _("Exit Openbox"), answers, 2, 0, 0, prompt_cb, prompt_cleanup, NULL); prompt_show(p, NULL, FALSE); } else do_exit(); return FALSE; } openbox-3.6.1/openbox/actions/focus.c0000644000175300001440000000401212426440016014504 00000000000000#include "openbox/actions.h" #include "openbox/event.h" #include "openbox/client.h" #include "openbox/focus.h" #include "openbox/screen.h" typedef struct { gboolean here; gboolean stop_int; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); void action_focus_startup(void) { actions_register("Focus", setup_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); o->stop_int = TRUE; if ((n = obt_xml_find_node(node, "here"))) o->here = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "stopInteractive"))) o->stop_int = obt_xml_node_bool(n); return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { /* ob_debug("button %d focusable %d context %d %d %d\n", data->button, client_mouse_focusable(data->client), data->context, OB_FRAME_CONTEXT_CLIENT, OB_FRAME_CONTEXT_FRAME); */ if (data->button == 0 || client_mouse_focusable(data->client) || (data->context != OB_FRAME_CONTEXT_CLIENT && data->context != OB_FRAME_CONTEXT_FRAME)) { if (o->stop_int) actions_interactive_cancel_act(); actions_client_move(data, TRUE); client_activate(data->client, TRUE, o->here, FALSE, FALSE, TRUE); actions_client_move(data, FALSE); } } else if (data->context == OB_FRAME_CONTEXT_DESKTOP) { if (o->stop_int) actions_interactive_cancel_act(); /* focus action on the root window. make keybindings work for this openbox instance, but don't focus any specific client */ focus_nothing(); } return FALSE; } openbox-3.6.1/openbox/actions/focustobottom.c0000644000175300001440000000066412426440016016305 00000000000000#include "openbox/actions.h" #include "openbox/focus.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_focustobottom_startup(void) { actions_register("FocusToBottom", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { if (data->client) focus_order_to_bottom(data->client); return FALSE; } openbox-3.6.1/openbox/actions/fullscreen.c0000644000175300001440000000107412426440016015534 00000000000000#include "openbox/actions.h" #include "openbox/client.h" static gboolean run_func_toggle(ObActionsData *data, gpointer options); void action_fullscreen_startup(void) { actions_register("ToggleFullscreen", NULL, NULL, run_func_toggle); } /* Always return FALSE because its not interactive */ static gboolean run_func_toggle(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); client_fullscreen(data->client, !data->client->fullscreen); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/growtoedge.c0000644000175300001440000002070612426440016015543 00000000000000#include "openbox/actions.h" #include "openbox/misc.h" #include "openbox/client.h" #include "openbox/frame.h" #include "openbox/screen.h" #include typedef struct { ObDirection dir; gboolean shrink; gboolean fill; } Options; static gpointer setup_grow_func(xmlNodePtr node); static gpointer setup_fill_func(xmlNodePtr node); static gpointer setup_shrink_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); /* 3.4-compatibility */ static gpointer setup_north_func(xmlNodePtr node); static gpointer setup_south_func(xmlNodePtr node); static gpointer setup_east_func(xmlNodePtr node); static gpointer setup_west_func(xmlNodePtr node); void action_growtoedge_startup(void) { actions_register("GrowToEdge", setup_grow_func, free_func, run_func); actions_register("GrowToFill", setup_fill_func, free_func, run_func); actions_register("ShrinkToEdge", setup_shrink_func, free_func, run_func); /* 3.4-compatibility */ actions_register("GrowToEdgeNorth", setup_north_func, free_func, run_func); actions_register("GrowToEdgeSouth", setup_south_func, free_func, run_func); actions_register("GrowToEdgeEast", setup_east_func, free_func, run_func); actions_register("GrowToEdgeWest", setup_west_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); o->dir = OB_DIRECTION_NORTH; if ((n = obt_xml_find_node(node, "direction"))) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "north") || !g_ascii_strcasecmp(s, "up")) o->dir = OB_DIRECTION_NORTH; else if (!g_ascii_strcasecmp(s, "south") || !g_ascii_strcasecmp(s, "down")) o->dir = OB_DIRECTION_SOUTH; else if (!g_ascii_strcasecmp(s, "west") || !g_ascii_strcasecmp(s, "left")) o->dir = OB_DIRECTION_WEST; else if (!g_ascii_strcasecmp(s, "east") || !g_ascii_strcasecmp(s, "right")) o->dir = OB_DIRECTION_EAST; g_free(s); } return o; } static gpointer setup_grow_func(xmlNodePtr node) { Options *o; o = setup_func(node); o->shrink = FALSE; o->fill = FALSE; return o; } static gpointer setup_fill_func(xmlNodePtr node) { Options *o; o = setup_func(node); o->shrink = FALSE; o->fill = TRUE; return o; } static gpointer setup_shrink_func(xmlNodePtr node) { Options *o; o = setup_func(node); o->shrink = TRUE; o->fill = FALSE; return o; } static gboolean do_grow(ObActionsData *data, gint x, gint y, gint w, gint h) { gint realw, realh, lw, lh; realw = w; realh = h; client_try_configure(data->client, &x, &y, &realw, &realh, &lw, &lh, TRUE); /* if it's going to be resized smaller than it intended, don't move the window over */ if (x != data->client->area.x) x += w - realw; if (y != data->client->area.y) y += h - realh; if (x != data->client->area.x || y != data->client->area.y || realw != data->client->area.width || realh != data->client->area.height) { actions_client_move(data, TRUE); client_move_resize(data->client, x, y, realw, realh); actions_client_move(data, FALSE); return TRUE; } return FALSE; } static gboolean do_grow_all_edges(ObActionsData* data, ObClientDirectionalResizeType resize_type) { gint x, y, w, h; gint temp_x, temp_y, temp_w, temp_h; client_find_resize_directional(data->client, OB_DIRECTION_NORTH, resize_type, &temp_x, &temp_y, &temp_w, &temp_h); y = temp_y; h = temp_h; client_find_resize_directional(data->client, OB_DIRECTION_SOUTH, resize_type, &temp_x, &temp_y, &temp_w, &temp_h); h += temp_h - data->client->area.height; client_find_resize_directional(data->client, OB_DIRECTION_WEST, resize_type, &temp_x, &temp_y, &temp_w, &temp_h); x = temp_x; w = temp_w; client_find_resize_directional(data->client, OB_DIRECTION_EAST, resize_type, &temp_x, &temp_y, &temp_w, &temp_h); w += temp_w - data->client->area.width; /* When filling, we allow the window to move to an arbitrary x/y position, since we'll be growing the other edge as well. */ int lw, lh; client_try_configure(data->client, &x, &y, &w, &h, &lw, &lh, TRUE); if (x == data->client->area.x && y == data->client->area.y && w == data->client->area.width && h == data->client->area.height) { return FALSE; } actions_client_move(data, TRUE); client_move_resize(data->client, x, y, w, h); actions_client_move(data, FALSE); return TRUE; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (!data->client) return FALSE; gboolean doing_vertical_resize = o->dir == OB_DIRECTION_NORTH || o->dir == OB_DIRECTION_SOUTH || o->fill; if (data->client->shaded && doing_vertical_resize) return FALSE; if (o->fill) { if (o->shrink) { /* We don't have any implementation of shrinking for the FillToGrow action. */ return FALSE; } if (do_grow_all_edges(data, CLIENT_RESIZE_GROW_IF_NOT_ON_EDGE)) return FALSE; /* If all the edges are blocked, then allow them to jump past their current block points. */ do_grow_all_edges(data, CLIENT_RESIZE_GROW); return FALSE; } if (!o->shrink) { gint x, y, w, h; /* Try grow. */ client_find_resize_directional(data->client, o->dir, CLIENT_RESIZE_GROW, &x, &y, &w, &h); if (do_grow(data, x, y, w, h)) return FALSE; } /* We couldn't grow, so try shrink! */ ObDirection opposite = (o->dir == OB_DIRECTION_NORTH ? OB_DIRECTION_SOUTH : (o->dir == OB_DIRECTION_SOUTH ? OB_DIRECTION_NORTH : (o->dir == OB_DIRECTION_EAST ? OB_DIRECTION_WEST : OB_DIRECTION_EAST))); gint x, y, w, h; gint half; client_find_resize_directional(data->client, opposite, CLIENT_RESIZE_SHRINK, &x, &y, &w, &h); switch (opposite) { case OB_DIRECTION_NORTH: half = data->client->area.y + data->client->area.height / 2; if (y > half) { h += y - half; y = half; } break; case OB_DIRECTION_SOUTH: half = data->client->area.height / 2; if (h < half) h = half; break; case OB_DIRECTION_WEST: half = data->client->area.x + data->client->area.width / 2; if (x > half) { w += x - half; x = half; } break; case OB_DIRECTION_EAST: half = data->client->area.width / 2; if (w < half) w = half; break; default: g_assert_not_reached(); } if (do_grow(data, x, y, w, h)) return FALSE; return FALSE; } /* 3.4-compatibility */ static gpointer setup_north_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->shrink = FALSE; o->dir = OB_DIRECTION_NORTH; return o; } static gpointer setup_south_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->shrink = FALSE; o->dir = OB_DIRECTION_SOUTH; return o; } static gpointer setup_east_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->shrink = FALSE; o->dir = OB_DIRECTION_EAST; return o; } static gpointer setup_west_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->shrink = FALSE; o->dir = OB_DIRECTION_WEST; return o; } openbox-3.6.1/openbox/actions/iconify.c0000644000175300001440000000107312426440016015031 00000000000000#include "openbox/actions.h" #include "openbox/client.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_iconify_startup(void) { actions_register("Iconify", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); client_iconify(data->client, TRUE, TRUE, FALSE); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/if.c0000644000175300001440000003243312426440016013773 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- if.c for the Openbox window manager Copyright (c) 2007 Mikael Magnusson Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "openbox/actions.h" #include "openbox/misc.h" #include "openbox/client.h" #include "openbox/frame.h" #include "openbox/screen.h" #include "openbox/focus.h" #include typedef enum { QUERY_TARGET_IS_ACTION_TARGET, QUERY_TARGET_IS_FOCUS_TARGET, } QueryTarget; typedef enum { MATCH_TYPE_NONE = 0, MATCH_TYPE_PATTERN, MATCH_TYPE_REGEX, MATCH_TYPE_EXACT, } MatchType; typedef struct { MatchType type; union m { GPatternSpec *pattern; GRegex *regex; gchar *exact; } m; } TypedMatch; typedef struct { QueryTarget target; gboolean shaded_on; gboolean shaded_off; gboolean maxvert_on; gboolean maxvert_off; gboolean maxhorz_on; gboolean maxhorz_off; gboolean maxfull_on; gboolean maxfull_off; gboolean iconic_on; gboolean iconic_off; gboolean focused; gboolean unfocused; gboolean urgent_on; gboolean urgent_off; gboolean decor_off; gboolean decor_on; gboolean omnipresent_on; gboolean omnipresent_off; gboolean desktop_current; gboolean desktop_other; guint desktop_number; guint screendesktop_number; guint client_monitor; TypedMatch title; TypedMatch class; TypedMatch name; TypedMatch role; TypedMatch type; } Query; typedef struct { GArray *queries; GSList *thenacts; GSList *elseacts; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer options); static gboolean run_func_if(ObActionsData *data, gpointer options); static gboolean run_func_stop(ObActionsData *data, gpointer options); static gboolean run_func_foreach(ObActionsData *data, gpointer options); static gboolean foreach_stop; void action_if_startup(void) { actions_register("If", setup_func, free_func, run_func_if); actions_register("Stop", NULL, NULL, run_func_stop); actions_register("ForEach", setup_func, free_func, run_func_foreach); actions_set_can_stop("Stop", TRUE); } static inline void set_bool(xmlNodePtr node, const char *name, gboolean *on, gboolean *off) { xmlNodePtr n; if ((n = obt_xml_find_node(node, name))) { if (obt_xml_node_bool(n)) *on = TRUE; else *off = TRUE; } } static void setup_typed_match(TypedMatch *tm, xmlNodePtr n) { gchar *s; if ((s = obt_xml_node_string(n))) { gchar *type = NULL; if (!obt_xml_attr_string(n, "type", &type) || !g_ascii_strcasecmp(type, "pattern")) { tm->type = MATCH_TYPE_PATTERN; tm->m.pattern = g_pattern_spec_new(s); } else if (type && !g_ascii_strcasecmp(type, "regex")) { tm->type = MATCH_TYPE_REGEX; tm->m.regex = g_regex_new(s, 0, 0, NULL); } else if (type && !g_ascii_strcasecmp(type, "exact")) { tm->type = MATCH_TYPE_EXACT; tm->m.exact = g_strdup(s); } g_free(s); g_free(type); } } static void free_typed_match(TypedMatch *tm) { switch (tm->type) { case MATCH_TYPE_PATTERN: g_pattern_spec_free(tm->m.pattern); break; case MATCH_TYPE_REGEX: g_regex_unref(tm->m.regex); break; case MATCH_TYPE_EXACT: g_free(tm->m.exact); break; case MATCH_TYPE_NONE: break; } } static gboolean check_typed_match(TypedMatch *tm, const gchar *s) { switch (tm->type) { case MATCH_TYPE_PATTERN: return g_pattern_match_string(tm->m.pattern, s); case MATCH_TYPE_REGEX: return g_regex_match(tm->m.regex, s, 0, NULL); case MATCH_TYPE_EXACT: return !strcmp(tm->m.exact, s); case MATCH_TYPE_NONE: return TRUE; } g_assert_not_reached(); } static void setup_query(Options* o, xmlNodePtr node, QueryTarget target) { Query *q = g_slice_new0(Query); g_array_append_val(o->queries, q); q->target = target; set_bool(node, "shaded", &q->shaded_on, &q->shaded_off); set_bool(node, "maximized", &q->maxfull_on, &q->maxfull_off); set_bool(node, "maximizedhorizontal", &q->maxhorz_on, &q->maxhorz_off); set_bool(node, "maximizedvertical", &q->maxvert_on, &q->maxvert_off); set_bool(node, "iconified", &q->iconic_on, &q->iconic_off); set_bool(node, "focused", &q->focused, &q->unfocused); set_bool(node, "urgent", &q->urgent_on, &q->urgent_off); set_bool(node, "undecorated", &q->decor_off, &q->decor_on); set_bool(node, "omnipresent", &q->omnipresent_on, &q->omnipresent_off); xmlNodePtr n; if ((n = obt_xml_find_node(node, "desktop"))) { gchar *s; if ((s = obt_xml_node_string(n))) { if (!g_ascii_strcasecmp(s, "current")) q->desktop_current = TRUE; if (!g_ascii_strcasecmp(s, "other")) q->desktop_other = TRUE; else q->desktop_number = atoi(s); g_free(s); } } if ((n = obt_xml_find_node(node, "activedesktop"))) { q->screendesktop_number = obt_xml_node_int(n); } if ((n = obt_xml_find_node(node, "title"))) { setup_typed_match(&q->title, n); } if ((n = obt_xml_find_node(node, "class"))) { setup_typed_match(&q->class, n); } if ((n = obt_xml_find_node(node, "name"))) { setup_typed_match(&q->name, n); } if ((n = obt_xml_find_node(node, "role"))) { setup_typed_match(&q->role, n); } if ((n = obt_xml_find_node(node, "type"))) { setup_typed_match(&q->type, n); } if ((n = obt_xml_find_node(node, "monitor"))) { q->client_monitor = obt_xml_node_int(n); } } static gpointer setup_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); gboolean zero_terminated = FALSE; gboolean clear_to_zero_on_alloc = FALSE; o->queries = g_array_new(zero_terminated, clear_to_zero_on_alloc, sizeof(Query*)); xmlNodePtr n; if ((n = obt_xml_find_node(node, "then"))) { xmlNodePtr m; m = obt_xml_find_node(n->children, "action"); while (m) { ObActionsAct *action = actions_parse(m); if (action) o->thenacts = g_slist_append(o->thenacts, action); m = obt_xml_find_node(m->next, "action"); } } if ((n = obt_xml_find_node(node, "else"))) { xmlNodePtr m; m = obt_xml_find_node(n->children, "action"); while (m) { ObActionsAct *action = actions_parse(m); if (action) o->elseacts = g_slist_append(o->elseacts, action); m = obt_xml_find_node(m->next, "action"); } } xmlNodePtr query_node = obt_xml_find_node(node, "query"); if (!query_node) { /* The default query if none is specified. It uses the conditions found in the action's node. */ setup_query(o, node, QUERY_TARGET_IS_ACTION_TARGET); } else { while (query_node) { QueryTarget query_target = QUERY_TARGET_IS_ACTION_TARGET; if (obt_xml_attr_contains(query_node, "target", "focus")) query_target = QUERY_TARGET_IS_FOCUS_TARGET; setup_query(o, query_node->children, query_target); query_node = obt_xml_find_node(query_node->next, "query"); } } return o; } static void free_func(gpointer options) { Options *o = options; guint i; for (i = 0; i < o->queries->len; ++i) { Query *q = g_array_index(o->queries, Query*, i); free_typed_match(&q->title); free_typed_match(&q->class); free_typed_match(&q->name); free_typed_match(&q->role); free_typed_match(&q->type); g_slice_free(Query, q); } while (o->thenacts) { actions_act_unref(o->thenacts->data); o->thenacts = g_slist_delete_link(o->thenacts, o->thenacts); } while (o->elseacts) { actions_act_unref(o->elseacts->data); o->elseacts = g_slist_delete_link(o->elseacts, o->elseacts); } g_array_unref(o->queries); g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func_if(ObActionsData *data, gpointer options) { Options *o = options; ObClient *action_target = data->client; gboolean is_true = TRUE; guint i; for (i = 0; is_true && i < o->queries->len; ++i) { Query *q = g_array_index(o->queries, Query*, i); ObClient *query_target = NULL; switch (q->target) { case QUERY_TARGET_IS_ACTION_TARGET: query_target = data->client; break; case QUERY_TARGET_IS_FOCUS_TARGET: query_target = focus_client; break; } /* If there's no client to query, then false. */ if (!query_target) { is_true = FALSE; break; } if (q->shaded_on) is_true &= query_target->shaded; if (q->shaded_off) is_true &= !query_target->shaded; if (q->iconic_on) is_true &= query_target->iconic; if (q->iconic_off) is_true &= !query_target->iconic; if (q->maxhorz_on) is_true &= query_target->max_horz; if (q->maxhorz_off) is_true &= !query_target->max_horz; if (q->maxvert_on) is_true &= query_target->max_vert; if (q->maxvert_off) is_true &= !query_target->max_vert; gboolean is_max_full = query_target->max_vert && query_target->max_horz; if (q->maxfull_on) is_true &= is_max_full; if (q->maxfull_off) is_true &= !is_max_full; if (q->focused) is_true &= query_target == focus_client; if (q->unfocused) is_true &= query_target != focus_client; gboolean is_urgent = query_target->urgent || query_target->demands_attention; if (q->urgent_on) is_true &= is_urgent; if (q->urgent_off) is_true &= !is_urgent; gboolean has_visible_title_bar = !query_target->undecorated && (query_target->decorations & OB_FRAME_DECOR_TITLEBAR); if (q->decor_on) is_true &= has_visible_title_bar; if (q->decor_off) is_true &= !has_visible_title_bar; if (q->omnipresent_on) is_true &= query_target->desktop == DESKTOP_ALL; if (q->omnipresent_off) is_true &= query_target->desktop != DESKTOP_ALL; gboolean is_on_current_desktop = query_target->desktop == screen_desktop || query_target->desktop == DESKTOP_ALL; if (q->desktop_current) is_true &= is_on_current_desktop; if (q->desktop_other) is_true &= !is_on_current_desktop; if (q->desktop_number) { gboolean is_on_desktop = query_target->desktop == q->desktop_number - 1 || query_target->desktop == DESKTOP_ALL; is_true &= is_on_desktop; } if (q->screendesktop_number) is_true &= screen_desktop == q->screendesktop_number - 1; is_true &= check_typed_match(&q->title, query_target->original_title); is_true &= check_typed_match(&q->class, query_target->class); is_true &= check_typed_match(&q->name, query_target->name); is_true &= check_typed_match(&q->role, query_target->role); is_true &= check_typed_match(&q->type, client_type_to_string(query_target)); if (q->client_monitor) is_true &= client_monitor(query_target) == q->client_monitor - 1; } GSList *acts; if (is_true) acts = o->thenacts; else acts = o->elseacts; actions_run_acts(acts, data->uact, data->state, data->x, data->y, data->button, data->context, action_target); return FALSE; } static gboolean run_func_foreach(ObActionsData *data, gpointer options) { GList *it; foreach_stop = FALSE; for (it = client_list; it; it = g_list_next(it)) { data->client = it->data; run_func_if(data, options); if (foreach_stop) { foreach_stop = FALSE; break; } } return FALSE; } static gboolean run_func_stop(ObActionsData *data, gpointer options) { /* This stops the loop above so we don't invoke actions on any more clients */ foreach_stop = TRUE; /* TRUE causes actions_run_acts to not run further actions on the current client */ return TRUE; } openbox-3.6.1/openbox/actions/kill.c0000644000175300001440000000070412426440016014324 00000000000000#include "openbox/actions.h" #include "openbox/client.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_kill_startup(void) { actions_register("Kill", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { if (data->client) client_kill(data->client); return FALSE; } openbox-3.6.1/openbox/actions/layer.c0000644000175300001440000000660012426440016014506 00000000000000#include "openbox/actions.h" #include "openbox/client.h" typedef struct { gint layer; /*!< -1 for below, 0 for normal, and 1 for above */ gboolean toggle; } Options; static gpointer setup_func_top(xmlNodePtr node); static gpointer setup_func_bottom(xmlNodePtr node); static gpointer setup_func_send(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); /* 3.4-compatibility */ static gpointer setup_sendtop_func(xmlNodePtr node); static gpointer setup_sendbottom_func(xmlNodePtr node); static gpointer setup_sendnormal_func(xmlNodePtr node); void action_layer_startup(void) { actions_register("ToggleAlwaysOnTop", setup_func_top, free_func, run_func); actions_register("ToggleAlwaysOnBottom", setup_func_bottom, free_func, run_func); actions_register("SendToLayer", setup_func_send, free_func, run_func); /* 3.4-compatibility */ actions_register("SendToTopLayer", setup_sendtop_func, free_func, run_func); actions_register("SendToBottomLayer", setup_sendbottom_func, free_func, run_func); actions_register("SendToNormalLayer", setup_sendnormal_func, free_func, run_func); } static gpointer setup_func_top(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->layer = 1; o->toggle = TRUE; return o; } static gpointer setup_func_bottom(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->layer = -1; o->toggle = TRUE; return o; } static gpointer setup_func_send(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); if ((n = obt_xml_find_node(node, "layer"))) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "above") || !g_ascii_strcasecmp(s, "top")) o->layer = 1; else if (!g_ascii_strcasecmp(s, "below") || !g_ascii_strcasecmp(s, "bottom")) o->layer = -1; else if (!g_ascii_strcasecmp(s, "normal") || !g_ascii_strcasecmp(s, "middle")) o->layer = 0; g_free(s); } return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { ObClient *c = data->client; actions_client_move(data, TRUE); if (o->layer < 0) { if (o->toggle || !c->below) client_set_layer(c, c->below ? 0 : -1); } else if (o->layer > 0) { if (o->toggle || !c->above) client_set_layer(c, c->above ? 0 : 1); } else if (c->above || c->below) client_set_layer(c, 0); actions_client_move(data, FALSE); } return FALSE; } /* 3.4-compatibility */ static gpointer setup_sendtop_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->layer = 1; o->toggle = FALSE; return o; } static gpointer setup_sendbottom_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->layer = -1; o->toggle = FALSE; return o; } static gpointer setup_sendnormal_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->layer = 0; o->toggle = FALSE; return o; } openbox-3.6.1/openbox/actions/lower.c0000644000175300001440000000112412426440016014516 00000000000000#include "openbox/actions.h" #include "openbox/stacking.h" #include "openbox/window.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_lower_startup(void) { actions_register("Lower", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); stacking_lower(CLIENT_AS_WINDOW(data->client)); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/maximize.c0000644000175300001440000001015712426440016015217 00000000000000#include "openbox/actions.h" #include "openbox/client.h" /* These match the values for client_maximize */ typedef enum { BOTH = 0, HORZ = 1, VERT = 2 } MaxDirection; typedef struct { MaxDirection dir; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func_on(ObActionsData *data, gpointer options); static gboolean run_func_off(ObActionsData *data, gpointer options); static gboolean run_func_toggle(ObActionsData *data, gpointer options); /* 3.4-compatibility */ static gpointer setup_both_func(xmlNodePtr node); static gpointer setup_horz_func(xmlNodePtr node); static gpointer setup_vert_func(xmlNodePtr node); void action_maximize_startup(void) { actions_register("Maximize", setup_func, free_func, run_func_on); actions_register("Unmaximize", setup_func, free_func, run_func_off); actions_register("ToggleMaximize", setup_func, free_func, run_func_toggle); /* 3.4-compatibility */ actions_register("MaximizeFull", setup_both_func, free_func, run_func_on); actions_register("UnmaximizeFull", setup_both_func, free_func, run_func_off); actions_register("ToggleMaximizeFull", setup_both_func, free_func, run_func_toggle); actions_register("MaximizeHorz", setup_horz_func, free_func, run_func_on); actions_register("UnmaximizeHorz", setup_horz_func, free_func, run_func_off); actions_register("ToggleMaximizeHorz", setup_horz_func, free_func, run_func_toggle); actions_register("MaximizeVert", setup_vert_func, free_func, run_func_on); actions_register("UnmaximizeVert", setup_vert_func, free_func, run_func_off); actions_register("ToggleMaximizeVert", setup_vert_func, free_func, run_func_toggle); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); o->dir = BOTH; if ((n = obt_xml_find_node(node, "direction"))) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "vertical") || !g_ascii_strcasecmp(s, "vert")) o->dir = VERT; else if (!g_ascii_strcasecmp(s, "horizontal") || !g_ascii_strcasecmp(s, "horz")) o->dir = HORZ; g_free(s); } return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func_on(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { actions_client_move(data, TRUE); client_maximize(data->client, TRUE, o->dir); actions_client_move(data, FALSE); } return FALSE; } /* Always return FALSE because its not interactive */ static gboolean run_func_off(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { actions_client_move(data, TRUE); client_maximize(data->client, FALSE, o->dir); actions_client_move(data, FALSE); } return FALSE; } /* Always return FALSE because its not interactive */ static gboolean run_func_toggle(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { gboolean toggle; actions_client_move(data, TRUE); toggle = ((o->dir == HORZ && !data->client->max_horz) || (o->dir == VERT && !data->client->max_vert) || (o->dir == BOTH && !(data->client->max_horz && data->client->max_vert))); client_maximize(data->client, toggle, o->dir); actions_client_move(data, FALSE); } return FALSE; } /* 3.4-compatibility */ static gpointer setup_both_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->dir = BOTH; return o; } static gpointer setup_horz_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->dir = HORZ; return o; } static gpointer setup_vert_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->dir = VERT; return o; } openbox-3.6.1/openbox/actions/move.c0000644000175300001440000000130212426440016014332 00000000000000#include "openbox/actions.h" #include "openbox/moveresize.h" #include "obt/prop.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_move_startup(void) { actions_register("Move", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { if (data->client) { guint32 corner; corner = data->button != 0 ? OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE) : OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE_KEYBOARD); moveresize_start(data->client, data->x, data->y, data->button, corner); } return FALSE; } openbox-3.6.1/openbox/actions/moverelative.c0000644000175300001440000000377312426440016016104 00000000000000#include "openbox/actions.h" #include "openbox/client.h" #include "openbox/screen.h" #include "openbox/frame.h" #include "openbox/config.h" typedef struct { gint x; gint x_denom; gint y; gint y_denom; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); void action_moverelative_startup(void) { actions_register("MoveRelative", setup_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; gchar *s; o = g_slice_new0(Options); if ((n = obt_xml_find_node(node, "x"))) { s = obt_xml_node_string(n); config_parse_relative_number(s, &o->x, &o->x_denom); g_free(s); } if ((n = obt_xml_find_node(node, "y"))) { s = obt_xml_node_string(n); config_parse_relative_number(s, &o->y, &o->y_denom); g_free(s); } return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { ObClient *c; gint x, y, lw, lh, w, h; c = data->client; x = o->x; y = o->y; if (o->x_denom || o->y_denom) { const Rect *carea; carea = screen_area(c->desktop, client_monitor(c), NULL); if (o->x_denom) x = (x * carea->width) / o->x_denom; if (o->y_denom) y = (y * carea->height) / o->y_denom; } x = c->area.x + x; y = c->area.y + y; w = c->area.width; h = c->area.height; client_try_configure(c, &x, &y, &w, &h, &lw, &lh, TRUE); client_find_onscreen(c, &x, &y, w, h, FALSE); actions_client_move(data, TRUE); client_configure(c, x, y, w, h, TRUE, TRUE, FALSE); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/moveresizeto.c0000644000175300001440000001453312426440016016131 00000000000000#include "openbox/actions.h" #include "openbox/client.h" #include "openbox/screen.h" #include "openbox/frame.h" #include "openbox/config.h" enum { CURRENT_MONITOR = -1, ALL_MONITORS = -2, NEXT_MONITOR = -3, PREV_MONITOR = -4 }; typedef struct { GravityCoord x; GravityCoord y; gint w; gint w_denom; gint h; gint h_denom; gint monitor; gboolean w_sets_client_size; gboolean h_sets_client_size; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); /* 3.4-compatibility */ static gpointer setup_center_func(xmlNodePtr node); void action_moveresizeto_startup(void) { actions_register("MoveResizeTo", setup_func, free_func, run_func); /* 3.4-compatibility */ actions_register("MoveToCenter", setup_center_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); o->x.pos = G_MININT; o->y.pos = G_MININT; o->w = G_MININT; o->h = G_MININT; o->monitor = CURRENT_MONITOR; if ((n = obt_xml_find_node(node, "x"))) config_parse_gravity_coord(n, &o->x); if ((n = obt_xml_find_node(node, "y"))) config_parse_gravity_coord(n, &o->y); if ((n = obt_xml_find_node(node, "width"))) { gchar *s = obt_xml_node_string(n); if (g_ascii_strcasecmp(s, "current") != 0) config_parse_relative_number(s, &o->w, &o->w_denom); g_free(s); obt_xml_attr_bool(n, "client", &o->w_sets_client_size); } if ((n = obt_xml_find_node(node, "height"))) { gchar *s = obt_xml_node_string(n); if (g_ascii_strcasecmp(s, "current") != 0) config_parse_relative_number(s, &o->h, &o->h_denom); g_free(s); obt_xml_attr_bool(n, "client", &o->h_sets_client_size); } if ((n = obt_xml_find_node(node, "monitor"))) { gchar *s = obt_xml_node_string(n); if (g_ascii_strcasecmp(s, "current") != 0) { if (!g_ascii_strcasecmp(s, "all")) o->monitor = ALL_MONITORS; else if(!g_ascii_strcasecmp(s, "next")) o->monitor = NEXT_MONITOR; else if(!g_ascii_strcasecmp(s, "prev")) o->monitor = PREV_MONITOR; else o->monitor = obt_xml_node_int(n) - 1; } g_free(s); } return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { Rect *area, *carea; ObClient *c; guint mon, cmon; gint x, y, lw, lh, w, h; c = data->client; mon = o->monitor; cmon = client_monitor(c); switch (mon) { case CURRENT_MONITOR: mon = cmon; break; case ALL_MONITORS: mon = SCREEN_AREA_ALL_MONITORS; break; case NEXT_MONITOR: mon = (cmon + 1 > screen_num_monitors - 1) ? 0 : (cmon + 1); break; case PREV_MONITOR: mon = (cmon == 0) ? (screen_num_monitors - 1) : (cmon - 1); break; default: g_assert_not_reached(); } area = screen_area(c->desktop, mon, NULL); carea = screen_area(c->desktop, cmon, NULL); /* find a target size for the client/frame. */ w = o->w; if (w == G_MININT) { /* not given, so no-op with current value */ if (o->w_sets_client_size) w = c->area.width; else w = c->frame->area.width; } else if (o->w_denom) /* used for eg. "1/3" or "55%" */ w = (w * area->width) / o->w_denom; h = o->h; if (h == G_MININT) { if (o->h_sets_client_size) h = c->area.height; else h = c->frame->area.height; } else if (o->h_denom) h = (h * area->height) / o->h_denom; /* get back to the client's size. */ if (!o->w_sets_client_size) w -= c->frame->size.left + c->frame->size.right; if (!o->h_sets_client_size) h -= c->frame->size.top + c->frame->size.bottom; /* it might not be able to resize how they requested, so find out what it will actually be resized to */ x = c->area.x; y = c->area.y; client_try_configure(c, &x, &y, &w, &h, &lw, &lh, TRUE); /* get the frame's size */ w += c->frame->size.left + c->frame->size.right; h += c->frame->size.top + c->frame->size.bottom; /* get the position */ x = o->x.pos; if (o->x.denom) /* relative positions */ x = (x * area->width) / o->x.denom; if (o->x.center) x = (area->width - w) / 2; else if (x == G_MININT) /* not specified */ x = c->frame->area.x - carea->x; else if (o->x.opposite) /* value relative to right edge instead of left */ x = area->width - w - x; x += area->x; y = o->y.pos; if (o->y.denom) y = (y * area->height) / o->y.denom; if (o->y.center) y = (area->height - h) / 2; else if (y == G_MININT) y = c->frame->area.y - carea->y; else if (o->y.opposite) y = area->height - h - y; y += area->y; /* get the client's size back */ w -= c->frame->size.left + c->frame->size.right; h -= c->frame->size.top + c->frame->size.bottom; frame_frame_gravity(c->frame, &x, &y); /* get the client coords */ client_try_configure(c, &x, &y, &w, &h, &lw, &lh, TRUE); /* force it on screen if its moving to another monitor */ client_find_onscreen(c, &x, &y, w, h, mon != cmon); actions_client_move(data, TRUE); client_configure(c, x, y, w, h, TRUE, TRUE, FALSE); actions_client_move(data, FALSE); g_slice_free(Rect, area); g_slice_free(Rect, carea); } return FALSE; } /* 3.4-compatibility */ static gpointer setup_center_func(xmlNodePtr node) { Options *o; o = g_slice_new0(Options); o->x.pos = G_MININT; o->y.pos = G_MININT; o->w = G_MININT; o->h = G_MININT; o->monitor = CURRENT_MONITOR; o->x.center = TRUE; o->y.center = TRUE; return o; } openbox-3.6.1/openbox/actions/movetoedge.c0000644000175300001440000000572712426440016015541 00000000000000#include "openbox/actions.h" #include "openbox/misc.h" #include "openbox/client.h" #include "openbox/frame.h" #include "openbox/geom.h" #include typedef struct { ObDirection dir; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); /* 3.4-compatibility */ static gpointer setup_north_func(xmlNodePtr node); static gpointer setup_south_func(xmlNodePtr node); static gpointer setup_east_func(xmlNodePtr node); static gpointer setup_west_func(xmlNodePtr node); void action_movetoedge_startup(void) { actions_register("MoveToEdge", setup_func, free_func, run_func); /* 3.4-compatibility */ actions_register("MoveToEdgeNorth", setup_north_func, free_func, run_func); actions_register("MoveToEdgeSouth", setup_south_func, free_func, run_func); actions_register("MoveToEdgeEast", setup_east_func, free_func, run_func); actions_register("MoveToEdgeWest", setup_west_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); o->dir = OB_DIRECTION_NORTH; if ((n = obt_xml_find_node(node, "direction"))) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "north") || !g_ascii_strcasecmp(s, "up")) o->dir = OB_DIRECTION_NORTH; else if (!g_ascii_strcasecmp(s, "south") || !g_ascii_strcasecmp(s, "down")) o->dir = OB_DIRECTION_SOUTH; else if (!g_ascii_strcasecmp(s, "west") || !g_ascii_strcasecmp(s, "left")) o->dir = OB_DIRECTION_WEST; else if (!g_ascii_strcasecmp(s, "east") || !g_ascii_strcasecmp(s, "right")) o->dir = OB_DIRECTION_EAST; g_free(s); } return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { gint x, y; client_find_move_directional(data->client, o->dir, &x, &y); if (x != data->client->area.x || y != data->client->area.y) { actions_client_move(data, TRUE); client_move(data->client, x, y); actions_client_move(data, FALSE); } } return FALSE; } /* 3.4-compatibility */ static gpointer setup_north_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->dir = OB_DIRECTION_NORTH; return o; } static gpointer setup_south_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->dir = OB_DIRECTION_SOUTH; return o; } static gpointer setup_east_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->dir = OB_DIRECTION_EAST; return o; } static gpointer setup_west_func(xmlNodePtr node) { Options *o = g_slice_new0(Options); o->dir = OB_DIRECTION_WEST; return o; } openbox-3.6.1/openbox/actions/omnipresent.c0000644000175300001440000000131012426440016015726 00000000000000#include "openbox/actions.h" #include "openbox/client.h" #include "openbox/screen.h" static gboolean run_func_toggle(ObActionsData *data, gpointer options); void action_omnipresent_startup(void) { actions_register("ToggleOmnipresent", NULL, NULL, run_func_toggle); } /* Always return FALSE because its not interactive */ static gboolean run_func_toggle(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); client_set_desktop(data->client, data->client->desktop == DESKTOP_ALL ? screen_desktop : DESKTOP_ALL, FALSE, TRUE); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/raise.c0000644000175300001440000000105212426440016014471 00000000000000#include "openbox/actions.h" #include "openbox/stacking.h" #include "openbox/window.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_raise_startup(void) { actions_register("Raise", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); stacking_raise(CLIENT_AS_WINDOW(data->client)); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/raiselower.c0000644000175300001440000000104012426440016015537 00000000000000#include "openbox/actions.h" #include "openbox/stacking.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_raiselower_startup(void) { actions_register("RaiseLower", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); stacking_restack_request(data->client, NULL, Opposite); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/reconfigure.c0000644000175300001440000000060612426440016015702 00000000000000#include "openbox/actions.h" #include "openbox/openbox.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_reconfigure_startup(void) { actions_register("Reconfigure", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { ob_reconfigure(); return FALSE; } openbox-3.6.1/openbox/actions/resize.c0000644000175300001440000001777012426440016014705 00000000000000#include "openbox/actions.h" #include "openbox/moveresize.h" #include "openbox/client.h" #include "openbox/frame.h" #include "openbox/screen.h" #include "obt/prop.h" typedef struct { gboolean corner_specified; guint32 corner; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); static guint32 pick_corner(gint x, gint y, gint cx, gint cy, gint cw, gint ch, gboolean shaded); void action_resize_startup(void) { actions_register("Resize", setup_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); if ((n = obt_xml_find_node(node, "edge"))) { gchar *s = obt_xml_node_string(n); o->corner_specified = TRUE; if (!g_ascii_strcasecmp(s, "top")) o->corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOP); else if (!g_ascii_strcasecmp(s, "bottom")) o->corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOM); else if (!g_ascii_strcasecmp(s, "left")) o->corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_LEFT); else if (!g_ascii_strcasecmp(s, "right")) o->corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_RIGHT); else if (!g_ascii_strcasecmp(s, "topleft")) o->corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPLEFT); else if (!g_ascii_strcasecmp(s, "topright")) o->corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPRIGHT); else if (!g_ascii_strcasecmp(s, "bottomleft")) o->corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT); else if (!g_ascii_strcasecmp(s, "bottomright")) o->corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT); else o->corner_specified = FALSE; g_free(s); } return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { ObClient *c = data->client; guint32 corner; if (!data->button) corner = OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_KEYBOARD); else if (o->corner_specified) corner = o->corner; /* it was specified in the binding */ else corner = pick_corner(data->x, data->y, c->frame->area.x, c->frame->area.y, /* use the client size because the frame can be differently sized (shaded windows) and we want this based on the clients size */ c->area.width + c->frame->size.left + c->frame->size.right, c->area.height + c->frame->size.top + c->frame->size.bottom, c->shaded); moveresize_start(c, data->x, data->y, data->button, corner); } return FALSE; } static guint32 pick_corner(gint x, gint y, gint cx, gint cy, gint cw, gint ch, gboolean shaded) { const Rect *full = screen_physical_area_all_monitors(); if (cx < full->x) { cw = cw + cx - full->x; cx = full->x; } if (cy < full->y) { ch = ch + cy - full->y; cy = full->y; } if (cx + cw > full->x + full->width) cw = full->x + full->width - cx; if (cy + ch > full->y + full->height) ch = full->y + full->height - cy; /* let's make x and y client relative instead of screen relative */ x = x - cx; y = ch - (y - cy); /* y is inverted, 0 is at the bottom of the window */ #define X x*ch/cw #define A -4*X + 7*ch/3 #define B 4*X -15*ch/9 #define C -X/4 + 2*ch/3 #define D X/4 + 5*ch/12 #define E X/4 + ch/3 #define F -X/4 + 7*ch/12 #define G 4*X - 4*ch/3 #define H -4*X + 8*ch/3 #define a (y > 5*ch/9) #define b (x < 4*cw/9) #define c (x > 5*cw/9) #define d (y < 4*ch/9) /* Each of these defines (except X which is just there for fun), represents the equation of a line. The lines they represent are shown in the diagram below. Checking y against these lines, we are able to choose a region of the window as shown. +---------------------A-------|-------|-------B---------------------+ | |A B| | | |A | | B| | | | A B | | | | A | | B | | | | A B | | | | A | | B | | | northwest | A north B | northeast | | | A | | B | | | | A B | | C---------------------+----A--+-------+--B----+---------------------D |CCCCCCC | A B | DDDDDDD| | CCCCCCCC | A | | B | DDDDDDDD | | CCCCCCC A B DDDDDDD | - - - - - - - - - - - +CCCCCCC+aaaaaaa+DDDDDDD+ - - - - - - - - - - - - | | b c | | sh | west | b move c | east | ad | | b c | | ed - - - - - - - - - - - +EEEEEEE+ddddddd+FFFFFFF+- - - - - - - - - - - - | EEEEEEE G H FFFFFFF | | EEEEEEEE | G | | H | FFFFFFFF | |EEEEEEE | G H | FFFFFFF| E---------------------+----G--+-------+--H----+---------------------F | | G H | | | | G | | H | | | southwest | G south H | southeast | | | G | | H | | | | G H | | | | G | | H | | | | G H | | | |G | | H| | | |G H| | +---------------------G-------|-------|-------H---------------------+ */ if (shaded) { /* for shaded windows, you can only resize west/east and move */ if (b) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_LEFT); if (c) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_RIGHT); return OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE); } if (y < A && y >= C) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPLEFT); else if (y >= A && y >= B && a) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOP); else if (y < B && y >= D) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPRIGHT); else if (y < C && y >= E && b) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_LEFT); else if (y < D && y >= F && c) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_RIGHT); else if (y < E && y >= G) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT); else if (y < G && y < H && d) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOM); else if (y >= H && y < F) return OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT); else return OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE); #undef X #undef A #undef B #undef C #undef D #undef E #undef F #undef G #undef H #undef a #undef b #undef c #undef d } openbox-3.6.1/openbox/actions/resizerelative.c0000644000175300001440000000665012426440016016434 00000000000000#include "openbox/actions.h" #include "openbox/client.h" #include "openbox/screen.h" #include "openbox/frame.h" #include "openbox/config.h" typedef struct { gint left; gint left_denom; gint right; gint right_denom; gint top; gint top_denom; gint bottom; gint bottom_denom; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer options); static gboolean run_func(ObActionsData *data, gpointer options); void action_resizerelative_startup(void) { actions_register("ResizeRelative", setup_func, free_func, run_func); } static void xml_node_relative(xmlNodePtr n, gint *num, gint *denom) { gchar *s; s = obt_xml_node_string(n); config_parse_relative_number(s, num, denom); g_free(s); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); if ((n = obt_xml_find_node(node, "left"))) xml_node_relative(n, &o->left, &o->left_denom); if ((n = obt_xml_find_node(node, "right"))) xml_node_relative(n, &o->right, &o->right_denom); if ((n = obt_xml_find_node(node, "top")) || (n = obt_xml_find_node(node, "up"))) xml_node_relative(n, &o->top, &o->top_denom); if ((n = obt_xml_find_node(node, "bottom")) || (n = obt_xml_find_node(node, "down"))) xml_node_relative(n, &o->bottom, &o->bottom_denom); return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; if (data->client) { ObClient *c = data->client; gint x, y, ow, xoff, nw, oh, yoff, nh, lw, lh; gint left = o->left, right = o->right, top = o->top, bottom = o->bottom; if (o->left_denom) left = left * c->area.width / o->left_denom; if (o->right_denom) right = right * c->area.width / o->right_denom; if (o->top_denom) top = top * c->area.height / o->top_denom; if (o->bottom_denom) bottom = bottom * c->area.height / o->bottom_denom; if (left && ABS(left) < c->size_inc.width) left = left < 0 ? -c->size_inc.width : c->size_inc.width; if (right && ABS(right) < c->size_inc.width) right = right < 0 ? -c->size_inc.width : c->size_inc.width; if (top && ABS(top) < c->size_inc.height) top = top < 0 ? -c->size_inc.height : c->size_inc.height; if (bottom && ABS(bottom) < c->size_inc.height) bottom = bottom < 0 ? -c->size_inc.height : c->size_inc.height; /* When resizing, if the resize has a non-zero value then make sure it is at least as big as the size increment so the window does actually resize. */ x = c->area.x; y = c->area.y; ow = c->area.width; xoff = -left; nw = ow + right + left; oh = c->area.height; yoff = -top; nh = oh + bottom + top; client_try_configure(c, &x, &y, &nw, &nh, &lw, &lh, TRUE); xoff = xoff == 0 ? 0 : (xoff < 0 ? MAX(xoff, ow-nw) : MIN(xoff, ow-nw)); yoff = yoff == 0 ? 0 : (yoff < 0 ? MAX(yoff, oh-nh) : MIN(yoff, oh-nh)); actions_client_move(data, TRUE); client_move_resize(c, x + xoff, y + yoff, nw, nh); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/restart.c0000644000175300001440000000204312426440016015053 00000000000000#include "openbox/actions.h" #include "openbox/openbox.h" #include "obt/paths.h" typedef struct { gchar *cmd; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer options); static gboolean run_func(ObActionsData *data, gpointer options); void action_restart_startup(void) { actions_register("Restart", setup_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o; o = g_slice_new0(Options); if ((n = obt_xml_find_node(node, "command")) || (n = obt_xml_find_node(node, "execute"))) { gchar *s = obt_xml_node_string(n); o->cmd = obt_paths_expand_tilde(s); g_free(s); } return o; } static void free_func(gpointer options) { Options *o = options; g_free(o->cmd); g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; ob_restart_other(o->cmd); return FALSE; } openbox-3.6.1/openbox/actions/shade.c0000644000175300001440000000257512426440016014465 00000000000000#include "openbox/actions.h" #include "openbox/client.h" static gboolean run_func_on(ObActionsData *data, gpointer options); static gboolean run_func_off(ObActionsData *data, gpointer options); static gboolean run_func_toggle(ObActionsData *data, gpointer options); void action_shade_startup(void) { actions_register("Shade", NULL, NULL, run_func_on); actions_register("Unshade", NULL, NULL, run_func_off); actions_register("ToggleShade", NULL, NULL, run_func_toggle); } /* Always return FALSE because its not interactive */ static gboolean run_func_on(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); client_shade(data->client, TRUE); actions_client_move(data, FALSE); } return FALSE; } /* Always return FALSE because its not interactive */ static gboolean run_func_off(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); client_shade(data->client, FALSE); actions_client_move(data, FALSE); } return FALSE; } /* Always return FALSE because its not interactive */ static gboolean run_func_toggle(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); client_shade(data->client, !data->client->shaded); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/shadelowerraise.c0000644000175300001440000000227212426440016016554 00000000000000#include "openbox/actions.h" #include "openbox/client.h" static gboolean run_func_sl(ObActionsData *data, gpointer options); static gboolean run_func_ur(ObActionsData *data, gpointer options); void action_shadelowerraise_startup() { /* 3.4-compatibility */ actions_register("ShadeLower", NULL, NULL, run_func_sl); actions_register("UnshadeRaise", NULL, NULL, run_func_ur); } /* Always return FALSE because its not interactive */ static gboolean run_func_sl(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); if (data->client->shaded) stacking_lower(CLIENT_AS_WINDOW(data->client)); else client_shade(data->client, TRUE); actions_client_move(data, FALSE); } return FALSE; } /* Always return FALSE because its not interactive */ static gboolean run_func_ur(ObActionsData *data, gpointer options) { if (data->client) { actions_client_move(data, TRUE); if (data->client->shaded) client_shade(data->client, FALSE); else stacking_raise(CLIENT_AS_WINDOW(data->client)); actions_client_move(data, FALSE); } return FALSE; } openbox-3.6.1/openbox/actions/showdesktop.c0000644000175300001440000000233112426440016015741 00000000000000#include "openbox/actions.h" #include "openbox/screen.h" typedef struct { /* If true, windows are unable to be shown while in the showing-desktop state. */ gboolean strict; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer o); static gboolean run_func(ObActionsData *data, gpointer options); void action_showdesktop_startup(void) { actions_register("ToggleShowDesktop", setup_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n; Options *o = g_slice_new0(Options); o->strict = FALSE; if ((n = obt_xml_find_node(node, "strict"))) o->strict = obt_xml_node_bool(n); return o; } static void free_func(gpointer o) { g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; ObScreenShowDestopMode show_mode; if (screen_showing_desktop()) show_mode = SCREEN_SHOW_DESKTOP_NO; else if (!o->strict) show_mode = SCREEN_SHOW_DESKTOP_UNTIL_WINDOW; else show_mode = SCREEN_SHOW_DESKTOP_UNTIL_TOGGLE; screen_show_desktop(show_mode, NULL); return FALSE; } openbox-3.6.1/openbox/actions/showmenu.c0000644000175300001440000000756712453060445015260 00000000000000#include "openbox/actions.h" #include "openbox/menu.h" #include "openbox/place.h" #include "openbox/geom.h" #include "openbox/screen.h" #include "openbox/config.h" #include typedef struct { gchar *name; GravityPoint position; ObPlaceMonitor monitor_type; gint monitor; gboolean use_position; } Options; static gpointer setup_func(xmlNodePtr node); static void free_func(gpointer options); static gboolean run_func(ObActionsData *data, gpointer options); void action_showmenu_startup(void) { actions_register("ShowMenu", setup_func, free_func, run_func); } static gpointer setup_func(xmlNodePtr node) { xmlNodePtr n, c; Options *o; gboolean x_pos_given = FALSE; o = g_slice_new0(Options); o->monitor = -1; if ((n = obt_xml_find_node(node, "menu"))) o->name = obt_xml_node_string(n); if ((n = obt_xml_find_node(node, "position"))) { if ((c = obt_xml_find_node(n->children, "x"))) { if (!obt_xml_node_contains(c, "default")) { config_parse_gravity_coord(c, &o->position.x); x_pos_given = TRUE; } } if (x_pos_given && (c = obt_xml_find_node(n->children, "y"))) { if (!obt_xml_node_contains(c, "default")) { config_parse_gravity_coord(c, &o->position.y); o->use_position = TRUE; } } /* unlike client placement, x/y is needed to specify a monitor, * either it's under the mouse or it's in an exact actual position */ if (o->use_position && (c = obt_xml_find_node(n->children, "monitor"))) { if (!obt_xml_node_contains(c, "default")) { gchar *s = obt_xml_node_string(c); if (!g_ascii_strcasecmp(s, "mouse")) o->monitor_type = OB_PLACE_MONITOR_MOUSE; else if (!g_ascii_strcasecmp(s, "active")) o->monitor_type = OB_PLACE_MONITOR_ACTIVE; else if (!g_ascii_strcasecmp(s, "primary")) o->monitor_type = OB_PLACE_MONITOR_PRIMARY; else if (!g_ascii_strcasecmp(s, "all")) o->monitor_type = OB_PLACE_MONITOR_ALL; else o->monitor = obt_xml_node_int(c) - 1; g_free(s); } } } return o; } static void free_func(gpointer options) { Options *o = options; g_free(o->name); g_slice_free(Options, o); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { Options *o = options; GravityPoint position = { { 0, }, }; gint monitor = -1; if (o->use_position) { if (o->monitor >= 0) monitor = o->monitor; else switch (o->monitor_type) { case OB_PLACE_MONITOR_ANY: case OB_PLACE_MONITOR_PRIMARY: monitor = screen_monitor_primary(FALSE); break; case OB_PLACE_MONITOR_MOUSE: monitor = screen_monitor_pointer(); break; case OB_PLACE_MONITOR_ACTIVE: monitor = screen_monitor_active(); break; case OB_PLACE_MONITOR_ALL: monitor = screen_num_monitors; break; default: g_assert_not_reached(); } position = o->position; } else { const Rect *allmon; monitor = screen_num_monitors; allmon = screen_physical_area_monitor(monitor); position.x.pos = data->x - allmon->x; position.y.pos = data->y - allmon->y; } /* you cannot call ShowMenu from inside a menu */ if (data->uact != OB_USER_ACTION_MENU_SELECTION && o->name) menu_show(o->name, &position, monitor, data->button != 0, o->use_position, data->client); return FALSE; } openbox-3.6.1/openbox/actions/unfocus.c0000644000175300001440000000071612426440016015056 00000000000000#include "openbox/actions.h" #include "openbox/focus.h" static gboolean run_func(ObActionsData *data, gpointer options); void action_unfocus_startup(void) { actions_register("Unfocus", NULL, NULL, run_func); } /* Always return FALSE because its not interactive */ static gboolean run_func(ObActionsData *data, gpointer options) { if (data->client && data->client == focus_client) focus_fallback(FALSE, FALSE, TRUE, FALSE); return FALSE; } openbox-3.6.1/openbox/actions.c0000644000175300001440000003455612426440016013405 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- actions.c for the Openbox window manager Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "actions.h" #include "gettext.h" #include "grab.h" #include "screen.h" #include "event.h" #include "config.h" #include "client.h" #include "focus.h" #include "openbox.h" #include "debug.h" #include "actions/all.h" static void actions_definition_ref(ObActionsDefinition *def); static void actions_definition_unref(ObActionsDefinition *def); static gboolean actions_interactive_begin_act(ObActionsAct *act, guint state); static void actions_interactive_end_act(); static ObActionsAct* actions_build_act_from_string(const gchar *name); static ObActionsAct *interactive_act = NULL; static guint interactive_initial_state = 0; struct _ObActionsDefinition { guint ref; gchar *name; gboolean canbeinteractive; union { ObActionsIDataSetupFunc i; ObActionsDataSetupFunc n; } setup; ObActionsDataFreeFunc free; ObActionsRunFunc run; ObActionsShutdownFunc shutdown; gboolean modifies_focused_window; gboolean can_stop; }; struct _ObActionsAct { guint ref; ObActionsDefinition *def; ObActionsIPreFunc i_pre; ObActionsIInputFunc i_input; ObActionsICancelFunc i_cancel; ObActionsIPostFunc i_post; gpointer options; }; static GSList *registered = NULL; void actions_startup(gboolean reconfig) { if (reconfig) return; action_all_startup(); } void actions_shutdown(gboolean reconfig) { actions_interactive_cancel_act(); if (reconfig) return; /* free all the registered actions */ while (registered) { ObActionsDefinition *d = registered->data; if (d->shutdown) d->shutdown(); actions_definition_unref(d); registered = g_slist_delete_link(registered, registered); } } ObActionsDefinition* do_register(const gchar *name, ObActionsDataFreeFunc free, ObActionsRunFunc run) { GSList *it; ObActionsDefinition *def; g_assert(run != NULL); for (it = registered; it; it = g_slist_next(it)) { def = it->data; if (!g_ascii_strcasecmp(name, def->name)) /* already registered */ return NULL; } def = g_slice_new0(ObActionsDefinition); def->ref = 1; def->name = g_strdup(name); def->free = free; def->run = run; def->shutdown = NULL; def->modifies_focused_window = TRUE; def->can_stop = FALSE; registered = g_slist_prepend(registered, def); return def; } gboolean actions_register_i(const gchar *name, ObActionsIDataSetupFunc setup, ObActionsDataFreeFunc free, ObActionsRunFunc run) { ObActionsDefinition *def = do_register(name, free, run); if (def) { def->canbeinteractive = TRUE; def->setup.i = setup; } return def != NULL; } gboolean actions_register(const gchar *name, ObActionsDataSetupFunc setup, ObActionsDataFreeFunc free, ObActionsRunFunc run) { ObActionsDefinition *def = do_register(name, free, run); if (def) { def->canbeinteractive = FALSE; def->setup.n = setup; } return def != NULL; } gboolean actions_set_shutdown(const gchar *name, ObActionsShutdownFunc shutdown) { GSList *it; ObActionsDefinition *def; for (it = registered; it; it = g_slist_next(it)) { def = it->data; if (!g_ascii_strcasecmp(name, def->name)) { def->shutdown = shutdown; return TRUE; } } return FALSE; } gboolean actions_set_modifies_focused_window(const gchar *name, gboolean modifies) { GSList *it; ObActionsDefinition *def; for (it = registered; it; it = g_slist_next(it)) { def = it->data; if (!g_ascii_strcasecmp(name, def->name)) { def->modifies_focused_window = modifies; return TRUE; } } return FALSE; } gboolean actions_set_can_stop(const gchar *name, gboolean can_stop) { GSList *it; ObActionsDefinition *def; for (it = registered; it; it = g_slist_next(it)) { def = it->data; if (!g_ascii_strcasecmp(name, def->name)) { def->can_stop = can_stop; return TRUE; } } return FALSE; } static void actions_definition_ref(ObActionsDefinition *def) { ++def->ref; } static void actions_definition_unref(ObActionsDefinition *def) { if (def && --def->ref == 0) { g_free(def->name); g_slice_free(ObActionsDefinition, def); } } static ObActionsAct* actions_build_act_from_string(const gchar *name) { GSList *it; ObActionsDefinition *def = NULL; ObActionsAct *act = NULL; /* find the requested action */ for (it = registered; it; it = g_slist_next(it)) { def = it->data; if (!g_ascii_strcasecmp(name, def->name)) break; def = NULL; } /* if we found the action */ if (def) { act = g_slice_new(ObActionsAct); act->ref = 1; act->def = def; actions_definition_ref(act->def); act->i_pre = NULL; act->i_input = NULL; act->i_cancel = NULL; act->i_post = NULL; act->options = NULL; } else g_message(_("Invalid action \"%s\" requested. No such action exists."), name); return act; } ObActionsAct* actions_parse_string(const gchar *name) { ObActionsAct *act = NULL; if ((act = actions_build_act_from_string(name))) { if (act->def->canbeinteractive) { if (act->def->setup.i) act->options = act->def->setup.i(NULL, &act->i_pre, &act->i_input, &act->i_cancel, &act->i_post); } else { if (act->def->setup.n) act->options = act->def->setup.n(NULL); } } return act; } ObActionsAct* actions_parse(xmlNodePtr node) { gchar *name; ObActionsAct *act = NULL; if (obt_xml_attr_string(node, "name", &name)) { if ((act = actions_build_act_from_string(name))) { /* there is more stuff to parse here */ if (act->def->canbeinteractive) { if (act->def->setup.i) act->options = act->def->setup.i(node->children, &act->i_pre, &act->i_input, &act->i_cancel, &act->i_post); } else { if (act->def->setup.n) act->options = act->def->setup.n(node->children); } } g_free(name); } return act; } gboolean actions_act_is_interactive(ObActionsAct *act) { return act->i_input != NULL; } void actions_act_ref(ObActionsAct *act) { ++act->ref; } void actions_act_unref(ObActionsAct *act) { if (act && --act->ref == 0) { /* free the action specific options */ if (act->def->free) act->def->free(act->options); /* unref the definition */ actions_definition_unref(act->def); g_slice_free(ObActionsAct, act); } } static void actions_setup_data(ObActionsData *data, ObUserAction uact, guint state, gint x, gint y, gint button, ObFrameContext con, struct _ObClient *client) { data->uact = uact; data->state = state; data->x = x; data->y = y; data->button = button; data->context = con; data->client = client; } void actions_run_acts(GSList *acts, ObUserAction uact, guint state, gint x, gint y, gint button, ObFrameContext con, struct _ObClient *client) { GSList *it; gboolean update_user_time; /* Don't allow saving the initial state when running things from the menu */ if (uact == OB_USER_ACTION_MENU_SELECTION) state = 0; /* If x and y are < 0 then use the current pointer position */ if (x < 0 && y < 0) screen_pointer_pos(&x, &y); update_user_time = FALSE; for (it = acts; it; it = g_slist_next(it)) { ObActionsData data; ObActionsAct *act = it->data; gboolean ok = TRUE; actions_setup_data(&data, uact, state, x, y, button, con, client); /* if they have the same run function, then we'll assume they are cooperating and not cancel eachother out */ if (!interactive_act || interactive_act->def->run != act->def->run) { if (actions_act_is_interactive(act)) { /* cancel the old one */ if (interactive_act) actions_interactive_cancel_act(); if (act->i_pre) if (!act->i_pre(state, act->options)) act->i_input = NULL; /* remove the interactivity */ } /* check again cuz it might have been cancelled */ if (actions_act_is_interactive(act)) ok = actions_interactive_begin_act(act, state); } /* fire the action's run function with this data */ if (ok) { if (!act->def->run(&data, act->options)) { if (actions_act_is_interactive(act)) { actions_interactive_end_act(); } if (client && client == focus_client && act->def->modifies_focused_window) { update_user_time = TRUE; } } else { /* make sure its interactive or allowed to stop if it returned TRUE */ g_assert(act->i_input || act->def->can_stop); /* no actions are run after the interactive one */ break; } } } if (update_user_time) event_update_user_time(); } gboolean actions_interactive_act_running(void) { return interactive_act != NULL; } void actions_interactive_cancel_act(void) { if (interactive_act) { if (interactive_act->i_cancel) interactive_act->i_cancel(interactive_act->options); actions_interactive_end_act(); } } static gboolean actions_interactive_begin_act(ObActionsAct *act, guint state) { if (grab_keyboard()) { interactive_act = act; actions_act_ref(interactive_act); interactive_initial_state = state; /* if using focus_delay, stop the timer now so that focus doesn't go moving on us, which would kill the action */ event_halt_focus_delay(); return TRUE; } else return FALSE; } static void actions_interactive_end_act(void) { if (interactive_act) { ObActionsAct *ia = interactive_act; /* set this to NULL first so the i_post() function can't cause this to get called again (if it decides it wants to cancel any ongoing interactive action). */ interactive_act = NULL; ungrab_keyboard(); if (ia->i_post) ia->i_post(ia->options); actions_act_unref(ia); } } gboolean actions_interactive_input_event(XEvent *e) { gboolean used = FALSE; if (interactive_act) { if (!interactive_act->i_input(interactive_initial_state, e, grab_input_context(), interactive_act->options, &used)) { used = TRUE; /* if it cancelled the action then it has to of been used */ actions_interactive_end_act(); } } return used; } void actions_client_move(ObActionsData *data, gboolean start) { static gulong ignore_start = 0; if (start) ignore_start = event_start_ignore_all_enters(); else if (config_focus_follow && data->context != OB_FRAME_CONTEXT_CLIENT) { if (data->uact == OB_USER_ACTION_MOUSE_PRESS) { struct _ObClient *c; /* usually this is sorta redundant, but with a press action that moves windows our from under the cursor, the enter event will come as a GrabNotify which is ignored, so this makes a fake enter event don't do this if there is a grab on the pointer. enter events are ignored during a grab, so don't force fake ones when they should be ignored */ if (!grab_on_pointer()) { if ((c = client_under_pointer()) && c != data->client) { ob_debug_type(OB_DEBUG_FOCUS, "Generating fake enter because we did a " "mouse-event action"); event_enter_client(c); } else if (!c && c != data->client) { ob_debug_type(OB_DEBUG_FOCUS, "Generating fake leave because we did a " "mouse-event action"); event_leave_client(data->client); } } } else if (!data->button && !config_focus_under_mouse) event_end_ignore_all_enters(ignore_start); } } openbox-3.6.1/openbox/actions.h0000644000175300001440000001143612426440016013402 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- actions.h for the Openbox window manager Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "misc.h" #include "frame.h" #include "obt/xml.h" #include "obt/keyboard.h" #include #include typedef struct _ObActionsDefinition ObActionsDefinition; typedef struct _ObActionsAct ObActionsAct; typedef struct _ObActionsData ObActionsData; typedef struct _ObActionsAnyData ObActionsAnyData; typedef struct _ObActionsGlobalData ObActionsGlobalData; typedef struct _ObActionsClientData ObActionsClientData; typedef struct _ObActionsSelectorData ObActionsSelectorData; typedef void (*ObActionsDataFreeFunc)(gpointer options); typedef gboolean (*ObActionsRunFunc)(ObActionsData *data, gpointer options); typedef gpointer (*ObActionsDataSetupFunc)(xmlNodePtr node); typedef void (*ObActionsShutdownFunc)(void); /* functions for interactive actions */ /* return TRUE if the action is going to be interactive, or false to change your mind and make it not */ typedef gboolean (*ObActionsIPreFunc)(guint initial_state, gpointer options); typedef void (*ObActionsIPostFunc)(gpointer options); typedef gboolean (*ObActionsIInputFunc)(guint initial_state, XEvent *e, ObtIC *ic, gpointer options, gboolean *used); typedef void (*ObActionsICancelFunc)(gpointer options); typedef gpointer (*ObActionsIDataSetupFunc)(xmlNodePtr node, ObActionsIPreFunc *pre, ObActionsIInputFunc *input, ObActionsICancelFunc *cancel, ObActionsIPostFunc *post); struct _ObActionsData { ObUserAction uact; guint state; gint x; gint y; gint button; struct _ObClient *client; ObFrameContext context; }; void actions_startup(gboolean reconfigure); void actions_shutdown(gboolean reconfigure); /*! Use this if the actions created from this name may be interactive */ gboolean actions_register_i(const gchar *name, ObActionsIDataSetupFunc setup, ObActionsDataFreeFunc free, ObActionsRunFunc run); gboolean actions_register(const gchar *name, ObActionsDataSetupFunc setup, ObActionsDataFreeFunc free, ObActionsRunFunc run); gboolean actions_set_shutdown(const gchar *name, ObActionsShutdownFunc shutdown); gboolean actions_set_modifies_focused_window(const gchar *name, gboolean modifies); gboolean actions_set_can_stop(const gchar *name, gboolean modifies); ObActionsAct* actions_parse(xmlNodePtr node); ObActionsAct* actions_parse_string(const gchar *name); gboolean actions_act_is_interactive(ObActionsAct *act); void actions_act_ref(ObActionsAct *act); void actions_act_unref(ObActionsAct *act); /*! When this is true, an XAllowEvents with ReplayPointer will be called if an action is going to maybe try moving windows around on screen (or map/unmap windows) */ void actions_set_need_pointer_replay_before_move(gboolean replay); /*! Returns if a ReplayPointer is still needed. If it was called while running actions then this will be false */ gboolean actions_get_need_pointer_replay_before_move(void); /*! Pass in a GSList of ObActionsAct's to be run. */ void actions_run_acts(GSList *acts, ObUserAction uact, guint state, gint x, gint y, gint button, ObFrameContext con, struct _ObClient *client); gboolean actions_interactive_act_running(void); void actions_interactive_cancel_act(void); gboolean actions_interactive_input_event(XEvent *e); /*! Function for actions to call when they are moving a client around */ void actions_client_move(ObActionsData *data, gboolean start); openbox-3.6.1/openbox/client.c0000644000175300001440000047335612503537300013227 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "client.h" #include "debug.h" #include "startupnotify.h" #include "dock.h" #include "screen.h" #include "moveresize.h" #include "ping.h" #include "place.h" #include "frame.h" #include "session.h" #include "event.h" #include "grab.h" #include "prompt.h" #include "focus.h" #include "focus_cycle.h" #include "stacking.h" #include "openbox.h" #include "group.h" #include "config.h" #include "menuframe.h" #include "keyboard.h" #include "mouse.h" #include "obrender/render.h" #include "gettext.h" #include "obt/display.h" #include "obt/xqueue.h" #include "obt/prop.h" #ifdef HAVE_UNISTD_H # include #endif #ifdef HAVE_SIGNAL_H # include /* for kill() */ #endif #include #include /*! The event mask to grab on client windows */ #define CLIENT_EVENTMASK (PropertyChangeMask | StructureNotifyMask | \ ColormapChangeMask) #define CLIENT_NOPROPAGATEMASK (ButtonPressMask | ButtonReleaseMask | \ ButtonMotionMask) typedef struct { ObClientCallback func; gpointer data; } ClientCallback; GList *client_list = NULL; static GSList *client_destroy_notifies = NULL; static RrImage *client_default_icon = NULL; static void client_get_all(ObClient *self, gboolean real); static void client_get_startup_id(ObClient *self); static void client_get_session_ids(ObClient *self); static void client_save_app_rule_values(ObClient *self); static void client_get_area(ObClient *self); static void client_get_desktop(ObClient *self); static void client_get_state(ObClient *self); static void client_get_shaped(ObClient *self); static void client_get_colormap(ObClient *self); static void client_set_desktop_recursive(ObClient *self, guint target, gboolean donthide, gboolean dontraise); static void client_change_allowed_actions(ObClient *self); static void client_change_state(ObClient *self); static void client_change_wm_state(ObClient *self); static void client_apply_startup_state(ObClient *self, gint x, gint y, gint w, gint h); static void client_restore_session_state(ObClient *self); static gboolean client_restore_session_stacking(ObClient *self); static ObAppSettings *client_get_settings_state(ObClient *self); static void client_update_transient_tree(ObClient *self, ObGroup *oldgroup, ObGroup *newgroup, gboolean oldgtran, gboolean newgtran, ObClient* oldparent, ObClient *newparent); static void client_present(ObClient *self, gboolean here, gboolean raise, gboolean unshade); static GSList *client_search_all_top_parents_internal(ObClient *self, gboolean bylayer, ObStackingLayer layer); static void client_call_notifies(ObClient *self, GSList *list); static void client_ping_event(ObClient *self, gboolean dead); static void client_prompt_kill(ObClient *self); static gboolean client_can_steal_focus(ObClient *self, gboolean allow_other_desktop, gboolean request_from_user, Time steal_time, Time launch_time); static void client_setup_default_decor_and_functions(ObClient *self); static void client_setup_decor_undecorated(ObClient *self); void client_startup(gboolean reconfig) { client_default_icon = RrImageNewFromData( ob_rr_icons, ob_rr_theme->def_win_icon, ob_rr_theme->def_win_icon_w, ob_rr_theme->def_win_icon_h); if (reconfig) return; client_set_list(); } void client_shutdown(gboolean reconfig) { RrImageUnref(client_default_icon); client_default_icon = NULL; if (reconfig) return; } static void client_call_notifies(ObClient *self, GSList *list) { GSList *it; for (it = list; it; it = g_slist_next(it)) { ClientCallback *d = it->data; d->func(self, d->data); } } void client_add_destroy_notify(ObClientCallback func, gpointer data) { ClientCallback *d = g_slice_new(ClientCallback); d->func = func; d->data = data; client_destroy_notifies = g_slist_prepend(client_destroy_notifies, d); } void client_remove_destroy_notify(ObClientCallback func) { GSList *it; for (it = client_destroy_notifies; it; it = g_slist_next(it)) { ClientCallback *d = it->data; if (d->func == func) { g_slice_free(ClientCallback, d); client_destroy_notifies = g_slist_delete_link(client_destroy_notifies, it); break; } } } void client_remove_destroy_notify_data(ObClientCallback func, gpointer data) { GSList *it; for (it = client_destroy_notifies; it; it = g_slist_next(it)) { ClientCallback *d = it->data; if (d->func == func && d->data == data) { g_slice_free(ClientCallback, d); client_destroy_notifies = g_slist_delete_link(client_destroy_notifies, it); break; } } } void client_set_list(void) { Window *windows, *win_it; GList *it; guint size = g_list_length(client_list); /* create an array of the window ids */ if (size > 0) { windows = g_new(Window, size); win_it = windows; for (it = client_list; it; it = g_list_next(it), ++win_it) *win_it = ((ObClient*)it->data)->window; } else windows = NULL; OBT_PROP_SETA32(obt_root(ob_screen), NET_CLIENT_LIST, WINDOW, (gulong*)windows, size); if (windows) g_free(windows); stacking_set_list(); } void client_manage(Window window, ObPrompt *prompt) { ObClient *self; XSetWindowAttributes attrib_set; gboolean try_activate = FALSE; gboolean do_activate; ObAppSettings *settings; gboolean transient = FALSE; Rect place; Time launch_time; guint32 user_time; gboolean obplaced; gulong ignore_start = FALSE; ob_debug("Managing window: 0x%lx", window); /* choose the events we want to receive on the CLIENT window (ObPrompt windows can request events too) */ attrib_set.event_mask = CLIENT_EVENTMASK | (prompt ? prompt->event_mask : 0); attrib_set.do_not_propagate_mask = CLIENT_NOPROPAGATEMASK; XChangeWindowAttributes(obt_display, window, CWEventMask|CWDontPropagate, &attrib_set); /* create the ObClient struct, and populate it from the hints on the window */ self = g_slice_new0(ObClient); self->obwin.type = OB_WINDOW_CLASS_CLIENT; self->window = window; self->prompt = prompt; self->managed = TRUE; /* non-zero defaults */ self->wmstate = WithdrawnState; /* make sure it gets updated first time */ self->gravity = NorthWestGravity; self->desktop = screen_num_desktops; /* always an invalid value */ /* get all the stuff off the window */ client_get_all(self, TRUE); ob_debug("Window type: %d", self->type); ob_debug("Window group: 0x%x", self->group?self->group->leader:0); ob_debug("Window name: %s class: %s role: %s title: %s", self->name, self->class, self->role, self->title); ob_debug("Window group name: %s group class: %s", self->group_name, self->group_class); /* per-app settings override stuff from client_get_all, and return the settings for other uses too. the returned settings is a shallow copy, that needs to be freed with g_free(). */ settings = client_get_settings_state(self); /* the session should get the last say though */ client_restore_session_state(self); /* the per-app settings/session may have changed the decorations for the window, so we setup decorations for that here. this is a special case because we want to place the window according to these decoration changes. we do this before setting up the frame so that it will reflect the decorations of the window as it will be placed on screen. */ client_setup_decor_undecorated(self); /* specify that if we exit, the window should not be destroyed and should be reparented back to root automatically, unless we are managing an internal ObPrompt window */ if (!self->prompt) XChangeSaveSet(obt_display, window, SetModeInsert); /* create the decoration frame for the client window */ self->frame = frame_new(self); frame_grab_client(self->frame); /* we've grabbed everything and set everything that we need to at mapping time now */ grab_server(FALSE); /* this needs to occur once we have a frame, since it sets a property on the frame */ client_update_opacity(self); /* don't put helper/modal windows on a different desktop if they are related to the focused window. */ if (!screen_compare_desktops(self->desktop, screen_desktop) && focus_client && client_search_transient(focus_client, self) && (client_helper(self) || self->modal)) { self->desktop = screen_desktop; } /* tell startup notification that this app started */ launch_time = sn_app_started(self->startup_id, self->class, self->name); if (!OBT_PROP_GET32(self->window, NET_WM_USER_TIME, CARDINAL, &user_time)) user_time = event_time(); /* do this after we have a frame.. it uses the frame to help determine the WM_STATE to apply. */ client_change_state(self); /* add ourselves to the focus order */ focus_order_add_new(self); /* do this to add ourselves to the stacking list in a non-intrusive way */ client_calc_layer(self); /* focus the new window? */ if (ob_state() != OB_STATE_STARTING && (!self->session || self->session->focused) && /* this means focus=true for window is same as config_focus_new=true */ ((config_focus_new || settings->focus == 1) || client_search_focus_tree_full(self)) && /* NET_WM_USER_TIME 0 when mapping means don't focus */ (user_time != 0) && /* this checks for focus=false for the window */ settings->focus != 0 && focus_valid_target(self, self->desktop, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, settings->focus == 1)) { try_activate = TRUE; } /* remove the client's border */ XSetWindowBorderWidth(obt_display, self->window, 0); /* adjust the frame to the client's size before showing or placing the window */ frame_adjust_area(self->frame, FALSE, TRUE, FALSE); frame_adjust_client_area(self->frame); /* where the frame was placed is where the window was originally */ place = self->area; ob_debug("Going to try activate new window? %s", try_activate ? "yes" : "no"); if (try_activate) do_activate = client_can_steal_focus( self, settings->focus == 1, (!!launch_time || settings->focus == 1), event_time(), launch_time); else do_activate = FALSE; /* figure out placement for the window if the window is new */ if (ob_state() == OB_STATE_RUNNING) { ob_debug("Positioned: %s @ %d %d", (!self->positioned ? "no" : (self->positioned == PPosition ? "program specified" : (self->positioned == USPosition ? "user specified" : (self->positioned == (PPosition | USPosition) ? "program + user specified" : "BADNESS !?")))), place.x, place.y); ob_debug("Sized: %s @ %d %d", (!self->sized ? "no" : (self->sized == PSize ? "program specified" : (self->sized == USSize ? "user specified" : (self->sized == (PSize | USSize) ? "program + user specified" : "BADNESS !?")))), place.width, place.height); obplaced = place_client(self, do_activate, &place, settings); /* watch for buggy apps that ask to be placed at (0,0) when there is a strut there */ if (!obplaced && place.x == 0 && place.y == 0 && /* non-normal windows are allowed */ client_normal(self) && /* oldschool fullscreen windows are allowed */ !client_is_oldfullscreen(self, &place)) { Rect *r; r = screen_area(self->desktop, SCREEN_AREA_ALL_MONITORS, NULL); if (r->x || r->y) { place.x = r->x; place.y = r->y; ob_debug("Moving buggy app from (0,0) to (%d,%d)", r->x, r->y); } g_slice_free(Rect, r); } /* make sure the window is visible. */ client_find_onscreen(self, &place.x, &place.y, place.width, place.height, /* non-normal clients has less rules, and windows that are being restored from a session do also. we can assume you want it back where you saved it. Clients saying they placed themselves are subjected to harder rules, ones that are placed by place.c or by the user are allowed partially off-screen and on xinerama divides (ie, it is up to the placement routines to avoid the xinerama divides) children and splash screens are forced on screen, but i don't remember why i decided to do that. */ ob_state() == OB_STATE_RUNNING && (self->type == OB_CLIENT_TYPE_DIALOG || self->type == OB_CLIENT_TYPE_SPLASH || (!((self->positioned & USPosition) || settings->pos_given) && client_normal(self) && !self->session && /* don't move oldschool fullscreen windows to fit inside the struts (fixes Acroread, which makes its fullscreen window fit the screen but it is not USSize'd or USPosition'd) */ !client_is_oldfullscreen(self, &place)))); } /* if the window isn't user-sized, then make it fit inside the visible screen area on its monitor. Use basically the same rules for forcing the window on screen in the client_find_onscreen call. do this after place_client, it chooses the monitor! splash screens get "transient" set to TRUE by the place_client call */ if (ob_state() == OB_STATE_RUNNING && (transient || (!(self->sized & USSize || self->positioned & USPosition) && client_normal(self) && !self->session && /* don't shrink oldschool fullscreen windows to fit inside the struts (fixes Acroread, which makes its fullscreen window fit the screen but it is not USSize'd or USPosition'd) */ !client_is_oldfullscreen(self, &place)))) { Rect *a = screen_area(self->desktop, SCREEN_AREA_ONE_MONITOR, &place); /* get the size of the frame */ place.width += self->frame->size.left + self->frame->size.right; place.height += self->frame->size.top + self->frame->size.bottom; /* fit the window inside the area */ place.width = MIN(place.width, a->width); place.height = MIN(place.height, a->height); ob_debug("setting window size to %dx%d", place.width, place.height); /* get the size of the client back */ place.width -= self->frame->size.left + self->frame->size.right; place.height -= self->frame->size.top + self->frame->size.bottom; g_slice_free(Rect, a); } ob_debug("placing window 0x%x at %d, %d with size %d x %d. " "some restrictions may apply", self->window, place.x, place.y, place.width, place.height); if (self->session) ob_debug(" but session requested %d, %d %d x %d instead, " "overriding", self->session->x, self->session->y, self->session->w, self->session->h); /* do this after the window is placed, so the premax/prefullscreen numbers won't be all wacko!! this also places the window */ client_apply_startup_state(self, place.x, place.y, place.width, place.height); /* set the initial value of the desktop hint, when one wasn't requested on map. */ OBT_PROP_SET32(self->window, NET_WM_DESKTOP, CARDINAL, self->desktop); /* grab mouse bindings before showing the window */ mouse_grab_for_client(self, TRUE); if (!config_focus_under_mouse) ignore_start = event_start_ignore_all_enters(); /* this has to happen before we try focus the window, but we want it to happen after the client's stacking has been determined or it looks bad */ client_show(self); /* activate/hilight/raise the window */ if (try_activate) { if (do_activate) { gboolean stacked = client_restore_session_stacking(self); client_present(self, FALSE, !stacked, TRUE); } else { /* if the client isn't stealing focus, then hilite it so the user knows it is there, but don't do this if we're restoring from a session */ if (!client_restore_session_stacking(self)) client_hilite(self, TRUE); } } else { /* This may look rather odd. Well it's because new windows are added to the stacking order non-intrusively. If we're not going to focus the new window or hilite it, then we raise it to the top. This will take affect for things that don't get focused like splash screens. Also if you don't have focus_new enabled, then it's going to get raised to the top. Legacy begets legacy I guess? */ if (!client_restore_session_stacking(self)) stacking_raise(CLIENT_AS_WINDOW(self)); } if (!config_focus_under_mouse) event_end_ignore_all_enters(ignore_start); /* add to client list/map */ client_list = g_list_append(client_list, self); window_add(&self->window, CLIENT_AS_WINDOW(self)); /* this has to happen after we're in the client_list */ if (STRUT_EXISTS(self->strut)) screen_update_areas(); /* update the list hints */ client_set_list(); /* free the ObAppSettings shallow copy */ g_slice_free(ObAppSettings, settings); ob_debug("Managed window 0x%lx plate 0x%x (%s)", window, self->frame->window, self->class); } ObClient *client_fake_manage(Window window) { ObClient *self; ObAppSettings *settings; ob_debug("Pretend-managing window: %lx", window); /* do this minimal stuff to figure out the client's decorations */ self = g_slice_new0(ObClient); self->window = window; client_get_all(self, FALSE); /* per-app settings override stuff, and return the settings for other uses too. this returns a shallow copy that needs to be freed */ settings = client_get_settings_state(self); /* create the decoration frame for the client window and adjust its size */ self->frame = frame_new(self); client_apply_startup_state(self, self->area.x, self->area.y, self->area.width, self->area.height); ob_debug("gave extents left %d right %d top %d bottom %d", self->frame->size.left, self->frame->size.right, self->frame->size.top, self->frame->size.bottom); /* free the ObAppSettings shallow copy */ g_slice_free(ObAppSettings, settings); return self; } void client_unmanage_all(void) { while (client_list) client_unmanage(client_list->data); } void client_unmanage(ObClient *self) { GSList *it; gulong ignore_start; ob_debug("Unmanaging window: 0x%x plate 0x%x (%s) (%s)", self->window, self->frame->window, self->class, self->title ? self->title : ""); g_assert(self != NULL); /* we dont want events no more. do this before hiding the frame so we don't generate more events */ XSelectInput(obt_display, self->window, NoEventMask); /* ignore enter events from the unmap so it doesnt mess with the focus */ if (!config_focus_under_mouse) ignore_start = event_start_ignore_all_enters(); frame_hide(self->frame); /* flush to send the hide to the server quickly */ XFlush(obt_display); if (!config_focus_under_mouse) event_end_ignore_all_enters(ignore_start); mouse_grab_for_client(self, FALSE); self->managed = FALSE; /* remove the window from our save set, unless we are managing an internal ObPrompt window */ if (!self->prompt) XChangeSaveSet(obt_display, self->window, SetModeDelete); /* update the focus lists */ focus_order_remove(self); if (client_focused(self)) { /* don't leave an invalid focus_client */ focus_client = NULL; } /* if we're prompting to kill the client, close that */ prompt_unref(self->kill_prompt); self->kill_prompt = NULL; client_list = g_list_remove(client_list, self); stacking_remove(self); window_remove(self->window); /* once the client is out of the list, update the struts to remove its influence */ if (STRUT_EXISTS(self->strut)) screen_update_areas(); client_call_notifies(self, client_destroy_notifies); /* tell our parent(s) that we're gone */ for (it = self->parents; it; it = g_slist_next(it)) ((ObClient*)it->data)->transients = g_slist_remove(((ObClient*)it->data)->transients,self); /* tell our transients that we're gone */ for (it = self->transients; it; it = g_slist_next(it)) { ((ObClient*)it->data)->parents = g_slist_remove(((ObClient*)it->data)->parents, self); /* we could be keeping our children in a higher layer */ client_calc_layer(it->data); } /* remove from its group */ if (self->group) { group_remove(self->group, self); self->group = NULL; } /* restore the window's original geometry so it is not lost */ { Rect a; a = self->area; if (self->fullscreen) a = self->pre_fullscreen_area; else if (self->max_horz || self->max_vert) { if (self->max_horz) { a.x = self->pre_max_area.x; a.width = self->pre_max_area.width; } if (self->max_vert) { a.y = self->pre_max_area.y; a.height = self->pre_max_area.height; } } self->fullscreen = self->max_horz = self->max_vert = FALSE; /* let it be moved and resized no matter what */ self->functions = OB_CLIENT_FUNC_MOVE | OB_CLIENT_FUNC_RESIZE; self->decorations = 0; /* unmanaged windows have no decor */ /* give the client its border back */ XSetWindowBorderWidth(obt_display, self->window, self->border_width); client_move_resize(self, a.x, a.y, a.width, a.height); } /* reparent the window out of the frame, and free the frame */ frame_release_client(self->frame); frame_free(self->frame); self->frame = NULL; if (ob_state() != OB_STATE_EXITING) { /* these values should not be persisted across a window unmapping/mapping */ OBT_PROP_ERASE(self->window, NET_WM_DESKTOP); OBT_PROP_ERASE(self->window, NET_WM_STATE); OBT_PROP_ERASE(self->window, WM_STATE); } else { /* if we're left in an unmapped state, the client wont be mapped. this is bad, since we will no longer be managing the window on restart */ XMapWindow(obt_display, self->window); } /* these should not be left on the window ever. other window managers don't necessarily use them and it will mess them up (like compiz) */ OBT_PROP_ERASE(self->window, NET_WM_VISIBLE_NAME); OBT_PROP_ERASE(self->window, NET_WM_VISIBLE_ICON_NAME); /* update the list hints */ client_set_list(); ob_debug("Unmanaged window 0x%lx", self->window); /* free all data allocated in the client struct */ RrImageUnref(self->icon_set); g_slist_free(self->transients); g_free(self->startup_id); g_free(self->wm_command); g_free(self->title); g_free(self->icon_title); g_free(self->original_title); g_free(self->name); g_free(self->class); g_free(self->role); g_free(self->group_name); g_free(self->group_class); g_free(self->client_machine); g_free(self->sm_client_id); g_slice_free(ObClient, self); } void client_fake_unmanage(ObClient *self) { /* this is all that got allocated to get the decorations */ frame_free(self->frame); g_slice_free(ObClient, self); } static gboolean client_can_steal_focus(ObClient *self, gboolean allow_other_desktop, gboolean request_from_user, Time steal_time, Time launch_time) { gboolean steal; gboolean relative_focused; steal = TRUE; relative_focused = (focus_client != NULL && (client_search_focus_tree_full(self) != NULL || client_search_focus_group_full(self) != NULL)); /* This is focus stealing prevention */ ob_debug("Want to focus window 0x%x at time %u " "launched at %u (last user interaction time %u) " "request from %s, allow other desktop: %s, " "desktop switch time %u", self->window, steal_time, launch_time, event_last_user_time, (request_from_user ? "user" : "other"), (allow_other_desktop ? "yes" : "no"), screen_desktop_user_time); /* if no launch time is provided for an application, make one up. if the window is related to other existing windows and one of those windows was the last used then we will give it a launch time equal to the last user time, which will end up giving the window focus probably. else the window is related to other windows, but you are not working in them? seems suspicious, so we will give it a launch time of NOW - STEAL_INTERVAL, so it will be given focus only if we didn't use something else during the steal interval. else the window is all on its own, so we can't judge it. give it a launch time equal to the last user time, so it will probably take focus. this way running things from a terminal will give them focus, but popups without a launch time shouldn't steal focus so easily. */ if (!launch_time) { if (client_has_relative(self)) { if (event_last_user_time && client_search_focus_group_full(self)) { /* our relative is focused */ launch_time = event_last_user_time; ob_debug("Unknown launch time, using %u - window in active " "group", launch_time); } else if (!request_from_user) { /* has relatives which are not being used. suspicious */ launch_time = event_time() - OB_EVENT_USER_TIME_DELAY; ob_debug("Unknown launch time, using %u - window in inactive " "group", launch_time); } else { /* has relatives which are not being used, but the user seems to want to go there! */ launch_time = event_last_user_time; ob_debug("Unknown launch time, using %u - user request", launch_time); } } else { /* the window is on its own, probably the user knows it is going to appear */ launch_time = event_last_user_time; ob_debug("Unknown launch time, using %u - independent window", launch_time); } } /* if it's on another desktop and if allow_other_desktop is true, we generally let it steal focus. but if it didn't come from the user, don't let it steal unless it was launched before the user switched desktops. focus, unless it was launched after we changed desktops and the request came from the user */ if (!screen_compare_desktops(screen_desktop, self->desktop)) { /* must be allowed */ if (!allow_other_desktop) { steal = FALSE; ob_debug("Not focusing the window because its on another desktop"); } /* if we don't know when the desktop changed, but request is from an application, don't let it change desktop on you */ else if (!request_from_user) { steal = FALSE; ob_debug("Not focusing the window because non-user request"); } } /* If something is focused... */ else if (focus_client) { /* If the user is working in another window right now, then don't steal focus */ if (!relative_focused && event_last_user_time && /* last user time must be strictly > launch_time to block focus */ (event_time_after(event_last_user_time, launch_time) && event_last_user_time != launch_time) && event_time_after(event_last_user_time, steal_time - OB_EVENT_USER_TIME_DELAY)) { steal = FALSE; ob_debug("Not focusing the window because the user is " "working in another window that is not its relative"); } /* Don't move focus if it's not going to go to this window anyway */ else if (client_focus_target(self) != self) { steal = FALSE; ob_debug("Not focusing the window because another window " "would get the focus anyway"); } /* For requests that don't come from the user */ else if (!request_from_user) { /* If the new window is a transient (and its relatives aren't focused) */ if (client_has_parent(self) && !relative_focused) { steal = FALSE; ob_debug("Not focusing the window because it is a " "transient, and its relatives aren't focused"); } /* Don't steal focus from globally active clients. I stole this idea from KWin. It seems nice. */ else if (!(focus_client->can_focus || focus_client->focus_notify)) { steal = FALSE; ob_debug("Not focusing the window because a globally " "active client has focus"); } /* Don't move focus if the window is not visible on the current desktop and none of its relatives are focused */ else if (!allow_other_desktop && !screen_compare_desktops(self->desktop, screen_desktop) && !relative_focused) { steal = FALSE; ob_debug("Not focusing the window because it is on " "another desktop and no relatives are focused "); } } } if (!steal) ob_debug("Focus stealing prevention activated for %s at " "time %u (last user interaction time %u)", self->title, steal_time, event_last_user_time); else ob_debug("Allowing focus stealing for %s at time %u (last user " "interaction time %u)", self->title, steal_time, event_last_user_time); return steal; } /*! Returns a new structure containing the per-app settings for this client. The returned structure needs to be freed with g_free. */ static ObAppSettings *client_get_settings_state(ObClient *self) { ObAppSettings *settings; GSList *it; settings = config_create_app_settings(); for (it = config_per_app_settings; it; it = g_slist_next(it)) { ObAppSettings *app = it->data; gboolean match = TRUE; g_assert(app->name != NULL || app->class != NULL || app->role != NULL || app->title != NULL || app->group_name != NULL || app->group_class != NULL || (signed)app->type >= 0); if (app->name && !g_pattern_match(app->name, strlen(self->name), self->name, NULL)) match = FALSE; else if (app->group_name && !g_pattern_match(app->group_name, strlen(self->group_name), self->group_name, NULL)) match = FALSE; else if (app->class && !g_pattern_match(app->class, strlen(self->class), self->class, NULL)) match = FALSE; else if (app->group_class && !g_pattern_match(app->group_class, strlen(self->group_class), self->group_class, NULL)) match = FALSE; else if (app->role && !g_pattern_match(app->role, strlen(self->role), self->role, NULL)) match = FALSE; else if (app->title && !g_pattern_match(app->title, strlen(self->title), self->title, NULL)) match = FALSE; else if ((signed)app->type >= 0 && app->type != self->type) { match = FALSE; } if (match) { ob_debug("Window matching: %s", app->name); /* copy the settings to our struct, overriding the existing settings if they are not defaults */ config_app_settings_copy_non_defaults(app, settings); } } if (settings->shade != -1) self->shaded = !!settings->shade; if (settings->decor != -1) self->undecorated = !settings->decor; if (settings->iconic != -1) self->iconic = !!settings->iconic; if (settings->skip_pager != -1) self->skip_pager = !!settings->skip_pager; if (settings->skip_taskbar != -1) self->skip_taskbar = !!settings->skip_taskbar; if (settings->max_vert != -1) self->max_vert = !!settings->max_vert; if (settings->max_horz != -1) self->max_horz = !!settings->max_horz; if (settings->fullscreen != -1) self->fullscreen = !!settings->fullscreen; if (settings->desktop) { if (settings->desktop == DESKTOP_ALL) self->desktop = settings->desktop; else if (settings->desktop > 0 && settings->desktop <= screen_num_desktops) self->desktop = settings->desktop - 1; } if (settings->layer == -1) { self->below = TRUE; self->above = FALSE; } else if (settings->layer == 0) { self->below = FALSE; self->above = FALSE; } else if (settings->layer == 1) { self->below = FALSE; self->above = TRUE; } return settings; } static void client_restore_session_state(ObClient *self) { GList *it; ob_debug_type(OB_DEBUG_SM, "Restore session for client %s", self->title); if (!(it = session_state_find(self))) { ob_debug_type(OB_DEBUG_SM, "Session data not found for client %s", self->title); return; } self->session = it->data; ob_debug_type(OB_DEBUG_SM, "Session data loaded for client %s", self->title); RECT_SET_POINT(self->area, self->session->x, self->session->y); self->positioned = USPosition; self->sized = USSize; if (self->session->w > 0) self->area.width = self->session->w; if (self->session->h > 0) self->area.height = self->session->h; XResizeWindow(obt_display, self->window, self->area.width, self->area.height); self->desktop = (self->session->desktop == DESKTOP_ALL ? self->session->desktop : MIN(screen_num_desktops - 1, self->session->desktop)); OBT_PROP_SET32(self->window, NET_WM_DESKTOP, CARDINAL, self->desktop); self->shaded = self->session->shaded; self->iconic = self->session->iconic; self->skip_pager = self->session->skip_pager; self->skip_taskbar = self->session->skip_taskbar; self->fullscreen = self->session->fullscreen; self->above = self->session->above; self->below = self->session->below; self->max_horz = self->session->max_horz; self->max_vert = self->session->max_vert; self->undecorated = self->session->undecorated; } static gboolean client_restore_session_stacking(ObClient *self) { GList *it, *mypos; if (!self->session) return FALSE; mypos = g_list_find(session_saved_state, self->session); if (!mypos) return FALSE; /* start above me and look for the first client */ for (it = g_list_previous(mypos); it; it = g_list_previous(it)) { GList *cit; for (cit = client_list; cit; cit = g_list_next(cit)) { ObClient *c = cit->data; /* found a client that was in the session, so go below it */ if (c->session == it->data) { stacking_below(CLIENT_AS_WINDOW(self), CLIENT_AS_WINDOW(cit->data)); return TRUE; } } } return FALSE; } void client_move_onscreen(ObClient *self, gboolean rude) { gint x = self->area.x; gint y = self->area.y; if (client_find_onscreen(self, &x, &y, self->area.width, self->area.height, rude)) { client_move(self, x, y); } } gboolean client_find_onscreen(ObClient *self, gint *x, gint *y, gint w, gint h, gboolean rude) { gint ox = *x, oy = *y; gboolean rudel = rude, ruder = rude, rudet = rude, rudeb = rude; gint fw, fh; Rect desired; guint i; gboolean found_mon; RECT_SET(desired, *x, *y, w, h); frame_rect_to_frame(self->frame, &desired); /* get where the frame would be */ frame_client_gravity(self->frame, x, y); /* get the requested size of the window with decorations */ fw = self->frame->size.left + w + self->frame->size.right; fh = self->frame->size.top + h + self->frame->size.bottom; /* If rudeness wasn't requested, then still be rude in a given direction if the client is not moving, only resizing in that direction */ if (!rude) { Point oldtl, oldtr, oldbl, oldbr; Point newtl, newtr, newbl, newbr; gboolean stationary_l, stationary_r, stationary_t, stationary_b; POINT_SET(oldtl, self->frame->area.x, self->frame->area.y); POINT_SET(oldbr, self->frame->area.x + self->frame->area.width - 1, self->frame->area.y + self->frame->area.height - 1); POINT_SET(oldtr, oldbr.x, oldtl.y); POINT_SET(oldbl, oldtl.x, oldbr.y); POINT_SET(newtl, *x, *y); POINT_SET(newbr, *x + fw - 1, *y + fh - 1); POINT_SET(newtr, newbr.x, newtl.y); POINT_SET(newbl, newtl.x, newbr.y); /* is it moving or just resizing from some corner? */ stationary_l = oldtl.x == newtl.x; stationary_r = oldtr.x == newtr.x; stationary_t = oldtl.y == newtl.y; stationary_b = oldbl.y == newbl.y; /* if left edge is growing and didnt move right edge */ if (stationary_r && newtl.x < oldtl.x) rudel = TRUE; /* if right edge is growing and didnt move left edge */ if (stationary_l && newtr.x > oldtr.x) ruder = TRUE; /* if top edge is growing and didnt move bottom edge */ if (stationary_b && newtl.y < oldtl.y) rudet = TRUE; /* if bottom edge is growing and didnt move top edge */ if (stationary_t && newbl.y > oldbl.y) rudeb = TRUE; } /* we iterate through every monitor that the window is at least partially on, to make sure it is obeying the rules on them all if the window does not appear on any monitors, then use the first one */ found_mon = FALSE; for (i = 0; i < screen_num_monitors; ++i) { Rect *a; if (!screen_physical_area_monitor_contains(i, &desired)) { if (i < screen_num_monitors - 1 || found_mon) continue; /* the window is not inside any monitor! so just use the first one */ a = screen_area(self->desktop, 0, NULL); } else { found_mon = TRUE; a = screen_area(self->desktop, SCREEN_AREA_ONE_MONITOR, &desired); } /* This makes sure windows aren't entirely outside of the screen so you can't see them at all. It makes sure 10% of the window is on the screen at least. And don't let it move itself off the top of the screen, which would hide the titlebar on you. (The user can still do this if they want too, it's only limiting the application. */ if (client_normal(self)) { if (!self->strut.right && *x + fw/10 >= a->x + a->width - 1) *x = a->x + a->width - fw/10; if (!self->strut.bottom && *y + fh/10 >= a->y + a->height - 1) *y = a->y + a->height - fh/10; if (!self->strut.left && *x + fw*9/10 - 1 < a->x) *x = a->x - fw*9/10; if (!self->strut.top && *y + fh*9/10 - 1 < a->y) *y = a->y - fh*9/10; } /* This here doesn't let windows even a pixel outside the struts/screen. When called from client_manage, programs placing themselves are forced completely onscreen, while things like xterm -geometry resolution-width/2 will work fine. Trying to place it completely offscreen will be handled in the above code. Sorry for this confused comment, i am tired. */ if (rudel && !self->strut.left && *x < a->x) *x = a->x; if (ruder && !self->strut.right && *x + fw > a->x + a->width) *x = a->x + MAX(0, a->width - fw); if (rudet && !self->strut.top && *y < a->y) *y = a->y; if (rudeb && !self->strut.bottom && *y + fh > a->y + a->height) *y = a->y + MAX(0, a->height - fh); g_slice_free(Rect, a); } /* get where the client should be */ frame_frame_gravity(self->frame, x, y); return ox != *x || oy != *y; } static void client_get_all(ObClient *self, gboolean real) { /* this is needed for the frame to set itself up */ client_get_area(self); /* these things can change the decor and functions of the window */ client_get_mwm_hints(self); /* this can change the mwmhints for special cases */ client_get_type_and_transientness(self); client_update_normal_hints(self); /* set up the maximum possible decor/functions */ client_setup_default_decor_and_functions(self); client_get_state(self); /* get the session related properties, these can change decorations from per-app settings */ client_get_session_ids(self); /* get this early so we have it for debugging, also this can be used by app rule matching */ client_update_title(self); /* now we got everything that can affect the decorations or app rule matching */ if (!real) return; /* save the values of the variables used for app rule matching */ client_save_app_rule_values(self); client_update_protocols(self); client_update_wmhints(self); /* this may have already been called from client_update_wmhints */ if (!self->parents && !self->transient_for_group) client_update_transient_for(self); client_get_startup_id(self); client_get_desktop(self);/* uses transient data/group/startup id if a desktop is not specified */ client_get_shaped(self); { /* a couple type-based defaults for new windows */ /* this makes sure that these windows appear on all desktops */ if (self->type == OB_CLIENT_TYPE_DESKTOP) self->desktop = DESKTOP_ALL; } #ifdef SYNC client_update_sync_request_counter(self); #endif client_get_colormap(self); client_update_strut(self); client_update_icons(self); client_update_icon_geometry(self); } static void client_get_startup_id(ObClient *self) { if (!(OBT_PROP_GETS_UTF8(self->window, NET_STARTUP_ID, &self->startup_id))) if (self->group) OBT_PROP_GETS_UTF8(self->group->leader, NET_STARTUP_ID, &self->startup_id); } static void client_get_area(ObClient *self) { XWindowAttributes wattrib; Status ret; ret = XGetWindowAttributes(obt_display, self->window, &wattrib); g_assert(ret != BadWindow); RECT_SET(self->area, wattrib.x, wattrib.y, wattrib.width, wattrib.height); POINT_SET(self->root_pos, wattrib.x, wattrib.y); self->border_width = wattrib.border_width; ob_debug("client area: %d %d %d %d bw %d", wattrib.x, wattrib.y, wattrib.width, wattrib.height, wattrib.border_width); } static void client_get_desktop(ObClient *self) { guint32 d = screen_num_desktops; /* an always-invalid value */ if (OBT_PROP_GET32(self->window, NET_WM_DESKTOP, CARDINAL, &d)) { if (d >= screen_num_desktops && d != DESKTOP_ALL) self->desktop = screen_num_desktops - 1; else self->desktop = d; ob_debug("client requested desktop 0x%x", self->desktop); } else { GSList *it; gboolean first = TRUE; guint all = screen_num_desktops; /* not a valid value */ /* if they are all on one desktop, then open it on the same desktop */ for (it = self->parents; it; it = g_slist_next(it)) { ObClient *c = it->data; if (c->desktop == DESKTOP_ALL) continue; if (first) { all = c->desktop; first = FALSE; } else if (all != c->desktop) all = screen_num_desktops; /* make it invalid */ } if (all != screen_num_desktops) { self->desktop = all; ob_debug("client desktop set from parents: 0x%x", self->desktop); } /* try get from the startup-notification protocol */ else if (sn_get_desktop(self->startup_id, &self->desktop)) { if (self->desktop >= screen_num_desktops && self->desktop != DESKTOP_ALL) self->desktop = screen_num_desktops - 1; ob_debug("client desktop set from startup-notification: 0x%x", self->desktop); } /* defaults to the current desktop */ else { self->desktop = screen_desktop; ob_debug("client desktop set to the current desktop: %d", self->desktop); } } } static void client_get_state(ObClient *self) { guint32 *state; guint num; if (OBT_PROP_GETA32(self->window, NET_WM_STATE, ATOM, &state, &num)) { gulong i; for (i = 0; i < num; ++i) { if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_MODAL)) self->modal = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_SHADED)) self->shaded = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_HIDDEN)) self->iconic = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_SKIP_TASKBAR)) self->skip_taskbar = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_SKIP_PAGER)) self->skip_pager = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_FULLSCREEN)) self->fullscreen = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_VERT)) self->max_vert = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_HORZ)) self->max_horz = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_ABOVE)) self->above = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_BELOW)) self->below = TRUE; else if (state[i] == OBT_PROP_ATOM(NET_WM_STATE_DEMANDS_ATTENTION)) self->demands_attention = TRUE; else if (state[i] == OBT_PROP_ATOM(OB_WM_STATE_UNDECORATED)) self->undecorated = TRUE; } g_free(state); } } static void client_get_shaped(ObClient *self) { self->shaped = FALSE; #ifdef SHAPE if (obt_display_extension_shape) { gint foo; guint ufoo; gint s; XShapeSelectInput(obt_display, self->window, ShapeNotifyMask); XShapeQueryExtents(obt_display, self->window, &s, &foo, &foo, &ufoo, &ufoo, &foo, &foo, &foo, &ufoo, &ufoo); self->shaped = !!s; } #endif } void client_update_transient_for(ObClient *self) { Window t = None; ObClient *target = NULL; gboolean trangroup = FALSE; if (XGetTransientForHint(obt_display, self->window, &t)) { if (t != self->window) { /* can't be transient to itself! */ ObWindow *tw = window_find(t); /* if this happens then we need to check for it */ g_assert(tw != CLIENT_AS_WINDOW(self)); if (tw && WINDOW_IS_CLIENT(tw)) { /* watch out for windows with a parent that is something different, like a dockapp for example */ target = WINDOW_AS_CLIENT(tw); } } /* Setting the transient_for to Root is actually illegal, however applications from time have done this to specify transient for their group */ if (!target && self->group && t == obt_root(ob_screen)) trangroup = TRUE; } else if (self->group && self->transient) trangroup = TRUE; client_update_transient_tree(self, self->group, self->group, self->transient_for_group, trangroup, client_direct_parent(self), target); self->transient_for_group = trangroup; } static void client_update_transient_tree(ObClient *self, ObGroup *oldgroup, ObGroup *newgroup, gboolean oldgtran, gboolean newgtran, ObClient* oldparent, ObClient *newparent) { GSList *it, *next; ObClient *c; g_assert(!oldgtran || oldgroup); g_assert(!newgtran || newgroup); g_assert((!oldgtran && !oldparent) || (oldgtran && !oldparent) || (!oldgtran && oldparent)); g_assert((!newgtran && !newparent) || (newgtran && !newparent) || (!newgtran && newparent)); /* * * Group transient windows are not allowed to have other group transient windows as their children. * * */ /* No change has occured */ if (oldgroup == newgroup && oldgtran == newgtran && oldparent == newparent) return; /** Remove the client from the transient tree **/ for (it = self->transients; it; it = next) { next = g_slist_next(it); c = it->data; self->transients = g_slist_delete_link(self->transients, it); c->parents = g_slist_remove(c->parents, self); } for (it = self->parents; it; it = next) { next = g_slist_next(it); c = it->data; self->parents = g_slist_delete_link(self->parents, it); c->transients = g_slist_remove(c->transients, self); } /** Re-add the client to the transient tree **/ /* If we're transient for a group then we need to add ourselves to all our parents */ if (newgtran) { for (it = newgroup->members; it; it = g_slist_next(it)) { c = it->data; if (c != self && !client_search_top_direct_parent(c)->transient_for_group && client_normal(c)) { c->transients = g_slist_prepend(c->transients, self); self->parents = g_slist_prepend(self->parents, c); } } } /* If we are now transient for a single window we need to add ourselves to its children WARNING: Cyclical transient-ness is possible if two windows are transient for eachother. */ else if (newparent && /* don't make ourself its child if it is already our child */ !client_is_direct_child(self, newparent) && client_normal(newparent)) { newparent->transients = g_slist_prepend(newparent->transients, self); self->parents = g_slist_prepend(self->parents, newparent); } /* Add any group transient windows to our children. But if we're transient for the group, then other group transients are not our children. WARNING: Cyclical transient-ness is possible. For e.g. if: A is transient for the group B is transient for A C is transient for B A can't be transient for C or we have a cycle */ if (!newgtran && newgroup && (!newparent || !client_search_top_direct_parent(newparent)->transient_for_group) && client_normal(self)) { for (it = newgroup->members; it; it = g_slist_next(it)) { c = it->data; if (c != self && c->transient_for_group && /* Don't make it our child if it is already our parent */ !client_is_direct_child(c, self)) { self->transients = g_slist_prepend(self->transients, c); c->parents = g_slist_prepend(c->parents, self); } } } /** If we change our group transient-ness, our children change their effective group transient-ness, which affects how they relate to other group windows **/ for (it = self->transients; it; it = g_slist_next(it)) { c = it->data; if (!c->transient_for_group) client_update_transient_tree(c, c->group, c->group, c->transient_for_group, c->transient_for_group, client_direct_parent(c), client_direct_parent(c)); } } void client_get_mwm_hints(ObClient *self) { guint num; guint32 *hints; self->mwmhints.flags = 0; /* default to none */ if (OBT_PROP_GETA32(self->window, MOTIF_WM_HINTS, MOTIF_WM_HINTS, &hints, &num)) { if (num >= OB_MWM_ELEMENTS) { self->mwmhints.flags = hints[0]; self->mwmhints.functions = hints[1]; self->mwmhints.decorations = hints[2]; } g_free(hints); } } void client_get_type_and_transientness(ObClient *self) { guint num, i; guint32 *val; Window t; self->type = -1; self->transient = FALSE; if (OBT_PROP_GETA32(self->window, NET_WM_WINDOW_TYPE, ATOM, &val, &num)) { /* use the first value that we know about in the array */ for (i = 0; i < num; ++i) { if (val[i] == OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_DESKTOP)) self->type = OB_CLIENT_TYPE_DESKTOP; else if (val[i] == OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_DOCK)) self->type = OB_CLIENT_TYPE_DOCK; else if (val[i] == OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_TOOLBAR)) self->type = OB_CLIENT_TYPE_TOOLBAR; else if (val[i] == OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_MENU)) self->type = OB_CLIENT_TYPE_MENU; else if (val[i] == OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_UTILITY)) self->type = OB_CLIENT_TYPE_UTILITY; else if (val[i] == OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_SPLASH)) self->type = OB_CLIENT_TYPE_SPLASH; else if (val[i] == OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_DIALOG)) self->type = OB_CLIENT_TYPE_DIALOG; else if (val[i] == OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_NORMAL)) self->type = OB_CLIENT_TYPE_NORMAL; else if (val[i] == OBT_PROP_ATOM(KDE_NET_WM_WINDOW_TYPE_OVERRIDE)) { /* prevent this window from getting any decor or functionality */ self->mwmhints.flags &= (OB_MWM_FLAG_FUNCTIONS | OB_MWM_FLAG_DECORATIONS); self->mwmhints.decorations = 0; self->mwmhints.functions = 0; } if (self->type != (ObClientType) -1) break; /* grab the first legit type */ } g_free(val); } if (XGetTransientForHint(obt_display, self->window, &t)) self->transient = TRUE; if (self->type == (ObClientType) -1) { /*the window type hint was not set, which means we either classify ourself as a normal window or a dialog, depending on if we are a transient. */ if (self->transient) self->type = OB_CLIENT_TYPE_DIALOG; else self->type = OB_CLIENT_TYPE_NORMAL; } /* then, based on our type, we can update our transientness.. */ if (self->type == OB_CLIENT_TYPE_DIALOG || self->type == OB_CLIENT_TYPE_TOOLBAR || self->type == OB_CLIENT_TYPE_MENU || self->type == OB_CLIENT_TYPE_UTILITY) { self->transient = TRUE; } } void client_update_protocols(ObClient *self) { guint32 *proto; guint num_ret, i; self->focus_notify = FALSE; self->delete_window = FALSE; if (OBT_PROP_GETA32(self->window, WM_PROTOCOLS, ATOM, &proto, &num_ret)) { for (i = 0; i < num_ret; ++i) { if (proto[i] == OBT_PROP_ATOM(WM_DELETE_WINDOW)) /* this means we can request the window to close */ self->delete_window = TRUE; else if (proto[i] == OBT_PROP_ATOM(WM_TAKE_FOCUS)) /* if this protocol is requested, then the window will be notified whenever we want it to receive focus */ self->focus_notify = TRUE; else if (proto[i] == OBT_PROP_ATOM(NET_WM_PING)) /* if this protocol is requested, then the window will allow pings to determine if it is still alive */ self->ping = TRUE; #ifdef SYNC else if (proto[i] == OBT_PROP_ATOM(NET_WM_SYNC_REQUEST)) /* if this protocol is requested, then resizing the window will be synchronized between the frame and the client */ self->sync_request = TRUE; #endif } g_free(proto); } } #ifdef SYNC void client_update_sync_request_counter(ObClient *self) { guint32 i; if (OBT_PROP_GET32(self->window, NET_WM_SYNC_REQUEST_COUNTER, CARDINAL,&i)) { XSyncValue val; self->sync_counter = i; /* this must be set when managing a new window according to EWMH */ XSyncIntToValue(&val, 0); XSyncSetCounter(obt_display, self->sync_counter, val); } else self->sync_counter = None; } #endif static void client_get_colormap(ObClient *self) { XWindowAttributes wa; if (XGetWindowAttributes(obt_display, self->window, &wa)) client_update_colormap(self, wa.colormap); } void client_update_colormap(ObClient *self, Colormap colormap) { if (colormap == self->colormap) return; ob_debug("Setting client %s colormap: 0x%x", self->title, colormap); if (client_focused(self)) { screen_install_colormap(self, FALSE); /* uninstall old one */ self->colormap = colormap; screen_install_colormap(self, TRUE); /* install new one */ } else self->colormap = colormap; } void client_update_opacity(ObClient *self) { guint32 o; if (OBT_PROP_GET32(self->window, NET_WM_WINDOW_OPACITY, CARDINAL, &o)) OBT_PROP_SET32(self->frame->window, NET_WM_WINDOW_OPACITY, CARDINAL, o); else OBT_PROP_ERASE(self->frame->window, NET_WM_WINDOW_OPACITY); } void client_update_normal_hints(ObClient *self) { XSizeHints size; glong ret; /* defaults */ self->min_ratio = 0.0f; self->max_ratio = 0.0f; SIZE_SET(self->size_inc, 1, 1); SIZE_SET(self->base_size, -1, -1); SIZE_SET(self->min_size, 0, 0); SIZE_SET(self->max_size, G_MAXINT, G_MAXINT); /* get the hints from the window */ if (XGetWMNormalHints(obt_display, self->window, &size, &ret)) { /* normal windows can't request placement! har har if (!client_normal(self)) */ self->positioned = (size.flags & (PPosition|USPosition)); self->sized = (size.flags & (PSize|USSize)); if (size.flags & PWinGravity) self->gravity = size.win_gravity; if (size.flags & PAspect) { if (size.min_aspect.y) self->min_ratio = (gfloat) size.min_aspect.x / size.min_aspect.y; if (size.max_aspect.y) self->max_ratio = (gfloat) size.max_aspect.x / size.max_aspect.y; } if (size.flags & PMinSize) SIZE_SET(self->min_size, size.min_width, size.min_height); if (size.flags & PMaxSize) SIZE_SET(self->max_size, size.max_width, size.max_height); if (size.flags & PBaseSize) SIZE_SET(self->base_size, size.base_width, size.base_height); if (size.flags & PResizeInc && size.width_inc && size.height_inc) SIZE_SET(self->size_inc, size.width_inc, size.height_inc); ob_debug("Normal hints: min size (%d %d) max size (%d %d)", self->min_size.width, self->min_size.height, self->max_size.width, self->max_size.height); ob_debug("size inc (%d %d) base size (%d %d)", self->size_inc.width, self->size_inc.height, self->base_size.width, self->base_size.height); } else ob_debug("Normal hints: not set"); } static void client_setup_default_decor_and_functions(ObClient *self) { /* start with everything (cept fullscreen) */ self->decorations = (OB_FRAME_DECOR_TITLEBAR | OB_FRAME_DECOR_HANDLE | OB_FRAME_DECOR_GRIPS | OB_FRAME_DECOR_BORDER | OB_FRAME_DECOR_ICON | OB_FRAME_DECOR_ALLDESKTOPS | OB_FRAME_DECOR_ICONIFY | OB_FRAME_DECOR_MAXIMIZE | OB_FRAME_DECOR_SHADE | OB_FRAME_DECOR_CLOSE); self->functions = (OB_CLIENT_FUNC_RESIZE | OB_CLIENT_FUNC_MOVE | OB_CLIENT_FUNC_ICONIFY | OB_CLIENT_FUNC_MAXIMIZE | OB_CLIENT_FUNC_SHADE | OB_CLIENT_FUNC_CLOSE | OB_CLIENT_FUNC_BELOW | OB_CLIENT_FUNC_ABOVE | OB_CLIENT_FUNC_UNDECORATE); if (!(self->min_size.width < self->max_size.width || self->min_size.height < self->max_size.height)) self->functions &= ~OB_CLIENT_FUNC_RESIZE; switch (self->type) { case OB_CLIENT_TYPE_NORMAL: /* normal windows retain all of the possible decorations and functionality, and can be fullscreen */ self->functions |= OB_CLIENT_FUNC_FULLSCREEN; break; case OB_CLIENT_TYPE_DIALOG: /* sometimes apps make dialog windows fullscreen for some reason (for e.g. kpdf does this..) */ self->functions |= OB_CLIENT_FUNC_FULLSCREEN; break; case OB_CLIENT_TYPE_UTILITY: /* these windows don't have anything added or removed by default */ break; case OB_CLIENT_TYPE_MENU: case OB_CLIENT_TYPE_TOOLBAR: /* these windows can't iconify or maximize */ self->decorations &= ~(OB_FRAME_DECOR_ICONIFY | OB_FRAME_DECOR_MAXIMIZE); self->functions &= ~(OB_CLIENT_FUNC_ICONIFY | OB_CLIENT_FUNC_MAXIMIZE); break; case OB_CLIENT_TYPE_SPLASH: /* these don't get get any decorations, and the only thing you can do with them is move them */ self->decorations = 0; self->functions = OB_CLIENT_FUNC_MOVE; break; case OB_CLIENT_TYPE_DESKTOP: /* these windows are not manipulated by the window manager */ self->decorations = 0; self->functions = 0; break; case OB_CLIENT_TYPE_DOCK: /* these windows are not manipulated by the window manager, but they can set below layer which has a special meaning */ self->decorations = 0; self->functions = OB_CLIENT_FUNC_BELOW; break; } /* If the client has no decor from its type (which never changes) then don't allow the user to "undecorate" the window. Otherwise, allow them to, even if there are motif hints removing the decor, because those may change these days (e.g. chromium) */ if (self->decorations == 0) self->functions &= ~OB_CLIENT_FUNC_UNDECORATE; /* Mwm Hints are applied subtractively to what has already been chosen for decor and functionality */ if (self->mwmhints.flags & OB_MWM_FLAG_DECORATIONS) { if (! (self->mwmhints.decorations & OB_MWM_DECOR_ALL)) { if (! ((self->mwmhints.decorations & OB_MWM_DECOR_HANDLE) || (self->mwmhints.decorations & OB_MWM_DECOR_TITLE))) { /* if the mwm hints request no handle or title, then all decorations are disabled, but keep the border if that's specified */ if (self->mwmhints.decorations & OB_MWM_DECOR_BORDER) self->decorations = OB_FRAME_DECOR_BORDER; else self->decorations = 0; } } } if (self->mwmhints.flags & OB_MWM_FLAG_FUNCTIONS) { if (! (self->mwmhints.functions & OB_MWM_FUNC_ALL)) { if (! (self->mwmhints.functions & OB_MWM_FUNC_RESIZE)) self->functions &= ~OB_CLIENT_FUNC_RESIZE; if (! (self->mwmhints.functions & OB_MWM_FUNC_MOVE)) self->functions &= ~OB_CLIENT_FUNC_MOVE; /* dont let mwm hints kill any buttons if (! (self->mwmhints.functions & OB_MWM_FUNC_ICONIFY)) self->functions &= ~OB_CLIENT_FUNC_ICONIFY; if (! (self->mwmhints.functions & OB_MWM_FUNC_MAXIMIZE)) self->functions &= ~OB_CLIENT_FUNC_MAXIMIZE; */ /* dont let mwm hints kill the close button if (! (self->mwmhints.functions & MwmFunc_Close)) self->functions &= ~OB_CLIENT_FUNC_CLOSE; */ } } if (!(self->functions & OB_CLIENT_FUNC_SHADE)) self->decorations &= ~OB_FRAME_DECOR_SHADE; if (!(self->functions & OB_CLIENT_FUNC_ICONIFY)) self->decorations &= ~OB_FRAME_DECOR_ICONIFY; if (!(self->functions & OB_CLIENT_FUNC_RESIZE)) self->decorations &= ~(OB_FRAME_DECOR_GRIPS | OB_FRAME_DECOR_HANDLE); /* can't maximize without moving/resizing */ if (!((self->functions & OB_CLIENT_FUNC_MAXIMIZE) && (self->functions & OB_CLIENT_FUNC_MOVE) && (self->functions & OB_CLIENT_FUNC_RESIZE))) { self->functions &= ~OB_CLIENT_FUNC_MAXIMIZE; self->decorations &= ~OB_FRAME_DECOR_MAXIMIZE; } } /*! Set up decor for a client based on its undecorated state. */ static void client_setup_decor_undecorated(ObClient *self) { /* If the user requested no decorations, then remove all the decorations, except the border. But don't add a border if there wasn't one. */ if (self->undecorated) self->decorations &= (config_theme_keepborder ? OB_FRAME_DECOR_BORDER : 0); } void client_setup_decor_and_functions(ObClient *self, gboolean reconfig) { client_setup_default_decor_and_functions(self); client_setup_decor_undecorated(self); if (self->max_horz && self->max_vert) { /* once upon a time you couldn't resize maximized windows, that is not the case any more though ! but do kill the handle on fully maxed windows */ self->decorations &= ~(OB_FRAME_DECOR_HANDLE | OB_FRAME_DECOR_GRIPS); } /* if we don't have a titlebar, then we cannot shade! */ if (!(self->decorations & OB_FRAME_DECOR_TITLEBAR)) self->functions &= ~OB_CLIENT_FUNC_SHADE; /* now we need to check against rules for the client's current state */ if (self->fullscreen) { self->functions &= (OB_CLIENT_FUNC_CLOSE | OB_CLIENT_FUNC_FULLSCREEN | OB_CLIENT_FUNC_ICONIFY); self->decorations = 0; } client_change_allowed_actions(self); if (reconfig) /* reconfigure to make sure decorations are updated */ client_reconfigure(self, FALSE); } static void client_change_allowed_actions(ObClient *self) { gulong actions[12]; gint num = 0; /* desktop windows are kept on all desktops */ if (self->type != OB_CLIENT_TYPE_DESKTOP) actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_CHANGE_DESKTOP); if (self->functions & OB_CLIENT_FUNC_SHADE) actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_SHADE); if (self->functions & OB_CLIENT_FUNC_CLOSE) actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_CLOSE); if (self->functions & OB_CLIENT_FUNC_MOVE) actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_MOVE); if (self->functions & OB_CLIENT_FUNC_ICONIFY) actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_MINIMIZE); if (self->functions & OB_CLIENT_FUNC_RESIZE) actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_RESIZE); if (self->functions & OB_CLIENT_FUNC_FULLSCREEN) actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_FULLSCREEN); if (self->functions & OB_CLIENT_FUNC_MAXIMIZE) { actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_MAXIMIZE_HORZ); actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_MAXIMIZE_VERT); } if (self->functions & OB_CLIENT_FUNC_ABOVE) actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_ABOVE); if (self->functions & OB_CLIENT_FUNC_BELOW) actions[num++] = OBT_PROP_ATOM(NET_WM_ACTION_BELOW); if (self->functions & OB_CLIENT_FUNC_UNDECORATE) actions[num++] = OBT_PROP_ATOM(OB_WM_ACTION_UNDECORATE); OBT_PROP_SETA32(self->window, NET_WM_ALLOWED_ACTIONS, ATOM, actions, num); /* make sure the window isn't breaking any rules now don't check ICONIFY here. just cuz a window can't iconify doesnt mean it can't be iconified with its parent */ if (!(self->functions & OB_CLIENT_FUNC_SHADE) && self->shaded) { if (self->frame) client_shade(self, FALSE); else self->shaded = FALSE; } if (!(self->functions & OB_CLIENT_FUNC_FULLSCREEN) && self->fullscreen) { if (self->frame) client_fullscreen(self, FALSE); else self->fullscreen = FALSE; } if (!(self->functions & OB_CLIENT_FUNC_MAXIMIZE) && (self->max_horz || self->max_vert)) { if (self->frame) client_maximize(self, FALSE, 0); else self->max_vert = self->max_horz = FALSE; } } void client_update_wmhints(ObClient *self) { XWMHints *hints; /* assume a window takes input if it doesn't specify */ self->can_focus = TRUE; if ((hints = XGetWMHints(obt_display, self->window)) != NULL) { gboolean ur; if (hints->flags & InputHint) self->can_focus = hints->input; /* only do this when first managing the window *AND* when we aren't starting up! */ if (ob_state() != OB_STATE_STARTING && self->frame == NULL) if (hints->flags & StateHint) self->iconic = hints->initial_state == IconicState; ur = self->urgent; self->urgent = (hints->flags & XUrgencyHint); if (self->urgent && !ur) client_hilite(self, TRUE); else if (!self->urgent && ur && self->demands_attention) client_hilite(self, FALSE); if (!(hints->flags & WindowGroupHint)) hints->window_group = None; /* did the group state change? */ if (hints->window_group != (self->group ? self->group->leader : None)) { ObGroup *oldgroup = self->group; /* remove from the old group if there was one */ if (self->group) { group_remove(self->group, self); self->group = NULL; } /* add ourself to the group if we have one */ if (hints->window_group != None) { self->group = group_add(hints->window_group, self); } /* Put ourselves into the new group's transient tree, and remove ourselves from the old group's */ client_update_transient_tree(self, oldgroup, self->group, self->transient_for_group, self->transient_for_group, client_direct_parent(self), client_direct_parent(self)); /* Lastly, being in a group, or not, can change if the window is transient for anything. The logic for this is: self->transient = TRUE always if the window wants to be transient for something, even if transient_for was NULL because it wasn't in a group before. If parents was NULL and oldgroup was NULL we can assume that when we add the new group, it will become transient for something. If transient_for_group is TRUE, then it must have already had a group. If it is getting a new group, the above call to client_update_transient_tree has already taken care of everything ! If it is losing all group status then it will no longer be transient for anything and that needs to be updated. */ if (self->transient && ((self->parents == NULL && oldgroup == NULL) || (self->transient_for_group && !self->group))) client_update_transient_for(self); } /* the WM_HINTS can contain an icon */ if (hints->flags & IconPixmapHint) client_update_icons(self); XFree(hints); } focus_cycle_addremove(self, TRUE); } void client_update_title(ObClient *self) { gchar *data = NULL; gchar *visible = NULL; g_free(self->title); g_free(self->original_title); /* try netwm */ if (!OBT_PROP_GETS_UTF8(self->window, NET_WM_NAME, &data)) { /* try old x stuff */ if (!OBT_PROP_GETS(self->window, WM_NAME, &data)) { if (self->transient) { /* GNOME alert windows are not given titles: http://developer.gnome.org/projects/gup/hig/draft_hig_new/windows-alert.html */ data = g_strdup(""); } else data = g_strdup(_("Unnamed Window")); } } self->original_title = g_strdup(data); if (self->client_machine) { visible = g_strdup_printf("%s (%s)", data, self->client_machine); g_free(data); } else visible = data; if (self->not_responding) { data = visible; if (self->kill_level > 0) visible = g_strdup_printf("%s - [%s]", data, _("Killing...")); else visible = g_strdup_printf("%s - [%s]", data, _("Not Responding")); g_free(data); } OBT_PROP_SETS(self->window, NET_WM_VISIBLE_NAME, visible); self->title = visible; if (self->frame) frame_adjust_title(self->frame); /* update the icon title */ data = NULL; g_free(self->icon_title); /* try netwm */ if (!OBT_PROP_GETS_UTF8(self->window, NET_WM_ICON_NAME, &data)) /* try old x stuff */ if (!OBT_PROP_GETS(self->window, WM_ICON_NAME, &data)) data = g_strdup(self->title); if (self->client_machine) { visible = g_strdup_printf("%s (%s)", data, self->client_machine); g_free(data); } else visible = data; if (self->not_responding) { data = visible; if (self->kill_level > 0) visible = g_strdup_printf("%s - [%s]", data, _("Killing...")); else visible = g_strdup_printf("%s - [%s]", data, _("Not Responding")); g_free(data); } OBT_PROP_SETS(self->window, NET_WM_VISIBLE_ICON_NAME, visible); self->icon_title = visible; } void client_update_strut(ObClient *self) { guint num; guint32 *data; gboolean got = FALSE; StrutPartial strut; if (OBT_PROP_GETA32(self->window, NET_WM_STRUT_PARTIAL, CARDINAL, &data, &num)) { if (num == 12) { got = TRUE; STRUT_PARTIAL_SET(strut, data[0], data[2], data[1], data[3], data[4], data[5], data[8], data[9], data[6], data[7], data[10], data[11]); } g_free(data); } if (!got && OBT_PROP_GETA32(self->window, NET_WM_STRUT, CARDINAL, &data, &num)) { if (num == 4) { const Rect *a; got = TRUE; /* use the screen's width/height */ a = screen_physical_area_all_monitors(); STRUT_PARTIAL_SET(strut, data[0], data[2], data[1], data[3], a->y, a->y + a->height - 1, a->x, a->x + a->width - 1, a->y, a->y + a->height - 1, a->x, a->x + a->width - 1); } g_free(data); } if (!got) STRUT_PARTIAL_SET(strut, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); if (!PARTIAL_STRUT_EQUAL(strut, self->strut)) { self->strut = strut; /* updating here is pointless while we're being mapped cuz we're not in the client list yet */ if (self->frame) screen_update_areas(); } } void client_update_icons(ObClient *self) { guint num; guint32 *data; guint w, h, i, j; RrImage *img; img = NULL; /* grab the server, because we might be setting the window's icon and we don't want them to set it in between and we overwrite their own icon */ grab_server(TRUE); if (OBT_PROP_GETA32(self->window, NET_WM_ICON, CARDINAL, &data, &num)) { /* figure out how many valid icons are in here */ i = 0; while (i + 2 < num) { /* +2 is to make sure there is a w and h */ w = data[i++]; h = data[i++]; /* watch for the data being too small for the specified size, or for zero sized icons. */ if (i + w*h > num || w == 0 || h == 0) { i += w*h; continue; } /* convert it to the right bit order for ObRender */ for (j = 0; j < w*h; ++j) data[i+j] = (((data[i+j] >> 24) & 0xff) << RrDefaultAlphaOffset) + (((data[i+j] >> 16) & 0xff) << RrDefaultRedOffset) + (((data[i+j] >> 8) & 0xff) << RrDefaultGreenOffset) + (((data[i+j] >> 0) & 0xff) << RrDefaultBlueOffset); /* add it to the image cache as an original */ if (!img) img = RrImageNewFromData(ob_rr_icons, &data[i], w, h); else RrImageAddFromData(img, &data[i], w, h); i += w*h; } g_free(data); } /* if we didn't find an image from the NET_WM_ICON stuff, then try the legacy X hints */ if (!img) { XWMHints *hints; if ((hints = XGetWMHints(obt_display, self->window))) { if (hints->flags & IconPixmapHint) { gboolean xicon; obt_display_ignore_errors(TRUE); xicon = RrPixmapToRGBA(ob_rr_inst, hints->icon_pixmap, (hints->flags & IconMaskHint ? hints->icon_mask : None), (gint*)&w, (gint*)&h, &data); obt_display_ignore_errors(FALSE); if (xicon) { if (w > 0 && h > 0) { if (!img) img = RrImageNewFromData(ob_rr_icons, data, w, h); else RrImageAddFromData(img, data, w, h); } g_free(data); } } XFree(hints); } } /* set the client's icons to be whatever we found */ RrImageUnref(self->icon_set); self->icon_set = img; /* if the client has no icon at all, then we set a default icon onto it. but, if it has parents, then one of them will have an icon already */ if (!self->icon_set && !self->parents) { RrPixel32 *icon = ob_rr_theme->def_win_icon; gulong *ldata; /* use a long here to satisfy OBT_PROP_SETA32 */ w = ob_rr_theme->def_win_icon_w; h = ob_rr_theme->def_win_icon_h; ldata = g_new(gulong, w*h+2); ldata[0] = w; ldata[1] = h; for (i = 0; i < w*h; ++i) ldata[i+2] = (((icon[i] >> RrDefaultAlphaOffset) & 0xff) << 24) + (((icon[i] >> RrDefaultRedOffset) & 0xff) << 16) + (((icon[i] >> RrDefaultGreenOffset) & 0xff) << 8) + (((icon[i] >> RrDefaultBlueOffset) & 0xff) << 0); OBT_PROP_SETA32(self->window, NET_WM_ICON, CARDINAL, ldata, w*h+2); g_free(ldata); } else if (self->frame) /* don't draw the icon empty if we're just setting one now anyways, we'll get the property change any second */ frame_adjust_icon(self->frame); grab_server(FALSE); } void client_update_icon_geometry(ObClient *self) { guint num; guint32 *data; RECT_SET(self->icon_geometry, 0, 0, 0, 0); if (OBT_PROP_GETA32(self->window, NET_WM_ICON_GEOMETRY, CARDINAL, &data, &num)) { if (num == 4) /* don't let them set it with an area < 0 */ RECT_SET(self->icon_geometry, data[0], data[1], MAX(data[2],0), MAX(data[3],0)); g_free(data); } } static void client_get_session_ids(ObClient *self) { guint32 leader; gboolean got; gchar *s; gchar **ss; if (!OBT_PROP_GET32(self->window, WM_CLIENT_LEADER, WINDOW, &leader)) leader = None; /* get the SM_CLIENT_ID */ if (leader && leader != self->window) OBT_PROP_GETS_XPCS(leader, SM_CLIENT_ID, &self->sm_client_id); else OBT_PROP_GETS_XPCS(self->window, SM_CLIENT_ID, &self->sm_client_id); /* get the WM_CLASS (name and class). make them "" if they are not provided */ got = OBT_PROP_GETSS_TYPE(self->window, WM_CLASS, STRING_NO_CC, &ss); if (got) { if (ss[0]) { self->name = g_strdup(ss[0]); if (ss[1]) self->class = g_strdup(ss[1]); } g_strfreev(ss); } if (self->name == NULL) self->name = g_strdup(""); if (self->class == NULL) self->class = g_strdup(""); /* get the WM_CLASS (name and class) from the group leader. make them "" if they are not provided */ if (leader) got = OBT_PROP_GETSS_TYPE(leader, WM_CLASS, STRING_NO_CC, &ss); else got = FALSE; if (got) { if (ss[0]) { self->group_name = g_strdup(ss[0]); if (ss[1]) self->group_class = g_strdup(ss[1]); } g_strfreev(ss); } if (self->group_name == NULL) self->group_name = g_strdup(""); if (self->group_class == NULL) self->group_class = g_strdup(""); /* get the WM_WINDOW_ROLE. make it "" if it is not provided */ got = OBT_PROP_GETS_XPCS(self->window, WM_WINDOW_ROLE, &s); if (got) self->role = s; else self->role = g_strdup(""); /* get the WM_COMMAND */ got = FALSE; if (leader) got = OBT_PROP_GETSS(leader, WM_COMMAND, &ss); if (!got) got = OBT_PROP_GETSS(self->window, WM_COMMAND, &ss); if (got) { /* merge/mash them all together */ gchar *merge = NULL; gint i; for (i = 0; ss[i]; ++i) { gchar *tmp = merge; if (merge) merge = g_strconcat(merge, ss[i], NULL); else merge = g_strconcat(ss[i], NULL); g_free(tmp); } g_strfreev(ss); self->wm_command = merge; } /* get the WM_CLIENT_MACHINE */ got = FALSE; if (leader) got = OBT_PROP_GETS(leader, WM_CLIENT_MACHINE, &s); if (!got) got = OBT_PROP_GETS(self->window, WM_CLIENT_MACHINE, &s); if (got) { gchar localhost[128]; guint32 pid; gethostname(localhost, 127); localhost[127] = '\0'; if (strcmp(localhost, s) != 0) self->client_machine = s; else g_free(s); /* see if it has the PID set too (the PID requires that the WM_CLIENT_MACHINE be set) */ if (OBT_PROP_GET32(self->window, NET_WM_PID, CARDINAL, &pid)) self->pid = pid; } } const gchar *client_type_to_string(ObClient *self) { const gchar *type; switch (self->type) { case OB_CLIENT_TYPE_NORMAL: type = "normal"; break; case OB_CLIENT_TYPE_DIALOG: type = "dialog"; break; case OB_CLIENT_TYPE_UTILITY: type = "utility"; break; case OB_CLIENT_TYPE_MENU: type = "menu"; break; case OB_CLIENT_TYPE_TOOLBAR: type = "toolbar"; break; case OB_CLIENT_TYPE_SPLASH: type = "splash"; break; case OB_CLIENT_TYPE_DESKTOP: type = "desktop"; break; case OB_CLIENT_TYPE_DOCK: type = "dock"; break; } return type; } /*! Save the properties used for app matching rules, as seen by Openbox when the window mapped, so that users can still access them later if the app changes them */ static void client_save_app_rule_values(ObClient *self) { OBT_PROP_SETS(self->window, OB_APP_ROLE, self->role); OBT_PROP_SETS(self->window, OB_APP_NAME, self->name); OBT_PROP_SETS(self->window, OB_APP_CLASS, self->class); OBT_PROP_SETS(self->window, OB_APP_GROUP_NAME, self->group_name); OBT_PROP_SETS(self->window, OB_APP_GROUP_CLASS, self->group_class); OBT_PROP_SETS(self->window, OB_APP_TITLE, self->original_title); OBT_PROP_SETS(self->window, OB_APP_TYPE, client_type_to_string(self)); } static void client_change_wm_state(ObClient *self) { gulong state[2]; glong old; old = self->wmstate; if (self->shaded || self->iconic || (self->desktop != DESKTOP_ALL && self->desktop != screen_desktop)) { self->wmstate = IconicState; } else self->wmstate = NormalState; if (old != self->wmstate) { OBT_PROP_MSG(ob_screen, self->window, KDE_WM_CHANGE_STATE, self->wmstate, 1, 0, 0, 0); state[0] = self->wmstate; state[1] = None; OBT_PROP_SETA32(self->window, WM_STATE, WM_STATE, state, 2); } } static void client_change_state(ObClient *self) { gulong netstate[12]; guint num; num = 0; if (self->modal) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_MODAL); if (self->shaded) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_SHADED); if (self->iconic) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_HIDDEN); if (self->skip_taskbar) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_SKIP_TASKBAR); if (self->skip_pager) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_SKIP_PAGER); if (self->fullscreen) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_FULLSCREEN); if (self->max_vert) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_VERT); if (self->max_horz) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_HORZ); if (self->above) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_ABOVE); if (self->below) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_BELOW); if (self->demands_attention) netstate[num++] = OBT_PROP_ATOM(NET_WM_STATE_DEMANDS_ATTENTION); if (self->undecorated) netstate[num++] = OBT_PROP_ATOM(OB_WM_STATE_UNDECORATED); OBT_PROP_SETA32(self->window, NET_WM_STATE, ATOM, netstate, num); if (self->frame) frame_adjust_state(self->frame); } ObClient *client_search_focus_tree(ObClient *self) { GSList *it; ObClient *ret; for (it = self->transients; it; it = g_slist_next(it)) { if (client_focused(it->data)) return it->data; if ((ret = client_search_focus_tree(it->data))) return ret; } return NULL; } ObClient *client_search_focus_tree_full(ObClient *self) { if (self->parents) { GSList *it; for (it = self->parents; it; it = g_slist_next(it)) { ObClient *c = it->data; if ((c = client_search_focus_tree_full(c))) return c; } return NULL; } else { /* this function checks the whole tree, the client_search_focus_tree does not, so we need to check this window */ if (client_focused(self)) return self; return client_search_focus_tree(self); } } ObClient *client_search_focus_group_full(ObClient *self) { GSList *it; if (self->group) { for (it = self->group->members; it; it = g_slist_next(it)) { ObClient *c = it->data; if (client_focused(c)) return c; if ((c = client_search_focus_tree(it->data))) return c; } } else if (client_focused(self)) return self; return NULL; } gboolean client_has_parent(ObClient *self) { return self->parents != NULL; } gboolean client_has_children(ObClient *self) { return self->transients != NULL; } gboolean client_is_oldfullscreen(const ObClient *self, const Rect *area) { const Rect *monitor, *allmonitors; /* No decorations and fills the monitor = oldskool fullscreen. But not for maximized windows. */ if (self->decorations || self->max_horz || self->max_vert) return FALSE; monitor = screen_physical_area_monitor(screen_find_monitor(area)); allmonitors = screen_physical_area_all_monitors(); return (RECT_EQUAL(*area, *monitor) || RECT_EQUAL(*area, *allmonitors)); } static ObStackingLayer calc_layer(ObClient *self) { ObStackingLayer l; if (self->type == OB_CLIENT_TYPE_DESKTOP) l = OB_STACKING_LAYER_DESKTOP; else if (self->type == OB_CLIENT_TYPE_DOCK) { if (self->below) l = OB_STACKING_LAYER_NORMAL; else l = OB_STACKING_LAYER_ABOVE; } else if ((self->fullscreen || client_is_oldfullscreen(self, &self->area)) && /* you are fullscreen while you or your children are focused.. */ (client_focused(self) || client_search_focus_tree(self) || /* you can be fullscreen if you're on another desktop */ (self->desktop != screen_desktop && self->desktop != DESKTOP_ALL) || /* and you can also be fullscreen if the focused client is on another monitor, or nothing else is focused */ (!focus_client || client_monitor(focus_client) != client_monitor(self)))) l = OB_STACKING_LAYER_FULLSCREEN; else if (self->above) l = OB_STACKING_LAYER_ABOVE; else if (self->below) l = OB_STACKING_LAYER_BELOW; else l = OB_STACKING_LAYER_NORMAL; return l; } static void client_calc_layer_recursive(ObClient *self, ObClient *orig, ObStackingLayer min) { ObStackingLayer old, own; GSList *it; old = self->layer; own = calc_layer(self); self->layer = MAX(own, min); if (self->layer != old) { stacking_remove(CLIENT_AS_WINDOW(self)); stacking_add_nonintrusive(CLIENT_AS_WINDOW(self)); } /* we've been restacked */ self->visited = TRUE; for (it = self->transients; it; it = g_slist_next(it)) client_calc_layer_recursive(it->data, orig, self->layer); } static void client_calc_layer_internal(ObClient *self) { GSList *sit; /* transients take on the layer of their parents */ sit = client_search_all_top_parents(self); for (; sit; sit = g_slist_next(sit)) client_calc_layer_recursive(sit->data, self, 0); } void client_calc_layer(ObClient *self) { GList *it; /* skip over stuff above fullscreen layer */ for (it = stacking_list; it; it = g_list_next(it)) if (window_layer(it->data) <= OB_STACKING_LAYER_FULLSCREEN) break; /* find the windows in the fullscreen layer, and mark them not-visited */ for (; it; it = g_list_next(it)) { if (window_layer(it->data) < OB_STACKING_LAYER_FULLSCREEN) break; else if (WINDOW_IS_CLIENT(it->data)) WINDOW_AS_CLIENT(it->data)->visited = FALSE; } client_calc_layer_internal(self); /* skip over stuff above fullscreen layer */ for (it = stacking_list; it; it = g_list_next(it)) if (window_layer(it->data) <= OB_STACKING_LAYER_FULLSCREEN) break; /* now recalc any windows in the fullscreen layer which have not had their layer recalced already */ for (; it; it = g_list_next(it)) { if (window_layer(it->data) < OB_STACKING_LAYER_FULLSCREEN) break; else if (WINDOW_IS_CLIENT(it->data) && !WINDOW_AS_CLIENT(it->data)->visited) client_calc_layer_internal(it->data); } } gboolean client_should_show(ObClient *self) { if (self->iconic) return FALSE; if (client_normal(self) && screen_showing_desktop()) return FALSE; if (self->desktop == screen_desktop || self->desktop == DESKTOP_ALL) return TRUE; return FALSE; } gboolean client_show(ObClient *self) { gboolean show = FALSE; if (client_should_show(self)) { /* replay pending pointer event before showing the window, in case it should be going to something under the window */ mouse_replay_pointer(); frame_show(self->frame); show = TRUE; /* According to the ICCCM (sec 4.1.3.1) when a window is not visible, it needs to be in IconicState. This includes when it is on another desktop! */ client_change_wm_state(self); } return show; } gboolean client_hide(ObClient *self) { gboolean hide = FALSE; if (!client_should_show(self)) { /* We don't need to ignore enter events here. The window can hide/iconify in 3 different ways: 1 - through an x message. in this case we ignore all enter events caused by responding to the x message (unless underMouse) 2 - by a keyboard action. in this case we ignore all enter events caused by the action 3 - by a mouse action. in this case they are doing stuff with the mouse and focus _should_ move. Also in action_end, we simulate an enter event that can't be ignored so trying to ignore them is futile in case 3 anyways */ /* replay pending pointer event before hiding the window, in case it should be going to the window */ mouse_replay_pointer(); frame_hide(self->frame); hide = TRUE; /* According to the ICCCM (sec 4.1.3.1) when a window is not visible, it needs to be in IconicState. This includes when it is on another desktop! */ client_change_wm_state(self); } return hide; } void client_showhide(ObClient *self) { if (!client_show(self)) client_hide(self); } gboolean client_normal(ObClient *self) { return ! (self->type == OB_CLIENT_TYPE_DESKTOP || self->type == OB_CLIENT_TYPE_DOCK || self->type == OB_CLIENT_TYPE_SPLASH); } gboolean client_helper(ObClient *self) { return (self->type == OB_CLIENT_TYPE_UTILITY || self->type == OB_CLIENT_TYPE_MENU || self->type == OB_CLIENT_TYPE_TOOLBAR); } gboolean client_occupies_space(ObClient *self) { return !(self->type == OB_CLIENT_TYPE_DESKTOP || self->type == OB_CLIENT_TYPE_SPLASH); } gboolean client_mouse_focusable(ObClient *self) { return !(self->type == OB_CLIENT_TYPE_MENU || self->type == OB_CLIENT_TYPE_TOOLBAR || self->type == OB_CLIENT_TYPE_SPLASH || self->type == OB_CLIENT_TYPE_DOCK); } gboolean client_enter_focusable(ObClient *self) { /* you can focus desktops but it shouldn't on enter */ return (client_mouse_focusable(self) && self->type != OB_CLIENT_TYPE_DESKTOP); } static void client_apply_startup_state(ObClient *self, gint x, gint y, gint w, gint h) { /* save the states that we are going to apply */ gboolean iconic = self->iconic; gboolean fullscreen = self->fullscreen; gboolean undecorated = self->undecorated; gboolean shaded = self->shaded; gboolean demands_attention = self->demands_attention; gboolean max_horz = self->max_horz; gboolean max_vert = self->max_vert; Rect oldarea; gint l; /* turn them all off in the client, so they won't affect the window being placed */ self->iconic = self->fullscreen = self->undecorated = self->shaded = self->demands_attention = self->max_horz = self->max_vert = FALSE; /* move the client to its placed position, or it it's already there, generate a ConfigureNotify telling the client where it is. do this after adjusting the frame. otherwise it gets all weird and clients don't work right do this before applying the states so they have the correct pre-max/pre-fullscreen values */ client_try_configure(self, &x, &y, &w, &h, &l, &l, FALSE); ob_debug("placed window 0x%x at %d, %d with size %d x %d", self->window, x, y, w, h); /* save the area, and make it where it should be for the premax stuff */ oldarea = self->area; RECT_SET(self->area, x, y, w, h); /* apply the states. these are in a carefully crafted order.. */ if (iconic) client_iconify(self, TRUE, FALSE, TRUE); if (undecorated) client_set_undecorated(self, TRUE); if (shaded) client_shade(self, TRUE); if (demands_attention) client_hilite(self, TRUE); if (max_vert && max_horz) client_maximize(self, TRUE, 0); else if (max_vert) client_maximize(self, TRUE, 2); else if (max_horz) client_maximize(self, TRUE, 1); /* fullscreen removes the ability to apply other states */ if (fullscreen) client_fullscreen(self, TRUE); /* make sure client_setup_decor_and_functions() is called at least once */ client_setup_decor_and_functions(self, FALSE); /* if the window hasn't been configured yet, then do so now, in fact the x,y,w,h may _not_ be the same as the area rect, which can end up meaning that the client isn't properly moved/resized by the fullscreen function pho can cause this because it maps at size of the screen but not 0,0 so openbox moves it on screen to 0,0 (thus x,y=0,0 and area.x,y don't). then fullscreen'ing makes it go to 0,0 which it thinks it already is at cuz thats where the pre-fullscreen will be. however the actual area is not, so this needs to be called even if we have fullscreened/maxed */ self->area = oldarea; client_configure(self, x, y, w, h, FALSE, TRUE, FALSE); /* nothing to do for the other states: skip_taskbar skip_pager modal above below */ } void client_gravity_resize_w(ObClient *self, gint *x, gint oldw, gint neww) { /* these should be the current values. this is for when you're not moving, just resizing */ g_assert(*x == self->area.x); g_assert(oldw == self->area.width); /* horizontal */ switch (self->gravity) { default: case NorthWestGravity: case WestGravity: case SouthWestGravity: case StaticGravity: case ForgetGravity: break; case NorthGravity: case CenterGravity: case SouthGravity: *x -= (neww - oldw) / 2; break; case NorthEastGravity: case EastGravity: case SouthEastGravity: *x -= neww - oldw; break; } } void client_gravity_resize_h(ObClient *self, gint *y, gint oldh, gint newh) { /* these should be the current values. this is for when you're not moving, just resizing */ g_assert(*y == self->area.y); g_assert(oldh == self->area.height); /* vertical */ switch (self->gravity) { default: case NorthWestGravity: case NorthGravity: case NorthEastGravity: case StaticGravity: case ForgetGravity: break; case WestGravity: case CenterGravity: case EastGravity: *y -= (newh - oldh) / 2; break; case SouthWestGravity: case SouthGravity: case SouthEastGravity: *y -= newh - oldh; break; } } void client_try_configure(ObClient *self, gint *x, gint *y, gint *w, gint *h, gint *logicalw, gint *logicalh, gboolean user) { Rect desired = {*x, *y, *w, *h}; frame_rect_to_frame(self->frame, &desired); /* make the frame recalculate its dimensions n shit without changing anything visible for real, this way the constraints below can work with the updated frame dimensions. */ frame_adjust_area(self->frame, FALSE, TRUE, TRUE); /* cap any X windows at the size of an unsigned short */ *w = MIN(*w, (gint)G_MAXUSHORT - self->frame->size.left - self->frame->size.right); *h = MIN(*h, (gint)G_MAXUSHORT - self->frame->size.top - self->frame->size.bottom); /* gets the frame's position */ frame_client_gravity(self->frame, x, y); /* these positions are frame positions, not client positions */ /* set the size and position if fullscreen */ if (self->fullscreen) { const Rect *a; guint i; i = screen_find_monitor(&desired); a = screen_physical_area_monitor(i); *x = a->x; *y = a->y; *w = a->width; *h = a->height; user = FALSE; /* ignore if the client can't be moved/resized when it is fullscreening */ } else if (self->max_horz || self->max_vert) { Rect *a; guint i; /* use all possible struts when maximizing to the full screen */ i = screen_find_monitor(&desired); a = screen_area(self->desktop, i, (self->max_horz && self->max_vert ? NULL : &desired)); /* set the size and position if maximized */ if (self->max_horz) { *x = a->x; *w = a->width - self->frame->size.left - self->frame->size.right; } if (self->max_vert) { *y = a->y; *h = a->height - self->frame->size.top - self->frame->size.bottom; } user = FALSE; /* ignore if the client can't be moved/resized when it is maximizing */ g_slice_free(Rect, a); } /* gets the client's position */ frame_frame_gravity(self->frame, x, y); /* work within the preferred sizes given by the window, these may have changed rather than it's requested width and height, so always run through this code */ { gint basew, baseh, minw, minh; gint incw, inch, maxw, maxh; gfloat minratio, maxratio; incw = self->size_inc.width; inch = self->size_inc.height; minratio = self->fullscreen || (self->max_horz && self->max_vert) ? 0 : self->min_ratio; maxratio = self->fullscreen || (self->max_horz && self->max_vert) ? 0 : self->max_ratio; /* base size is substituted with min size if not specified */ if (self->base_size.width >= 0 || self->base_size.height >= 0) { basew = self->base_size.width; baseh = self->base_size.height; } else { basew = self->min_size.width; baseh = self->min_size.height; } /* min size is substituted with base size if not specified */ if (self->min_size.width || self->min_size.height) { minw = self->min_size.width; minh = self->min_size.height; } else { minw = self->base_size.width; minh = self->base_size.height; } /* This comment is no longer true */ /* if this is a user-requested resize, then check against min/max sizes */ /* smaller than min size or bigger than max size? */ if (*w > self->max_size.width) *w = self->max_size.width; if (*w < minw) *w = minw; if (*h > self->max_size.height) *h = self->max_size.height; if (*h < minh) *h = minh; *w -= basew; *h -= baseh; /* the sizes to used for maximized */ maxw = *w; maxh = *h; /* keep to the increments */ *w /= incw; *h /= inch; /* you cannot resize to nothing */ if (basew + *w < 1) *w = 1 - basew; if (baseh + *h < 1) *h = 1 - baseh; /* save the logical size */ *logicalw = incw > 1 ? *w : *w + basew; *logicalh = inch > 1 ? *h : *h + baseh; *w *= incw; *h *= inch; /* if maximized/fs then don't use the size increments */ if (self->fullscreen || self->max_horz) *w = maxw; if (self->fullscreen || self->max_vert) *h = maxh; *w += basew; *h += baseh; /* adjust the height to match the width for the aspect ratios. for this, min size is not substituted for base size ever. */ if (self->base_size.width >= 0 && self->base_size.height >= 0) { *w -= self->base_size.width; *h -= self->base_size.height; } if (minratio) if (*h * minratio > *w) { *h = (gint)(*w / minratio); /* you cannot resize to nothing */ if (*h < 1) { *h = 1; *w = (gint)(*h * minratio); } } if (maxratio) if (*h * maxratio < *w) { *h = (gint)(*w / maxratio); /* you cannot resize to nothing */ if (*h < 1) { *h = 1; *w = (gint)(*h * minratio); } } if (self->base_size.width >= 0 && self->base_size.height >= 0) { *w += self->base_size.width; *h += self->base_size.height; } } /* these override the above states! if you cant move you can't move! */ if (user) { if (!(self->functions & OB_CLIENT_FUNC_MOVE)) { *x = self->area.x; *y = self->area.y; } if (!(self->functions & OB_CLIENT_FUNC_RESIZE)) { *w = self->area.width; *h = self->area.height; } } g_assert(*w > 0); g_assert(*h > 0); } void client_configure(ObClient *self, gint x, gint y, gint w, gint h, gboolean user, gboolean final, gboolean force_reply) { Rect oldframe, oldclient; gboolean send_resize_client; gboolean moved = FALSE, resized = FALSE, rootmoved = FALSE; gboolean fmoved, fresized; guint fdecor = self->frame->decorations; gboolean fhorz = self->frame->max_horz; gboolean fvert = self->frame->max_vert; gint logicalw, logicalh; /* find the new x, y, width, and height (and logical size) */ client_try_configure(self, &x, &y, &w, &h, &logicalw, &logicalh, user); /* set the logical size if things changed */ if (!(w == self->area.width && h == self->area.height)) SIZE_SET(self->logical_size, logicalw, logicalh); /* figure out if we moved or resized or what */ moved = (x != self->area.x || y != self->area.y); resized = (w != self->area.width || h != self->area.height); oldframe = self->frame->area; oldclient = self->area; RECT_SET(self->area, x, y, w, h); /* for app-requested resizes, always resize if 'resized' is true. for user-requested ones, only resize if final is true, or when resizing in redraw mode */ send_resize_client = ((!user && resized) || (user && (final || (resized && config_resize_redraw)))); /* if the client is enlarging, then resize the client before the frame */ if (send_resize_client && (w > oldclient.width || h > oldclient.height)) { XMoveResizeWindow(obt_display, self->window, self->frame->size.left, self->frame->size.top, MAX(w, oldclient.width), MAX(h, oldclient.height)); frame_adjust_client_area(self->frame); } /* find the frame's dimensions and move/resize it */ fmoved = moved; fresized = resized; /* if decorations changed, then readjust everything for the frame */ if (self->decorations != fdecor || self->max_horz != fhorz || self->max_vert != fvert) { fmoved = fresized = TRUE; } /* adjust the frame */ if (fmoved || fresized) { gulong ignore_start; if (!user) ignore_start = event_start_ignore_all_enters(); /* replay pending pointer event before move the window, in case it would change what window gets the event */ mouse_replay_pointer(); frame_adjust_area(self->frame, fmoved, fresized, FALSE); if (!user) event_end_ignore_all_enters(ignore_start); } if (!user || final) { gint oldrx = self->root_pos.x; gint oldry = self->root_pos.y; /* we have reset the client to 0 border width, so don't include it in these coords */ POINT_SET(self->root_pos, self->frame->area.x + self->frame->size.left - self->border_width, self->frame->area.y + self->frame->size.top - self->border_width); if (self->root_pos.x != oldrx || self->root_pos.y != oldry) rootmoved = TRUE; } /* This is kinda tricky and should not be changed.. let me explain! When user = FALSE, then the request is coming from the application itself, and we are more strict about when to send a synthetic ConfigureNotify. We strictly follow the rules of the ICCCM sec 4.1.5 in this case (or send one if force_reply is true) When user = TRUE, then the request is coming from "us", like when we maximize a window or something. In this case we are more lenient. We used to follow the same rules as above, but _Java_ Swing can't handle this. So just to appease Swing, when user = TRUE, we always send a synthetic ConfigureNotify to give the window its root coordinates. Lastly, if force_reply is TRUE, we always send a ConfigureNotify, which is needed during a resize with XSYNCronization. */ if ((!user && !resized && (rootmoved || force_reply)) || (user && ((!resized && force_reply) || (final && rootmoved)))) { XEvent event; event.type = ConfigureNotify; event.xconfigure.display = obt_display; event.xconfigure.event = self->window; event.xconfigure.window = self->window; ob_debug("Sending ConfigureNotify to %s for %d,%d %dx%d", self->title, self->root_pos.x, self->root_pos.y, w, h); /* root window real coords */ event.xconfigure.x = self->root_pos.x; event.xconfigure.y = self->root_pos.y; event.xconfigure.width = w; event.xconfigure.height = h; event.xconfigure.border_width = self->border_width; event.xconfigure.above = None; event.xconfigure.override_redirect = FALSE; XSendEvent(event.xconfigure.display, event.xconfigure.window, FALSE, StructureNotifyMask, &event); } /* if the client is shrinking, then resize the frame before the client. both of these resize sections may run, because the top one only resizes in the direction that is growing */ if (send_resize_client && (w <= oldclient.width || h <= oldclient.height)) { frame_adjust_client_area(self->frame); XMoveResizeWindow(obt_display, self->window, self->frame->size.left, self->frame->size.top, w, h); } XFlush(obt_display); /* if it moved between monitors, then this can affect the stacking layer of this window or others - for fullscreen windows. also if it changed to/from oldschool fullscreen then its layer may change watch out tho, don't try change stacking stuff if the window is no longer being managed ! */ if (self->managed && (screen_find_monitor(&self->frame->area) != screen_find_monitor(&oldframe) || (final && (client_is_oldfullscreen(self, &oldclient) != client_is_oldfullscreen(self, &self->area))))) { client_calc_layer(self); } } void client_fullscreen(ObClient *self, gboolean fs) { gint x, y, w, h; if (!(self->functions & OB_CLIENT_FUNC_FULLSCREEN) || /* can't */ self->fullscreen == fs) return; /* already done */ self->fullscreen = fs; client_change_state(self); /* change the state hints on the client */ if (fs) { self->pre_fullscreen_area = self->area; self->pre_fullscreen_max_horz = self->max_horz; self->pre_fullscreen_max_vert = self->max_vert; /* if the window is maximized, its area isn't all that meaningful. save its premax area instead. */ if (self->max_horz) { self->pre_fullscreen_area.x = self->pre_max_area.x; self->pre_fullscreen_area.width = self->pre_max_area.width; } if (self->max_vert) { self->pre_fullscreen_area.y = self->pre_max_area.y; self->pre_fullscreen_area.height = self->pre_max_area.height; } /* these will help configure_full figure out where to fullscreen the window */ x = self->area.x; y = self->area.y; w = self->area.width; h = self->area.height; } else { g_assert(self->pre_fullscreen_area.width > 0 && self->pre_fullscreen_area.height > 0); self->max_horz = self->pre_fullscreen_max_horz; self->max_vert = self->pre_fullscreen_max_vert; if (self->max_horz) { self->pre_max_area.x = self->pre_fullscreen_area.x; self->pre_max_area.width = self->pre_fullscreen_area.width; } if (self->max_vert) { self->pre_max_area.y = self->pre_fullscreen_area.y; self->pre_max_area.height = self->pre_fullscreen_area.height; } x = self->pre_fullscreen_area.x; y = self->pre_fullscreen_area.y; w = self->pre_fullscreen_area.width; h = self->pre_fullscreen_area.height; RECT_SET(self->pre_fullscreen_area, 0, 0, 0, 0); } ob_debug("Window %s going fullscreen (%d)", self->title, self->fullscreen); if (fs) { /* make sure the window is on some monitor */ client_find_onscreen(self, &x, &y, w, h, FALSE); } client_setup_decor_and_functions(self, FALSE); client_move_resize(self, x, y, w, h); /* and adjust our layer/stacking. do this after resizing the window, and applying decorations, because windows which fill the screen are considered "fullscreen" and it affects their layer */ client_calc_layer(self); if (fs) { /* try focus us when we go into fullscreen mode */ client_focus(self); } } static void client_iconify_recursive(ObClient *self, gboolean iconic, gboolean curdesk, gboolean hide_animation) { GSList *it; gboolean changed = FALSE; if (self->iconic != iconic) { ob_debug("%sconifying window: 0x%lx", (iconic ? "I" : "Uni"), self->window); if (iconic) { /* don't let non-normal windows iconify along with their parents or whatever */ if (client_normal(self)) { self->iconic = iconic; /* update the focus lists.. iconic windows go to the bottom of the list. this will also call focus_cycle_addremove(). */ focus_order_to_bottom(self); changed = TRUE; } } else { self->iconic = iconic; if (curdesk && self->desktop != screen_desktop && self->desktop != DESKTOP_ALL) client_set_desktop(self, screen_desktop, FALSE, FALSE); /* this puts it after the current focused window, this will also cause focus_cycle_addremove() to be called for the client */ focus_order_like_new(self); changed = TRUE; } } if (changed) { client_change_state(self); if (config_animate_iconify && !hide_animation) frame_begin_iconify_animation(self->frame, iconic); /* do this after starting the animation so it doesn't flash */ client_showhide(self); } /* iconify all direct transients, and deiconify all transients (non-direct too) */ for (it = self->transients; it; it = g_slist_next(it)) if (it->data != self) if (client_is_direct_child(self, it->data) || !iconic) client_iconify_recursive(it->data, iconic, curdesk, hide_animation); } void client_iconify(ObClient *self, gboolean iconic, gboolean curdesk, gboolean hide_animation) { if (self->functions & OB_CLIENT_FUNC_ICONIFY || !iconic) { /* move up the transient chain as far as possible first */ self = client_search_top_direct_parent(self); client_iconify_recursive(self, iconic, curdesk, hide_animation); } } void client_maximize(ObClient *self, gboolean max, gint dir) { gint x, y, w, h; g_assert(dir == 0 || dir == 1 || dir == 2); if (!(self->functions & OB_CLIENT_FUNC_MAXIMIZE) && max) return;/* can't */ /* check if already done */ if (max) { if (dir == 0 && self->max_horz && self->max_vert) return; if (dir == 1 && self->max_horz) return; if (dir == 2 && self->max_vert) return; } else { if (dir == 0 && !self->max_horz && !self->max_vert) return; if (dir == 1 && !self->max_horz) return; if (dir == 2 && !self->max_vert) return; } /* these will help configure_full figure out which screen to fill with the window */ x = self->area.x; y = self->area.y; w = self->area.width; h = self->area.height; if (max) { if ((dir == 0 || dir == 1) && !self->max_horz) { /* horz */ RECT_SET(self->pre_max_area, self->area.x, self->pre_max_area.y, self->area.width, self->pre_max_area.height); } if ((dir == 0 || dir == 2) && !self->max_vert) { /* vert */ RECT_SET(self->pre_max_area, self->pre_max_area.x, self->area.y, self->pre_max_area.width, self->area.height); } } else { if ((dir == 0 || dir == 1) && self->max_horz) { /* horz */ g_assert(self->pre_max_area.width > 0); x = self->pre_max_area.x; w = self->pre_max_area.width; RECT_SET(self->pre_max_area, 0, self->pre_max_area.y, 0, self->pre_max_area.height); } if ((dir == 0 || dir == 2) && self->max_vert) { /* vert */ g_assert(self->pre_max_area.height > 0); y = self->pre_max_area.y; h = self->pre_max_area.height; RECT_SET(self->pre_max_area, self->pre_max_area.x, 0, self->pre_max_area.width, 0); } } if (dir == 0 || dir == 1) /* horz */ self->max_horz = max; if (dir == 0 || dir == 2) /* vert */ self->max_vert = max; if (max) { /* make sure the window is on some monitor */ client_find_onscreen(self, &x, &y, w, h, FALSE); } client_change_state(self); /* change the state hints on the client */ client_setup_decor_and_functions(self, FALSE); client_move_resize(self, x, y, w, h); } void client_shade(ObClient *self, gboolean shade) { if ((!(self->functions & OB_CLIENT_FUNC_SHADE) && shade) || /* can't shade */ self->shaded == shade) return; /* already done */ self->shaded = shade; client_change_state(self); client_change_wm_state(self); /* the window is being hidden/shown */ /* resize the frame to just the titlebar */ frame_adjust_area(self->frame, FALSE, TRUE, FALSE); } static void client_ping_event(ObClient *self, gboolean dead) { if (self->not_responding != dead) { self->not_responding = dead; client_update_title(self); if (dead) /* the client isn't responding, so ask to kill it */ client_prompt_kill(self); else { /* it came back to life ! */ if (self->kill_prompt) { prompt_unref(self->kill_prompt); self->kill_prompt = NULL; } self->kill_level = 0; } } } void client_close(ObClient *self) { if (!(self->functions & OB_CLIENT_FUNC_CLOSE)) return; /* if closing an internal obprompt, that is just cancelling it */ if (self->prompt) { prompt_cancel(self->prompt); return; } /* in the case that the client provides no means to requesting that it close, we just kill it */ if (!self->delete_window) /* don't use client_kill(), we should only kill based on PID in response to a lack of PING replies */ XKillClient(obt_display, self->window); else { /* request the client to close with WM_DELETE_WINDOW */ OBT_PROP_MSG_TO(self->window, self->window, WM_PROTOCOLS, OBT_PROP_ATOM(WM_DELETE_WINDOW), event_time(), 0, 0, 0, NoEventMask); /* we're trying to close the window, so see if it is responding. if it is not, then we will let them kill the window */ if (self->ping) ping_start(self, client_ping_event); /* if we already know the window isn't responding (maybe they clicked no in the kill dialog but it hasn't come back to life), then show the kill dialog */ if (self->not_responding) client_prompt_kill(self); } } #define OB_KILL_RESULT_NO 0 #define OB_KILL_RESULT_YES 1 static gboolean client_kill_requested(ObPrompt *p, gint result, gpointer data) { ObClient *self = data; if (result == OB_KILL_RESULT_YES) client_kill(self); return TRUE; /* call the cleanup func */ } static void client_kill_cleanup(ObPrompt *p, gpointer data) { ObClient *self = data; g_assert(p == self->kill_prompt); prompt_unref(self->kill_prompt); self->kill_prompt = NULL; } static void client_prompt_kill(ObClient *self) { /* check if we're already prompting */ if (!self->kill_prompt) { ObPromptAnswer answers[] = { { 0, OB_KILL_RESULT_NO }, { 0, OB_KILL_RESULT_YES } }; gchar *m; const gchar *y, *title; title = self->original_title; if (title[0] == '\0') { /* empty string, so use its parent */ ObClient *p = client_search_top_direct_parent(self); if (p) title = p->original_title; } if (client_on_localhost(self)) { const gchar *sig; if (self->kill_level == 0) sig = "terminate"; else sig = "kill"; m = g_strdup_printf (_("The window \"%s\" does not seem to be responding. Do you want to force it to exit by sending the %s signal?"), title, sig); y = _("End Process"); } else { m = g_strdup_printf (_("The window \"%s\" does not seem to be responding. Do you want to disconnect it from the X server?"), title); y = _("Disconnect"); } /* set the dialog buttons' text */ answers[0].text = _("Cancel"); /* "no" */ answers[1].text = y; /* "yes" */ self->kill_prompt = prompt_new(m, NULL, answers, sizeof(answers)/sizeof(answers[0]), OB_KILL_RESULT_NO, /* default = no */ OB_KILL_RESULT_NO, /* cancel = no */ client_kill_requested, client_kill_cleanup, self); g_free(m); } prompt_show(self->kill_prompt, self, TRUE); } void client_kill(ObClient *self) { /* don't kill our own windows */ if (self->prompt) return; if (client_on_localhost(self) && self->pid) { /* running on the local host */ if (self->kill_level == 0) { ob_debug("killing window 0x%x with pid %lu, with SIGTERM", self->window, self->pid); kill(self->pid, SIGTERM); ++self->kill_level; /* show that we're trying to kill it */ client_update_title(self); } else { ob_debug("killing window 0x%x with pid %lu, with SIGKILL", self->window, self->pid); kill(self->pid, SIGKILL); /* kill -9 */ } } else { /* running on a remote host */ XKillClient(obt_display, self->window); } } void client_hilite(ObClient *self, gboolean hilite) { if (self->demands_attention == hilite) return; /* no change */ /* don't allow focused windows to hilite */ self->demands_attention = hilite && !client_focused(self); if (self->frame != NULL) { /* if we're mapping, just set the state */ if (self->demands_attention) { frame_flash_start(self->frame); /* if the window is on another desktop then raise it and make it the most recently used window */ if (self->desktop != screen_desktop && self->desktop != DESKTOP_ALL) { stacking_raise(CLIENT_AS_WINDOW(self)); focus_order_to_top(self); } } else frame_flash_stop(self->frame); client_change_state(self); } } static void client_set_desktop_recursive(ObClient *self, guint target, gboolean donthide, gboolean dontraise) { guint old; GSList *it; if (target != self->desktop && self->type != OB_CLIENT_TYPE_DESKTOP) { ob_debug("Setting desktop %u", target+1); g_assert(target < screen_num_desktops || target == DESKTOP_ALL); old = self->desktop; self->desktop = target; OBT_PROP_SET32(self->window, NET_WM_DESKTOP, CARDINAL, target); /* the frame can display the current desktop state */ frame_adjust_state(self->frame); /* 'move' the window to the new desktop */ if (!donthide) client_hide(self); client_show(self); /* raise if it was not already on the desktop */ if (old != DESKTOP_ALL && !dontraise) stacking_raise(CLIENT_AS_WINDOW(self)); if (STRUT_EXISTS(self->strut)) screen_update_areas(); else /* the new desktop's geometry may be different, so we may need to resize, for example if we are maximized */ client_reconfigure(self, FALSE); focus_cycle_addremove(self, FALSE); } /* move all transients */ for (it = self->transients; it; it = g_slist_next(it)) if (it->data != self) if (client_is_direct_child(self, it->data)) client_set_desktop_recursive(it->data, target, donthide, dontraise); } void client_set_desktop(ObClient *self, guint target, gboolean donthide, gboolean dontraise) { self = client_search_top_direct_parent(self); client_set_desktop_recursive(self, target, donthide, dontraise); focus_cycle_addremove(NULL, TRUE); } gboolean client_is_direct_child(ObClient *parent, ObClient *child) { while (child != parent && (child = client_direct_parent(child))); return child == parent; } ObClient *client_search_modal_child(ObClient *self) { GSList *it; ObClient *ret; for (it = self->transients; it; it = g_slist_next(it)) { ObClient *c = it->data; if ((ret = client_search_modal_child(c))) return ret; if (c->modal) return c; } return NULL; } struct ObClientFindDestroyUnmap { Window window; gint ignore_unmaps; }; static gboolean find_destroy_unmap(XEvent *e, gpointer data) { struct ObClientFindDestroyUnmap *find = data; if (e->type == DestroyNotify) return e->xdestroywindow.window == find->window; if (e->type == UnmapNotify && e->xunmap.window == find->window) /* ignore the first $find->ignore_unmaps$ many unmap events */ return --find->ignore_unmaps < 0; return FALSE; } gboolean client_validate(ObClient *self) { struct ObClientFindDestroyUnmap find; XSync(obt_display, FALSE); /* get all events on the server */ find.window = self->window; find.ignore_unmaps = self->ignore_unmaps; if (xqueue_exists_local(find_destroy_unmap, &find)) return FALSE; return TRUE; } void client_set_wm_state(ObClient *self, glong state) { if (state == self->wmstate) return; /* no change */ switch (state) { case IconicState: client_iconify(self, TRUE, TRUE, FALSE); break; case NormalState: client_iconify(self, FALSE, TRUE, FALSE); break; } } void client_set_state(ObClient *self, Atom action, glong data1, glong data2) { gboolean shaded = self->shaded; gboolean fullscreen = self->fullscreen; gboolean undecorated = self->undecorated; gboolean max_horz = self->max_horz; gboolean max_vert = self->max_vert; gboolean modal = self->modal; gboolean iconic = self->iconic; gboolean demands_attention = self->demands_attention; gboolean above = self->above; gboolean below = self->below; gint i; gboolean value; if (!(action == OBT_PROP_ATOM(NET_WM_STATE_ADD) || action == OBT_PROP_ATOM(NET_WM_STATE_REMOVE) || action == OBT_PROP_ATOM(NET_WM_STATE_TOGGLE))) /* an invalid action was passed to the client message, ignore it */ return; for (i = 0; i < 2; ++i) { Atom state = i == 0 ? data1 : data2; if (!state) continue; /* if toggling, then pick whether we're adding or removing */ if (action == OBT_PROP_ATOM(NET_WM_STATE_TOGGLE)) { if (state == OBT_PROP_ATOM(NET_WM_STATE_MODAL)) value = modal; else if (state == OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_VERT)) value = self->max_vert; else if (state == OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_HORZ)) value = self->max_horz; else if (state == OBT_PROP_ATOM(NET_WM_STATE_SHADED)) value = shaded; else if (state == OBT_PROP_ATOM(NET_WM_STATE_SKIP_TASKBAR)) value = self->skip_taskbar; else if (state == OBT_PROP_ATOM(NET_WM_STATE_SKIP_PAGER)) value = self->skip_pager; else if (state == OBT_PROP_ATOM(NET_WM_STATE_HIDDEN)) value = self->iconic; else if (state == OBT_PROP_ATOM(NET_WM_STATE_FULLSCREEN)) value = fullscreen; else if (state == OBT_PROP_ATOM(NET_WM_STATE_ABOVE)) value = self->above; else if (state == OBT_PROP_ATOM(NET_WM_STATE_BELOW)) value = self->below; else if (state == OBT_PROP_ATOM(NET_WM_STATE_DEMANDS_ATTENTION)) value = self->demands_attention; else if (state == OBT_PROP_ATOM(OB_WM_STATE_UNDECORATED)) value = undecorated; else g_assert_not_reached(); action = value ? OBT_PROP_ATOM(NET_WM_STATE_REMOVE) : OBT_PROP_ATOM(NET_WM_STATE_ADD); } value = action == OBT_PROP_ATOM(NET_WM_STATE_ADD); if (state == OBT_PROP_ATOM(NET_WM_STATE_MODAL)) { modal = value; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_VERT)) { max_vert = value; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_HORZ)) { max_horz = value; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_SHADED)) { shaded = value; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_SKIP_TASKBAR)) { self->skip_taskbar = value; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_SKIP_PAGER)) { self->skip_pager = value; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_HIDDEN)) { iconic = value; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_FULLSCREEN)) { fullscreen = value; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_ABOVE)) { above = value; /* only unset below when setting above, otherwise you can't get to the normal layer */ if (value) below = FALSE; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_BELOW)) { /* and vice versa */ if (value) above = FALSE; below = value; } else if (state == OBT_PROP_ATOM(NET_WM_STATE_DEMANDS_ATTENTION)){ demands_attention = value; } else if (state == OBT_PROP_ATOM(OB_WM_STATE_UNDECORATED)) { undecorated = value; } } if (max_horz != self->max_horz || max_vert != self->max_vert) { if (max_horz != self->max_horz && max_vert != self->max_vert) { /* toggling both */ if (max_horz == max_vert) { /* both going the same way */ client_maximize(self, max_horz, 0); } else { client_maximize(self, max_horz, 1); client_maximize(self, max_vert, 2); } } else { /* toggling one */ if (max_horz != self->max_horz) client_maximize(self, max_horz, 1); else client_maximize(self, max_vert, 2); } } /* change fullscreen state before shading, as it will affect if the window can shade or not */ if (fullscreen != self->fullscreen) client_fullscreen(self, fullscreen); if (shaded != self->shaded) client_shade(self, shaded); if (undecorated != self->undecorated) client_set_undecorated(self, undecorated); if (above != self->above || below != self->below) { self->above = above; self->below = below; client_calc_layer(self); } if (modal != self->modal) { self->modal = modal; /* when a window changes modality, then its stacking order with its transients needs to change */ stacking_raise(CLIENT_AS_WINDOW(self)); /* it also may get focused. if something is focused that shouldn't be focused anymore, then move the focus */ if (focus_client && client_focus_target(focus_client) != focus_client) client_focus(focus_client); } if (iconic != self->iconic) client_iconify(self, iconic, FALSE, FALSE); if (demands_attention != self->demands_attention) client_hilite(self, demands_attention); client_change_state(self); /* change the hint to reflect these changes */ focus_cycle_addremove(self, TRUE); } ObClient *client_focus_target(ObClient *self) { ObClient *child = NULL; child = client_search_modal_child(self); if (child) return child; return self; } gboolean client_can_focus(ObClient *self) { /* choose the correct target */ self = client_focus_target(self); if (!self->frame->visible) return FALSE; if (!(self->can_focus || self->focus_notify)) return FALSE; return TRUE; } gboolean client_focus(ObClient *self) { if (!client_validate(self)) return FALSE; /* we might not focus this window, so if we have modal children which would be focused instead, bring them to this desktop */ client_bring_modal_windows(self); /* choose the correct target */ self = client_focus_target(self); if (!client_can_focus(self)) { ob_debug_type(OB_DEBUG_FOCUS, "Client %s can't be focused", self->title); return FALSE; } /* if we have helper windows they should be there with the window */ client_bring_helper_windows(self); ob_debug_type(OB_DEBUG_FOCUS, "Focusing client \"%s\" (0x%x) at time %u", self->title, self->window, event_time()); /* if using focus_delay, stop the timer now so that focus doesn't go moving on us */ event_halt_focus_delay(); obt_display_ignore_errors(TRUE); if (self->can_focus) { /* This can cause a BadMatch error with CurrentTime, or if an app passed in a bad time for _NET_WM_ACTIVE_WINDOW. */ XSetInputFocus(obt_display, self->window, RevertToPointerRoot, event_time()); } if (self->focus_notify) { XEvent ce; ce.xclient.type = ClientMessage; ce.xclient.message_type = OBT_PROP_ATOM(WM_PROTOCOLS); ce.xclient.display = obt_display; ce.xclient.window = self->window; ce.xclient.format = 32; ce.xclient.data.l[0] = OBT_PROP_ATOM(WM_TAKE_FOCUS); ce.xclient.data.l[1] = event_time(); ce.xclient.data.l[2] = 0l; ce.xclient.data.l[3] = 0l; ce.xclient.data.l[4] = 0l; XSendEvent(obt_display, self->window, FALSE, NoEventMask, &ce); } obt_display_ignore_errors(FALSE); ob_debug_type(OB_DEBUG_FOCUS, "Error focusing? %d", obt_display_error_occured); return !obt_display_error_occured; } static void client_present(ObClient *self, gboolean here, gboolean raise, gboolean unshade) { if (client_normal(self) && screen_showing_desktop()) screen_show_desktop(FALSE, self); if (self->iconic) client_iconify(self, FALSE, here, FALSE); if (self->desktop != DESKTOP_ALL && self->desktop != screen_desktop) { if (here) client_set_desktop(self, screen_desktop, FALSE, TRUE); else screen_set_desktop(self->desktop, FALSE); } else if (!self->frame->visible) /* if its not visible for other reasons, then don't mess with it */ return; if (self->shaded && unshade) client_shade(self, FALSE); if (raise) stacking_raise(CLIENT_AS_WINDOW(self)); client_focus(self); } /* this function exists to map to the net_active_window message in the ewmh */ void client_activate(ObClient *self, gboolean desktop, gboolean here, gboolean raise, gboolean unshade, gboolean user) { self = client_focus_target(self); if (client_can_steal_focus(self, desktop, user, event_time(), CurrentTime)) client_present(self, here, raise, unshade); else client_hilite(self, TRUE); } static void client_bring_windows_recursive(ObClient *self, guint desktop, gboolean helpers, gboolean modals, gboolean iconic) { GSList *it; for (it = self->transients; it; it = g_slist_next(it)) client_bring_windows_recursive(it->data, desktop, helpers, modals, iconic); if (((helpers && client_helper(self)) || (modals && self->modal)) && (!screen_compare_desktops(self->desktop, desktop) || (iconic && self->iconic))) { if (iconic && self->iconic) client_iconify(self, FALSE, TRUE, FALSE); else client_set_desktop(self, desktop, FALSE, FALSE); } } void client_bring_helper_windows(ObClient *self) { client_bring_windows_recursive(self, self->desktop, TRUE, FALSE, FALSE); } void client_bring_modal_windows(ObClient *self) { client_bring_windows_recursive(self, self->desktop, FALSE, TRUE, TRUE); } gboolean client_focused(ObClient *self) { return self == focus_client; } RrImage* client_icon(ObClient *self) { RrImage *ret = NULL; if (self->icon_set) ret = self->icon_set; else if (self->parents) { GSList *it; for (it = self->parents; it && !ret; it = g_slist_next(it)) ret = client_icon(it->data); } if (!ret) ret = client_default_icon; return ret; } void client_set_layer(ObClient *self, gint layer) { if (layer < 0) { self->below = TRUE; self->above = FALSE; } else if (layer == 0) { self->below = self->above = FALSE; } else { self->below = FALSE; self->above = TRUE; } client_calc_layer(self); client_change_state(self); /* reflect this in the state hints */ } void client_set_undecorated(ObClient *self, gboolean undecorated) { if (self->undecorated != undecorated && /* don't let it undecorate if the function is missing, but let it redecorate */ (self->functions & OB_CLIENT_FUNC_UNDECORATE || !undecorated)) { self->undecorated = undecorated; client_setup_decor_and_functions(self, TRUE); client_change_state(self); /* reflect this in the state hints */ } } guint client_monitor(ObClient *self) { return screen_find_monitor(&self->frame->area); } ObClient *client_direct_parent(ObClient *self) { if (!self->parents) return NULL; if (self->transient_for_group) return NULL; return self->parents->data; } ObClient *client_search_top_direct_parent(ObClient *self) { ObClient *p; while ((p = client_direct_parent(self))) self = p; return self; } static GSList *client_search_all_top_parents_internal(ObClient *self, gboolean bylayer, ObStackingLayer layer) { GSList *ret; ObClient *p; /* move up the direct transient chain as far as possible */ while ((p = client_direct_parent(self)) && (!bylayer || p->layer == layer)) self = p; if (!self->parents) ret = g_slist_prepend(NULL, self); else ret = g_slist_copy(self->parents); return ret; } GSList *client_search_all_top_parents(ObClient *self) { return client_search_all_top_parents_internal(self, FALSE, 0); } GSList *client_search_all_top_parents_layer(ObClient *self) { return client_search_all_top_parents_internal(self, TRUE, self->layer); } ObClient *client_search_focus_parent(ObClient *self) { GSList *it; for (it = self->parents; it; it = g_slist_next(it)) if (client_focused(it->data)) return it->data; return NULL; } ObClient *client_search_focus_parent_full(ObClient *self) { GSList *it; ObClient *ret = NULL; for (it = self->parents; it; it = g_slist_next(it)) { if (client_focused(it->data)) ret = it->data; else ret = client_search_focus_parent_full(it->data); if (ret) break; } return ret; } ObClient *client_search_parent(ObClient *self, ObClient *search) { GSList *it; for (it = self->parents; it; it = g_slist_next(it)) if (it->data == search) return search; return NULL; } ObClient *client_search_transient(ObClient *self, ObClient *search) { GSList *sit; for (sit = self->transients; sit; sit = g_slist_next(sit)) { if (sit->data == search) return search; if (client_search_transient(sit->data, search)) return search; } return NULL; } static void detect_edge(Rect area, ObDirection dir, gint my_head, gint my_size, gint my_edge_start, gint my_edge_size, gint *dest, gboolean *near_edge) { gint edge_start, edge_size, head, tail; gboolean skip_head = FALSE, skip_tail = FALSE; switch (dir) { case OB_DIRECTION_NORTH: case OB_DIRECTION_SOUTH: edge_start = area.x; edge_size = area.width; break; case OB_DIRECTION_EAST: case OB_DIRECTION_WEST: edge_start = area.y; edge_size = area.height; break; default: g_assert_not_reached(); } /* do we collide with this window? */ if (!RANGES_INTERSECT(my_edge_start, my_edge_size, edge_start, edge_size)) return; switch (dir) { case OB_DIRECTION_NORTH: head = RECT_BOTTOM(area); tail = RECT_TOP(area); break; case OB_DIRECTION_SOUTH: head = RECT_TOP(area); tail = RECT_BOTTOM(area); break; case OB_DIRECTION_WEST: head = RECT_RIGHT(area); tail = RECT_LEFT(area); break; case OB_DIRECTION_EAST: head = RECT_LEFT(area); tail = RECT_RIGHT(area); break; default: g_assert_not_reached(); } switch (dir) { case OB_DIRECTION_NORTH: case OB_DIRECTION_WEST: /* check if our window is past the head of this window */ if (my_head <= head + 1) skip_head = TRUE; /* check if our window's tail is past the tail of this window */ if (my_head + my_size - 1 <= tail) skip_tail = TRUE; /* check if the head of this window is closer than the previously chosen edge (take into account that the previously chosen edge might have been a tail, not a head) */ if (head + (*near_edge ? 0 : my_size) <= *dest) skip_head = TRUE; /* check if the tail of this window is closer than the previously chosen edge (take into account that the previously chosen edge might have been a head, not a tail) */ if (tail - (!*near_edge ? 0 : my_size) <= *dest) skip_tail = TRUE; break; case OB_DIRECTION_SOUTH: case OB_DIRECTION_EAST: /* check if our window is past the head of this window */ if (my_head >= head - 1) skip_head = TRUE; /* check if our window's tail is past the tail of this window */ if (my_head - my_size + 1 >= tail) skip_tail = TRUE; /* check if the head of this window is closer than the previously chosen edge (take into account that the previously chosen edge might have been a tail, not a head) */ if (head - (*near_edge ? 0 : my_size) >= *dest) skip_head = TRUE; /* check if the tail of this window is closer than the previously chosen edge (take into account that the previously chosen edge might have been a head, not a tail) */ if (tail + (!*near_edge ? 0 : my_size) >= *dest) skip_tail = TRUE; break; default: g_assert_not_reached(); } ob_debug("my head %d size %d", my_head, my_size); ob_debug("head %d tail %d dest %d", head, tail, *dest); if (!skip_head) { ob_debug("using near edge %d", head); *dest = head; *near_edge = TRUE; } else if (!skip_tail) { ob_debug("using far edge %d", tail); *dest = tail; *near_edge = FALSE; } } void client_find_edge_directional(ObClient *self, ObDirection dir, gint my_head, gint my_size, gint my_edge_start, gint my_edge_size, gint *dest, gboolean *near_edge) { GList *it; Rect *a; Rect dock_area; gint edge; guint i; a = screen_area(self->desktop, SCREEN_AREA_ALL_MONITORS, &self->frame->area); switch (dir) { case OB_DIRECTION_NORTH: edge = RECT_TOP(*a) - 1; break; case OB_DIRECTION_SOUTH: edge = RECT_BOTTOM(*a) + 1; break; case OB_DIRECTION_EAST: edge = RECT_RIGHT(*a) + 1; break; case OB_DIRECTION_WEST: edge = RECT_LEFT(*a) - 1; break; default: g_assert_not_reached(); } /* default to the far edge, then narrow it down */ *dest = edge; *near_edge = TRUE; /* search for edges of monitors */ for (i = 0; i < screen_num_monitors; ++i) { Rect *area = screen_area(self->desktop, i, NULL); detect_edge(*area, dir, my_head, my_size, my_edge_start, my_edge_size, dest, near_edge); g_slice_free(Rect, area); } /* search for edges of clients */ for (it = client_list; it; it = g_list_next(it)) { ObClient *cur = it->data; /* skip windows to not bump into */ if (cur == self) continue; if (cur->iconic) continue; if (self->desktop != cur->desktop && cur->desktop != DESKTOP_ALL && cur->desktop != screen_desktop) continue; ob_debug("trying window %s", cur->title); detect_edge(cur->frame->area, dir, my_head, my_size, my_edge_start, my_edge_size, dest, near_edge); } dock_get_area(&dock_area); detect_edge(dock_area, dir, my_head, my_size, my_edge_start, my_edge_size, dest, near_edge); g_slice_free(Rect, a); } void client_find_move_directional(ObClient *self, ObDirection dir, gint *x, gint *y) { gint head, size; gint e, e_start, e_size; gboolean near; switch (dir) { case OB_DIRECTION_EAST: head = RECT_RIGHT(self->frame->area); size = self->frame->area.width; e_start = RECT_TOP(self->frame->area); e_size = self->frame->area.height; break; case OB_DIRECTION_WEST: head = RECT_LEFT(self->frame->area); size = self->frame->area.width; e_start = RECT_TOP(self->frame->area); e_size = self->frame->area.height; break; case OB_DIRECTION_NORTH: head = RECT_TOP(self->frame->area); size = self->frame->area.height; e_start = RECT_LEFT(self->frame->area); e_size = self->frame->area.width; break; case OB_DIRECTION_SOUTH: head = RECT_BOTTOM(self->frame->area); size = self->frame->area.height; e_start = RECT_LEFT(self->frame->area); e_size = self->frame->area.width; break; default: g_assert_not_reached(); } client_find_edge_directional(self, dir, head, size, e_start, e_size, &e, &near); *x = self->frame->area.x; *y = self->frame->area.y; switch (dir) { case OB_DIRECTION_EAST: if (near) e -= self->frame->area.width; else e++; *x = e; break; case OB_DIRECTION_WEST: if (near) e++; else e -= self->frame->area.width; *x = e; break; case OB_DIRECTION_NORTH: if (near) e++; else e -= self->frame->area.height; *y = e; break; case OB_DIRECTION_SOUTH: if (near) e -= self->frame->area.height; else e++; *y = e; break; default: g_assert_not_reached(); } frame_frame_gravity(self->frame, x, y); } void client_find_resize_directional(ObClient *self, ObDirection side, ObClientDirectionalResizeType resize_type, gint *x, gint *y, gint *w, gint *h) { gint head; gint e, e_start, e_size, delta; gboolean near; ObDirection dir; gboolean grow; switch (resize_type) { case CLIENT_RESIZE_GROW: grow = TRUE; break; case CLIENT_RESIZE_GROW_IF_NOT_ON_EDGE: grow = TRUE; break; case CLIENT_RESIZE_SHRINK: grow = FALSE; break; } switch (side) { case OB_DIRECTION_EAST: head = RECT_RIGHT(self->frame->area); switch (resize_type) { case CLIENT_RESIZE_GROW: head += self->size_inc.width - 1; break; case CLIENT_RESIZE_GROW_IF_NOT_ON_EDGE: head -= 1; break; case CLIENT_RESIZE_SHRINK: break; } e_start = RECT_TOP(self->frame->area); e_size = self->frame->area.height; dir = grow ? OB_DIRECTION_EAST : OB_DIRECTION_WEST; break; case OB_DIRECTION_WEST: head = RECT_LEFT(self->frame->area); switch (resize_type) { case CLIENT_RESIZE_GROW: head -= self->size_inc.width - 1; break; case CLIENT_RESIZE_GROW_IF_NOT_ON_EDGE: head += 1; break; case CLIENT_RESIZE_SHRINK: break; } e_start = RECT_TOP(self->frame->area); e_size = self->frame->area.height; dir = grow ? OB_DIRECTION_WEST : OB_DIRECTION_EAST; break; case OB_DIRECTION_NORTH: head = RECT_TOP(self->frame->area); switch (resize_type) { case CLIENT_RESIZE_GROW: head -= self->size_inc.height - 1; break; case CLIENT_RESIZE_GROW_IF_NOT_ON_EDGE: head += 1; break; case CLIENT_RESIZE_SHRINK: break; } e_start = RECT_LEFT(self->frame->area); e_size = self->frame->area.width; dir = grow ? OB_DIRECTION_NORTH : OB_DIRECTION_SOUTH; break; case OB_DIRECTION_SOUTH: head = RECT_BOTTOM(self->frame->area); switch (resize_type) { case CLIENT_RESIZE_GROW: head += self->size_inc.height - 1; break; case CLIENT_RESIZE_GROW_IF_NOT_ON_EDGE: head -= 1; break; case CLIENT_RESIZE_SHRINK: break; } e_start = RECT_LEFT(self->frame->area); e_size = self->frame->area.width; dir = grow ? OB_DIRECTION_SOUTH : OB_DIRECTION_NORTH; break; default: g_assert_not_reached(); } ob_debug("head %d dir %d", head, dir); client_find_edge_directional(self, dir, head, 1, e_start, e_size, &e, &near); ob_debug("edge %d", e); *x = self->frame->area.x; *y = self->frame->area.y; *w = self->frame->area.width; *h = self->frame->area.height; switch (side) { case OB_DIRECTION_EAST: if (grow == near) --e; delta = e - RECT_RIGHT(self->frame->area); *w += delta; break; case OB_DIRECTION_WEST: if (grow == near) ++e; delta = RECT_LEFT(self->frame->area) - e; *x -= delta; *w += delta; break; case OB_DIRECTION_NORTH: if (grow == near) ++e; delta = RECT_TOP(self->frame->area) - e; *y -= delta; *h += delta; break; case OB_DIRECTION_SOUTH: if (grow == near) --e; delta = e - RECT_BOTTOM(self->frame->area); *h += delta; break; default: g_assert_not_reached(); } frame_frame_gravity(self->frame, x, y); *w -= self->frame->size.left + self->frame->size.right; *h -= self->frame->size.top + self->frame->size.bottom; } ObClient* client_under_pointer(void) { gint x, y; GList *it; ObClient *ret = NULL; if (screen_pointer_pos(&x, &y)) { for (it = stacking_list; it; it = g_list_next(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = WINDOW_AS_CLIENT(it->data); if (c->frame->visible && /* check the desktop, this is done during desktop switching and windows are shown/hidden status is not reliable */ (c->desktop == screen_desktop || c->desktop == DESKTOP_ALL) && /* ignore all animating windows */ !frame_iconify_animating(c->frame) && RECT_CONTAINS(c->frame->area, x, y)) { ret = c; break; } } } } return ret; } gboolean client_has_group_siblings(ObClient *self) { return self->group && self->group->members->next; } gboolean client_has_relative(ObClient *self) { return client_has_parent(self) || client_has_group_siblings(self) || client_has_children(self); } /*! Returns TRUE if the client is running on the same machine as Openbox */ gboolean client_on_localhost(ObClient *self) { return self->client_machine == NULL; } openbox-3.6.1/openbox/client.h0000644000175300001440000007440112426440016013221 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __client_h #define __client_h #include "misc.h" #include "mwm.h" #include "geom.h" #include "stacking.h" #include "window.h" #include "obrender/color.h" #include #include #ifdef HAVE_SYS_TYPES_H # include /* for pid_t */ #endif struct _ObFrame; struct _ObGroup; struct _ObSessionState; struct _ObPrompt; typedef struct _ObClient ObClient; /*! Possible window types */ typedef enum { OB_CLIENT_TYPE_DESKTOP, /*!< A desktop (bottom-most window) */ OB_CLIENT_TYPE_DOCK, /*!< A dock bar/panel window */ OB_CLIENT_TYPE_TOOLBAR, /*!< A toolbar window, pulled off an app */ OB_CLIENT_TYPE_MENU, /*!< An unpinned menu from an app */ OB_CLIENT_TYPE_UTILITY, /*!< A small utility window such as a palette */ OB_CLIENT_TYPE_SPLASH, /*!< A splash screen window */ OB_CLIENT_TYPE_DIALOG, /*!< A dialog window */ OB_CLIENT_TYPE_NORMAL /*!< A normal application window */ } ObClientType; /*! The things the user can do to the client window */ typedef enum { OB_CLIENT_FUNC_RESIZE = 1 << 0, /*!< Allow user resizing */ OB_CLIENT_FUNC_MOVE = 1 << 1, /*!< Allow user moving */ OB_CLIENT_FUNC_ICONIFY = 1 << 2, /*!< Allow to be iconified */ OB_CLIENT_FUNC_MAXIMIZE = 1 << 3, /*!< Allow to be maximized */ OB_CLIENT_FUNC_SHADE = 1 << 4, /*!< Allow to be shaded */ OB_CLIENT_FUNC_FULLSCREEN = 1 << 5, /*!< Allow to be made fullscreen */ OB_CLIENT_FUNC_CLOSE = 1 << 6, /*!< Allow to be closed */ OB_CLIENT_FUNC_ABOVE = 1 << 7, /*!< Allow to be put in lower layer */ OB_CLIENT_FUNC_BELOW = 1 << 8, /*!< Allow to be put in higher layer */ OB_CLIENT_FUNC_UNDECORATE = 1 << 9 /*!< Allow to be undecorated */ } ObFunctions; struct _ObClient { ObWindow obwin; Window window; gboolean managed; /*! If this client is managing an ObPrompt window, then this is set to the prompt */ struct _ObPrompt *prompt; /*! The window's decorations. NULL while the window is being managed! */ struct _ObFrame *frame; /*! The number of unmap events to ignore on the window */ gint ignore_unmaps; /*! The id of the group the window belongs to */ struct _ObGroup *group; /*! Saved session data to apply to this client */ struct _ObSessionState *session; /*! Whether or not the client is a transient window. It may or may not have parents when this is true. */ gboolean transient; /*! Whether or not the client is transient for its group */ gboolean transient_for_group; /*! The client which are parents of this client */ GSList *parents; /*! The clients which are transients (children) of this client */ GSList *transients; /*! The desktop on which the window resides (0xffffffff for all desktops) */ guint desktop; /*! The startup id for the startup-notification protocol. This will be NULL if a startup id is not set. */ gchar *startup_id; /*! Normal window title */ gchar *title; /*! Window title when iconified */ gchar *icon_title; /*! The title as requested by the client, without any of our own changes */ gchar *original_title; /*! Hostname of machine running the client */ gchar *client_machine; /*! The command used to run the program. Pre-XSMP window identification. */ gchar *wm_command; /*! The PID of the process which owns the window */ pid_t pid; /*! The application that created the window */ gchar *name; /*! The class of the window, can used for grouping */ gchar *class; /*! The specified role of the window, used for identification */ gchar *role; /*! The application that created the window's group. */ gchar *group_name; /*! The class of the window's group, can used for grouping */ gchar *group_class; /*! The session client id for the window. *This can be NULL!* */ gchar *sm_client_id; /*! The type of window (what its function is) */ ObClientType type; /*! Position and size of the window This will not always be the actual position of the window on screen, it is, rather, the position requested by the client, to which the window's gravity is applied. */ Rect area; /*! Position of the client window relative to the root window */ Point root_pos; /*! Position and size of the window prior to being maximized */ Rect pre_max_area; /*! Position and size of the window prior to being fullscreened */ Rect pre_fullscreen_area; /*! Remember if the window was maximized before going fullscreen */ gboolean pre_fullscreen_max_horz, pre_fullscreen_max_vert; /*! The window's strut The strut defines areas of the screen that are marked off-bounds for window placement. In theory, where this window exists. */ StrutPartial strut; /*! The logical size of the window The "logical" size of the window is refers to the user's perception of the size of the window, and is the value that should be displayed to the user. For example, with xterms, this value it the number of characters being displayed in the terminal, instead of the number of pixels. */ Size logical_size; /*! Width of the border on the window. The window manager will set this to 0 while the window is being managed, but needs to restore it afterwards, so it is saved here. */ gint border_width; /*! The minimum aspect ratio the client window can be sized to. A value of 0 means this is ignored. */ gfloat min_ratio; /*! The maximum aspect ratio the client window can be sized to. A value of 0 means this is ignored. */ gfloat max_ratio; /*! The minimum size of the client window If the min is > the max, then the window is not resizable */ Size min_size; /*! The maximum size of the client window If the min is > the max, then the window is not resizable */ Size max_size; /*! The size of increments to resize the client window by */ Size size_inc; /*! The base size of the client window This value should be subtracted from the window's actual size when displaying its size to the user, or working with its min/max size */ Size base_size; /*! Window decoration and functionality hints */ ObMwmHints mwmhints; /*! The client's specified colormap */ Colormap colormap; /*! Where to place the decorated window in relation to the undecorated window */ gint gravity; /*! The state of the window, one of WithdrawnState, IconicState, or NormalState */ glong wmstate; /*! True if the client supports the delete_window protocol */ gboolean delete_window; /*! Was the window's position requested by the application or the user? if by the application, we force it completely onscreen, if by the user we only force it if it tries to go completely offscreen, if neither, we should place the window ourselves when it first appears */ guint positioned; /*! Was the window's size requested by the application or the user? If by the application we don't let it go outside the available area */ guint sized; /*! Can the window receive input focus? */ gboolean can_focus; /*! Notify the window when it receives focus? */ gboolean focus_notify; /*! Will the client respond to pings? */ gboolean ping; /*! Indicates if the client is trying to close but has stopped responding to pings */ gboolean not_responding; /*! A prompt shown when you are trying to close a client that is not responding. It asks if you want to kill the client */ struct _ObPrompt *kill_prompt; /*! We tried to close the window with a SIGTERM */ gint kill_level; #ifdef SYNC /*! The client wants to sync during resizes */ gboolean sync_request; /*! The XSync counter used for synchronizing during resizes */ guint32 sync_counter; /*! The value we're waiting for the counter to reach */ gulong sync_counter_value; #endif /*! The window uses shape extension to be non-rectangular? */ gboolean shaped; /*! The window uses shape extension to have non-rectangular input? */ gboolean shaped_input; /*! The window is modal, so it must be processed before any windows it is related to can be focused */ gboolean modal; /*! Only the window's titlebar is displayed */ gboolean shaded; /*! The window is iconified */ gboolean iconic; /*! The window is maximized to fill the screen vertically */ gboolean max_vert; /*! The window is maximized to fill the screen horizontally */ gboolean max_horz; /*! The window should not be displayed by pagers */ gboolean skip_pager; /*! The window should not be displayed by taskbars */ gboolean skip_taskbar; /*! The window is a 'fullscreen' window, and should be on top of all others */ gboolean fullscreen; /*! The window should be on top of other windows of the same type. above takes priority over below. */ gboolean above; /*! The window should be underneath other windows of the same type. above takes priority over below. */ gboolean below; /*! Demands attention flag */ gboolean demands_attention; /*! The urgent flag */ gboolean urgent; /*! The layer in which the window will be stacked, windows in lower layers are always below windows in higher layers. */ ObStackingLayer layer; /*! A bitmask of values in the ObFrameDecorations enum The values in the variable are the decorations that the client wants to be displayed around it. */ guint decorations; /*! A user option. When this is set to TRUE the client will not ever be decorated. */ gboolean undecorated; /*! A bitmask of values in the ObFunctions enum The values in the variable specify the ways in which the user is allowed to modify this window. */ guint functions; /* The window's icon, in a variety of shapes and sizes */ RrImage *icon_set; /*! Where the window should iconify to/from */ Rect icon_geometry; /*! A boolean used for algorithms which need to mark clients as visited */ gboolean visited; }; extern GList *client_list; void client_startup(gboolean reconfig); void client_shutdown(gboolean reconfig); typedef void (*ObClientCallback)(ObClient *client, gpointer data); /* Callback functions */ /*! Get notified when the client is unmanaged */ void client_add_destroy_notify(ObClientCallback func, gpointer data); void client_remove_destroy_notify(ObClientCallback func); void client_remove_destroy_notify_data(ObClientCallback func, gpointer data); /*! Manages a given window @param prompt This specifies an ObPrompt which is being managed. It is possible to manage Openbox-owned windows through this. */ void client_manage(Window win, struct _ObPrompt *prompt); /*! Unmanages all managed windows */ void client_unmanage_all(void); /*! Unmanages a given client */ void client_unmanage(ObClient *client); /*! This manages a window only so far as is needed to get it's decorations. This is used when you want to determine a window's decorations before it is mapped. Call client_fake_unmanage() with the returned client when you are done with it. */ ObClient *client_fake_manage(Window win); /*! Free the stuff created by client_fake_manage() */ void client_fake_unmanage(ObClient *self); /*! Sets the client list on the root window from the client_list */ void client_set_list(void); /*! Determines if the client should be shown or hidden currently. @return TRUE if it should be visible; otherwise, FALSE. */ gboolean client_should_show(ObClient *self); /*! Returns if the window should be treated as a normal window. Some windows (desktops, docks, splash screens) have special rules applied to them in a number of places regarding focus or user interaction. */ gboolean client_normal(ObClient *self); /*! Returns if the window is one of an application's helper windows (utilty, menu, etc) */ gboolean client_helper(ObClient *self); /*! Returns true if the window occupies space in the monitor conceptually, or false if it does not and its presence should be ignored when possible. */ gboolean client_occupies_space(ObClient *self); /*! Return if the client is a type which should be given focus from mouse presses on the *client* window. This doesn't affect clicking on the decorations. This doesn't count for focus cycling, different rules apply to that. */ gboolean client_mouse_focusable(ObClient *self); /*! Return if the client is a type which should be given focus from the mouse entering the window. This doesn't count for focus cycling, different rules apply to that. */ gboolean client_enter_focusable(ObClient *self); /* Returns if the window is focused */ gboolean client_focused(ObClient *self); /*! When the client is resized but not moved, figure out the new position for it based on its gravity: http://standards.freedesktop.org/wm-spec/wm-spec-1.4.html#id2512541 */ void client_gravity_resize_w(ObClient *self, gint *x, gint oldw, gint neww); /*! When the client is resized but not moved, figure out the new position for it based on its gravity: http://standards.freedesktop.org/wm-spec/wm-spec-1.4.html#id2512541 */ void client_gravity_resize_h(ObClient *self, gint *y, gint oldh, gint newh); /*! Convert a position/size from a given gravity to the client's true gravity, when the client is only resizing (the reference point doesn't move) */ void client_convert_gravity_resize(ObClient *self, gint gravity, gint *x, gint *y, gint w, gint h); #define client_move(self, x, y) \ client_configure(self, x, y, self->area.width, self->area.height, TRUE, TRUE,\ FALSE) #define client_resize(self, w, h) \ client_configure(self, self->area.x, self->area.y, w, h, TRUE, TRUE, FALSE) #define client_move_resize(self, x, y, w, h) \ client_configure(self, x, y, w, h, TRUE, TRUE, FALSE) #define client_reconfigure(self, force) \ client_configure(self, ((ObClient*)self)->area.x, ((ObClient*)self)->area.y, \ ((ObClient*)self)->area.width, \ ((ObClient*)self)->area.height, FALSE, TRUE, force) /*! Figure out where a window will end up and what size it will be if you told it to move/resize to these coordinates. These values are what client_configure will give the window. @param x The x coordiante of the new position for the client. @param y The y coordiante of the new position for the client. @param w The width component of the new size for the client. @param h The height component of the new size for the client. @param logicalw Returns the width component of the new logical width. This value is only returned when the new w or h calculated differ from the ones passed in. @param logicalh Returns the height component of the new logical height. This value is only returned when the new w or h calculated differ from the ones passed in. @param user Specifies whether this is a user-requested change or a program requested change. For program requested changes, the constraints are not checked. */ void client_try_configure(ObClient *self, gint *x, gint *y, gint *w, gint *h, gint *logicalw, gint *logicalh, gboolean user); /*! Move and/or resize the window. This also maintains things like the client's minsize, and size increments. @param x The x coordiante of the new position for the client. @param y The y coordiante of the new position for the client. @param w The width component of the new size for the client. @param h The height component of the new size for the client. @param user Specifies whether this is a user-requested change or a program requested change. For program requested changes, the constraints are not checked. @param final If user is true, then this should specify if this is a final configuration. e.g. Final should be FALSE if doing an interactive move/resize, and then be TRUE for the last call only. @param force_reply Send a ConfigureNotify to the client regardless of if the position/size changed. */ void client_configure(ObClient *self, gint x, gint y, gint w, gint h, gboolean user, gboolean final, gboolean force_reply); /*! Finds coordinates to keep a client on the screen. @param self The client @param x The x coord of the client, may be changed. @param y The y coord of the client, may be changed. @param w The width of the client. @param w The height of the client. @param rude Be rude about it. If false, it is only moved if it is entirely not visible. If true, then make sure the window is inside the struts if possible. @return true if the client was moved to be on-screen; false if not. */ gboolean client_find_onscreen(ObClient *self, gint *x, gint *y, gint w, gint h, gboolean rude); /*! Moves a client so that it is on screen if it is entirely out of the viewable screen. @param self The client to move @param rude Be rude about it. If false, it is only moved if it is entirely not visible. If true, then make sure the window is inside the struts if possible. */ void client_move_onscreen(ObClient *self, gboolean rude); /*! dir is either North, South, East or West. It can't be, for example, Northwest */ void client_find_edge_directional(ObClient *self, ObDirection dir, gint my_head, gint my_tail, gint my_edge_start, gint my_edge_size, gint *dest, gboolean *near_edge); void client_find_move_directional(ObClient *self, ObDirection dir, gint *x, gint *y); typedef enum { CLIENT_RESIZE_GROW, CLIENT_RESIZE_GROW_IF_NOT_ON_EDGE, CLIENT_RESIZE_SHRINK, } ObClientDirectionalResizeType; /*! Moves the client area passed in to grow/shrink the given edge. */ void client_find_resize_directional(ObClient *self, ObDirection side, ObClientDirectionalResizeType resize_type, gint *x, gint *y, gint *w, gint *h); /*! Fullscreen's or unfullscreen's the client window @param fs true if the window should be made fullscreen; false if it should be returned to normal state. */ void client_fullscreen(ObClient *self, gboolean fs); /*! Determine if the window, using the given client-area, would be considered as an "oldschool fullscreen" window, that is, if it is filling a whole monitor. */ gboolean client_is_oldfullscreen(const ObClient *self, const Rect *area); /*! Iconifies or uniconifies the client window @param iconic true if the window should be iconified; false if it should be restored. @param curdesk If iconic is FALSE, then this determines if the window will be uniconified to the current viewable desktop (true) or to its previous desktop (false) */ void client_iconify(ObClient *self, gboolean iconic, gboolean curdesk, gboolean hide_animation); /*! Maximize or unmaximize the client window @param max true if the window should be maximized; false if it should be returned to normal size. @param dir 0 to set both horz and vert, 1 to set horz, 2 to set vert. */ void client_maximize(ObClient *self, gboolean max, gint dir); /*! Shades or unshades the client window @param shade true if the window should be shaded; false if it should be unshaded. */ void client_shade(ObClient *self, gboolean shade); /*! Set a client window to have decorations or not */ void client_set_undecorated(ObClient *self, gboolean undecorated); /*! Hilite the window to make the user notice it */ void client_hilite(ObClient *self, gboolean hilite); /*! Request the client to close its window */ void client_close(ObClient *self); /*! Kill the client off violently */ void client_kill(ObClient *self); /*! Sends the window to the specified desktop @param donthide If TRUE, the window will not be shown/hidden after its desktop has been changed. Generally this should be FALSE. @param dontraise If TRUE, the window will not be raised. Generally this should be FALSE. */ void client_set_desktop(ObClient *self, guint target, gboolean donthide, gboolean dontraise); /*! Show the client if it should be shown. Returns if the window is shown. */ gboolean client_show(ObClient *self); /*! Show the client if it should be shown. Returns if the window is hidden. */ gboolean client_hide(ObClient *self); /*! Show the client if it should be shown, and hide it if it should be hidden. This is for example, when switching desktops. */ void client_showhide(ObClient *self); /*! Validate client, by making sure no Destroy or Unmap events exist in the event queue for the window. @return true if the client is valid; false if the client has already been unmapped/destroyed, and so is invalid. */ gboolean client_validate(ObClient *self); /*! Sets the wm_state to the specified value */ void client_set_wm_state(ObClient *self, glong state); /*! Adjusts the window's net_state This should not be called as part of the window mapping process! It is for use when updating the state post-mapping.
client_apply_startup_state is used to do the same things during the mapping process. */ void client_set_state(ObClient *self, Atom action, glong data1, glong data2); /* Given a ObClient, find the client that focus would actually be sent to if you wanted to give focus to the specified ObClient. Will return the same ObClient passed to it or another ObClient if appropriate. */ ObClient *client_focus_target(ObClient *self); /*! Returns what client_focus would return if passed the same client, but without focusing it or modifying the focus order lists. */ gboolean client_can_focus(ObClient *self); /*! Attempt to focus the client window */ gboolean client_focus(ObClient *self); /*! Activates the client for use, focusing, uniconifying it, etc. To be used when the user deliberately selects a window for use. @param desktop If true, and the window is on another desktop, it will still be activated. @param here If true, and the window is on another desktop, it will be moved to the current desktop, otherwise the desktop will switch to where the window is. @param raise If true, the client is brought to the front. @param unshade If true, the client is unshaded (if it is shaded) @param user If true, then a user action is what requested the activation; otherwise, it means an application requested it on its own */ void client_activate(ObClient *self, gboolean desktop, gboolean here, gboolean raise, gboolean unshade, gboolean user); /*! Bring all of its helper windows to its desktop. These are the utility and stuff windows. */ void client_bring_helper_windows(ObClient *self); /*! Bring all of its modal windows to its desktop. */ void client_bring_modal_windows(ObClient *self); /*! Calculates the stacking layer for the client window */ void client_calc_layer(ObClient *self); /*! Updates the window's transient status, and any parents of it */ void client_update_transient_for(ObClient *self); /*! Update the protocols that the window supports and adjusts things if they change */ void client_update_protocols(ObClient *self); #ifdef SYNC /*! Updates the window's sync request counter for resizes */ void client_update_sync_request_counter(ObClient *self); #endif /*! Updates the window's colormap */ void client_update_colormap(ObClient *self, Colormap colormap); /*! Updates the requested opacity for the window from the client. */ void client_update_opacity(ObClient *self); /*! Updates the WMNormalHints and adjusts things if they change */ void client_update_normal_hints(ObClient *self); /*! Updates the WMHints and adjusts things if they change @param initstate Whether to read the initial_state property from the WMHints. This should only be used during the mapping process. */ void client_update_wmhints(ObClient *self); /*! Updates the window's title and icon title */ void client_update_title(ObClient *self); /*! Updates the strut for the client */ void client_update_strut(ObClient *self); /*! Updates the window's icons */ void client_update_icons(ObClient *self); /*! Updates the window's icon geometry (where to iconify to/from) */ void client_update_icon_geometry(ObClient *self); /*! Helper function to convert the ->type member to string representation */ const gchar *client_type_to_string(ObClient *self); /*! Set up what decor should be shown on the window and what functions should be allowed (ObClient::decorations and ObClient::functions). This also updates the NET_WM_ALLOWED_ACTIONS hint. @param reconfig When TRUE, the window will be reconfigured to show the changes */ void client_setup_decor_and_functions(ObClient *self, gboolean reconfig); /*! Sets the window's type and transient flag */ void client_get_type_and_transientness(ObClient *self); /*! Gets the motif wm hints */ void client_get_mwm_hints(ObClient *self); /*! Returns a client's icon set, or its parents (recursively) if it doesn't have one */ RrImage* client_icon(ObClient *self); /*! Return TRUE if the client is transient for some other window. Return FALSE if it's not transient or there is no window for it to be transient for */ gboolean client_has_parent(ObClient *self); /*! Return TRUE if the client has some transient children, and FALSE otherwise. */ gboolean client_has_children(ObClient *self); /*! Searches a client's immediate parents for a focused window. The function does not check for the passed client, only for *ONE LEVEL* of its parents. If no focused parent is found, NULL is returned. */ ObClient *client_search_focus_parent(ObClient *self); /*! Searches a client's parents for a focused window. The function does not check for the passed client, but searches through all of its parents. If no focused parent is found, NULL is returned. */ ObClient *client_search_focus_parent_full(ObClient *self); /*! Searches a client's transients for a focused window. The function does not check for the passed client, only for its transients. If no focused transient is found, NULL is returned. */ ObClient *client_search_focus_tree(ObClient *self); /*! Searches a client's transient tree for a focused window. The function searches up the tree and down other branches as well as the passed client's. If no focused client is found, NULL is returned. */ ObClient *client_search_focus_tree_full(ObClient *self); /*! Searches a client's group and each member's transients for a focused window. This doesn't go up the window's transient tree at all. If no focused client is found, NULL is returned. */ ObClient *client_search_focus_group_full(ObClient *self); /*! Return a modal child of the client window that can be focused. @return A modal child of the client window that can be focused, or 0 if none was found. */ ObClient *client_search_modal_child(ObClient *self); /*! Returns a list of top-level windows which this is a transient for. It will only contain more than 1 element if the client is transient for its group. */ GSList *client_search_all_top_parents(ObClient *self); /*! Returns a list of top-level windows which this is a transient for, and which are in the same layer as this client. It will only contain more than 1 element if the client is transient for its group. */ GSList *client_search_all_top_parents_layer(ObClient *self); /*! Returns the client's parent when it is transient for a direct window rather than a group. If it has no parents, or is transient for the group, this returns null */ ObClient *client_direct_parent(ObClient *self); /*! Returns a window's top level parent. This only counts direct parents, not groups if it is transient for its group. */ ObClient *client_search_top_direct_parent(ObClient *self); /*! Is one client a direct child of another (i.e. not through the group.) This checks more than one level, so there may be another direct child in between */ gboolean client_is_direct_child(ObClient *parent, ObClient *child); /*! Search for a parent of a client. This only searches up *ONE LEVEL*, and returns the searched for parent if it is a parent, or NULL if not. */ ObClient *client_search_parent(ObClient *self, ObClient *search); /*! Search for a transient of a client. The transient is returned if it is one, NULL is returned if the given search is not a transient of the client. */ ObClient *client_search_transient(ObClient *self, ObClient *search); /*! Set a client window to be above/below other clients. @layer < 0 indicates the client should be placed below other clients.
= 0 indicates the client should be placed with other clients.
> 0 indicates the client should be placed above other clients. */ void client_set_layer(ObClient *self, gint layer); guint client_monitor(ObClient *self); ObClient* client_under_pointer(void); gboolean client_has_group_siblings(ObClient *self); /*! Returns TRUE if the client has a transient child, a parent, or a group member. Returns FALSE otherwise. */ gboolean client_has_relative(ObClient *self); /*! Returns TRUE if the client is running on the same machine as Openbox */ gboolean client_on_localhost(ObClient *self); #endif openbox-3.6.1/openbox/client_list_menu.c0000644000175300001440000001455712426440016015301 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client_list_menu.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "openbox.h" #include "menu.h" #include "menuframe.h" #include "screen.h" #include "client.h" #include "client_list_menu.h" #include "focus.h" #include "config.h" #include "gettext.h" #include #define MENU_NAME "client-list-menu" static GSList *desktop_menus; typedef struct { guint desktop; } DesktopData; #define SEPARATOR -1 #define ADD_DESKTOP -2 #define REMOVE_DESKTOP -3 static gboolean desk_menu_update(ObMenuFrame *frame, gpointer data) { ObMenu *menu = frame->menu; DesktopData *d = data; GList *it; gboolean empty = TRUE; gboolean onlyiconic = TRUE; menu_clear_entries(menu); for (it = focus_order; it; it = g_list_next(it)) { ObClient *c = it->data; if (focus_valid_target(c, d->desktop, TRUE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE)) { ObMenuEntry *e; empty = FALSE; if (c->iconic) { gchar *title = g_strdup_printf("(%s)", c->icon_title); e = menu_add_normal(menu, d->desktop, title, NULL, FALSE); g_free(title); } else { onlyiconic = FALSE; e = menu_add_normal(menu, d->desktop, c->title, NULL, FALSE); } if (config_menu_show_icons) { e->data.normal.icon = client_icon(c); RrImageRef(e->data.normal.icon); e->data.normal.icon_alpha = c->iconic ? OB_ICONIC_ALPHA : 0xff; } e->data.normal.data = c; } } if (empty || onlyiconic) { ObMenuEntry *e; /* no entries or only iconified windows, so add a * way to go to this desktop without uniconifying a window */ if (!empty) menu_add_separator(menu, SEPARATOR, NULL); e = menu_add_normal(menu, d->desktop, _("Go there..."), NULL, TRUE); if (d->desktop == screen_desktop) e->data.normal.enabled = FALSE; } return TRUE; /* always show */ } static void desk_menu_execute(ObMenuEntry *self, ObMenuFrame *f, ObClient *c, guint state, gpointer data) { ObClient *t = self->data.normal.data; if (t) { /* it's set to NULL if its destroyed */ gboolean here = state & ShiftMask; client_activate(t, TRUE, here, TRUE, TRUE, TRUE); /* if the window is omnipresent then we need to go to its desktop */ if (!here && t->desktop == DESKTOP_ALL) screen_set_desktop(self->id, FALSE); } else screen_set_desktop(self->id, TRUE); } static void desk_menu_destroy(ObMenu *menu, gpointer data) { DesktopData *d = data; g_slice_free(DesktopData, d); desktop_menus = g_slist_remove(desktop_menus, menu); } static void self_cleanup(ObMenu *menu, gpointer data) { menu_clear_entries(menu); while (desktop_menus) { menu_free(desktop_menus->data); desktop_menus = g_slist_delete_link(desktop_menus, desktop_menus); } } static gboolean self_update(ObMenuFrame *frame, gpointer data) { ObMenu *menu = frame->menu; guint i; menu_clear_entries(menu); while (desktop_menus) { menu_free(desktop_menus->data); desktop_menus = g_slist_delete_link(desktop_menus, desktop_menus); } for (i = 0; i < screen_num_desktops; ++i) { ObMenu *submenu; gchar *name = g_strdup_printf("%s-%u", MENU_NAME, i); DesktopData *ddata = g_slice_new(DesktopData); ddata->desktop = i; submenu = menu_new(name, screen_desktop_names[i], FALSE, ddata); menu_set_update_func(submenu, desk_menu_update); menu_set_execute_func(submenu, desk_menu_execute); menu_set_destroy_func(submenu, desk_menu_destroy); menu_add_submenu(menu, i, name); g_free(name); desktop_menus = g_slist_append(desktop_menus, submenu); } if (config_menu_manage_desktops) { menu_add_separator(menu, SEPARATOR, NULL); menu_add_normal(menu, ADD_DESKTOP, _("_Add new desktop"), NULL, TRUE); menu_add_normal(menu, REMOVE_DESKTOP, _("_Remove last desktop"), NULL, TRUE); } return TRUE; /* always show */ } static void self_execute(ObMenuEntry *self, ObMenuFrame *f, ObClient *c, guint state, gpointer data) { if (self->id == ADD_DESKTOP) { screen_add_desktop(FALSE); menu_frame_hide_all(); } else if (self->id == REMOVE_DESKTOP) { screen_remove_desktop(FALSE); menu_frame_hide_all(); } } static void client_dest(ObClient *client, gpointer data) { /* This concise function removes all references to a closed * client in the client_list_menu, so we don't have to check * in client.c */ GSList *it; for (it = desktop_menus; it; it = g_slist_next(it)) { ObMenu *mit = it->data; GList *eit; for (eit = mit->entries; eit; eit = g_list_next(eit)) { ObMenuEntry *meit = eit->data; if (meit->type == OB_MENU_ENTRY_TYPE_NORMAL && meit->data.normal.data == client) { meit->data.normal.data = NULL; } } } } void client_list_menu_startup(gboolean reconfig) { ObMenu *menu; if (!reconfig) client_add_destroy_notify(client_dest, NULL); menu = menu_new(MENU_NAME, _("Desktops"), TRUE, NULL); menu_set_update_func(menu, self_update); menu_set_cleanup_func(menu, self_cleanup); menu_set_execute_func(menu, self_execute); } void client_list_menu_shutdown(gboolean reconfig) { if (!reconfig) client_remove_destroy_notify(client_dest); } openbox-3.6.1/openbox/client_list_menu.h0000644000175300001440000000167412426440016015302 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client_list_menu.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__client_list_menu_h #define ob__client_list_menu_h void client_list_menu_startup(gboolean reconfig); void client_list_menu_shutdown(gboolean reconfig); #endif openbox-3.6.1/openbox/client_list_combined_menu.c0000644000175300001440000001232412426440016017127 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client_list_menu.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "openbox.h" #include "menu.h" #include "menuframe.h" #include "screen.h" #include "client.h" #include "client_list_combined_menu.h" #include "focus.h" #include "config.h" #include "gettext.h" #include #define MENU_NAME "client-list-combined-menu" static ObMenu *combined_menu; #define SEPARATOR -1 #define ADD_DESKTOP -2 #define REMOVE_DESKTOP -3 static void self_cleanup(ObMenu *menu, gpointer data) { menu_clear_entries(menu); } static gboolean self_update(ObMenuFrame *frame, gpointer data) { ObMenu *menu = frame->menu; ObMenuEntry *e; GList *it; guint desktop; menu_clear_entries(menu); for (desktop = 0; desktop < screen_num_desktops; desktop++) { gboolean empty = TRUE; gboolean onlyiconic = TRUE; menu_add_separator(menu, SEPARATOR, screen_desktop_names[desktop]); for (it = focus_order; it; it = g_list_next(it)) { ObClient *c = it->data; if (focus_valid_target(c, desktop, TRUE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE)) { empty = FALSE; if (c->iconic) { gchar *title = g_strdup_printf("(%s)", c->icon_title); e = menu_add_normal(menu, desktop, title, NULL, FALSE); g_free(title); } else { onlyiconic = FALSE; e = menu_add_normal(menu, desktop, c->title, NULL, FALSE); } if (config_menu_show_icons) { e->data.normal.icon = client_icon(c); RrImageRef(e->data.normal.icon); e->data.normal.icon_alpha = c->iconic ? OB_ICONIC_ALPHA : 0xff; } e->data.normal.data = c; } } if (empty || onlyiconic) { /* no entries or only iconified windows, so add a * way to go to this desktop without uniconifying a window */ if (!empty) menu_add_separator(menu, SEPARATOR, NULL); e = menu_add_normal(menu, desktop, _("Go there..."), NULL, TRUE); if (desktop == screen_desktop) e->data.normal.enabled = FALSE; } } if (config_menu_manage_desktops) { menu_add_separator(menu, SEPARATOR, _("Manage desktops")); menu_add_normal(menu, ADD_DESKTOP, _("_Add new desktop"), NULL, TRUE); menu_add_normal(menu, REMOVE_DESKTOP, _("_Remove last desktop"), NULL, TRUE); } return TRUE; /* always show the menu */ } static void menu_execute(ObMenuEntry *self, ObMenuFrame *f, ObClient *c, guint state, gpointer data) { if (self->id == ADD_DESKTOP) { screen_add_desktop(FALSE); menu_frame_hide_all(); } else if (self->id == REMOVE_DESKTOP) { screen_remove_desktop(FALSE); menu_frame_hide_all(); } else { ObClient *t = self->data.normal.data; if (t) { /* it's set to NULL if its destroyed */ gboolean here = state & ShiftMask; client_activate(t, TRUE, here, TRUE, TRUE, TRUE); /* if the window is omnipresent then we need to go to its desktop */ if (!here && t->desktop == DESKTOP_ALL) screen_set_desktop(self->id, FALSE); } else screen_set_desktop(self->id, TRUE); } } static void client_dest(ObClient *client, gpointer data) { /* This concise function removes all references to a closed * client in the client_list_menu, so we don't have to check * in client.c */ GList *eit; for (eit = combined_menu->entries; eit; eit = g_list_next(eit)) { ObMenuEntry *meit = eit->data; if (meit->type == OB_MENU_ENTRY_TYPE_NORMAL && meit->data.normal.data == client) { meit->data.normal.data = NULL; } } } void client_list_combined_menu_startup(gboolean reconfig) { if (!reconfig) client_add_destroy_notify(client_dest, NULL); combined_menu = menu_new(MENU_NAME, _("Windows"), TRUE, NULL); menu_set_update_func(combined_menu, self_update); menu_set_cleanup_func(combined_menu, self_cleanup); menu_set_execute_func(combined_menu, menu_execute); } void client_list_combined_menu_shutdown(gboolean reconfig) { if (!reconfig) client_remove_destroy_notify(client_dest); } openbox-3.6.1/openbox/client_list_combined_menu.h0000644000175300001440000000174012426440016017134 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client_list_menu.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__client_list_combined_menu_h #define ob__client_list_combined_menu_h void client_list_combined_menu_startup(gboolean reconfig); void client_list_combined_menu_shutdown(gboolean reconfig); #endif openbox-3.6.1/openbox/client_menu.c0000644000175300001440000003124112426457710014244 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client_menu.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "debug.h" #include "menu.h" #include "menuframe.h" #include "config.h" #include "screen.h" #include "client.h" #include "client_menu.h" #include "openbox.h" #include "frame.h" #include "moveresize.h" #include "event.h" #include "gettext.h" #include "obt/prop.h" #include #define CLIENT_MENU_NAME "client-menu" #define SEND_TO_MENU_NAME "client-send-to-menu" #define LAYER_MENU_NAME "client-layer-menu" enum { LAYER_TOP = 1, LAYER_NORMAL = 0, LAYER_BOTTOM = -1 }; enum { CLIENT_SEND_TO, CLIENT_LAYER, CLIENT_ICONIFY, CLIENT_RESTORE, CLIENT_MAXIMIZE, CLIENT_SHADE, CLIENT_DECORATE, CLIENT_MOVE, CLIENT_RESIZE, CLIENT_CLOSE }; static void set_icon_color(ObMenuEntry *e) { e->data.normal.mask_normal_color = ob_rr_theme->menu_color; e->data.normal.mask_selected_color = ob_rr_theme->menu_selected_color; e->data.normal.mask_disabled_color = ob_rr_theme->menu_disabled_color; e->data.normal.mask_disabled_selected_color = ob_rr_theme->menu_disabled_selected_color; } static gboolean client_menu_update(ObMenuFrame *frame, gpointer data) { ObMenu *menu = frame->menu; GList *it; if (frame->client == NULL || !client_normal(frame->client)) return FALSE; /* don't show the menu */ for (it = menu->entries; it; it = g_list_next(it)) { ObMenuEntry *e = it->data; gboolean *en = &e->data.normal.enabled; /* save some typing */ ObClient *c = frame->client; if (e->type == OB_MENU_ENTRY_TYPE_NORMAL) { switch (e->id) { case CLIENT_ICONIFY: *en = c->functions & OB_CLIENT_FUNC_ICONIFY; break; case CLIENT_RESTORE: *en = c->max_horz || c->max_vert; break; case CLIENT_MAXIMIZE: *en = ((c->functions & OB_CLIENT_FUNC_MAXIMIZE) && (!c->max_horz || !c->max_vert)); break; case CLIENT_SHADE: *en = c->functions & OB_CLIENT_FUNC_SHADE; break; case CLIENT_MOVE: *en = c->functions & OB_CLIENT_FUNC_MOVE; break; case CLIENT_RESIZE: *en = c->functions & OB_CLIENT_FUNC_RESIZE; break; case CLIENT_CLOSE: *en = c->functions & OB_CLIENT_FUNC_CLOSE; break; case CLIENT_DECORATE: *en = c->functions & OB_CLIENT_FUNC_UNDECORATE; break; default: *en = TRUE; } } } return TRUE; /* show the menu */ } static void client_menu_execute(ObMenuEntry *e, ObMenuFrame *f, ObClient *c, guint state, gpointer data) { gint x, y; gulong ignore_start; if (!c) return; if (!config_focus_under_mouse) ignore_start = event_start_ignore_all_enters(); switch (e->id) { case CLIENT_ICONIFY: /* the client won't be on screen anymore so hide the menu */ menu_frame_hide_all(); f = NULL; /* and don't update */ client_iconify(c, TRUE, FALSE, FALSE); break; case CLIENT_RESTORE: client_maximize(c, FALSE, 0); break; case CLIENT_MAXIMIZE: client_maximize(c, TRUE, 0); break; case CLIENT_SHADE: client_shade(c, !c->shaded); break; case CLIENT_DECORATE: client_set_undecorated(c, !c->undecorated); break; case CLIENT_MOVE: /* this needs to grab the keyboard so hide the menu */ menu_frame_hide_all(); f = NULL; /* and don't update */ screen_pointer_pos(&x, &y); moveresize_start(c, x, y, 0, OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE_KEYBOARD)); break; case CLIENT_RESIZE: /* this needs to grab the keyboard so hide the menu */ menu_frame_hide_all(); f = NULL; /* and don't update */ screen_pointer_pos(&x, &y); moveresize_start(c, x, y, 0, OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_KEYBOARD)); break; case CLIENT_CLOSE: client_close(c); break; default: g_assert_not_reached(); } if (!config_focus_under_mouse) event_end_ignore_all_enters(ignore_start); /* update the menu cuz stuff can have changed */ if (f) { client_menu_update(f, NULL); menu_frame_render(f); } } static gboolean layer_menu_update(ObMenuFrame *frame, gpointer data) { ObMenu *menu = frame->menu; GList *it; if (frame->client == NULL || !client_normal(frame->client)) return FALSE; /* don't show the menu */ for (it = menu->entries; it; it = g_list_next(it)) { ObMenuEntry *e = it->data; gboolean *en = &e->data.normal.enabled; /* save some typing */ ObClient *c = frame->client; if (e->type == OB_MENU_ENTRY_TYPE_NORMAL) { switch (e->id) { case LAYER_TOP: *en = !c->above && (c->functions & OB_CLIENT_FUNC_ABOVE); break; case LAYER_NORMAL: *en = c->above || c->below; break; case LAYER_BOTTOM: *en = !c->below && (c->functions & OB_CLIENT_FUNC_BELOW); break; default: *en = TRUE; } } } return TRUE; /* show the menu */ } static void layer_menu_execute(ObMenuEntry *e, ObMenuFrame *f, ObClient *c, guint state, gpointer data) { gulong ignore_start; g_assert(c); if (!config_focus_under_mouse) ignore_start = event_start_ignore_all_enters(); client_set_layer(c, e->id); if (!config_focus_under_mouse) event_end_ignore_all_enters(ignore_start); /* update the menu cuz stuff can have changed */ if (f) { layer_menu_update(f, NULL); menu_frame_render(f); } } static gboolean send_to_menu_update(ObMenuFrame *frame, gpointer data) { ObMenu *menu = frame->menu; ObClient *c = frame->client; guint i; ObMenuEntry *e; GList *it; if (c == NULL || !client_normal(c)) return FALSE; /* don't show the menu */ if (!data) menu_clear_entries(menu); if (!menu->entries) { for (i = 0; i <= screen_num_desktops; ++i) { const gchar *name; guint desk; if (i == screen_num_desktops) { menu_add_separator(menu, -1, NULL); desk = DESKTOP_ALL; name = _("All desktops"); } else { desk = i; name = screen_desktop_names[i]; } e = menu_add_normal(menu, desk, name, NULL, FALSE); e->id = desk; } } for (it = menu->entries; it; it = g_list_next(it)) { ObMenuEntry *e = it->data; guint desk = e->id; e->data.normal.enabled = c->desktop != desk; if ((desk == DESKTOP_ALL && c->desktop != DESKTOP_ALL) || (c->desktop == DESKTOP_ALL && desk == screen_desktop)) { e->data.normal.mask = ob_rr_theme->btn_desk->unpressed_mask; set_icon_color(e); } else e->data.normal.mask = NULL; } return TRUE; /* show the menu */ } static void send_to_menu_execute(ObMenuEntry *e, ObMenuFrame *f, ObClient *c, guint state, gpointer data) { g_assert(c); client_set_desktop(c, e->id, FALSE, FALSE); if (f && c->desktop != screen_desktop && c->desktop != DESKTOP_ALL) /* the client won't even be on the screen anymore, so hide the menu */ menu_frame_hide_all(); else if (f) { send_to_menu_update(f, (gpointer)1); menu_frame_render(f); } } static void client_menu_place(ObMenuFrame *frame, gint *x, gint *y, gboolean mouse, gpointer data) { gint dx, dy; if (!mouse && frame->client) { *x = frame->client->frame->area.x; /* try below the titlebar */ *y = frame->client->frame->area.y + frame->client->frame->size.top - frame->client->frame->bwidth; menu_frame_move_on_screen(frame, *x, *y, &dx, &dy); if (dy != 0) { /* try above the titlebar */ *y = frame->client->frame->area.y + frame->client->frame->bwidth - frame->area.height; menu_frame_move_on_screen(frame, *x, *y, &dx, &dy); } if (dy != 0) { /* didnt fit either way, use move on screen's values */ *y = frame->client->frame->area.y + frame->client->frame->size.top; menu_frame_move_on_screen(frame, *x, *y, &dx, &dy); } *x += dx; *y += dy; } else { gint myx, myy; myx = *x; myy = *y; /* try to the bottom right of the cursor */ menu_frame_move_on_screen(frame, myx, myy, &dx, &dy); if (dx != 0 || dy != 0) { /* try to the bottom left of the cursor */ myx = *x - frame->area.width; myy = *y; menu_frame_move_on_screen(frame, myx, myy, &dx, &dy); } if (dx != 0 || dy != 0) { /* try to the top right of the cursor */ myx = *x; myy = *y - frame->area.height; menu_frame_move_on_screen(frame, myx, myy, &dx, &dy); } if (dx != 0 || dy != 0) { /* try to the top left of the cursor */ myx = *x - frame->area.width; myy = *y - frame->area.height; menu_frame_move_on_screen(frame, myx, myy, &dx, &dy); } if (dx != 0 || dy != 0) { /* if didnt fit on either side so just use what it says */ myx = *x; myy = *y; menu_frame_move_on_screen(frame, myx, myy, &dx, &dy); } *x = myx + dx; *y = myy + dy; } } void client_menu_startup(void) { ObMenu *menu; ObMenuEntry *e; menu = menu_new(LAYER_MENU_NAME, _("_Layer"), TRUE, NULL); menu_show_all_shortcuts(menu, TRUE); menu_set_update_func(menu, layer_menu_update); menu_set_execute_func(menu, layer_menu_execute); menu_add_normal(menu, LAYER_TOP, _("Always on _top"), NULL, TRUE); menu_add_normal(menu, LAYER_NORMAL, _("_Normal"), NULL, TRUE); menu_add_normal(menu, LAYER_BOTTOM, _("Always on _bottom"),NULL, TRUE); menu = menu_new(SEND_TO_MENU_NAME, _("_Send to desktop"), TRUE, NULL); menu_set_update_func(menu, send_to_menu_update); menu_set_execute_func(menu, send_to_menu_execute); menu = menu_new(CLIENT_MENU_NAME, _("Client menu"), TRUE, NULL); menu_show_all_shortcuts(menu, TRUE); menu_set_update_func(menu, client_menu_update); menu_set_place_func(menu, client_menu_place); menu_set_execute_func(menu, client_menu_execute); menu_add_submenu(menu, CLIENT_SEND_TO, SEND_TO_MENU_NAME); menu_add_submenu(menu, CLIENT_LAYER, LAYER_MENU_NAME); e = menu_add_normal(menu, CLIENT_RESTORE, _("R_estore"), NULL, TRUE); e->data.normal.mask = ob_rr_theme->btn_max->unpressed_toggled_mask; set_icon_color(e); menu_add_normal(menu, CLIENT_MOVE, _("_Move"), NULL, TRUE); menu_add_normal(menu, CLIENT_RESIZE, _("Resi_ze"), NULL, TRUE); e = menu_add_normal(menu, CLIENT_ICONIFY, _("Ico_nify"), NULL, TRUE); e->data.normal.mask = ob_rr_theme->btn_iconify->unpressed_mask; set_icon_color(e); e = menu_add_normal(menu, CLIENT_MAXIMIZE, _("Ma_ximize"), NULL, TRUE); e->data.normal.mask = ob_rr_theme->btn_max->unpressed_mask; set_icon_color(e); e = menu_add_normal(menu, CLIENT_SHADE, _("_Roll up/down"), NULL, TRUE); e->data.normal.mask = ob_rr_theme->btn_shade->unpressed_mask; set_icon_color(e); menu_add_normal(menu, CLIENT_DECORATE, _("Un/_Decorate"), NULL, TRUE); menu_add_separator(menu, -1, NULL); e = menu_add_normal(menu, CLIENT_CLOSE, _("_Close"), NULL, TRUE); e->data.normal.mask = ob_rr_theme->btn_close->unpressed_mask; set_icon_color(e); } openbox-3.6.1/openbox/client_menu.h0000644000175300001440000000147212426440016014243 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client_menu.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__client_menu_h #define ob__client_menu_h void client_menu_startup(void); #endif openbox-3.6.1/openbox/config.c0000644000175300001440000012271612426440016013206 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- config.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "config.h" #include "keyboard.h" #include "mouse.h" #include "actions.h" #include "translate.h" #include "client.h" #include "screen.h" #include "openbox.h" #include "gettext.h" #include "obt/paths.h" gboolean config_focus_new; gboolean config_focus_follow; guint config_focus_delay; gboolean config_focus_raise; gboolean config_focus_last; gboolean config_focus_under_mouse; gboolean config_unfocus_leave; ObPlacePolicy config_place_policy; gboolean config_place_center; ObPlaceMonitor config_place_monitor; guint config_primary_monitor_index; ObPlaceMonitor config_primary_monitor; StrutPartial config_margins; gchar *config_theme; gboolean config_theme_keepborder; guint config_theme_window_list_icon_size; gchar *config_title_layout; gboolean config_animate_iconify; RrFont *config_font_activewindow; RrFont *config_font_inactivewindow; RrFont *config_font_menuitem; RrFont *config_font_menutitle; RrFont *config_font_activeosd; RrFont *config_font_inactiveosd; guint config_desktops_num; GSList *config_desktops_names; guint config_screen_firstdesk; guint config_desktop_popup_time; gboolean config_resize_redraw; gint config_resize_popup_show; ObResizePopupPos config_resize_popup_pos; GravityPoint config_resize_popup_fixed; ObStackingLayer config_dock_layer; gboolean config_dock_floating; gboolean config_dock_nostrut; ObDirection config_dock_pos; gint config_dock_x; gint config_dock_y; ObOrientation config_dock_orient; gboolean config_dock_hide; guint config_dock_hide_delay; guint config_dock_show_delay; guint config_dock_app_move_button; guint config_dock_app_move_modifiers; guint config_keyboard_reset_keycode; guint config_keyboard_reset_state; gboolean config_keyboard_rebind_on_mapping_notify; gint config_mouse_threshold; gint config_mouse_dclicktime; gint config_mouse_screenedgetime; gboolean config_mouse_screenedgewarp; guint config_menu_hide_delay; gboolean config_menu_middle; guint config_submenu_show_delay; guint config_submenu_hide_delay; gboolean config_menu_manage_desktops; gboolean config_menu_show_icons; GSList *config_menu_files; gint config_resist_win; gint config_resist_edge; GSList *config_per_app_settings; ObAppSettings* config_create_app_settings(void) { ObAppSettings *settings = g_slice_new0(ObAppSettings); settings->type = -1; settings->decor = -1; settings->shade = -1; settings->monitor_type = OB_PLACE_MONITOR_ANY; settings->monitor = -1; settings->focus = -1; settings->desktop = 0; settings->layer = -2; settings->iconic = -1; settings->skip_pager = -1; settings->skip_taskbar = -1; settings->fullscreen = -1; settings->max_horz = -1; settings->max_vert = -1; return settings; } #define copy_if(setting, default) \ if (src->setting != default) dst->setting = src->setting void config_app_settings_copy_non_defaults(const ObAppSettings *src, ObAppSettings *dst) { g_assert(src != NULL); g_assert(dst != NULL); copy_if(type, (ObClientType)-1); copy_if(decor, -1); copy_if(shade, -1); copy_if(monitor_type, OB_PLACE_MONITOR_ANY); copy_if(monitor, -1); copy_if(focus, -1); copy_if(desktop, 0); copy_if(layer, -2); copy_if(iconic, -1); copy_if(skip_pager, -1); copy_if(skip_taskbar, -1); copy_if(fullscreen, -1); copy_if(max_horz, -1); copy_if(max_vert, -1); if (src->pos_given) { dst->pos_given = TRUE; dst->pos_force = src->pos_force; dst->position = src->position; /* monitor is copied above */ } dst->width_num = src->width_num; dst->width_denom = src->width_denom; dst->height_num = src->height_num; dst->height_denom = src->height_denom; } void config_parse_relative_number(gchar *s, gint *num, gint *denom) { *num = strtol(s, &s, 10); if (*s == '%') { *denom = 100; } else if (*s == '/') { *denom = atoi(s+1); } } void config_parse_gravity_coord(xmlNodePtr node, GravityCoord *c) { gchar *s = obt_xml_node_string(node); if (!g_ascii_strcasecmp(s, "center")) c->center = TRUE; else { gchar *ps = s; if (s[0] == '-') c->opposite = TRUE; if (s[0] == '-' || s[0] == '+') ps++; config_parse_relative_number(ps, &c->pos, &c->denom); } g_free(s); } /* false above 700 0 1 .. there is a lot more settings available */ static void parse_single_per_app_settings(xmlNodePtr app, ObAppSettings *settings) { xmlNodePtr n, c; gboolean x_pos_given = FALSE; if ((n = obt_xml_find_node(app->children, "decor"))) if (!obt_xml_node_contains(n, "default")) settings->decor = obt_xml_node_bool(n); if ((n = obt_xml_find_node(app->children, "shade"))) if (!obt_xml_node_contains(n, "default")) settings->shade = obt_xml_node_bool(n); if ((n = obt_xml_find_node(app->children, "position"))) { if ((c = obt_xml_find_node(n->children, "x"))) { if (!obt_xml_node_contains(c, "default")) { config_parse_gravity_coord(c, &settings->position.x); x_pos_given = TRUE; } } if (x_pos_given && (c = obt_xml_find_node(n->children, "y"))) { if (!obt_xml_node_contains(c, "default")) { config_parse_gravity_coord(c, &settings->position.y); settings->pos_given = TRUE; } } /* monitor can be set without setting x or y */ if ((c = obt_xml_find_node(n->children, "monitor"))) { if (!obt_xml_node_contains(c, "default")) { gchar *s = obt_xml_node_string(c); if (!g_ascii_strcasecmp(s, "mouse")) settings->monitor_type = OB_PLACE_MONITOR_MOUSE; else if (!g_ascii_strcasecmp(s, "active")) settings->monitor_type = OB_PLACE_MONITOR_ACTIVE; else if (!g_ascii_strcasecmp(s, "primary")) settings->monitor_type = OB_PLACE_MONITOR_PRIMARY; else settings->monitor = obt_xml_node_int(c); g_free(s); } } obt_xml_attr_bool(n, "force", &settings->pos_force); } if ((n = obt_xml_find_node(app->children, "size"))) { if ((c = obt_xml_find_node(n->children, "width"))) { if (!obt_xml_node_contains(c, "default")) { gchar *s = obt_xml_node_string(c); config_parse_relative_number(s, &settings->width_num, &settings->width_denom); if (settings->width_num <= 0 || settings->width_denom < 0) settings->width_num = settings->width_denom = 0; g_free(s); } } if ((c = obt_xml_find_node(n->children, "height"))) { if (!obt_xml_node_contains(c, "default")) { gchar *s = obt_xml_node_string(c); config_parse_relative_number(s, &settings->height_num, &settings->height_denom); if (settings->height_num <= 0 || settings->height_denom < 0) settings->height_num = settings->height_denom = 0; g_free(s); } } } if ((n = obt_xml_find_node(app->children, "focus"))) { if (!obt_xml_node_contains(n, "default")) settings->focus = obt_xml_node_bool(n); } if ((n = obt_xml_find_node(app->children, "desktop"))) { if (!obt_xml_node_contains(n, "default")) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "all")) settings->desktop = DESKTOP_ALL; else { gint i = obt_xml_node_int(n); if (i > 0) settings->desktop = i; } g_free(s); } } if ((n = obt_xml_find_node(app->children, "layer"))) { if (!obt_xml_node_contains(n, "default")) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "above")) settings->layer = 1; else if (!g_ascii_strcasecmp(s, "below")) settings->layer = -1; else settings->layer = 0; g_free(s); } } if ((n = obt_xml_find_node(app->children, "iconic"))) if (!obt_xml_node_contains(n, "default")) settings->iconic = obt_xml_node_bool(n); if ((n = obt_xml_find_node(app->children, "skip_pager"))) if (!obt_xml_node_contains(n, "default")) settings->skip_pager = obt_xml_node_bool(n); if ((n = obt_xml_find_node(app->children, "skip_taskbar"))) if (!obt_xml_node_contains(n, "default")) settings->skip_taskbar = obt_xml_node_bool(n); if ((n = obt_xml_find_node(app->children, "fullscreen"))) if (!obt_xml_node_contains(n, "default")) settings->fullscreen = obt_xml_node_bool(n); if ((n = obt_xml_find_node(app->children, "maximized"))) { if (!obt_xml_node_contains(n, "default")) { gchar *s = obt_xml_node_string(n); if (!g_ascii_strcasecmp(s, "horizontal")) { settings->max_horz = TRUE; settings->max_vert = FALSE; } else if (!g_ascii_strcasecmp(s, "vertical")) { settings->max_horz = FALSE; settings->max_vert = TRUE; } else settings->max_horz = settings->max_vert = obt_xml_node_bool(n); g_free(s); } } } /* Manages settings for individual applications. Some notes: monitor is the screen number in a multi monitor (Xinerama) setup (starting from 0), or mouse: the monitor the pointer is on, active: the active monitor, primary: the primary monitor. Layer can be three values, above (Always on top), below (Always on bottom) and everything else (normal behaviour). Positions can be an integer value or center, which will center the window in the specified axis. Position is within the monitor, so center2 will center the window on the second monitor. */ static void parse_per_app_settings(xmlNodePtr node, gpointer d) { xmlNodePtr app = obt_xml_find_node(node->children, "application"); for (; app; app = obt_xml_find_node(app->next, "application")) { ObAppSettings *settings; gboolean name_set, class_set, role_set, title_set, type_set, group_name_set, group_class_set; gchar *name = NULL, *class = NULL, *role = NULL, *title = NULL, *type_str = NULL, *group_name = NULL, *group_class = NULL; ObClientType type; class_set = obt_xml_attr_string(app, "class", &class); name_set = obt_xml_attr_string(app, "name", &name); group_class_set = obt_xml_attr_string(app, "groupclass", &group_class); group_name_set = obt_xml_attr_string(app, "groupname", &group_name); type_set = obt_xml_attr_string(app, "type", &type_str); role_set = obt_xml_attr_string(app, "role", &role); title_set = obt_xml_attr_string(app, "title", &title); /* validate the type tho */ if (type_set) { if (!g_ascii_strcasecmp(type_str, "normal")) type = OB_CLIENT_TYPE_NORMAL; else if (!g_ascii_strcasecmp(type_str, "dialog")) type = OB_CLIENT_TYPE_DIALOG; else if (!g_ascii_strcasecmp(type_str, "splash")) type = OB_CLIENT_TYPE_SPLASH; else if (!g_ascii_strcasecmp(type_str, "utility")) type = OB_CLIENT_TYPE_UTILITY; else if (!g_ascii_strcasecmp(type_str, "menu")) type = OB_CLIENT_TYPE_MENU; else if (!g_ascii_strcasecmp(type_str, "toolbar")) type = OB_CLIENT_TYPE_TOOLBAR; else if (!g_ascii_strcasecmp(type_str, "dock")) type = OB_CLIENT_TYPE_DOCK; else if (!g_ascii_strcasecmp(type_str, "desktop")) type = OB_CLIENT_TYPE_DESKTOP; else type_set = FALSE; /* not valid! */ } if (!(class_set || name_set || role_set || title_set || type_set || group_class_set || group_name_set)) continue; settings = config_create_app_settings(); if (name_set) settings->name = g_pattern_spec_new(name); if (class_set) settings->class = g_pattern_spec_new(class); if (group_name_set) settings->group_name = g_pattern_spec_new(group_name); if (group_class_set) settings->group_class = g_pattern_spec_new(group_class); if (role_set) settings->role = g_pattern_spec_new(role); if (title_set) settings->title = g_pattern_spec_new(title); if (type_set) settings->type = type; g_free(name); g_free(class); g_free(group_name); g_free(group_class); g_free(role); g_free(title); g_free(type_str); parse_single_per_app_settings(app, settings); config_per_app_settings = g_slist_append(config_per_app_settings, (gpointer)settings); } } /* 3 */ static void parse_key(xmlNodePtr node, GList *keylist) { gchar *keystring, **keys, **key; xmlNodePtr n; gboolean is_chroot = FALSE; if (!obt_xml_attr_string(node, "key", &keystring)) return; obt_xml_attr_bool(node, "chroot", &is_chroot); keys = g_strsplit(keystring, " ", 0); for (key = keys; *key; ++key) { keylist = g_list_append(keylist, *key); if ((n = obt_xml_find_node(node->children, "keybind"))) { while (n) { parse_key(n, keylist); n = obt_xml_find_node(n->next, "keybind"); } } else if ((n = obt_xml_find_node(node->children, "action"))) { while (n) { ObActionsAct *action; action = actions_parse(n); if (action) keyboard_bind(keylist, action); n = obt_xml_find_node(n->next, "action"); } } if (is_chroot) keyboard_chroot(keylist); keylist = g_list_delete_link(keylist, g_list_last(keylist)); } g_strfreev(keys); g_free(keystring); } static void parse_keyboard(xmlNodePtr node, gpointer d) { xmlNodePtr n; gchar *key; keyboard_unbind_all(); if ((n = obt_xml_find_node(node->children, "chainQuitKey"))) { key = obt_xml_node_string(n); translate_key(key, &config_keyboard_reset_state, &config_keyboard_reset_keycode); g_free(key); } if ((n = obt_xml_find_node(node->children, "keybind"))) while (n) { parse_key(n, NULL); n = obt_xml_find_node(n->next, "keybind"); } if ((n = obt_xml_find_node(node->children, "rebindOnMappingNotify"))) config_keyboard_rebind_on_mapping_notify = obt_xml_node_bool(n); } /* */ static void parse_mouse(xmlNodePtr node, gpointer d) { xmlNodePtr n, nbut, nact; gchar *buttonstr; gchar *cxstr; ObMouseAction mact; mouse_unbind_all(); node = node->children; if ((n = obt_xml_find_node(node, "dragThreshold"))) config_mouse_threshold = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "doubleClickTime"))) config_mouse_dclicktime = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "screenEdgeWarpTime"))) { config_mouse_screenedgetime = obt_xml_node_int(n); /* minimum value of 25 for this property, when it is 1 and you hit the edge it basically never stops */ if (config_mouse_screenedgetime && config_mouse_screenedgetime < 25) config_mouse_screenedgetime = 25; } if ((n = obt_xml_find_node(node, "screenEdgeWarpMouse"))) config_mouse_screenedgewarp = obt_xml_node_bool(n); for (n = obt_xml_find_node(node, "context"); n; n = obt_xml_find_node(n->next, "context")) { gchar *modcxstr; ObFrameContext cx; if (!obt_xml_attr_string(n, "name", &cxstr)) continue; modcxstr = g_strdup(cxstr); /* make a copy to mutilate */ while (frame_next_context_from_string(modcxstr, &cx)) { if (!cx) { gchar *s = strchr(modcxstr, ' '); if (s) { *s = '\0'; g_message(_("Invalid context \"%s\" in mouse binding"), modcxstr); *s = ' '; } continue; } for (nbut = obt_xml_find_node(n->children, "mousebind"); nbut; nbut = obt_xml_find_node(nbut->next, "mousebind")) { gchar **button, **buttons; if (!obt_xml_attr_string(nbut, "button", &buttonstr)) continue; if (obt_xml_attr_contains(nbut, "action", "press")) mact = OB_MOUSE_ACTION_PRESS; else if (obt_xml_attr_contains(nbut, "action", "release")) mact = OB_MOUSE_ACTION_RELEASE; else if (obt_xml_attr_contains(nbut, "action", "click")) mact = OB_MOUSE_ACTION_CLICK; else if (obt_xml_attr_contains(nbut, "action","doubleclick")) mact = OB_MOUSE_ACTION_DOUBLE_CLICK; else if (obt_xml_attr_contains(nbut, "action", "drag")) mact = OB_MOUSE_ACTION_MOTION; else continue; buttons = g_strsplit(buttonstr, " ", 0); for (nact = obt_xml_find_node(nbut->children, "action"); nact; nact = obt_xml_find_node(nact->next, "action")) { ObActionsAct *action; /* actions_parse() creates one ref to the action, but we need * exactly one ref per binding we use it for. */ if ((action = actions_parse(nact))) { for (button = buttons; *button; ++button) { actions_act_ref(action); mouse_bind(*button, cx, mact, action); } actions_act_unref(action); } } g_strfreev(buttons); g_free(buttonstr); } } g_free(modcxstr); g_free(cxstr); } } static void parse_focus(xmlNodePtr node, gpointer d) { xmlNodePtr n; node = node->children; if ((n = obt_xml_find_node(node, "focusNew"))) config_focus_new = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "followMouse"))) config_focus_follow = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "focusDelay"))) config_focus_delay = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "raiseOnFocus"))) config_focus_raise = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "focusLast"))) config_focus_last = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "underMouse"))) config_focus_under_mouse = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "unfocusOnLeave"))) config_unfocus_leave = obt_xml_node_bool(n); } static void parse_placement(xmlNodePtr node, gpointer d) { xmlNodePtr n; node = node->children; if ((n = obt_xml_find_node(node, "policy"))) { if (obt_xml_node_contains(n, "UnderMouse")) config_place_policy = OB_PLACE_POLICY_MOUSE; } if ((n = obt_xml_find_node(node, "center"))) { config_place_center = obt_xml_node_bool(n); } if ((n = obt_xml_find_node(node, "monitor"))) { if (obt_xml_node_contains(n, "active")) config_place_monitor = OB_PLACE_MONITOR_ACTIVE; else if (obt_xml_node_contains(n, "mouse")) config_place_monitor = OB_PLACE_MONITOR_MOUSE; else if (obt_xml_node_contains(n, "any")) config_place_monitor = OB_PLACE_MONITOR_ANY; } if ((n = obt_xml_find_node(node, "primaryMonitor"))) { config_primary_monitor_index = obt_xml_node_int(n); if (!config_primary_monitor_index) { if (obt_xml_node_contains(n, "mouse")) config_primary_monitor = OB_PLACE_MONITOR_MOUSE; } } } static void parse_margins(xmlNodePtr node, gpointer d) { xmlNodePtr n; node = node->children; if ((n = obt_xml_find_node(node, "top"))) config_margins.top = MAX(0, obt_xml_node_int(n)); if ((n = obt_xml_find_node(node, "left"))) config_margins.left = MAX(0, obt_xml_node_int(n)); if ((n = obt_xml_find_node(node, "right"))) config_margins.right = MAX(0, obt_xml_node_int(n)); if ((n = obt_xml_find_node(node, "bottom"))) config_margins.bottom = MAX(0, obt_xml_node_int(n)); } static void parse_theme(xmlNodePtr node, gpointer d) { xmlNodePtr n; node = node->children; if ((n = obt_xml_find_node(node, "name"))) { gchar *c; g_free(config_theme); c = obt_xml_node_string(n); config_theme = obt_paths_expand_tilde(c); g_free(c); } if ((n = obt_xml_find_node(node, "titleLayout"))) { gchar *c, *d; g_free(config_title_layout); config_title_layout = obt_xml_node_string(n); /* replace duplicates with spaces */ for (c = config_title_layout; *c != '\0'; ++c) for (d = c+1; *d != '\0'; ++d) if (*c == *d) *d = ' '; } if ((n = obt_xml_find_node(node, "keepBorder"))) config_theme_keepborder = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "animateIconify"))) config_animate_iconify = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "windowListIconSize"))) { config_theme_window_list_icon_size = obt_xml_node_int(n); if (config_theme_window_list_icon_size < 16) config_theme_window_list_icon_size = 16; else if (config_theme_window_list_icon_size > 96) config_theme_window_list_icon_size = 96; } for (n = obt_xml_find_node(node, "font"); n; n = obt_xml_find_node(n->next, "font")) { xmlNodePtr fnode; RrFont **font; gchar *name = g_strdup(RrDefaultFontFamily); gint size = RrDefaultFontSize; RrFontWeight weight = RrDefaultFontWeight; RrFontSlant slant = RrDefaultFontSlant; if (obt_xml_attr_contains(n, "place", "ActiveWindow")) font = &config_font_activewindow; else if (obt_xml_attr_contains(n, "place", "InactiveWindow")) font = &config_font_inactivewindow; else if (obt_xml_attr_contains(n, "place", "MenuHeader")) font = &config_font_menutitle; else if (obt_xml_attr_contains(n, "place", "MenuItem")) font = &config_font_menuitem; else if (obt_xml_attr_contains(n, "place", "ActiveOnScreenDisplay")) font = &config_font_activeosd; else if (obt_xml_attr_contains(n, "place", "OnScreenDisplay")) font = &config_font_activeosd; else if (obt_xml_attr_contains(n, "place","InactiveOnScreenDisplay")) font = &config_font_inactiveosd; else continue; if ((fnode = obt_xml_find_node(n->children, "name"))) { g_free(name); name = obt_xml_node_string(fnode); } if ((fnode = obt_xml_find_node(n->children, "size"))) { int s = obt_xml_node_int(fnode); if (s > 0) size = s; } if ((fnode = obt_xml_find_node(n->children, "weight"))) { gchar *w = obt_xml_node_string(fnode); if (!g_ascii_strcasecmp(w, "Bold")) weight = RR_FONTWEIGHT_BOLD; g_free(w); } if ((fnode = obt_xml_find_node(n->children, "slant"))) { gchar *s = obt_xml_node_string(fnode); if (!g_ascii_strcasecmp(s, "Italic")) slant = RR_FONTSLANT_ITALIC; if (!g_ascii_strcasecmp(s, "Oblique")) slant = RR_FONTSLANT_OBLIQUE; g_free(s); } *font = RrFontOpen(ob_rr_inst, name, size, weight, slant); g_free(name); } } static void parse_desktops(xmlNodePtr node, gpointer d) { xmlNodePtr n; node = node->children; if ((n = obt_xml_find_node(node, "number"))) { gint d = obt_xml_node_int(n); if (d > 0) config_desktops_num = (unsigned) d; } if ((n = obt_xml_find_node(node, "firstdesk"))) { gint d = obt_xml_node_int(n); if (d > 0) config_screen_firstdesk = (unsigned) d; } if ((n = obt_xml_find_node(node, "names"))) { GSList *it; xmlNodePtr nname; for (it = config_desktops_names; it; it = it->next) g_free(it->data); g_slist_free(config_desktops_names); config_desktops_names = NULL; for (nname = obt_xml_find_node(n->children, "name"); nname; nname = obt_xml_find_node(nname->next, "name")) { config_desktops_names = g_slist_append(config_desktops_names, obt_xml_node_string(nname)); } } if ((n = obt_xml_find_node(node, "popupTime"))) config_desktop_popup_time = obt_xml_node_int(n); } static void parse_resize(xmlNodePtr node, gpointer d) { xmlNodePtr n; node = node->children; if ((n = obt_xml_find_node(node, "drawContents"))) config_resize_redraw = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "popupShow"))) { config_resize_popup_show = obt_xml_node_int(n); if (obt_xml_node_contains(n, "Always")) config_resize_popup_show = 2; else if (obt_xml_node_contains(n, "Never")) config_resize_popup_show = 0; else if (obt_xml_node_contains(n, "Nonpixel")) config_resize_popup_show = 1; } if ((n = obt_xml_find_node(node, "popupPosition"))) { if (obt_xml_node_contains(n, "Top")) config_resize_popup_pos = OB_RESIZE_POS_TOP; else if (obt_xml_node_contains(n, "Center")) config_resize_popup_pos = OB_RESIZE_POS_CENTER; else if (obt_xml_node_contains(n, "Fixed")) { config_resize_popup_pos = OB_RESIZE_POS_FIXED; if ((n = obt_xml_find_node(node, "popupFixedPosition"))) { xmlNodePtr n2; if ((n2 = obt_xml_find_node(n->children, "x"))) config_parse_gravity_coord(n2, &config_resize_popup_fixed.x); if ((n2 = obt_xml_find_node(n->children, "y"))) config_parse_gravity_coord(n2, &config_resize_popup_fixed.y); config_resize_popup_fixed.x.pos = MAX(config_resize_popup_fixed.x.pos, 0); config_resize_popup_fixed.y.pos = MAX(config_resize_popup_fixed.y.pos, 0); } } } } static void parse_dock(xmlNodePtr node, gpointer d) { xmlNodePtr n; node = node->children; if ((n = obt_xml_find_node(node, "position"))) { if (obt_xml_node_contains(n, "TopLeft")) config_dock_floating = FALSE, config_dock_pos = OB_DIRECTION_NORTHWEST; else if (obt_xml_node_contains(n, "Top")) config_dock_floating = FALSE, config_dock_pos = OB_DIRECTION_NORTH; else if (obt_xml_node_contains(n, "TopRight")) config_dock_floating = FALSE, config_dock_pos = OB_DIRECTION_NORTHEAST; else if (obt_xml_node_contains(n, "Right")) config_dock_floating = FALSE, config_dock_pos = OB_DIRECTION_EAST; else if (obt_xml_node_contains(n, "BottomRight")) config_dock_floating = FALSE, config_dock_pos = OB_DIRECTION_SOUTHEAST; else if (obt_xml_node_contains(n, "Bottom")) config_dock_floating = FALSE, config_dock_pos = OB_DIRECTION_SOUTH; else if (obt_xml_node_contains(n, "BottomLeft")) config_dock_floating = FALSE, config_dock_pos = OB_DIRECTION_SOUTHWEST; else if (obt_xml_node_contains(n, "Left")) config_dock_floating = FALSE, config_dock_pos = OB_DIRECTION_WEST; else if (obt_xml_node_contains(n, "Floating")) config_dock_floating = TRUE; } if (config_dock_floating) { if ((n = obt_xml_find_node(node, "floatingX"))) config_dock_x = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "floatingY"))) config_dock_y = obt_xml_node_int(n); } else { if ((n = obt_xml_find_node(node, "noStrut"))) config_dock_nostrut = obt_xml_node_bool(n); } if ((n = obt_xml_find_node(node, "stacking"))) { if (obt_xml_node_contains(n, "normal")) config_dock_layer = OB_STACKING_LAYER_NORMAL; else if (obt_xml_node_contains(n, "below")) config_dock_layer = OB_STACKING_LAYER_BELOW; else if (obt_xml_node_contains(n, "above")) config_dock_layer = OB_STACKING_LAYER_ABOVE; } if ((n = obt_xml_find_node(node, "direction"))) { if (obt_xml_node_contains(n, "horizontal")) config_dock_orient = OB_ORIENTATION_HORZ; else if (obt_xml_node_contains(n, "vertical")) config_dock_orient = OB_ORIENTATION_VERT; } if ((n = obt_xml_find_node(node, "autoHide"))) config_dock_hide = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "hideDelay"))) config_dock_hide_delay = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "showDelay"))) config_dock_show_delay = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "moveButton"))) { gchar *str = obt_xml_node_string(n); guint b = 0, s = 0; if (translate_button(str, &s, &b)) { config_dock_app_move_button = b; config_dock_app_move_modifiers = s; } else { g_message(_("Invalid button \"%s\" specified in config file"), str); } g_free(str); } } static void parse_menu(xmlNodePtr node, gpointer d) { xmlNodePtr n; node = node->children; if ((n = obt_xml_find_node(node, "hideDelay"))) config_menu_hide_delay = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "middle"))) config_menu_middle = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "submenuShowDelay"))) config_submenu_show_delay = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "submenuHideDelay"))) config_submenu_hide_delay = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "manageDesktops"))) config_menu_manage_desktops = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "showIcons"))) { config_menu_show_icons = obt_xml_node_bool(n); #if !defined(USE_IMLIB2) && !defined(USE_LIBRSVG) if (config_menu_show_icons) g_message(_("Openbox was compiled without image loading support. Icons in menus will not be loaded.")); #endif } for (node = obt_xml_find_node(node, "file"); node; node = obt_xml_find_node(node->next, "file")) { gchar *c = obt_xml_node_string(node); config_menu_files = g_slist_append(config_menu_files, obt_paths_expand_tilde(c)); g_free(c); } } static void parse_resistance(xmlNodePtr node, gpointer d) { xmlNodePtr n; node = node->children; if ((n = obt_xml_find_node(node, "strength"))) config_resist_win = obt_xml_node_int(n); if ((n = obt_xml_find_node(node, "screen_edge_strength"))) config_resist_edge = obt_xml_node_int(n); } typedef struct { const gchar *key; const gchar *actname; } ObDefKeyBind; static void bind_default_keyboard(void) { ObDefKeyBind *it; ObDefKeyBind binds[] = { { "A-Tab", "NextWindow" }, { "S-A-Tab", "PreviousWindow" }, { "A-F4", "Close" }, { NULL, NULL } }; for (it = binds; it->key; ++it) { GList *l = g_list_append(NULL, g_strdup(it->key)); keyboard_bind(l, actions_parse_string(it->actname)); } } typedef struct { const gchar *button; const gchar *context; const ObMouseAction mact; const gchar *actname; } ObDefMouseBind; static void bind_default_mouse(void) { ObDefMouseBind *it; ObDefMouseBind binds[] = { { "Left", "Client", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Middle", "Client", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Right", "Client", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Desktop", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Middle", "Desktop", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Right", "Desktop", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Titlebar", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Bottom", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "BLCorner", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "BRCorner", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "TLCorner", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "TRCorner", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Close", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Maximize", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Iconify", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Icon", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "AllDesktops", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Shade", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Client", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Titlebar", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Middle", "Titlebar", OB_MOUSE_ACTION_CLICK, "Lower" }, { "Left", "BLCorner", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "BRCorner", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "TLCorner", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "TRCorner", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Close", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Maximize", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Iconify", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Icon", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Shade", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Close", OB_MOUSE_ACTION_CLICK, "Close" }, { "Left", "Maximize", OB_MOUSE_ACTION_CLICK, "ToggleMaximize" }, { "Left", "Iconify", OB_MOUSE_ACTION_CLICK, "Iconify" }, { "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "ToggleOmnipresent" }, { "Left", "Shade", OB_MOUSE_ACTION_CLICK, "ToggleShade" }, { "Left", "TLCorner", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "TRCorner", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "BLCorner", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "BRCorner", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "Top", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "Bottom", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "Left", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "Right", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "Titlebar", OB_MOUSE_ACTION_MOTION, "Move" }, { "A-Left", "Frame", OB_MOUSE_ACTION_MOTION, "Move" }, { "A-Middle", "Frame", OB_MOUSE_ACTION_MOTION, "Resize" }, { NULL, NULL, 0, NULL } }; for (it = binds; it->button; ++it) mouse_bind(it->button, frame_context_from_string(it->context), it->mact, actions_parse_string(it->actname)); } void config_startup(ObtXmlInst *i) { config_focus_new = TRUE; config_focus_follow = FALSE; config_focus_delay = 0; config_focus_raise = FALSE; config_focus_last = TRUE; config_focus_under_mouse = FALSE; config_unfocus_leave = FALSE; obt_xml_register(i, "focus", parse_focus, NULL); config_place_policy = OB_PLACE_POLICY_SMART; config_place_center = TRUE; config_place_monitor = OB_PLACE_MONITOR_PRIMARY; config_primary_monitor_index = 1; config_primary_monitor = OB_PLACE_MONITOR_ACTIVE; obt_xml_register(i, "placement", parse_placement, NULL); STRUT_PARTIAL_SET(config_margins, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); obt_xml_register(i, "margins", parse_margins, NULL); config_theme = NULL; config_animate_iconify = TRUE; config_title_layout = g_strdup("NLIMC"); config_theme_keepborder = TRUE; config_theme_window_list_icon_size = 36; config_font_activewindow = NULL; config_font_inactivewindow = NULL; config_font_menuitem = NULL; config_font_menutitle = NULL; config_font_activeosd = NULL; config_font_inactiveosd = NULL; obt_xml_register(i, "theme", parse_theme, NULL); config_desktops_num = 4; config_screen_firstdesk = 1; config_desktops_names = NULL; config_desktop_popup_time = 875; obt_xml_register(i, "desktops", parse_desktops, NULL); config_resize_redraw = TRUE; config_resize_popup_show = 1; /* nonpixel increments */ config_resize_popup_pos = OB_RESIZE_POS_CENTER; GRAVITY_COORD_SET(config_resize_popup_fixed.x, 0, FALSE, FALSE); GRAVITY_COORD_SET(config_resize_popup_fixed.y, 0, FALSE, FALSE); obt_xml_register(i, "resize", parse_resize, NULL); config_dock_layer = OB_STACKING_LAYER_ABOVE; config_dock_pos = OB_DIRECTION_NORTHEAST; config_dock_floating = FALSE; config_dock_nostrut = FALSE; config_dock_x = 0; config_dock_y = 0; config_dock_orient = OB_ORIENTATION_VERT; config_dock_hide = FALSE; config_dock_hide_delay = 300; config_dock_show_delay = 300; config_dock_app_move_button = 2; /* middle */ config_dock_app_move_modifiers = 0; obt_xml_register(i, "dock", parse_dock, NULL); translate_key("C-g", &config_keyboard_reset_state, &config_keyboard_reset_keycode); config_keyboard_rebind_on_mapping_notify = TRUE; bind_default_keyboard(); obt_xml_register(i, "keyboard", parse_keyboard, NULL); config_mouse_threshold = 8; config_mouse_dclicktime = 500; config_mouse_screenedgetime = 400; config_mouse_screenedgewarp = FALSE; bind_default_mouse(); obt_xml_register(i, "mouse", parse_mouse, NULL); config_resist_win = 10; config_resist_edge = 20; obt_xml_register(i, "resistance", parse_resistance, NULL); config_menu_hide_delay = 250; config_menu_middle = FALSE; config_submenu_show_delay = 100; config_submenu_hide_delay = 400; config_menu_manage_desktops = TRUE; config_menu_files = NULL; config_menu_show_icons = TRUE; obt_xml_register(i, "menu", parse_menu, NULL); config_per_app_settings = NULL; obt_xml_register(i, "applications", parse_per_app_settings, NULL); } void config_shutdown(void) { GSList *it; g_free(config_theme); g_free(config_title_layout); RrFontClose(config_font_activewindow); RrFontClose(config_font_inactivewindow); RrFontClose(config_font_menuitem); RrFontClose(config_font_menutitle); RrFontClose(config_font_activeosd); RrFontClose(config_font_inactiveosd); for (it = config_desktops_names; it; it = g_slist_next(it)) g_free(it->data); g_slist_free(config_desktops_names); for (it = config_menu_files; it; it = g_slist_next(it)) g_free(it->data); g_slist_free(config_menu_files); for (it = config_per_app_settings; it; it = g_slist_next(it)) { ObAppSettings *itd = (ObAppSettings *)it->data; if (itd->name) g_pattern_spec_free(itd->name); if (itd->role) g_pattern_spec_free(itd->role); if (itd->title) g_pattern_spec_free(itd->title); if (itd->class) g_pattern_spec_free(itd->class); if (itd->group_name) g_pattern_spec_free(itd->group_name); if (itd->group_class) g_pattern_spec_free(itd->group_class); g_slice_free(ObAppSettings, it->data); } g_slist_free(config_per_app_settings); } openbox-3.6.1/openbox/config.h0000644000175300001440000002054112426440016013204 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- config.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __config_h #define __config_h #include "misc.h" #include "stacking.h" #include "place.h" #include "client.h" #include "geom.h" #include "moveresize.h" #include "obrender/render.h" #include "obt/xml.h" #include typedef struct _ObAppSettings ObAppSettings; struct _ObAppSettings { GPatternSpec *class; GPatternSpec *name; GPatternSpec *role; GPatternSpec *group_class; GPatternSpec *group_name; GPatternSpec *title; ObClientType type; GravityPoint position; gboolean pos_given; gboolean pos_force; gint width_num; gint width_denom; gint height_num; gint height_denom; guint desktop; gint shade; gint decor; gint focus; ObPlaceMonitor monitor_type; gint monitor; gint iconic; gint skip_pager; gint skip_taskbar; gint max_horz; gint max_vert; gint fullscreen; gint layer; }; /*! Should new windows be focused */ extern gboolean config_focus_new; /*! Focus windows when the mouse enters them */ extern gboolean config_focus_follow; /*! Timeout for focusing windows on focus follows mouse, in milliseconds */ extern guint config_focus_delay; /*! If windows should automatically be raised when they are focused in focus follows mouse */ extern gboolean config_focus_raise; /*! Focus the last focused window, not under the mouse, in follow mouse mode */ extern gboolean config_focus_last; /*! Try keep focus on the window under the mouse when the mouse is not moving */ extern gboolean config_focus_under_mouse; /*! Remove focus from windows when the mouse leaves them */ extern gboolean config_unfocus_leave; /*! The algorithm to use for placing new windows */ extern ObPlacePolicy config_place_policy; /*! Place windows in the center of the free area */ extern gboolean config_place_center; /*! Place windows on the active monitor (unless they are part of an application already on another monitor) */ extern ObPlaceMonitor config_place_monitor; /*! Place dialogs and stuff on this monitor. Index starts at 1. If this is 0, then use the config_primary_monitor instead. */ extern guint config_primary_monitor_index; /*! Where to place dialogs and stuff if it is not specified by index. */ extern ObPlaceMonitor config_primary_monitor; /*! User-specified margins around the edge of the screen(s) */ extern StrutPartial config_margins; /*! When true windows' contents are refreshed while they are resized; otherwise they are not updated until the resize is complete */ extern gboolean config_resize_redraw; /*! show move/resize popups? 0 = no, 1 = always, 2 = only resizing !1 increments */ extern gint config_resize_popup_show; /*! where to show the resize popup */ extern ObResizePopupPos config_resize_popup_pos; /*! where to place the popup if it's in a fixed position */ extern GravityPoint config_resize_popup_fixed; /*! The stacking layer the dock will reside in */ extern ObStackingLayer config_dock_layer; /*! Is the dock floating */ extern gboolean config_dock_floating; /*! Don't use a strut for the dock */ extern gboolean config_dock_nostrut; /*! Where to place the dock if not floating */ extern ObDirection config_dock_pos; /*! If config_dock_floating, this is the top-left corner's position */ extern gint config_dock_x; /*! If config_dock_floating, this is the top-left corner's position */ extern gint config_dock_y; /*! Whether the dock places the dockapps in it horizontally or vertically */ extern ObOrientation config_dock_orient; /*! Whether to auto-hide the dock when the pointer is not over it */ extern gboolean config_dock_hide; /*! The number of milliseconds to wait before hiding the dock */ extern guint config_dock_hide_delay; /*! The number of milliseconds to wait before showing the dock */ extern guint config_dock_show_delay; /*! The mouse button to be used to move dock apps */ extern guint config_dock_app_move_button; /*! The modifiers to be used with the button to move dock apps */ extern guint config_dock_app_move_modifiers; /*! The name of the theme */ extern gchar *config_theme; /*! Show the one-pixel border after toggleDecor */ extern gboolean config_theme_keepborder; /*! Titlebar button layout */ extern gchar *config_title_layout; /*! Animate windows iconifying and restoring */ extern gboolean config_animate_iconify; /*! Size of icons in focus switching dialogs */ extern guint config_theme_window_list_icon_size; /*! The font for the active window's title */ extern RrFont *config_font_activewindow; /*! The font for inactive windows' titles */ extern RrFont *config_font_inactivewindow; /*! The font for menu titles */ extern RrFont *config_font_menutitle; /*! The font for menu items */ extern RrFont *config_font_menuitem; /*! The font for on-screen-displays/popups' active text */ extern RrFont *config_font_activeosd; /*! The font for on-screen-displays/popups' inactive text */ extern RrFont *config_font_inactiveosd; /*! The number of desktops */ extern guint config_desktops_num; /*! Desktop to start on, put 5 to start in the center of a 3x3 grid */ extern guint config_screen_firstdesk; /*! Names for the desktops */ extern GSList *config_desktops_names; /*! Amount of time to show the desktop switch dialog */ extern guint config_desktop_popup_time; /*! The keycode of the key combo which resets the keybaord chains */ extern guint config_keyboard_reset_keycode; /*! The modifiers of the key combo which resets the keybaord chains */ extern guint config_keyboard_reset_state; /*! Reload the keyboard bindings when the mapping changes */ extern gboolean config_keyboard_rebind_on_mapping_notify; /*! Number of pixels a drag must go before being considered a drag */ extern gint config_mouse_threshold; /*! Number of milliseconds within which 2 clicks must occur to be a double-click */ extern gint config_mouse_dclicktime; /*! Number of milliseconds that the mouse has to be on the screen edge before a screen edge event is triggered */ extern gint config_mouse_screenedgetime; /*! When TRUE, the mouse is warped to the other side of the desktop after switching desktops from bumping the screen edge */ extern gboolean config_mouse_screenedgewarp; /*! Number of pixels to resist while crossing another window's edge */ extern gint config_resist_win; /*! Number of pixels to resist while crossing a screen's edge */ extern gint config_resist_edge; /*! Delay for hiding menu when opening in milliseconds */ extern guint config_menu_hide_delay; /*! Center menus vertically about the parent entry */ extern gboolean config_menu_middle; /*! Delay before opening a submenu in milliseconds */ extern guint config_submenu_show_delay; /*! Delay before closing a submenu in milliseconds */ extern guint config_submenu_hide_delay; /*! Show manage desktops in client_list_menu */ extern gboolean config_menu_manage_desktops; /*! Load & show icons in user-defined menus */ extern gboolean config_menu_show_icons; /*! User-specified menu files */ extern GSList *config_menu_files; /*! Per app settings */ extern GSList *config_per_app_settings; void config_startup(ObtXmlInst *i); void config_shutdown(void); /*! Create an ObAppSettings structure with the default values */ ObAppSettings* config_create_app_settings(void); /*! Copies any settings in src to dest, if they are their default value in src. */ void config_app_settings_copy_non_defaults(const ObAppSettings *src, ObAppSettings *dest); /*! Parses an x geometry style position, with some extensions like ratios and percentages */ void config_parse_gravity_coord(xmlNodePtr node, GravityCoord *c); /*! Parses a rational number or percentage into num and denom */ void config_parse_relative_number(gchar *s, gint *num, gint *denom); #endif openbox-3.6.1/openbox/debug.c0000644000175300001440000001432012426440016013016 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- debug.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "debug.h" #include "prompt.h" #include "openbox.h" #include "gettext.h" #include "obt/paths.h" #include #include #include #include #include #ifdef HAVE_UNISTD_H # include #endif static gboolean enabled_types[OB_DEBUG_TYPE_NUM] = {FALSE}; static FILE *log_file = NULL; static guint rr_handler_id = 0; static guint obt_handler_id = 0; static guint ob_handler_id = 0; static guint ob_handler_prompt_id = 0; static GList *prompt_queue = NULL; static gboolean allow_prompts = TRUE; static void log_handler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data); static void prompt_handler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data); void ob_debug_startup(void) { ObtPaths *p = obt_paths_new(); gchar *dir = g_build_filename(obt_paths_cache_home(p), "openbox", NULL); /* log messages to a log file! fancy, no? */ if (!obt_paths_mkdir_path(dir, 0777)) g_message(_("Unable to make directory '%s': %s"), dir, g_strerror(errno)); else { gchar *name = g_build_filename(obt_paths_cache_home(p), "openbox", "openbox.log", NULL); /* unlink it before opening to remove competition */ unlink(name); log_file = fopen(name, "w"); g_free(name); } rr_handler_id = g_log_set_handler("ObRender", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION, log_handler, NULL); obt_handler_id = g_log_set_handler("Obt", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION, log_handler, NULL); ob_handler_id = g_log_set_handler("Openbox", G_LOG_LEVEL_MASK | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION, log_handler, NULL); ob_handler_prompt_id = g_log_set_handler("Openbox", G_LOG_LEVEL_MASK & ~G_LOG_LEVEL_DEBUG, prompt_handler, NULL); obt_paths_unref(p); g_free(dir); } void ob_debug_shutdown(void) { g_log_remove_handler("ObRender", rr_handler_id); g_log_remove_handler("Obt", obt_handler_id); g_log_remove_handler("Openbox", ob_handler_id); g_log_remove_handler("Openbox", ob_handler_prompt_id); if (log_file) { fclose(log_file); log_file = NULL; } } void ob_debug_enable(ObDebugType type, gboolean enable) { g_assert(type < OB_DEBUG_TYPE_NUM); enabled_types[type] = enable; } static inline void log_print(FILE *out, const gchar* log_domain, const gchar *level, const gchar *message) { fprintf(out, "%s", log_domain); fprintf(out, "-"); fprintf(out, "%s", level); fprintf(out, ": "); fprintf(out, "%s", message); fprintf(out, "\n"); fflush(out); } static void log_handler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer data) { FILE *out; const gchar *level; switch (log_level & G_LOG_LEVEL_MASK) { case G_LOG_LEVEL_DEBUG: level = "Debug"; out = stdout; break; case G_LOG_LEVEL_INFO: level = "Info"; out = stdout; break; case G_LOG_LEVEL_MESSAGE: level = "Message"; out = stdout; break; case G_LOG_LEVEL_WARNING: level = "Warning"; out = stderr; break; case G_LOG_LEVEL_CRITICAL: level = "Critical"; out = stderr; break; case G_LOG_LEVEL_ERROR: level = "Error"; out = stderr; break; default: g_assert_not_reached(); /* invalid level.. */ } log_print(out, log_domain, level, message); if (log_file) log_print(log_file, log_domain, level, message); } static void prompt_handler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer data) { if (ob_state() == OB_STATE_RUNNING && allow_prompts) prompt_queue = g_list_prepend(prompt_queue, g_strdup(message)); else log_handler(log_domain, log_level, message, data); } static inline void log_argv(ObDebugType type, const gchar *format, va_list args) { const gchar *prefix; gchar *message; g_assert(type < OB_DEBUG_TYPE_NUM); if (!enabled_types[type]) return; switch (type) { case OB_DEBUG_FOCUS: prefix = "(FOCUS) "; break; case OB_DEBUG_APP_BUGS: prefix = "(APPLICATION BUG) "; break; case OB_DEBUG_SM: prefix = "(SESSION) "; break; default: prefix = NULL; break; } message = g_strdup_vprintf(format, args); if (prefix) { gchar *a = message; message = g_strconcat(prefix, message, NULL); g_free(a); } g_debug("%s", message); g_free(message); } void ob_debug(const gchar *a, ...) { va_list vl; va_start(vl, a); log_argv(OB_DEBUG_NORMAL, a, vl); va_end(vl); } void ob_debug_type(ObDebugType type, const gchar *a, ...) { va_list vl; va_start(vl, a); log_argv(type, a, vl); va_end(vl); } void ob_debug_show_prompts(void) { if (prompt_queue) { allow_prompts = FALSE; /* avoid recursive prompts */ while (prompt_queue) { prompt_show_message(prompt_queue->data, "Openbox", _("Close")); g_free(prompt_queue->data); prompt_queue = g_list_delete_link(prompt_queue, prompt_queue); } allow_prompts = TRUE; } } openbox-3.6.1/openbox/debug.h0000644000175300001440000000223612426440016013026 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- debug.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __ob__debug_h #define __ob__debug_h #include void ob_debug_startup(void); void ob_debug_shutdown(void); void ob_debug(const gchar *a, ...); typedef enum { OB_DEBUG_NORMAL, OB_DEBUG_FOCUS, OB_DEBUG_APP_BUGS, OB_DEBUG_SM, OB_DEBUG_TYPE_NUM } ObDebugType; void ob_debug_type(ObDebugType type, const gchar *a, ...); void ob_debug_enable(ObDebugType type, gboolean enable); void ob_debug_show_prompts(void); #endif openbox-3.6.1/openbox/dock.c0000644000175300001440000005305612426440016012661 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- dock.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "debug.h" #include "dock.h" #include "screen.h" #include "config.h" #include "grab.h" #include "openbox.h" #include "obrender/theme.h" #include "obt/prop.h" #define DOCK_EVENT_MASK (ButtonPressMask | ButtonReleaseMask | \ EnterWindowMask | LeaveWindowMask) #define DOCKAPP_EVENT_MASK (StructureNotifyMask) #define DOCK_NOPROPAGATEMASK (ButtonPressMask | ButtonReleaseMask | \ ButtonMotionMask) static ObDock *dock; static guint show_timeout_id; static guint hide_timeout_id; StrutPartial dock_strut; static void dock_app_grab_button(ObDockApp *app, gboolean grab) { if (grab) { grab_button_full(config_dock_app_move_button, config_dock_app_move_modifiers, app->icon_win, ButtonPressMask | ButtonReleaseMask | ButtonMotionMask, GrabModeAsync, OB_CURSOR_MOVE); } else { ungrab_button(config_dock_app_move_button, config_dock_app_move_modifiers, app->icon_win); } } static guint window_hash(Window *w) { return *w; } static gboolean window_comp(Window *w1, Window *w2) { return *w1 == *w2; } void dock_startup(gboolean reconfig) { XSetWindowAttributes attrib; if (reconfig) { GList *it; XSetWindowBorder(obt_display, dock->frame, RrColorPixel(ob_rr_theme->osd_border_color)); XSetWindowBorderWidth(obt_display, dock->frame, ob_rr_theme->obwidth); RrAppearanceFree(dock->a_frame); dock->a_frame = RrAppearanceCopy(ob_rr_theme->osd_bg); stacking_add(DOCK_AS_WINDOW(dock)); dock_configure(); dock_hide(TRUE); for (it = dock->dock_apps; it; it = g_list_next(it)) dock_app_grab_button(it->data, TRUE); return; } STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); dock = g_slice_new0(ObDock); dock->obwin.type = OB_WINDOW_CLASS_DOCK; dock->hidden = TRUE; dock->dock_map = g_hash_table_new((GHashFunc)window_hash, (GEqualFunc)window_comp); attrib.event_mask = DOCK_EVENT_MASK; attrib.override_redirect = True; attrib.do_not_propagate_mask = DOCK_NOPROPAGATEMASK; dock->frame = XCreateWindow(obt_display, obt_root(ob_screen), 0, 0, 1, 1, 0, RrDepth(ob_rr_inst), InputOutput, RrVisual(ob_rr_inst), CWOverrideRedirect | CWEventMask | CWDontPropagate, &attrib); dock->a_frame = RrAppearanceCopy(ob_rr_theme->osd_bg); XSetWindowBorder(obt_display, dock->frame, RrColorPixel(ob_rr_theme->osd_border_color)); XSetWindowBorderWidth(obt_display, dock->frame, ob_rr_theme->obwidth); /* Setting the window type so xcompmgr can tell what it is */ OBT_PROP_SET32(dock->frame, NET_WM_WINDOW_TYPE, ATOM, OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_DOCK)); window_add(&dock->frame, DOCK_AS_WINDOW(dock)); stacking_add(DOCK_AS_WINDOW(dock)); } void dock_shutdown(gboolean reconfig) { if (reconfig) { GList *it; stacking_remove(DOCK_AS_WINDOW(dock)); for (it = dock->dock_apps; it; it = g_list_next(it)) dock_app_grab_button(it->data, FALSE); return; } g_hash_table_destroy(dock->dock_map); XDestroyWindow(obt_display, dock->frame); RrAppearanceFree(dock->a_frame); window_remove(dock->frame); stacking_remove(dock); g_slice_free(ObDock, dock); dock = NULL; } void dock_manage(Window icon_win, Window name_win) { ObDockApp *app; XWindowAttributes attrib; gchar **data; app = g_slice_new0(ObDockApp); app->name_win = name_win; app->icon_win = icon_win; if (OBT_PROP_GETSS_TYPE(app->name_win, WM_CLASS, STRING_NO_CC, &data)) { if (data[0]) { app->name = g_strdup(data[0]); if (data[1]) app->class = g_strdup(data[1]); } g_strfreev(data); } if (app->name == NULL) app->name = g_strdup(""); if (app->class == NULL) app->class = g_strdup(""); if (XGetWindowAttributes(obt_display, app->icon_win, &attrib)) { app->w = attrib.width; app->h = attrib.height; } else { app->w = app->h = 64; } dock->dock_apps = g_list_append(dock->dock_apps, app); g_hash_table_insert(dock->dock_map, &app->icon_win, app); dock_configure(); XReparentWindow(obt_display, app->icon_win, dock->frame, app->x, app->y); /* This is the same case as in frame.c for client windows. When Openbox is starting, the window is already mapped so we see unmap events occur for it. There are 2 unmap events generated that we see, one with the 'event' member set the root window, and one set to the client, but both get handled and need to be ignored. */ if (ob_state() == OB_STATE_STARTING) app->ignore_unmaps += 2; XChangeSaveSet(obt_display, app->icon_win, SetModeInsert); XMapWindow(obt_display, app->icon_win); if (app->name_win != app->icon_win) { XReparentWindow(obt_display, app->name_win, dock->frame, -1000, -1000); XChangeSaveSet(obt_display, app->name_win, SetModeInsert); XMapWindow(obt_display, app->name_win); } XSync(obt_display, False); XSelectInput(obt_display, app->icon_win, DOCKAPP_EVENT_MASK); dock_app_grab_button(app, TRUE); ob_debug("Managed Dock App: 0x%lx 0x%lx (%s)", app->icon_win, app->name_win, app->class); grab_server(FALSE); } void dock_unmanage_all(void) { while (dock->dock_apps) dock_unmanage(dock->dock_apps->data, TRUE); } void dock_unmanage(ObDockApp *app, gboolean reparent) { dock_app_grab_button(app, FALSE); XSelectInput(obt_display, app->icon_win, NoEventMask); /* remove the window from our save set */ XChangeSaveSet(obt_display, app->icon_win, SetModeDelete); XSync(obt_display, False); if (reparent) { XReparentWindow(obt_display, app->icon_win, obt_root(ob_screen), 0, 0); if (app->name_win != app->icon_win) XReparentWindow(obt_display, app->name_win, obt_root(ob_screen), 0, 0); } dock->dock_apps = g_list_remove(dock->dock_apps, app); g_hash_table_remove(dock->dock_map, &app->icon_win); dock_configure(); ob_debug("Unmanaged Dock App: 0x%lx (%s)", app->icon_win, app->class); g_free(app->name); g_free(app->class); g_slice_free(ObDockApp, app); } void dock_configure(void) { GList *it; gint hspot, vspot; gint gravity; gint l, r, t, b; gint strw, strh; const Rect *a; gint hidesize; RrMargins(dock->a_frame, &l, &t, &r, &b); hidesize = MAX(1, ob_rr_theme->obwidth); dock->area.width = dock->area.height = 0; /* get the size */ for (it = dock->dock_apps; it; it = g_list_next(it)) { ObDockApp *app = it->data; switch (config_dock_orient) { case OB_ORIENTATION_HORZ: dock->area.width += app->w; dock->area.height = MAX(dock->area.height, app->h); break; case OB_ORIENTATION_VERT: dock->area.width = MAX(dock->area.width, app->w); dock->area.height += app->h; break; } } if (dock->dock_apps) { dock->area.width += l + r; dock->area.height += t + b; } hspot = l; vspot = t; /* position the apps */ for (it = dock->dock_apps; it; it = g_list_next(it)) { ObDockApp *app = it->data; switch (config_dock_orient) { case OB_ORIENTATION_HORZ: app->x = hspot; app->y = (dock->area.height - app->h) / 2; hspot += app->w; break; case OB_ORIENTATION_VERT: app->x = (dock->area.width - app->w) / 2; app->y = vspot; vspot += app->h; break; } XMoveWindow(obt_display, app->icon_win, app->x, app->y); } /* used for calculating offsets */ dock->area.width += ob_rr_theme->obwidth * 2; dock->area.height += ob_rr_theme->obwidth * 2; a = screen_physical_area_all_monitors(); /* calculate position */ if (config_dock_floating) { dock->area.x = config_dock_x; dock->area.y = config_dock_y; gravity = NorthWestGravity; } else { switch (config_dock_pos) { case OB_DIRECTION_NORTHWEST: dock->area.x = 0; dock->area.y = 0; gravity = NorthWestGravity; break; case OB_DIRECTION_NORTH: dock->area.x = a->width / 2; dock->area.y = 0; gravity = NorthGravity; break; case OB_DIRECTION_NORTHEAST: dock->area.x = a->width; dock->area.y = 0; gravity = NorthEastGravity; break; case OB_DIRECTION_WEST: dock->area.x = 0; dock->area.y = a->height / 2; gravity = WestGravity; break; case OB_DIRECTION_EAST: dock->area.x = a->width; dock->area.y = a->height / 2; gravity = EastGravity; break; case OB_DIRECTION_SOUTHWEST: dock->area.x = 0; dock->area.y = a->height; gravity = SouthWestGravity; break; case OB_DIRECTION_SOUTH: dock->area.x = a->width / 2; dock->area.y = a->height; gravity = SouthGravity; break; case OB_DIRECTION_SOUTHEAST: dock->area.x = a->width; dock->area.y = a->height; gravity = SouthEastGravity; break; default: g_assert_not_reached(); } } switch(gravity) { case NorthGravity: case CenterGravity: case SouthGravity: dock->area.x -= dock->area.width / 2; break; case NorthEastGravity: case EastGravity: case SouthEastGravity: dock->area.x -= dock->area.width; break; } switch(gravity) { case WestGravity: case CenterGravity: case EastGravity: dock->area.y -= dock->area.height / 2; break; case SouthWestGravity: case SouthGravity: case SouthEastGravity: dock->area.y -= dock->area.height; break; } if (config_dock_hide && dock->hidden) { if (!config_dock_floating) { switch (config_dock_pos) { case OB_DIRECTION_NORTHWEST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: dock->area.y -= dock->area.height - hidesize; break; case OB_ORIENTATION_VERT: dock->area.x -= dock->area.width - hidesize; break; } break; case OB_DIRECTION_NORTH: dock->area.y -= dock->area.height - hidesize; break; case OB_DIRECTION_NORTHEAST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: dock->area.y -= dock->area.height - hidesize; break; case OB_ORIENTATION_VERT: dock->area.x += dock->area.width - hidesize; break; } break; case OB_DIRECTION_WEST: dock->area.x -= dock->area.width - hidesize; break; case OB_DIRECTION_EAST: dock->area.x += dock->area.width - hidesize; break; case OB_DIRECTION_SOUTHWEST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: dock->area.y += dock->area.height - hidesize; break; case OB_ORIENTATION_VERT: dock->area.x -= dock->area.width - hidesize; break; } break; case OB_DIRECTION_SOUTH: dock->area.y += dock->area.height - hidesize; break; case OB_DIRECTION_SOUTHEAST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: dock->area.y += dock->area.height - hidesize; break; case OB_ORIENTATION_VERT: dock->area.x += dock->area.width - hidesize; break; } break; } } } if (!config_dock_floating && config_dock_hide) { strw = hidesize; strh = hidesize; } else { strw = dock->area.width; strh = dock->area.height; } /* set the strut */ if (!dock->dock_apps) { STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } else if (config_dock_floating || config_dock_nostrut) { STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); } else { switch (config_dock_pos) { case OB_DIRECTION_NORTHWEST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0, 0, 0, dock->area.x, dock->area.x + dock->area.width - 1, 0, 0, 0, 0); break; case OB_ORIENTATION_VERT: STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0, dock->area.y, dock->area.y + dock->area.height - 1, 0, 0, 0, 0, 0, 0); break; } break; case OB_DIRECTION_NORTH: STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0, 0, 0, dock->area.x, dock->area.x + dock->area.width - 1, 0, 0, 0, 0); break; case OB_DIRECTION_NORTHEAST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: STRUT_PARTIAL_SET(dock_strut, 0, strh, 0, 0, 0, 0, dock->area.x, dock->area.x + dock->area.width -1, 0, 0, 0, 0); break; case OB_ORIENTATION_VERT: STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0, 0, 0, 0, 0, dock->area.y, dock->area.y + dock->area.height - 1, 0, 0); break; } break; case OB_DIRECTION_WEST: STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0, dock->area.y, dock->area.y + dock->area.height - 1, 0, 0, 0, 0, 0, 0); break; case OB_DIRECTION_EAST: STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0, 0, 0, 0, 0, dock->area.y, dock->area.y + dock->area.height - 1, 0, 0); break; case OB_DIRECTION_SOUTHWEST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh, 0, 0, 0, 0, 0, 0, dock->area.x, dock->area.x + dock->area.width - 1); break; case OB_ORIENTATION_VERT: STRUT_PARTIAL_SET(dock_strut, strw, 0, 0, 0, dock->area.y, dock->area.y + dock->area.height - 1, 0, 0, 0, 0, 0, 0); break; } break; case OB_DIRECTION_SOUTH: STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh, 0, 0, 0, 0, 0, 0, dock->area.x, dock->area.x + dock->area.width - 1); break; case OB_DIRECTION_SOUTHEAST: switch (config_dock_orient) { case OB_ORIENTATION_HORZ: STRUT_PARTIAL_SET(dock_strut, 0, 0, 0, strh, 0, 0, 0, 0, 0, 0, dock->area.x, dock->area.x + dock->area.width - 1); break; case OB_ORIENTATION_VERT: STRUT_PARTIAL_SET(dock_strut, 0, 0, strw, 0, 0, 0, 0, 0, dock->area.y, dock->area.y + dock->area.height - 1, 0, 0); break; } break; } } /* not used for actually sizing shit */ dock->area.width -= ob_rr_theme->obwidth * 2; dock->area.height -= ob_rr_theme->obwidth * 2; if (dock->dock_apps) { g_assert(dock->area.width > 0); g_assert(dock->area.height > 0); XMoveResizeWindow(obt_display, dock->frame, dock->area.x, dock->area.y, dock->area.width, dock->area.height); RrPaint(dock->a_frame, dock->frame, dock->area.width, dock->area.height); XMapWindow(obt_display, dock->frame); } else XUnmapWindow(obt_display, dock->frame); /* but they are useful outside of this function! but don't add it if the dock is actually not visible */ if (dock->dock_apps) { dock->area.width += ob_rr_theme->obwidth * 2; dock->area.height += ob_rr_theme->obwidth * 2; } /* screen_resize() depends on this function to call screen_update_areas(), so if this changes, also update screen_resize(). */ screen_update_areas(); } void dock_app_configure(ObDockApp *app, gint w, gint h) { app->w = w; app->h = h; dock_configure(); } void dock_app_drag(ObDockApp *app, XMotionEvent *e) { ObDockApp *over = NULL; GList *it; gint x, y; gboolean after; gboolean stop; x = e->x_root; y = e->y_root; /* are we on top of the dock? */ if (!(x >= dock->area.x && y >= dock->area.y && x < dock->area.x + dock->area.width && y < dock->area.y + dock->area.height)) return; x -= dock->area.x; y -= dock->area.y; /* which dock app are we on top of? */ stop = FALSE; for (it = dock->dock_apps; it; it = g_list_next(it)) { over = it->data; switch (config_dock_orient) { case OB_ORIENTATION_HORZ: if (x >= over->x && x < over->x + over->w) stop = TRUE; break; case OB_ORIENTATION_VERT: if (y >= over->y && y < over->y + over->h) stop = TRUE; break; } /* dont go to it->next! */ if (stop) break; } if (!it || app == over) return; x -= over->x; y -= over->y; switch (config_dock_orient) { case OB_ORIENTATION_HORZ: after = (x > over->w / 2); break; case OB_ORIENTATION_VERT: after = (y > over->h / 2); break; default: g_assert_not_reached(); } /* remove before doing the it->next! */ dock->dock_apps = g_list_remove(dock->dock_apps, app); if (after) it = it->next; dock->dock_apps = g_list_insert_before(dock->dock_apps, it, app); dock_configure(); } static gboolean hide_timeout(gpointer data) { /* hide */ dock->hidden = TRUE; dock_configure(); return FALSE; /* don't repeat */ } static gboolean show_timeout(gpointer data) { /* show */ dock->hidden = FALSE; dock_configure(); return FALSE; /* don't repeat */ } static void destroy_timeout(gpointer data) { gint *id = data; *id = 0; } void dock_hide(gboolean hide) { if (!hide) { if (dock->hidden && config_dock_hide) { show_timeout_id = g_timeout_add_full(G_PRIORITY_DEFAULT, config_dock_show_delay, show_timeout, &show_timeout_id, destroy_timeout); } else if (!dock->hidden && config_dock_hide && hide_timeout_id) { if (hide_timeout_id) g_source_remove(hide_timeout_id); } } else { if (!dock->hidden && config_dock_hide) { hide_timeout_id = g_timeout_add_full(G_PRIORITY_DEFAULT, config_dock_hide_delay, hide_timeout, &hide_timeout_id, destroy_timeout); } else if (dock->hidden && config_dock_hide && show_timeout_id) { if (show_timeout_id) g_source_remove(show_timeout_id); } } } void dock_get_area(Rect *a) { RECT_SET(*a, dock->area.x, dock->area.y, dock->area.width, dock->area.height); } void dock_raise_dock(void) { stacking_raise(DOCK_AS_WINDOW(dock)); } void dock_lower_dock(void) { stacking_lower(DOCK_AS_WINDOW(dock)); } ObDockApp* dock_find_dockapp(Window xwin) { return g_hash_table_lookup(dock->dock_map, &xwin); } openbox-3.6.1/openbox/dock.h0000644000175300001440000000363012426440016012657 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- dock.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __dock_h #define __dock_h #include "window.h" #include "stacking.h" #include "geom.h" #include "obrender/render.h" #include #include #include typedef struct _ObDock ObDock; typedef struct _ObDockApp ObDockApp; struct _ObDock { ObWindow obwin; Window frame; RrAppearance *a_frame; /* actual position (when not auto-hidden) */ Rect area; gboolean hidden; GList *dock_apps; GHashTable *dock_map; }; struct _ObDockApp { gint ignore_unmaps; Window icon_win; Window name_win; gchar *name; gchar *class; gint x; gint y; gint w; gint h; }; extern StrutPartial dock_strut; void dock_startup(gboolean reconfig); void dock_shutdown(gboolean reconfig); void dock_configure(void); void dock_hide(gboolean hide); void dock_manage(Window icon_win, Window name_win); void dock_unmanage_all(void); void dock_unmanage(ObDockApp *app, gboolean reparent); void dock_app_drag(ObDockApp *app, XMotionEvent *e); void dock_app_configure(ObDockApp *app, gint w, gint h); void dock_get_area(Rect *a); void dock_raise_dock(void); void dock_lower_dock(void); ObDockApp* dock_find_dockapp(Window xwin); #endif openbox-3.6.1/openbox/event.c0000644000175300001440000024152412426440016013061 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- event.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "event.h" #include "debug.h" #include "window.h" #include "openbox.h" #include "dock.h" #include "actions.h" #include "client.h" #include "config.h" #include "screen.h" #include "frame.h" #include "grab.h" #include "menu.h" #include "prompt.h" #include "menuframe.h" #include "keyboard.h" #include "mouse.h" #include "focus.h" #include "focus_cycle.h" #include "moveresize.h" #include "group.h" #include "stacking.h" #include "ping.h" #include "obt/display.h" #include "obt/xqueue.h" #include "obt/prop.h" #include "obt/keyboard.h" #include #include #include #ifdef HAVE_SYS_SELECT_H # include #endif #ifdef HAVE_SIGNAL_H # include #endif #ifdef HAVE_UNISTD_H # include /* for usleep() */ #endif #ifdef USE_SM #include #endif typedef struct { gboolean ignored; } ObEventData; typedef struct { ObClient *client; Time time; gulong serial; } ObFocusDelayData; typedef struct { gulong start; /* inclusive */ gulong end; /* inclusive */ } ObSerialRange; static void event_process(const XEvent *e, gpointer data); static void event_handle_root(XEvent *e); static gboolean event_handle_menu_input(XEvent *e); static void event_handle_menu(ObMenuFrame *frame, XEvent *e); static gboolean event_handle_prompt(ObPrompt *p, XEvent *e); static void event_handle_dock(ObDock *s, XEvent *e); static void event_handle_dockapp(ObDockApp *app, XEvent *e); static void event_handle_client(ObClient *c, XEvent *e); static gboolean event_handle_user_input(ObClient *client, XEvent *e); static gboolean is_enter_focus_event_ignored(gulong serial); static void event_ignore_enter_range(gulong start, gulong end); static void focus_delay_dest(gpointer data); static void unfocus_delay_dest(gpointer data); static gboolean focus_delay_func(gpointer data); static gboolean unfocus_delay_func(gpointer data); static void focus_delay_client_dest(ObClient *client, gpointer data); Time event_last_user_time = CurrentTime; /*! The time of the current X event (if it had a timestamp) */ static Time event_curtime = CurrentTime; /*! The source time that started the current X event (user-provided, so not to be trusted) */ static Time event_sourcetime = CurrentTime; /*! The serial of the current X event */ static gulong event_curserial; static gboolean focus_left_screen = FALSE; static gboolean waiting_for_focusin = FALSE; /*! A list of ObSerialRanges which are to be ignored for mouse enter events */ static GSList *ignore_serials = NULL; static guint focus_delay_timeout_id = 0; static ObClient *focus_delay_timeout_client = NULL; static guint unfocus_delay_timeout_id = 0; static ObClient *unfocus_delay_timeout_client = NULL; #ifdef USE_SM static gboolean ice_handler(GIOChannel *source, GIOCondition cond, gpointer conn) { Bool b; IceProcessMessages(conn, NULL, &b); return TRUE; /* don't remove the event source */ } static void ice_watch(IceConn conn, IcePointer data, Bool opening, IcePointer *watch_data) { static guint id = 0; if (opening) { GIOChannel *ch; ch = g_io_channel_unix_new(IceConnectionNumber(conn)); id = g_io_add_watch(ch, G_IO_IN, ice_handler, conn); g_io_channel_unref(ch); } else if (id) { g_source_remove(id); id = 0; } } #endif void event_startup(gboolean reconfig) { if (reconfig) return; xqueue_add_callback(event_process, NULL); #ifdef USE_SM IceAddConnectionWatch(ice_watch, NULL); #endif client_add_destroy_notify(focus_delay_client_dest, NULL); } void event_shutdown(gboolean reconfig) { if (reconfig) return; #ifdef USE_SM IceRemoveConnectionWatch(ice_watch, NULL); #endif client_remove_destroy_notify(focus_delay_client_dest); } static Window event_get_window(XEvent *e) { Window window; /* pick a window */ switch (e->type) { case SelectionClear: window = obt_root(ob_screen); break; case CreateNotify: window = e->xcreatewindow.window; break; case MapRequest: window = e->xmaprequest.window; break; case MapNotify: window = e->xmap.window; break; case UnmapNotify: window = e->xunmap.window; break; case DestroyNotify: window = e->xdestroywindow.window; break; case ConfigureRequest: window = e->xconfigurerequest.window; break; case ConfigureNotify: window = e->xconfigure.window; break; default: #ifdef XKB if (obt_display_extension_xkb && e->type == obt_display_extension_xkb_basep) { switch (((XkbAnyEvent*)e)->xkb_type) { case XkbBellNotify: window = ((XkbBellNotifyEvent*)e)->window; break; default: window = None; } } else #endif #ifdef SYNC if (obt_display_extension_sync && e->type == obt_display_extension_sync_basep + XSyncAlarmNotify) { window = None; } else #endif window = e->xany.window; } return window; } static inline Time event_get_timestamp(const XEvent *e) { Time t = CurrentTime; /* grab the lasttime and hack up the state */ switch (e->type) { case ButtonPress: case ButtonRelease: t = e->xbutton.time; break; case KeyPress: t = e->xkey.time; break; case KeyRelease: t = e->xkey.time; break; case MotionNotify: t = e->xmotion.time; break; case PropertyNotify: t = e->xproperty.time; break; case EnterNotify: case LeaveNotify: t = e->xcrossing.time; break; default: #ifdef SYNC if (obt_display_extension_sync && e->type == obt_display_extension_sync_basep + XSyncAlarmNotify) { t = ((const XSyncAlarmNotifyEvent*)e)->time; } #endif /* if more event types are anticipated, get their timestamp explicitly */ break; } return t; } static void event_set_curtime(XEvent *e) { Time t = event_get_timestamp(e); /* watch that if we get an event earlier than the last specified user_time, which can happen if the clock goes backwards, we erase the last specified user_time */ if (t && event_last_user_time && event_time_after(event_last_user_time, t)) event_reset_user_time(); event_sourcetime = CurrentTime; event_curtime = t; } static void event_hack_mods(XEvent *e) { switch (e->type) { case ButtonPress: case ButtonRelease: e->xbutton.state = obt_keyboard_only_modmasks(e->xbutton.state); break; case KeyPress: break; case KeyRelease: break; case MotionNotify: e->xmotion.state = obt_keyboard_only_modmasks(e->xmotion.state); /* compress events */ { XEvent ce; ObtXQueueWindowType wt; wt.window = e->xmotion.window; wt.type = MotionNotify; while (xqueue_remove_local(&ce, xqueue_match_window_type, &wt)) { e->xmotion.x = ce.xmotion.x; e->xmotion.y = ce.xmotion.y; e->xmotion.x_root = ce.xmotion.x_root; e->xmotion.y_root = ce.xmotion.y_root; } } break; } } static gboolean wanted_focusevent(XEvent *e, gboolean in_client_only) { gint mode = e->xfocus.mode; gint detail = e->xfocus.detail; Window win = e->xany.window; if (e->type == FocusIn) { /* These are ones we never want.. */ /* This means focus was given by a keyboard/mouse grab. */ if (mode == NotifyGrab) return FALSE; /* This means focus was given back from a keyboard/mouse grab. */ if (mode == NotifyUngrab) return FALSE; /* These are the ones we want.. */ if (win == obt_root(ob_screen)) { /* If looking for a focus in on a client, then always return FALSE for focus in's to the root window */ if (in_client_only) return FALSE; /* This means focus reverted off of a client */ else if (detail == NotifyPointerRoot || detail == NotifyDetailNone || detail == NotifyInferior || /* This means focus got here from another screen */ detail == NotifyNonlinear) return TRUE; else return FALSE; } /* It was on a client, was it a valid one? It's possible to get a FocusIn event for a client that was managed but has disappeared. */ if (in_client_only) { ObWindow *w = window_find(e->xfocus.window); if (!w || !WINDOW_IS_CLIENT(w)) return FALSE; } else { /* This means focus reverted to parent from the client (this happens often during iconify animation) */ if (detail == NotifyInferior) return TRUE; } /* This means focus moved from the root window to a client */ if (detail == NotifyVirtual) return TRUE; /* This means focus moved from one client to another */ if (detail == NotifyNonlinearVirtual) return TRUE; /* Otherwise.. */ return FALSE; } else { g_assert(e->type == FocusOut); /* These are ones we never want.. */ /* This means focus was taken by a keyboard/mouse grab. */ if (mode == NotifyGrab) return FALSE; /* This means focus was grabbed on a window and it was released. */ if (mode == NotifyUngrab) return FALSE; /* Focus left the root window revertedto state */ if (win == obt_root(ob_screen)) return FALSE; /* These are the ones we want.. */ /* This means focus moved from a client to the root window */ if (detail == NotifyVirtual) return TRUE; /* This means focus moved from one client to another */ if (detail == NotifyNonlinearVirtual) return TRUE; /* Otherwise.. */ return FALSE; } } static gboolean event_look_for_focusin(XEvent *e, gpointer data) { return e->type == FocusIn && wanted_focusevent(e, FALSE); } static gboolean event_look_for_focusin_client(XEvent *e, gpointer data) { return e->type == FocusIn && wanted_focusevent(e, TRUE); } static void print_focusevent(XEvent *e) { gint mode = e->xfocus.mode; gint detail = e->xfocus.detail; Window win = e->xany.window; const gchar *modestr, *detailstr; switch (mode) { case NotifyNormal: modestr="NotifyNormal"; break; case NotifyGrab: modestr="NotifyGrab"; break; case NotifyUngrab: modestr="NotifyUngrab"; break; case NotifyWhileGrabbed: modestr="NotifyWhileGrabbed"; break; default: g_assert_not_reached(); } switch (detail) { case NotifyAncestor: detailstr="NotifyAncestor"; break; case NotifyVirtual: detailstr="NotifyVirtual"; break; case NotifyInferior: detailstr="NotifyInferior"; break; case NotifyNonlinear: detailstr="NotifyNonlinear"; break; case NotifyNonlinearVirtual: detailstr="NotifyNonlinearVirtual"; break; case NotifyPointer: detailstr="NotifyPointer"; break; case NotifyPointerRoot: detailstr="NotifyPointerRoot"; break; case NotifyDetailNone: detailstr="NotifyDetailNone"; break; default: g_assert_not_reached(); } if (mode == NotifyGrab || mode == NotifyUngrab) return; g_assert(modestr); g_assert(detailstr); ob_debug_type(OB_DEBUG_FOCUS, "Focus%s 0x%x mode=%s detail=%s", (e->xfocus.type == FocusIn ? "In" : "Out"), win, modestr, detailstr); } static void event_process(const XEvent *ec, gpointer data) { XEvent ee, *e; Window window; ObClient *client = NULL; ObDock *dock = NULL; ObDockApp *dockapp = NULL; ObWindow *obwin = NULL; ObMenuFrame *menu = NULL; ObPrompt *prompt = NULL; gboolean used; /* make a copy we can mangle */ ee = *ec; e = ⅇ window = event_get_window(e); if (window == obt_root(ob_screen)) /* don't do any lookups, waste of cpu */; else if ((obwin = window_find(window))) { switch (obwin->type) { case OB_WINDOW_CLASS_DOCK: dock = WINDOW_AS_DOCK(obwin); break; case OB_WINDOW_CLASS_CLIENT: client = WINDOW_AS_CLIENT(obwin); /* events on clients can be events on prompt windows too */ prompt = client->prompt; break; case OB_WINDOW_CLASS_MENUFRAME: menu = WINDOW_AS_MENUFRAME(obwin); break; case OB_WINDOW_CLASS_INTERNAL: /* we don't do anything with events directly on these windows */ break; case OB_WINDOW_CLASS_PROMPT: prompt = WINDOW_AS_PROMPT(obwin); break; } } else dockapp = dock_find_dockapp(window); event_set_curtime(e); event_curserial = e->xany.serial; event_hack_mods(e); /* deal with it in the kernel */ if (e->type == FocusIn) { print_focusevent(e); if (!wanted_focusevent(e, FALSE)) { if (waiting_for_focusin) { /* We were waiting for this FocusIn, since we got a FocusOut earlier, but it went to a window that isn't a client. */ ob_debug_type(OB_DEBUG_FOCUS, "Focus went to an unmanaged window 0x%x !", e->xfocus.window); focus_fallback(TRUE, config_focus_under_mouse, TRUE, TRUE); } } else if (client && e->xfocus.detail == NotifyInferior) { ob_debug_type(OB_DEBUG_FOCUS, "Focus went to the frame window"); focus_left_screen = FALSE; focus_fallback(FALSE, config_focus_under_mouse, TRUE, TRUE); /* We don't get a FocusOut for this case, because it's just moving from our Inferior up to us. This happens when iconifying a window with RevertToParent focus */ frame_adjust_focus(client->frame, FALSE); /* focus_set_client(NULL) has already been called */ } else if (e->xfocus.detail == NotifyPointerRoot || e->xfocus.detail == NotifyDetailNone || e->xfocus.detail == NotifyInferior || e->xfocus.detail == NotifyNonlinear) { ob_debug_type(OB_DEBUG_FOCUS, "Focus went to root or pointer root/none"); if (e->xfocus.detail == NotifyInferior || e->xfocus.detail == NotifyNonlinear) { focus_left_screen = FALSE; } /* If another FocusIn is in the queue then don't fallback yet. This fixes the fun case of: window map -> send focusin window unmap -> get focusout window map -> send focusin get first focus out -> fall back to something (new window hasn't received focus yet, so something else) -> send focusin which means the "something else" is the last thing to get a focusin sent to it, so the new window doesn't end up with focus. But if the other focus in is something like PointerRoot then we still want to fall back. */ if (xqueue_exists_local(event_look_for_focusin_client, NULL)) { ob_debug_type(OB_DEBUG_FOCUS, " but another FocusIn is coming"); } else { /* Focus has been reverted. FocusOut events come after UnmapNotify, so we don't need to worry about focusing an invalid window */ if (!focus_left_screen) focus_fallback(FALSE, config_focus_under_mouse, TRUE, TRUE); } } else if (!client) { ob_debug_type(OB_DEBUG_FOCUS, "Focus went to a window that is already gone"); /* If you send focus to a window and then it disappears, you can get the FocusIn for it, after it is unmanaged. Just wait for the next FocusOut/FocusIn pair, but make note that the window that was focused no longer is. */ focus_set_client(NULL); } else if (client != focus_client) { focus_left_screen = FALSE; frame_adjust_focus(client->frame, TRUE); focus_set_client(client); client_calc_layer(client); client_bring_helper_windows(client); } waiting_for_focusin = FALSE; } else if (e->type == FocusOut) { print_focusevent(e); if (!wanted_focusevent(e, FALSE)) ; /* skip this one */ /* Look for the followup FocusIn */ else if (!xqueue_exists_local(event_look_for_focusin, NULL)) { /* There is no FocusIn, this means focus went to a window that is not being managed, or a window on another screen. */ Window win, root; gint i; guint u; obt_display_ignore_errors(TRUE); if (XGetInputFocus(obt_display, &win, &i) && XGetGeometry(obt_display, win, &root, &i,&i,&u,&u,&u,&u) && root != obt_root(ob_screen)) { ob_debug_type(OB_DEBUG_FOCUS, "Focus went to another screen !"); focus_left_screen = TRUE; } else ob_debug_type(OB_DEBUG_FOCUS, "Focus went to a black hole !"); obt_display_ignore_errors(FALSE); /* nothing is focused */ focus_set_client(NULL); } else { /* Focus moved, so mark that we are waiting to process that FocusIn */ waiting_for_focusin = TRUE; /* nothing is focused right now, but will be again shortly */ focus_set_client(NULL); } if (client && client != focus_client) frame_adjust_focus(client->frame, FALSE); } else if (client) event_handle_client(client, e); else if (dockapp) event_handle_dockapp(dockapp, e); else if (dock) event_handle_dock(dock, e); else if (menu) event_handle_menu(menu, e); else if (window == obt_root(ob_screen)) event_handle_root(e); else if (e->type == MapRequest) window_manage(window); else if (e->type == MappingNotify) { /* keyboard layout changes for modifier mapping changes. reload the modifier map, and rebind all the key bindings as appropriate */ if (config_keyboard_rebind_on_mapping_notify) { ob_debug("Keyboard map changed. Reloading keyboard bindings."); ob_set_state(OB_STATE_RECONFIGURING); obt_keyboard_reload(); keyboard_rebind(); ob_set_state(OB_STATE_RUNNING); } } else if (e->type == ClientMessage) { /* This is for _NET_WM_REQUEST_FRAME_EXTENTS messages. They come for windows that are not managed yet. */ if (e->xclient.message_type == OBT_PROP_ATOM(NET_REQUEST_FRAME_EXTENTS)) { /* Pretend to manage the client, getting information used to determine its decorations */ ObClient *c = client_fake_manage(e->xclient.window); gulong vals[4]; /* set the frame extents on the window */ vals[0] = c->frame->size.left; vals[1] = c->frame->size.right; vals[2] = c->frame->size.top; vals[3] = c->frame->size.bottom; OBT_PROP_SETA32(e->xclient.window, NET_FRAME_EXTENTS, CARDINAL, vals, 4); /* Free the pretend client */ client_fake_unmanage(c); } } else if (e->type == ConfigureRequest) { /* unhandled configure requests must be used to configure the window directly */ XWindowChanges xwc; xwc.x = e->xconfigurerequest.x; xwc.y = e->xconfigurerequest.y; xwc.width = e->xconfigurerequest.width; xwc.height = e->xconfigurerequest.height; xwc.border_width = e->xconfigurerequest.border_width; xwc.sibling = e->xconfigurerequest.above; xwc.stack_mode = e->xconfigurerequest.detail; /* we are not to be held responsible if someone sends us an invalid request! */ obt_display_ignore_errors(TRUE); XConfigureWindow(obt_display, window, e->xconfigurerequest.value_mask, &xwc); obt_display_ignore_errors(FALSE); } #ifdef SYNC else if (obt_display_extension_sync && e->type == obt_display_extension_sync_basep + XSyncAlarmNotify) { XSyncAlarmNotifyEvent *se = (XSyncAlarmNotifyEvent*)e; if (se->alarm == moveresize_alarm && moveresize_in_progress) moveresize_event(e); } #endif if (e->type == ButtonPress || e->type == ButtonRelease) { ObWindow *w; static guint pressed = 0; event_sourcetime = event_curtime; /* If the button press was on some non-root window, or was physically on the root window... */ if (window != obt_root(ob_screen) || e->xbutton.subwindow == None || /* ...or if it is related to the last button press we handled... */ pressed == e->xbutton.button || /* ...or it if it was physically on an openbox internal window... */ ((w = window_find(e->xbutton.subwindow)) && (WINDOW_IS_INTERNAL(w) || WINDOW_IS_DOCK(w)))) /* ...then process the event, otherwise ignore it */ { used = event_handle_user_input(client, e); if (prompt && !used) used = event_handle_prompt(prompt, e); if (e->type == ButtonPress) pressed = e->xbutton.button; } } else if (e->type == KeyPress || e->type == KeyRelease || e->type == MotionNotify) { event_sourcetime = event_curtime; used = event_handle_user_input(client, e); if (prompt && !used) used = event_handle_prompt(prompt, e); } /* show any debug prompts that are queued */ ob_debug_show_prompts(); /* if something happens and it's not from an XEvent, then we don't know the time, so clear it here until the next event is handled */ event_curtime = event_sourcetime = CurrentTime; event_curserial = 0; } static void event_handle_root(XEvent *e) { Atom msgtype; switch(e->type) { case SelectionClear: ob_debug("Another WM has requested to replace us. Exiting."); ob_exit_replace(); break; case ClientMessage: if (e->xclient.format != 32) break; msgtype = e->xclient.message_type; if (msgtype == OBT_PROP_ATOM(NET_CURRENT_DESKTOP)) { guint d = e->xclient.data.l[0]; if (d < screen_num_desktops) { if (e->xclient.data.l[1] == 0) ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_CURRENT_DESKTOP message is missing " "a timestamp"); else event_sourcetime = e->xclient.data.l[1]; screen_set_desktop(d, TRUE); } } else if (msgtype == OBT_PROP_ATOM(NET_NUMBER_OF_DESKTOPS)) { guint d = e->xclient.data.l[0]; if (d > 0 && d <= 1000) screen_set_num_desktops(d); } else if (msgtype == OBT_PROP_ATOM(NET_SHOWING_DESKTOP)) { ObScreenShowDestopMode show_mode; if (e->xclient.data.l[0] != 0) show_mode = SCREEN_SHOW_DESKTOP_UNTIL_WINDOW; else show_mode = SCREEN_SHOW_DESKTOP_NO; screen_show_desktop(show_mode, NULL); } else if (msgtype == OBT_PROP_ATOM(OB_CONTROL)) { ob_debug("OB_CONTROL: %d", e->xclient.data.l[0]); if (e->xclient.data.l[0] == 1) ob_reconfigure(); else if (e->xclient.data.l[0] == 2) ob_restart(); else if (e->xclient.data.l[0] == 3) ob_exit(0); } else if (msgtype == OBT_PROP_ATOM(WM_PROTOCOLS)) { if ((Atom)e->xclient.data.l[0] == OBT_PROP_ATOM(NET_WM_PING)) ping_got_pong(e->xclient.data.l[1]); } break; case PropertyNotify: if (e->xproperty.atom == OBT_PROP_ATOM(NET_DESKTOP_NAMES)) { ob_debug("UPDATE DESKTOP NAMES"); screen_update_desktop_names(); } else if (e->xproperty.atom == OBT_PROP_ATOM(NET_DESKTOP_LAYOUT)) screen_update_layout(); break; case ConfigureNotify: #ifdef XRANDR XRRUpdateConfiguration(e); #endif screen_resize(); break; default: ; } } void event_enter_client(ObClient *client) { g_assert(config_focus_follow); if (is_enter_focus_event_ignored(event_curserial)) { ob_debug_type(OB_DEBUG_FOCUS, "Ignoring enter event with serial %lu " "on client 0x%x", event_curserial, client->window); return; } ob_debug_type(OB_DEBUG_FOCUS, "using enter event with serial %lu " "on client 0x%x", event_curserial, client->window); if (client_enter_focusable(client) && client_can_focus(client)) { if (config_focus_delay) { ObFocusDelayData *data; if (focus_delay_timeout_id) g_source_remove(focus_delay_timeout_id); data = g_slice_new(ObFocusDelayData); data->client = client; data->time = event_time(); data->serial = event_curserial; focus_delay_timeout_id = g_timeout_add_full(G_PRIORITY_DEFAULT, config_focus_delay, focus_delay_func, data, focus_delay_dest); focus_delay_timeout_client = client; } else { ObFocusDelayData data; data.client = client; data.time = event_time(); data.serial = event_curserial; focus_delay_func(&data); } } } void event_leave_client(ObClient *client) { g_assert(config_focus_follow); if (is_enter_focus_event_ignored(event_curserial)) { ob_debug_type(OB_DEBUG_FOCUS, "Ignoring leave event with serial %lu\n" "on client 0x%x", event_curserial, client->window); return; } if (client == focus_client) { if (config_focus_delay) { ObFocusDelayData *data; if (unfocus_delay_timeout_id) g_source_remove(unfocus_delay_timeout_id); data = g_slice_new(ObFocusDelayData); data->client = client; data->time = event_time(); data->serial = event_curserial; unfocus_delay_timeout_id = g_timeout_add_full(G_PRIORITY_DEFAULT, config_focus_delay, unfocus_delay_func, data, unfocus_delay_dest); unfocus_delay_timeout_client = client; } else { ObFocusDelayData data; data.client = client; data.time = event_time(); data.serial = event_curserial; unfocus_delay_func(&data); } } } static gboolean *context_to_button(ObFrame *f, ObFrameContext con, gboolean press) { if (press) { switch (con) { case OB_FRAME_CONTEXT_MAXIMIZE: return &f->max_press; case OB_FRAME_CONTEXT_CLOSE: return &f->close_press; case OB_FRAME_CONTEXT_ICONIFY: return &f->iconify_press; case OB_FRAME_CONTEXT_ALLDESKTOPS: return &f->desk_press; case OB_FRAME_CONTEXT_SHADE: return &f->shade_press; default: return NULL; } } else { switch (con) { case OB_FRAME_CONTEXT_MAXIMIZE: return &f->max_hover; case OB_FRAME_CONTEXT_CLOSE: return &f->close_hover; case OB_FRAME_CONTEXT_ICONIFY: return &f->iconify_hover; case OB_FRAME_CONTEXT_ALLDESKTOPS: return &f->desk_hover; case OB_FRAME_CONTEXT_SHADE: return &f->shade_hover; default: return NULL; } } } static gboolean more_client_message_event(Window window, Atom msgtype) { ObtXQueueWindowMessage wm; wm.window = window; wm.message = msgtype; return xqueue_exists_local(xqueue_match_window_message, &wm); } struct ObSkipPropertyChange { Window window; Atom prop; }; static gboolean skip_property_change(XEvent *e, gpointer data) { const struct ObSkipPropertyChange s = *(struct ObSkipPropertyChange*)data; if (e->type == PropertyNotify && e->xproperty.window == s.window) { const Atom a = e->xproperty.atom; const Atom b = s.prop; /* these are all updated together */ if ((a == OBT_PROP_ATOM(NET_WM_NAME) || a == OBT_PROP_ATOM(WM_NAME) || a == OBT_PROP_ATOM(NET_WM_ICON_NAME) || a == OBT_PROP_ATOM(WM_ICON_NAME)) && (b == OBT_PROP_ATOM(NET_WM_NAME) || b == OBT_PROP_ATOM(WM_NAME) || b == OBT_PROP_ATOM(NET_WM_ICON_NAME) || b == OBT_PROP_ATOM(WM_ICON_NAME))) { return TRUE; } else if (a == b && a == OBT_PROP_ATOM(NET_WM_ICON)) return TRUE; } return FALSE; } static void event_handle_client(ObClient *client, XEvent *e) { Atom msgtype; ObFrameContext con; gboolean *but; static gint px = -1, py = -1; static guint pb = 0; static ObFrameContext pcon = OB_FRAME_CONTEXT_NONE; switch (e->type) { case ButtonPress: /* save where the press occured for the first button pressed */ if (!pb) { pb = e->xbutton.button; px = e->xbutton.x; py = e->xbutton.y; pcon = frame_context(client, e->xbutton.window, px, py); pcon = mouse_button_frame_context(pcon, e->xbutton.button, e->xbutton.state); } case ButtonRelease: /* Wheel buttons don't draw because they are an instant click, so it is a waste of resources to go drawing it. if the user is doing an interactive thing, or has a menu open then the mouse is grabbed (possibly) and if we get these events we don't want to deal with them */ if (!(e->xbutton.button == 4 || e->xbutton.button == 5) && !grab_on_keyboard()) { /* use where the press occured */ con = frame_context(client, e->xbutton.window, px, py); con = mouse_button_frame_context(con, e->xbutton.button, e->xbutton.state); /* button presses on CLIENT_CONTEXTs are not accompanied by a release because they are Replayed to the client */ if ((e->type == ButtonRelease || CLIENT_CONTEXT(con, client)) && e->xbutton.button == pb) pb = 0, px = py = -1, pcon = OB_FRAME_CONTEXT_NONE; but = context_to_button(client->frame, con, TRUE); if (but) { *but = (e->type == ButtonPress); frame_adjust_state(client->frame); } } break; case MotionNotify: /* when there is a grab on the pointer, we won't get enter/leave notifies, but we still get motion events */ if (grab_on_pointer()) break; con = frame_context(client, e->xmotion.window, e->xmotion.x, e->xmotion.y); switch (con) { case OB_FRAME_CONTEXT_TITLEBAR: case OB_FRAME_CONTEXT_TLCORNER: case OB_FRAME_CONTEXT_TRCORNER: /* we've left the button area inside the titlebar */ if (client->frame->max_hover || client->frame->desk_hover || client->frame->shade_hover || client->frame->iconify_hover || client->frame->close_hover) { client->frame->max_hover = client->frame->desk_hover = client->frame->shade_hover = client->frame->iconify_hover = client->frame->close_hover = FALSE; frame_adjust_state(client->frame); } break; default: but = context_to_button(client->frame, con, FALSE); if (but && !*but && !pb) { *but = TRUE; frame_adjust_state(client->frame); } break; } break; case LeaveNotify: con = frame_context(client, e->xcrossing.window, e->xcrossing.x, e->xcrossing.y); switch (con) { case OB_FRAME_CONTEXT_TITLEBAR: case OB_FRAME_CONTEXT_TLCORNER: case OB_FRAME_CONTEXT_TRCORNER: /* we've left the button area inside the titlebar */ client->frame->max_hover = client->frame->desk_hover = client->frame->shade_hover = client->frame->iconify_hover = client->frame->close_hover = FALSE; if (e->xcrossing.mode == NotifyGrab) { client->frame->max_press = client->frame->desk_press = client->frame->shade_press = client->frame->iconify_press = client->frame->close_press = FALSE; } break; case OB_FRAME_CONTEXT_FRAME: /* When the mouse leaves an animating window, don't use the corresponding enter events. Pretend like the animating window doesn't even exist..! */ if (frame_iconify_animating(client->frame)) event_end_ignore_all_enters(event_start_ignore_all_enters()); ob_debug_type(OB_DEBUG_FOCUS, "%sNotify mode %d detail %d on %lx", (e->type == EnterNotify ? "Enter" : "Leave"), e->xcrossing.mode, e->xcrossing.detail, (client?client->window:0)); if (grab_on_keyboard()) break; if (config_focus_follow && /* leave inferior events can happen when the mouse goes onto the window's border and then into the window before the delay is up */ e->xcrossing.detail != NotifyInferior) { if (config_focus_delay && focus_delay_timeout_id) g_source_remove(focus_delay_timeout_id); if (config_unfocus_leave) event_leave_client(client); } break; default: but = context_to_button(client->frame, con, FALSE); if (but) { *but = FALSE; if (e->xcrossing.mode == NotifyGrab) { but = context_to_button(client->frame, con, TRUE); *but = FALSE; } frame_adjust_state(client->frame); } break; } break; case EnterNotify: { con = frame_context(client, e->xcrossing.window, e->xcrossing.x, e->xcrossing.y); switch (con) { case OB_FRAME_CONTEXT_FRAME: if (grab_on_keyboard()) break; if (e->xcrossing.mode == NotifyGrab || (e->xcrossing.mode == NotifyUngrab && /* ungrab enters are used when _under_ mouse is being used */ !(config_focus_follow && config_focus_under_mouse)) || /*ignore enters when we're already in the window */ e->xcrossing.detail == NotifyInferior) { ob_debug_type(OB_DEBUG_FOCUS, "%sNotify mode %d detail %d serial %lu on %lx " "IGNORED", (e->type == EnterNotify ? "Enter" : "Leave"), e->xcrossing.mode, e->xcrossing.detail, e->xcrossing.serial, client?client->window:0); } else { ob_debug_type(OB_DEBUG_FOCUS, "%sNotify mode %d detail %d serial %lu on %lx, " "focusing window", (e->type == EnterNotify ? "Enter" : "Leave"), e->xcrossing.mode, e->xcrossing.detail, e->xcrossing.serial, (client?client->window:0)); if (config_focus_follow) { if (config_focus_delay && unfocus_delay_timeout_id) g_source_remove(unfocus_delay_timeout_id); event_enter_client(client); } } break; default: but = context_to_button(client->frame, con, FALSE); if (but) { *but = TRUE; if (e->xcrossing.mode == NotifyUngrab) { but = context_to_button(client->frame, con, TRUE); *but = (con == pcon); } frame_adjust_state(client->frame); } break; } break; } case ConfigureRequest: { /* dont compress these unless you're going to watch for property notifies in between (these can change what the configure would do to the window). also you can't compress stacking events */ gint x, y, w, h; gboolean move = FALSE; gboolean resize = FALSE; /* get the current area */ RECT_TO_DIMS(client->area, x, y, w, h); ob_debug("ConfigureRequest for \"%s\" desktop %d wmstate %d " "visible %d", client->title, screen_desktop, client->wmstate, client->frame->visible); ob_debug(" x %d y %d w %d h %d b %d", x, y, w, h, client->border_width); if (e->xconfigurerequest.value_mask & CWBorderWidth) if (client->border_width != e->xconfigurerequest.border_width) { client->border_width = e->xconfigurerequest.border_width; /* if the border width is changing then that is the same as requesting a resize, but we don't actually change the client's border, so it will change their root coordinates (since they include the border width) and we need to a notify then */ move = TRUE; } if (e->xconfigurerequest.value_mask & CWStackMode) { ObWindow *sibling = NULL; gulong ignore_start; gboolean ok = TRUE; /* get the sibling */ if (e->xconfigurerequest.value_mask & CWSibling) { ObWindow *win; win = window_find(e->xconfigurerequest.above); if (win && WINDOW_IS_CLIENT(win) && WINDOW_AS_CLIENT(win) != client) { sibling = win; } else if (win && WINDOW_IS_DOCK(win)) { sibling = win; } else /* an invalid sibling was specified so don't restack at all, it won't make sense no matter what we do */ ok = FALSE; } if (ok) { if (!config_focus_under_mouse) ignore_start = event_start_ignore_all_enters(); stacking_restack_request(client, sibling, e->xconfigurerequest.detail); if (!config_focus_under_mouse) event_end_ignore_all_enters(ignore_start); } /* a stacking change moves the window without resizing */ move = TRUE; } if ((e->xconfigurerequest.value_mask & CWX) || (e->xconfigurerequest.value_mask & CWY) || (e->xconfigurerequest.value_mask & CWWidth) || (e->xconfigurerequest.value_mask & CWHeight)) { /* don't allow clients to move shaded windows (fvwm does this) */ if (e->xconfigurerequest.value_mask & CWX) { if (!client->shaded) x = e->xconfigurerequest.x; move = TRUE; } if (e->xconfigurerequest.value_mask & CWY) { if (!client->shaded) y = e->xconfigurerequest.y; move = TRUE; } if (e->xconfigurerequest.value_mask & CWWidth) { w = e->xconfigurerequest.width; resize = TRUE; } if (e->xconfigurerequest.value_mask & CWHeight) { h = e->xconfigurerequest.height; resize = TRUE; } } ob_debug("ConfigureRequest x(%d) %d y(%d) %d w(%d) %d h(%d) %d " "move %d resize %d", e->xconfigurerequest.value_mask & CWX, x, e->xconfigurerequest.value_mask & CWY, y, e->xconfigurerequest.value_mask & CWWidth, w, e->xconfigurerequest.value_mask & CWHeight, h, move, resize); /* check for broken apps moving to their root position XXX remove this some day...that would be nice. right now all kde apps do this when they try activate themselves on another desktop. eg. open amarok window on desktop 1, switch to desktop 2, click amarok tray icon. it will move by its decoration size. */ if (x != client->area.x && x == (client->frame->area.x + client->frame->size.left - (gint)client->border_width) && y != client->area.y && y == (client->frame->area.y + client->frame->size.top - (gint)client->border_width) && w == client->area.width && h == client->area.height) { ob_debug_type(OB_DEBUG_APP_BUGS, "Application %s is trying to move via " "ConfigureRequest to it's root window position " "but it is not using StaticGravity", client->title); /* don't move it */ x = client->area.x; y = client->area.y; /* they still requested a move, so don't change whether a notify is sent or not */ } /* check for broken apps (java swing) moving to 0,0 when there is a strut there. XXX remove this some day...that would be nice. but really unexpected from Sun Microsystems. */ if (x == 0 && y == 0 && client->gravity == NorthWestGravity && client_normal(client)) { const Rect to = { x, y, w, h }; /* oldschool fullscreen windows are allowed */ if (!client_is_oldfullscreen(client, &to)) { Rect *r; r = screen_area(client->desktop, SCREEN_AREA_ALL_MONITORS, NULL); if (r->x || r->y) { /* move the window only to the corner outside struts */ x = r->x; y = r->y; ob_debug_type(OB_DEBUG_APP_BUGS, "Application %s is trying to move via " "ConfigureRequest to 0,0 using " "NorthWestGravity, while there is a " "strut there. " "Moving buggy app from (0,0) to (%d,%d)", client->title, r->x, r->y); } g_slice_free(Rect, r); /* they still requested a move, so don't change whether a notify is sent or not */ } } { gint lw, lh; client_try_configure(client, &x, &y, &w, &h, &lw, &lh, FALSE); /* if x was not given, then use gravity to figure out the new x. the reference point should not be moved */ if ((e->xconfigurerequest.value_mask & CWWidth && !(e->xconfigurerequest.value_mask & CWX))) client_gravity_resize_w(client, &x, client->area.width, w); /* same for y */ if ((e->xconfigurerequest.value_mask & CWHeight && !(e->xconfigurerequest.value_mask & CWY))) client_gravity_resize_h(client, &y, client->area.height,h); client_find_onscreen(client, &x, &y, w, h, FALSE); ob_debug("Granting ConfigureRequest x %d y %d w %d h %d", x, y, w, h); client_configure(client, x, y, w, h, FALSE, TRUE, TRUE); } break; } case UnmapNotify: ob_debug("UnmapNotify for window 0x%x eventwin 0x%x sendevent %d " "ignores left %d", client->window, e->xunmap.event, e->xunmap.from_configure, client->ignore_unmaps); if (client->ignore_unmaps) { client->ignore_unmaps--; break; } client_unmanage(client); break; case DestroyNotify: ob_debug("DestroyNotify for window 0x%x", client->window); client_unmanage(client); break; case ReparentNotify: /* this is when the client is first taken captive in the frame */ if (e->xreparent.parent == client->frame->window) break; /* This event is quite rare and is usually handled in unmapHandler. However, if the window is unmapped when the reparent event occurs, the window manager never sees it because an unmap event is not sent to an already unmapped window. */ ob_debug("ReparentNotify for window 0x%x", client->window); client_unmanage(client); break; case MapRequest: ob_debug("MapRequest for 0x%lx", client->window); if (!client->iconic) break; /* this normally doesn't happen, but if it does, we don't want it! it can happen now when the window is on another desktop, but we still don't want it! */ client_activate(client, FALSE, FALSE, TRUE, TRUE, TRUE); break; case ClientMessage: /* validate cuz we query stuff off the client here */ if (!client_validate(client)) break; if (e->xclient.format != 32) return; msgtype = e->xclient.message_type; if (msgtype == OBT_PROP_ATOM(WM_CHANGE_STATE)) { if (!more_client_message_event(client->window, msgtype)) client_set_wm_state(client, e->xclient.data.l[0]); } else if (msgtype == OBT_PROP_ATOM(NET_WM_DESKTOP)) { if (!more_client_message_event(client->window, msgtype) && ((unsigned)e->xclient.data.l[0] < screen_num_desktops || (unsigned)e->xclient.data.l[0] == DESKTOP_ALL)) { client_set_desktop(client, (unsigned)e->xclient.data.l[0], FALSE, FALSE); } } else if (msgtype == OBT_PROP_ATOM(NET_WM_STATE)) { gulong ignore_start; /* can't compress these */ ob_debug("net_wm_state %s %ld %ld for 0x%lx", (e->xclient.data.l[0] == 0 ? "Remove" : e->xclient.data.l[0] == 1 ? "Add" : e->xclient.data.l[0] == 2 ? "Toggle" : "INVALID"), e->xclient.data.l[1], e->xclient.data.l[2], client->window); /* ignore enter events caused by these like ob actions do */ if (!config_focus_under_mouse) ignore_start = event_start_ignore_all_enters(); client_set_state(client, e->xclient.data.l[0], e->xclient.data.l[1], e->xclient.data.l[2]); if (!config_focus_under_mouse) event_end_ignore_all_enters(ignore_start); } else if (msgtype == OBT_PROP_ATOM(NET_CLOSE_WINDOW)) { ob_debug("net_close_window for 0x%lx", client->window); client_close(client); } else if (msgtype == OBT_PROP_ATOM(NET_ACTIVE_WINDOW)) { ob_debug("net_active_window for 0x%lx source=%s", client->window, (e->xclient.data.l[0] == 0 ? "unknown" : (e->xclient.data.l[0] == 1 ? "application" : (e->xclient.data.l[0] == 2 ? "user" : "INVALID")))); /* XXX make use of data.l[2] !? */ if (e->xclient.data.l[0] == 1 || e->xclient.data.l[0] == 2) { /* we can not trust the timestamp from applications. e.g. chromium passes a very old timestamp. openbox thinks the window will get focus and calls XSetInputFocus with the (old) timestamp, which doesn't end up moving focus at all. but the window is raised, not hilited, etc, as if it was really going to get focus. so do not use this timestamp in event_curtime, as this would be used in XSetInputFocus. */ event_sourcetime = e->xclient.data.l[1]; if (e->xclient.data.l[1] == 0) ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_ACTIVE_WINDOW message for window %s is" " missing a timestamp", client->title); } else ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_ACTIVE_WINDOW message for window %s is " "missing source indication", client->title); /* TODO(danakj) This should use (e->xclient.data.l[0] == 0 || e->xclient.data.l[0] == 2) to determine if a user requested the activation, however GTK+ applications seem unable to make this distinction ever (including panels such as xfce4-panel and gnome-panel). So we are left just assuming all activations are from the user. */ client_activate(client, FALSE, FALSE, TRUE, TRUE, TRUE); } else if (msgtype == OBT_PROP_ATOM(NET_WM_MOVERESIZE)) { ob_debug("net_wm_moveresize for 0x%lx direction %d", client->window, e->xclient.data.l[2]); if ((Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPLEFT) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOP) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPRIGHT) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_RIGHT) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_RIGHT) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOM) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_LEFT) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_KEYBOARD) || (Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE_KEYBOARD)) { moveresize_start(client, e->xclient.data.l[0], e->xclient.data.l[1], e->xclient.data.l[3], e->xclient.data.l[2]); } else if ((Atom)e->xclient.data.l[2] == OBT_PROP_ATOM(NET_WM_MOVERESIZE_CANCEL)) if (moveresize_client) moveresize_end(TRUE); } else if (msgtype == OBT_PROP_ATOM(NET_MOVERESIZE_WINDOW)) { gint ograv, x, y, w, h; ograv = client->gravity; if (e->xclient.data.l[0] & 0xff) client->gravity = e->xclient.data.l[0] & 0xff; if (e->xclient.data.l[0] & 1 << 8) x = e->xclient.data.l[1]; else x = client->area.x; if (e->xclient.data.l[0] & 1 << 9) y = e->xclient.data.l[2]; else y = client->area.y; if (e->xclient.data.l[0] & 1 << 10) { w = e->xclient.data.l[3]; /* if x was not given, then use gravity to figure out the new x. the reference point should not be moved */ if (!(e->xclient.data.l[0] & 1 << 8)) client_gravity_resize_w(client, &x, client->area.width, w); } else w = client->area.width; if (e->xclient.data.l[0] & 1 << 11) { h = e->xclient.data.l[4]; /* same for y */ if (!(e->xclient.data.l[0] & 1 << 9)) client_gravity_resize_h(client, &y, client->area.height,h); } else h = client->area.height; ob_debug("MOVERESIZE x %d %d y %d %d (gravity %d)", e->xclient.data.l[0] & 1 << 8, x, e->xclient.data.l[0] & 1 << 9, y, client->gravity); client_find_onscreen(client, &x, &y, w, h, FALSE); client_configure(client, x, y, w, h, FALSE, TRUE, FALSE); client->gravity = ograv; } else if (msgtype == OBT_PROP_ATOM(NET_RESTACK_WINDOW)) { if (e->xclient.data.l[0] != 2) { ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_RESTACK_WINDOW sent for window %s with " "invalid source indication %ld", client->title, e->xclient.data.l[0]); } else { ObWindow *sibling = NULL; if (e->xclient.data.l[1]) { ObWindow *win = window_find(e->xclient.data.l[1]); if (WINDOW_IS_CLIENT(win) && WINDOW_AS_CLIENT(win) != client) { sibling = win; } if (WINDOW_IS_DOCK(win)) { sibling = win; } if (sibling == NULL) ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_RESTACK_WINDOW sent for window %s " "with invalid sibling 0x%x", client->title, e->xclient.data.l[1]); } if (e->xclient.data.l[2] == Below || e->xclient.data.l[2] == BottomIf || e->xclient.data.l[2] == Above || e->xclient.data.l[2] == TopIf || e->xclient.data.l[2] == Opposite) { gulong ignore_start; if (!config_focus_under_mouse) ignore_start = event_start_ignore_all_enters(); /* just raise, don't activate */ stacking_restack_request(client, sibling, e->xclient.data.l[2]); if (!config_focus_under_mouse) event_end_ignore_all_enters(ignore_start); /* send a synthetic ConfigureNotify, cuz this is supposed to be like a ConfigureRequest. */ client_reconfigure(client, TRUE); } else ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_RESTACK_WINDOW sent for window %s " "with invalid detail %d", client->title, e->xclient.data.l[2]); } } break; case PropertyNotify: /* validate cuz we query stuff off the client here */ if (!client_validate(client)) break; msgtype = e->xproperty.atom; /* ignore changes to some properties if there is another change coming in the queue */ { struct ObSkipPropertyChange s; s.window = client->window; s.prop = msgtype; if (xqueue_exists_local(skip_property_change, &s)) break; } msgtype = e->xproperty.atom; if (msgtype == XA_WM_NORMAL_HINTS) { int x, y, w, h, lw, lh; ob_debug("Update NORMAL hints"); client_update_normal_hints(client); /* normal hints can make a window non-resizable */ client_setup_decor_and_functions(client, FALSE); x = client->area.x; y = client->area.y; w = client->area.width; h = client->area.height; /* apply the new normal hints */ client_try_configure(client, &x, &y, &w, &h, &lw, &lh, FALSE); /* make sure the window is visible, and if the window is resized off-screen due to the normal hints changing then this will push it back onto the screen. */ client_find_onscreen(client, &x, &y, w, h, FALSE); /* make sure the client's sizes are within its bounds, but don't make it reply with a configurenotify unless something changed. emacs will update its normal hints every time it receives a configurenotify */ client_configure(client, x, y, w, h, FALSE, TRUE, FALSE); } else if (msgtype == OBT_PROP_ATOM(MOTIF_WM_HINTS)) { client_get_mwm_hints(client); /* This can override some mwm hints */ client_get_type_and_transientness(client); /* Apply the changes to the window */ client_setup_decor_and_functions(client, TRUE); } else if (msgtype == XA_WM_HINTS) { client_update_wmhints(client); } else if (msgtype == XA_WM_TRANSIENT_FOR) { /* get the transient-ness first, as this affects if the client decides to be transient for the group or not in client_update_transient_for() */ client_get_type_and_transientness(client); client_update_transient_for(client); /* type may have changed, so update the layer */ client_calc_layer(client); client_setup_decor_and_functions(client, TRUE); } else if (msgtype == OBT_PROP_ATOM(NET_WM_NAME) || msgtype == OBT_PROP_ATOM(WM_NAME) || msgtype == OBT_PROP_ATOM(NET_WM_ICON_NAME) || msgtype == OBT_PROP_ATOM(WM_ICON_NAME)) { client_update_title(client); } else if (msgtype == OBT_PROP_ATOM(WM_PROTOCOLS)) { client_update_protocols(client); } else if (msgtype == OBT_PROP_ATOM(NET_WM_STRUT) || msgtype == OBT_PROP_ATOM(NET_WM_STRUT_PARTIAL)) { client_update_strut(client); } else if (msgtype == OBT_PROP_ATOM(NET_WM_ICON)) { client_update_icons(client); } else if (msgtype == OBT_PROP_ATOM(NET_WM_ICON_GEOMETRY)) { client_update_icon_geometry(client); } else if (msgtype == OBT_PROP_ATOM(NET_WM_USER_TIME)) { guint32 t; if (client == focus_client && OBT_PROP_GET32(client->window, NET_WM_USER_TIME, CARDINAL, &t) && t && !event_time_after(t, e->xproperty.time) && (!event_last_user_time || event_time_after(t, event_last_user_time))) { event_last_user_time = t; } } else if (msgtype == OBT_PROP_ATOM(NET_WM_WINDOW_OPACITY)) { client_update_opacity(client); } #ifdef SYNC else if (msgtype == OBT_PROP_ATOM(NET_WM_SYNC_REQUEST_COUNTER)) { /* if they are resizing right now this would cause weird behaviour. if one day a user reports clients stop resizing, then handle this better by resetting a new XSync alarm and stuff on the new counter, but I expect it will never happen */ if (moveresize_client == client) moveresize_end(FALSE); client_update_sync_request_counter(client); } #endif break; case ColormapNotify: client_update_colormap(client, e->xcolormap.colormap); break; default: ; #ifdef SHAPE { int kind; if (obt_display_extension_shape && e->type == obt_display_extension_shape_basep) { switch (((XShapeEvent*)e)->kind) { case ShapeBounding: case ShapeClip: client->shaped = ((XShapeEvent*)e)->shaped; kind = ShapeBounding; break; #ifdef ShapeInput case ShapeInput: client->shaped_input = ((XShapeEvent*)e)->shaped; kind = ShapeInput; break; #endif default: g_assert_not_reached(); } frame_adjust_shape_kind(client->frame, kind); } } #endif } } static void event_handle_dock(ObDock *s, XEvent *e) { switch (e->type) { case EnterNotify: dock_hide(FALSE); break; case LeaveNotify: /* don't hide when moving into a dock app */ if (e->xcrossing.detail != NotifyInferior) dock_hide(TRUE); break; } } static void event_handle_dockapp(ObDockApp *app, XEvent *e) { switch (e->type) { case MotionNotify: dock_app_drag(app, &e->xmotion); break; case UnmapNotify: if (app->ignore_unmaps) { app->ignore_unmaps--; break; } dock_unmanage(app, TRUE); break; case DestroyNotify: case ReparentNotify: dock_unmanage(app, FALSE); break; case ConfigureNotify: dock_app_configure(app, e->xconfigure.width, e->xconfigure.height); break; } } static ObMenuFrame* find_active_menu(void) { GList *it; ObMenuFrame *ret = NULL; for (it = menu_frame_visible; it; it = g_list_next(it)) { ret = it->data; if (ret->selected) break; ret = NULL; } return ret; } static ObMenuFrame* find_active_or_last_menu(void) { ObMenuFrame *ret = NULL; ret = find_active_menu(); if (!ret && menu_frame_visible) ret = menu_frame_visible->data; return ret; } static gboolean event_handle_prompt(ObPrompt *p, XEvent *e) { switch (e->type) { case ButtonPress: case ButtonRelease: case MotionNotify: return prompt_mouse_event(p, e); break; case KeyPress: return prompt_key_event(p, e); break; } return FALSE; } static gboolean event_handle_menu_input(XEvent *ev) { gboolean ret = FALSE; if (ev->type == ButtonRelease || ev->type == ButtonPress) { ObMenuEntryFrame *e; if ((ev->xbutton.button < 4 || ev->xbutton.button > 5) && ((ev->type == ButtonRelease && menu_hide_delay_reached()) || ev->type == ButtonPress)) { if ((e = menu_entry_frame_under(ev->xbutton.x_root, ev->xbutton.y_root))) { if (ev->type == ButtonPress) { /* We know this is a new press, so we don't have to * block release events anymore */ menu_hide_delay_reset(); if (e->frame->child) menu_frame_select(e->frame->child, NULL, TRUE); } menu_frame_select(e->frame, e, TRUE); if (ev->type == ButtonRelease) menu_entry_frame_execute(e, ev->xbutton.state); } else menu_frame_hide_all(); } ret = TRUE; } else if (ev->type == KeyPress || ev->type == KeyRelease) { guint mods; ObMenuFrame *frame; /* get the modifiers */ mods = obt_keyboard_only_modmasks(ev->xkey.state); frame = find_active_or_last_menu(); if (frame == NULL) g_assert_not_reached(); /* there is no active menu */ /* Allow control while going thru the menu */ else if (ev->type == KeyPress && (mods & ~ControlMask) == 0) { gunichar unikey; KeySym sym; frame->got_press = TRUE; frame->press_keycode = ev->xkey.keycode; frame->press_doexec = FALSE; sym = obt_keyboard_keypress_to_keysym(ev); if (sym == XK_Escape) { menu_frame_hide_all(); ret = TRUE; } else if (sym == XK_Left) { /* Left goes to the parent menu */ if (frame->parent) { /* remove focus from the child */ menu_frame_select(frame, NULL, TRUE); /* and put it in the parent */ menu_frame_select(frame->parent, frame->parent->selected, TRUE); } ret = TRUE; } else if (sym == XK_Right || sym == XK_Return || sym == XK_KP_Enter) { /* Right and enter goes to the selected submenu. Enter executes instead if it's not on a submenu. */ if (frame->selected) { const ObMenuEntryType t = frame->selected->entry->type; if (t == OB_MENU_ENTRY_TYPE_SUBMENU) { /* make sure it is visible */ menu_frame_select(frame, frame->selected, TRUE); /* move focus to the child menu */ menu_frame_select_next(frame->child); } else if (sym != XK_Right) { frame->press_doexec = TRUE; } } ret = TRUE; } else if (sym == XK_Up) { menu_frame_select_previous(frame); ret = TRUE; } else if (sym == XK_Down) { menu_frame_select_next(frame); ret = TRUE; } else if (sym == XK_Home) { menu_frame_select_first(frame); ret = TRUE; } else if (sym == XK_End) { menu_frame_select_last(frame); ret = TRUE; } /* keyboard accelerator shortcuts. (if it was a valid key) */ else if (frame->entries && (unikey = obt_keyboard_keypress_to_unichar(menu_frame_ic(frame), ev))) { GList *start; GList *it; ObMenuEntryFrame *found = NULL; guint num_found = 0; /* start after the selected one */ start = frame->entries; if (frame->selected) { for (it = start; frame->selected != it->data; it = g_list_next(it)) g_assert(it != NULL); /* nothing was selected? */ /* next with wraparound */ start = g_list_next(it); if (start == NULL) start = frame->entries; } it = start; do { ObMenuEntryFrame *e = it->data; gunichar entrykey = 0; if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) entrykey = e->entry->data.normal.shortcut; else if (e->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) entrykey = e->entry->data.submenu.submenu->shortcut; if (unikey == entrykey) { if (found == NULL) found = e; ++num_found; } /* next with wraparound */ it = g_list_next(it); if (it == NULL) it = frame->entries; } while (it != start); if (found) { menu_frame_select(frame, found, TRUE); if (num_found == 1) { if (found->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) { /* move focus to the child menu */ menu_frame_select_next(frame->child); } else { frame->press_doexec = TRUE; } } ret = TRUE; } } } /* Use KeyRelease events for running things so that the key release doesn't get sent to the focused application. Allow ControlMask only, and don't bother if the menu is empty */ else if (ev->type == KeyRelease && (mods & ~ControlMask) == 0) { if (frame->press_keycode == ev->xkey.keycode && frame->got_press && frame->press_doexec) { if (frame->selected) menu_entry_frame_execute(frame->selected, ev->xkey.state); } } } return ret; } static gboolean event_look_for_menu_enter(XEvent *ev, gpointer data) { const ObMenuFrame *f = (ObMenuFrame*)data; ObMenuEntryFrame *e; return ev->type == EnterNotify && (e = g_hash_table_lookup(menu_frame_map, &ev->xcrossing.window)) && e->frame == f && !e->ignore_enters; } static void event_handle_menu(ObMenuFrame *frame, XEvent *ev) { ObMenuFrame *f; ObMenuEntryFrame *e; switch (ev->type) { case MotionNotify: /* We need to catch MotionNotify in addition to EnterNotify because it is possible for the menu to be opened under the mouse cursor, and moving the mouse should select the item. */ if ((e = g_hash_table_lookup(menu_frame_map, &ev->xmotion.window))) { if (e->ignore_enters) --e->ignore_enters; else if (!(f = find_active_menu()) || f == e->frame || f->parent == e->frame || f->child == e->frame) menu_frame_select(e->frame, e, FALSE); } break; case EnterNotify: if ((e = g_hash_table_lookup(menu_frame_map, &ev->xcrossing.window))) { if (e->ignore_enters) --e->ignore_enters; else if (!(f = find_active_menu()) || f == e->frame || f->parent == e->frame || f->child == e->frame) menu_frame_select(e->frame, e, FALSE); } break; case LeaveNotify: /* ignore leaves when we're already in the window */ if (ev->xcrossing.detail == NotifyInferior) break; if ((e = g_hash_table_lookup(menu_frame_map, &ev->xcrossing.window))) { /* check if an EnterNotify event is coming, and if not, then select nothing in the menu */ if (!xqueue_exists_local(event_look_for_menu_enter, e->frame)) menu_frame_select(e->frame, NULL, FALSE); } break; } } static gboolean event_handle_user_input(ObClient *client, XEvent *e) { g_assert(e->type == ButtonPress || e->type == ButtonRelease || e->type == MotionNotify || e->type == KeyPress || e->type == KeyRelease); if (menu_frame_visible) { if (event_handle_menu_input(e)) /* don't use the event if the menu used it, but if the menu didn't use it and it's a keypress that is bound, it will close the menu and be used */ return TRUE; } /* if the keyboard interactive action uses the event then dont use it for bindings. likewise is moveresize uses the event. */ if (actions_interactive_input_event(e) || moveresize_event(e)) return TRUE; if (moveresize_in_progress) /* make further actions work on the client being moved/resized */ client = moveresize_client; if (e->type == ButtonPress || e->type == ButtonRelease || e->type == MotionNotify) { /* the frame may not be "visible" but they can still click on it in the case where it is animating before disappearing */ if (!client || !frame_iconify_animating(client->frame)) return mouse_event(client, e); } else return keyboard_event((focus_cycle_target ? focus_cycle_target : (client ? client : focus_client)), e); return FALSE; } static void focus_delay_dest(gpointer data) { g_slice_free(ObFocusDelayData, data); focus_delay_timeout_id = 0; focus_delay_timeout_client = NULL; } static void unfocus_delay_dest(gpointer data) { g_slice_free(ObFocusDelayData, data); unfocus_delay_timeout_id = 0; unfocus_delay_timeout_client = NULL; } static gboolean focus_delay_func(gpointer data) { ObFocusDelayData *d = data; Time old = event_curtime; /* save the curtime */ event_curtime = d->time; event_curserial = d->serial; if (client_focus(d->client) && config_focus_raise) stacking_raise(CLIENT_AS_WINDOW(d->client)); event_curtime = old; return FALSE; /* no repeat */ } static gboolean unfocus_delay_func(gpointer data) { ObFocusDelayData *d = data; Time old = event_curtime; /* save the curtime */ event_curtime = d->time; event_curserial = d->serial; focus_nothing(); event_curtime = old; return FALSE; /* no repeat */ } static void focus_delay_client_dest(ObClient *client, gpointer data) { if (focus_delay_timeout_client == client && focus_delay_timeout_id) g_source_remove(focus_delay_timeout_id); if (unfocus_delay_timeout_client == client && unfocus_delay_timeout_id) g_source_remove(unfocus_delay_timeout_id); } void event_halt_focus_delay(void) { /* ignore all enter events up till the event which caused this to occur */ if (event_curserial) event_ignore_enter_range(1, event_curserial); if (focus_delay_timeout_id) g_source_remove(focus_delay_timeout_id); if (unfocus_delay_timeout_id) g_source_remove(unfocus_delay_timeout_id); } gulong event_start_ignore_all_enters(void) { return NextRequest(obt_display); } static void event_ignore_enter_range(gulong start, gulong end) { ObSerialRange *r; g_assert(start != 0); g_assert(end != 0); r = g_slice_new(ObSerialRange); r->start = start; r->end = end; ignore_serials = g_slist_prepend(ignore_serials, r); ob_debug_type(OB_DEBUG_FOCUS, "ignoring enters from %lu until %lu", r->start, r->end); /* increment the serial so we don't ignore events we weren't meant to */ OBT_PROP_ERASE(screen_support_win, MOTIF_WM_HINTS); } void event_end_ignore_all_enters(gulong start) { /* Use (NextRequest-1) so that we ignore up to the current serial only. Inside event_ignore_enter_range, we increment the serial by one, but if we ignore that serial too, then any enter events generated by mouse movement will be ignored until we create some further network traffic. Instead ignore up to NextRequest-1, then when we increment the serial, we will be *past* the range of ignored serials */ event_ignore_enter_range(start, NextRequest(obt_display)-1); } static gboolean is_enter_focus_event_ignored(gulong serial) { GSList *it, *next; for (it = ignore_serials; it; it = next) { ObSerialRange *r = it->data; next = g_slist_next(it); if ((glong)(serial - r->end) > 0) { /* past the end */ ignore_serials = g_slist_delete_link(ignore_serials, it); g_slice_free(ObSerialRange, r); } else if ((glong)(serial - r->start) >= 0) return TRUE; } return FALSE; } void event_cancel_all_key_grabs(void) { if (actions_interactive_act_running()) { actions_interactive_cancel_act(); ob_debug("KILLED interactive action"); } else if (menu_frame_visible) { menu_frame_hide_all(); ob_debug("KILLED open menus"); } else if (moveresize_in_progress) { moveresize_end(TRUE); ob_debug("KILLED interactive moveresize"); } else if (grab_on_keyboard()) { ungrab_keyboard(); ob_debug("KILLED active grab on keyboard"); } else ungrab_passive_key(); XSync(obt_display, FALSE); } gboolean event_time_after(guint32 t1, guint32 t2) { g_assert(t1 != CurrentTime); g_assert(t2 != CurrentTime); /* Timestamp values wrap around (after about 49.7 days). The server, given its current time is represented by timestamp T, always interprets timestamps from clients by treating half of the timestamp space as being later in time than T. - http://tronche.com/gui/x/xlib/input/pointer-grabbing.html */ /* TIME_HALF is not half of the number space of a Time type variable. * Rather, it is half the number space of a timestamp value, which is * always 32 bits. */ #define TIME_HALF (guint32)(1 << 31) if (t2 >= TIME_HALF) /* t2 is in the second half so t1 might wrap around and be smaller than t2 */ return t1 >= t2 || t1 < (t2 + TIME_HALF); else /* t2 is in the first half so t1 has to come after it */ return t1 >= t2 && t1 < (t2 + TIME_HALF); } gboolean find_timestamp(XEvent *e, gpointer data) { const Time t = event_get_timestamp(e); if (t && t >= event_curtime) { event_curtime = t; return TRUE; } else return FALSE; } static Time next_time(void) { /* Some events don't come with timestamps :( ...but we can get one anyways >:) */ /* Generate a timestamp so there is guaranteed at least one in the queue eventually */ XChangeProperty(obt_display, screen_support_win, OBT_PROP_ATOM(WM_CLASS), OBT_PROP_ATOM(STRING), 8, PropModeAppend, NULL, 0); /* Grab the first timestamp available */ xqueue_exists(find_timestamp, NULL); /*g_assert(event_curtime != CurrentTime);*/ /* Save the time so we don't have to do this again for this event */ return event_curtime; } Time event_time(void) { if (event_curtime) return event_curtime; return next_time(); } Time event_source_time(void) { return event_sourcetime; } void event_reset_time(void) { next_time(); } void event_update_user_time(void) { event_last_user_time = event_time(); } void event_reset_user_time(void) { event_last_user_time = CurrentTime; } openbox-3.6.1/openbox/event.h0000644000175300001440000000624512426440016013065 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- event.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __events_h #define __events_h #include #include struct _ObClient; /*! The amount of time before a window appears that is checked for user input to determine if the user is working in another window */ #define OB_EVENT_USER_TIME_DELAY (1000) /* milliseconds */ /*! The last user-interaction time, as given by the clients */ extern Time event_last_user_time; void event_startup(gboolean reconfig); void event_shutdown(gboolean reconfig); /*! Make as if the mouse just entered the client, use only when using focus follows mouse */ void event_enter_client(struct _ObClient *client); /*! Make as if the mouse just left the client, use only when using focus follows mouse */ void event_leave_client(struct _ObClient *client); /*! Make mouse focus not move at all from the stuff that happens between these two function calls. */ gulong event_start_ignore_all_enters(void); void event_end_ignore_all_enters(gulong start); /*! End *all* active and passive grabs on the keyboard This is called in situations where if there is a grab going on, then we need to cancel it. If we move focus during the grab, applications will get NotifyWhileGrabbed events and ignore them! Actions should not rely on being able to move focus during an interactive grab. */ void event_cancel_all_key_grabs(void); /* Halts any focus delay in progress, use this when the user is selecting a window for focus */ void event_halt_focus_delay(void); /*! Compare t1 and t2, taking into account wraparound. True if t1 comes at the same time or later than t2. */ gboolean event_time_after(guint32 t1, guint32 t2); /*! Time at which the current event occured. If this is not known, this is a time at or after it, but at or before any other events we will process */ Time event_time(void); /*! Force event_time() to skip the current timestamp and look for the next one. */ void event_reset_time(void); /*! A time at which an event happened that caused this current event to be generated. This is a user-provided time and not to be trusted. Returns CurrentTime if there was no source time provided. */ Time event_source_time(void); /*! Update the timestamp for when the user has last used the focused window. This updates the timestamp to the time of the last event, given by event_time(). */ void event_update_user_time(void); /*! Reset the timestamp for when the user has last used the focused window. */ void event_reset_user_time(void); #endif openbox-3.6.1/openbox/focus.c0000644000175300001440000003163312426440016013055 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- focus.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "debug.h" #include "event.h" #include "openbox.h" #include "grab.h" #include "client.h" #include "config.h" #include "group.h" #include "focus_cycle.h" #include "screen.h" #include "keyboard.h" #include "focus.h" #include "stacking.h" #include "obt/prop.h" #include #include #define FOCUS_INDICATOR_WIDTH 6 ObClient *focus_client = NULL; GList *focus_order = NULL; void focus_startup(gboolean reconfig) { if (reconfig) return; /* start with nothing focused */ focus_nothing(); } void focus_shutdown(gboolean reconfig) { if (reconfig) return; /* reset focus to root */ XSetInputFocus(obt_display, PointerRoot, RevertToNone, CurrentTime); } static void push_to_top(ObClient *client) { ObClient *p; /* if it is modal for a single window, then put that window at the top of the focus order first, so it will be right after ours. the same is done with stacking */ if (client->modal && (p = client_direct_parent(client))) push_to_top(p); focus_order = g_list_remove(focus_order, client); focus_order = g_list_prepend(focus_order, client); } void focus_set_client(ObClient *client) { Window active; ob_debug_type(OB_DEBUG_FOCUS, "focus_set_client 0x%lx", client ? client->window : 0); if (focus_client == client) return; /* uninstall the old colormap, and install the new one */ screen_install_colormap(focus_client, FALSE); screen_install_colormap(client, TRUE); focus_client = client; if (client != NULL) { /* move to the top of the list */ push_to_top(client); /* remove hiliting from the window when it gets focused */ client_hilite(client, FALSE); /* make sure the focus cycle popup shows things in the right order */ focus_cycle_reorder(); } /* set the NET_ACTIVE_WINDOW hint, but preserve it on shutdown */ if (ob_state() != OB_STATE_EXITING) { active = client ? client->window : None; OBT_PROP_SET32(obt_root(ob_screen), NET_ACTIVE_WINDOW, WINDOW, active); } /* when focus is moved to a new window, the last_user_time timestamp would no longer be valid, as it applies for the focused window */ event_reset_user_time(); } static ObClient* focus_fallback_target(gboolean allow_refocus, gboolean allow_pointer, gboolean allow_omnipresent, ObClient *old) { GList *it; ObClient *c; ob_debug_type(OB_DEBUG_FOCUS, "trying pointer stuff"); if (allow_pointer && config_focus_follow) if ((c = client_under_pointer()) && (allow_refocus || client_focus_target(c) != old) && (client_normal(c) && client_focus(c))) { ob_debug_type(OB_DEBUG_FOCUS, "found in pointer stuff"); return c; } ob_debug_type(OB_DEBUG_FOCUS, "trying the focus order"); for (it = focus_order; it; it = g_list_next(it)) { c = it->data; /* fallback focus to a window if: 1. it is on the current desktop. this ignores omnipresent windows, which are problematic in their own rite, unless they are specifically allowed 2. it is a valid auto-focus target 3. it is not shaded */ if ((allow_omnipresent || c->desktop == screen_desktop) && focus_valid_target(c, screen_desktop, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE) && !c->shaded && (allow_refocus || client_focus_target(c) != old) && client_focus(c)) { ob_debug_type(OB_DEBUG_FOCUS, "found in focus order"); return c; } } ob_debug_type(OB_DEBUG_FOCUS, "trying a desktop window"); for (it = focus_order; it; it = g_list_next(it)) { c = it->data; /* fallback focus to a window if: 1. it is on the current desktop. this ignores omnipresent windows, which are problematic in their own rite. 2. it is a normal type window, don't fall back onto a dock or a splashscreen or a desktop window (save the desktop as a backup fallback though) */ if (focus_valid_target(c, screen_desktop, TRUE, FALSE, FALSE, TRUE, FALSE, TRUE, FALSE) && (allow_refocus || client_focus_target(c) != old) && client_focus(c)) { ob_debug_type(OB_DEBUG_FOCUS, "found a desktop window"); return c; } } return NULL; } ObClient* focus_fallback(gboolean allow_refocus, gboolean allow_pointer, gboolean allow_omnipresent, gboolean focus_lost) { ObClient *new; ObClient *old = focus_client; /* unfocus any focused clients.. they can be focused by Pointer events and such, and then when we try focus them, we won't get a FocusIn event at all for them. */ if (focus_lost) focus_nothing(); new = focus_fallback_target(allow_refocus, allow_pointer, allow_omnipresent, old); /* get what was really focused */ if (new) new = client_focus_target(new); return new; } void focus_nothing(void) { /* nothing is focused, update the colormap and _the root property_ */ focus_set_client(NULL); /* when nothing will be focused, send focus to the backup target */ XSetInputFocus(obt_display, screen_support_win, RevertToPointerRoot, event_time()); } void focus_order_add_new(ObClient *c) { if (c->iconic) focus_order_to_top(c); else { g_assert(!g_list_find(focus_order, c)); /* if there are only iconic windows, put this above them in the order, but if there are not, then put it under the currently focused one */ if (focus_order && ((ObClient*)focus_order->data)->iconic) focus_order = g_list_insert(focus_order, c, 0); else focus_order = g_list_insert(focus_order, c, 1); } focus_cycle_addremove(c, TRUE); } void focus_order_remove(ObClient *c) { focus_order = g_list_remove(focus_order, c); focus_cycle_addremove(c, TRUE); } void focus_order_like_new(struct _ObClient *c) { focus_order = g_list_remove(focus_order, c); focus_order_add_new(c); } void focus_order_to_top(ObClient *c) { focus_order = g_list_remove(focus_order, c); if (!c->iconic) { focus_order = g_list_prepend(focus_order, c); } else { GList *it; /* insert before first iconic window */ for (it = focus_order; it && !((ObClient*)it->data)->iconic; it = g_list_next(it)); focus_order = g_list_insert_before(focus_order, it, c); } focus_cycle_reorder(); } void focus_order_to_bottom(ObClient *c) { focus_order = g_list_remove(focus_order, c); if (c->iconic) { focus_order = g_list_append(focus_order, c); } else { GList *it; /* insert before first iconic window */ for (it = focus_order; it && !((ObClient*)it->data)->iconic; it = g_list_next(it)); focus_order = g_list_insert_before(focus_order, it, c); } focus_cycle_reorder(); } ObClient *focus_order_find_first(guint desktop) { GList *it; for (it = focus_order; it; it = g_list_next(it)) { ObClient *c = it->data; if (c->desktop == desktop || c->desktop == DESKTOP_ALL) return c; } return NULL; } /*! Returns if a focus target has valid group siblings that can be cycled to in its place */ static gboolean focus_target_has_siblings(ObClient *ft, gboolean iconic_windows, gboolean all_desktops) { GSList *it; if (!ft->group) return FALSE; for (it = ft->group->members; it; it = g_slist_next(it)) { ObClient *c = it->data; /* check that it's not a helper window to avoid infinite recursion */ if (c != ft && c->type == OB_CLIENT_TYPE_NORMAL && focus_valid_target(c, screen_desktop, TRUE, iconic_windows, all_desktops, TRUE, FALSE, FALSE, FALSE)) { return TRUE; } } return FALSE; } gboolean focus_valid_target(ObClient *ft, guint desktop, gboolean helper_windows, gboolean iconic_windows, gboolean all_desktops, gboolean nonhilite_windows, gboolean dock_windows, gboolean desktop_windows, gboolean user_request) { /* NOTE: if any of these things change on a client, then they should call focus_cycle_addremove() to make sure the client is not shown/hidden when it should not be */ gboolean ok = FALSE; /* see if the window is still managed or is going away */ if (!ft->managed) return FALSE; /* it's on this desktop unless you want all desktops. do this check first because it will usually filter out the most windows */ ok = (all_desktops || ft->desktop == desktop || ft->desktop == DESKTOP_ALL); /* if we only include hilited windows, check if the window is */ ok = ok && (nonhilite_windows || ft->demands_attention); /* the window can receive focus somehow */ ok = ok && (ft->can_focus || ft->focus_notify); /* the window is not iconic, or we're allowed to go to iconic ones */ ok = ok && (iconic_windows || !ft->iconic); /* it's the right type of window */ if (dock_windows || desktop_windows) ok = ok && ((dock_windows && ft->type == OB_CLIENT_TYPE_DOCK) || (desktop_windows && ft->type == OB_CLIENT_TYPE_DESKTOP)); /* modal windows are important and can always get focus if they are visible and stuff, so don't change 'ok' based on their type */ else if (!ft->modal) /* normal non-helper windows are valid targets */ ok = ok && ((client_normal(ft) && !client_helper(ft)) || /* helper windows are valid targets if... */ (client_helper(ft) && /* ...a window in its group already has focus and we want to include helper windows ... */ ((focus_client && ft->group == focus_client->group && helper_windows) || /* ... or if there are no other windows in its group that can be focused instead */ !focus_target_has_siblings(ft, iconic_windows, all_desktops)))); /* it's not set to skip the taskbar (but this is overridden if the window is modal or if the user asked for this window to be focused, or if the window is iconified (and does not have any parents with which to uniconify it), and it is not used for windows which are hilited, or dialog windows as these need user interaction and should not be long-lasting windows */ ok = ok && (!ft->skip_taskbar || (ft->modal || user_request || (ft->iconic && !ft->parents) || ft->demands_attention || ft->type == OB_CLIENT_TYPE_DIALOG)); /* it's not going to just send focus off somewhere else (modal window), unless that modal window is not one of our valid targets, then let you choose this window and bring the modal one here */ { ObClient *cft = client_focus_target(ft); ok = ok && (ft == cft || !focus_valid_target(cft, screen_desktop, TRUE, iconic_windows, all_desktops, nonhilite_windows, dock_windows, desktop_windows, FALSE)); } return ok; } openbox-3.6.1/openbox/focus.h0000644000175300001440000000534412426440016013062 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- focus.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __focus_h #define __focus_h #include "misc.h" #include #include struct _ObClient; /*! The client which is currently focused */ extern struct _ObClient *focus_client; /*! The recent focus order on each desktop */ extern GList *focus_order; void focus_startup(gboolean reconfig); void focus_shutdown(gboolean reconfig); /*! Specify which client is currently focused, this doesn't actually send focus anywhere, its called by the Focus event handlers */ void focus_set_client(struct _ObClient *client); /*! Focus nothing, but let keyboard events be caught. */ void focus_nothing(void); /*! Call this when you need to focus something! */ struct _ObClient* focus_fallback(gboolean allow_refocus, gboolean allow_pointer, gboolean allow_omnipresent, gboolean focus_lost); /*! Add a new client into the focus order */ void focus_order_add_new(struct _ObClient *c); /*! Remove a client from the focus order */ void focus_order_remove(struct _ObClient *c); /*! Move a client to the top of the focus order */ void focus_order_to_top(struct _ObClient *c); /*! Move a client to where it would be if it was newly added to the focus order */ void focus_order_like_new(struct _ObClient *c); /*! Move a client to the bottom of the focus order (keeps iconic windows at the very bottom always though). */ void focus_order_to_bottom(struct _ObClient *c); struct _ObClient *focus_order_find_first(guint desktop); gboolean focus_valid_target(struct _ObClient *ft, guint desktop, gboolean helper_windows, gboolean iconic_windows, gboolean all_desktops, gboolean nonhilite_windows, gboolean dock_windows, gboolean desktop_windows, gboolean user_request); #endif openbox-3.6.1/openbox/focus_cycle.c0000644000175300001440000002547212426440016014240 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- focus_cycle.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "focus_cycle.h" #include "focus_cycle_indicator.h" #include "client.h" #include "frame.h" #include "focus.h" #include "screen.h" #include "openbox.h" #include "debug.h" #include #include typedef enum { OB_CYCLE_NONE = 0, OB_CYCLE_NORMAL, OB_CYCLE_DIRECTIONAL } ObCycleType; ObClient *focus_cycle_target = NULL; static ObCycleType focus_cycle_type = OB_CYCLE_NONE; static gboolean focus_cycle_linear; static gboolean focus_cycle_iconic_windows; static gboolean focus_cycle_all_desktops; static gboolean focus_cycle_nonhilite_windows; static gboolean focus_cycle_dock_windows; static gboolean focus_cycle_desktop_windows; static ObClient *focus_find_directional(ObClient *c, ObDirection dir, gboolean dock_windows, gboolean desktop_windows); void focus_cycle_startup(gboolean reconfig) { if (reconfig) return; } void focus_cycle_shutdown(gboolean reconfig) { if (reconfig) return; } void focus_cycle_addremove(ObClient *c, gboolean redraw) { if (!focus_cycle_type) return; if (focus_cycle_type == OB_CYCLE_DIRECTIONAL) { if (c && focus_cycle_target == c) { focus_directional_cycle(0, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE); } } else if (c && redraw) { gboolean v, s; v = focus_cycle_valid(c); s = focus_cycle_popup_is_showing(c) || c == focus_cycle_target; if (v != s) focus_cycle_reorder(); } else if (redraw) { focus_cycle_reorder(); } } void focus_cycle_reorder() { if (focus_cycle_type == OB_CYCLE_NORMAL) { focus_cycle_target = focus_cycle_popup_refresh(focus_cycle_target, TRUE, focus_cycle_linear); focus_cycle_update_indicator(focus_cycle_target); if (!focus_cycle_target) focus_cycle(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, OB_FOCUS_CYCLE_POPUP_MODE_NONE, TRUE, TRUE); } } ObClient* focus_cycle(gboolean forward, gboolean all_desktops, gboolean nonhilite_windows, gboolean dock_windows, gboolean desktop_windows, gboolean linear, gboolean showbar, ObFocusCyclePopupMode mode, gboolean done, gboolean cancel) { static GList *order = NULL; GList *it, *start, *list; ObClient *ft = NULL; ObClient *ret = NULL; if (cancel) { focus_cycle_target = NULL; goto done_cycle; } else if (done) goto done_cycle; if (!focus_order) goto done_cycle; if (linear) list = client_list; else list = focus_order; if (focus_cycle_target == NULL) { focus_cycle_linear = linear; focus_cycle_iconic_windows = TRUE; focus_cycle_all_desktops = all_desktops; focus_cycle_nonhilite_windows = nonhilite_windows; focus_cycle_dock_windows = dock_windows; focus_cycle_desktop_windows = desktop_windows; start = it = g_list_find(list, focus_client); } else start = it = g_list_find(list, focus_cycle_target); if (!start) /* switched desktops or something? */ start = it = forward ? g_list_last(list) : g_list_first(list); if (!start) goto done_cycle; do { if (forward) { it = it->next; if (it == NULL) it = g_list_first(list); } else { it = it->prev; if (it == NULL) it = g_list_last(list); } ft = it->data; if (focus_cycle_valid(ft)) { if (ft != focus_cycle_target) { /* prevents flicker */ focus_cycle_target = ft; focus_cycle_type = OB_CYCLE_NORMAL; focus_cycle_draw_indicator(showbar ? ft : NULL); } /* same arguments as focus_target_valid */ focus_cycle_popup_show(ft, mode, focus_cycle_linear); return focus_cycle_target; } } while (it != start); done_cycle: if (done && !cancel) ret = focus_cycle_target; focus_cycle_target = NULL; focus_cycle_type = OB_CYCLE_NONE; g_list_free(order); order = NULL; focus_cycle_draw_indicator(NULL); focus_cycle_popup_hide(); return ret; } /* this be mostly ripped from fvwm */ static ObClient *focus_find_directional(ObClient *c, ObDirection dir, gboolean dock_windows, gboolean desktop_windows) { gint my_cx, my_cy, his_cx, his_cy; gint offset = 0; gint distance = 0; gint score, best_score; ObClient *best_client, *cur; GList *it; if (!client_list) return NULL; /* first, find the centre coords of the currently focused window */ my_cx = c->frame->area.x + c->frame->area.width / 2; my_cy = c->frame->area.y + c->frame->area.height / 2; best_score = -1; best_client = c; for (it = g_list_first(client_list); it; it = g_list_next(it)) { cur = it->data; /* the currently selected window isn't interesting */ if (cur == c) continue; if (!focus_cycle_valid(it->data)) continue; /* find the centre coords of this window, from the * currently focused window's point of view */ his_cx = (cur->frame->area.x - my_cx) + cur->frame->area.width / 2; his_cy = (cur->frame->area.y - my_cy) + cur->frame->area.height / 2; if (dir == OB_DIRECTION_NORTHEAST || dir == OB_DIRECTION_SOUTHEAST || dir == OB_DIRECTION_SOUTHWEST || dir == OB_DIRECTION_NORTHWEST) { gint tx; /* Rotate the diagonals 45 degrees counterclockwise. * To do this, multiply the matrix /+h +h\ with the * vector (x y). \-h +h/ * h = sqrt(0.5). We can set h := 1 since absolute * distance doesn't matter here. */ tx = his_cx + his_cy; his_cy = -his_cx + his_cy; his_cx = tx; } switch (dir) { case OB_DIRECTION_NORTH: case OB_DIRECTION_SOUTH: case OB_DIRECTION_NORTHEAST: case OB_DIRECTION_SOUTHWEST: offset = (his_cx < 0) ? -his_cx : his_cx; distance = ((dir == OB_DIRECTION_NORTH || dir == OB_DIRECTION_NORTHEAST) ? -his_cy : his_cy); break; case OB_DIRECTION_EAST: case OB_DIRECTION_WEST: case OB_DIRECTION_SOUTHEAST: case OB_DIRECTION_NORTHWEST: offset = (his_cy < 0) ? -his_cy : his_cy; distance = ((dir == OB_DIRECTION_WEST || dir == OB_DIRECTION_NORTHWEST) ? -his_cx : his_cx); break; } /* the target must be in the requested direction */ if (distance <= 0) continue; /* Calculate score for this window. The smaller the better. */ score = distance + offset; /* windows more than 45 degrees off the direction are * heavily penalized and will only be chosen if nothing * else within a million pixels */ if (offset > distance) score += 1000000; if (best_score == -1 || score < best_score) { best_client = cur; best_score = score; } } return best_client; } ObClient* focus_directional_cycle(ObDirection dir, gboolean dock_windows, gboolean desktop_windows, gboolean interactive, gboolean showbar, gboolean dialog, gboolean done, gboolean cancel) { static ObClient *first = NULL; ObClient *ft = NULL; ObClient *ret = NULL; if (cancel) { focus_cycle_target = NULL; goto done_cycle; } else if (done && interactive) goto done_cycle; if (!focus_order) goto done_cycle; if (focus_cycle_target == NULL) { focus_cycle_linear = FALSE; focus_cycle_iconic_windows = FALSE; focus_cycle_all_desktops = FALSE; focus_cycle_nonhilite_windows = TRUE; focus_cycle_dock_windows = dock_windows; focus_cycle_desktop_windows = desktop_windows; } if (!first) first = focus_client; if (focus_cycle_target) ft = focus_find_directional(focus_cycle_target, dir, dock_windows, desktop_windows); else if (first) ft = focus_find_directional(first, dir, dock_windows, desktop_windows); else { GList *it; for (it = focus_order; it; it = g_list_next(it)) if (focus_cycle_valid(it->data)) { ft = it->data; break; } } if (ft && ft != focus_cycle_target) {/* prevents flicker */ focus_cycle_target = ft; focus_cycle_type = OB_CYCLE_DIRECTIONAL; if (!interactive) goto done_cycle; focus_cycle_draw_indicator(showbar ? ft : NULL); } if (focus_cycle_target && dialog) /* same arguments as focus_target_valid */ focus_cycle_popup_single_show(focus_cycle_target); return focus_cycle_target; done_cycle: if (done && !cancel) ret = focus_cycle_target; first = NULL; focus_cycle_target = NULL; focus_cycle_type = OB_CYCLE_NONE; focus_cycle_draw_indicator(NULL); focus_cycle_popup_single_hide(); return ret; } gboolean focus_cycle_valid(struct _ObClient *client) { return focus_valid_target(client, screen_desktop, TRUE, focus_cycle_iconic_windows, focus_cycle_all_desktops, focus_cycle_nonhilite_windows, focus_cycle_dock_windows, focus_cycle_desktop_windows, FALSE); } openbox-3.6.1/openbox/focus_cycle.h0000644000175300001440000000434012426440016014234 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- focus_cycle.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __focus_cycle_h #define __focus_cycle_h #include "misc.h" #include "focus_cycle_popup.h" #include #include struct _ObClient; /*! The client which appears focused during a focus cycle operation */ extern struct _ObClient *focus_cycle_target; void focus_cycle_startup(gboolean reconfig); void focus_cycle_shutdown(gboolean reconfig); /*! Cycle focus amongst windows. */ struct _ObClient* focus_cycle(gboolean forward, gboolean all_desktops, gboolean nonhilite_windows, gboolean dock_windows, gboolean desktop_windows, gboolean linear, gboolean showbar, ObFocusCyclePopupMode mode, gboolean done, gboolean cancel); struct _ObClient* focus_directional_cycle(ObDirection dir, gboolean dock_windows, gboolean desktop_windows, gboolean interactive, gboolean showbar, gboolean dialog, gboolean done, gboolean cancel); /*! Set @redraw to FALSE if there are more clients to be added/removed first */ void focus_cycle_addremove(struct _ObClient *ifclient, gboolean redraw); void focus_cycle_reorder(); gboolean focus_cycle_valid(struct _ObClient *client); #endif openbox-3.6.1/openbox/focus_cycle_indicator.c0000644000175300001440000002651212426440016016270 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- focus_cycle_indicator.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "focus_cycle.h" #include "focus_cycle_indicator.h" #include "client.h" #include "openbox.h" #include "frame.h" #include "event.h" #include "obrender/render.h" #include #include #define FOCUS_INDICATOR_WIDTH 6 static struct { ObInternalWindow top; ObInternalWindow left; ObInternalWindow right; ObInternalWindow bottom; } focus_indicator; static RrAppearance *a_focus_indicator; static RrColor *color_white; static gboolean visible; static Window create_window(Window parent, gulong mask, XSetWindowAttributes *attrib) { return XCreateWindow(obt_display, parent, 0, 0, 1, 1, 0, RrDepth(ob_rr_inst), InputOutput, RrVisual(ob_rr_inst), mask, attrib); } void focus_cycle_indicator_startup(gboolean reconfig) { XSetWindowAttributes attr; visible = FALSE; if (reconfig) return; focus_indicator.top.type = OB_WINDOW_CLASS_INTERNAL; focus_indicator.left.type = OB_WINDOW_CLASS_INTERNAL; focus_indicator.right.type = OB_WINDOW_CLASS_INTERNAL; focus_indicator.bottom.type = OB_WINDOW_CLASS_INTERNAL; attr.override_redirect = True; attr.background_pixel = BlackPixel(obt_display, ob_screen); focus_indicator.top.window = create_window(obt_root(ob_screen), CWOverrideRedirect | CWBackPixel, &attr); focus_indicator.left.window = create_window(obt_root(ob_screen), CWOverrideRedirect | CWBackPixel, &attr); focus_indicator.right.window = create_window(obt_root(ob_screen), CWOverrideRedirect | CWBackPixel, &attr); focus_indicator.bottom.window = create_window(obt_root(ob_screen), CWOverrideRedirect | CWBackPixel, &attr); stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.top)); stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.left)); stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.right)); stacking_add(INTERNAL_AS_WINDOW(&focus_indicator.bottom)); window_add(&focus_indicator.top.window, INTERNAL_AS_WINDOW(&focus_indicator.top)); window_add(&focus_indicator.left.window, INTERNAL_AS_WINDOW(&focus_indicator.left)); window_add(&focus_indicator.right.window, INTERNAL_AS_WINDOW(&focus_indicator.right)); window_add(&focus_indicator.bottom.window, INTERNAL_AS_WINDOW(&focus_indicator.bottom)); color_white = RrColorNew(ob_rr_inst, 0xff, 0xff, 0xff); a_focus_indicator = RrAppearanceNew(ob_rr_inst, 4); a_focus_indicator->surface.grad = RR_SURFACE_SOLID; a_focus_indicator->surface.relief = RR_RELIEF_FLAT; a_focus_indicator->surface.primary = RrColorNew(ob_rr_inst, 0, 0, 0); a_focus_indicator->texture[0].type = RR_TEXTURE_LINE_ART; a_focus_indicator->texture[0].data.lineart.color = color_white; a_focus_indicator->texture[1].type = RR_TEXTURE_LINE_ART; a_focus_indicator->texture[1].data.lineart.color = color_white; a_focus_indicator->texture[2].type = RR_TEXTURE_LINE_ART; a_focus_indicator->texture[2].data.lineart.color = color_white; a_focus_indicator->texture[3].type = RR_TEXTURE_LINE_ART; a_focus_indicator->texture[3].data.lineart.color = color_white; } void focus_cycle_indicator_shutdown(gboolean reconfig) { if (reconfig) return; RrColorFree(color_white); RrAppearanceFree(a_focus_indicator); window_remove(focus_indicator.top.window); window_remove(focus_indicator.left.window); window_remove(focus_indicator.right.window); window_remove(focus_indicator.bottom.window); stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.top)); stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.left)); stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.right)); stacking_remove(INTERNAL_AS_WINDOW(&focus_indicator.bottom)); XDestroyWindow(obt_display, focus_indicator.top.window); XDestroyWindow(obt_display, focus_indicator.left.window); XDestroyWindow(obt_display, focus_indicator.right.window); XDestroyWindow(obt_display, focus_indicator.bottom.window); } void focus_cycle_update_indicator(ObClient *c) { if (visible) focus_cycle_draw_indicator(c); } void focus_cycle_draw_indicator(ObClient *c) { if (!c && visible) { gulong ignore_start; /* kill enter events cause by this unmapping */ ignore_start = event_start_ignore_all_enters(); XUnmapWindow(obt_display, focus_indicator.top.window); XUnmapWindow(obt_display, focus_indicator.left.window); XUnmapWindow(obt_display, focus_indicator.right.window); XUnmapWindow(obt_display, focus_indicator.bottom.window); event_end_ignore_all_enters(ignore_start); visible = FALSE; } else if (c) { /* if (c) frame_adjust_focus(c->frame, FALSE); frame_adjust_focus(c->frame, TRUE); */ gint x, y, w, h; gint wt, wl, wr, wb; gulong ignore_start; wt = wl = wr = wb = FOCUS_INDICATOR_WIDTH; x = c->frame->area.x; y = c->frame->area.y; w = c->frame->area.width; h = wt; /* kill enter events cause by this moving */ ignore_start = event_start_ignore_all_enters(); XMoveResizeWindow(obt_display, focus_indicator.top.window, x, y, w, h); a_focus_indicator->texture[0].data.lineart.x1 = 0; a_focus_indicator->texture[0].data.lineart.y1 = h-1; a_focus_indicator->texture[0].data.lineart.x2 = 0; a_focus_indicator->texture[0].data.lineart.y2 = 0; a_focus_indicator->texture[1].data.lineart.x1 = 0; a_focus_indicator->texture[1].data.lineart.y1 = 0; a_focus_indicator->texture[1].data.lineart.x2 = w-1; a_focus_indicator->texture[1].data.lineart.y2 = 0; a_focus_indicator->texture[2].data.lineart.x1 = w-1; a_focus_indicator->texture[2].data.lineart.y1 = 0; a_focus_indicator->texture[2].data.lineart.x2 = w-1; a_focus_indicator->texture[2].data.lineart.y2 = h-1; a_focus_indicator->texture[3].data.lineart.x1 = (wl-1); a_focus_indicator->texture[3].data.lineart.y1 = h-1; a_focus_indicator->texture[3].data.lineart.x2 = w - wr; a_focus_indicator->texture[3].data.lineart.y2 = h-1; RrPaint(a_focus_indicator, focus_indicator.top.window, w, h); x = c->frame->area.x; y = c->frame->area.y; w = wl; h = c->frame->area.height; XMoveResizeWindow(obt_display, focus_indicator.left.window, x, y, w, h); a_focus_indicator->texture[0].data.lineart.x1 = w-1; a_focus_indicator->texture[0].data.lineart.y1 = 0; a_focus_indicator->texture[0].data.lineart.x2 = 0; a_focus_indicator->texture[0].data.lineart.y2 = 0; a_focus_indicator->texture[1].data.lineart.x1 = 0; a_focus_indicator->texture[1].data.lineart.y1 = 0; a_focus_indicator->texture[1].data.lineart.x2 = 0; a_focus_indicator->texture[1].data.lineart.y2 = h-1; a_focus_indicator->texture[2].data.lineart.x1 = 0; a_focus_indicator->texture[2].data.lineart.y1 = h-1; a_focus_indicator->texture[2].data.lineart.x2 = w-1; a_focus_indicator->texture[2].data.lineart.y2 = h-1; a_focus_indicator->texture[3].data.lineart.x1 = w-1; a_focus_indicator->texture[3].data.lineart.y1 = wt-1; a_focus_indicator->texture[3].data.lineart.x2 = w-1; a_focus_indicator->texture[3].data.lineart.y2 = h - wb; RrPaint(a_focus_indicator, focus_indicator.left.window, w, h); x = c->frame->area.x + c->frame->area.width - wr; y = c->frame->area.y; w = wr; h = c->frame->area.height ; XMoveResizeWindow(obt_display, focus_indicator.right.window, x, y, w, h); a_focus_indicator->texture[0].data.lineart.x1 = 0; a_focus_indicator->texture[0].data.lineart.y1 = 0; a_focus_indicator->texture[0].data.lineart.x2 = w-1; a_focus_indicator->texture[0].data.lineart.y2 = 0; a_focus_indicator->texture[1].data.lineart.x1 = w-1; a_focus_indicator->texture[1].data.lineart.y1 = 0; a_focus_indicator->texture[1].data.lineart.x2 = w-1; a_focus_indicator->texture[1].data.lineart.y2 = h-1; a_focus_indicator->texture[2].data.lineart.x1 = w-1; a_focus_indicator->texture[2].data.lineart.y1 = h-1; a_focus_indicator->texture[2].data.lineart.x2 = 0; a_focus_indicator->texture[2].data.lineart.y2 = h-1; a_focus_indicator->texture[3].data.lineart.x1 = 0; a_focus_indicator->texture[3].data.lineart.y1 = wt-1; a_focus_indicator->texture[3].data.lineart.x2 = 0; a_focus_indicator->texture[3].data.lineart.y2 = h - wb; RrPaint(a_focus_indicator, focus_indicator.right.window, w, h); x = c->frame->area.x; y = c->frame->area.y + c->frame->area.height - wb; w = c->frame->area.width; h = wb; XMoveResizeWindow(obt_display, focus_indicator.bottom.window, x, y, w, h); a_focus_indicator->texture[0].data.lineart.x1 = 0; a_focus_indicator->texture[0].data.lineart.y1 = 0; a_focus_indicator->texture[0].data.lineart.x2 = 0; a_focus_indicator->texture[0].data.lineart.y2 = h-1; a_focus_indicator->texture[1].data.lineart.x1 = 0; a_focus_indicator->texture[1].data.lineart.y1 = h-1; a_focus_indicator->texture[1].data.lineart.x2 = w-1; a_focus_indicator->texture[1].data.lineart.y2 = h-1; a_focus_indicator->texture[2].data.lineart.x1 = w-1; a_focus_indicator->texture[2].data.lineart.y1 = h-1; a_focus_indicator->texture[2].data.lineart.x2 = w-1; a_focus_indicator->texture[2].data.lineart.y2 = 0; a_focus_indicator->texture[3].data.lineart.x1 = wl-1; a_focus_indicator->texture[3].data.lineart.y1 = 0; a_focus_indicator->texture[3].data.lineart.x2 = w - wr; a_focus_indicator->texture[3].data.lineart.y2 = 0; RrPaint(a_focus_indicator, focus_indicator.bottom.window, w, h); XMapWindow(obt_display, focus_indicator.top.window); XMapWindow(obt_display, focus_indicator.left.window); XMapWindow(obt_display, focus_indicator.right.window); XMapWindow(obt_display, focus_indicator.bottom.window); event_end_ignore_all_enters(ignore_start); visible = TRUE; } } openbox-3.6.1/openbox/focus_cycle_indicator.h0000644000175300001440000000212312426440016016265 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- focus_cycle_indicator.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __focus_cycle_indicator_h #define __focus_cycle_indicator_h struct _ObClient; void focus_cycle_indicator_startup(gboolean reconfig); void focus_cycle_indicator_shutdown(gboolean reconfig); void focus_cycle_update_indicator(struct _ObClient *c); void focus_cycle_draw_indicator(struct _ObClient *c); #endif openbox-3.6.1/openbox/focus_cycle_popup.c0000644000175300001440000006623312426440016015463 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- focus_cycle_popup.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "focus_cycle_popup.h" #include "focus_cycle.h" #include "popup.h" #include "client.h" #include "screen.h" #include "focus.h" #include "openbox.h" #include "config.h" #include "window.h" #include "event.h" #include "obrender/render.h" #include #include /* Size of the icons, which can appear inside or outside of a hilite box */ #define ICON_SIZE (gint)config_theme_window_list_icon_size /* Size of the hilite box around a window's icon */ #define HILITE_SIZE (ICON_SIZE + 2*HILITE_OFFSET) /* Width of the outer ring around the hilite box */ #define HILITE_WIDTH 2 /* Space between the outer ring around the hilite box and the icon inside it */ #define HILITE_MARGIN 1 /* Total distance from the edge of the hilite box to the icon inside it */ #define HILITE_OFFSET (HILITE_WIDTH + HILITE_MARGIN) /* Margin area around the outside of the dialog */ #define OUTSIDE_BORDER 3 /* Margin area around the text */ #define TEXT_BORDER 2 /* Scroll the list-mode list when the cursor gets within this many rows of the top or bottom */ #define SCROLL_MARGIN 4 typedef struct _ObFocusCyclePopup ObFocusCyclePopup; typedef struct _ObFocusCyclePopupTarget ObFocusCyclePopupTarget; struct _ObFocusCyclePopupTarget { ObClient *client; RrImage *icon; gchar *text; Window iconwin; /* This is used when the popup is in list mode */ Window textwin; }; struct _ObFocusCyclePopup { ObWindow obwin; Window bg; /* This is used when the popup is in icon mode */ Window icon_mode_text; Window list_mode_up; Window list_mode_down; GList *targets; gint n_targets; const ObFocusCyclePopupTarget *last_target; gint maxtextw; /* How are the list is scrolled, in scroll mode */ gint scroll; RrAppearance *a_bg; RrAppearance *a_text; RrAppearance *a_hilite_text; RrAppearance *a_icon; RrAppearance *a_arrow; gboolean mapped; ObFocusCyclePopupMode mode; }; /*! This popup shows all possible windows */ static ObFocusCyclePopup popup; /*! This popup shows a single window */ static ObIconPopup *single_popup; static gchar *popup_get_name (ObClient *c); static gboolean popup_setup (ObFocusCyclePopup *p, gboolean create_targets, gboolean refresh_targets, gboolean linear); static void popup_render (ObFocusCyclePopup *p, const ObClient *c); static Window create_window(Window parent, guint bwidth, gulong mask, XSetWindowAttributes *attr) { return XCreateWindow(obt_display, parent, 0, 0, 1, 1, bwidth, RrDepth(ob_rr_inst), InputOutput, RrVisual(ob_rr_inst), mask, attr); } void focus_cycle_popup_startup(gboolean reconfig) { XSetWindowAttributes attrib; RrPixel32 *p; single_popup = icon_popup_new(); popup.obwin.type = OB_WINDOW_CLASS_INTERNAL; popup.a_bg = RrAppearanceCopy(ob_rr_theme->osd_bg); popup.a_hilite_text = RrAppearanceCopy(ob_rr_theme->osd_hilite_label); popup.a_text = RrAppearanceCopy(ob_rr_theme->osd_unhilite_label); popup.a_icon = RrAppearanceCopy(ob_rr_theme->a_clear); popup.a_arrow = RrAppearanceCopy(ob_rr_theme->a_clear_tex); popup.a_hilite_text->surface.parent = popup.a_bg; popup.a_text->surface.parent = popup.a_bg; popup.a_icon->surface.parent = popup.a_bg; popup.a_text->texture[0].data.text.justify = RR_JUSTIFY_LEFT; popup.a_hilite_text->texture[0].data.text.justify = RR_JUSTIFY_LEFT; /* 2 textures. texture[0] is the icon. texture[1] is the hilight, and may or may not be used */ RrAppearanceAddTextures(popup.a_icon, 2); RrAppearanceClearTextures(popup.a_icon); popup.a_icon->texture[0].type = RR_TEXTURE_IMAGE; RrAppearanceClearTextures(popup.a_arrow); popup.a_arrow->texture[0].type = RR_TEXTURE_MASK; popup.a_arrow->texture[0].data.mask.color = ob_rr_theme->osd_text_active_color; attrib.override_redirect = True; attrib.border_pixel=RrColorPixel(ob_rr_theme->osd_border_color); popup.bg = create_window(obt_root(ob_screen), ob_rr_theme->obwidth, CWOverrideRedirect | CWBorderPixel, &attrib); /* create the text window used for the icon-mode popup */ popup.icon_mode_text = create_window(popup.bg, 0, 0, NULL); /* create the windows for the up and down arrows */ popup.list_mode_up = create_window(popup.bg, 0, 0, NULL); popup.list_mode_down = create_window(popup.bg, 0, 0, NULL); popup.targets = NULL; popup.n_targets = 0; popup.last_target = NULL; /* set up the hilite texture for the icon */ popup.a_icon->texture[1].data.rgba.width = HILITE_SIZE; popup.a_icon->texture[1].data.rgba.height = HILITE_SIZE; popup.a_icon->texture[1].data.rgba.alpha = 0xff; p = g_new(RrPixel32, HILITE_SIZE * HILITE_SIZE); popup.a_icon->texture[1].data.rgba.data = p; /* create the hilite under the target icon */ { RrPixel32 color; RrColor *tc; gint x, y, o; tc = ob_rr_theme->osd_text_active_color; color = ((tc->r & 0xff) << RrDefaultRedOffset) + ((tc->g & 0xff) << RrDefaultGreenOffset) + ((tc->b & 0xff) << RrDefaultBlueOffset); o = 0; for (x = 0; x < HILITE_SIZE; x++) for (y = 0; y < HILITE_SIZE; y++) { guchar a; if (x < HILITE_WIDTH || x >= HILITE_SIZE - HILITE_WIDTH || y < HILITE_WIDTH || y >= HILITE_SIZE - HILITE_WIDTH) { /* the border of the target */ a = 0x88; } else { /* the background of the target */ a = 0x22; } p[o++] = color + (a << RrDefaultAlphaOffset); } } stacking_add(INTERNAL_AS_WINDOW(&popup)); window_add(&popup.bg, INTERNAL_AS_WINDOW(&popup)); } void focus_cycle_popup_shutdown(gboolean reconfig) { icon_popup_free(single_popup); window_remove(popup.bg); stacking_remove(INTERNAL_AS_WINDOW(&popup)); while(popup.targets) { ObFocusCyclePopupTarget *t = popup.targets->data; RrImageUnref(t->icon); g_free(t->text); XDestroyWindow(obt_display, t->iconwin); XDestroyWindow(obt_display, t->textwin); g_slice_free(ObFocusCyclePopupTarget, t); popup.targets = g_list_delete_link(popup.targets, popup.targets); } g_free(popup.a_icon->texture[1].data.rgba.data); popup.a_icon->texture[1].data.rgba.data = NULL; XDestroyWindow(obt_display, popup.list_mode_up); XDestroyWindow(obt_display, popup.list_mode_down); XDestroyWindow(obt_display, popup.icon_mode_text); XDestroyWindow(obt_display, popup.bg); RrAppearanceFree(popup.a_arrow); RrAppearanceFree(popup.a_icon); RrAppearanceFree(popup.a_hilite_text); RrAppearanceFree(popup.a_text); RrAppearanceFree(popup.a_bg); } static void popup_target_free(ObFocusCyclePopupTarget *t) { RrImageUnref(t->icon); g_free(t->text); XDestroyWindow(obt_display, t->iconwin); XDestroyWindow(obt_display, t->textwin); g_slice_free(ObFocusCyclePopupTarget, t); } static gboolean popup_setup(ObFocusCyclePopup *p, gboolean create_targets, gboolean refresh_targets, gboolean linear) { gint maxwidth, n; GList *it; GList *rtargets; /* old targets for refresh */ GList *rtlast; gboolean change; if (refresh_targets) { rtargets = p->targets; rtlast = g_list_last(rtargets); p->targets = NULL; p->n_targets = 0; change = FALSE; } else { rtargets = rtlast = NULL; change = TRUE; } g_assert(p->targets == NULL); g_assert(p->n_targets == 0); /* make its width to be the width of all the possible titles */ /* build a list of all the valid focus targets and measure their strings, and count them */ maxwidth = 0; n = 0; for (it = g_list_last(linear ? client_list : focus_order); it; it = g_list_previous(it)) { ObClient *ft = it->data; if (focus_cycle_valid(ft)) { GList *rit; /* reuse the target if possible during refresh */ for (rit = rtlast; rit; rit = g_list_previous(rit)) { ObFocusCyclePopupTarget *t = rit->data; if (t->client == ft) { if (rit == rtlast) rtlast = g_list_previous(rit); rtargets = g_list_remove_link(rtargets, rit); p->targets = g_list_concat(rit, p->targets); ++n; if (rit != rtlast) change = TRUE; /* order changed */ break; } } if (!rit) { gchar *text = popup_get_name(ft); /* measure */ p->a_text->texture[0].data.text.string = text; maxwidth = MAX(maxwidth, RrMinWidth(p->a_text)); if (!create_targets) { g_free(text); } else { ObFocusCyclePopupTarget *t = g_slice_new(ObFocusCyclePopupTarget); t->client = ft; t->text = text; t->icon = client_icon(t->client); RrImageRef(t->icon); /* own the icon so it won't go away */ t->iconwin = create_window(p->bg, 0, 0, NULL); t->textwin = create_window(p->bg, 0, 0, NULL); p->targets = g_list_prepend(p->targets, t); ++n; change = TRUE; /* added a window */ } } } } if (rtargets) { change = TRUE; /* removed a window */ while (rtargets) { popup_target_free(rtargets->data); rtargets = g_list_delete_link(rtargets, rtargets); } } p->n_targets = n; if (refresh_targets) /* don't shrink when refreshing */ p->maxtextw = MAX(p->maxtextw, maxwidth); else p->maxtextw = maxwidth; return change; } static void popup_cleanup(void) { while(popup.targets) { popup_target_free(popup.targets->data); popup.targets = g_list_delete_link(popup.targets, popup.targets); } popup.n_targets = 0; popup.last_target = NULL; } static gchar *popup_get_name(ObClient *c) { ObClient *p; gchar *title; const gchar *desk = NULL; gchar *ret; /* find our highest direct parent */ p = client_search_top_direct_parent(c); if (c->desktop != DESKTOP_ALL && c->desktop != screen_desktop) desk = screen_desktop_names[c->desktop]; title = c->iconic ? c->icon_title : c->title; /* use the transient's parent's title/icon if we don't have one */ if (p != c && title[0] == '\0') title = p->iconic ? p->icon_title : p->title; if (desk) ret = g_strdup_printf("%s [%s]", title, desk); else ret = g_strdup(title); return ret; } static void popup_render(ObFocusCyclePopup *p, const ObClient *c) { gint ml, mt, mr, mb; gint l, t, r, b; gint x, y, w, h; const Rect *screen_area = NULL; gint i; GList *it; const ObFocusCyclePopupTarget *newtarget; ObFocusCyclePopupMode mode = p->mode; gint icons_per_row; gint icon_rows; gint textw, texth; gint selected_pos; gint last_scroll; /* vars for icon mode */ gint icon_mode_textx; gint icon_mode_texty; gint icons_center_x; /* vars for list mode */ gint list_mode_icon_column_w = HILITE_SIZE + OUTSIDE_BORDER; gint up_arrow_x, down_arrow_x; gint up_arrow_y, down_arrow_y; gboolean showing_arrows = FALSE; g_assert(mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS || mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST); screen_area = screen_physical_area_primary(FALSE); /* get the outside margins */ RrMargins(p->a_bg, &ml, &mt, &mr, &mb); /* get our outside borders */ l = ml + OUTSIDE_BORDER; r = mr + OUTSIDE_BORDER; t = mt + OUTSIDE_BORDER; b = mb + OUTSIDE_BORDER; /* get the width from the text and keep it within limits */ w = l + r + p->maxtextw; if (mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) /* when in list mode, there are icons down the side */ w += list_mode_icon_column_w; w = MIN(w, MAX(screen_area->width/3, POPUP_WIDTH)); /* max width */ w = MAX(w, POPUP_WIDTH); /* min width */ /* get the text height */ texth = RrMinHeight(p->a_hilite_text); if (mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) texth = MAX(MAX(texth, RrMinHeight(p->a_text)), HILITE_SIZE); else texth += TEXT_BORDER * 2; if (mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS) { /* how many icons will fit in that row? make the width fit that */ w -= l + r; icons_per_row = (w + HILITE_SIZE - 1) / HILITE_SIZE; w = icons_per_row * HILITE_SIZE + l + r; /* how many rows do we need? */ icon_rows = (p->n_targets-1) / icons_per_row + 1; } else { /* in list mode, there is one column of icons.. */ icons_per_row = 1; /* maximum is 80% of the screen height */ icon_rows = MIN(p->n_targets, (4*screen_area->height/5) /* 80% of the screen */ / MAX(HILITE_SIZE, texth)); /* height of each row */ /* but make sure there is always one */ icon_rows = MAX(icon_rows, 1); } /* get the text width */ textw = w - l - r; if (mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) /* leave space on the side for the icons */ textw -= list_mode_icon_column_w; if (!p->mapped) /* reset the scrolling when the dialog is first shown */ p->scroll = 0; /* find the height of the dialog */ h = t + b + (icon_rows * MAX(HILITE_SIZE, texth)); if (mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS) /* in icon mode the text sits below the icons, so make some space */ h += OUTSIDE_BORDER + texth; /* find the focused target */ newtarget = NULL; for (i = 0, it = p->targets; it; ++i, it = g_list_next(it)) { const ObFocusCyclePopupTarget *target = it->data; if (target->client == c) { /* save the target */ newtarget = target; break; } } selected_pos = i; g_assert(newtarget != NULL); /* scroll the list if needed */ last_scroll = p->scroll; if (mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) { const gint top = p->scroll + SCROLL_MARGIN; const gint bottom = p->scroll + icon_rows - SCROLL_MARGIN; const gint min_scroll = 0; const gint max_scroll = p->n_targets - icon_rows; if (top - selected_pos >= 0) { p->scroll -= top - selected_pos + 1; p->scroll = MAX(p->scroll, min_scroll); } else if (selected_pos - bottom >= 0) { p->scroll += selected_pos - bottom + 1; p->scroll = MIN(p->scroll, max_scroll); } } /* show the scroll arrows when appropriate */ if (p->scroll && mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) { XMapWindow(obt_display, p->list_mode_up); showing_arrows = TRUE; } else XUnmapWindow(obt_display, p->list_mode_up); if (p->scroll < p->n_targets - icon_rows && mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) { XMapWindow(obt_display, p->list_mode_down); showing_arrows = TRUE; } else XUnmapWindow(obt_display, p->list_mode_down); /* make space for the arrows */ if (showing_arrows) h += ob_rr_theme->up_arrow_mask->height + OUTSIDE_BORDER + ob_rr_theme->down_arrow_mask->height + OUTSIDE_BORDER; /* center the icons if there is less than one row */ if (mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS && icon_rows == 1) icons_center_x = (w - p->n_targets * HILITE_SIZE) / 2; else icons_center_x = 0; if (mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS) { /* get the position of the text */ icon_mode_textx = l; icon_mode_texty = h - texth - b; } /* find the position for the popup (include the outer borders) */ x = screen_area->x + (screen_area->width - (w + ob_rr_theme->obwidth * 2)) / 2; y = screen_area->y + (screen_area->height - (h + ob_rr_theme->obwidth * 2)) / 2; if (!p->mapped) { /* position the background but don't draw it */ XMoveResizeWindow(obt_display, p->bg, x, y, w, h); if (mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS) { /* position the text */ XMoveResizeWindow(obt_display, p->icon_mode_text, icon_mode_textx, icon_mode_texty, textw, texth); XMapWindow(obt_display, popup.icon_mode_text); } else { XUnmapWindow(obt_display, popup.icon_mode_text); up_arrow_x = (w - ob_rr_theme->up_arrow_mask->width) / 2; up_arrow_y = t; down_arrow_x = (w - ob_rr_theme->down_arrow_mask->width) / 2; down_arrow_y = h - b - ob_rr_theme->down_arrow_mask->height; /* position the arrows */ XMoveResizeWindow(obt_display, p->list_mode_up, up_arrow_x, up_arrow_y, ob_rr_theme->up_arrow_mask->width, ob_rr_theme->up_arrow_mask->height); XMoveResizeWindow(obt_display, p->list_mode_down, down_arrow_x, down_arrow_y, ob_rr_theme->down_arrow_mask->width, ob_rr_theme->down_arrow_mask->height); } } /* * * draw everything * * */ /* draw the background */ if (!p->mapped) RrPaint(p->a_bg, p->bg, w, h); /* draw the scroll arrows */ if (!p->mapped && mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) { p->a_arrow->texture[0].data.mask.mask = ob_rr_theme->up_arrow_mask; p->a_arrow->surface.parent = p->a_bg; p->a_arrow->surface.parentx = up_arrow_x; p->a_arrow->surface.parenty = up_arrow_y; RrPaint(p->a_arrow, p->list_mode_up, ob_rr_theme->up_arrow_mask->width, ob_rr_theme->up_arrow_mask->height); p->a_arrow->texture[0].data.mask.mask = ob_rr_theme->down_arrow_mask; p->a_arrow->surface.parent = p->a_bg; p->a_arrow->surface.parentx = down_arrow_x; p->a_arrow->surface.parenty = down_arrow_y; RrPaint(p->a_arrow, p->list_mode_down, ob_rr_theme->down_arrow_mask->width, ob_rr_theme->down_arrow_mask->height); } /* draw the icons and text */ for (i = 0, it = p->targets; it; ++i, it = g_list_next(it)) { const ObFocusCyclePopupTarget *target = it->data; /* have to redraw the targetted icon and last targetted icon * to update the hilite */ if (!p->mapped || newtarget == target || p->last_target == target || last_scroll != p->scroll) { /* row and column start from 0 */ const gint row = i / icons_per_row - p->scroll; const gint col = i % icons_per_row; gint iconx, icony; gint list_mode_textx, list_mode_texty; RrAppearance *text; /* find the coordinates for the icon */ iconx = icons_center_x + l + (col * HILITE_SIZE); icony = t + (showing_arrows ? ob_rr_theme->up_arrow_mask->height + OUTSIDE_BORDER : 0) + (row * MAX(texth, HILITE_SIZE)) + MAX(texth - HILITE_SIZE, 0) / 2; /* find the dimensions of the text box */ list_mode_textx = iconx + HILITE_SIZE + TEXT_BORDER; list_mode_texty = icony; /* position the icon */ XMoveResizeWindow(obt_display, target->iconwin, iconx, icony, HILITE_SIZE, HILITE_SIZE); /* position the text */ if (mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) XMoveResizeWindow(obt_display, target->textwin, list_mode_textx, list_mode_texty, textw, texth); /* show/hide the right windows */ if (row >= 0 && row < icon_rows) { XMapWindow(obt_display, target->iconwin); if (mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) XMapWindow(obt_display, target->textwin); else XUnmapWindow(obt_display, target->textwin); } else { XUnmapWindow(obt_display, target->textwin); if (mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST) XUnmapWindow(obt_display, target->iconwin); else XMapWindow(obt_display, target->iconwin); } /* get the icon from the client */ p->a_icon->texture[0].data.image.twidth = ICON_SIZE; p->a_icon->texture[0].data.image.theight = ICON_SIZE; p->a_icon->texture[0].data.image.tx = HILITE_OFFSET; p->a_icon->texture[0].data.image.ty = HILITE_OFFSET; p->a_icon->texture[0].data.image.alpha = target->client->iconic ? OB_ICONIC_ALPHA : 0xff; p->a_icon->texture[0].data.image.image = target->icon; /* Draw the hilite? */ p->a_icon->texture[1].type = (target == newtarget) ? RR_TEXTURE_RGBA : RR_TEXTURE_NONE; /* draw the icon */ p->a_icon->surface.parentx = iconx; p->a_icon->surface.parenty = icony; RrPaint(p->a_icon, target->iconwin, HILITE_SIZE, HILITE_SIZE); /* draw the text */ if (mode == OB_FOCUS_CYCLE_POPUP_MODE_LIST || target == newtarget) { text = (target == newtarget) ? p->a_hilite_text : p->a_text; text->texture[0].data.text.string = target->text; text->surface.parentx = mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS ? icon_mode_textx : list_mode_textx; text->surface.parenty = mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS ? icon_mode_texty : list_mode_texty; RrPaint(text, (mode == OB_FOCUS_CYCLE_POPUP_MODE_ICONS ? p->icon_mode_text : target->textwin), textw, texth); } } } p->last_target = newtarget; XFlush(obt_display); } void focus_cycle_popup_show(ObClient *c, ObFocusCyclePopupMode mode, gboolean linear) { g_assert(c != NULL); if (mode == OB_FOCUS_CYCLE_POPUP_MODE_NONE) { focus_cycle_popup_hide(); return; } /* do this stuff only when the dialog is first showing */ if (!popup.mapped) { popup_setup(&popup, TRUE, FALSE, linear); /* this is fixed once the dialog is shown */ popup.mode = mode; } g_assert(popup.targets != NULL); popup_render(&popup, c); if (!popup.mapped) { /* show the dialog */ XMapWindow(obt_display, popup.bg); XFlush(obt_display); popup.mapped = TRUE; screen_hide_desktop_popup(); } } void focus_cycle_popup_hide(void) { gulong ignore_start; ignore_start = event_start_ignore_all_enters(); XUnmapWindow(obt_display, popup.bg); XFlush(obt_display); event_end_ignore_all_enters(ignore_start); popup.mapped = FALSE; popup_cleanup(); } void focus_cycle_popup_single_show(struct _ObClient *c) { gchar *text; g_assert(c != NULL); /* do this stuff only when the dialog is first showing */ if (!single_popup->popup->mapped) { const Rect *a; /* position the popup */ a = screen_physical_area_primary(FALSE); icon_popup_position(single_popup, CenterGravity, a->x + a->width / 2, a->y + a->height / 2); icon_popup_height(single_popup, POPUP_HEIGHT); icon_popup_min_width(single_popup, POPUP_WIDTH); icon_popup_max_width(single_popup, MAX(a->width/3, POPUP_WIDTH)); icon_popup_text_width(single_popup, popup.maxtextw); } text = popup_get_name(c); icon_popup_show(single_popup, text, client_icon(c)); g_free(text); screen_hide_desktop_popup(); } void focus_cycle_popup_single_hide(void) { icon_popup_hide(single_popup); } gboolean focus_cycle_popup_is_showing(ObClient *c) { if (popup.mapped) { GList *it; for (it = popup.targets; it; it = g_list_next(it)) { ObFocusCyclePopupTarget *t = it->data; if (t->client == c) return TRUE; } } return FALSE; } static ObClient* popup_revert(ObClient *target) { GList *it, *itt; for (it = popup.targets; it; it = g_list_next(it)) { ObFocusCyclePopupTarget *t = it->data; if (t->client == target) { /* move to a previous window if possible */ for (itt = it->prev; itt; itt = g_list_previous(itt)) { ObFocusCyclePopupTarget *t2 = itt->data; if (focus_cycle_valid(t2->client)) return t2->client; } /* otherwise move to a following window if possible */ for (itt = it->next; itt; itt = g_list_next(itt)) { ObFocusCyclePopupTarget *t2 = itt->data; if (focus_cycle_valid(t2->client)) return t2->client; } /* otherwise, we can't go anywhere there is nowhere valid to go */ return NULL; } } return NULL; } ObClient* focus_cycle_popup_refresh(ObClient *target, gboolean redraw, gboolean linear) { if (!popup.mapped) return NULL; if (!focus_cycle_valid(target)) target = popup_revert(target); redraw = popup_setup(&popup, TRUE, TRUE, linear) && redraw; if (!target && popup.targets) target = ((ObFocusCyclePopupTarget*)popup.targets->data)->client; if (target && redraw) { popup.mapped = FALSE; popup_render(&popup, target); XFlush(obt_display); popup.mapped = TRUE; } return target; } openbox-3.6.1/openbox/focus_cycle_popup.h0000644000175300001440000000356312426440016015465 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- focus_cycle.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __focus_cycle_popup_h #define __focus_cycle_popup_h struct _ObClient; #include typedef enum { OB_FOCUS_CYCLE_POPUP_MODE_NONE, OB_FOCUS_CYCLE_POPUP_MODE_ICONS, OB_FOCUS_CYCLE_POPUP_MODE_LIST } ObFocusCyclePopupMode; void focus_cycle_popup_startup(gboolean reconfig); void focus_cycle_popup_shutdown(gboolean reconfig); void focus_cycle_popup_show(struct _ObClient *c, ObFocusCyclePopupMode mode, gboolean linear); void focus_cycle_popup_hide(void); void focus_cycle_popup_single_show(struct _ObClient *c); void focus_cycle_popup_single_hide(void); gboolean focus_cycle_popup_is_showing(struct _ObClient *c); /*! Redraws the focus cycle popup, and returns the current target. If the target given to the function is no longer valid, this will return a different target that is valid, and which should be considered the current focus cycling target. */ struct _ObClient *focus_cycle_popup_refresh(struct _ObClient *target, gboolean redraw, gboolean linear); #endif openbox-3.6.1/openbox/frame.c0000644000175300001440000022465412426440016013037 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- frame.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "frame.h" #include "client.h" #include "openbox.h" #include "grab.h" #include "debug.h" #include "config.h" #include "framerender.h" #include "focus_cycle.h" #include "focus_cycle_indicator.h" #include "moveresize.h" #include "screen.h" #include "obrender/theme.h" #include "obt/display.h" #include "obt/xqueue.h" #include "obt/prop.h" #define FRAME_EVENTMASK (EnterWindowMask | LeaveWindowMask | \ ButtonPressMask | ButtonReleaseMask | \ SubstructureRedirectMask | FocusChangeMask) #define ELEMENT_EVENTMASK (ButtonPressMask | ButtonReleaseMask | \ ButtonMotionMask | PointerMotionMask | \ EnterWindowMask | LeaveWindowMask) #define FRAME_ANIMATE_ICONIFY_TIME 150000 /* .15 seconds */ #define FRAME_ANIMATE_ICONIFY_STEP_TIME (1000 / 60) /* 60 Hz */ #define FRAME_HANDLE_Y(f) (f->size.top + f->client->area.height + f->cbwidth_b) static void flash_done(gpointer data); static gboolean flash_timeout(gpointer data); static void layout_title(ObFrame *self); static void set_theme_statics(ObFrame *self); static void free_theme_statics(ObFrame *self); static gboolean frame_animate_iconify(gpointer self); static void frame_adjust_cursors(ObFrame *self); static Window createWindow(Window parent, Visual *visual, gulong mask, XSetWindowAttributes *attrib) { return XCreateWindow(obt_display, parent, 0, 0, 1, 1, 0, (visual ? 32 : RrDepth(ob_rr_inst)), InputOutput, (visual ? visual : RrVisual(ob_rr_inst)), mask, attrib); } static Visual *check_32bit_client(ObClient *c) { XWindowAttributes wattrib; Status ret; /* we're already running at 32 bit depth, yay. we don't need to use their visual */ if (RrDepth(ob_rr_inst) == 32) return NULL; ret = XGetWindowAttributes(obt_display, c->window, &wattrib); g_assert(ret != BadDrawable); g_assert(ret != BadWindow); if (wattrib.depth == 32) return wattrib.visual; return NULL; } ObFrame *frame_new(ObClient *client) { XSetWindowAttributes attrib; gulong mask; ObFrame *self; Visual *visual; self = g_slice_new0(ObFrame); self->client = client; visual = check_32bit_client(client); /* create the non-visible decor windows */ mask = 0; if (visual) { /* client has a 32-bit visual */ mask = CWColormap | CWBackPixel | CWBorderPixel; /* create a colormap with the visual */ self->colormap = attrib.colormap = XCreateColormap(obt_display, obt_root(ob_screen), visual, AllocNone); attrib.background_pixel = BlackPixel(obt_display, ob_screen); attrib.border_pixel = BlackPixel(obt_display, ob_screen); } self->window = createWindow(obt_root(ob_screen), visual, mask, &attrib); /* create the visible decor windows */ mask = 0; if (visual) { /* client has a 32-bit visual */ mask = CWColormap | CWBackPixel | CWBorderPixel; attrib.colormap = RrColormap(ob_rr_inst); } self->backback = createWindow(self->window, NULL, mask, &attrib); self->backfront = createWindow(self->backback, NULL, mask, &attrib); mask |= CWEventMask; attrib.event_mask = ELEMENT_EVENTMASK; self->innerleft = createWindow(self->window, NULL, mask, &attrib); self->innertop = createWindow(self->window, NULL, mask, &attrib); self->innerright = createWindow(self->window, NULL, mask, &attrib); self->innerbottom = createWindow(self->window, NULL, mask, &attrib); self->innerblb = createWindow(self->innerbottom, NULL, mask, &attrib); self->innerbrb = createWindow(self->innerbottom, NULL, mask, &attrib); self->innerbll = createWindow(self->innerleft, NULL, mask, &attrib); self->innerbrr = createWindow(self->innerright, NULL, mask, &attrib); self->title = createWindow(self->window, NULL, mask, &attrib); self->titleleft = createWindow(self->window, NULL, mask, &attrib); self->titletop = createWindow(self->window, NULL, mask, &attrib); self->titletopleft = createWindow(self->window, NULL, mask, &attrib); self->titletopright = createWindow(self->window, NULL, mask, &attrib); self->titleright = createWindow(self->window, NULL, mask, &attrib); self->titlebottom = createWindow(self->window, NULL, mask, &attrib); self->topresize = createWindow(self->title, NULL, mask, &attrib); self->tltresize = createWindow(self->title, NULL, mask, &attrib); self->tllresize = createWindow(self->title, NULL, mask, &attrib); self->trtresize = createWindow(self->title, NULL, mask, &attrib); self->trrresize = createWindow(self->title, NULL, mask, &attrib); self->left = createWindow(self->window, NULL, mask, &attrib); self->right = createWindow(self->window, NULL, mask, &attrib); self->label = createWindow(self->title, NULL, mask, &attrib); self->max = createWindow(self->title, NULL, mask, &attrib); self->close = createWindow(self->title, NULL, mask, &attrib); self->desk = createWindow(self->title, NULL, mask, &attrib); self->shade = createWindow(self->title, NULL, mask, &attrib); self->icon = createWindow(self->title, NULL, mask, &attrib); self->iconify = createWindow(self->title, NULL, mask, &attrib); self->handle = createWindow(self->window, NULL, mask, &attrib); self->lgrip = createWindow(self->handle, NULL, mask, &attrib); self->rgrip = createWindow(self->handle, NULL, mask, &attrib); self->handleleft = createWindow(self->handle, NULL, mask, &attrib); self->handleright = createWindow(self->handle, NULL, mask, &attrib); self->handletop = createWindow(self->window, NULL, mask, &attrib); self->handlebottom = createWindow(self->window, NULL, mask, &attrib); self->lgripleft = createWindow(self->window, NULL, mask, &attrib); self->lgriptop = createWindow(self->window, NULL, mask, &attrib); self->lgripbottom = createWindow(self->window, NULL, mask, &attrib); self->rgripright = createWindow(self->window, NULL, mask, &attrib); self->rgriptop = createWindow(self->window, NULL, mask, &attrib); self->rgripbottom = createWindow(self->window, NULL, mask, &attrib); self->focused = FALSE; /* the other stuff is shown based on decor settings */ XMapWindow(obt_display, self->label); XMapWindow(obt_display, self->backback); XMapWindow(obt_display, self->backfront); self->max_press = self->close_press = self->desk_press = self->iconify_press = self->shade_press = FALSE; self->max_hover = self->close_hover = self->desk_hover = self->iconify_hover = self->shade_hover = FALSE; /* make sure the size will be different the first time, so the extent hints will be set */ STRUT_SET(self->oldsize, -1, -1, -1, -1); set_theme_statics(self); return self; } static void set_theme_statics(ObFrame *self) { /* set colors/appearance/sizes for stuff that doesn't change */ XResizeWindow(obt_display, self->max, ob_rr_theme->button_size, ob_rr_theme->button_size); XResizeWindow(obt_display, self->iconify, ob_rr_theme->button_size, ob_rr_theme->button_size); XResizeWindow(obt_display, self->icon, ob_rr_theme->button_size + 2, ob_rr_theme->button_size + 2); XResizeWindow(obt_display, self->close, ob_rr_theme->button_size, ob_rr_theme->button_size); XResizeWindow(obt_display, self->desk, ob_rr_theme->button_size, ob_rr_theme->button_size); XResizeWindow(obt_display, self->shade, ob_rr_theme->button_size, ob_rr_theme->button_size); XResizeWindow(obt_display, self->tltresize, ob_rr_theme->grip_width, ob_rr_theme->paddingy + 1); XResizeWindow(obt_display, self->trtresize, ob_rr_theme->grip_width, ob_rr_theme->paddingy + 1); XResizeWindow(obt_display, self->tllresize, ob_rr_theme->paddingx + 1, ob_rr_theme->title_height); XResizeWindow(obt_display, self->trrresize, ob_rr_theme->paddingx + 1, ob_rr_theme->title_height); } static void free_theme_statics(ObFrame *self) { } void frame_free(ObFrame *self) { free_theme_statics(self); XDestroyWindow(obt_display, self->window); if (self->colormap) XFreeColormap(obt_display, self->colormap); g_slice_free(ObFrame, self); } void frame_show(ObFrame *self) { if (!self->visible) { self->visible = TRUE; framerender_frame(self); /* Grab the server to make sure that the frame window is mapped before the client gets its MapNotify, i.e. to make sure the client is _visible_ when it gets MapNotify. */ grab_server(TRUE); XMapWindow(obt_display, self->client->window); XMapWindow(obt_display, self->window); grab_server(FALSE); } } void frame_hide(ObFrame *self) { if (self->visible) { self->visible = FALSE; if (!frame_iconify_animating(self)) XUnmapWindow(obt_display, self->window); /* we unmap the client itself so that we can get MapRequest events, and because the ICCCM tells us to! */ XUnmapWindow(obt_display, self->client->window); self->client->ignore_unmaps += 1; } } void frame_adjust_theme(ObFrame *self) { free_theme_statics(self); set_theme_statics(self); } #ifdef SHAPE void frame_adjust_shape_kind(ObFrame *self, int kind) { gint num; XRectangle xrect[2]; gboolean shaped; shaped = (kind == ShapeBounding && self->client->shaped); #ifdef ShapeInput shaped |= (kind == ShapeInput && self->client->shaped_input); #endif if (!shaped) { /* clear the shape on the frame window */ XShapeCombineMask(obt_display, self->window, kind, self->size.left, self->size.top, None, ShapeSet); } else { /* make the frame's shape match the clients */ XShapeCombineShape(obt_display, self->window, kind, self->size.left, self->size.top, self->client->window, kind, ShapeSet); num = 0; if (self->decorations & OB_FRAME_DECOR_TITLEBAR) { xrect[0].x = 0; xrect[0].y = 0; xrect[0].width = self->area.width; xrect[0].height = self->size.top; ++num; } if (self->decorations & OB_FRAME_DECOR_HANDLE && ob_rr_theme->handle_height > 0) { xrect[1].x = 0; xrect[1].y = FRAME_HANDLE_Y(self); xrect[1].width = self->area.width; xrect[1].height = ob_rr_theme->handle_height + self->bwidth * 2; ++num; } XShapeCombineRectangles(obt_display, self->window, ShapeBounding, 0, 0, xrect, num, ShapeUnion, Unsorted); } } #endif void frame_adjust_shape(ObFrame *self) { #ifdef SHAPE frame_adjust_shape_kind(self, ShapeBounding); #ifdef ShapeInput frame_adjust_shape_kind(self, ShapeInput); #endif #endif } void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized, gboolean fake) { if (resized) { /* do this before changing the frame's status like max_horz max_vert */ frame_adjust_cursors(self); self->functions = self->client->functions; self->decorations = self->client->decorations; self->max_horz = self->client->max_horz; self->max_vert = self->client->max_vert; self->shaded = self->client->shaded; if (self->decorations & OB_FRAME_DECOR_BORDER) self->bwidth = self->client->undecorated ? ob_rr_theme->ubwidth : ob_rr_theme->fbwidth; else self->bwidth = 0; if (self->decorations & OB_FRAME_DECOR_BORDER && !self->client->undecorated) { self->cbwidth_l = self->cbwidth_r = ob_rr_theme->cbwidthx; self->cbwidth_t = self->cbwidth_b = ob_rr_theme->cbwidthy; } else self->cbwidth_l = self->cbwidth_t = self->cbwidth_r = self->cbwidth_b = 0; if (self->max_horz) { self->cbwidth_l = self->cbwidth_r = 0; self->width = self->client->area.width; if (self->max_vert) self->cbwidth_b = 0; } else self->width = self->client->area.width + self->cbwidth_l + self->cbwidth_r; /* some elements are sized based of the width, so don't let them have negative values */ self->width = MAX(self->width, (ob_rr_theme->grip_width + self->bwidth) * 2 + 1); STRUT_SET(self->size, self->cbwidth_l + (!self->max_horz ? self->bwidth : 0), self->cbwidth_t + (!self->max_horz || !self->max_vert ? self->bwidth : 0), self->cbwidth_r + (!self->max_horz ? self->bwidth : 0), self->cbwidth_b + (!self->max_horz || !self->max_vert ? self->bwidth : 0)); if (self->decorations & OB_FRAME_DECOR_TITLEBAR) self->size.top += ob_rr_theme->title_height + self->bwidth; else if (self->max_horz && self->max_vert) { /* A maximized and undecorated window needs a border on the top of the window to let the user still undecorate/unmaximize the window via the client menu. */ self->size.top += self->bwidth; } if (self->decorations & OB_FRAME_DECOR_HANDLE && ob_rr_theme->handle_height > 0) { self->size.bottom += ob_rr_theme->handle_height + self->bwidth; } /* position/size and map/unmap all the windows */ if (!fake) { gint innercornerheight = ob_rr_theme->grip_width - self->size.bottom; if (self->cbwidth_l) { XMoveResizeWindow(obt_display, self->innerleft, self->size.left - self->cbwidth_l, self->size.top, self->cbwidth_l, self->client->area.height); XMapWindow(obt_display, self->innerleft); } else XUnmapWindow(obt_display, self->innerleft); if (self->cbwidth_l && innercornerheight > 0) { XMoveResizeWindow(obt_display, self->innerbll, 0, self->client->area.height - (ob_rr_theme->grip_width - self->size.bottom), self->cbwidth_l, ob_rr_theme->grip_width - self->size.bottom); XMapWindow(obt_display, self->innerbll); } else XUnmapWindow(obt_display, self->innerbll); if (self->cbwidth_r) { XMoveResizeWindow(obt_display, self->innerright, self->size.left + self->client->area.width, self->size.top, self->cbwidth_r, self->client->area.height); XMapWindow(obt_display, self->innerright); } else XUnmapWindow(obt_display, self->innerright); if (self->cbwidth_r && innercornerheight > 0) { XMoveResizeWindow(obt_display, self->innerbrr, 0, self->client->area.height - (ob_rr_theme->grip_width - self->size.bottom), self->cbwidth_r, ob_rr_theme->grip_width - self->size.bottom); XMapWindow(obt_display, self->innerbrr); } else XUnmapWindow(obt_display, self->innerbrr); if (self->cbwidth_t) { XMoveResizeWindow(obt_display, self->innertop, self->size.left - self->cbwidth_l, self->size.top - self->cbwidth_t, self->client->area.width + self->cbwidth_l + self->cbwidth_r, self->cbwidth_t); XMapWindow(obt_display, self->innertop); } else XUnmapWindow(obt_display, self->innertop); if (self->cbwidth_b) { XMoveResizeWindow(obt_display, self->innerbottom, self->size.left - self->cbwidth_l, self->size.top + self->client->area.height, self->client->area.width + self->cbwidth_l + self->cbwidth_r, self->cbwidth_b); XMoveResizeWindow(obt_display, self->innerblb, 0, 0, ob_rr_theme->grip_width + self->bwidth, self->cbwidth_b); XMoveResizeWindow(obt_display, self->innerbrb, self->client->area.width + self->cbwidth_l + self->cbwidth_r - (ob_rr_theme->grip_width + self->bwidth), 0, ob_rr_theme->grip_width + self->bwidth, self->cbwidth_b); XMapWindow(obt_display, self->innerbottom); XMapWindow(obt_display, self->innerblb); XMapWindow(obt_display, self->innerbrb); } else { XUnmapWindow(obt_display, self->innerbottom); XUnmapWindow(obt_display, self->innerblb); XUnmapWindow(obt_display, self->innerbrb); } if (self->bwidth) { gint titlesides; /* height of titleleft and titleright */ titlesides = (!self->max_horz ? ob_rr_theme->grip_width : 0); XMoveResizeWindow(obt_display, self->titletop, ob_rr_theme->grip_width + self->bwidth, 0, /* width + bwidth*2 - bwidth*2 - grips*2 */ self->width - ob_rr_theme->grip_width * 2, self->bwidth); XMoveResizeWindow(obt_display, self->titletopleft, 0, 0, ob_rr_theme->grip_width + self->bwidth, self->bwidth); XMoveResizeWindow(obt_display, self->titletopright, self->client->area.width + self->size.left + self->size.right - ob_rr_theme->grip_width - self->bwidth, 0, ob_rr_theme->grip_width + self->bwidth, self->bwidth); if (titlesides > 0) { XMoveResizeWindow(obt_display, self->titleleft, 0, self->bwidth, self->bwidth, titlesides); XMoveResizeWindow(obt_display, self->titleright, self->client->area.width + self->size.left + self->size.right - self->bwidth, self->bwidth, self->bwidth, titlesides); XMapWindow(obt_display, self->titleleft); XMapWindow(obt_display, self->titleright); } else { XUnmapWindow(obt_display, self->titleleft); XUnmapWindow(obt_display, self->titleright); } XMapWindow(obt_display, self->titletop); XMapWindow(obt_display, self->titletopleft); XMapWindow(obt_display, self->titletopright); if (self->decorations & OB_FRAME_DECOR_TITLEBAR) { XMoveResizeWindow(obt_display, self->titlebottom, (self->max_horz ? 0 : self->bwidth), ob_rr_theme->title_height + self->bwidth, self->width, self->bwidth); XMapWindow(obt_display, self->titlebottom); } else XUnmapWindow(obt_display, self->titlebottom); } else { XUnmapWindow(obt_display, self->titlebottom); XUnmapWindow(obt_display, self->titletop); XUnmapWindow(obt_display, self->titletopleft); XUnmapWindow(obt_display, self->titletopright); XUnmapWindow(obt_display, self->titleleft); XUnmapWindow(obt_display, self->titleright); } if (self->decorations & OB_FRAME_DECOR_TITLEBAR) { XMoveResizeWindow(obt_display, self->title, (self->max_horz ? 0 : self->bwidth), self->bwidth, self->width, ob_rr_theme->title_height); XMapWindow(obt_display, self->title); if (self->decorations & OB_FRAME_DECOR_GRIPS) { XMoveResizeWindow(obt_display, self->topresize, ob_rr_theme->grip_width, 0, self->width - ob_rr_theme->grip_width *2, ob_rr_theme->paddingy + 1); XMoveWindow(obt_display, self->tltresize, 0, 0); XMoveWindow(obt_display, self->tllresize, 0, 0); XMoveWindow(obt_display, self->trtresize, self->width - ob_rr_theme->grip_width, 0); XMoveWindow(obt_display, self->trrresize, self->width - ob_rr_theme->paddingx - 1, 0); XMapWindow(obt_display, self->topresize); XMapWindow(obt_display, self->tltresize); XMapWindow(obt_display, self->tllresize); XMapWindow(obt_display, self->trtresize); XMapWindow(obt_display, self->trrresize); } else { XUnmapWindow(obt_display, self->topresize); XUnmapWindow(obt_display, self->tltresize); XUnmapWindow(obt_display, self->tllresize); XUnmapWindow(obt_display, self->trtresize); XUnmapWindow(obt_display, self->trrresize); } } else XUnmapWindow(obt_display, self->title); } if ((self->decorations & OB_FRAME_DECOR_TITLEBAR)) /* layout the title bar elements */ layout_title(self); if (!fake) { gint sidebwidth = self->max_horz ? 0 : self->bwidth; if (self->bwidth && self->size.bottom) { XMoveResizeWindow(obt_display, self->handlebottom, ob_rr_theme->grip_width + self->bwidth + sidebwidth, self->size.top + self->client->area.height + self->size.bottom - self->bwidth, self->width - (ob_rr_theme->grip_width + sidebwidth) * 2, self->bwidth); if (sidebwidth) { XMoveResizeWindow(obt_display, self->lgripleft, 0, self->size.top + self->client->area.height + self->size.bottom - (!self->max_horz ? ob_rr_theme->grip_width : self->size.bottom - self->cbwidth_b), self->bwidth, (!self->max_horz ? ob_rr_theme->grip_width : self->size.bottom - self->cbwidth_b)); XMoveResizeWindow(obt_display, self->rgripright, self->size.left + self->client->area.width + self->size.right - self->bwidth, self->size.top + self->client->area.height + self->size.bottom - (!self->max_horz ? ob_rr_theme->grip_width : self->size.bottom - self->cbwidth_b), self->bwidth, (!self->max_horz ? ob_rr_theme->grip_width : self->size.bottom - self->cbwidth_b)); XMapWindow(obt_display, self->lgripleft); XMapWindow(obt_display, self->rgripright); } else { XUnmapWindow(obt_display, self->lgripleft); XUnmapWindow(obt_display, self->rgripright); } XMoveResizeWindow(obt_display, self->lgripbottom, sidebwidth, self->size.top + self->client->area.height + self->size.bottom - self->bwidth, ob_rr_theme->grip_width + self->bwidth, self->bwidth); XMoveResizeWindow(obt_display, self->rgripbottom, self->size.left + self->client->area.width + self->size.right - self->bwidth - sidebwidth- ob_rr_theme->grip_width, self->size.top + self->client->area.height + self->size.bottom - self->bwidth, ob_rr_theme->grip_width + self->bwidth, self->bwidth); XMapWindow(obt_display, self->handlebottom); XMapWindow(obt_display, self->lgripbottom); XMapWindow(obt_display, self->rgripbottom); if (self->decorations & OB_FRAME_DECOR_HANDLE && ob_rr_theme->handle_height > 0) { XMoveResizeWindow(obt_display, self->handletop, ob_rr_theme->grip_width + self->bwidth + sidebwidth, FRAME_HANDLE_Y(self), self->width - (ob_rr_theme->grip_width + sidebwidth) * 2, self->bwidth); XMapWindow(obt_display, self->handletop); if (self->decorations & OB_FRAME_DECOR_GRIPS) { XMoveResizeWindow(obt_display, self->handleleft, ob_rr_theme->grip_width, 0, self->bwidth, ob_rr_theme->handle_height); XMoveResizeWindow(obt_display, self->handleright, self->width - ob_rr_theme->grip_width - self->bwidth, 0, self->bwidth, ob_rr_theme->handle_height); XMoveResizeWindow(obt_display, self->lgriptop, sidebwidth, FRAME_HANDLE_Y(self), ob_rr_theme->grip_width + self->bwidth, self->bwidth); XMoveResizeWindow(obt_display, self->rgriptop, self->size.left + self->client->area.width + self->size.right - self->bwidth - sidebwidth - ob_rr_theme->grip_width, FRAME_HANDLE_Y(self), ob_rr_theme->grip_width + self->bwidth, self->bwidth); XMapWindow(obt_display, self->handleleft); XMapWindow(obt_display, self->handleright); XMapWindow(obt_display, self->lgriptop); XMapWindow(obt_display, self->rgriptop); } else { XUnmapWindow(obt_display, self->handleleft); XUnmapWindow(obt_display, self->handleright); XUnmapWindow(obt_display, self->lgriptop); XUnmapWindow(obt_display, self->rgriptop); } } else { XUnmapWindow(obt_display, self->handleleft); XUnmapWindow(obt_display, self->handleright); XUnmapWindow(obt_display, self->lgriptop); XUnmapWindow(obt_display, self->rgriptop); XUnmapWindow(obt_display, self->handletop); } } else { XUnmapWindow(obt_display, self->handleleft); XUnmapWindow(obt_display, self->handleright); XUnmapWindow(obt_display, self->lgriptop); XUnmapWindow(obt_display, self->rgriptop); XUnmapWindow(obt_display, self->handletop); XUnmapWindow(obt_display, self->handlebottom); XUnmapWindow(obt_display, self->lgripleft); XUnmapWindow(obt_display, self->rgripright); XUnmapWindow(obt_display, self->lgripbottom); XUnmapWindow(obt_display, self->rgripbottom); } if (self->decorations & OB_FRAME_DECOR_HANDLE && ob_rr_theme->handle_height > 0) { XMoveResizeWindow(obt_display, self->handle, sidebwidth, FRAME_HANDLE_Y(self) + self->bwidth, self->width, ob_rr_theme->handle_height); XMapWindow(obt_display, self->handle); if (self->decorations & OB_FRAME_DECOR_GRIPS) { XMoveResizeWindow(obt_display, self->lgrip, 0, 0, ob_rr_theme->grip_width, ob_rr_theme->handle_height); XMoveResizeWindow(obt_display, self->rgrip, self->width - ob_rr_theme->grip_width, 0, ob_rr_theme->grip_width, ob_rr_theme->handle_height); XMapWindow(obt_display, self->lgrip); XMapWindow(obt_display, self->rgrip); } else { XUnmapWindow(obt_display, self->lgrip); XUnmapWindow(obt_display, self->rgrip); } } else { XUnmapWindow(obt_display, self->lgrip); XUnmapWindow(obt_display, self->rgrip); XUnmapWindow(obt_display, self->handle); } if (self->bwidth && !self->max_horz && (self->client->area.height + self->size.top + self->size.bottom) > ob_rr_theme->grip_width * 2) { XMoveResizeWindow(obt_display, self->left, 0, self->bwidth + ob_rr_theme->grip_width, self->bwidth, self->client->area.height + self->size.top + self->size.bottom - ob_rr_theme->grip_width * 2); XMapWindow(obt_display, self->left); } else XUnmapWindow(obt_display, self->left); if (self->bwidth && !self->max_horz && (self->client->area.height + self->size.top + self->size.bottom) > ob_rr_theme->grip_width * 2) { XMoveResizeWindow(obt_display, self->right, self->client->area.width + self->cbwidth_l + self->cbwidth_r + self->bwidth, self->bwidth + ob_rr_theme->grip_width, self->bwidth, self->client->area.height + self->size.top + self->size.bottom - ob_rr_theme->grip_width * 2); XMapWindow(obt_display, self->right); } else XUnmapWindow(obt_display, self->right); XMoveResizeWindow(obt_display, self->backback, self->size.left, self->size.top, self->client->area.width, self->client->area.height); } } /* shading can change without being moved or resized */ RECT_SET_SIZE(self->area, self->client->area.width + self->size.left + self->size.right, (self->client->shaded ? ob_rr_theme->title_height + self->bwidth * 2: self->client->area.height + self->size.top + self->size.bottom)); if ((moved || resized) && !fake) { /* find the new coordinates, done after setting the frame.size, for frame_client_gravity. */ self->area.x = self->client->area.x; self->area.y = self->client->area.y; frame_client_gravity(self, &self->area.x, &self->area.y); } if (!fake) { if (!frame_iconify_animating(self)) /* move and resize the top level frame. shading can change without being moved or resized. but don't do this during an iconify animation. it will be reflected afterwards. */ XMoveResizeWindow(obt_display, self->window, self->area.x, self->area.y, self->area.width, self->area.height); /* when the client has StaticGravity, it likes to move around. also this correctly positions the client when it maps. this also needs to be run when the frame's decorations sizes change! */ XMoveWindow(obt_display, self->client->window, self->size.left, self->size.top); if (resized) { self->need_render = TRUE; framerender_frame(self); frame_adjust_shape(self); } if (!STRUT_EQUAL(self->size, self->oldsize)) { gulong vals[4]; vals[0] = self->size.left; vals[1] = self->size.right; vals[2] = self->size.top; vals[3] = self->size.bottom; OBT_PROP_SETA32(self->client->window, NET_FRAME_EXTENTS, CARDINAL, vals, 4); OBT_PROP_SETA32(self->client->window, KDE_NET_WM_FRAME_STRUT, CARDINAL, vals, 4); self->oldsize = self->size; } /* if this occurs while we are focus cycling, the indicator needs to match the changes */ if (focus_cycle_target == self->client) focus_cycle_update_indicator(self->client); } if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR) && self->label_width) { XResizeWindow(obt_display, self->label, self->label_width, ob_rr_theme->label_height); } } static void frame_adjust_cursors(ObFrame *self) { if ((self->functions & OB_CLIENT_FUNC_RESIZE) != (self->client->functions & OB_CLIENT_FUNC_RESIZE) || self->max_horz != self->client->max_horz || self->max_vert != self->client->max_vert || self->shaded != self->client->shaded) { gboolean r = (self->client->functions & OB_CLIENT_FUNC_RESIZE) && !(self->client->max_horz && self->client->max_vert); gboolean topbot = !self->client->max_vert; gboolean sh = self->client->shaded; XSetWindowAttributes a; /* these ones turn off when max vert, and some when shaded */ a.cursor = ob_cursor(r && topbot && !sh ? OB_CURSOR_NORTH : OB_CURSOR_NONE); XChangeWindowAttributes(obt_display, self->topresize, CWCursor, &a); XChangeWindowAttributes(obt_display, self->titletop, CWCursor, &a); a.cursor = ob_cursor(r && topbot ? OB_CURSOR_SOUTH : OB_CURSOR_NONE); XChangeWindowAttributes(obt_display, self->handle, CWCursor, &a); XChangeWindowAttributes(obt_display, self->handletop, CWCursor, &a); XChangeWindowAttributes(obt_display, self->handlebottom, CWCursor, &a); XChangeWindowAttributes(obt_display, self->innerbottom, CWCursor, &a); /* these ones change when shaded */ a.cursor = ob_cursor(r ? (sh ? OB_CURSOR_WEST : OB_CURSOR_NORTHWEST) : OB_CURSOR_NONE); XChangeWindowAttributes(obt_display, self->titleleft, CWCursor, &a); XChangeWindowAttributes(obt_display, self->tltresize, CWCursor, &a); XChangeWindowAttributes(obt_display, self->tllresize, CWCursor, &a); XChangeWindowAttributes(obt_display, self->titletopleft, CWCursor, &a); a.cursor = ob_cursor(r ? (sh ? OB_CURSOR_EAST : OB_CURSOR_NORTHEAST) : OB_CURSOR_NONE); XChangeWindowAttributes(obt_display, self->titleright, CWCursor, &a); XChangeWindowAttributes(obt_display, self->trtresize, CWCursor, &a); XChangeWindowAttributes(obt_display, self->trrresize, CWCursor, &a); XChangeWindowAttributes(obt_display, self->titletopright, CWCursor,&a); /* these ones are pretty static */ a.cursor = ob_cursor(r ? OB_CURSOR_WEST : OB_CURSOR_NONE); XChangeWindowAttributes(obt_display, self->left, CWCursor, &a); XChangeWindowAttributes(obt_display, self->innerleft, CWCursor, &a); a.cursor = ob_cursor(r ? OB_CURSOR_EAST : OB_CURSOR_NONE); XChangeWindowAttributes(obt_display, self->right, CWCursor, &a); XChangeWindowAttributes(obt_display, self->innerright, CWCursor, &a); a.cursor = ob_cursor(r ? OB_CURSOR_SOUTHWEST : OB_CURSOR_NONE); XChangeWindowAttributes(obt_display, self->lgrip, CWCursor, &a); XChangeWindowAttributes(obt_display, self->handleleft, CWCursor, &a); XChangeWindowAttributes(obt_display, self->lgripleft, CWCursor, &a); XChangeWindowAttributes(obt_display, self->lgriptop, CWCursor, &a); XChangeWindowAttributes(obt_display, self->lgripbottom, CWCursor, &a); XChangeWindowAttributes(obt_display, self->innerbll, CWCursor, &a); XChangeWindowAttributes(obt_display, self->innerblb, CWCursor, &a); a.cursor = ob_cursor(r ? OB_CURSOR_SOUTHEAST : OB_CURSOR_NONE); XChangeWindowAttributes(obt_display, self->rgrip, CWCursor, &a); XChangeWindowAttributes(obt_display, self->handleright, CWCursor, &a); XChangeWindowAttributes(obt_display, self->rgripright, CWCursor, &a); XChangeWindowAttributes(obt_display, self->rgriptop, CWCursor, &a); XChangeWindowAttributes(obt_display, self->rgripbottom, CWCursor, &a); XChangeWindowAttributes(obt_display, self->innerbrr, CWCursor, &a); XChangeWindowAttributes(obt_display, self->innerbrb, CWCursor, &a); } } void frame_adjust_client_area(ObFrame *self) { /* adjust the window which is there to prevent flashing on unmap */ XMoveResizeWindow(obt_display, self->backfront, 0, 0, self->client->area.width, self->client->area.height); } void frame_adjust_state(ObFrame *self) { self->need_render = TRUE; framerender_frame(self); } void frame_adjust_focus(ObFrame *self, gboolean hilite) { ob_debug_type(OB_DEBUG_FOCUS, "Frame for 0x%x has focus: %d", self->client->window, hilite); self->focused = hilite; self->need_render = TRUE; framerender_frame(self); XFlush(obt_display); } void frame_adjust_title(ObFrame *self) { self->need_render = TRUE; framerender_frame(self); } void frame_adjust_icon(ObFrame *self) { self->need_render = TRUE; framerender_frame(self); } void frame_grab_client(ObFrame *self) { /* DO NOT map the client window here. we used to do that, but it is bogus. we need to set up the client's dimensions and everything before we send a mapnotify or we create race conditions. */ /* reparent the client to the frame */ XReparentWindow(obt_display, self->client->window, self->window, 0, 0); /* When reparenting the client window, it is usually not mapped yet, since this occurs from a MapRequest. However, in the case where Openbox is starting up, the window is already mapped, so we'll see an unmap event for it. */ if (ob_state() == OB_STATE_STARTING) ++self->client->ignore_unmaps; /* select the event mask on the client's parent (to receive config/map req's) the ButtonPress is to catch clicks on the client border */ XSelectInput(obt_display, self->window, FRAME_EVENTMASK); /* set all the windows for the frame in the window_map */ window_add(&self->window, CLIENT_AS_WINDOW(self->client)); window_add(&self->backback, CLIENT_AS_WINDOW(self->client)); window_add(&self->backfront, CLIENT_AS_WINDOW(self->client)); window_add(&self->innerleft, CLIENT_AS_WINDOW(self->client)); window_add(&self->innertop, CLIENT_AS_WINDOW(self->client)); window_add(&self->innerright, CLIENT_AS_WINDOW(self->client)); window_add(&self->innerbottom, CLIENT_AS_WINDOW(self->client)); window_add(&self->innerblb, CLIENT_AS_WINDOW(self->client)); window_add(&self->innerbll, CLIENT_AS_WINDOW(self->client)); window_add(&self->innerbrb, CLIENT_AS_WINDOW(self->client)); window_add(&self->innerbrr, CLIENT_AS_WINDOW(self->client)); window_add(&self->title, CLIENT_AS_WINDOW(self->client)); window_add(&self->label, CLIENT_AS_WINDOW(self->client)); window_add(&self->max, CLIENT_AS_WINDOW(self->client)); window_add(&self->close, CLIENT_AS_WINDOW(self->client)); window_add(&self->desk, CLIENT_AS_WINDOW(self->client)); window_add(&self->shade, CLIENT_AS_WINDOW(self->client)); window_add(&self->icon, CLIENT_AS_WINDOW(self->client)); window_add(&self->iconify, CLIENT_AS_WINDOW(self->client)); window_add(&self->handle, CLIENT_AS_WINDOW(self->client)); window_add(&self->lgrip, CLIENT_AS_WINDOW(self->client)); window_add(&self->rgrip, CLIENT_AS_WINDOW(self->client)); window_add(&self->topresize, CLIENT_AS_WINDOW(self->client)); window_add(&self->tltresize, CLIENT_AS_WINDOW(self->client)); window_add(&self->tllresize, CLIENT_AS_WINDOW(self->client)); window_add(&self->trtresize, CLIENT_AS_WINDOW(self->client)); window_add(&self->trrresize, CLIENT_AS_WINDOW(self->client)); window_add(&self->left, CLIENT_AS_WINDOW(self->client)); window_add(&self->right, CLIENT_AS_WINDOW(self->client)); window_add(&self->titleleft, CLIENT_AS_WINDOW(self->client)); window_add(&self->titletop, CLIENT_AS_WINDOW(self->client)); window_add(&self->titletopleft, CLIENT_AS_WINDOW(self->client)); window_add(&self->titletopright, CLIENT_AS_WINDOW(self->client)); window_add(&self->titleright, CLIENT_AS_WINDOW(self->client)); window_add(&self->titlebottom, CLIENT_AS_WINDOW(self->client)); window_add(&self->handleleft, CLIENT_AS_WINDOW(self->client)); window_add(&self->handletop, CLIENT_AS_WINDOW(self->client)); window_add(&self->handleright, CLIENT_AS_WINDOW(self->client)); window_add(&self->handlebottom, CLIENT_AS_WINDOW(self->client)); window_add(&self->lgripleft, CLIENT_AS_WINDOW(self->client)); window_add(&self->lgriptop, CLIENT_AS_WINDOW(self->client)); window_add(&self->lgripbottom, CLIENT_AS_WINDOW(self->client)); window_add(&self->rgripright, CLIENT_AS_WINDOW(self->client)); window_add(&self->rgriptop, CLIENT_AS_WINDOW(self->client)); window_add(&self->rgripbottom, CLIENT_AS_WINDOW(self->client)); } static gboolean find_reparent(XEvent *e, gpointer data) { const ObFrame *self = data; /* Find ReparentNotify events for the window that aren't being reparented into the frame, thus the client reparenting itself off the frame. */ return e->type == ReparentNotify && e->xreparent.window == self->client->window && e->xreparent.parent != self->window; } void frame_release_client(ObFrame *self) { /* if there was any animation going on, kill it */ if (self->iconify_animation_timer) g_source_remove(self->iconify_animation_timer); /* check if the app has already reparented its window away */ if (!xqueue_exists_local(find_reparent, self)) { /* according to the ICCCM - if the client doesn't reparent itself, then we will reparent the window to root for them */ XReparentWindow(obt_display, self->client->window, obt_root(ob_screen), self->client->area.x, self->client->area.y); } /* remove all the windows for the frame from the window_map */ window_remove(self->window); window_remove(self->backback); window_remove(self->backfront); window_remove(self->innerleft); window_remove(self->innertop); window_remove(self->innerright); window_remove(self->innerbottom); window_remove(self->innerblb); window_remove(self->innerbll); window_remove(self->innerbrb); window_remove(self->innerbrr); window_remove(self->title); window_remove(self->label); window_remove(self->max); window_remove(self->close); window_remove(self->desk); window_remove(self->shade); window_remove(self->icon); window_remove(self->iconify); window_remove(self->handle); window_remove(self->lgrip); window_remove(self->rgrip); window_remove(self->topresize); window_remove(self->tltresize); window_remove(self->tllresize); window_remove(self->trtresize); window_remove(self->trrresize); window_remove(self->left); window_remove(self->right); window_remove(self->titleleft); window_remove(self->titletop); window_remove(self->titletopleft); window_remove(self->titletopright); window_remove(self->titleright); window_remove(self->titlebottom); window_remove(self->handleleft); window_remove(self->handletop); window_remove(self->handleright); window_remove(self->handlebottom); window_remove(self->lgripleft); window_remove(self->lgriptop); window_remove(self->lgripbottom); window_remove(self->rgripright); window_remove(self->rgriptop); window_remove(self->rgripbottom); if (self->flash_timer) g_source_remove(self->flash_timer); } /* is there anything present between us and the label? */ static gboolean is_button_present(ObFrame *self, const gchar *lc, gint dir) { for (; *lc != '\0' && lc >= config_title_layout; lc += dir) { if (*lc == ' ') continue; /* it was invalid */ if (*lc == 'N' && self->decorations & OB_FRAME_DECOR_ICON) return TRUE; if (*lc == 'D' && self->decorations & OB_FRAME_DECOR_ALLDESKTOPS) return TRUE; if (*lc == 'S' && self->decorations & OB_FRAME_DECOR_SHADE) return TRUE; if (*lc == 'I' && self->decorations & OB_FRAME_DECOR_ICONIFY) return TRUE; if (*lc == 'M' && self->decorations & OB_FRAME_DECOR_MAXIMIZE) return TRUE; if (*lc == 'C' && self->decorations & OB_FRAME_DECOR_CLOSE) return TRUE; if (*lc == 'L') return FALSE; } return FALSE; } static void place_button(ObFrame *self, const char *lc, gint bwidth, gint left, gint i, gint *x, gint *button_on, gint *button_x) { if (!(*button_on = is_button_present(self, lc, i))) return; self->label_width -= bwidth; if (i > 0) *button_x = *x; *x += i * bwidth; if (i < 0) { if (self->label_x <= left || *x > self->label_x) { *button_x = *x; } else { /* the button would have been drawn on top of another button */ *button_on = FALSE; self->label_width += bwidth; } } } static void layout_title(ObFrame *self) { gchar *lc; gint i; const gint bwidth = ob_rr_theme->button_size + ob_rr_theme->paddingx + 1; /* position of the leftmost button */ const gint left = ob_rr_theme->paddingx + 1; /* position of the rightmost button */ const gint right = self->width; /* turn them all off */ self->icon_on = self->desk_on = self->shade_on = self->iconify_on = self->max_on = self->close_on = self->label_on = FALSE; self->label_width = self->width - (ob_rr_theme->paddingx + 1) * 2; self->leftmost = self->rightmost = OB_FRAME_CONTEXT_NONE; /* figure out what's being shown, find each element's position, and the width of the label do the ones before the label, then after the label, i will be +1 the first time through when working to the left, and -1 the second time through when working to the right */ for (i = 1; i >= -1; i-=2) { gint x; ObFrameContext *firstcon; if (i > 0) { x = left; lc = config_title_layout; firstcon = &self->leftmost; } else { x = right; lc = config_title_layout + strlen(config_title_layout)-1; firstcon = &self->rightmost; } /* stop at the end of the string (or the label, which calls break) */ for (; *lc != '\0' && lc >= config_title_layout; lc+=i) { if (*lc == 'L') { if (i > 0) { self->label_on = TRUE; self->label_x = x; } break; /* break the for loop, do other side of label */ } else if (*lc == 'N') { if (firstcon) *firstcon = OB_FRAME_CONTEXT_ICON; /* icon is bigger than buttons */ place_button(self, lc, bwidth + 2, left, i, &x, &self->icon_on, &self->icon_x); } else if (*lc == 'D') { if (firstcon) *firstcon = OB_FRAME_CONTEXT_ALLDESKTOPS; place_button(self, lc, bwidth, left, i, &x, &self->desk_on, &self->desk_x); } else if (*lc == 'S') { if (firstcon) *firstcon = OB_FRAME_CONTEXT_SHADE; place_button(self, lc, bwidth, left, i, &x, &self->shade_on, &self->shade_x); } else if (*lc == 'I') { if (firstcon) *firstcon = OB_FRAME_CONTEXT_ICONIFY; place_button(self, lc, bwidth, left, i, &x, &self->iconify_on, &self->iconify_x); } else if (*lc == 'M') { if (firstcon) *firstcon = OB_FRAME_CONTEXT_MAXIMIZE; place_button(self, lc, bwidth, left, i, &x, &self->max_on, &self->max_x); } else if (*lc == 'C') { if (firstcon) *firstcon = OB_FRAME_CONTEXT_CLOSE; place_button(self, lc, bwidth, left, i, &x, &self->close_on, &self->close_x); } else continue; /* don't set firstcon */ firstcon = NULL; } } /* position and map the elements */ if (self->icon_on) { XMapWindow(obt_display, self->icon); XMoveWindow(obt_display, self->icon, self->icon_x, ob_rr_theme->paddingy); } else XUnmapWindow(obt_display, self->icon); if (self->desk_on) { XMapWindow(obt_display, self->desk); XMoveWindow(obt_display, self->desk, self->desk_x, ob_rr_theme->paddingy + 1); } else XUnmapWindow(obt_display, self->desk); if (self->shade_on) { XMapWindow(obt_display, self->shade); XMoveWindow(obt_display, self->shade, self->shade_x, ob_rr_theme->paddingy + 1); } else XUnmapWindow(obt_display, self->shade); if (self->iconify_on) { XMapWindow(obt_display, self->iconify); XMoveWindow(obt_display, self->iconify, self->iconify_x, ob_rr_theme->paddingy + 1); } else XUnmapWindow(obt_display, self->iconify); if (self->max_on) { XMapWindow(obt_display, self->max); XMoveWindow(obt_display, self->max, self->max_x, ob_rr_theme->paddingy + 1); } else XUnmapWindow(obt_display, self->max); if (self->close_on) { XMapWindow(obt_display, self->close); XMoveWindow(obt_display, self->close, self->close_x, ob_rr_theme->paddingy + 1); } else XUnmapWindow(obt_display, self->close); if (self->label_on && self->label_width > 0) { XMapWindow(obt_display, self->label); XMoveWindow(obt_display, self->label, self->label_x, ob_rr_theme->paddingy); } else XUnmapWindow(obt_display, self->label); } gboolean frame_next_context_from_string(gchar *names, ObFrameContext *cx) { gchar *p, *n; if (!*names) /* empty string */ return FALSE; /* find the first space */ for (p = names; *p; p = g_utf8_next_char(p)) { const gunichar c = g_utf8_get_char(p); if (g_unichar_isspace(c)) break; } if (p == names) { /* leading spaces in the string */ n = g_utf8_next_char(names); if (!frame_next_context_from_string(n, cx)) return FALSE; } else { n = p; if (*p) { /* delete the space with null zero(s) */ while (n < g_utf8_next_char(p)) *(n++) = '\0'; } *cx = frame_context_from_string(names); /* find the next non-space */ for (; *n; n = g_utf8_next_char(n)) { const gunichar c = g_utf8_get_char(n); if (!g_unichar_isspace(c)) break; } } /* delete everything we just read (copy everything at n to the start of the string */ for (p = names; *n; ++p, ++n) *p = *n; *p = *n; return TRUE; } ObFrameContext frame_context_from_string(const gchar *name) { if (!g_ascii_strcasecmp("Desktop", name)) return OB_FRAME_CONTEXT_DESKTOP; else if (!g_ascii_strcasecmp("Root", name)) return OB_FRAME_CONTEXT_ROOT; else if (!g_ascii_strcasecmp("Client", name)) return OB_FRAME_CONTEXT_CLIENT; else if (!g_ascii_strcasecmp("Titlebar", name)) return OB_FRAME_CONTEXT_TITLEBAR; else if (!g_ascii_strcasecmp("Frame", name)) return OB_FRAME_CONTEXT_FRAME; else if (!g_ascii_strcasecmp("TLCorner", name)) return OB_FRAME_CONTEXT_TLCORNER; else if (!g_ascii_strcasecmp("TRCorner", name)) return OB_FRAME_CONTEXT_TRCORNER; else if (!g_ascii_strcasecmp("BLCorner", name)) return OB_FRAME_CONTEXT_BLCORNER; else if (!g_ascii_strcasecmp("BRCorner", name)) return OB_FRAME_CONTEXT_BRCORNER; else if (!g_ascii_strcasecmp("Top", name)) return OB_FRAME_CONTEXT_TOP; else if (!g_ascii_strcasecmp("Bottom", name)) return OB_FRAME_CONTEXT_BOTTOM; else if (!g_ascii_strcasecmp("Left", name)) return OB_FRAME_CONTEXT_LEFT; else if (!g_ascii_strcasecmp("Right", name)) return OB_FRAME_CONTEXT_RIGHT; else if (!g_ascii_strcasecmp("Maximize", name)) return OB_FRAME_CONTEXT_MAXIMIZE; else if (!g_ascii_strcasecmp("AllDesktops", name)) return OB_FRAME_CONTEXT_ALLDESKTOPS; else if (!g_ascii_strcasecmp("Shade", name)) return OB_FRAME_CONTEXT_SHADE; else if (!g_ascii_strcasecmp("Iconify", name)) return OB_FRAME_CONTEXT_ICONIFY; else if (!g_ascii_strcasecmp("Icon", name)) return OB_FRAME_CONTEXT_ICON; else if (!g_ascii_strcasecmp("Close", name)) return OB_FRAME_CONTEXT_CLOSE; else if (!g_ascii_strcasecmp("MoveResize", name)) return OB_FRAME_CONTEXT_MOVE_RESIZE; else if (!g_ascii_strcasecmp("Dock", name)) return OB_FRAME_CONTEXT_DOCK; return OB_FRAME_CONTEXT_NONE; } ObFrameContext frame_context(ObClient *client, Window win, gint x, gint y) { ObFrame *self; ObWindow *obwin; if (moveresize_in_progress) return OB_FRAME_CONTEXT_MOVE_RESIZE; if (win == obt_root(ob_screen)) return OB_FRAME_CONTEXT_ROOT; if ((obwin = window_find(win))) { if (WINDOW_IS_DOCK(obwin)) { return OB_FRAME_CONTEXT_DOCK; } } if (client == NULL) return OB_FRAME_CONTEXT_NONE; if (win == client->window) { /* conceptually, this is the desktop, as far as users are concerned */ if (client->type == OB_CLIENT_TYPE_DESKTOP) return OB_FRAME_CONTEXT_DESKTOP; return OB_FRAME_CONTEXT_CLIENT; } self = client->frame; /* when the user clicks in the corners of the titlebar and the client is fully maximized, then treat it like they clicked in the button that is there */ if (self->max_horz && self->max_vert && (win == self->title || win == self->titletop || win == self->titleleft || win == self->titletopleft || win == self->titleright || win == self->titletopright)) { /* get the mouse coords in reference to the whole frame */ gint fx = x; gint fy = y; /* these windows are down a border width from the top of the frame */ if (win == self->title || win == self->titleleft || win == self->titleright) fy += self->bwidth; /* title is a border width in from the edge */ if (win == self->title) fx += self->bwidth; /* titletop is a bit to the right */ else if (win == self->titletop) fx += ob_rr_theme->grip_width + self->bwidth; /* titletopright is way to the right edge */ else if (win == self->titletopright) fx += self->area.width - (ob_rr_theme->grip_width + self->bwidth); /* titleright is even more way to the right edge */ else if (win == self->titleright) fx += self->area.width - self->bwidth; /* figure out if we're over the area that should be considered a button */ if (fy < self->bwidth + ob_rr_theme->paddingy + 1 + ob_rr_theme->button_size) { if (fx < (self->bwidth + ob_rr_theme->paddingx + 1 + ob_rr_theme->button_size)) { if (self->leftmost != OB_FRAME_CONTEXT_NONE) return self->leftmost; } else if (fx >= (self->area.width - (self->bwidth + ob_rr_theme->paddingx + 1 + ob_rr_theme->button_size))) { if (self->rightmost != OB_FRAME_CONTEXT_NONE) return self->rightmost; } } /* there is no resizing maximized windows so make them the titlebar context */ return OB_FRAME_CONTEXT_TITLEBAR; } else if (self->max_vert && (win == self->titletop || win == self->topresize)) /* can't resize vertically when max vert */ return OB_FRAME_CONTEXT_TITLEBAR; else if (self->shaded && (win == self->titletop || win == self->topresize)) /* can't resize vertically when shaded */ return OB_FRAME_CONTEXT_TITLEBAR; if (win == self->window) return OB_FRAME_CONTEXT_FRAME; if (win == self->label) return OB_FRAME_CONTEXT_TITLEBAR; if (win == self->handle) return OB_FRAME_CONTEXT_BOTTOM; if (win == self->handletop) return OB_FRAME_CONTEXT_BOTTOM; if (win == self->handlebottom) return OB_FRAME_CONTEXT_BOTTOM; if (win == self->handleleft) return OB_FRAME_CONTEXT_BLCORNER; if (win == self->lgrip) return OB_FRAME_CONTEXT_BLCORNER; if (win == self->lgripleft) return OB_FRAME_CONTEXT_BLCORNER; if (win == self->lgriptop) return OB_FRAME_CONTEXT_BLCORNER; if (win == self->lgripbottom) return OB_FRAME_CONTEXT_BLCORNER; if (win == self->handleright) return OB_FRAME_CONTEXT_BRCORNER; if (win == self->rgrip) return OB_FRAME_CONTEXT_BRCORNER; if (win == self->rgripright) return OB_FRAME_CONTEXT_BRCORNER; if (win == self->rgriptop) return OB_FRAME_CONTEXT_BRCORNER; if (win == self->rgripbottom) return OB_FRAME_CONTEXT_BRCORNER; if (win == self->title) return OB_FRAME_CONTEXT_TITLEBAR; if (win == self->titlebottom) return OB_FRAME_CONTEXT_TITLEBAR; if (win == self->titleleft) return OB_FRAME_CONTEXT_TLCORNER; if (win == self->titletopleft) return OB_FRAME_CONTEXT_TLCORNER; if (win == self->titleright) return OB_FRAME_CONTEXT_TRCORNER; if (win == self->titletopright) return OB_FRAME_CONTEXT_TRCORNER; if (win == self->titletop) return OB_FRAME_CONTEXT_TOP; if (win == self->topresize) return OB_FRAME_CONTEXT_TOP; if (win == self->tltresize) return OB_FRAME_CONTEXT_TLCORNER; if (win == self->tllresize) return OB_FRAME_CONTEXT_TLCORNER; if (win == self->trtresize) return OB_FRAME_CONTEXT_TRCORNER; if (win == self->trrresize) return OB_FRAME_CONTEXT_TRCORNER; if (win == self->left) return OB_FRAME_CONTEXT_LEFT; if (win == self->right) return OB_FRAME_CONTEXT_RIGHT; if (win == self->innertop) return OB_FRAME_CONTEXT_TITLEBAR; if (win == self->innerleft) return OB_FRAME_CONTEXT_LEFT; if (win == self->innerbottom) return OB_FRAME_CONTEXT_BOTTOM; if (win == self->innerright) return OB_FRAME_CONTEXT_RIGHT; if (win == self->innerbll) return OB_FRAME_CONTEXT_BLCORNER; if (win == self->innerblb) return OB_FRAME_CONTEXT_BLCORNER; if (win == self->innerbrr) return OB_FRAME_CONTEXT_BRCORNER; if (win == self->innerbrb) return OB_FRAME_CONTEXT_BRCORNER; if (win == self->max) return OB_FRAME_CONTEXT_MAXIMIZE; if (win == self->iconify) return OB_FRAME_CONTEXT_ICONIFY; if (win == self->close) return OB_FRAME_CONTEXT_CLOSE; if (win == self->icon) return OB_FRAME_CONTEXT_ICON; if (win == self->desk) return OB_FRAME_CONTEXT_ALLDESKTOPS; if (win == self->shade) return OB_FRAME_CONTEXT_SHADE; return OB_FRAME_CONTEXT_NONE; } void frame_client_gravity(ObFrame *self, gint *x, gint *y) { /* horizontal */ switch (self->client->gravity) { default: case NorthWestGravity: case SouthWestGravity: case WestGravity: break; case NorthGravity: case SouthGravity: case CenterGravity: /* the middle of the client will be the middle of the frame */ *x -= (self->size.right - self->size.left) / 2; break; case NorthEastGravity: case SouthEastGravity: case EastGravity: /* the right side of the client will be the right side of the frame */ *x -= self->size.right + self->size.left - self->client->border_width * 2; break; case ForgetGravity: case StaticGravity: /* the client's position won't move */ *x -= self->size.left - self->client->border_width; break; } /* vertical */ switch (self->client->gravity) { default: case NorthWestGravity: case NorthEastGravity: case NorthGravity: break; case CenterGravity: case EastGravity: case WestGravity: /* the middle of the client will be the middle of the frame */ *y -= (self->size.bottom - self->size.top) / 2; break; case SouthWestGravity: case SouthEastGravity: case SouthGravity: /* the bottom of the client will be the bottom of the frame */ *y -= self->size.bottom + self->size.top - self->client->border_width * 2; break; case ForgetGravity: case StaticGravity: /* the client's position won't move */ *y -= self->size.top - self->client->border_width; break; } } void frame_frame_gravity(ObFrame *self, gint *x, gint *y) { /* horizontal */ switch (self->client->gravity) { default: case NorthWestGravity: case WestGravity: case SouthWestGravity: break; case NorthGravity: case CenterGravity: case SouthGravity: /* the middle of the client will be the middle of the frame */ *x += (self->size.right - self->size.left) / 2; break; case NorthEastGravity: case EastGravity: case SouthEastGravity: /* the right side of the client will be the right side of the frame */ *x += self->size.right + self->size.left - self->client->border_width * 2; break; case StaticGravity: case ForgetGravity: /* the client's position won't move */ *x += self->size.left - self->client->border_width; break; } /* vertical */ switch (self->client->gravity) { default: case NorthWestGravity: case NorthGravity: case NorthEastGravity: break; case WestGravity: case CenterGravity: case EastGravity: /* the middle of the client will be the middle of the frame */ *y += (self->size.bottom - self->size.top) / 2; break; case SouthWestGravity: case SouthGravity: case SouthEastGravity: /* the bottom of the client will be the bottom of the frame */ *y += self->size.bottom + self->size.top - self->client->border_width * 2; break; case StaticGravity: case ForgetGravity: /* the client's position won't move */ *y += self->size.top - self->client->border_width; break; } } void frame_rect_to_frame(ObFrame *self, Rect *r) { r->width += self->size.left + self->size.right; r->height += self->size.top + self->size.bottom; frame_client_gravity(self, &r->x, &r->y); } void frame_rect_to_client(ObFrame *self, Rect *r) { r->width -= self->size.left + self->size.right; r->height -= self->size.top + self->size.bottom; frame_frame_gravity(self, &r->x, &r->y); } static void flash_done(gpointer data) { ObFrame *self = data; self->flash_timer = 0; } static gboolean flash_timeout(gpointer data) { ObFrame *self = data; GTimeVal now; g_get_current_time(&now); if (now.tv_sec > self->flash_end.tv_sec || (now.tv_sec == self->flash_end.tv_sec && now.tv_usec >= self->flash_end.tv_usec)) self->flashing = FALSE; if (!self->flashing) { if (self->focused != self->flash_on) frame_adjust_focus(self, self->focused); return FALSE; /* we are done */ } self->flash_on = !self->flash_on; if (!self->focused) { frame_adjust_focus(self, self->flash_on); self->focused = FALSE; } return TRUE; /* go again */ } void frame_flash_start(ObFrame *self) { self->flash_on = self->focused; if (!self->flashing) self->flash_timer = g_timeout_add_full(G_PRIORITY_DEFAULT, 600, flash_timeout, self, flash_done); g_get_current_time(&self->flash_end); g_time_val_add(&self->flash_end, G_USEC_PER_SEC * 5); self->flashing = TRUE; } void frame_flash_stop(ObFrame *self) { self->flashing = FALSE; } static gulong frame_animate_iconify_time_left(ObFrame *self, const GTimeVal *now) { glong sec, usec; sec = self->iconify_animation_end.tv_sec - now->tv_sec; usec = self->iconify_animation_end.tv_usec - now->tv_usec; if (usec < 0) { usec += G_USEC_PER_SEC; sec--; } /* no negative values */ return MAX(sec * G_USEC_PER_SEC + usec, 0); } static gboolean frame_animate_iconify(gpointer p) { ObFrame *self = p; gint x, y, w, h; gint iconx, icony, iconw; GTimeVal now; gulong time; gboolean iconifying; if (self->client->icon_geometry.width == 0) { /* there is no icon geometry set so just go straight down */ const Rect *a; a = screen_physical_area_monitor(screen_find_monitor(&self->area)); iconx = self->area.x + self->area.width / 2 + 32; icony = a->y + a->width; iconw = 64; } else { iconx = self->client->icon_geometry.x; icony = self->client->icon_geometry.y; iconw = self->client->icon_geometry.width; } iconifying = self->iconify_animation_going > 0; /* how far do we have left to go ? */ g_get_current_time(&now); time = frame_animate_iconify_time_left(self, &now); if ((time > 0 && iconifying) || (time == 0 && !iconifying)) { /* start where the frame is supposed to be */ x = self->area.x; y = self->area.y; w = self->area.width; h = self->area.height; } else { /* start at the icon */ x = iconx; y = icony; w = iconw; h = self->size.top; /* just the titlebar */ } if (time > 0) { glong dx, dy, dw; glong elapsed; dx = self->area.x - iconx; dy = self->area.y - icony; dw = self->area.width - self->bwidth * 2 - iconw; /* if restoring, we move in the opposite direction */ if (!iconifying) { dx = -dx; dy = -dy; dw = -dw; } elapsed = FRAME_ANIMATE_ICONIFY_TIME - time; x = x - (dx * elapsed) / FRAME_ANIMATE_ICONIFY_TIME; y = y - (dy * elapsed) / FRAME_ANIMATE_ICONIFY_TIME; w = w - (dw * elapsed) / FRAME_ANIMATE_ICONIFY_TIME; h = self->size.top; /* just the titlebar */ } XMoveResizeWindow(obt_display, self->window, x, y, w, h); XFlush(obt_display); return time > 0; /* repeat until we're out of time */ } void frame_end_iconify_animation(gpointer data) { ObFrame *self = data; /* see if there is an animation going */ if (self->iconify_animation_going == 0) return; if (!self->visible) XUnmapWindow(obt_display, self->window); else { /* Send a ConfigureNotify when the animation is done, this fixes KDE's pager showing the window in the wrong place. since the window is mapped at a different location and is then moved, we need to send the synthetic configurenotify, since apps may have read the position when the client mapped, apparently. */ client_reconfigure(self->client, TRUE); } /* we're not animating any more ! */ self->iconify_animation_going = 0; self->iconify_animation_timer = 0; XMoveResizeWindow(obt_display, self->window, self->area.x, self->area.y, self->area.width, self->area.height); /* we delay re-rendering until after we're done animating */ framerender_frame(self); XFlush(obt_display); } void frame_begin_iconify_animation(ObFrame *self, gboolean iconifying) { gulong time; gboolean new_anim = FALSE; gboolean set_end = TRUE; GTimeVal now; /* if there is no titlebar, just don't animate for now XXX it would be nice tho.. */ if (!(self->decorations & OB_FRAME_DECOR_TITLEBAR)) return; /* get the current time */ g_get_current_time(&now); /* get how long until the end */ time = FRAME_ANIMATE_ICONIFY_TIME; if (self->iconify_animation_going) { if (!!iconifying != (self->iconify_animation_going > 0)) { /* animation was already going on in the opposite direction */ time = time - frame_animate_iconify_time_left(self, &now); } else /* animation was already going in the same direction */ set_end = FALSE; } else new_anim = TRUE; self->iconify_animation_going = iconifying ? 1 : -1; /* set the ending time */ if (set_end) { self->iconify_animation_end.tv_sec = now.tv_sec; self->iconify_animation_end.tv_usec = now.tv_usec; g_time_val_add(&self->iconify_animation_end, time); } if (new_anim) { if (self->iconify_animation_timer) g_source_remove(self->iconify_animation_timer); self->iconify_animation_timer = g_timeout_add_full(G_PRIORITY_DEFAULT, FRAME_ANIMATE_ICONIFY_STEP_TIME, frame_animate_iconify, self, frame_end_iconify_animation); /* do the first step */ frame_animate_iconify(self); /* show it during the animation even if it is not "visible" */ if (!self->visible) XMapWindow(obt_display, self->window); } } openbox-3.6.1/openbox/frame.h0000644000175300001440000002333412426440016013034 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- frame.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __frame_h #define __frame_h #include "geom.h" #include "obrender/render.h" typedef struct _ObFrame ObFrame; struct _ObClient; typedef void (*ObFrameIconifyAnimateFunc)(gpointer data); typedef enum { OB_FRAME_CONTEXT_NONE, OB_FRAME_CONTEXT_DESKTOP, OB_FRAME_CONTEXT_ROOT, OB_FRAME_CONTEXT_CLIENT, OB_FRAME_CONTEXT_TITLEBAR, OB_FRAME_CONTEXT_FRAME, OB_FRAME_CONTEXT_BLCORNER, OB_FRAME_CONTEXT_BRCORNER, OB_FRAME_CONTEXT_TLCORNER, OB_FRAME_CONTEXT_TRCORNER, OB_FRAME_CONTEXT_TOP, OB_FRAME_CONTEXT_BOTTOM, OB_FRAME_CONTEXT_LEFT, OB_FRAME_CONTEXT_RIGHT, OB_FRAME_CONTEXT_MAXIMIZE, OB_FRAME_CONTEXT_ALLDESKTOPS, OB_FRAME_CONTEXT_SHADE, OB_FRAME_CONTEXT_ICONIFY, OB_FRAME_CONTEXT_ICON, OB_FRAME_CONTEXT_CLOSE, /*! This is a special context, which occurs while dragging a window in a move/resize */ OB_FRAME_CONTEXT_MOVE_RESIZE, OB_FRAME_CONTEXT_DOCK, OB_FRAME_NUM_CONTEXTS } ObFrameContext; #define FRAME_CONTEXT(co, cl) ((cl && cl->type != OB_CLIENT_TYPE_DESKTOP) ? \ co == OB_FRAME_CONTEXT_FRAME : FALSE) #define CLIENT_CONTEXT(co, cl) ((cl && cl->type == OB_CLIENT_TYPE_DESKTOP) ? \ co == OB_FRAME_CONTEXT_DESKTOP : \ co == OB_FRAME_CONTEXT_CLIENT) /*! The decorations the client window wants to be displayed on it */ typedef enum { OB_FRAME_DECOR_TITLEBAR = 1 << 0, /*!< Display a titlebar */ OB_FRAME_DECOR_HANDLE = 1 << 1, /*!< Display a handle (bottom) */ OB_FRAME_DECOR_GRIPS = 1 << 2, /*!< Display grips in the handle */ OB_FRAME_DECOR_BORDER = 1 << 3, /*!< Display a border */ OB_FRAME_DECOR_ICON = 1 << 4, /*!< Display the window's icon */ OB_FRAME_DECOR_ICONIFY = 1 << 5, /*!< Display an iconify button */ OB_FRAME_DECOR_MAXIMIZE = 1 << 6, /*!< Display a maximize button */ /*! Display a button to toggle the window's placement on all desktops */ OB_FRAME_DECOR_ALLDESKTOPS = 1 << 7, OB_FRAME_DECOR_SHADE = 1 << 8, /*!< Display a shade button */ OB_FRAME_DECOR_CLOSE = 1 << 9 /*!< Display a close button */ } ObFrameDecorations; struct _ObFrame { struct _ObClient *client; Window window; Strut size; /* the size of the frame */ Strut oldsize; /* the size of the frame last told to the client */ Rect area; gboolean visible; guint functions; guint decorations; Window title; Window label; Window max; Window close; Window desk; Window shade; Window icon; Window iconify; Window handle; Window lgrip; Window rgrip; /* These are borders of the frame and its elements */ Window titleleft; Window titletop; Window titletopleft; Window titletopright; Window titleright; Window titlebottom; Window left; Window right; Window handleleft; Window handletop; Window handleright; Window handlebottom; Window lgriptop; Window lgripleft; Window lgripbottom; Window rgriptop; Window rgripright; Window rgripbottom; Window innerleft; /*!< For drawing the inner client border */ Window innertop; /*!< For drawing the inner client border */ Window innerright; /*!< For drawing the inner client border */ Window innerbottom; /*!< For drawing the inner client border */ Window innerblb; Window innerbll; Window innerbrb; Window innerbrr; Window backback; /*!< A colored window shown while resizing */ Window backfront; /*!< An undrawn-in window, to prevent flashing on unmap */ /* These are resize handles inside the titlebar */ Window topresize; Window tltresize; Window tllresize; Window trtresize; Window trrresize; Colormap colormap; gint icon_on; /* if the window icon button is on */ gint label_on; /* if the window title is on */ gint iconify_on; /* if the window iconify button is on */ gint desk_on; /* if the window all-desktops button is on */ gint shade_on; /* if the window shade button is on */ gint max_on; /* if the window maximize button is on */ gint close_on; /* if the window close button is on */ gint width; /* width of the titlebar and handle */ gint label_width; /* width of the label in the titlebar */ gint icon_x; /* x-position of the window icon button */ gint label_x; /* x-position of the window title */ gint iconify_x; /* x-position of the window iconify button */ gint desk_x; /* x-position of the window all-desktops button */ gint shade_x; /* x-position of the window shade button */ gint max_x; /* x-position of the window maximize button */ gint close_x; /* x-position of the window close button */ gint bwidth; /* border width */ gint cbwidth_l; /* client border width */ gint cbwidth_t; /* client border width */ gint cbwidth_r; /* client border width */ gint cbwidth_b; /* client border width */ gboolean max_horz; /* when maxed some decorations are hidden */ gboolean max_vert; /* when maxed some decorations are hidden */ gboolean shaded; /* decorations adjust when shaded */ /* the leftmost and rightmost elements in the titlebar */ ObFrameContext leftmost; ObFrameContext rightmost; gboolean max_press; gboolean close_press; gboolean desk_press; gboolean shade_press; gboolean iconify_press; gboolean max_hover; gboolean close_hover; gboolean desk_hover; gboolean shade_hover; gboolean iconify_hover; gboolean focused; gboolean need_render; gboolean flashing; gboolean flash_on; GTimeVal flash_end; guint flash_timer; /*! Is the frame currently in an animation for iconify or restore. 0 means that it is not animating. > 0 means it is animating an iconify. < 0 means it is animating a restore. */ gint iconify_animation_going; guint iconify_animation_timer; GTimeVal iconify_animation_end; }; ObFrame *frame_new(struct _ObClient *c); void frame_free(ObFrame *self); void frame_show(ObFrame *self); void frame_hide(ObFrame *self); void frame_adjust_theme(ObFrame *self); #ifdef SHAPE void frame_adjust_shape_kind(ObFrame *self, int kind); #endif void frame_adjust_shape(ObFrame *self); void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized, gboolean fake); void frame_adjust_client_area(ObFrame *self); void frame_adjust_state(ObFrame *self); void frame_adjust_focus(ObFrame *self, gboolean hilite); void frame_adjust_title(ObFrame *self); void frame_adjust_icon(ObFrame *self); void frame_grab_client(ObFrame *self); void frame_release_client(ObFrame *self); ObFrameContext frame_context_from_string(const gchar *name); /*! Parses a ObFrameContext from a string of space-separated context names. @names The list of context names, the first of which is removed from the string. @cx The ObFrameContext is returned here. If an invalid name is found, this is set to OB_FRAME_CONTEXT_NONE. @return TRUE if there was something to read in @names, FALSE if it was an empty input. */ gboolean frame_next_context_from_string(gchar *names, ObFrameContext *cx); ObFrameContext frame_context(struct _ObClient *self, Window win, gint x, gint y); /*! Applies gravity to the client's position to find where the frame should be positioned. @return The proper coordinates for the frame, based on the client. */ void frame_client_gravity(ObFrame *self, gint *x, gint *y); /*! Reversly applies gravity to the frame's position to find where the client should be positioned. @return The proper coordinates for the client, based on the frame. */ void frame_frame_gravity(ObFrame *self, gint *x, gint *y); /*! Convert a rectangle in client coordinates/sizes to what it would be for the frame, given its current decorations sizes */ void frame_rect_to_frame(ObFrame *self, Rect *r); /*! Convert a rectangle in frame coordinates/sizes to what it would be for the client, given its current decorations sizes */ void frame_rect_to_client(ObFrame *self, Rect *r); void frame_flash_start(ObFrame *self); void frame_flash_stop(ObFrame *self); /*! Start an animation for iconifying or restoring a frame. The callback will be called when the animation finishes. But if another animation is started in the meantime, the callback will never get called. */ void frame_begin_iconify_animation(ObFrame *self, gboolean iconifying); void frame_end_iconify_animation(gpointer data); #define frame_iconify_animating(f) (f->iconify_animation_going != 0) #endif openbox-3.6.1/openbox/framerender.c0000644000175300001440000004175112426444661014244 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- framerender.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "frame.h" #include "openbox.h" #include "screen.h" #include "client.h" #include "framerender.h" #include "obrender/theme.h" static void framerender_label(ObFrame *self, RrAppearance *a); static void framerender_icon(ObFrame *self, RrAppearance *a); static void framerender_max(ObFrame *self, RrAppearance *a); static void framerender_iconify(ObFrame *self, RrAppearance *a); static void framerender_desk(ObFrame *self, RrAppearance *a); static void framerender_shade(ObFrame *self, RrAppearance *a); static void framerender_close(ObFrame *self, RrAppearance *a); void framerender_frame(ObFrame *self) { if (frame_iconify_animating(self)) return; /* delay redrawing until the animation is done */ if (!self->need_render) return; if (!self->visible) return; self->need_render = FALSE; { gulong px; px = (self->focused ? RrColorPixel(ob_rr_theme->cb_focused_color) : RrColorPixel(ob_rr_theme->cb_unfocused_color)); XSetWindowBackground(obt_display, self->backback, px); XClearWindow(obt_display, self->backback); XSetWindowBackground(obt_display, self->innerleft, px); XClearWindow(obt_display, self->innerleft); XSetWindowBackground(obt_display, self->innertop, px); XClearWindow(obt_display, self->innertop); XSetWindowBackground(obt_display, self->innerright, px); XClearWindow(obt_display, self->innerright); XSetWindowBackground(obt_display, self->innerbottom, px); XClearWindow(obt_display, self->innerbottom); XSetWindowBackground(obt_display, self->innerbll, px); XClearWindow(obt_display, self->innerbll); XSetWindowBackground(obt_display, self->innerbrr, px); XClearWindow(obt_display, self->innerbrr); XSetWindowBackground(obt_display, self->innerblb, px); XClearWindow(obt_display, self->innerblb); XSetWindowBackground(obt_display, self->innerbrb, px); XClearWindow(obt_display, self->innerbrb); px = RrColorPixel(self->focused ? (self->client->undecorated ? ob_rr_theme->frame_undecorated_focused_border_color : ob_rr_theme->frame_focused_border_color) : (self->client->undecorated ? ob_rr_theme->frame_undecorated_unfocused_border_color : ob_rr_theme->frame_unfocused_border_color)); XSetWindowBackground(obt_display, self->left, px); XClearWindow(obt_display, self->left); XSetWindowBackground(obt_display, self->right, px); XClearWindow(obt_display, self->right); XSetWindowBackground(obt_display, self->titleleft, px); XClearWindow(obt_display, self->titleleft); XSetWindowBackground(obt_display, self->titletop, px); XClearWindow(obt_display, self->titletop); XSetWindowBackground(obt_display, self->titletopleft, px); XClearWindow(obt_display, self->titletopleft); XSetWindowBackground(obt_display, self->titletopright, px); XClearWindow(obt_display, self->titletopright); XSetWindowBackground(obt_display, self->titleright, px); XClearWindow(obt_display, self->titleright); XSetWindowBackground(obt_display, self->handleleft, px); XClearWindow(obt_display, self->handleleft); XSetWindowBackground(obt_display, self->handletop, px); XClearWindow(obt_display, self->handletop); XSetWindowBackground(obt_display, self->handleright, px); XClearWindow(obt_display, self->handleright); XSetWindowBackground(obt_display, self->handlebottom, px); XClearWindow(obt_display, self->handlebottom); XSetWindowBackground(obt_display, self->lgripleft, px); XClearWindow(obt_display, self->lgripleft); XSetWindowBackground(obt_display, self->lgriptop, px); XClearWindow(obt_display, self->lgriptop); XSetWindowBackground(obt_display, self->lgripbottom, px); XClearWindow(obt_display, self->lgripbottom); XSetWindowBackground(obt_display, self->rgripright, px); XClearWindow(obt_display, self->rgripright); XSetWindowBackground(obt_display, self->rgriptop, px); XClearWindow(obt_display, self->rgriptop); XSetWindowBackground(obt_display, self->rgripbottom, px); XClearWindow(obt_display, self->rgripbottom); /* don't use the separator color for shaded windows */ if (!self->client->shaded) px = (self->focused ? RrColorPixel(ob_rr_theme->title_separator_focused_color) : RrColorPixel(ob_rr_theme->title_separator_unfocused_color)); XSetWindowBackground(obt_display, self->titlebottom, px); XClearWindow(obt_display, self->titlebottom); } if (self->decorations & OB_FRAME_DECOR_TITLEBAR) { RrAppearance *t, *l, *m, *n, *i, *d, *s, *c, *clear; if (self->focused) { t = ob_rr_theme->a_focused_title; l = ob_rr_theme->a_focused_label; m = (!(self->decorations & OB_FRAME_DECOR_MAXIMIZE) ? ob_rr_theme->btn_max->a_focused_disabled : (self->client->max_vert || self->client->max_horz ? (self->max_press ? ob_rr_theme->btn_max->a_focused_pressed_toggled : (self->max_hover ? ob_rr_theme->btn_max->a_focused_hover_toggled : ob_rr_theme->btn_max->a_focused_unpressed_toggled)) : (self->max_press ? ob_rr_theme->btn_max->a_focused_pressed : (self->max_hover ? ob_rr_theme->btn_max->a_focused_hover : ob_rr_theme->btn_max->a_focused_unpressed)))); n = ob_rr_theme->a_icon; i = (!(self->decorations & OB_FRAME_DECOR_ICONIFY) ? ob_rr_theme->btn_iconify->a_focused_disabled : (self->iconify_press ? ob_rr_theme->btn_iconify->a_focused_pressed : (self->iconify_hover ? ob_rr_theme->btn_iconify->a_focused_hover : ob_rr_theme->btn_iconify->a_focused_unpressed))); d = (!(self->decorations & OB_FRAME_DECOR_ALLDESKTOPS) ? ob_rr_theme->btn_desk->a_focused_disabled : (self->client->desktop == DESKTOP_ALL ? (self->desk_press ? ob_rr_theme->btn_desk->a_focused_pressed_toggled : (self->desk_hover ? ob_rr_theme->btn_desk->a_focused_hover_toggled : ob_rr_theme->btn_desk->a_focused_unpressed_toggled)) : (self->desk_press ? ob_rr_theme->btn_desk->a_focused_pressed : (self->desk_hover ? ob_rr_theme->btn_desk->a_focused_hover : ob_rr_theme->btn_desk->a_focused_unpressed)))); s = (!(self->decorations & OB_FRAME_DECOR_SHADE) ? ob_rr_theme->btn_shade->a_focused_disabled : (self->client->shaded ? (self->shade_press ? ob_rr_theme->btn_shade->a_focused_pressed_toggled : (self->shade_hover ? ob_rr_theme->btn_shade->a_focused_hover_toggled : ob_rr_theme->btn_shade->a_focused_unpressed_toggled)) : (self->shade_press ? ob_rr_theme->btn_shade->a_focused_pressed : (self->shade_hover ? ob_rr_theme->btn_shade->a_focused_hover : ob_rr_theme->btn_shade->a_focused_unpressed)))); c = (!(self->decorations & OB_FRAME_DECOR_CLOSE) ? ob_rr_theme->btn_close->a_focused_disabled : (self->close_press ? ob_rr_theme->btn_close->a_focused_pressed : (self->close_hover ? ob_rr_theme->btn_close->a_focused_hover : ob_rr_theme->btn_close->a_focused_unpressed))); } else { t = ob_rr_theme->a_unfocused_title; l = ob_rr_theme->a_unfocused_label; m = (!(self->decorations & OB_FRAME_DECOR_MAXIMIZE) ? ob_rr_theme->btn_max->a_unfocused_disabled : (self->client->max_vert || self->client->max_horz ? (self->max_press ? ob_rr_theme->btn_max->a_unfocused_pressed_toggled : (self->max_hover ? ob_rr_theme->btn_max->a_unfocused_hover_toggled : ob_rr_theme->btn_max->a_unfocused_unpressed_toggled)) : (self->max_press ? ob_rr_theme->btn_max->a_unfocused_pressed : (self->max_hover ? ob_rr_theme->btn_max->a_unfocused_hover : ob_rr_theme->btn_max->a_unfocused_unpressed)))); n = ob_rr_theme->a_icon; i = (!(self->decorations & OB_FRAME_DECOR_ICONIFY) ? ob_rr_theme->btn_iconify->a_unfocused_disabled : (self->iconify_press ? ob_rr_theme->btn_iconify->a_unfocused_pressed : (self->iconify_hover ? ob_rr_theme->btn_iconify->a_unfocused_hover : ob_rr_theme->btn_iconify->a_unfocused_unpressed))); d = (!(self->decorations & OB_FRAME_DECOR_ALLDESKTOPS) ? ob_rr_theme->btn_desk->a_unfocused_disabled : (self->client->desktop == DESKTOP_ALL ? (self->desk_press ? ob_rr_theme->btn_desk->a_unfocused_pressed_toggled : (self->desk_hover ? ob_rr_theme->btn_desk->a_unfocused_hover_toggled : ob_rr_theme->btn_desk->a_unfocused_unpressed_toggled)) : (self->desk_press ? ob_rr_theme->btn_desk->a_unfocused_pressed : (self->desk_hover ? ob_rr_theme->btn_desk->a_unfocused_hover : ob_rr_theme->btn_desk->a_unfocused_unpressed)))); s = (!(self->decorations & OB_FRAME_DECOR_SHADE) ? ob_rr_theme->btn_shade->a_unfocused_disabled : (self->client->shaded ? (self->shade_press ? ob_rr_theme->btn_shade->a_unfocused_pressed_toggled : (self->shade_hover ? ob_rr_theme->btn_shade->a_unfocused_hover_toggled : ob_rr_theme->btn_shade->a_unfocused_unpressed_toggled)) : (self->shade_press ? ob_rr_theme->btn_shade->a_unfocused_pressed : (self->shade_hover ? ob_rr_theme->btn_shade->a_unfocused_hover : ob_rr_theme->btn_shade->a_unfocused_unpressed)))); c = (!(self->decorations & OB_FRAME_DECOR_CLOSE) ? ob_rr_theme->btn_close->a_unfocused_disabled : (self->close_press ? ob_rr_theme->btn_close->a_unfocused_pressed : (self->close_hover ? ob_rr_theme->btn_close->a_unfocused_hover : ob_rr_theme->btn_close->a_unfocused_unpressed))); } clear = ob_rr_theme->a_clear; RrPaint(t, self->title, self->width, ob_rr_theme->title_height); clear->surface.parent = t; clear->surface.parenty = 0; clear->surface.parentx = ob_rr_theme->grip_width; RrPaint(clear, self->topresize, self->width - ob_rr_theme->grip_width * 2, ob_rr_theme->paddingy + 1); clear->surface.parentx = 0; if (ob_rr_theme->grip_width > 0) RrPaint(clear, self->tltresize, ob_rr_theme->grip_width, ob_rr_theme->paddingy + 1); if (ob_rr_theme->title_height > 0) RrPaint(clear, self->tllresize, ob_rr_theme->paddingx + 1, ob_rr_theme->title_height); clear->surface.parentx = self->width - ob_rr_theme->grip_width; if (ob_rr_theme->grip_width > 0) RrPaint(clear, self->trtresize, ob_rr_theme->grip_width, ob_rr_theme->paddingy + 1); clear->surface.parentx = self->width - (ob_rr_theme->paddingx + 1); if (ob_rr_theme->title_height > 0) RrPaint(clear, self->trrresize, ob_rr_theme->paddingx + 1, ob_rr_theme->title_height); /* set parents for any parent relative guys */ l->surface.parent = t; l->surface.parentx = self->label_x; l->surface.parenty = ob_rr_theme->paddingy; m->surface.parent = t; m->surface.parentx = self->max_x; m->surface.parenty = ob_rr_theme->paddingy + 1; n->surface.parent = t; n->surface.parentx = self->icon_x; n->surface.parenty = ob_rr_theme->paddingy; i->surface.parent = t; i->surface.parentx = self->iconify_x; i->surface.parenty = ob_rr_theme->paddingy + 1; d->surface.parent = t; d->surface.parentx = self->desk_x; d->surface.parenty = ob_rr_theme->paddingy + 1; s->surface.parent = t; s->surface.parentx = self->shade_x; s->surface.parenty = ob_rr_theme->paddingy + 1; c->surface.parent = t; c->surface.parentx = self->close_x; c->surface.parenty = ob_rr_theme->paddingy + 1; framerender_label(self, l); framerender_max(self, m); framerender_icon(self, n); framerender_iconify(self, i); framerender_desk(self, d); framerender_shade(self, s); framerender_close(self, c); } if (self->decorations & OB_FRAME_DECOR_HANDLE && ob_rr_theme->handle_height > 0) { RrAppearance *h, *g; h = (self->focused ? ob_rr_theme->a_focused_handle : ob_rr_theme->a_unfocused_handle); RrPaint(h, self->handle, self->width, ob_rr_theme->handle_height); if (self->decorations & OB_FRAME_DECOR_GRIPS) { g = (self->focused ? ob_rr_theme->a_focused_grip : ob_rr_theme->a_unfocused_grip); if (g->surface.grad == RR_SURFACE_PARENTREL) g->surface.parent = h; g->surface.parentx = 0; g->surface.parenty = 0; RrPaint(g, self->lgrip, ob_rr_theme->grip_width, ob_rr_theme->handle_height); g->surface.parentx = self->width - ob_rr_theme->grip_width; g->surface.parenty = 0; RrPaint(g, self->rgrip, ob_rr_theme->grip_width, ob_rr_theme->handle_height); } } XFlush(obt_display); } static void framerender_label(ObFrame *self, RrAppearance *a) { if (!self->label_on) return; /* set the texture's text! */ a->texture[0].data.text.string = self->client->title; RrPaint(a, self->label, self->label_width, ob_rr_theme->label_height); } static void framerender_icon(ObFrame *self, RrAppearance *a) { RrImage *icon; if (!self->icon_on) return; icon = client_icon(self->client); if (icon) { RrAppearanceClearTextures(a); a->texture[0].type = RR_TEXTURE_IMAGE; a->texture[0].data.image.alpha = 0xff; a->texture[0].data.image.image = icon; } else { RrAppearanceClearTextures(a); a->texture[0].type = RR_TEXTURE_NONE; } RrPaint(a, self->icon, ob_rr_theme->button_size + 2, ob_rr_theme->button_size + 2); } static void framerender_max(ObFrame *self, RrAppearance *a) { if (!self->max_on) return; RrPaint(a, self->max, ob_rr_theme->button_size, ob_rr_theme->button_size); } static void framerender_iconify(ObFrame *self, RrAppearance *a) { if (!self->iconify_on) return; RrPaint(a, self->iconify, ob_rr_theme->button_size, ob_rr_theme->button_size); } static void framerender_desk(ObFrame *self, RrAppearance *a) { if (!self->desk_on) return; RrPaint(a, self->desk, ob_rr_theme->button_size, ob_rr_theme->button_size); } static void framerender_shade(ObFrame *self, RrAppearance *a) { if (!self->shade_on) return; RrPaint(a, self->shade, ob_rr_theme->button_size, ob_rr_theme->button_size); } static void framerender_close(ObFrame *self, RrAppearance *a) { if (!self->close_on) return; RrPaint(a, self->close, ob_rr_theme->button_size, ob_rr_theme->button_size); } openbox-3.6.1/openbox/framerender.h0000644000175300001440000000152712426440016014234 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- framerender.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __framerender_h #define __framerender_h struct _ObFrame; void framerender_frame(struct _ObFrame *self); #endif openbox-3.6.1/openbox/geom.h0000644000175300001440000001335112426440016012667 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- geom.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __geom_h #define __geom_h #include typedef struct _GravityCoord { gint pos; gint denom; gboolean center; gboolean opposite; } GravityCoord; typedef struct _GravityPoint { GravityCoord x; GravityCoord y; } GravityPoint; #define GRAVITY_COORD_SET(c, p, cen, opp) \ (c).pos = (p), (c).center = (cen), (c).opposite = (opp) typedef struct _Point { int x; int y; } Point; #define POINT_SET(pt, nx, ny) (pt).x = (nx), (pt).y = (ny) #define POINT_EQUAL(p1, p2) ((p1).x == (p2).x && (p1).y == (p2).y) typedef struct _Size { int width; int height; } Size; #define SIZE_SET(sz, w, h) (sz).width = (w), (sz).height = (h) typedef struct _Rect { int x; int y; int width; int height; } Rect; #define RECT_LEFT(r) ((r).x) #define RECT_TOP(r) ((r).y) #define RECT_RIGHT(r) ((r).x + (r).width - 1) #define RECT_BOTTOM(r) ((r).y + (r).height - 1) #define RECT_AREA(r) ((r).width * (r).height) #define RECT_SET_POINT(r, nx, ny) \ (r).x = (nx), (r).y = (ny) #define RECT_SET_SIZE(r, w, h) \ (r).width = (w), (r).height = (h) #define RECT_SET(r, nx, ny, w, h) \ (r).x = (nx), (r).y = (ny), (r).width = (w), (r).height = (h) #define RECT_EQUAL(r1, r2) ((r1).x == (r2).x && (r1).y == (r2).y && \ (r1).width == (r2).width && \ (r1).height == (r2).height) #define RECT_EQUAL_DIMS(r, x, y, w, h) \ ((r).x == (x) && (r).y == (y) && (r).width == (w) && (r).height == (h)) #define RECT_TO_DIMS(r, x, y, w, h) \ (x) = (r).x, (y) = (r).y, (w) = (r).width, (h) = (r).height #define RECT_CONTAINS(r, px, py) \ ((px) >= (r).x && (px) < (r).x + (r).width && \ (py) >= (r).y && (py) < (r).y + (r).height) #define RECT_CONTAINS_RECT(r, o) \ ((o).x >= (r).x && (o).x + (o).width <= (r).x + (r).width && \ (o).y >= (r).y && (o).y + (o).height <= (r).y + (r).height) /* Returns true if Rect r and o intersect */ #define RECT_INTERSECTS_RECT(r, o) \ ((o).x < (r).x + (r).width && (o).x + (o).width > (r).x && \ (o).y < (r).y + (r).height && (o).y + (o).height > (r).y) /* Sets Rect r to be the intersection of Rect a and b. */ #define RECT_SET_INTERSECTION(r, a, b) \ ((r).x = MAX((a).x, (b).x), \ (r).y = MAX((a).y, (b).y), \ (r).width = MIN((a).x + (a).width - 1, \ (b).x + (b).width - 1) - (r).x + 1, \ (r).height = MIN((a).y + (a).height - 1, \ (b).y + (b).height - 1) - (r).y + 1) /* Returns the shortest manhatten distance between two rects, or 0 if they intersect. */ static inline gint rect_manhatten_distance(Rect r, Rect o) { if (RECT_INTERSECTS_RECT(r, o)) return 0; gint min_distance = G_MAXINT; if (RECT_RIGHT(o) < RECT_LEFT(r)) min_distance = MIN(min_distance, RECT_LEFT(r) - RECT_RIGHT(o)); if (RECT_LEFT(o) > RECT_RIGHT(r)) min_distance = MIN(min_distance, RECT_LEFT(o) - RECT_RIGHT(r)); if (RECT_BOTTOM(o) < RECT_TOP(r)) min_distance = MIN(min_distance, RECT_TOP(r) - RECT_BOTTOM(o)); if (RECT_TOP(o) > RECT_BOTTOM(r)) min_distance = MIN(min_distance, RECT_TOP(o) - RECT_BOTTOM(r)); return min_distance; } typedef struct _Strut { int left; int top; int right; int bottom; } Strut; typedef struct _StrutPartial { int left; int top; int right; int bottom; int left_start, left_end; int top_start, top_end; int right_start, right_end; int bottom_start, bottom_end; } StrutPartial; #define STRUT_SET(s, l, t, r, b) \ (s).left = (l), (s).top = (t), (s).right = (r), (s).bottom = (b) #define STRUT_PARTIAL_SET(s, l, t, r, b, ls, le, ts, te, rs, re, bs, be) \ (s).left = (l), (s).top = (t), (s).right = (r), (s).bottom = (b), \ (s).left_start = (ls), (s).left_end = (le), \ (s).top_start = (ts), (s).top_end = (te), \ (s).right_start = (rs), (s).right_end = (re), \ (s).bottom_start = (bs), (s).bottom_end = (be) #define STRUT_ADD(s1, s2) \ (s1).left = MAX((s1).left, (s2).left), \ (s1).right = MAX((s1).right, (s2).right), \ (s1).top = MAX((s1).top, (s2).top), \ (s1).bottom = MAX((s1).bottom, (s2).bottom) #define STRUT_EXISTS(s1) \ ((s1).left || (s1).top || (s1).right || (s1).bottom) #define STRUT_EQUAL(s1, s2) \ ((s1).left == (s2).left && \ (s1).top == (s2).top && \ (s1).right == (s2).right && \ (s1).bottom == (s2).bottom) #define PARTIAL_STRUT_EQUAL(s1, s2) \ ((s1).left == (s2).left && \ (s1).top == (s2).top && \ (s1).right == (s2).right && \ (s1).bottom == (s2).bottom && \ (s1).left_start == (s2).left_start && \ (s1).left_end == (s2).left_end && \ (s1).top_start == (s2).top_start && \ (s1).top_end == (s2).top_end && \ (s1).right_start == (s2).right_start && \ (s1).right_end == (s2).right_end && \ (s1).bottom_start == (s2).bottom_start && \ (s1).bottom_end == (s2).bottom_end) #define RANGES_INTERSECT(r1x, r1w, r2x, r2w) \ (r1w && r2w && r1x < r2x + r2w && r1x + r1w > r2x) #endif openbox-3.6.1/openbox/grab.c0000644000175300001440000001513312426440016012646 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- grab.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "grab.h" #include "openbox.h" #include "event.h" #include "screen.h" #include "debug.h" #include "obt/display.h" #include "obt/keyboard.h" #include #include #define GRAB_PTR_MASK (ButtonPressMask | ButtonReleaseMask | PointerMotionMask) #define GRAB_KEY_MASK (KeyPressMask | KeyReleaseMask) #define MASK_LIST_SIZE 8 /*! A list of all possible combinations of keyboard lock masks */ static guint mask_list[MASK_LIST_SIZE]; static guint kgrabs = 0; static guint pgrabs = 0; /*! The time at which the last grab was made */ static Time grab_time = CurrentTime; static gint passive_count = 0; static ObtIC *ic = NULL; static Time ungrab_time(void) { Time t = event_time(); if (grab_time == CurrentTime || !(t == CurrentTime || event_time_after(t, grab_time))) /* When the time moves backward on the server, then we can't use the grab time because that will be in the future. So instead we have to use CurrentTime. "XUngrabPointer does not release the pointer if the specified time is earlier than the last-pointer-grab time or is later than the current X server time." */ t = CurrentTime; /*grab_time;*/ return t; } static Window grab_window(void) { return screen_support_win; } gboolean grab_on_keyboard(void) { return kgrabs > 0; } gboolean grab_on_pointer(void) { return pgrabs > 0; } ObtIC *grab_input_context(void) { return ic; } gboolean grab_keyboard_full(gboolean grab) { gboolean ret = FALSE; if (grab) { if (kgrabs++ == 0) { ret = XGrabKeyboard(obt_display, grab_window(), False, GrabModeAsync, GrabModeAsync, event_time()) == Success; if (!ret) --kgrabs; else { passive_count = 0; grab_time = event_time(); } } else ret = TRUE; } else if (kgrabs > 0) { if (--kgrabs == 0) { XUngrabKeyboard(obt_display, ungrab_time()); } ret = TRUE; } return ret; } gboolean grab_pointer_full(gboolean grab, gboolean owner_events, gboolean confine, ObCursor cur) { gboolean ret = FALSE; if (grab) { if (pgrabs++ == 0) { ret = XGrabPointer(obt_display, grab_window(), owner_events, GRAB_PTR_MASK, GrabModeAsync, GrabModeAsync, (confine ? obt_root(ob_screen) : None), ob_cursor(cur), event_time()) == Success; if (!ret) --pgrabs; else grab_time = event_time(); } else ret = TRUE; } else if (pgrabs > 0) { if (--pgrabs == 0) { XUngrabPointer(obt_display, ungrab_time()); } ret = TRUE; } return ret; } gint grab_server(gboolean grab) { static guint sgrabs = 0; if (grab) { if (sgrabs++ == 0) { XGrabServer(obt_display); XSync(obt_display, FALSE); } } else if (sgrabs > 0) { if (--sgrabs == 0) { XUngrabServer(obt_display); XFlush(obt_display); } } return sgrabs; } void grab_startup(gboolean reconfig) { guint i = 0; guint num, caps, scroll; num = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_NUMLOCK); caps = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_CAPSLOCK); scroll = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_SCROLLLOCK); mask_list[i++] = 0; mask_list[i++] = num; mask_list[i++] = caps; mask_list[i++] = scroll; mask_list[i++] = num | caps; mask_list[i++] = num | scroll; mask_list[i++] = caps | scroll; mask_list[i++] = num | caps | scroll; g_assert(i == MASK_LIST_SIZE); ic = obt_keyboard_context_new(obt_root(ob_screen), grab_window()); } void grab_shutdown(gboolean reconfig) { obt_keyboard_context_unref(ic); ic = NULL; if (reconfig) return; while (ungrab_keyboard()); while (ungrab_pointer()); while (grab_server(FALSE)); } void grab_button_full(guint button, guint state, Window win, guint mask, gint pointer_mode, ObCursor cur) { guint i; /* can get BadAccess from these */ obt_display_ignore_errors(TRUE); for (i = 0; i < MASK_LIST_SIZE; ++i) XGrabButton(obt_display, button, state | mask_list[i], win, False, mask, pointer_mode, GrabModeAsync, None, ob_cursor(cur)); obt_display_ignore_errors(FALSE); if (obt_display_error_occured) ob_debug("Failed to grab button %d modifiers %d", button, state); } void ungrab_button(guint button, guint state, Window win) { guint i; for (i = 0; i < MASK_LIST_SIZE; ++i) XUngrabButton(obt_display, button, state | mask_list[i], win); } void grab_key(guint keycode, guint state, Window win, gint keyboard_mode) { guint i; /* can get BadAccess' from these */ obt_display_ignore_errors(TRUE); for (i = 0; i < MASK_LIST_SIZE; ++i) XGrabKey(obt_display, keycode, state | mask_list[i], win, FALSE, GrabModeAsync, keyboard_mode); obt_display_ignore_errors(FALSE); if (obt_display_error_occured) ob_debug("Failed to grab keycode %d modifiers %d", keycode, state); } void ungrab_all_keys(Window win) { XUngrabKey(obt_display, AnyKey, AnyModifier, win); } void grab_key_passive_count(int change) { if (grab_on_keyboard()) return; passive_count += change; if (passive_count < 0) passive_count = 0; } void ungrab_passive_key(void) { /*ob_debug("ungrabbing %d passive grabs\n", passive_count);*/ if (passive_count) { /* kill our passive grab */ XUngrabKeyboard(obt_display, event_time()); passive_count = 0; } } openbox-3.6.1/openbox/grab.h0000644000175300001440000000361012426440016012650 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- grab.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __grab_h #define __grab_h #include "misc.h" #include "obt/keyboard.h" #include #include void grab_startup(gboolean reconfig); void grab_shutdown(gboolean reconfig); ObtIC *grab_input_context(void); gboolean grab_keyboard_full(gboolean grab); /*! @param confine If true the pointer is confined to the screen */ gboolean grab_pointer_full(gboolean grab, gboolean owner_events, gboolean confine, ObCursor cur); gint grab_server(gboolean grab); #define grab_keyboard() grab_keyboard_full(TRUE) #define ungrab_keyboard() grab_keyboard_full(FALSE) #define grab_pointer(o,c,u) grab_pointer_full(TRUE, (o), (c), (u)) #define ungrab_pointer() grab_pointer_full(FALSE, FALSE, FALSE, OB_CURSOR_NONE) gboolean grab_on_keyboard(void); gboolean grab_on_pointer(void); void grab_button_full(guint button, guint state, Window win, guint mask, gint pointer_mode, ObCursor cursor); void ungrab_button(guint button, guint state, Window win); void grab_key(guint keycode, guint state, Window win, gint keyboard_mode); void ungrab_all_keys(Window win); void grab_key_passive_count(int change); void ungrab_passive_key(void); #endif openbox-3.6.1/openbox/group.c0000644000175300001440000000350412426440016013066 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- group.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "group.h" #include "client.h" static GHashTable *group_map; static guint window_hash(Window *w) { return *w; } static gboolean window_comp(Window *w1, Window *w2) { return *w1 == *w2; } void group_startup(gboolean reconfig) { if (reconfig) return; group_map = g_hash_table_new((GHashFunc)window_hash, (GEqualFunc)window_comp); } void group_shutdown(gboolean reconfig) { if (reconfig) return; g_hash_table_destroy(group_map); } ObGroup *group_add(Window leader, ObClient *client) { ObGroup *self; self = g_hash_table_lookup(group_map, &leader); if (self == NULL) { self = g_slice_new(ObGroup); self->leader = leader; self->members = NULL; g_hash_table_insert(group_map, &self->leader, self); } self->members = g_slist_append(self->members, client); return self; } void group_remove(ObGroup *self, ObClient *client) { self->members = g_slist_remove(self->members, client); if (self->members == NULL) { g_hash_table_remove(group_map, &self->leader); g_slice_free(ObGroup, self); } } openbox-3.6.1/openbox/group.h0000644000175300001440000000220512426440016013070 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- group.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __group_h #define __group_h #include #include typedef struct _ObGroup ObGroup; struct _ObClient; struct _ObGroup { Window leader; /* list of clients */ GSList *members; }; void group_startup(gboolean reconfig); void group_shutdown(gboolean reconfig); ObGroup *group_add(Window leader, struct _ObClient *client); void group_remove(ObGroup *self, struct _ObClient *client); #endif openbox-3.6.1/openbox/keyboard.c0000644000175300001440000002165112426440016013535 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- keyboard.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "focus.h" #include "screen.h" #include "frame.h" #include "openbox.h" #include "event.h" #include "grab.h" #include "client.h" #include "actions.h" #include "menuframe.h" #include "config.h" #include "keytree.h" #include "keyboard.h" #include "translate.h" #include "moveresize.h" #include "popup.h" #include "gettext.h" #include "obt/keyboard.h" #include KeyBindingTree *keyboard_firstnode = NULL; static ObPopup *popup = NULL; static KeyBindingTree *curpos; static guint chain_timer = 0; static void grab_keys(gboolean grab) { KeyBindingTree *p; ungrab_all_keys(obt_root(ob_screen)); if (grab) { p = curpos ? curpos->first_child : keyboard_firstnode; while (p) { if (p->key) grab_key(p->key, p->state, obt_root(ob_screen), GrabModeAsync); p = p->next_sibling; } if (curpos) grab_key(config_keyboard_reset_keycode, config_keyboard_reset_state, obt_root(ob_screen), GrabModeAsync); } } static gboolean chain_timeout(gpointer data) { keyboard_reset_chains(0); return FALSE; /* don't repeat */ } static void chain_done(gpointer data) { chain_timer = 0; } static void set_curpos(KeyBindingTree *newpos) { if (curpos == newpos) return; grab_keys(FALSE); curpos = newpos; grab_keys(TRUE); if (curpos != NULL) { gchar *text = NULL; GList *it; const Rect *a; for (it = curpos->keylist; it; it = g_list_next(it)) { gchar *oldtext = text; if (text == NULL) text = g_strdup(it->data); else text = g_strconcat(text, " - ", it->data, NULL); g_free(oldtext); } a = screen_physical_area_primary(FALSE); popup_position(popup, NorthWestGravity, a->x + 10, a->y + 10); /* 1 second delay for the popup to show */ popup_delay_show(popup, 1000, text); g_free(text); } else { popup_hide(popup); } } void keyboard_reset_chains(gint break_chroots) { KeyBindingTree *p; for (p = curpos; p; p = p->parent) { if (p->chroot) { if (break_chroots == 0) break; /* stop here */ if (break_chroots > 0) --break_chroots; } } set_curpos(p); } void keyboard_unbind_all(void) { tree_destroy(keyboard_firstnode); keyboard_firstnode = NULL; } void keyboard_chroot(GList *keylist) { /* try do it in the existing tree. if we can't that means it is an empty chroot binding. so add it to the tree then. */ if (!tree_chroot(keyboard_firstnode, keylist)) { KeyBindingTree *tree; if (!(tree = tree_build(keylist))) return; tree_chroot(tree, keylist); tree_assimilate(tree); } } gboolean keyboard_bind(GList *keylist, ObActionsAct *action) { KeyBindingTree *tree, *t; gboolean conflict; g_assert(keylist != NULL); g_assert(action != NULL); if (!(tree = tree_build(keylist))) return FALSE; if ((t = tree_find(tree, &conflict)) != NULL) { /* already bound to something, use the existing tree */ tree_destroy(tree); tree = NULL; } else t = tree; if (conflict) { g_message(_("Conflict with key binding in config file")); tree_destroy(tree); return FALSE; } /* find the bottom node */ for (; t->first_child; t = t->first_child); /* set the action */ t->actions = g_slist_append(t->actions, action); /* assimilate this built tree into the main tree. assimilation destroys/uses the tree */ if (tree) tree_assimilate(tree); return TRUE; } #if 0 gboolean keyboard_process_interactive_grab(const XEvent *e, ObClient **client) { gboolean handled = FALSE; gboolean done = FALSE; gboolean cancel = FALSE; guint mods; mods = obt_keyboard_only_modmasks(ev->xkey.state); if (istate.active) { if ((e->type == KeyRelease && !(istate.state & mods))) { done = TRUE; handled = TRUE; } else if (e->type == KeyPress) { /*if (e->xkey.keycode == ob_keycode(OB_KEY_RETURN)) done = TRUE; else */if (e->xkey.keycode == ob_keycode(OB_KEY_ESCAPE)) { cancel = done = TRUE; handled = TRUE; } } else if (e->type == ButtonPress) { cancel = TRUE; done = TRUE; handled = FALSE; } if (done) keyboard_interactive_end(e->xkey.state, cancel, e->xkey.time,TRUE); if (handled) *client = istate.client; } return handled; } #endif gboolean keyboard_event(ObClient *client, const XEvent *e) { KeyBindingTree *p; gboolean used; guint mods; if (e->type == KeyRelease) { grab_key_passive_count(-1); return FALSE; } g_assert(e->type == KeyPress); grab_key_passive_count(1); mods = obt_keyboard_only_modmasks(e->xkey.state); if (e->xkey.keycode == config_keyboard_reset_keycode && mods == config_keyboard_reset_state) { if (chain_timer) g_source_remove(chain_timer); keyboard_reset_chains(-1); return TRUE; } used = FALSE; if (curpos == NULL) p = keyboard_firstnode; else p = curpos->first_child; while (p) { if (p->key == e->xkey.keycode && p->state == mods) { /* if we hit a key binding, then close any open menus and run it */ if (menu_frame_visible) menu_frame_hide_all(); if (p->first_child != NULL) { /* part of a chain */ if (chain_timer) g_source_remove(chain_timer); /* 3 second timeout for chains */ chain_timer = g_timeout_add_full(G_PRIORITY_DEFAULT, 3000, chain_timeout, NULL, chain_done); set_curpos(p); } else if (p->chroot) /* an empty chroot */ set_curpos(p); else { GSList *it; for (it = p->actions; it; it = g_slist_next(it)) if (actions_act_is_interactive(it->data)) break; if (it == NULL) /* reset if the actions are not interactive */ keyboard_reset_chains(0); actions_run_acts(p->actions, OB_USER_ACTION_KEYBOARD_KEY, e->xkey.state, e->xkey.x_root, e->xkey.y_root, 0, OB_FRAME_CONTEXT_NONE, client); } used = TRUE; break; } p = p->next_sibling; } return used; } static void node_rebind(KeyBindingTree *node) { if (node->first_child) { /* find leaf nodes */ node_rebind(node->first_child); /* for internal nodes, add them to the tree if they are a chroot, but do this after adding their children */ if (node->chroot) keyboard_chroot(node->keylist); } else { /* for leaf nodes, rebind each action assigned to it */ while (node->actions) { /* add each action, and remove them from the original tree so they don't get free'd on us */ keyboard_bind(node->keylist, node->actions->data); node->actions = g_slist_delete_link(node->actions, node->actions); } if (node->chroot) keyboard_chroot(node->keylist); } /* go through each sibling */ if (node->next_sibling) node_rebind(node->next_sibling); } void keyboard_rebind(void) { KeyBindingTree *old; old = keyboard_firstnode; keyboard_firstnode = NULL; if (old) node_rebind(old); tree_destroy(old); set_curpos(NULL); grab_keys(TRUE); } void keyboard_startup(gboolean reconfig) { grab_keys(TRUE); popup = popup_new(); popup_set_text_align(popup, RR_JUSTIFY_CENTER); } void keyboard_shutdown(gboolean reconfig) { if (chain_timer) g_source_remove(chain_timer); keyboard_unbind_all(); set_curpos(NULL); popup_free(popup); popup = NULL; } openbox-3.6.1/openbox/keyboard.h0000644000175300001440000000265612426440016013546 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- keyboard.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__keybaord_h #define ob__keybaord_h #include "keytree.h" #include "frame.h" #include #include struct _ObClient; struct _ObActionsAct; extern KeyBindingTree *keyboard_firstnode; void keyboard_startup(gboolean reconfig); void keyboard_shutdown(gboolean reconfig); void keyboard_rebind(void); void keyboard_chroot(GList *keylist); gboolean keyboard_bind(GList *keylist, struct _ObActionsAct *action); void keyboard_unbind_all(void); gboolean keyboard_event(struct _ObClient *client, const XEvent *e); /*! @param break_chroots how many chroots to break. -1 means to break them ALL! */ void keyboard_reset_chains(gint break_chroots); #endif openbox-3.6.1/openbox/keytree.c0000644000175300001440000001131312426440016013377 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- keytree.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "keyboard.h" #include "translate.h" #include "actions.h" #include void tree_destroy(KeyBindingTree *tree) { KeyBindingTree *c; while (tree) { tree_destroy(tree->next_sibling); c = tree->first_child; if (c == NULL) { GList *it; GSList *sit; for (it = tree->keylist; it != NULL; it = it->next) g_free(it->data); g_list_free(tree->keylist); for (sit = tree->actions; sit != NULL; sit = sit->next) actions_act_unref(sit->data); g_slist_free(tree->actions); } g_slice_free(KeyBindingTree, tree); tree = c; } } KeyBindingTree *tree_build(GList *keylist) { GList *it; KeyBindingTree *ret = NULL, *p; if (g_list_length(keylist) <= 0) return NULL; /* nothing in the list.. */ for (it = g_list_last(keylist); it; it = g_list_previous(it)) { GList *kit; p = ret; ret = g_slice_new0(KeyBindingTree); for (kit = it; kit != NULL; kit = g_list_previous(kit)) ret->keylist = g_list_prepend(ret->keylist, g_strdup(kit->data)); /* deep copy */ ret->first_child = p; if (p != NULL) p->parent = ret; translate_key(it->data, &ret->state, &ret->key); } return ret; } void tree_assimilate(KeyBindingTree *node) { KeyBindingTree *a, *b, *tmp, *last; if (keyboard_firstnode == NULL) { /* there are no nodes at this level yet */ keyboard_firstnode = node; } else { a = keyboard_firstnode; last = a; b = node; while (a) { last = a; /* check b->key != 0 for key bindings that didn't get translated */ if (!(a->state == b->state && a->key == b->key && b->key != 0)) { a = a->next_sibling; } else { tmp = b; b = b->first_child; g_slice_free(KeyBindingTree, tmp); a = a->first_child; } } /* check b->key != 0, and save key bindings that didn't get translated as siblings here */ if (!(last->state == b->state && last->key == b->key && b->key != 0)) { last->next_sibling = b; b->parent = last->parent; } else { last->first_child = b->first_child; last->first_child->parent = last; g_slice_free(KeyBindingTree, b); } } } KeyBindingTree *tree_find(KeyBindingTree *search, gboolean *conflict) { KeyBindingTree *a, *b; *conflict = FALSE; a = keyboard_firstnode; b = search; while (a && b) { /* check b->key != 0 for key bindings that didn't get translated, and don't make them conflict with anything else so that they can all live together in peace and harmony */ if (!(a->state == b->state && a->key == b->key && b->key != 0)) { a = a->next_sibling; } else { if ((a->first_child == NULL) == (b->first_child == NULL)) { if (a->first_child == NULL) { /* found it! (return the actual node, not the search's) */ return a; } } else { *conflict = TRUE; return NULL; /* the chain status' don't match (conflict!) */ } b = b->first_child; a = a->first_child; } } return NULL; /* it just isn't in here */ } gboolean tree_chroot(KeyBindingTree *tree, GList *keylist) { guint key, state; translate_key(keylist->data, &state, &key); while (tree != NULL && !(tree->state == state && tree->key == key)) tree = tree->next_sibling; if (tree != NULL) { if (keylist->next == NULL) { tree->chroot = TRUE; return TRUE; } else return tree_chroot(tree->first_child, keylist->next); } return FALSE; } openbox-3.6.1/openbox/keytree.h0000644000175300001440000000301212426440016013401 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- keytree.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __plugin_keyboard_tree_h #define __plugin_keyboard_tree_h #include typedef struct KeyBindingTree { guint state; guint key; GList *keylist; GSList *actions; /* list of Action pointers */ gboolean chroot; /* the level up in the tree */ struct KeyBindingTree *parent; /* the next binding in the tree at the same level */ struct KeyBindingTree *next_sibling; /* the first child of this binding (next binding in a chained sequence).*/ struct KeyBindingTree *first_child; } KeyBindingTree; void tree_destroy(KeyBindingTree *tree); KeyBindingTree *tree_build(GList *keylist); void tree_assimilate(KeyBindingTree *node); KeyBindingTree *tree_find(KeyBindingTree *search, gboolean *conflict); gboolean tree_chroot(KeyBindingTree *tree, GList *keylist); #endif openbox-3.6.1/openbox/menuframe.c0000644000175300001440000013335712426440016013723 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- menuframe.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "menuframe.h" #include "client.h" #include "menu.h" #include "screen.h" #include "actions.h" #include "event.h" #include "grab.h" #include "openbox.h" #include "config.h" #include "obt/prop.h" #include "obt/keyboard.h" #include "obrender/theme.h" #define PADDING 2 #define MAX_MENU_WIDTH 400 #define ITEM_HEIGHT (ob_rr_theme->menu_font_height + 2*PADDING) #define FRAME_EVENTMASK (ButtonPressMask |ButtonMotionMask | EnterWindowMask |\ LeaveWindowMask) #define ENTRY_EVENTMASK (EnterWindowMask | LeaveWindowMask | \ ButtonPressMask | ButtonReleaseMask | \ PointerMotionMask) GList *menu_frame_visible; GHashTable *menu_frame_map; static RrAppearance *a_sep; static guint submenu_show_timer = 0; static guint submenu_hide_timer = 0; static ObMenuEntryFrame* menu_entry_frame_new(ObMenuEntry *entry, ObMenuFrame *frame); static void menu_entry_frame_free(ObMenuEntryFrame *self); static void menu_frame_update(ObMenuFrame *self); static gboolean submenu_show_timeout(gpointer data); static void menu_frame_hide(ObMenuFrame *self); static gboolean submenu_hide_timeout(gpointer data); static Window createWindow(Window parent, gulong mask, XSetWindowAttributes *attrib) { return XCreateWindow(obt_display, parent, 0, 0, 1, 1, 0, RrDepth(ob_rr_inst), InputOutput, RrVisual(ob_rr_inst), mask, attrib); } static void client_dest(ObClient *client, gpointer data) { GList *it; /* menus can be associated with a client, so null those refs since we are disappearing now */ for (it = menu_frame_visible; it; it = g_list_next(it)) { ObMenuFrame *f = it->data; if (f->client == client) f->client = NULL; } } void menu_frame_startup(gboolean reconfig) { gint i; a_sep = RrAppearanceCopy(ob_rr_theme->a_clear); RrAppearanceAddTextures(a_sep, ob_rr_theme->menu_sep_width); for (i = 0; i < ob_rr_theme->menu_sep_width; ++i) { a_sep->texture[i].type = RR_TEXTURE_LINE_ART; a_sep->texture[i].data.lineart.color = ob_rr_theme->menu_sep_color; } if (reconfig) return; client_add_destroy_notify(client_dest, NULL); menu_frame_map = g_hash_table_new(g_int_hash, g_int_equal); } void menu_frame_shutdown(gboolean reconfig) { RrAppearanceFree(a_sep); if (reconfig) return; client_remove_destroy_notify(client_dest); g_hash_table_destroy(menu_frame_map); } ObMenuFrame* menu_frame_new(ObMenu *menu, guint show_from, ObClient *client) { ObMenuFrame *self; XSetWindowAttributes attr; self = g_slice_new0(ObMenuFrame); self->obwin.type = OB_WINDOW_CLASS_MENUFRAME; self->menu = menu; self->selected = NULL; self->client = client; self->direction_right = TRUE; self->show_from = show_from; attr.event_mask = FRAME_EVENTMASK; self->window = createWindow(obt_root(ob_screen), CWEventMask, &attr); /* make it a popup menu type window */ OBT_PROP_SET32(self->window, NET_WM_WINDOW_TYPE, ATOM, OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_POPUP_MENU)); XSetWindowBorderWidth(obt_display, self->window, ob_rr_theme->mbwidth); XSetWindowBorder(obt_display, self->window, RrColorPixel(ob_rr_theme->menu_border_color)); self->a_items = RrAppearanceCopy(ob_rr_theme->a_menu); window_add(&self->window, MENUFRAME_AS_WINDOW(self)); stacking_add(MENUFRAME_AS_WINDOW(self)); return self; } void menu_frame_free(ObMenuFrame *self) { if (self) { while (self->entries) { menu_entry_frame_free(self->entries->data); self->entries = g_list_delete_link(self->entries, self->entries); } stacking_remove(MENUFRAME_AS_WINDOW(self)); window_remove(self->window); RrAppearanceFree(self->a_items); XDestroyWindow(obt_display, self->window); g_slice_free(ObMenuFrame, self); } } ObtIC* menu_frame_ic(ObMenuFrame *self) { /* menus are always used through a grab right now, so they can always use the grab input context */ return grab_input_context(); } static ObMenuEntryFrame* menu_entry_frame_new(ObMenuEntry *entry, ObMenuFrame *frame) { ObMenuEntryFrame *self; XSetWindowAttributes attr; self = g_slice_new0(ObMenuEntryFrame); self->entry = entry; self->frame = frame; menu_entry_ref(entry); attr.event_mask = ENTRY_EVENTMASK; self->window = createWindow(self->frame->window, CWEventMask, &attr); self->text = createWindow(self->window, 0, NULL); g_hash_table_insert(menu_frame_map, &self->window, self); g_hash_table_insert(menu_frame_map, &self->text, self); if ((entry->type == OB_MENU_ENTRY_TYPE_NORMAL) || (entry->type == OB_MENU_ENTRY_TYPE_SUBMENU)) { self->icon = createWindow(self->window, 0, NULL); g_hash_table_insert(menu_frame_map, &self->icon, self); } if (entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) { self->bullet = createWindow(self->window, 0, NULL); g_hash_table_insert(menu_frame_map, &self->bullet, self); } XMapWindow(obt_display, self->window); XMapWindow(obt_display, self->text); window_add(&self->window, MENUFRAME_AS_WINDOW(self->frame)); return self; } static void menu_entry_frame_free(ObMenuEntryFrame *self) { if (self) { window_remove(self->window); XDestroyWindow(obt_display, self->text); XDestroyWindow(obt_display, self->window); g_hash_table_remove(menu_frame_map, &self->text); g_hash_table_remove(menu_frame_map, &self->window); if ((self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) || (self->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU)) { XDestroyWindow(obt_display, self->icon); g_hash_table_remove(menu_frame_map, &self->icon); } if (self->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) { XDestroyWindow(obt_display, self->bullet); g_hash_table_remove(menu_frame_map, &self->bullet); } menu_entry_unref(self->entry); g_slice_free(ObMenuEntryFrame, self); } } void menu_frame_move(ObMenuFrame *self, gint x, gint y) { RECT_SET_POINT(self->area, x, y); self->monitor = screen_find_monitor_point(x, y); XMoveWindow(obt_display, self->window, self->area.x, self->area.y); } static void menu_frame_place_topmenu(ObMenuFrame *self, const GravityPoint *pos, gint *x, gint *y, gint monitor, gboolean user_positioned) { gint dx, dy; screen_apply_gravity_point(x, y, self->area.width, self->area.height, pos, screen_physical_area_monitor(monitor)); if (user_positioned) return; if (config_menu_middle) { gint myx; myx = *x; *y -= self->area.height / 2; /* try to the right of the cursor */ menu_frame_move_on_screen(self, myx, *y, &dx, &dy); self->direction_right = TRUE; if (dx != 0) { /* try to the left of the cursor */ myx = *x - self->area.width; menu_frame_move_on_screen(self, myx, *y, &dx, &dy); self->direction_right = FALSE; } if (dx != 0) { /* if didnt fit on either side so just use what it says */ myx = *x; menu_frame_move_on_screen(self, myx, *y, &dx, &dy); self->direction_right = TRUE; } *x = myx + dx; *y += dy; } else { gint myx, myy; myx = *x; myy = *y; /* try to the bottom right of the cursor */ menu_frame_move_on_screen(self, myx, myy, &dx, &dy); self->direction_right = TRUE; if (dx != 0 || dy != 0) { /* try to the bottom left of the cursor */ myx = *x - self->area.width; myy = *y; menu_frame_move_on_screen(self, myx, myy, &dx, &dy); self->direction_right = FALSE; } if (dx != 0 || dy != 0) { /* try to the top right of the cursor */ myx = *x; myy = *y - self->area.height; menu_frame_move_on_screen(self, myx, myy, &dx, &dy); self->direction_right = TRUE; } if (dx != 0 || dy != 0) { /* try to the top left of the cursor */ myx = *x - self->area.width; myy = *y - self->area.height; menu_frame_move_on_screen(self, myx, myy, &dx, &dy); self->direction_right = FALSE; } if (dx != 0 || dy != 0) { /* if didnt fit on either side so just use what it says */ myx = *x; myy = *y; menu_frame_move_on_screen(self, myx, myy, &dx, &dy); self->direction_right = TRUE; } *x = myx + dx; *y = myy + dy; } } static void menu_frame_place_submenu(ObMenuFrame *self, gint *x, gint *y) { gint overlapx, overlapy; gint bwidth; overlapx = ob_rr_theme->menu_overlap_x; overlapy = ob_rr_theme->menu_overlap_y; bwidth = ob_rr_theme->mbwidth; if (self->direction_right) *x = self->parent->area.x + self->parent->area.width - overlapx - bwidth; else *x = self->parent->area.x - self->area.width + overlapx + bwidth; *y = self->parent->area.y + self->parent_entry->area.y; if (config_menu_middle) *y -= (self->area.height - (bwidth * 2) - ITEM_HEIGHT) / 2; else *y += overlapy; } void menu_frame_move_on_screen(ObMenuFrame *self, gint x, gint y, gint *dx, gint *dy) { const Rect *a = NULL; Rect search = self->area; gint pos, half, monitor; *dx = *dy = 0; RECT_SET_POINT(search, x, y); if (self->parent) monitor = self->parent->monitor; else monitor = screen_find_monitor(&search); a = screen_physical_area_monitor(monitor); half = g_list_length(self->entries) / 2; pos = g_list_index(self->entries, self->selected); /* if in the bottom half then check this stuff first, will keep the bottom edge of the menu visible */ if (pos > half) { *dx = MAX(*dx, a->x - x); *dy = MAX(*dy, a->y - y); } *dx = MIN(*dx, (a->x + a->width) - (x + self->area.width)); *dy = MIN(*dy, (a->y + a->height) - (y + self->area.height)); /* if in the top half then check this stuff last, will keep the top edge of the menu visible */ if (pos <= half) { *dx = MAX(*dx, a->x - x); *dy = MAX(*dy, a->y - y); } } static void menu_entry_frame_render(ObMenuEntryFrame *self) { RrAppearance *item_a, *text_a; gint th; /* temp */ ObMenu *sub; ObMenuFrame *frame = self->frame; switch (self->entry->type) { case OB_MENU_ENTRY_TYPE_NORMAL: case OB_MENU_ENTRY_TYPE_SUBMENU: item_a = (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL && !self->entry->data.normal.enabled ? /* disabled */ (self == self->frame->selected ? ob_rr_theme->a_menu_disabled_selected : ob_rr_theme->a_menu_disabled) : /* enabled */ (self == self->frame->selected ? ob_rr_theme->a_menu_selected : ob_rr_theme->a_menu_normal)); th = ITEM_HEIGHT; break; case OB_MENU_ENTRY_TYPE_SEPARATOR: if (self->entry->data.separator.label) { item_a = ob_rr_theme->a_menu_title; th = ob_rr_theme->menu_title_height; } else { item_a = ob_rr_theme->a_menu_normal; th = ob_rr_theme->menu_sep_width + 2*ob_rr_theme->menu_sep_paddingy; } break; default: g_assert_not_reached(); } RECT_SET_SIZE(self->area, self->frame->inner_w, th); XResizeWindow(obt_display, self->window, self->area.width, self->area.height); item_a->surface.parent = self->frame->a_items; item_a->surface.parentx = self->area.x; item_a->surface.parenty = self->area.y; RrPaint(item_a, self->window, self->area.width, self->area.height); switch (self->entry->type) { case OB_MENU_ENTRY_TYPE_NORMAL: text_a = (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL && !self->entry->data.normal.enabled ? /* disabled */ (self == self->frame->selected ? ob_rr_theme->a_menu_text_disabled_selected : ob_rr_theme->a_menu_text_disabled) : /* enabled */ (self == self->frame->selected ? ob_rr_theme->a_menu_text_selected : ob_rr_theme->a_menu_text_normal)); text_a->texture[0].data.text.string = self->entry->data.normal.label; if (self->entry->data.normal.shortcut && (self->frame->menu->show_all_shortcuts || self->entry->data.normal.shortcut_always_show || self->entry->data.normal.shortcut_position > 0)) { text_a->texture[0].data.text.shortcut = TRUE; text_a->texture[0].data.text.shortcut_pos = self->entry->data.normal.shortcut_position; } else text_a->texture[0].data.text.shortcut = FALSE; break; case OB_MENU_ENTRY_TYPE_SUBMENU: text_a = (self == self->frame->selected ? ob_rr_theme->a_menu_text_selected : ob_rr_theme->a_menu_text_normal); sub = self->entry->data.submenu.submenu; text_a->texture[0].data.text.string = sub ? sub->title : ""; if (sub && sub->shortcut && (self->frame->menu->show_all_shortcuts || sub->shortcut_always_show || sub->shortcut_position > 0)) { text_a->texture[0].data.text.shortcut = TRUE; text_a->texture[0].data.text.shortcut_pos = sub->shortcut_position; } else text_a->texture[0].data.text.shortcut = FALSE; break; case OB_MENU_ENTRY_TYPE_SEPARATOR: if (self->entry->data.separator.label != NULL) { text_a = ob_rr_theme->a_menu_text_title; text_a->texture[0].data.text.string = self->entry->data.separator.label; } else text_a = ob_rr_theme->a_menu_text_normal; break; default: g_assert_not_reached(); } switch (self->entry->type) { case OB_MENU_ENTRY_TYPE_NORMAL: XMoveResizeWindow(obt_display, self->text, self->frame->text_x, PADDING, self->frame->text_w, ITEM_HEIGHT - 2*PADDING); text_a->surface.parent = item_a; text_a->surface.parentx = self->frame->text_x; text_a->surface.parenty = PADDING; RrPaint(text_a, self->text, self->frame->text_w, ITEM_HEIGHT - 2*PADDING); break; case OB_MENU_ENTRY_TYPE_SUBMENU: XMoveResizeWindow(obt_display, self->text, self->frame->text_x, PADDING, self->frame->text_w - ITEM_HEIGHT, ITEM_HEIGHT - 2*PADDING); text_a->surface.parent = item_a; text_a->surface.parentx = self->frame->text_x; text_a->surface.parenty = PADDING; RrPaint(text_a, self->text, self->frame->text_w - ITEM_HEIGHT, ITEM_HEIGHT - 2*PADDING); break; case OB_MENU_ENTRY_TYPE_SEPARATOR: if (self->entry->data.separator.label != NULL) { /* labeled separator */ XMoveResizeWindow(obt_display, self->text, ob_rr_theme->paddingx, ob_rr_theme->paddingy, self->area.width - 2*ob_rr_theme->paddingx, ob_rr_theme->menu_title_height - 2*ob_rr_theme->paddingy); text_a->surface.parent = item_a; text_a->surface.parentx = ob_rr_theme->paddingx; text_a->surface.parenty = ob_rr_theme->paddingy; RrPaint(text_a, self->text, self->area.width - 2*ob_rr_theme->paddingx, ob_rr_theme->menu_title_height - 2*ob_rr_theme->paddingy); } else { gint i; /* unlabeled separator */ XMoveResizeWindow(obt_display, self->text, 0, 0, self->area.width, ob_rr_theme->menu_sep_width + 2*ob_rr_theme->menu_sep_paddingy); a_sep->surface.parent = item_a; a_sep->surface.parentx = 0; a_sep->surface.parenty = 0; for (i = 0; i < ob_rr_theme->menu_sep_width; ++i) { a_sep->texture[i].data.lineart.x1 = ob_rr_theme->menu_sep_paddingx; a_sep->texture[i].data.lineart.y1 = ob_rr_theme->menu_sep_paddingy + i; a_sep->texture[i].data.lineart.x2 = self->area.width - ob_rr_theme->menu_sep_paddingx - 1; a_sep->texture[i].data.lineart.y2 = ob_rr_theme->menu_sep_paddingy + i; } RrPaint(a_sep, self->text, self->area.width, ob_rr_theme->menu_sep_width + 2*ob_rr_theme->menu_sep_paddingy); } break; default: g_assert_not_reached(); } if (((self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) || (self->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU)) && self->entry->data.normal.icon) { RrAppearance *clear; XMoveResizeWindow(obt_display, self->icon, PADDING, frame->item_margin.top, ITEM_HEIGHT - frame->item_margin.top - frame->item_margin.bottom, ITEM_HEIGHT - frame->item_margin.top - frame->item_margin.bottom); clear = ob_rr_theme->a_clear_tex; RrAppearanceClearTextures(clear); clear->texture[0].type = RR_TEXTURE_IMAGE; clear->texture[0].data.image.image = self->entry->data.normal.icon; clear->texture[0].data.image.alpha = self->entry->data.normal.icon_alpha; clear->surface.parent = item_a; clear->surface.parentx = PADDING; clear->surface.parenty = frame->item_margin.top; RrPaint(clear, self->icon, ITEM_HEIGHT - frame->item_margin.top - frame->item_margin.bottom, ITEM_HEIGHT - frame->item_margin.top - frame->item_margin.bottom); XMapWindow(obt_display, self->icon); } else if (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL && self->entry->data.normal.mask) { RrColor *c; RrAppearance *clear; XMoveResizeWindow(obt_display, self->icon, PADDING, frame->item_margin.top, ITEM_HEIGHT - frame->item_margin.top - frame->item_margin.bottom, ITEM_HEIGHT - frame->item_margin.top - frame->item_margin.bottom); clear = ob_rr_theme->a_clear_tex; RrAppearanceClearTextures(clear); clear->texture[0].type = RR_TEXTURE_MASK; clear->texture[0].data.mask.mask = self->entry->data.normal.mask; c = (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL && !self->entry->data.normal.enabled ? /* disabled */ (self == self->frame->selected ? self->entry->data.normal.mask_disabled_selected_color : self->entry->data.normal.mask_disabled_color) : /* enabled */ (self == self->frame->selected ? self->entry->data.normal.mask_selected_color : self->entry->data.normal.mask_normal_color)); clear->texture[0].data.mask.color = c; clear->surface.parent = item_a; clear->surface.parentx = PADDING; clear->surface.parenty = frame->item_margin.top; RrPaint(clear, self->icon, ITEM_HEIGHT - frame->item_margin.top - frame->item_margin.bottom, ITEM_HEIGHT - frame->item_margin.top - frame->item_margin.bottom); XMapWindow(obt_display, self->icon); } else XUnmapWindow(obt_display, self->icon); if (self->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) { RrAppearance *bullet_a; XMoveResizeWindow(obt_display, self->bullet, self->frame->text_x + self->frame->text_w - ITEM_HEIGHT + PADDING, PADDING, ITEM_HEIGHT - 2*PADDING, ITEM_HEIGHT - 2*PADDING); bullet_a = (self == self->frame->selected ? ob_rr_theme->a_menu_bullet_selected : ob_rr_theme->a_menu_bullet_normal); bullet_a->surface.parent = item_a; bullet_a->surface.parentx = self->frame->text_x + self->frame->text_w - ITEM_HEIGHT + PADDING; bullet_a->surface.parenty = PADDING; RrPaint(bullet_a, self->bullet, ITEM_HEIGHT - 2*PADDING, ITEM_HEIGHT - 2*PADDING); XMapWindow(obt_display, self->bullet); } else XUnmapWindow(obt_display, self->bullet); XFlush(obt_display); } /*! this code is taken from the menu_frame_render. if that changes, this won't work.. */ static gint menu_entry_frame_get_height(ObMenuEntryFrame *self, gboolean first_entry, gboolean last_entry) { ObMenuEntryType t; gint h = 0; h += 2*PADDING; if (self) t = self->entry->type; else /* this is the More... entry, it's NORMAL type */ t = OB_MENU_ENTRY_TYPE_NORMAL; switch (t) { case OB_MENU_ENTRY_TYPE_NORMAL: case OB_MENU_ENTRY_TYPE_SUBMENU: h += ob_rr_theme->menu_font_height; break; case OB_MENU_ENTRY_TYPE_SEPARATOR: if (self->entry->data.separator.label != NULL) { h += ob_rr_theme->menu_title_height + (ob_rr_theme->mbwidth - PADDING) * 2; /* if the first entry is a labeled separator, then make its border overlap with the menu's outside border */ if (first_entry) h -= ob_rr_theme->mbwidth; /* if the last entry is a labeled separator, then make its border overlap with the menu's outside border */ if (last_entry) h -= ob_rr_theme->mbwidth; } else { h += ob_rr_theme->menu_sep_width + 2*ob_rr_theme->menu_sep_paddingy - PADDING * 2; } break; } return h; } void menu_frame_render(ObMenuFrame *self) { gint w = 0, h = 0; gint tw, th; /* temps */ GList *it; gboolean has_icon = FALSE; ObMenu *sub; ObMenuEntryFrame *e; /* find text dimensions */ STRUT_SET(self->item_margin, 0, 0, 0, 0); if (self->entries) { gint l, t, r, b; e = self->entries->data; ob_rr_theme->a_menu_text_normal->texture[0].data.text.string = ""; tw = RrMinWidth(ob_rr_theme->a_menu_text_normal); tw += 2*PADDING; th = ITEM_HEIGHT; RrMargins(ob_rr_theme->a_menu_normal, &l, &t, &r, &b); STRUT_SET(self->item_margin, MAX(self->item_margin.left, l), MAX(self->item_margin.top, t), MAX(self->item_margin.right, r), MAX(self->item_margin.bottom, b)); RrMargins(ob_rr_theme->a_menu_selected, &l, &t, &r, &b); STRUT_SET(self->item_margin, MAX(self->item_margin.left, l), MAX(self->item_margin.top, t), MAX(self->item_margin.right, r), MAX(self->item_margin.bottom, b)); RrMargins(ob_rr_theme->a_menu_disabled, &l, &t, &r, &b); STRUT_SET(self->item_margin, MAX(self->item_margin.left, l), MAX(self->item_margin.top, t), MAX(self->item_margin.right, r), MAX(self->item_margin.bottom, b)); RrMargins(ob_rr_theme->a_menu_disabled_selected, &l, &t, &r, &b); STRUT_SET(self->item_margin, MAX(self->item_margin.left, l), MAX(self->item_margin.top, t), MAX(self->item_margin.right, r), MAX(self->item_margin.bottom, b)); } /* render the entries */ for (it = self->entries; it; it = g_list_next(it)) { RrAppearance *text_a; e = it->data; /* if the first entry is a labeled separator, then make its border overlap with the menu's outside border */ if (it == self->entries && e->entry->type == OB_MENU_ENTRY_TYPE_SEPARATOR && e->entry->data.separator.label) { h -= ob_rr_theme->mbwidth; } if (e->entry->type == OB_MENU_ENTRY_TYPE_SEPARATOR && e->entry->data.separator.label) { e->border = ob_rr_theme->mbwidth; } RECT_SET_POINT(e->area, 0, h+e->border); XMoveWindow(obt_display, e->window, e->area.x-e->border, e->area.y-e->border); XSetWindowBorderWidth(obt_display, e->window, e->border); XSetWindowBorder(obt_display, e->window, RrColorPixel(ob_rr_theme->menu_border_color)); text_a = (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL && !e->entry->data.normal.enabled ? /* disabled */ (e == self->selected ? ob_rr_theme->a_menu_text_disabled_selected : ob_rr_theme->a_menu_text_disabled) : /* enabled */ (e == self->selected ? ob_rr_theme->a_menu_text_selected : ob_rr_theme->a_menu_text_normal)); switch (e->entry->type) { case OB_MENU_ENTRY_TYPE_NORMAL: text_a->texture[0].data.text.string = e->entry->data.normal.label; tw = RrMinWidth(text_a); tw = MIN(tw, MAX_MENU_WIDTH); th = ob_rr_theme->menu_font_height; if (e->entry->data.normal.icon || e->entry->data.normal.mask) has_icon = TRUE; break; case OB_MENU_ENTRY_TYPE_SUBMENU: sub = e->entry->data.submenu.submenu; text_a->texture[0].data.text.string = sub ? sub->title : ""; tw = RrMinWidth(text_a); tw = MIN(tw, MAX_MENU_WIDTH); th = ob_rr_theme->menu_font_height; if (e->entry->data.normal.icon || e->entry->data.normal.mask) has_icon = TRUE; tw += ITEM_HEIGHT - PADDING; break; case OB_MENU_ENTRY_TYPE_SEPARATOR: if (e->entry->data.separator.label != NULL) { ob_rr_theme->a_menu_text_title->texture[0].data.text.string = e->entry->data.separator.label; tw = RrMinWidth(ob_rr_theme->a_menu_text_title) + 2*ob_rr_theme->paddingx; tw = MIN(tw, MAX_MENU_WIDTH); th = ob_rr_theme->menu_title_height + (ob_rr_theme->mbwidth - PADDING) *2; } else { tw = 0; th = ob_rr_theme->menu_sep_width + 2*ob_rr_theme->menu_sep_paddingy - 2*PADDING; } break; default: g_assert_not_reached(); } tw += 2*PADDING; th += 2*PADDING; w = MAX(w, tw); h += th; } /* if the last entry is a labeled separator, then make its border overlap with the menu's outside border */ it = g_list_last(self->entries); e = it ? it->data : NULL; if (e && e->entry->type == OB_MENU_ENTRY_TYPE_SEPARATOR && e->entry->data.separator.label) { h -= ob_rr_theme->mbwidth; } self->text_x = PADDING; self->text_w = w; if (self->entries) { if (has_icon) { w += ITEM_HEIGHT + PADDING; self->text_x += ITEM_HEIGHT + PADDING; } } if (!w) w = 10; if (!h) h = 3; XResizeWindow(obt_display, self->window, w, h); self->inner_w = w; RrPaint(self->a_items, self->window, w, h); for (it = self->entries; it; it = g_list_next(it)) menu_entry_frame_render(it->data); w += ob_rr_theme->mbwidth * 2; h += ob_rr_theme->mbwidth * 2; RECT_SET_SIZE(self->area, w, h); XFlush(obt_display); } static void menu_frame_update(ObMenuFrame *self) { GList *mit, *fit; const Rect *a; gint h; menu_pipe_execute(self->menu); menu_find_submenus(self->menu); self->selected = NULL; /* start at show_from */ mit = g_list_nth(self->menu->entries, self->show_from); /* go through the menu's and frame's entries and connect the frame entries to the menu entries */ for (fit = self->entries; mit && fit; mit = g_list_next(mit), fit = g_list_next(fit)) { ObMenuEntryFrame *f = fit->data; f->entry = mit->data; } /* if there are more menu entries than in the frame, add them */ while (mit) { ObMenuEntryFrame *e = menu_entry_frame_new(mit->data, self); self->entries = g_list_append(self->entries, e); mit = g_list_next(mit); } /* if there are more frame entries than menu entries then get rid of them */ while (fit) { GList *n = g_list_next(fit); menu_entry_frame_free(fit->data); self->entries = g_list_delete_link(self->entries, fit); fit = n; } /* * make the menu fit on the screen */ /* calculate the height of the menu */ h = 0; for (fit = self->entries; fit; fit = g_list_next(fit)) h += menu_entry_frame_get_height(fit->data, fit == self->entries, g_list_next(fit) == NULL); /* add the border at the top and bottom */ h += ob_rr_theme->mbwidth * 2; a = screen_physical_area_monitor(self->monitor); if (h > a->height) { GList *flast, *tmp; gboolean last_entry = TRUE; /* take the height of our More... entry into account */ h += menu_entry_frame_get_height(NULL, FALSE, TRUE); /* start at the end of the entries */ flast = g_list_last(self->entries); /* pull out all the entries from the frame that don't fit on the screen, leaving at least 1 though */ while (h > a->height && g_list_previous(flast) != NULL) { /* update the height, without this entry */ h -= menu_entry_frame_get_height(flast->data, FALSE, last_entry); /* destroy the entry we're not displaying */ tmp = flast; flast = g_list_previous(flast); menu_entry_frame_free(tmp->data); self->entries = g_list_delete_link(self->entries, tmp); /* only the first one that we see is the last entry in the menu */ last_entry = FALSE; }; { ObMenuEntry *more_entry; ObMenuEntryFrame *more_frame; /* make the More... menu entry frame which will display in this frame. if self->menu->more_menu is NULL that means that this is already More... menu, so just use ourself. */ more_entry = menu_get_more((self->menu->more_menu ? self->menu->more_menu : self->menu), /* continue where we left off */ self->show_from + g_list_length(self->entries)); more_frame = menu_entry_frame_new(more_entry, self); /* make it get deleted when the menu frame goes away */ menu_entry_unref(more_entry); /* add our More... entry to the frame */ self->entries = g_list_append(self->entries, more_frame); } } menu_frame_render(self); } static gboolean menu_frame_is_visible(ObMenuFrame *self) { return !!(g_list_find(menu_frame_visible, self)); } static gboolean menu_frame_show(ObMenuFrame *self) { GList *it; /* determine if the underlying menu is already visible */ for (it = menu_frame_visible; it; it = g_list_next(it)) { ObMenuFrame *f = it->data; if (f->menu == self->menu) break; } if (!it) { if (self->menu->update_func) if (!self->menu->update_func(self, self->menu->data)) return FALSE; } if (menu_frame_visible == NULL) { /* no menus shown yet */ /* grab the pointer in such a way as to pass through "owner events" so that we can get enter/leave notifies in the menu. */ if (!grab_pointer(TRUE, FALSE, OB_CURSOR_POINTER)) return FALSE; if (!grab_keyboard()) { ungrab_pointer(); return FALSE; } } menu_frame_update(self); menu_frame_visible = g_list_prepend(menu_frame_visible, self); if (self->menu->show_func) self->menu->show_func(self, self->menu->data); return TRUE; } gboolean menu_frame_show_topmenu(ObMenuFrame *self, const GravityPoint *pos, gint monitor, gboolean mouse, gboolean user_positioned) { gint px, py; gint x, y; if (menu_frame_is_visible(self)) return TRUE; if (!menu_frame_show(self)) return FALSE; if (self->menu->place_func) { x = pos->x.pos; y = pos->y.pos; self->menu->place_func(self, &x, &y, mouse, self->menu->data); } else { menu_frame_place_topmenu(self, pos, &x, &y, monitor, user_positioned); } menu_frame_move(self, x, y); XMapWindow(obt_display, self->window); if (screen_pointer_pos(&px, &py)) { ObMenuEntryFrame *e = menu_entry_frame_under(px, py); if (e && e->frame == self) e->ignore_enters++; } return TRUE; } /*! Stop hiding an open submenu. @child The OnMenuFrame of the submenu to be hidden */ static void remove_submenu_hide_timeout(ObMenuFrame *child) { if (submenu_hide_timer) g_source_remove(submenu_hide_timer); } gboolean menu_frame_show_submenu(ObMenuFrame *self, ObMenuFrame *parent, ObMenuEntryFrame *parent_entry) { gint x, y, dx, dy; gint px, py; if (menu_frame_is_visible(self)) return TRUE; self->monitor = parent->monitor; self->parent = parent; self->parent_entry = parent_entry; /* set up parent's child to be us */ if ((parent->child) != self) { if (parent->child) menu_frame_hide(parent->child); parent->child = self; parent->child_entry = parent_entry; } if (!menu_frame_show(self)) { parent->child = NULL; parent->child_entry = NULL; return FALSE; } menu_frame_place_submenu(self, &x, &y); menu_frame_move_on_screen(self, x, y, &dx, &dy); if (dx != 0) { /*try the other side */ self->direction_right = !self->direction_right; menu_frame_place_submenu(self, &x, &y); menu_frame_move_on_screen(self, x, y, &dx, &dy); } menu_frame_move(self, x + dx, y + dy); XMapWindow(obt_display, self->window); if (screen_pointer_pos(&px, &py)) { ObMenuEntryFrame *e = menu_entry_frame_under(px, py); if (e && e->frame == self) e->ignore_enters++; } return TRUE; } static void menu_frame_hide(ObMenuFrame *self) { ObMenu *const menu = self->menu; GList *it = g_list_find(menu_frame_visible, self); gulong ignore_start; if (!it) return; if (menu->hide_func) menu->hide_func(self, menu->data); if (self->child) menu_frame_hide(self->child); if (self->parent) { remove_submenu_hide_timeout(self); self->parent->child = NULL; self->parent->child_entry = NULL; } self->parent = NULL; self->parent_entry = NULL; menu_frame_visible = g_list_delete_link(menu_frame_visible, it); if (menu_frame_visible == NULL) { /* last menu shown */ ungrab_pointer(); ungrab_keyboard(); } ignore_start = event_start_ignore_all_enters(); XUnmapWindow(obt_display, self->window); event_end_ignore_all_enters(ignore_start); menu_frame_free(self); if (menu->cleanup_func) menu->cleanup_func(menu, menu->data); } void menu_frame_hide_all(void) { GList *it; if (config_submenu_show_delay && submenu_show_timer) /* remove any submenu open requests */ g_source_remove(submenu_show_timer); if ((it = g_list_last(menu_frame_visible))) menu_frame_hide(it->data); } ObMenuFrame* menu_frame_under(gint x, gint y) { ObMenuFrame *ret = NULL; GList *it; for (it = menu_frame_visible; it; it = g_list_next(it)) { ObMenuFrame *f = it->data; if (RECT_CONTAINS(f->area, x, y)) { ret = f; break; } } return ret; } ObMenuEntryFrame* menu_entry_frame_under(gint x, gint y) { ObMenuFrame *frame; ObMenuEntryFrame *ret = NULL; GList *it; if ((frame = menu_frame_under(x, y))) { x -= ob_rr_theme->mbwidth + frame->area.x; y -= ob_rr_theme->mbwidth + frame->area.y; for (it = frame->entries; it; it = g_list_next(it)) { ObMenuEntryFrame *e = it->data; if (RECT_CONTAINS(e->area, x, y)) { ret = e; break; } } } return ret; } static gboolean submenu_show_timeout(gpointer data) { g_assert(menu_frame_visible); menu_entry_frame_show_submenu((ObMenuEntryFrame*)data); return FALSE; } static void submenu_show_dest(gpointer data) { submenu_show_timer = 0; } static gboolean submenu_hide_timeout(gpointer data) { g_assert(menu_frame_visible); menu_frame_hide((ObMenuFrame*)data); return FALSE; } static void submenu_hide_dest(gpointer data) { submenu_hide_timer = 0; } void menu_frame_select(ObMenuFrame *self, ObMenuEntryFrame *entry, gboolean immediate) { ObMenuEntryFrame *old = self->selected; ObMenuFrame *oldchild = self->child; ObMenuEntryFrame *oldchild_entry = self->child_entry; /* if the user selected a separator, ignore it and reselect what we had selected before */ if (entry && entry->entry->type == OB_MENU_ENTRY_TYPE_SEPARATOR) entry = old; if (old == entry && (!old || old->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU)) return; /* if the user left this menu but we have a submenu open, move the selection back to that submenu */ if (!entry && oldchild_entry) entry = oldchild_entry; if (config_submenu_show_delay && submenu_show_timer) /* remove any submenu open requests */ g_source_remove(submenu_show_timer); self->selected = entry; if (old) menu_entry_frame_render(old); if (oldchild_entry) { /* There is an open submenu */ if (oldchild_entry == self->selected) { /* The open submenu has been reselected, so stop hiding the submenu */ remove_submenu_hide_timeout(oldchild); } else if (oldchild_entry == old) { /* The open submenu was selected and is no longer, so hide the submenu */ if (immediate || config_submenu_hide_delay == 0) menu_frame_hide(oldchild); else if (config_submenu_hide_delay > 0) { if (submenu_hide_timer) g_source_remove(submenu_hide_timer); submenu_hide_timer = g_timeout_add_full(G_PRIORITY_DEFAULT, config_submenu_hide_delay, submenu_hide_timeout, oldchild, submenu_hide_dest); } } } if (self->selected) { menu_entry_frame_render(self->selected); if (self->selected->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) { /* only show if the submenu isn't already showing */ if (oldchild_entry != self->selected) { if (immediate || config_submenu_show_delay == 0) menu_entry_frame_show_submenu(self->selected); else if (config_submenu_show_delay > 0) { if (submenu_show_timer) g_source_remove(submenu_show_timer); submenu_show_timer = g_timeout_add_full(G_PRIORITY_DEFAULT, config_submenu_show_delay, submenu_show_timeout, self->selected, submenu_show_dest); } } /* hide the grandchildren of this menu. and move the cursor to the current menu */ else if (immediate && self->child && self->child->child) { menu_frame_hide(self->child->child); menu_frame_select(self->child, NULL, TRUE); } } } } void menu_entry_frame_show_submenu(ObMenuEntryFrame *self) { ObMenuFrame *f; if (!self->entry->data.submenu.submenu) return; f = menu_frame_new(self->entry->data.submenu.submenu, self->entry->data.submenu.show_from, self->frame->client); /* pass our direction on to our child */ f->direction_right = self->frame->direction_right; if (!menu_frame_show_submenu(f, self->frame, self)) menu_frame_free(f); } void menu_entry_frame_execute(ObMenuEntryFrame *self, guint state) { if (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL && self->entry->data.normal.enabled) { /* grab all this shizzle, cuz when the menu gets hidden, 'self' gets freed */ ObMenuEntry *entry = self->entry; ObMenuExecuteFunc func = self->frame->menu->execute_func; gpointer data = self->frame->menu->data; GSList *acts = self->entry->data.normal.actions; ObClient *client = self->frame->client; ObMenuFrame *frame = self->frame; guint mods = obt_keyboard_only_modmasks(state); /* release grabs before executing the shit */ if (!(mods & ControlMask)) { event_cancel_all_key_grabs(); frame = NULL; } if (func) func(entry, frame, client, state, data); else actions_run_acts(acts, OB_USER_ACTION_MENU_SELECTION, state, -1, -1, 0, OB_FRAME_CONTEXT_NONE, client); } } void menu_frame_select_previous(ObMenuFrame *self) { GList *it = NULL, *start; if (self->entries) { start = it = g_list_find(self->entries, self->selected); while (TRUE) { ObMenuEntryFrame *e; it = it ? g_list_previous(it) : g_list_last(self->entries); if (it == start) break; if (it) { e = it->data; if (e->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) break; if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) break; } } } menu_frame_select(self, it ? it->data : NULL, FALSE); } void menu_frame_select_next(ObMenuFrame *self) { GList *it = NULL, *start; if (self->entries) { start = it = g_list_find(self->entries, self->selected); while (TRUE) { ObMenuEntryFrame *e; it = it ? g_list_next(it) : self->entries; if (it == start) break; if (it) { e = it->data; if (e->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) break; if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) break; } } } menu_frame_select(self, it ? it->data : NULL, FALSE); } void menu_frame_select_first(ObMenuFrame *self) { GList *it = NULL; if (self->entries) { for (it = self->entries; it; it = g_list_next(it)) { ObMenuEntryFrame *e = it->data; if (e->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) break; if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) break; } } menu_frame_select(self, it ? it->data : NULL, FALSE); } void menu_frame_select_last(ObMenuFrame *self) { GList *it = NULL; if (self->entries) { for (it = g_list_last(self->entries); it; it = g_list_previous(it)) { ObMenuEntryFrame *e = it->data; if (e->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) break; if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) break; } } menu_frame_select(self, it ? it->data : NULL, FALSE); } openbox-3.6.1/openbox/menuframe.h0000644000175300001440000001114612426440016013717 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- menuframe.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__menuframe_h #define ob__menuframe_h #include "geom.h" #include "window.h" #include "obrender/render.h" #include "obt/keyboard.h" #include struct _ObClient; struct _ObMenu; struct _ObMenuEntry; typedef struct _ObMenuFrame ObMenuFrame; typedef struct _ObMenuEntryFrame ObMenuEntryFrame; extern GList *menu_frame_visible; struct _ObMenuFrame { /* stuff to be an ObWindow */ ObWindow obwin; Window window; struct _ObMenu *menu; /* The client that the visual instance of the menu is associated with for its actions */ struct _ObClient *client; ObMenuFrame *parent; ObMenuEntryFrame *parent_entry; ObMenuFrame *child; ObMenuEntryFrame *child_entry; GList *entries; ObMenuEntryFrame *selected; /* show entries from the menu starting at this index */ guint show_from; /* If the submenus are being drawn to the right or the left */ gboolean direction_right; /* On-screen area (including borders!) */ Rect area; Strut item_margin; gint inner_w; /* inside the borders */ gint item_h; /* height of all normal items */ gint text_x; /* offset at which the text appears in the items */ gint text_w; /* width of the text area in the items */ gint text_h; /* height of the items */ gint monitor; /* monitor on which to show the menu in xinerama */ /* We make a copy of this for each menu, so that we don't have to re-render the background of the entire menu each time we render an item inside it. */ RrAppearance *a_items; gboolean got_press; /* don't allow a KeyRelease event to run things in the menu until it has seen a KeyPress. this is to avoid having the keybinding used to show the menu end up running something inside the menu */ guint press_keycode; /* the KeyCode that was used in the last KeyPress */ gboolean press_doexec; /* if the upcoming KeyRelease should be used to execute the menu item that was selected by the KeyPress */ }; struct _ObMenuEntryFrame { struct _ObMenuEntry *entry; ObMenuFrame *frame; guint ignore_enters; Rect area; gint border; Window window; Window icon; Window text; Window bullet; }; extern GHashTable *menu_frame_map; void menu_frame_startup(gboolean reconfig); void menu_frame_shutdown(gboolean reconfig); ObMenuFrame* menu_frame_new(struct _ObMenu *menu, guint show_from, struct _ObClient *client); void menu_frame_free(ObMenuFrame *self); ObtIC* menu_frame_ic(ObMenuFrame *self); void menu_frame_move(ObMenuFrame *self, gint x, gint y); void menu_frame_move_on_screen(ObMenuFrame *self, gint x, gint y, gint *dx, gint *dy); gboolean menu_frame_show_topmenu(ObMenuFrame *self, const GravityPoint *pos, gint monitor, gboolean mouse, gboolean user_positioned); gboolean menu_frame_show_submenu(ObMenuFrame *self, ObMenuFrame *parent, ObMenuEntryFrame *parent_entry); void menu_frame_hide_all(void); void menu_frame_hide_all_client(struct _ObClient *client); void menu_frame_render(ObMenuFrame *self); void menu_frame_select(ObMenuFrame *self, ObMenuEntryFrame *entry, gboolean immediate); void menu_frame_select_previous(ObMenuFrame *self); void menu_frame_select_next(ObMenuFrame *self); void menu_frame_select_first(ObMenuFrame *self); void menu_frame_select_last(ObMenuFrame *self); ObMenuFrame* menu_frame_under(gint x, gint y); ObMenuEntryFrame* menu_entry_frame_under(gint x, gint y); void menu_entry_frame_show_submenu(ObMenuEntryFrame *self); void menu_entry_frame_execute(ObMenuEntryFrame *self, guint state); #endif openbox-3.6.1/openbox/menu.c0000644000175300001440000005610312426440016012701 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- menu.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "debug.h" #include "menu.h" #include "openbox.h" #include "stacking.h" #include "grab.h" #include "client.h" #include "config.h" #include "actions.h" #include "screen.h" #include "menuframe.h" #include "keyboard.h" #include "geom.h" #include "misc.h" #include "client_menu.h" #include "client_list_menu.h" #include "client_list_combined_menu.h" #include "gettext.h" #include "obt/xml.h" #include "obt/paths.h" typedef struct _ObMenuParseState ObMenuParseState; struct _ObMenuParseState { ObMenu *parent; ObMenu *pipe_creator; }; static GHashTable *menu_hash = NULL; static ObtXmlInst *menu_parse_inst; static ObMenuParseState menu_parse_state; static gboolean menu_can_hide = FALSE; static guint menu_timeout_id = 0; static void menu_destroy_hash_value(ObMenu *self); static void parse_menu_item(xmlNodePtr node, gpointer data); static void parse_menu_separator(xmlNodePtr node, gpointer data); static void parse_menu(xmlNodePtr node, gpointer data); static gunichar parse_shortcut(const gchar *label, gboolean allow_shortcut, gchar **strippedlabel, guint *position, gboolean *always_show); void menu_startup(gboolean reconfig) { gboolean loaded = FALSE; GSList *it; menu_hash = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, (GDestroyNotify)menu_destroy_hash_value); client_list_menu_startup(reconfig); client_list_combined_menu_startup(reconfig); client_menu_startup(); menu_parse_inst = obt_xml_instance_new(); menu_parse_state.parent = NULL; menu_parse_state.pipe_creator = NULL; obt_xml_register(menu_parse_inst, "menu", parse_menu, &menu_parse_state); obt_xml_register(menu_parse_inst, "item", parse_menu_item, &menu_parse_state); obt_xml_register(menu_parse_inst, "separator", parse_menu_separator, &menu_parse_state); for (it = config_menu_files; it; it = g_slist_next(it)) { if (obt_xml_load_config_file(menu_parse_inst, "openbox", it->data, "openbox_menu")) { loaded = TRUE; obt_xml_tree_from_root(menu_parse_inst); obt_xml_close(menu_parse_inst); } else if (obt_xml_load_file(menu_parse_inst, it->data, "openbox_menu")) { loaded = TRUE; obt_xml_tree_from_root(menu_parse_inst); obt_xml_close(menu_parse_inst); } else g_message(_("Unable to find a valid menu file \"%s\""), (const gchar*)it->data); } if (!loaded) { if (obt_xml_load_config_file(menu_parse_inst, "openbox", "menu.xml", "openbox_menu")) { obt_xml_tree_from_root(menu_parse_inst); obt_xml_close(menu_parse_inst); } else g_message(_("Unable to find a valid menu file \"%s\""), "menu.xml"); } g_assert(menu_parse_state.parent == NULL); } void menu_shutdown(gboolean reconfig) { obt_xml_instance_unref(menu_parse_inst); menu_parse_inst = NULL; menu_frame_hide_all(); client_list_combined_menu_shutdown(reconfig); client_list_menu_shutdown(reconfig); g_hash_table_destroy(menu_hash); menu_hash = NULL; } static gboolean menu_pipe_submenu(gpointer key, gpointer val, gpointer data) { ObMenu *menu = val; return menu->pipe_creator != NULL; } static void clear_cache(gpointer key, gpointer val, gpointer data) { ObMenu *menu = val; if (menu->execute) menu_clear_entries(menu); } void menu_clear_pipe_caches(void) { /* delete any pipe menus' submenus */ g_hash_table_foreach_remove(menu_hash, menu_pipe_submenu, NULL); /* empty the top level pipe menus */ g_hash_table_foreach(menu_hash, clear_cache, NULL); } void menu_pipe_execute(ObMenu *self) { gchar *output; GError *err = NULL; if (!self->execute) return; if (self->entries) /* the entries are already created and cached */ return; if (!g_spawn_command_line_sync(self->execute, &output, NULL, NULL, &err)) { g_message(_("Failed to execute command for pipe-menu \"%s\": %s"), self->execute, err->message); g_error_free(err); return; } if (obt_xml_load_mem(menu_parse_inst, output, strlen(output), "openbox_pipe_menu")) { menu_parse_state.pipe_creator = self; menu_parse_state.parent = self; obt_xml_tree_from_root(menu_parse_inst); obt_xml_close(menu_parse_inst); } else { g_message(_("Invalid output from pipe-menu \"%s\""), self->execute); } g_free(output); } static ObMenu* menu_from_name(gchar *name) { ObMenu *self = NULL; g_assert(name != NULL); if (!(self = g_hash_table_lookup(menu_hash, name))) g_message(_("Attempted to access menu \"%s\" but it does not exist"), name); return self; } #define VALID_SHORTCUT(c) (((c) >= '0' && (c) <= '9') || \ ((c) >= 'A' && (c) <= 'Z') || \ ((c) >= 'a' && (c) <= 'z')) static gunichar parse_shortcut(const gchar *label, gboolean allow_shortcut, gchar **strippedlabel, guint *position, gboolean *always_show) { gunichar shortcut = 0; *position = 0; *always_show = FALSE; g_assert(strippedlabel != NULL); if (label == NULL) { *strippedlabel = NULL; } else { gchar *i; gboolean escape; *strippedlabel = g_strdup(label); /* if allow_shortcut is false, then you can't use the '_', instead you have to just use the first valid character */ /* allow __ to escape an underscore */ i = *strippedlabel; do { escape = FALSE; i = strchr(i, '_'); if (i && *(i+1) == '_') { gchar *j; /* remove the escape '_' from the string */ for (j = i; *j != '\0'; ++j) *j = *(j+1); ++i; escape = TRUE; } } while (escape); if (allow_shortcut && i != NULL) { /* there is an underscore in the string */ /* you have to use a printable ascii character for shortcuts don't allow space either, so you can have like "a _ b" */ if (VALID_SHORTCUT(*(i+1))) { shortcut = g_unichar_tolower(g_utf8_get_char(i+1)); *position = i - *strippedlabel; *always_show = TRUE; /* remove the '_' from the string */ for (; *i != '\0'; ++i) *i = *(i+1); } else if (*(i+1) == '\0') { /* no default shortcut if the '_' is the last character (eg. "Exit_") for menu entries that you don't want to be executed by mistake */ *i = '\0'; } } else { /* there is no underscore, so find the first valid character to use instead */ for (i = *strippedlabel; *i != '\0'; ++i) if (VALID_SHORTCUT(*i)) { *position = i - *strippedlabel; shortcut = g_unichar_tolower(g_utf8_get_char(i)); break; } } } return shortcut; } static void parse_menu_item(xmlNodePtr node, gpointer data) { ObMenuParseState *state = data; gchar *label; gchar *icon; ObMenuEntry *e; if (state->parent) { /* Don't try to extract "icon" attribute if icons in user-defined menus are not enabled. */ if (obt_xml_attr_string_unstripped(node, "label", &label)) { xmlNodePtr c; GSList *acts = NULL; c = obt_xml_find_node(node->children, "action"); while (c) { ObActionsAct *action = actions_parse(c); if (action) acts = g_slist_append(acts, action); c = obt_xml_find_node(c->next, "action"); } e = menu_add_normal(state->parent, -1, label, acts, TRUE); if (config_menu_show_icons && obt_xml_attr_string(node, "icon", &icon)) { e->data.normal.icon = RrImageNewFromName(ob_rr_icons, icon); if (e->data.normal.icon) e->data.normal.icon_alpha = 0xff; g_free(icon); } g_free(label); } } } static void parse_menu_separator(xmlNodePtr node, gpointer data) { ObMenuParseState *state = data; if (state->parent) { gchar *label; if (!obt_xml_attr_string_unstripped(node, "label", &label)) label = NULL; menu_add_separator(state->parent, -1, label); g_free(label); } } static void parse_menu(xmlNodePtr node, gpointer data) { ObMenuParseState *state = data; gchar *name = NULL, *title = NULL, *script = NULL; ObMenu *menu; ObMenuEntry *e; gchar *icon; if (!obt_xml_attr_string(node, "id", &name)) goto parse_menu_fail; if (!g_hash_table_lookup(menu_hash, name)) { if (!obt_xml_attr_string_unstripped(node, "label", &title)) goto parse_menu_fail; if ((menu = menu_new(name, title, TRUE, NULL))) { menu->pipe_creator = state->pipe_creator; if (obt_xml_attr_string(node, "execute", &script)) { menu->execute = obt_paths_expand_tilde(script); } else { ObMenu *old; old = state->parent; state->parent = menu; obt_xml_tree(menu_parse_inst, node->children); state->parent = old; } } } if (state->parent) { e = menu_add_submenu(state->parent, -1, name); if (config_menu_show_icons && obt_xml_attr_string(node, "icon", &icon)) { e->data.submenu.icon = RrImageNewFromName(ob_rr_icons, icon); if (e->data.submenu.icon) e->data.submenu.icon_alpha = 0xff; g_free(icon); } } parse_menu_fail: g_free(name); g_free(title); g_free(script); } ObMenu* menu_new(const gchar *name, const gchar *title, gboolean allow_shortcut_selection, gpointer data) { ObMenu *self; self = g_slice_new0(ObMenu); self->name = g_strdup(name); self->data = data; self->shortcut = parse_shortcut(title, allow_shortcut_selection, &self->title, &self->shortcut_position, &self->shortcut_always_show); self->collate_key = g_utf8_collate_key(self->title, -1); g_hash_table_replace(menu_hash, self->name, self); /* Each menu has a single more_menu. When the menu spills past what can fit on the screen, a new menu frame entry is created from this more_menu, and a new menu frame for the submenu is created for this menu, also pointing to the more_menu. This can be done multiple times using the same more_menu. more_menu->more_menu will always be NULL, since there is only 1 for each menu. */ self->more_menu = g_slice_new0(ObMenu); self->more_menu->name = _("More..."); self->more_menu->title = _("More..."); self->more_menu->collate_key = "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"; self->more_menu->data = data; self->more_menu->shortcut = g_unichar_tolower(g_utf8_get_char("M")); return self; } static void menu_destroy_hash_value(ObMenu *self) { /* make sure its not visible */ { GList *it; ObMenuFrame *f; for (it = menu_frame_visible; it; it = g_list_next(it)) { f = it->data; if (f->menu == self) menu_frame_hide_all(); } } if (self->destroy_func) self->destroy_func(self, self->data); menu_clear_entries(self); g_free(self->name); g_free(self->title); g_free(self->collate_key); g_free(self->execute); g_slice_free(ObMenu, self->more_menu); g_slice_free(ObMenu, self); } void menu_free(ObMenu *menu) { if (menu) g_hash_table_remove(menu_hash, menu->name); } static gboolean menu_hide_delay_func(gpointer data) { menu_can_hide = TRUE; menu_timeout_id = 0; return FALSE; /* no repeat */ } void menu_show(gchar *name, const GravityPoint *pos, gint monitor, gboolean mouse, gboolean user_positioned, ObClient *client) { ObMenu *self; ObMenuFrame *frame; if (!(self = menu_from_name(name)) || grab_on_keyboard() || grab_on_pointer()) return; /* if the requested menu is already the top visible menu, then don't bother */ if (menu_frame_visible) { frame = menu_frame_visible->data; if (frame->menu == self) return; } menu_frame_hide_all(); /* clear the pipe menus when showing a new menu */ menu_clear_pipe_caches(); frame = menu_frame_new(self, 0, client); if (!menu_frame_show_topmenu(frame, pos, monitor, mouse, user_positioned)) menu_frame_free(frame); else { if (!mouse) { /* select the first entry if it's not a submenu and we opened * the menu with the keyboard, and skip all headers */ GList *it = frame->entries; while (it) { ObMenuEntryFrame *e = it->data; if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) { menu_frame_select(frame, e, FALSE); break; } else if (e->entry->type == OB_MENU_ENTRY_TYPE_SEPARATOR) it = g_list_next(it); else break; } } /* reset the hide timer */ if (!mouse) menu_can_hide = TRUE; else { menu_can_hide = FALSE; if (menu_timeout_id) g_source_remove(menu_timeout_id); menu_timeout_id = g_timeout_add_full(G_PRIORITY_DEFAULT, config_menu_hide_delay, menu_hide_delay_func, NULL, NULL); } } } gboolean menu_hide_delay_reached(void) { return menu_can_hide; } void menu_hide_delay_reset(void) { if (menu_timeout_id) g_source_remove(menu_timeout_id); menu_hide_delay_func(NULL); } static ObMenuEntry* menu_entry_new(ObMenu *menu, ObMenuEntryType type, gint id) { ObMenuEntry *self; g_assert(menu); self = g_slice_new0(ObMenuEntry); self->ref = 1; self->type = type; self->menu = menu; self->id = id; switch (type) { case OB_MENU_ENTRY_TYPE_NORMAL: self->data.normal.enabled = TRUE; break; case OB_MENU_ENTRY_TYPE_SUBMENU: case OB_MENU_ENTRY_TYPE_SEPARATOR: break; } return self; } void menu_entry_ref(ObMenuEntry *self) { ++self->ref; } void menu_entry_unref(ObMenuEntry *self) { if (self && --self->ref == 0) { switch (self->type) { case OB_MENU_ENTRY_TYPE_NORMAL: RrImageUnref(self->data.normal.icon); g_free(self->data.normal.label); g_free(self->data.normal.collate_key); while (self->data.normal.actions) { actions_act_unref(self->data.normal.actions->data); self->data.normal.actions = g_slist_delete_link(self->data.normal.actions, self->data.normal.actions); } break; case OB_MENU_ENTRY_TYPE_SUBMENU: RrImageUnref(self->data.submenu.icon); g_free(self->data.submenu.name); break; case OB_MENU_ENTRY_TYPE_SEPARATOR: g_free(self->data.separator.label); break; } g_slice_free(ObMenuEntry, self); } } void menu_clear_entries(ObMenu *self) { #ifdef DEBUG /* assert that the menu isn't visible */ { GList *it; ObMenuFrame *f; for (it = menu_frame_visible; it; it = g_list_next(it)) { f = it->data; g_assert(f->menu != self); } } #endif while (self->entries) { menu_entry_unref(self->entries->data); self->entries = g_list_delete_link(self->entries, self->entries); } self->more_menu->entries = self->entries; /* keep it in sync */ } void menu_entry_remove(ObMenuEntry *self) { self->menu->entries = g_list_remove(self->menu->entries, self); menu_entry_unref(self); } ObMenuEntry* menu_add_normal(ObMenu *self, gint id, const gchar *label, GSList *actions, gboolean allow_shortcut) { ObMenuEntry *e; e = menu_entry_new(self, OB_MENU_ENTRY_TYPE_NORMAL, id); e->data.normal.actions = actions; menu_entry_set_label(e, label, allow_shortcut); self->entries = g_list_append(self->entries, e); self->more_menu->entries = self->entries; /* keep it in sync */ return e; } ObMenuEntry* menu_get_more(ObMenu *self, guint show_from) { ObMenuEntry *e; e = menu_entry_new(self, OB_MENU_ENTRY_TYPE_SUBMENU, -1); /* points to itself */ e->data.submenu.name = g_strdup(self->name); e->data.submenu.submenu = self; e->data.submenu.show_from = show_from; return e; } ObMenuEntry* menu_add_submenu(ObMenu *self, gint id, const gchar *submenu) { ObMenuEntry *e; e = menu_entry_new(self, OB_MENU_ENTRY_TYPE_SUBMENU, id); e->data.submenu.name = g_strdup(submenu); self->entries = g_list_append(self->entries, e); self->more_menu->entries = self->entries; /* keep it in sync */ return e; } ObMenuEntry* menu_add_separator(ObMenu *self, gint id, const gchar *label) { ObMenuEntry *e; e = menu_entry_new(self, OB_MENU_ENTRY_TYPE_SEPARATOR, id); menu_entry_set_label(e, label, FALSE); self->entries = g_list_append(self->entries, e); self->more_menu->entries = self->entries; /* keep it in sync */ return e; } void menu_set_show_func(ObMenu *self, ObMenuShowFunc func) { self->show_func = func; } void menu_set_hide_func(ObMenu *self, ObMenuHideFunc func) { self->hide_func = func; } void menu_set_update_func(ObMenu *self, ObMenuUpdateFunc func) { self->update_func = func; } void menu_set_execute_func(ObMenu *self, ObMenuExecuteFunc func) { self->execute_func = func; self->more_menu->execute_func = func; /* keep it in sync */ } void menu_set_cleanup_func(ObMenu *self, ObMenuCleanupFunc func) { self->cleanup_func = func; } void menu_set_destroy_func(ObMenu *self, ObMenuDestroyFunc func) { self->destroy_func = func; } void menu_set_place_func(ObMenu *self, ObMenuPlaceFunc func) { self->place_func = func; } ObMenuEntry* menu_find_entry_id(ObMenu *self, gint id) { ObMenuEntry *ret = NULL; GList *it; for (it = self->entries; it; it = g_list_next(it)) { ObMenuEntry *e = it->data; if (e->id == id) { ret = e; break; } } return ret; } void menu_find_submenus(ObMenu *self) { GList *it; for (it = self->entries; it; it = g_list_next(it)) { ObMenuEntry *e = it->data; if (e->type == OB_MENU_ENTRY_TYPE_SUBMENU) e->data.submenu.submenu = menu_from_name(e->data.submenu.name); } } void menu_entry_set_label(ObMenuEntry *self, const gchar *label, gboolean allow_shortcut) { switch (self->type) { case OB_MENU_ENTRY_TYPE_SEPARATOR: g_free(self->data.separator.label); self->data.separator.label = g_strdup(label); break; case OB_MENU_ENTRY_TYPE_NORMAL: g_free(self->data.normal.label); g_free(self->data.normal.collate_key); self->data.normal.shortcut = parse_shortcut(label, allow_shortcut, &self->data.normal.label, &self->data.normal.shortcut_position, &self->data.normal.shortcut_always_show); self->data.normal.collate_key = g_utf8_collate_key(self->data.normal.label, -1); break; default: g_assert_not_reached(); } } void menu_show_all_shortcuts(ObMenu *self, gboolean show) { self->show_all_shortcuts = show; } static int sort_func(const void *a, const void *b) { const ObMenuEntry *e[2] = {*(ObMenuEntry**)a, *(ObMenuEntry**)b}; const gchar *k[2]; gint i; for (i = 0; i < 2; ++i) { if (e[i]->type == OB_MENU_ENTRY_TYPE_NORMAL) k[i] = e[i]->data.normal.collate_key; else { g_assert(e[i]->type == OB_MENU_ENTRY_TYPE_SUBMENU); if (e[i]->data.submenu.submenu) k[i] = e[i]->data.submenu.submenu->collate_key; else return -1; /* arbitrary really.. the submenu doesn't exist. */ } } return strcmp(k[0], k[1]); } /*! @param start The first entry in the range to sort. @param end The last entry in the range to sort. */ static void sort_range(ObMenu *self, GList *start, GList *end, guint len) { ObMenuEntry **ar; GList *it; guint i; if (!len) return; ar = g_slice_alloc(sizeof(ObMenuEntry*) * len); for (i = 0, it = start; it != g_list_next(end); ++i, it = g_list_next(it)) ar[i] = it->data; qsort(ar, len, sizeof(ObMenuEntry*), sort_func); for (i = 0, it = start; it != g_list_next(end); ++i, it = g_list_next(it)) it->data = ar[i]; g_slice_free1(sizeof(ObMenuEntry*) * len, ar); } void menu_sort_entries(ObMenu *self) { GList *it, *start, *end, *last; guint len; /* need the submenus to know their labels for sorting */ menu_find_submenus(self); start = self->entries; len = 0; for (it = self->entries; it; it = g_list_next(it)) { ObMenuEntry *e = it->data; if (e->type == OB_MENU_ENTRY_TYPE_SEPARATOR) { end = g_list_previous(it); sort_range(self, start, end, len); it = g_list_next(it); /* skip over the separator */ start = it; len = 0; } else len += 1; last = it; } sort_range(self, start, last, len); } openbox-3.6.1/openbox/menu.h0000644000175300001440000001700512426440016012704 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- menu.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __menu_h #define __menu_h #include "window.h" #include "geom.h" #include "obrender/render.h" #include struct _ObClient; struct _ObMenuFrame; struct _ObMenuEntryFrame; typedef struct _ObMenu ObMenu; typedef struct _ObMenuEntry ObMenuEntry; typedef struct _ObNormalMenuEntry ObNormalMenuEntry; typedef struct _ObSubmenuMenuEntry ObSubmenuMenuEntry; typedef struct _ObSeparatorMenuEntry ObSeparatorMenuEntry; typedef void (*ObMenuShowFunc)(struct _ObMenuFrame *frame, gpointer data); typedef void (*ObMenuHideFunc)(struct _ObMenuFrame *frame, gpointer data); typedef gboolean (*ObMenuUpdateFunc)(struct _ObMenuFrame *frame, gpointer data); typedef void (*ObMenuExecuteFunc)(struct _ObMenuEntry *entry, struct _ObMenuFrame *frame, struct _ObClient *client, guint state, gpointer data); typedef void (*ObMenuCleanupFunc)(struct _ObMenu *menu, gpointer data); typedef void (*ObMenuDestroyFunc)(struct _ObMenu *menu, gpointer data); /*! @param x is the mouse x coordinate. on return it should be the x coordinate for the menu @param y is the mouse y coordinate. on return it should be the y coordinate for the menu */ typedef void (*ObMenuPlaceFunc)(struct _ObMenuFrame *frame, gint *x, gint *y, gboolean mouse, gpointer data); struct _ObMenu { /* Name of the menu. Used in the showmenu action. */ gchar *name; /* Displayed title */ gchar *title; gchar *collate_key; /*! The shortcut key that would be used to activate this menu if it was displayed as a submenu */ gunichar shortcut; /*! The shortcut's position in the string */ guint shortcut_position; /*! If the shortcut was specified by & and should always be drawn */ gboolean shortcut_always_show; /*! If the shortcut key should be shown in menu entries even when it is the first character in the string */ gboolean show_all_shortcuts; /* Command to execute to rebuild the menu */ gchar *execute; /* ObMenuEntry list */ GList *entries; /* plugin data */ gpointer data; ObMenuShowFunc show_func; ObMenuHideFunc hide_func; ObMenuUpdateFunc update_func; ObMenuExecuteFunc execute_func; ObMenuCleanupFunc cleanup_func; ObMenuDestroyFunc destroy_func; ObMenuPlaceFunc place_func; /* Pipe-menu parent, we get destroyed when it is destroyed */ ObMenu *pipe_creator; /* The menu used as the destination for the "More..." entry for this menu*/ ObMenu *more_menu; }; typedef enum { OB_MENU_ENTRY_TYPE_NORMAL, OB_MENU_ENTRY_TYPE_SUBMENU, OB_MENU_ENTRY_TYPE_SEPARATOR } ObMenuEntryType; struct _ObNormalMenuEntry { /* Icon stuff. If you set this, make sure you RrImageRef() it too. */ RrImage *icon; gint icon_alpha; gchar *label; gchar *collate_key; /*! The shortcut key that would be used to activate this menu entry */ gunichar shortcut; /*! The shortcut's position in the string */ guint shortcut_position; /*! If the shortcut was specified by & and should always be drawn */ gboolean shortcut_always_show; /* state */ gboolean enabled; /* List of ObActions */ GSList *actions; /* Mask icon */ RrPixmapMask *mask; RrColor *mask_normal_color; RrColor *mask_selected_color; RrColor *mask_disabled_color; RrColor *mask_disabled_selected_color; gpointer data; }; struct _ObSubmenuMenuEntry { /* Icon stuff. If you set this, make sure you RrImageRef() it too. */ RrImage *icon; gint icon_alpha; gchar *name; ObMenu *submenu; guint show_from; }; struct _ObSeparatorMenuEntry { gchar *label; }; struct _ObMenuEntry { guint ref; ObMenuEntryType type; ObMenu *menu; gint id; union u { ObNormalMenuEntry normal; ObSubmenuMenuEntry submenu; ObSeparatorMenuEntry separator; } data; }; void menu_startup(gboolean reconfig); void menu_shutdown(gboolean reconfig); void menu_entry_ref(ObMenuEntry *self); void menu_entry_unref(ObMenuEntry *self); ObMenu* menu_new(const gchar *name, const gchar *title, gboolean allow_shortcut_selection, gpointer data); void menu_free(ObMenu *menu); /*! Repopulate a pipe-menu by running its command */ void menu_pipe_execute(ObMenu *self); /*! Clear a pipe-menu's entries */ void menu_clear_pipe_caches(void); void menu_show_all_shortcuts(ObMenu *self, gboolean show); void menu_show(gchar *name, const GravityPoint *pos, gint monitor, gboolean mouse, gboolean user_positioned, struct _ObClient *client); gboolean menu_hide_delay_reached(void); void menu_hide_delay_reset(void); /*! The show function is called right after a menu is shown */ void menu_set_show_func(ObMenu *menu, ObMenuShowFunc func); /*! The hide function is called right before a menu is hidden */ void menu_set_hide_func(ObMenu *menu, ObMenuHideFunc func); /*! The update function is called when the menu should refresh its contents, generally right before it is shown */ void menu_set_update_func(ObMenu *menu, ObMenuUpdateFunc func); /*! The execute function is called when a user chooses to execute an entry in the menu */ void menu_set_execute_func(ObMenu *menu, ObMenuExecuteFunc func); /*! The cleanup function is called after a menu is hidden, allowing it to be cleaned up between uses */ void menu_set_cleanup_func(ObMenu *menu, ObMenuCleanupFunc func); /*! The destroy function is called when the menu is being destroyed permanently */ void menu_set_destroy_func(ObMenu *menu, ObMenuDestroyFunc func); /*! The place function is called when the menu is being shown and allows the menu to choose its initial position */ void menu_set_place_func(ObMenu *menu, ObMenuPlaceFunc func); /* functions for building menus */ /*! @param allow_shortcut this should be false when the label is coming from outside data like window or desktop titles */ ObMenuEntry* menu_add_normal(ObMenu *menu, gint id, const gchar *label, GSList *actions, gboolean allow_shortcut); ObMenuEntry* menu_add_submenu(ObMenu *menu, gint id, const gchar *submenu); ObMenuEntry* menu_add_separator(ObMenu *menu, gint id, const gchar *label); /*! This sorts groups of menu entries between consecutive separators */ void menu_sort_entries(ObMenu *self); void menu_clear_entries(ObMenu *self); void menu_entry_remove(ObMenuEntry *self); void menu_entry_set_label(ObMenuEntry *self, const gchar *label, gboolean allow_shortcut); ObMenuEntry* menu_find_entry_id(ObMenu *self, gint id); /* fills in the submenus, for use when a menu is being shown */ void menu_find_submenus(ObMenu *self); ObMenuEntry* menu_get_more(ObMenu *menu, guint show_from); #endif openbox-3.6.1/openbox/misc.h0000644000175300001440000000465112426440016012676 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- misc.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __ob__misc_h #define __ob__misc_h /*! The alpha value to use for icons of iconified windows in various places like the focus cycle popup and client list menus. Give iconic windows 7/16 alpha. A little under 50%. */ #define OB_ICONIC_ALPHA 0x70 typedef enum { OB_CURSOR_NONE, OB_CURSOR_POINTER, OB_CURSOR_BUSYPOINTER, OB_CURSOR_BUSY, OB_CURSOR_MOVE, OB_CURSOR_NORTH, OB_CURSOR_NORTHEAST, OB_CURSOR_EAST, OB_CURSOR_SOUTHEAST, OB_CURSOR_SOUTH, OB_CURSOR_SOUTHWEST, OB_CURSOR_WEST, OB_CURSOR_NORTHWEST, OB_NUM_CURSORS } ObCursor; typedef enum { OB_STATE_STARTING, OB_STATE_RUNNING, OB_STATE_EXITING, OB_STATE_RECONFIGURING } ObState; typedef enum { OB_DIRECTION_NORTH, OB_DIRECTION_NORTHEAST, OB_DIRECTION_EAST, OB_DIRECTION_SOUTHEAST, OB_DIRECTION_SOUTH, OB_DIRECTION_SOUTHWEST, OB_DIRECTION_WEST, OB_DIRECTION_NORTHWEST } ObDirection; typedef enum { OB_ORIENTATION_HORZ, OB_ORIENTATION_VERT } ObOrientation; typedef enum { OB_CORNER_TOPLEFT, OB_CORNER_TOPRIGHT, OB_CORNER_BOTTOMLEFT, OB_CORNER_BOTTOMRIGHT } ObCorner; typedef enum { OB_MOUSE_ACTION_PRESS, OB_MOUSE_ACTION_RELEASE, OB_MOUSE_ACTION_CLICK, OB_MOUSE_ACTION_DOUBLE_CLICK, OB_MOUSE_ACTION_MOTION, OB_NUM_MOUSE_ACTIONS } ObMouseAction; typedef enum { OB_USER_ACTION_NONE, /* being fired from inside another action and such */ OB_USER_ACTION_KEYBOARD_KEY, OB_USER_ACTION_MOUSE_PRESS, OB_USER_ACTION_MOUSE_RELEASE, OB_USER_ACTION_MOUSE_CLICK, OB_USER_ACTION_MOUSE_DOUBLE_CLICK, OB_USER_ACTION_MOUSE_MOTION, OB_USER_ACTION_MENU_SELECTION, OB_NUM_USER_ACTIONS } ObUserAction; #endif openbox-3.6.1/openbox/mouse.c0000644000175300001440000003331012426440016013060 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- mouse.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "openbox.h" #include "config.h" #include "actions.h" #include "event.h" #include "client.h" #include "grab.h" #include "frame.h" #include "translate.h" #include "mouse.h" #include "gettext.h" #include "obt/display.h" #include typedef struct { guint state; guint button; GSList *actions[OB_NUM_MOUSE_ACTIONS]; /* lists of Action pointers */ } ObMouseBinding; /* Array of GSList*s of ObMouseBinding*s. */ static GSList *bound_contexts[OB_FRAME_NUM_CONTEXTS]; /* TRUE when we have a grab on the pointer and need to replay the pointer event to send it to other applications */ static gboolean replay_pointer_needed; ObFrameContext mouse_button_frame_context(ObFrameContext context, guint button, guint state) { GSList *it; ObFrameContext x = context; for (it = bound_contexts[context]; it; it = g_slist_next(it)) { ObMouseBinding *b = it->data; if (b->button == button && b->state == state) return context; } switch (context) { case OB_FRAME_CONTEXT_NONE: case OB_FRAME_CONTEXT_DESKTOP: case OB_FRAME_CONTEXT_CLIENT: case OB_FRAME_CONTEXT_TITLEBAR: case OB_FRAME_CONTEXT_FRAME: case OB_FRAME_CONTEXT_MOVE_RESIZE: case OB_FRAME_CONTEXT_LEFT: case OB_FRAME_CONTEXT_RIGHT: case OB_FRAME_CONTEXT_DOCK: break; case OB_FRAME_CONTEXT_ROOT: x = OB_FRAME_CONTEXT_DESKTOP; break; case OB_FRAME_CONTEXT_BOTTOM: case OB_FRAME_CONTEXT_BLCORNER: case OB_FRAME_CONTEXT_BRCORNER: x = OB_FRAME_CONTEXT_BOTTOM; break; case OB_FRAME_CONTEXT_TLCORNER: case OB_FRAME_CONTEXT_TRCORNER: case OB_FRAME_CONTEXT_TOP: case OB_FRAME_CONTEXT_MAXIMIZE: case OB_FRAME_CONTEXT_ALLDESKTOPS: case OB_FRAME_CONTEXT_SHADE: case OB_FRAME_CONTEXT_ICONIFY: case OB_FRAME_CONTEXT_ICON: case OB_FRAME_CONTEXT_CLOSE: x = OB_FRAME_CONTEXT_TITLEBAR; break; case OB_FRAME_NUM_CONTEXTS: g_assert_not_reached(); } /* allow for multiple levels of fall-through */ if (x != context) return mouse_button_frame_context(x, button, state); else return x; } void mouse_grab_for_client(ObClient *client, gboolean grab) { gint i; GSList *it; for (i = 0; i < OB_FRAME_NUM_CONTEXTS; ++i) for (it = bound_contexts[i]; it; it = g_slist_next(it)) { /* grab/ungrab the button */ ObMouseBinding *b = it->data; Window win; gint mode; guint mask; if (FRAME_CONTEXT(i, client)) { win = client->frame->window; mode = GrabModeAsync; mask = ButtonPressMask | ButtonMotionMask | ButtonReleaseMask; } else if (CLIENT_CONTEXT(i, client)) { win = client->window; mode = GrabModeSync; /* this is handled in event */ mask = ButtonPressMask; /* can't catch more than this with Sync mode the release event is manufactured in event() */ } else continue; if (grab) grab_button_full(b->button, b->state, win, mask, mode, OB_CURSOR_NONE); else ungrab_button(b->button, b->state, win); } } static void grab_all_clients(gboolean grab) { GList *it; for (it = client_list; it; it = g_list_next(it)) mouse_grab_for_client(it->data, grab); } void mouse_unbind_all(void) { gint i; GSList *it; for(i = 0; i < OB_FRAME_NUM_CONTEXTS; ++i) { for (it = bound_contexts[i]; it; it = g_slist_next(it)) { ObMouseBinding *b = it->data; gint j; for (j = 0; j < OB_NUM_MOUSE_ACTIONS; ++j) { GSList *jt; for (jt = b->actions[j]; jt; jt = g_slist_next(jt)) actions_act_unref(jt->data); g_slist_free(b->actions[j]); } g_slice_free(ObMouseBinding, b); } g_slist_free(bound_contexts[i]); bound_contexts[i] = NULL; } } static ObUserAction mouse_action_to_user_action(ObMouseAction a) { switch (a) { case OB_MOUSE_ACTION_PRESS: return OB_USER_ACTION_MOUSE_PRESS; case OB_MOUSE_ACTION_RELEASE: return OB_USER_ACTION_MOUSE_RELEASE; case OB_MOUSE_ACTION_CLICK: return OB_USER_ACTION_MOUSE_CLICK; case OB_MOUSE_ACTION_DOUBLE_CLICK: return OB_USER_ACTION_MOUSE_DOUBLE_CLICK; case OB_MOUSE_ACTION_MOTION: return OB_USER_ACTION_MOUSE_MOTION; default: g_assert_not_reached(); } } static gboolean fire_binding(ObMouseAction a, ObFrameContext context, ObClient *c, guint state, guint button, gint x, gint y) { GSList *it; ObMouseBinding *b; for (it = bound_contexts[context]; it; it = g_slist_next(it)) { b = it->data; if (b->state == state && b->button == button) break; } /* if not bound, then nothing to do! */ if (it == NULL) return FALSE; actions_run_acts(b->actions[a], mouse_action_to_user_action(a), state, x, y, button, context, c); return TRUE; } void mouse_replay_pointer(void) { if (replay_pointer_needed) { /* replay the pointer event before any windows move */ XAllowEvents(obt_display, ReplayPointer, event_time()); replay_pointer_needed = FALSE; } } gboolean mouse_event(ObClient *client, XEvent *e) { static Time ltime; static guint button = 0, state = 0, lbutton = 0; static Window lwindow = None; static gint px, py, pwx = -1, pwy = -1, lx = -10, ly = -10; gboolean used = FALSE; ObFrameContext context; gboolean click = FALSE; gboolean dclick = FALSE; switch (e->type) { case ButtonPress: context = frame_context(client, e->xbutton.window, e->xbutton.x, e->xbutton.y); context = mouse_button_frame_context(context, e->xbutton.button, e->xbutton.state); px = e->xbutton.x_root; py = e->xbutton.y_root; if (!button) pwx = e->xbutton.x; if (!button) pwy = e->xbutton.y; button = e->xbutton.button; state = e->xbutton.state; /* if the binding was in a client context, then we need to call XAllowEvents with ReplayPointer at some point, to send the event through to the client. when this happens though depends. if windows are going to be moved on screen, then the click will end up going somewhere wrong, set that we need it, and if nothing else causes the replay pointer to be run, then we will do it after all the actions are finished. (We do it after all the actions because FocusIn interrupts dragging for kdesktop, so if we send the button event now, and then they get a focus event after, it breaks. Instead, wait to send the button press until after the actions when possible.) */ if (CLIENT_CONTEXT(context, client)) replay_pointer_needed = TRUE; used = fire_binding(OB_MOUSE_ACTION_PRESS, context, client, e->xbutton.state, e->xbutton.button, e->xbutton.x_root, e->xbutton.y_root) || used; /* if the bindings grab the pointer, there won't be a ButtonRelease event for us */ if (grab_on_pointer()) button = 0; /* replay the pointer event if it hasn't been replayed yet (i.e. no windows were moved) */ mouse_replay_pointer(); /* in the client context, we won't get a button release because of the way it is grabbed, so just fake one */ if (!CLIENT_CONTEXT(context, client)) break; case ButtonRelease: /* use where the press occured in the window */ context = frame_context(client, e->xbutton.window, pwx, pwy); context = mouse_button_frame_context(context, e->xbutton.button, e->xbutton.state); if (e->xbutton.button == button) pwx = pwy = -1; if (e->xbutton.button == button) { /* clicks are only valid if its released over the window */ gint junk1, junk2; Window wjunk; guint ujunk, b, w, h; /* this can cause errors to occur when the window closes */ obt_display_ignore_errors(TRUE); junk1 = XGetGeometry(obt_display, e->xbutton.window, &wjunk, &junk1, &junk2, &w, &h, &b, &ujunk); obt_display_ignore_errors(FALSE); if (junk1) { if (e->xbutton.x >= (signed)-b && e->xbutton.y >= (signed)-b && e->xbutton.x < (signed)(w+b) && e->xbutton.y < (signed)(h+b)) { click = TRUE; /* double clicks happen if there were 2 in a row! */ if (lbutton == button && lwindow == e->xbutton.window && e->xbutton.time - config_mouse_dclicktime <= ltime && ABS(e->xbutton.x - lx) < 8 && ABS(e->xbutton.y - ly) < 8) { dclick = TRUE; lbutton = 0; } else { lbutton = button; lwindow = e->xbutton.window; lx = e->xbutton.x; ly = e->xbutton.y; } } else { lbutton = 0; lwindow = None; } } button = 0; state = 0; ltime = e->xbutton.time; } used = fire_binding(OB_MOUSE_ACTION_RELEASE, context, client, e->xbutton.state, e->xbutton.button, e->xbutton.x_root, e->xbutton.y_root) || used; if (click) used = fire_binding(OB_MOUSE_ACTION_CLICK, context, client, e->xbutton.state, e->xbutton.button, e->xbutton.x_root, e->xbutton.y_root) || used; if (dclick) used = fire_binding(OB_MOUSE_ACTION_DOUBLE_CLICK, context, client, e->xbutton.state, e->xbutton.button, e->xbutton.x_root, e->xbutton.y_root) || used; break; case MotionNotify: if (button) { context = frame_context(client, e->xmotion.window, pwx, pwy); context = mouse_button_frame_context(context, button, state); if (ABS(e->xmotion.x_root - px) >= config_mouse_threshold || ABS(e->xmotion.y_root - py) >= config_mouse_threshold) { /* You can't drag on buttons */ if (context == OB_FRAME_CONTEXT_MAXIMIZE || context == OB_FRAME_CONTEXT_ALLDESKTOPS || context == OB_FRAME_CONTEXT_SHADE || context == OB_FRAME_CONTEXT_ICONIFY || context == OB_FRAME_CONTEXT_ICON || context == OB_FRAME_CONTEXT_CLOSE) break; used = fire_binding(OB_MOUSE_ACTION_MOTION, context, client, state, button, px, py); button = 0; state = 0; } } break; default: g_assert_not_reached(); } return used; } gboolean mouse_bind(const gchar *buttonstr, ObFrameContext context, ObMouseAction mact, ObActionsAct *action) { guint state = 0, button = 0; ObMouseBinding *b; GSList *it; g_assert(context != OB_FRAME_CONTEXT_NONE); if (!translate_button(buttonstr, &state, &button)) { g_message(_("Invalid button \"%s\" in mouse binding"), buttonstr); return FALSE; } for (it = bound_contexts[context]; it; it = g_slist_next(it)) { b = it->data; if (b->state == state && b->button == button) { b->actions[mact] = g_slist_append(b->actions[mact], action); return TRUE; } } /* add the binding */ b = g_slice_new0(ObMouseBinding); b->state = state; b->button = button; b->actions[mact] = g_slist_append(NULL, action); bound_contexts[context] = g_slist_append(bound_contexts[context], b); return TRUE; } void mouse_startup(gboolean reconfig) { grab_all_clients(TRUE); } void mouse_shutdown(gboolean reconfig) { grab_all_clients(FALSE); mouse_unbind_all(); } openbox-3.6.1/openbox/mouse.h0000644000175300001440000000307312426440016013070 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- mouse.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__mouse_h #define ob__mouse_h #include "frame.h" #include "misc.h" #include struct _ObActionsAct; void mouse_startup(gboolean reconfig); void mouse_shutdown(gboolean reconfig); gboolean mouse_bind(const gchar *buttonstr, ObFrameContext context, ObMouseAction mact, struct _ObActionsAct *action); void mouse_unbind_all(void); gboolean mouse_event(struct _ObClient *client, XEvent *e); void mouse_grab_for_client(struct _ObClient *client, gboolean grab); ObFrameContext mouse_button_frame_context(ObFrameContext context, guint button, guint state); /*! If a replay pointer is needed, then do it. Call this when windows are going to be moving/appearing/disappearing, so that you know the mouse click will go to the right window */ void mouse_replay_pointer(void); #endif openbox-3.6.1/openbox/moveresize.c0000644000175300001440000011026012426440016014120 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- moveresize.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "grab.h" #include "framerender.h" #include "screen.h" #include "client.h" #include "focus.h" #include "frame.h" #include "openbox.h" #include "resist.h" #include "popup.h" #include "moveresize.h" #include "config.h" #include "event.h" #include "debug.h" #include "obrender/render.h" #include "obrender/theme.h" #include "obt/display.h" #include "obt/xqueue.h" #include "obt/prop.h" #include "obt/keyboard.h" #include #include /* how far windows move and resize with the keyboard arrows */ #define KEY_DIST 8 #define SYNC_TIMEOUTS 4 gboolean moveresize_in_progress = FALSE; ObClient *moveresize_client = NULL; #ifdef SYNC XSyncAlarm moveresize_alarm = None; #endif static gboolean moving = FALSE; /* TRUE - moving, FALSE - resizing */ /* starting geometry for the window being moved/resized, so it can be restored */ static gint start_x, start_y, start_cx, start_cy, start_cw, start_ch; static gboolean was_max_horz, was_max_vert; static Rect pre_max_area; static gint cur_x, cur_y, cur_w, cur_h; static guint button; static guint32 corner; static ObDirection edge_warp_dir = -1; static gboolean edge_warp_odd = FALSE; static guint edge_warp_timer = 0; static ObDirection key_resize_edge = -1; static guint waiting_for_sync; #ifdef SYNC static guint sync_timer = 0; #endif static ObPopup *popup = NULL; static void do_move(gboolean keyboard, gint keydist); static void do_resize(void); static void do_edge_warp(gint x, gint y); static void cancel_edge_warp(); #ifdef SYNC static gboolean sync_timeout_func(gpointer data); #endif static void client_dest(ObClient *client, gpointer data) { if (moveresize_client == client) moveresize_end(TRUE); if (popup && client == popup->client) popup->client = NULL; } void moveresize_startup(gboolean reconfig) { popup = popup_new(); popup_set_text_align(popup, RR_JUSTIFY_CENTER); if (!reconfig) client_add_destroy_notify(client_dest, NULL); } void moveresize_shutdown(gboolean reconfig) { if (!reconfig) { if (moveresize_in_progress) moveresize_end(FALSE); client_remove_destroy_notify(client_dest); } popup_free(popup); popup = NULL; } static void popup_coords(ObClient *c, const gchar *format, gint a, gint b) { gchar *text; text = g_strdup_printf(format, a, b); if (config_resize_popup_pos == OB_RESIZE_POS_TOP) popup_position(popup, SouthGravity, c->frame->area.x + c->frame->area.width/2, c->frame->area.y - ob_rr_theme->fbwidth); else if (config_resize_popup_pos == OB_RESIZE_POS_CENTER) popup_position(popup, CenterGravity, c->frame->area.x + c->frame->area.width / 2, c->frame->area.y + c->frame->area.height / 2); else /* Fixed */ { const Rect *area = screen_physical_area_active(); gint gravity, x, y; x = config_resize_popup_fixed.x.pos; if (config_resize_popup_fixed.x.center) x = area->x + area->width/2; else if (config_resize_popup_fixed.x.opposite) x = RECT_RIGHT(*area) - x; else x = area->x + x; y = config_resize_popup_fixed.y.pos; if (config_resize_popup_fixed.y.center) y = area->y + area->height/2; else if (config_resize_popup_fixed.y.opposite) y = RECT_RIGHT(*area) - y; else y = area->y + y; if (config_resize_popup_fixed.x.center) { if (config_resize_popup_fixed.y.center) gravity = CenterGravity; else if (config_resize_popup_fixed.y.opposite) gravity = SouthGravity; else gravity = NorthGravity; } else if (config_resize_popup_fixed.x.opposite) { if (config_resize_popup_fixed.y.center) gravity = EastGravity; else if (config_resize_popup_fixed.y.opposite) gravity = SouthEastGravity; else gravity = NorthEastGravity; } else { if (config_resize_popup_fixed.y.center) gravity = WestGravity; else if (config_resize_popup_fixed.y.opposite) gravity = SouthWestGravity; else gravity = NorthWestGravity; } popup_position(popup, gravity, x, y); } popup->client = c; popup_show(popup, text); g_free(text); } void moveresize_start(ObClient *c, gint x, gint y, guint b, guint32 cnr) { ObCursor cur; gboolean mv = (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE) || cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE_KEYBOARD)); gint up = 1; gint left = 1; if (moveresize_in_progress || !c->frame->visible || !(mv ? (c->functions & OB_CLIENT_FUNC_MOVE) : (c->functions & OB_CLIENT_FUNC_RESIZE))) return; if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPLEFT)) { cur = OB_CURSOR_NORTHWEST; up = left = -1; } else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOP)) { cur = OB_CURSOR_NORTH; up = -1; } else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPRIGHT)) { cur = OB_CURSOR_NORTHEAST; up = -1; } else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_RIGHT)) cur = OB_CURSOR_EAST; else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT)) cur = OB_CURSOR_SOUTHEAST; else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOM)) cur = OB_CURSOR_SOUTH; else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT)) { cur = OB_CURSOR_SOUTHWEST; left = -1; } else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_LEFT)) { cur = OB_CURSOR_WEST; left = -1; } else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_KEYBOARD)) cur = OB_CURSOR_SOUTHEAST; else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE)) cur = OB_CURSOR_MOVE; else if (cnr == OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE_KEYBOARD)) cur = OB_CURSOR_MOVE; else g_assert_not_reached(); /* keep the pointer bounded to the screen for move/resize */ if (!grab_pointer(FALSE, TRUE, cur)) return; if (!grab_keyboard()) { ungrab_pointer(); return; } frame_end_iconify_animation(c->frame); moving = mv; moveresize_client = c; start_cx = c->area.x; start_cy = c->area.y; start_cw = c->area.width; start_ch = c->area.height; /* these adjustments for the size_inc make resizing a terminal more friendly. you essentially start the resize in the middle of the increment instead of at 0, so you have to move half an increment either way instead of a full increment one and 1 px the other. */ start_x = x - (mv ? 0 : left * c->size_inc.width / 2); start_y = y - (mv ? 0 : up * c->size_inc.height / 2); corner = cnr; button = b; key_resize_edge = -1; /* default to not putting max back on cancel */ was_max_horz = was_max_vert = FALSE; /* have to change start_cx and start_cy if going to do this.. if (corner == prop_atoms.net_wm_moveresize_move_keyboard || corner == prop_atoms.net_wm_moveresize_size_keyboard) XWarpPointer(ob_display, None, c->window, 0, 0, 0, 0, c->area.width / 2, c->area.height / 2); */ cur_x = start_cx; cur_y = start_cy; cur_w = start_cw; cur_h = start_ch; moveresize_in_progress = TRUE; waiting_for_sync = 0; #ifdef SYNC if (config_resize_redraw && !moving && obt_display_extension_sync && moveresize_client->sync_request && moveresize_client->sync_counter && !moveresize_client->not_responding) { /* Initialize values for the resize syncing, and create an alarm for the client's xsync counter */ XSyncValue val; XSyncAlarmAttributes aa; /* set the counter to an initial value */ XSyncIntToValue(&val, 0); XSyncSetCounter(obt_display, moveresize_client->sync_counter, val); /* this will be incremented when we tell the client what we're looking for */ moveresize_client->sync_counter_value = 0; /* the next sequence we're waiting for with the alarm */ XSyncIntToValue(&val, 1); /* set an alarm on the counter */ aa.trigger.counter = moveresize_client->sync_counter; aa.trigger.wait_value = val; aa.trigger.value_type = XSyncAbsolute; aa.trigger.test_type = XSyncPositiveTransition; aa.events = True; XSyncIntToValue(&aa.delta, 1); moveresize_alarm = XSyncCreateAlarm(obt_display, XSyncCACounter | XSyncCAValue | XSyncCAValueType | XSyncCATestType | XSyncCADelta | XSyncCAEvents, &aa); } #endif } void moveresize_end(gboolean cancel) { ungrab_keyboard(); ungrab_pointer(); popup_hide(popup); popup->client = NULL; if (!moving) { #ifdef SYNC /* turn off the alarm */ if (moveresize_alarm != None) { XSyncDestroyAlarm(obt_display, moveresize_alarm); moveresize_alarm = None; } if (sync_timer) g_source_remove(sync_timer); sync_timer = 0; #endif } /* don't use client_move() here, use the same width/height as we've been using during the move, otherwise we get different results when moving maximized windows between monitors of different sizes ! */ client_configure(moveresize_client, (cancel ? start_cx : cur_x), (cancel ? start_cy : cur_y), (cancel ? start_cw : cur_w), (cancel ? start_ch : cur_h), TRUE, TRUE, FALSE); /* restore the client's maximized state. do this after putting the window back in its original spot to minimize visible flicker */ if (cancel && (was_max_horz || was_max_vert)) { const gboolean h = moveresize_client->max_horz; const gboolean v = moveresize_client->max_vert; client_maximize(moveresize_client, TRUE, was_max_horz && was_max_vert ? 0 : (was_max_horz ? 1 : 2)); /* replace the premax values with the ones we had saved if the client doesn't have any already set */ if (was_max_horz && !h) { moveresize_client->pre_max_area.x = pre_max_area.x; moveresize_client->pre_max_area.width = pre_max_area.width; } if (was_max_vert && !v) { moveresize_client->pre_max_area.y = pre_max_area.y; moveresize_client->pre_max_area.height = pre_max_area.height; } } /* dont edge warp after its ended */ cancel_edge_warp(); moveresize_in_progress = FALSE; moveresize_client = NULL; } static void do_move(gboolean keyboard, gint keydist) { gint resist; if (keyboard) resist = keydist - 1; /* resist for one key press */ else resist = config_resist_win; resist_move_windows(moveresize_client, resist, &cur_x, &cur_y); if (!keyboard) resist = config_resist_edge; resist_move_monitors(moveresize_client, resist, &cur_x, &cur_y); client_configure(moveresize_client, cur_x, cur_y, cur_w, cur_h, TRUE, FALSE, FALSE); if (config_resize_popup_show == 2) /* == "Always" */ popup_coords(moveresize_client, "%d x %d", moveresize_client->frame->area.x, moveresize_client->frame->area.y); } static void do_resize(void) { gint x, y, w, h, lw, lh; /* see if it is actually going to resize USE cur_x AND cur_y HERE ! Otherwise the try_configure won't know what struts to use !! */ x = cur_x; y = cur_y; w = cur_w; h = cur_h; client_try_configure(moveresize_client, &x, &y, &w, &h, &lw, &lh, TRUE); if (!(w == moveresize_client->area.width && h == moveresize_client->area.height) && /* if waiting_for_sync == 0, then we aren't waiting. if it is > SYNC_TIMEOUTS, then we have timed out that many times already, so forget about waiting more */ (waiting_for_sync == 0 || waiting_for_sync > SYNC_TIMEOUTS)) { #ifdef SYNC if (config_resize_redraw && obt_display_extension_sync && /* don't send another sync when one is pending */ waiting_for_sync == 0 && moveresize_client->sync_request && moveresize_client->sync_counter && !moveresize_client->not_responding) { XEvent ce; XSyncValue val; /* increment the value we're waiting for */ ++moveresize_client->sync_counter_value; XSyncIntToValue(&val, moveresize_client->sync_counter_value); /* tell the client what we're waiting for */ ce.xclient.type = ClientMessage; ce.xclient.message_type = OBT_PROP_ATOM(WM_PROTOCOLS); ce.xclient.display = obt_display; ce.xclient.window = moveresize_client->window; ce.xclient.format = 32; ce.xclient.data.l[0] = OBT_PROP_ATOM(NET_WM_SYNC_REQUEST); ce.xclient.data.l[1] = event_time(); ce.xclient.data.l[2] = XSyncValueLow32(val); ce.xclient.data.l[3] = XSyncValueHigh32(val); ce.xclient.data.l[4] = 0l; XSendEvent(obt_display, moveresize_client->window, FALSE, NoEventMask, &ce); waiting_for_sync = 1; if (sync_timer) g_source_remove(sync_timer); sync_timer = g_timeout_add(2000, sync_timeout_func, NULL); } #endif /* force a ConfigureNotify, it is part of the spec for SYNC resizing and MUST follow the sync counter notification */ client_configure(moveresize_client, cur_x, cur_y, cur_w, cur_h, TRUE, FALSE, TRUE); } /* this would be better with a fixed width font ... XXX can do it better if there are 2 text boxes */ if (config_resize_popup_show == 2 || /* == "Always" */ (config_resize_popup_show == 1 && /* == "Nonpixel" */ moveresize_client->size_inc.width > 1 && moveresize_client->size_inc.height > 1)) popup_coords(moveresize_client, "%d x %d", lw, lh); } #ifdef SYNC static gboolean sync_timeout_func(gpointer data) { ++waiting_for_sync; /* we timed out waiting for our sync... */ do_resize(); /* ...so let any pending resizes through */ if (waiting_for_sync > SYNC_TIMEOUTS) { sync_timer = 0; return FALSE; /* don't repeat */ } else return TRUE; /* keep waiting */ } #endif static void calc_resize(gboolean keyboard, gint keydist, gint *dw, gint *dh, ObDirection dir) { gint resist, x = 0, y = 0, lw, lh, ow, oh, nw, nh; gint trydw, trydh; ow = cur_w; oh = cur_h; nw = ow + *dw; nh = oh + *dh; if (!keyboard && (moveresize_client->max_ratio || moveresize_client->min_ratio)) { switch (dir) { case OB_DIRECTION_NORTH: case OB_DIRECTION_SOUTH: /* resize the width based on the height */ if (moveresize_client->min_ratio) { if (nh * moveresize_client->min_ratio > nw) nw = (gint)(nh * moveresize_client->min_ratio); } if (moveresize_client->max_ratio) { if (nh * moveresize_client->max_ratio < nw) nw = (gint)(nh * moveresize_client->max_ratio); } break; default: /* resize the height based on the width */ if (moveresize_client->min_ratio) { if (nh * moveresize_client->min_ratio > nw) nh = (gint)(nw / moveresize_client->min_ratio); } if (moveresize_client->max_ratio) { if (nh * moveresize_client->max_ratio < nw) nh = (gint)(nw / moveresize_client->max_ratio); } break; } /* see its actual size (apply aspect ratios) */ client_try_configure(moveresize_client, &x, &y, &nw, &nh, &lw, &lh, TRUE); trydw = nw - ow; trydh = nh - oh; } /* resist_size_* needs the frame size */ nw += moveresize_client->frame->size.left + moveresize_client->frame->size.right; nh += moveresize_client->frame->size.top + moveresize_client->frame->size.bottom; if (keyboard) resist = keydist - 1; /* resist for one key press */ else resist = config_resist_win; resist_size_windows(moveresize_client, resist, &nw, &nh, dir); if (!keyboard) resist = config_resist_edge; resist_size_monitors(moveresize_client, resist, &nw, &nh, dir); nw -= moveresize_client->frame->size.left + moveresize_client->frame->size.right; nh -= moveresize_client->frame->size.top + moveresize_client->frame->size.bottom; *dw = nw - ow; *dh = nh - oh; /* take aspect ratios into account for resistance */ if (!keyboard && (moveresize_client->max_ratio || moveresize_client->min_ratio)) { if (*dh != trydh) { /* got resisted */ /* resize the width based on the height */ if (moveresize_client->min_ratio) { if (nh * moveresize_client->min_ratio > nw) nw = (gint)(nh * moveresize_client->min_ratio); } if (moveresize_client->max_ratio) { if (nh * moveresize_client->max_ratio < nw) nw = (gint)(nh * moveresize_client->max_ratio); } } if (*dw != trydw) { /* got resisted */ /* resize the height based on the width */ if (moveresize_client->min_ratio) { if (nh * moveresize_client->min_ratio > nw) nh = (gint)(nw / moveresize_client->min_ratio); } if (moveresize_client->max_ratio) { if (nh * moveresize_client->max_ratio < nw) nh = (gint)(nw / moveresize_client->max_ratio); } } } /* make sure it's all valid */ client_try_configure(moveresize_client, &x, &y, &nw, &nh, &lw, &lh, TRUE); *dw = nw - ow; *dh = nh - oh; } static void edge_warp_move_ptr(void) { gint x, y; const Rect* a; screen_pointer_pos(&x, &y); a = screen_physical_area_all_monitors(); switch (edge_warp_dir) { case OB_DIRECTION_NORTH: y = a->height - 1; break; case OB_DIRECTION_EAST: x = a->x; break; case OB_DIRECTION_SOUTH: y = a->y; break; case OB_DIRECTION_WEST: x = a->width - 1; break; default: g_assert_not_reached(); } XWarpPointer(obt_display, 0, obt_root(ob_screen), 0, 0, 0, 0, x, y); } static gboolean edge_warp_delay_func(gpointer data) { guint d; /* only fire every second time. so it's fast the first time, but slower after that */ if (edge_warp_odd) { d = screen_find_desktop(screen_desktop, edge_warp_dir, TRUE, FALSE); if (d != screen_desktop) { if (config_mouse_screenedgewarp) edge_warp_move_ptr(); screen_set_desktop(d, TRUE); } } edge_warp_odd = !edge_warp_odd; return TRUE; /* do repeat ! */ } static void do_edge_warp(gint x, gint y) { guint i; ObDirection dir; if (!config_mouse_screenedgetime) return; dir = -1; for (i = 0; i < screen_num_monitors; ++i) { const Rect *a = screen_physical_area_monitor(i); if (!RECT_CONTAINS(*a, x, y)) continue; if (x == RECT_LEFT(*a)) dir = OB_DIRECTION_WEST; if (x == RECT_RIGHT(*a)) dir = OB_DIRECTION_EAST; if (y == RECT_TOP(*a)) dir = OB_DIRECTION_NORTH; if (y == RECT_BOTTOM(*a)) dir = OB_DIRECTION_SOUTH; /* try check for xinerama boundaries */ if ((x + 1 == RECT_LEFT(*a) || x - 1 == RECT_RIGHT(*a)) && (dir == OB_DIRECTION_WEST || dir == OB_DIRECTION_EAST)) { dir = -1; } if ((y + 1 == RECT_TOP(*a) || y - 1 == RECT_BOTTOM(*a)) && (dir == OB_DIRECTION_NORTH || dir == OB_DIRECTION_SOUTH)) { dir = -1; } } if (dir != edge_warp_dir) { cancel_edge_warp(); if (dir != (ObDirection)-1) { edge_warp_odd = TRUE; /* switch on the first timeout */ edge_warp_timer = g_timeout_add(config_mouse_screenedgetime, edge_warp_delay_func, NULL); } edge_warp_dir = dir; } } static void cancel_edge_warp(void) { if (edge_warp_timer) g_source_remove(edge_warp_timer); edge_warp_timer = 0; } static void move_with_keys(KeySym sym, guint state) { gint dx = 0, dy = 0, ox = cur_x, oy = cur_y; gint opx, px, opy, py; gint dist = 0; /* shift means jump to edge */ if (state & obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_SHIFT)) { gint x, y; ObDirection dir; if (sym == XK_Right) dir = OB_DIRECTION_EAST; else if (sym == XK_Left) dir = OB_DIRECTION_WEST; else if (sym == XK_Down) dir = OB_DIRECTION_SOUTH; else /* sym == XK_Up */ dir = OB_DIRECTION_NORTH; client_find_move_directional(moveresize_client, dir, &x, &y); dx = x - moveresize_client->area.x; dy = y - moveresize_client->area.y; } else { /* control means fine grained */ if (state & obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_CONTROL)) { dist = 1; } else dist = KEY_DIST; if (sym == XK_Right) dx = dist; else if (sym == XK_Left) dx = -dist; else if (sym == XK_Down) dy = dist; else /* if (sym == XK_Up) */ dy = -dist; } screen_pointer_pos(&opx, &opy); XWarpPointer(obt_display, None, None, 0, 0, 0, 0, dx, dy); /* steal the motion events this causes */ XSync(obt_display, FALSE); { XEvent ce; while (xqueue_remove_local(&ce, xqueue_match_type, GINT_TO_POINTER(MotionNotify))); } screen_pointer_pos(&px, &py); cur_x += dx; cur_y += dy; do_move(TRUE, dist); /* because the cursor moves even though the window does not nessesarily (resistance), this adjusts where the curor thinks it started so that it keeps up with where the window actually is */ start_x += (px - opx) - (cur_x - ox); start_y += (py - opy) - (cur_y - oy); } static void resize_with_keys(KeySym sym, guint state) { gint dw = 0, dh = 0, pdx = 0, pdy = 0, opx, opy, px, py; gint resist = 0; ObDirection dir; /* pick the edge if it needs to move */ if (sym == XK_Right) { dir = OB_DIRECTION_EAST; if (key_resize_edge != OB_DIRECTION_WEST && key_resize_edge != OB_DIRECTION_EAST) { key_resize_edge = OB_DIRECTION_EAST; return; } } else if (sym == XK_Left) { dir = OB_DIRECTION_WEST; if (key_resize_edge != OB_DIRECTION_WEST && key_resize_edge != OB_DIRECTION_EAST) { key_resize_edge = OB_DIRECTION_WEST; return; } } else if (sym == XK_Up) { dir = OB_DIRECTION_NORTH; if (key_resize_edge != OB_DIRECTION_NORTH && key_resize_edge != OB_DIRECTION_SOUTH) { key_resize_edge = OB_DIRECTION_NORTH; return; } } else /* if (sym == XK_Down) */ { dir = OB_DIRECTION_SOUTH; if (key_resize_edge != OB_DIRECTION_NORTH && key_resize_edge != OB_DIRECTION_SOUTH) { key_resize_edge = OB_DIRECTION_SOUTH; return; } } /* shift means jump to edge */ if (state & obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_SHIFT)) { gint x, y, w, h; if (sym == XK_Right) dir = OB_DIRECTION_EAST; else if (sym == XK_Left) dir = OB_DIRECTION_WEST; else if (sym == XK_Down) dir = OB_DIRECTION_SOUTH; else /* if (sym == XK_Up)) */ dir = OB_DIRECTION_NORTH; ObClientDirectionalResizeType resize_type = key_resize_edge == dir ? CLIENT_RESIZE_GROW : CLIENT_RESIZE_SHRINK; client_find_resize_directional(moveresize_client, key_resize_edge, resize_type, &x, &y, &w, &h); dw = w - moveresize_client->area.width; dh = h - moveresize_client->area.height; } else { gint distw, disth; /* control means fine grained */ if (moveresize_client->size_inc.width > 1) { distw = moveresize_client->size_inc.width; resist = 1; } else if (state & obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_CONTROL)) { distw = 1; resist = 1; } else { distw = KEY_DIST; resist = KEY_DIST; } if (moveresize_client->size_inc.height > 1) { disth = moveresize_client->size_inc.height; resist = 1; } else if (state & obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_CONTROL)) { disth = 1; resist = 1; } else { disth = KEY_DIST; resist = KEY_DIST; } if (key_resize_edge == OB_DIRECTION_WEST) { if (dir == OB_DIRECTION_WEST) dw = distw; else dw = -distw; } else if (key_resize_edge == OB_DIRECTION_EAST) { if (dir == OB_DIRECTION_EAST) dw = distw; else dw = -distw; } else if (key_resize_edge == OB_DIRECTION_NORTH) { if (dir == OB_DIRECTION_NORTH) dh = disth; else dh = -disth; } else /*if (key_resize_edge == OB_DIRECTION_SOUTH)*/ { if (dir == OB_DIRECTION_SOUTH) dh = disth; else dh = -disth; } } if (moveresize_client->max_horz && (key_resize_edge == OB_DIRECTION_WEST || key_resize_edge == OB_DIRECTION_EAST)) { /* unmax horz */ was_max_horz = TRUE; pre_max_area.x = moveresize_client->pre_max_area.x; pre_max_area.width = moveresize_client->pre_max_area.width; moveresize_client->pre_max_area.x = cur_x; moveresize_client->pre_max_area.width = cur_w; client_maximize(moveresize_client, FALSE, 1); } else if (moveresize_client->max_vert && (key_resize_edge == OB_DIRECTION_NORTH || key_resize_edge == OB_DIRECTION_SOUTH)) { /* unmax vert */ was_max_vert = TRUE; pre_max_area.y = moveresize_client->pre_max_area.y; pre_max_area.height = moveresize_client->pre_max_area.height; moveresize_client->pre_max_area.y = cur_y; moveresize_client->pre_max_area.height = cur_h; client_maximize(moveresize_client, FALSE, 2); } calc_resize(TRUE, resist, &dw, &dh, dir); if (key_resize_edge == OB_DIRECTION_WEST) cur_x -= dw; else if (key_resize_edge == OB_DIRECTION_NORTH) cur_y -= dh; cur_w += dw; cur_h += dh; /* how to move the pointer to keep up with the change */ if (key_resize_edge == OB_DIRECTION_WEST) pdx = -dw; else if (key_resize_edge == OB_DIRECTION_EAST) pdx = dw; else if (key_resize_edge == OB_DIRECTION_NORTH) pdy = -dh; else if (key_resize_edge == OB_DIRECTION_SOUTH) pdy = dh; screen_pointer_pos(&opx, &opy); XWarpPointer(obt_display, None, None, 0, 0, 0, 0, pdx, pdy); /* steal the motion events this causes */ XSync(obt_display, FALSE); { XEvent ce; while (xqueue_remove_local(&ce, xqueue_match_type, GINT_TO_POINTER(MotionNotify))); } screen_pointer_pos(&px, &py); do_resize(); /* because the cursor moves even though the window does not nessesarily (resistance), this adjusts where the cursor thinks it started so that it keeps up with where the window actually is */ start_x += (px - opx) - dw; start_y += (py - opy) - dh; } gboolean moveresize_event(XEvent *e) { gboolean used = FALSE; if (!moveresize_in_progress) return FALSE; if (e->type == ButtonPress) { if (!button) { start_x = e->xbutton.x_root; start_y = e->xbutton.y_root; button = e->xbutton.button; /* this will end it now */ } used = e->xbutton.button == button; } else if (e->type == ButtonRelease) { if (!button || e->xbutton.button == button) { moveresize_end(FALSE); used = TRUE; } } else if (e->type == MotionNotify) { if (moving) { cur_x = start_cx + e->xmotion.x_root - start_x; cur_y = start_cy + e->xmotion.y_root - start_y; do_move(FALSE, 0); do_edge_warp(e->xmotion.x_root, e->xmotion.y_root); } else { gint dw, dh; ObDirection dir; if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPLEFT)) { dw = -(e->xmotion.x_root - start_x); dh = -(e->xmotion.y_root - start_y); dir = OB_DIRECTION_NORTHWEST; } else if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOP)) { dw = 0; dh = -(e->xmotion.y_root - start_y); dir = OB_DIRECTION_NORTH; } else if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPRIGHT)) { dw = (e->xmotion.x_root - start_x); dh = -(e->xmotion.y_root - start_y); dir = OB_DIRECTION_NORTHEAST; } else if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_RIGHT)) { dw = (e->xmotion.x_root - start_x); dh = 0; dir = OB_DIRECTION_EAST; } else if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT)) { dw = (e->xmotion.x_root - start_x); dh = (e->xmotion.y_root - start_y); dir = OB_DIRECTION_SOUTHEAST; } else if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOM)) { dw = 0; dh = (e->xmotion.y_root - start_y); dir = OB_DIRECTION_SOUTH; } else if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT)) { dw = -(e->xmotion.x_root - start_x); dh = (e->xmotion.y_root - start_y); dir = OB_DIRECTION_SOUTHWEST; } else if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_LEFT)) { dw = -(e->xmotion.x_root - start_x); dh = 0; dir = OB_DIRECTION_WEST; } else if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_KEYBOARD)) { dw = (e->xmotion.x_root - start_x); dh = (e->xmotion.y_root - start_y); dir = OB_DIRECTION_SOUTHEAST; } else g_assert_not_reached(); /* override the client's max state if desired */ if (ABS(dw) >= config_resist_edge) { if (moveresize_client->max_horz) { /* unmax horz */ was_max_horz = TRUE; pre_max_area.x = moveresize_client->pre_max_area.x; pre_max_area.width = moveresize_client->pre_max_area.width; moveresize_client->pre_max_area.x = cur_x; moveresize_client->pre_max_area.width = cur_w; client_maximize(moveresize_client, FALSE, 1); } } else if (was_max_horz && !moveresize_client->max_horz) { /* remax horz and put the premax back */ client_maximize(moveresize_client, TRUE, 1); moveresize_client->pre_max_area.x = pre_max_area.x; moveresize_client->pre_max_area.width = pre_max_area.width; } if (ABS(dh) >= config_resist_edge) { if (moveresize_client->max_vert) { /* unmax vert */ was_max_vert = TRUE; pre_max_area.y = moveresize_client->pre_max_area.y; pre_max_area.height = moveresize_client->pre_max_area.height; moveresize_client->pre_max_area.y = cur_y; moveresize_client->pre_max_area.height = cur_h; client_maximize(moveresize_client, FALSE, 2); } } else if (was_max_vert && !moveresize_client->max_vert) { /* remax vert and put the premax back */ client_maximize(moveresize_client, TRUE, 2); moveresize_client->pre_max_area.y = pre_max_area.y; moveresize_client->pre_max_area.height = pre_max_area.height; } dw -= cur_w - start_cw; dh -= cur_h - start_ch; calc_resize(FALSE, 0, &dw, &dh, dir); cur_w += dw; cur_h += dh; if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPLEFT) || corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_LEFT) || corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT)) { cur_x -= dw; } if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPLEFT) || corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOP) || corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_TOPRIGHT)) { cur_y -= dh; } do_resize(); } used = TRUE; } else if (e->type == KeyPress) { KeySym sym = obt_keyboard_keypress_to_keysym(e); if (sym == XK_Escape) { moveresize_end(TRUE); used = TRUE; } else if (sym == XK_Return || sym == XK_KP_Enter) { moveresize_end(FALSE); used = TRUE; } else if (sym == XK_Right || sym == XK_Left || sym == XK_Up || sym == XK_Down) { if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_KEYBOARD)) { resize_with_keys(sym, e->xkey.state); used = TRUE; } else if (corner == OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE_KEYBOARD)) { move_with_keys(sym, e->xkey.state); used = TRUE; } } } #ifdef SYNC else if (e->type == obt_display_extension_sync_basep + XSyncAlarmNotify) { waiting_for_sync = 0; /* we got our sync... */ do_resize(); /* ...so try resize if there is more change pending */ used = TRUE; } #endif if (used && moveresize_client == focus_client) event_update_user_time(); return used; } openbox-3.6.1/openbox/moveresize.h0000644000175300001440000000271212426440016014127 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- moveresize.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __moveresize_h #define __moveresize_h #include #ifdef SYNC #include #endif struct _ObClient; typedef enum { OB_RESIZE_POS_CENTER, OB_RESIZE_POS_TOP, OB_RESIZE_POS_FIXED } ObResizePopupPos; extern gboolean moveresize_in_progress; extern struct _ObClient *moveresize_client; #ifdef SYNC extern XSyncAlarm moveresize_alarm; #endif void moveresize_startup(gboolean reconfig); void moveresize_shutdown(gboolean reconfig); /*! @param corner This is one of the prop_atoms.net_wm_moveresize_ atoms */ void moveresize_start(struct _ObClient *c, gint x, gint y, guint button, guint32 corner); void moveresize_end(gboolean cancel); gboolean moveresize_event(XEvent *e); #endif openbox-3.6.1/openbox/mwm.h0000644000175300001440000000505012426440016012535 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- mwm.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __ob__mwm_h #define __ob__mwm_h #include typedef struct _ObMwmHints ObMwmHints; /*! The MWM Hints as retrieved from the window property This structure only contains 3 elements, even though the Motif 2.0 structure contains 5. We only use the first 3, so that is all gets defined. */ struct _ObMwmHints { /*! A bitmask of ObMwmFlags values */ guint flags; /*! A bitmask of ObMwmFunctions values */ guint functions; /*! A bitmask of ObMwmDecorations values */ guint decorations; }; /*! The number of elements in the ObMwmHints struct */ #define OB_MWM_ELEMENTS 3 /*! Possible flags for MWM Hints (defined by Motif 2.0) */ typedef enum { OB_MWM_FLAG_FUNCTIONS = 1 << 0, /*!< The MMW Hints define funcs */ OB_MWM_FLAG_DECORATIONS = 1 << 1 /*!< The MWM Hints define decor */ } ObMwmFlags; /*! Possible functions for MWM Hints (defined by Motif 2.0) */ typedef enum { OB_MWM_FUNC_ALL = 1 << 0, /*!< All functions */ OB_MWM_FUNC_RESIZE = 1 << 1, /*!< Allow resizing */ OB_MWM_FUNC_MOVE = 1 << 2, /*!< Allow moving */ OB_MWM_FUNC_ICONIFY = 1 << 3, /*!< Allow to be iconfied */ OB_MWM_FUNC_MAXIMIZE = 1 << 4 /*!< Allow to be maximized */ #if 0 OM_MWM_FUNC_CLOSE = 1 << 5 /*!< Allow to be closed */ #endif } ObMwmFunctions; /*! Possible decorations for MWM Hints (defined by Motif 2.0) */ typedef enum { OB_MWM_DECOR_ALL = 1 << 0, /*!< All decorations */ OB_MWM_DECOR_BORDER = 1 << 1, /*!< Show a border */ OB_MWM_DECOR_HANDLE = 1 << 2, /*!< Show a handle (bottom) */ OB_MWM_DECOR_TITLE = 1 << 3, /*!< Show a titlebar */ #if 0 OB_MWM_DECOR_MENU = 1 << 4, /*!< Show a menu */ #endif OB_MWM_DECOR_ICONIFY = 1 << 5, /*!< Show an iconify button */ OB_MWM_DECOR_MAXIMIZE = 1 << 6 /*!< Show a maximize button */ } ObMwmDecorations; #endif openbox-3.6.1/openbox/openbox.c0000644000175300001440000006357412426440016013421 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- openbox.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "debug.h" #include "openbox.h" #include "session.h" #include "dock.h" #include "event.h" #include "menu.h" #include "client.h" #include "screen.h" #include "actions.h" #include "startupnotify.h" #include "focus.h" #include "focus_cycle.h" #include "focus_cycle_indicator.h" #include "focus_cycle_popup.h" #include "moveresize.h" #include "frame.h" #include "framerender.h" #include "keyboard.h" #include "mouse.h" #include "menuframe.h" #include "grab.h" #include "group.h" #include "config.h" #include "ping.h" #include "prompt.h" #include "gettext.h" #include "obrender/render.h" #include "obrender/theme.h" #include "obt/display.h" #include "obt/xqueue.h" #include "obt/signal.h" #include "obt/prop.h" #include "obt/keyboard.h" #include "obt/xml.h" #ifdef HAVE_FCNTL_H # include #endif #ifdef HAVE_SIGNAL_H # include #endif #ifdef HAVE_STDLIB_H # include #endif #ifdef HAVE_LOCALE_H # include #endif #ifdef HAVE_SYS_STAT_H # include # include #endif #ifdef HAVE_SYS_WAIT_H # include # include #endif #ifdef HAVE_UNISTD_H # include #endif #include #include #if USE_XCURSOR #include #endif RrInstance *ob_rr_inst; RrImageCache *ob_rr_icons; RrTheme *ob_rr_theme; GMainLoop *ob_main_loop; gint ob_screen; gboolean ob_replace_wm = FALSE; gboolean ob_sm_use = TRUE; gchar *ob_sm_id = NULL; gchar *ob_sm_save_file = NULL; gboolean ob_sm_restore = TRUE; gboolean ob_debug_xinerama = FALSE; const gchar *ob_locale_msg = NULL; static ObState state; static gboolean xsync = FALSE; static gboolean reconfigure = FALSE; static gboolean restart = FALSE; static gchar *restart_path = NULL; static Cursor cursors[OB_NUM_CURSORS]; static gint exitcode = 0; static guint remote_control = 0; static gboolean being_replaced = FALSE; static gchar *config_file = NULL; static gchar *startup_cmd = NULL; static void signal_handler(gint signal, gpointer data); static void remove_args(gint *argc, gchar **argv, gint index, gint num); static void parse_env(); static void parse_args(gint *argc, gchar **argv); static Cursor load_cursor(const gchar *name, guint fontval); static void run_startup_cmd(void); gint main(gint argc, gchar **argv) { gchar *program_name; obt_signal_listen(); ob_set_state(OB_STATE_STARTING); ob_debug_startup(); /* initialize the locale */ if (!(ob_locale_msg = setlocale(LC_MESSAGES, ""))) g_message("Couldn't set messages locale category from environment."); if (!setlocale(LC_ALL, "")) g_message("Couldn't set locale from environment."); bindtextdomain(PACKAGE_NAME, LOCALEDIR); bind_textdomain_codeset(PACKAGE_NAME, "UTF-8"); textdomain(PACKAGE_NAME); if (chdir(g_get_home_dir()) == -1) g_message(_("Unable to change to home directory \"%s\": %s"), g_get_home_dir(), g_strerror(errno)); /* parse the command line args, which can change the argv[0] */ parse_args(&argc, argv); /* parse the environment variables */ parse_env(); program_name = g_path_get_basename(argv[0]); g_set_prgname(program_name); if (!remote_control) session_startup(argc, argv); if (!obt_display_open(NULL)) ob_exit_with_error(_("Failed to open the display from the DISPLAY environment variable.")); if (remote_control) { /* Send client message telling the OB process to: * remote_control = 1 -> reconfigure * remote_control = 2 -> restart */ OBT_PROP_MSG(ob_screen, obt_root(ob_screen), OB_CONTROL, remote_control, 0, 0, 0, 0); obt_display_close(); exit(EXIT_SUCCESS); } ob_main_loop = g_main_loop_new(NULL, FALSE); /* set up signal handlers, they are called from the mainloop in the main program's thread */ obt_signal_add_callback(SIGUSR1, signal_handler, NULL); obt_signal_add_callback(SIGUSR2, signal_handler, NULL); obt_signal_add_callback(SIGTERM, signal_handler, NULL); obt_signal_add_callback(SIGINT, signal_handler, NULL); obt_signal_add_callback(SIGHUP, signal_handler, NULL); obt_signal_add_callback(SIGPIPE, signal_handler, NULL); obt_signal_add_callback(SIGCHLD, signal_handler, NULL); obt_signal_add_callback(SIGTTIN, signal_handler, NULL); obt_signal_add_callback(SIGTTOU, signal_handler, NULL); ob_screen = DefaultScreen(obt_display); ob_rr_inst = RrInstanceNew(obt_display, ob_screen); if (ob_rr_inst == NULL) ob_exit_with_error(_("Failed to initialize the obrender library.")); /* Saving 3 resizes of an RrImage makes a lot of sense for icons, as there are generally 3 icon sizes needed: the titlebar icon, the menu icon, and the alt-tab icon */ ob_rr_icons = RrImageCacheNew(3); XSynchronize(obt_display, xsync); /* check for locale support */ if (!XSupportsLocale()) g_message(_("X server does not support locale.")); if (!XSetLocaleModifiers("")) g_message(_("Cannot set locale modifiers for the X server.")); /* set the DISPLAY environment variable for any lauched children, to the display we're using, so they open in the right place. */ g_setenv("DISPLAY", DisplayString(obt_display), TRUE); /* create available cursors */ cursors[OB_CURSOR_NONE] = None; cursors[OB_CURSOR_POINTER] = load_cursor("left_ptr", XC_left_ptr); cursors[OB_CURSOR_BUSYPOINTER] = load_cursor("left_ptr_watch",XC_left_ptr); cursors[OB_CURSOR_BUSY] = load_cursor("watch", XC_watch); cursors[OB_CURSOR_MOVE] = load_cursor("fleur", XC_fleur); cursors[OB_CURSOR_NORTH] = load_cursor("top_side", XC_top_side); cursors[OB_CURSOR_NORTHEAST] = load_cursor("top_right_corner", XC_top_right_corner); cursors[OB_CURSOR_EAST] = load_cursor("right_side", XC_right_side); cursors[OB_CURSOR_SOUTHEAST] = load_cursor("bottom_right_corner", XC_bottom_right_corner); cursors[OB_CURSOR_SOUTH] = load_cursor("bottom_side", XC_bottom_side); cursors[OB_CURSOR_SOUTHWEST] = load_cursor("bottom_left_corner", XC_bottom_left_corner); cursors[OB_CURSOR_WEST] = load_cursor("left_side", XC_left_side); cursors[OB_CURSOR_NORTHWEST] = load_cursor("top_left_corner", XC_top_left_corner); if (screen_annex()) { /* it will be ours! */ /* get a timestamp from after taking over as the WM. if we use the old timestamp to set focus it can fail when replacing another WM. */ event_reset_time(); do { gchar *xml_error_string = NULL; ObPrompt *xmlprompt = NULL; if (reconfigure) obt_keyboard_reload(); { ObtXmlInst *i; /* startup the parsing so everything can register sections of the rc */ i = obt_xml_instance_new(); /* register all the available actions */ actions_startup(reconfigure); /* start up config which sets up with the parser */ config_startup(i); /* parse/load user options */ if ((config_file && obt_xml_load_file(i, config_file, "openbox_config")) || obt_xml_load_config_file(i, "openbox", "rc.xml", "openbox_config")) { obt_xml_tree_from_root(i); obt_xml_close(i); } else { g_message(_("Unable to find a valid config file, using some simple defaults")); config_file = NULL; } if (config_file) { gchar *p = g_filename_to_utf8(config_file, -1, NULL, NULL, NULL); if (p) OBT_PROP_SETS(obt_root(ob_screen), OB_CONFIG_FILE, p); g_free(p); } else OBT_PROP_ERASE(obt_root(ob_screen), OB_CONFIG_FILE); if (obt_xml_last_error(i)) { xml_error_string = g_strdup_printf( _("One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file \"%s\" line %d, with message: %s"), obt_xml_last_error_file(i), obt_xml_last_error_line(i), obt_xml_last_error_message(i)); } /* we're done with parsing now, kill it */ obt_xml_instance_unref(i); } /* load the theme specified in the rc file */ { RrTheme *theme; if ((theme = RrThemeNew(ob_rr_inst, config_theme, TRUE, config_font_activewindow, config_font_inactivewindow, config_font_menutitle, config_font_menuitem, config_font_activeosd, config_font_inactiveosd))) { RrThemeFree(ob_rr_theme); ob_rr_theme = theme; } if (ob_rr_theme == NULL) ob_exit_with_error(_("Unable to load a theme.")); OBT_PROP_SETS(obt_root(ob_screen), OB_THEME, ob_rr_theme->name); } if (reconfigure) { GList *it; /* update all existing windows for the new theme */ for (it = client_list; it; it = g_list_next(it)) { ObClient *c = it->data; frame_adjust_theme(c->frame); } } event_startup(reconfigure); /* focus_backup is used for stacking, so this needs to come before anything that calls stacking_add */ sn_startup(reconfigure); window_startup(reconfigure); focus_startup(reconfigure); focus_cycle_startup(reconfigure); focus_cycle_indicator_startup(reconfigure); focus_cycle_popup_startup(reconfigure); screen_startup(reconfigure); grab_startup(reconfigure); group_startup(reconfigure); ping_startup(reconfigure); client_startup(reconfigure); dock_startup(reconfigure); moveresize_startup(reconfigure); keyboard_startup(reconfigure); mouse_startup(reconfigure); menu_frame_startup(reconfigure); menu_startup(reconfigure); prompt_startup(reconfigure); if (!reconfigure) { /* do this after everything is started so no events will get missed */ xqueue_listen(); guint32 xid; ObWindow *w; /* get all the existing windows */ window_manage_all(); /* focus what was focused if a wm was already running */ if (OBT_PROP_GET32(obt_root(ob_screen), NET_ACTIVE_WINDOW, WINDOW, &xid) && (w = window_find(xid)) && WINDOW_IS_CLIENT(w)) { client_focus(WINDOW_AS_CLIENT(w)); } } else { GList *it; /* redecorate all existing windows */ for (it = client_list; it; it = g_list_next(it)) { ObClient *c = it->data; /* the new config can change the window's decorations */ client_setup_decor_and_functions(c, FALSE); /* redraw the frames */ frame_adjust_area(c->frame, TRUE, TRUE, FALSE); /* the decor sizes may have changed, so the windows may end up in new positions */ client_reconfigure(c, FALSE); } } ob_set_state(OB_STATE_RUNNING); if (!reconfigure && startup_cmd) run_startup_cmd(); reconfigure = FALSE; /* look for parsing errors */ if (xml_error_string) { xmlprompt = prompt_show_message(xml_error_string, _("Openbox Syntax Error"), _("Close")); g_free(xml_error_string); xml_error_string = NULL; } g_main_loop_run(ob_main_loop); ob_set_state(reconfigure ? OB_STATE_RECONFIGURING : OB_STATE_EXITING); if (xmlprompt) { prompt_unref(xmlprompt); xmlprompt = NULL; } if (!reconfigure) window_unmanage_all(); prompt_shutdown(reconfigure); menu_shutdown(reconfigure); menu_frame_shutdown(reconfigure); mouse_shutdown(reconfigure); keyboard_shutdown(reconfigure); moveresize_shutdown(reconfigure); dock_shutdown(reconfigure); client_shutdown(reconfigure); ping_shutdown(reconfigure); group_shutdown(reconfigure); grab_shutdown(reconfigure); screen_shutdown(reconfigure); focus_cycle_popup_shutdown(reconfigure); focus_cycle_indicator_shutdown(reconfigure); focus_cycle_shutdown(reconfigure); focus_shutdown(reconfigure); window_shutdown(reconfigure); sn_shutdown(reconfigure); event_shutdown(reconfigure); config_shutdown(); actions_shutdown(reconfigure); } while (reconfigure); } XSync(obt_display, FALSE); RrThemeFree(ob_rr_theme); RrImageCacheUnref(ob_rr_icons); RrInstanceFree(ob_rr_inst); session_shutdown(being_replaced); obt_display_close(); if (restart) { ob_debug_shutdown(); obt_signal_stop(); if (restart_path != NULL) { gint argcp; gchar **argvp; GError *err = NULL; /* run other window manager */ if (g_shell_parse_argv(restart_path, &argcp, &argvp, &err)) { execvp(argvp[0], argvp); g_strfreev(argvp); } else { g_message( _("Restart failed to execute new executable \"%s\": %s"), restart_path, err->message); g_error_free(err); } } /* we remove the session arguments from argv, so put them back, also don't restore the session on restart */ if (ob_sm_save_file != NULL || ob_sm_id != NULL) { gchar **nargv; gint i, l; l = argc + 1 + (ob_sm_save_file != NULL ? 2 : 0) + (ob_sm_id != NULL ? 2 : 0); nargv = g_new0(gchar*, l+1); for (i = 0; i < argc; ++i) nargv[i] = argv[i]; if (ob_sm_save_file != NULL) { nargv[i++] = g_strdup("--sm-save-file"); nargv[i++] = ob_sm_save_file; } if (ob_sm_id != NULL) { nargv[i++] = g_strdup("--sm-client-id"); nargv[i++] = ob_sm_id; } nargv[i++] = g_strdup("--sm-no-load"); g_assert(i == l); argv = nargv; } /* re-run me */ execvp(argv[0], argv); /* try how we were run */ execlp(argv[0], program_name, (gchar*)NULL); /* last resort */ } /* free stuff passed in from the command line or environment */ g_free(ob_sm_save_file); g_free(ob_sm_id); g_free(program_name); if (!restart) { ob_debug_shutdown(); obt_signal_stop(); } return exitcode; } static void signal_handler(gint signal, gpointer data) { switch (signal) { case SIGUSR1: ob_debug("Caught signal %d. Restarting.", signal); ob_restart(); break; case SIGUSR2: ob_debug("Caught signal %d. Reconfiguring.", signal); ob_reconfigure(); break; case SIGCHLD: /* reap children */ while (waitpid(-1, NULL, WNOHANG) > 0); break; case SIGTTIN: case SIGTTOU: ob_debug("Caught signal %d. Ignoring.", signal); break; default: ob_debug("Caught signal %d. Exiting.", signal); /* TERM and INT return a 0 code */ ob_exit(!(signal == SIGTERM || signal == SIGINT)); } } static void print_version(void) { g_print("Openbox %s\n", PACKAGE_VERSION); g_print(_("Copyright (c)")); g_print(" 2004 Mikael Magnusson\n"); g_print(_("Copyright (c)")); g_print(" 2002 Dana Jansens\n\n"); g_print("This program comes with ABSOLUTELY NO WARRANTY.\n"); g_print("This is free software, and you are welcome to redistribute it\n"); g_print("under certain conditions. See the file COPYING for details.\n\n"); } static void print_help(void) { g_print(_("Syntax: openbox [options]\n")); g_print(_("\nOptions:\n")); g_print(_(" --help Display this help and exit\n")); g_print(_(" --version Display the version and exit\n")); g_print(_(" --replace Replace the currently running window manager\n")); /* TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." aligned still, if you have to, make a new line with \n and 22 spaces. It's fine to leave it as FILE though. */ g_print(_(" --config-file FILE Specify the path to the config file to use\n")); g_print(_(" --sm-disable Disable connection to the session manager\n")); g_print(_("\nPassing messages to a running Openbox instance:\n")); g_print(_(" --reconfigure Reload Openbox's configuration\n")); g_print(_(" --restart Restart Openbox\n")); g_print(_(" --exit Exit Openbox\n")); g_print(_("\nDebugging options:\n")); g_print(_(" --sync Run in synchronous mode\n")); g_print(_(" --startup CMD Run CMD after starting\n")); g_print(_(" --debug Display debugging output\n")); g_print(_(" --debug-focus Display debugging output for focus handling\n")); g_print(_(" --debug-session Display debugging output for session management\n")); g_print(_(" --debug-xinerama Split the display into fake xinerama screens\n")); g_print(_("\nPlease report bugs at %s\n"), PACKAGE_BUGREPORT); } static void remove_args(gint *argc, gchar **argv, gint index, gint num) { gint i; for (i = index; i < *argc - num; ++i) argv[i] = argv[i+num]; for (; i < *argc; ++i) argv[i] = NULL; *argc -= num; } static void run_startup_cmd(void) { gchar **argv = NULL; GError *e = NULL; gboolean ok; if (!g_shell_parse_argv(startup_cmd, NULL, &argv, &e)) { g_message("Error parsing startup command: %s", e->message); g_error_free(e); e = NULL; } ok = g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, NULL, &e); if (!ok) { g_message("Error launching startup command: %s", e->message); g_error_free(e); e = NULL; } } static void parse_env(void) { const gchar *id; /* unset this so we don't pass it on unknowingly */ g_unsetenv("DESKTOP_STARTUP_ID"); /* this is how gnome-session passes in a session client id */ id = g_getenv("DESKTOP_AUTOSTART_ID"); if (id) { g_unsetenv("DESKTOP_AUTOSTART_ID"); if (ob_sm_id) g_free(ob_sm_id); ob_sm_id = g_strdup(id); ob_debug_type(OB_DEBUG_SM, "DESKTOP_AUTOSTART_ID %s supercedes --sm-client-id\n", ob_sm_id); } } static void parse_args(gint *argc, gchar **argv) { gint i; for (i = 1; i < *argc; ++i) { if (!strcmp(argv[i], "--version")) { print_version(); exit(0); } else if (!strcmp(argv[i], "--help")) { print_help(); exit(0); } else if (!strcmp(argv[i], "--g-fatal-warnings")) { g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL); } else if (!strcmp(argv[i], "--replace")) { ob_replace_wm = TRUE; remove_args(argc, argv, i, 1); --i; /* this arg was removed so go back */ } else if (!strcmp(argv[i], "--sync")) { xsync = TRUE; } else if (!strcmp(argv[i], "--startup")) { if (i == *argc - 1) /* no args left */ g_printerr(_("%s requires an argument\n"), "--startup"); else { /* this will be in the current locale encoding, which is what we want */ startup_cmd = argv[i+1]; remove_args(argc, argv, i, 2); --i; /* this arg was removed so go back */ ob_debug("--startup %s", startup_cmd); } } else if (!strcmp(argv[i], "--debug")) { ob_debug_enable(OB_DEBUG_NORMAL, TRUE); ob_debug_enable(OB_DEBUG_APP_BUGS, TRUE); } else if (!strcmp(argv[i], "--debug-focus")) { ob_debug_enable(OB_DEBUG_FOCUS, TRUE); } else if (!strcmp(argv[i], "--debug-session")) { ob_debug_enable(OB_DEBUG_SM, TRUE); } else if (!strcmp(argv[i], "--debug-xinerama")) { ob_debug_xinerama = TRUE; } else if (!strcmp(argv[i], "--reconfigure")) { remote_control = 1; } else if (!strcmp(argv[i], "--restart")) { remote_control = 2; } else if (!strcmp(argv[i], "--exit")) { remote_control = 3; } else if (!strcmp(argv[i], "--config-file")) { if (i == *argc - 1) /* no args left */ g_printerr(_("%s requires an argument\n"), "--config-file"); else { /* this will be in the current locale encoding, which is what we want */ config_file = argv[i+1]; ++i; /* skip the argument */ ob_debug("--config-file %s", config_file); } } else if (!strcmp(argv[i], "--sm-save-file")) { if (i == *argc - 1) /* no args left */ /* not translated cuz it's sekret */ g_printerr("--sm-save-file requires an argument\n"); else { ob_sm_save_file = g_strdup(argv[i+1]); remove_args(argc, argv, i, 2); --i; /* this arg was removed so go back */ ob_debug_type(OB_DEBUG_SM, "--sm-save-file %s", ob_sm_save_file); } } else if (!strcmp(argv[i], "--sm-client-id")) { if (i == *argc - 1) /* no args left */ /* not translated cuz it's sekret */ g_printerr("--sm-client-id requires an argument\n"); else { ob_sm_id = g_strdup(argv[i+1]); remove_args(argc, argv, i, 2); --i; /* this arg was removed so go back */ ob_debug_type(OB_DEBUG_SM, "--sm-client-id %s", ob_sm_id); } } else if (!strcmp(argv[i], "--sm-disable")) { ob_sm_use = FALSE; } else if (!strcmp(argv[i], "--sm-no-load")) { ob_sm_restore = FALSE; remove_args(argc, argv, i, 1); --i; /* this arg was removed so go back */ } else { /* this is a memleak.. oh well.. heh */ gchar *err = g_strdup_printf (_("Invalid command line argument \"%s\"\n"), argv[i]); ob_exit_with_error(err); } } } static Cursor load_cursor(const gchar *name, guint fontval) { Cursor c = None; #if USE_XCURSOR c = XcursorLibraryLoadCursor(obt_display, name); #endif if (c == None) c = XCreateFontCursor(obt_display, fontval); return c; } void ob_exit_with_error(const gchar *msg) { g_message("%s", msg); session_shutdown(TRUE); exit(EXIT_FAILURE); } void ob_restart_other(const gchar *path) { restart_path = g_strdup(path); ob_restart(); } void ob_restart(void) { restart = TRUE; ob_exit(0); } void ob_reconfigure(void) { reconfigure = TRUE; ob_exit(0); } void ob_exit(gint code) { exitcode = code; g_main_loop_quit(ob_main_loop); } void ob_exit_replace(void) { exitcode = 0; being_replaced = TRUE; g_main_loop_quit(ob_main_loop); } Cursor ob_cursor(ObCursor cursor) { g_assert(cursor < OB_NUM_CURSORS); return cursors[cursor]; } ObState ob_state(void) { return state; } void ob_set_state(ObState s) { state = s; } openbox-3.6.1/openbox/openbox.h0000644000175300001440000000347512426440016013420 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- openbox.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __openbox_h #define __openbox_h #include "misc.h" #include "obrender/render.h" #include "obrender/theme.h" #include "obt/display.h" #include extern RrInstance *ob_rr_inst; extern RrImageCache *ob_rr_icons; extern RrTheme *ob_rr_theme; extern GMainLoop *ob_main_loop; /*! The number of the screen on which we're running */ extern gint ob_screen; extern gboolean ob_sm_use; extern gchar *ob_sm_id; /* This save_file will get pass to ourselves if we restart too! So we won't make a new file every time, yay. */ extern gchar *ob_sm_save_file; extern gboolean ob_sm_restore; extern gboolean ob_replace_wm; extern gboolean ob_debug_xinerama; /*! The current locale for the LC_MESSAGES category */ extern const gchar *ob_locale_msg; /* The state of execution of the window manager */ ObState ob_state(void); void ob_set_state(ObState state); void ob_restart_other(const gchar *path); void ob_restart(void); void ob_exit(gint code); void ob_exit_replace(void); void ob_reconfigure(void); void ob_exit_with_error(const gchar *msg) G_GNUC_NORETURN; Cursor ob_cursor(ObCursor cursor); #endif openbox-3.6.1/openbox/ping.c0000644000175300001440000001164312426440016012672 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2008 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "ping.h" #include "client.h" #include "event.h" #include "debug.h" #include "openbox.h" #include "obt/prop.h" typedef struct _ObPingTarget { ObClient *client; ObPingEventHandler h; guint32 id; guint loopid; gint waiting; } ObPingTarget; static GHashTable *ping_ids = NULL; static guint32 ping_next_id = 1; #define PING_TIMEOUT 3000 /* in MS */ /*! Warn the user after this many PING_TIMEOUT intervals */ #define PING_TIMEOUT_WARN 2 static void ping_send(ObPingTarget *t); static void ping_end(ObClient *client, gpointer data); static gboolean ping_timeout(gpointer data); static gboolean find_client(gpointer key, gpointer value, gpointer client); void ping_startup(gboolean reconfigure) { if (reconfigure) return; ping_ids = g_hash_table_new(g_int_hash, g_int_equal); /* listen for clients to disappear */ client_add_destroy_notify(ping_end, NULL); } void ping_shutdown(gboolean reconfigure) { if (reconfigure) return; g_hash_table_unref(ping_ids); ping_ids = NULL; client_remove_destroy_notify(ping_end); } void ping_start(struct _ObClient *client, ObPingEventHandler h) { ObPingTarget *t; /* make sure the client supports ping! */ g_assert(client->ping == TRUE); /* make sure we're not already pinging the client */ if (g_hash_table_find(ping_ids, find_client, client) != NULL) return; t = g_slice_new0(ObPingTarget); t->client = client; t->h = h; t->loopid = g_timeout_add_full(G_PRIORITY_DEFAULT, PING_TIMEOUT, ping_timeout, t, NULL); /* act like we just timed out immediately, to start the pinging process now instead of after the first delay. this makes sure the client ends up in the ping_ids hash table now. */ ping_timeout(t); /* make sure we can remove the client later */ g_assert(g_hash_table_find(ping_ids, find_client, client) != NULL); } void ping_got_pong(guint32 id) { ObPingTarget *t; if ((t = g_hash_table_lookup(ping_ids, &id))) { /*ob_debug("-PONG: '%s' (id %u)", t->client->title, t->id);*/ if (t->waiting > PING_TIMEOUT_WARN) { /* we had notified that they weren't responding, so now we need to notify that they are again */ t->h(t->client, FALSE); } t->waiting = 0; /* not waiting for a reply anymore */ /* we got a pong so we're happy now */ ping_end(t->client, NULL); } else ob_debug("Got PONG with id %u but not waiting for one", id); } static gboolean find_client(gpointer key, gpointer value, gpointer client) { ObPingTarget *t = value; return t->client == client; } static void ping_send(ObPingTarget *t) { /* t->id is 0 when it hasn't been assigned an id ever yet. we can reuse ids when t->waiting == 0, because we won't be getting a pong for that id in the future again. that way for apps that aren't timing out we don't need to remove/add them from/to the hash table */ if (t->id == 0 || t->waiting > 0) { /* pick an id, and reinsert in the hash table with the new id */ if (t->id) g_hash_table_remove(ping_ids, &t->id); t->id = ping_next_id; if (++ping_next_id == 0) ++ping_next_id; /* skip 0 on wraparound */ g_hash_table_insert(ping_ids, &t->id, t); } /*ob_debug("+PING: '%s' (id %u)", t->client->title, t->id);*/ OBT_PROP_MSG_TO(t->client->window, t->client->window, WM_PROTOCOLS, OBT_PROP_ATOM(NET_WM_PING), t->id, t->client->window, 0, 0, NoEventMask); } static gboolean ping_timeout(gpointer data) { ObPingTarget *t = data; ping_send(t); /* if the client hasn't been responding then do something about it */ if (t->waiting == PING_TIMEOUT_WARN) t->h(t->client, TRUE); /* notify that the client isn't responding */ ++t->waiting; return TRUE; /* repeat */ } static void ping_end(ObClient *client, gpointer data) { ObPingTarget *t; if ((t = g_hash_table_find(ping_ids, find_client, client))) { g_hash_table_remove(ping_ids, &t->id); g_source_remove(t->loopid); g_slice_free(ObPingTarget, t); } } openbox-3.6.1/openbox/ping.h0000644000175300001440000000247112426440016012676 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- client.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2008 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __ping_h #define __ping_h #include #include struct _ObClient; /*! Notifies when the client application isn't responding to pings, or when it starts responding again. @param dead TRUE if the app isn't responding, FALSE if it starts responding again */ typedef void (*ObPingEventHandler) (struct _ObClient *c, gboolean dead); void ping_startup(gboolean reconfigure); void ping_shutdown(gboolean reconfigure); void ping_start(struct _ObClient *c, ObPingEventHandler h); void ping_got_pong(guint32 id); #endif openbox-3.6.1/openbox/place.c0000644000175300001440000003700312426440016013017 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- place.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "client.h" #include "group.h" #include "screen.h" #include "frame.h" #include "focus.h" #include "config.h" #include "dock.h" #include "debug.h" #include "place_overlap.h" static Rect *choose_pointer_monitor(ObClient *c) { return screen_area(c->desktop, screen_monitor_pointer(), NULL); } /* use the following priority lists for choose_monitor() When a window is being placed in the FOREGROUND, use a monitor chosen in the following order: 1. per-app settings 2. same monitor as parent 3. primary monitor if placement=PRIMARY active monitor if placement=ACTIVE pointer monitor if placement=MOUSE 4. primary monitor 5. other monitors where the window has group members on the same desktop 6. other monitors where the window has group members on other desktops 7. other monitors When a window is being placed in the BACKGROUND, use a monitor chosen in the following order: 1. per-app settings 2. same monitor as parent 3. other monitors where the window has group members on the same desktop 3a. primary monitor in this set 3b. other monitors in this set 4. other monitors where the window has group members on other desktops 4a. primary monitor in this set 4b. other monitors in this set 5. other monitors 5a. primary monitor in this set 5b. other monitors in this set */ /*! One for each possible head, used to sort them in order of precedence. */ typedef struct { guint monitor; guint flags; } ObPlaceHead; /*! Flags for ObPlaceHead */ enum { HEAD_PARENT = 1 << 0, /* parent's monitor */ HEAD_PLACED = 1 << 1, /* chosen monitor by placement */ HEAD_PRIMARY = 1 << 2, /* primary monitor */ HEAD_GROUP_DESK = 1 << 3, /* has a group member on the same desktop */ HEAD_GROUP = 1 << 4, /* has a group member on another desktop */ HEAD_PERAPP = 1 << 5, /* chosen by per-app settings */ }; gint cmp_foreground(const void *a, const void *b) { const ObPlaceHead *h1 = a; const ObPlaceHead *h2 = b; gint i = 0; if (h1->monitor == h2->monitor) return 0; if (h1->flags & HEAD_PERAPP) --i; if (h2->flags & HEAD_PERAPP) ++i; if (i) return i; if (h1->flags & HEAD_PARENT) --i; if (h2->flags & HEAD_PARENT) ++i; if (i) return i; if (h1->flags & HEAD_PLACED) --i; if (h2->flags & HEAD_PLACED) ++i; if (i) return i; if (h1->flags & HEAD_PRIMARY) --i; if (h2->flags & HEAD_PRIMARY) ++i; if (i) return i; if (h1->flags & HEAD_GROUP_DESK) --i; if (h2->flags & HEAD_GROUP_DESK) ++i; if (i) return i; if (h1->flags & HEAD_GROUP) --i; if (h2->flags & HEAD_GROUP) ++i; if (i) return i; return h1->monitor - h2->monitor; } gint cmp_background(const void *a, const void *b) { const ObPlaceHead *h1 = a; const ObPlaceHead *h2 = b; gint i = 0; if (h1->monitor == h2->monitor) return 0; if (h1->flags & HEAD_PERAPP) --i; if (h2->flags & HEAD_PERAPP) ++i; if (i) return i; if (h1->flags & HEAD_PARENT) --i; if (h2->flags & HEAD_PARENT) ++i; if (i) return i; if (h1->flags & HEAD_GROUP_DESK || h2->flags & HEAD_GROUP_DESK) { if (h1->flags & HEAD_GROUP_DESK) --i; if (h2->flags & HEAD_GROUP_DESK) ++i; if (i) return i; if (h1->flags & HEAD_PRIMARY) --i; if (h2->flags & HEAD_PRIMARY) ++i; if (i) return i; } if (h1->flags & HEAD_GROUP || h2->flags & HEAD_GROUP) { if (h1->flags & HEAD_GROUP) --i; if (h2->flags & HEAD_GROUP) ++i; if (i) return i; if (h1->flags & HEAD_PRIMARY) --i; if (h2->flags & HEAD_PRIMARY) ++i; if (i) return i; } if (h1->flags & HEAD_PRIMARY) --i; if (h2->flags & HEAD_PRIMARY) ++i; if (i) return i; return h1->monitor - h2->monitor; } /*! Pick a monitor to place a window on. */ static Rect* choose_monitor(ObClient *c, gboolean client_to_be_foregrounded, ObAppSettings *settings) { Rect *area; ObPlaceHead *choice; guint i; ObClient *p; GSList *it; choice = g_new(ObPlaceHead, screen_num_monitors); for (i = 0; i < screen_num_monitors; ++i) { choice[i].monitor = i; choice[i].flags = 0; } /* find monitors with group members */ if (c->group) { for (it = c->group->members; it; it = g_slist_next(it)) { ObClient *itc = it->data; if (itc != c) { guint m = client_monitor(itc); if (m < screen_num_monitors) { if (screen_compare_desktops(itc->desktop, c->desktop)) choice[m].flags |= HEAD_GROUP_DESK; else choice[m].flags |= HEAD_GROUP; } } } } i = screen_monitor_primary(FALSE); if (i < screen_num_monitors) { choice[i].flags |= HEAD_PRIMARY; if (config_place_monitor == OB_PLACE_MONITOR_PRIMARY) choice[i].flags |= HEAD_PLACED; if (settings && settings->monitor_type == OB_PLACE_MONITOR_PRIMARY) choice[i].flags |= HEAD_PERAPP; } i = screen_monitor_active(); if (i < screen_num_monitors) { if (config_place_monitor == OB_PLACE_MONITOR_ACTIVE) choice[i].flags |= HEAD_PLACED; if (settings && settings->monitor_type == OB_PLACE_MONITOR_ACTIVE) choice[i].flags |= HEAD_PERAPP; } i = screen_monitor_pointer(); if (i < screen_num_monitors) { if (config_place_monitor == OB_PLACE_MONITOR_MOUSE) choice[i].flags |= HEAD_PLACED; if (settings && settings->monitor_type == OB_PLACE_MONITOR_MOUSE) choice[i].flags |= HEAD_PERAPP; } if (settings) { i = settings->monitor - 1; if (i < screen_num_monitors) choice[i].flags |= HEAD_PERAPP; } /* direct parent takes highest precedence */ if ((p = client_direct_parent(c))) { i = client_monitor(p); if (i < screen_num_monitors) choice[i].flags |= HEAD_PARENT; } qsort(choice, screen_num_monitors, sizeof(ObPlaceHead), client_to_be_foregrounded ? cmp_foreground : cmp_background); /* save the areas of the monitors in order of their being chosen */ for (i = 0; i < screen_num_monitors; ++i) { ob_debug("placement choice %d is monitor %d", i, choice[i].monitor); if (choice[i].flags & HEAD_PARENT) ob_debug(" - parent on monitor"); if (choice[i].flags & HEAD_PLACED) ob_debug(" - placement choice"); if (choice[i].flags & HEAD_PRIMARY) ob_debug(" - primary monitor"); if (choice[i].flags & HEAD_GROUP_DESK) ob_debug(" - group on same desktop"); if (choice[i].flags & HEAD_GROUP) ob_debug(" - group on other desktop"); } area = screen_area(c->desktop, choice[0].monitor, NULL); g_free(choice); /* return the area for the chosen monitor */ return area; } static gboolean place_under_mouse(ObClient *client, gint *x, gint *y, Size frame_size) { gint l, r, t, b; gint px, py; Rect *area; if (config_place_policy != OB_PLACE_POLICY_MOUSE) return FALSE; ob_debug("placing under mouse"); if (!screen_pointer_pos(&px, &py)) return FALSE; area = choose_pointer_monitor(client); l = area->x; t = area->y; r = area->x + area->width - frame_size.width; b = area->y + area->height - frame_size.height; *x = px - frame_size.width / 2; *x = MIN(MAX(*x, l), r); *y = py - frame_size.height / 2; *y = MIN(MAX(*y, t), b); g_slice_free(Rect, area); return TRUE; } static gboolean place_per_app_setting_position(ObClient *client, Rect *screen, gint *x, gint *y, ObAppSettings *settings, Size frame_size) { if (!settings || !settings->pos_given) return FALSE; ob_debug("placing by per-app settings"); screen_apply_gravity_point(x, y, frame_size.width, frame_size.height, &settings->position, screen); return TRUE; } static void place_per_app_setting_size(ObClient *client, Rect *screen, gint *w, gint *h, ObAppSettings *settings) { if (!settings) return; g_assert(settings->width_num >= 0); g_assert(settings->width_denom >= 0); g_assert(settings->height_num >= 0); g_assert(settings->height_denom >= 0); if (settings->width_num) { ob_debug("setting width by per-app settings"); if (!settings->width_denom) *w = settings->width_num; else { *w = screen->width * settings->width_num / settings->width_denom; *w = MIN(*w, screen->width); } } if (settings->height_num) { ob_debug("setting height by per-app settings"); if (!settings->height_denom) *h = settings->height_num; else { *h = screen->height * settings->height_num / settings->height_denom; *h = MIN(*h, screen->height); } } } static gboolean place_transient_splash(ObClient *client, Rect *area, gint *x, gint *y, Size frame_size) { if (client->type == OB_CLIENT_TYPE_DIALOG) { GSList *it; gboolean first = TRUE; gint l, r, t, b; ob_debug("placing dialog"); for (it = client->parents; it; it = g_slist_next(it)) { ObClient *m = it->data; if (!m->iconic) { if (first) { l = RECT_LEFT(m->frame->area); t = RECT_TOP(m->frame->area); r = RECT_RIGHT(m->frame->area); b = RECT_BOTTOM(m->frame->area); first = FALSE; } else { l = MIN(l, RECT_LEFT(m->frame->area)); t = MIN(t, RECT_TOP(m->frame->area)); r = MAX(r, RECT_RIGHT(m->frame->area)); b = MAX(b, RECT_BOTTOM(m->frame->area)); } } } if (!first) { *x = ((r + 1 - l) - frame_size.width) / 2 + l; *y = ((b + 1 - t) - frame_size.height) / 2 + t; return TRUE; } } if (client->type == OB_CLIENT_TYPE_DIALOG || client->type == OB_CLIENT_TYPE_SPLASH) { ob_debug("placing dialog or splash"); *x = (area->width - frame_size.width) / 2 + area->x; *y = (area->height - frame_size.height) / 2 + area->y; return TRUE; } return FALSE; } static gboolean place_least_overlap(ObClient *c, Rect *head, int *x, int *y, Size frame_size) { /* Assemble the list of windows that could overlap with @c in the user's current view. */ GSList* potential_overlap_clients = NULL; gint n_client_rects = config_dock_hide ? 0 : 1; /* If we're "showing desktop", and going to allow this window to be shown now, then ignore all existing windows */ gboolean ignore_windows = FALSE; switch (screen_show_desktop_mode) { case SCREEN_SHOW_DESKTOP_NO: case SCREEN_SHOW_DESKTOP_UNTIL_WINDOW: break; case SCREEN_SHOW_DESKTOP_UNTIL_TOGGLE: ignore_windows = TRUE; break; } if (!ignore_windows) { GList* it; for (it = client_list; it != NULL; it = g_list_next(it)) { ObClient* maybe_client = (ObClient*)it->data; if (maybe_client == c) continue; if (maybe_client->iconic) continue; if (!client_occupies_space(maybe_client)) continue; if (c->desktop != DESKTOP_ALL) { if (maybe_client->desktop != c->desktop && maybe_client->desktop != DESKTOP_ALL) continue; } else { if (maybe_client->desktop != screen_desktop && maybe_client->desktop != DESKTOP_ALL) continue; } potential_overlap_clients = g_slist_prepend( potential_overlap_clients, maybe_client); n_client_rects += 1; } } if (n_client_rects) { Rect client_rects[n_client_rects]; GSList* it; Point result; guint i = 0; if (!config_dock_hide) dock_get_area(&client_rects[i++]); for (it = potential_overlap_clients; it != NULL; it = g_slist_next(it)) { ObClient* potential_overlap_client = (ObClient*)it->data; client_rects[i] = potential_overlap_client->frame->area; i += 1; } g_slist_free(potential_overlap_clients); place_overlap_find_least_placement(client_rects, n_client_rects, head, &frame_size, &result); *x = result.x; *y = result.y; } return TRUE; } static gboolean should_set_client_position(ObClient *client, ObAppSettings *settings) { gboolean has_position = settings && settings->pos_given; gboolean has_forced_position = has_position && settings->pos_force; gboolean user_positioned = client->positioned & USPosition; if (user_positioned && !has_forced_position) return FALSE; gboolean program_positioned = client->positioned & PPosition; if (program_positioned && !has_position) return FALSE; return TRUE; } gboolean place_client(ObClient *client, gboolean client_to_be_foregrounded, Rect* client_area, ObAppSettings *settings) { gboolean ret; Rect *monitor_area; int *x, *y, *w, *h; Size frame_size; monitor_area = choose_monitor(client, client_to_be_foregrounded, settings); w = &client_area->width; h = &client_area->height; place_per_app_setting_size(client, monitor_area, w, h, settings); if (!should_set_client_position(client, settings)) return FALSE; x = &client_area->x; y = &client_area->y; SIZE_SET(frame_size, *w + client->frame->size.left + client->frame->size.right, *h + client->frame->size.top + client->frame->size.bottom); ret = place_per_app_setting_position(client, monitor_area, x, y, settings, frame_size) || place_transient_splash(client, monitor_area, x, y, frame_size) || place_under_mouse(client, x, y, frame_size) || place_least_overlap(client, monitor_area, x, y, frame_size); g_assert(ret); g_slice_free(Rect, monitor_area); /* get where the client should be */ frame_frame_gravity(client->frame, x, y); return TRUE; } openbox-3.6.1/openbox/place.h0000644000175300001440000000264612426440016013031 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- place.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__place_h #define ob__place_h #include "geom.h" #include struct _ObClient; struct _ObAppSettings; typedef enum { OB_PLACE_POLICY_SMART, OB_PLACE_POLICY_MOUSE } ObPlacePolicy; typedef enum { OB_PLACE_MONITOR_ANY, OB_PLACE_MONITOR_ACTIVE, OB_PLACE_MONITOR_MOUSE, OB_PLACE_MONITOR_PRIMARY, OB_PLACE_MONITOR_ALL } ObPlaceMonitor; /*! Return TRUE if openbox chose the position for the window, and FALSE if the application chose it */ gboolean place_client(struct _ObClient *client, gboolean client_to_be_foregrounded, Rect* client_area, struct _ObAppSettings *settings); #endif openbox-3.6.1/openbox/place_overlap.c0000644000175300001440000002660612426440016014556 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- overlap.c for the Openbox window manager Copyright (c) 2011, 2013 Ian Zimmerman 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 the COPYING file for a copy of the GNU General Public License. */ #include "config.h" #include "geom.h" #include "place_overlap.h" #include "obt/bsearch.h" #include #include static void make_grid(const Rect* client_rects, int n_client_rects, const Rect* monitor, int* x_edges, int* y_edges, int max_edges); static int best_direction(const Point* grid_point, const Rect* client_rects, int n_client_rects, const Rect* monitor, const Size* req_size, Point* best_top_left); static int total_overlap(const Rect* client_rects, int n_client_rects, const Rect* proposed_rect); static void center_in_field(Point* grid_point, const Size* req_size, const Rect *monitor, const Rect* client_rects, int n_client_rects, const int* x_edges, const int* y_edges, int max_edges); /* Choose the placement on a grid with least overlap */ void place_overlap_find_least_placement(const Rect* client_rects, int n_client_rects, const Rect *monitor, const Size* req_size, Point* result) { POINT_SET(*result, monitor->x, monitor->y); int overlap = G_MAXINT; int max_edges = 2 * (n_client_rects + 1); int x_edges[max_edges]; int y_edges[max_edges]; make_grid(client_rects, n_client_rects, monitor, x_edges, y_edges, max_edges); int i; for (i = 0; i < max_edges; ++i) { if (x_edges[i] == G_MAXINT) break; int j; for (j = 0; j < max_edges; ++j) { if (y_edges[j] == G_MAXINT) break; Point grid_point = {.x = x_edges[i], .y = y_edges[j]}; Point best_top_left; int this_overlap = best_direction(&grid_point, client_rects, n_client_rects, monitor, req_size, &best_top_left); if (this_overlap < overlap) { overlap = this_overlap; *result = best_top_left; } if (overlap == 0) break; } if (overlap == 0) break; } if (config_place_center && overlap == 0) { center_in_field(result, req_size, monitor, client_rects, n_client_rects, x_edges, y_edges, max_edges); } } static int compare_ints(const void* a, const void* b) { const int* ia = (const int*)a; const int* ib = (const int*)b; return *ia - *ib; } static void uniquify(int* edges, int n_edges) { int i = 0; int j = 0; while (j < n_edges) { int last = edges[j++]; edges[i++] = last; while (j < n_edges && edges[j] == last) ++j; } /* fill the rest with nonsense */ for (; i < n_edges; ++i) edges[i] = G_MAXINT; } static void make_grid(const Rect* client_rects, int n_client_rects, const Rect* monitor, int* x_edges, int* y_edges, int max_edges) { int i; int n_edges = 0; for (i = 0; i < n_client_rects; ++i) { if (!RECT_INTERSECTS_RECT(client_rects[i], *monitor)) continue; x_edges[n_edges] = client_rects[i].x; y_edges[n_edges++] = client_rects[i].y; x_edges[n_edges] = client_rects[i].x + client_rects[i].width; y_edges[n_edges++] = client_rects[i].y + client_rects[i].height; } x_edges[n_edges] = monitor->x; y_edges[n_edges++] = monitor->y; x_edges[n_edges] = monitor->x + monitor->width; y_edges[n_edges++] = monitor->y + monitor->height; for (i = n_edges; i < max_edges; ++i) x_edges[i] = y_edges[i] = G_MAXINT; qsort(x_edges, n_edges, sizeof(int), compare_ints); uniquify(x_edges, n_edges); qsort(y_edges, n_edges, sizeof(int), compare_ints); uniquify(y_edges, n_edges); } static int total_overlap(const Rect* client_rects, int n_client_rects, const Rect* proposed_rect) { int overlap = 0; int i; for (i = 0; i < n_client_rects; ++i) { if (!RECT_INTERSECTS_RECT(*proposed_rect, client_rects[i])) continue; Rect rtemp; RECT_SET_INTERSECTION(rtemp, *proposed_rect, client_rects[i]); overlap += RECT_AREA(rtemp); } return overlap; } static int find_first_grid_position_greater_or_equal(int search_value, const int* edges, int max_edges) { g_assert(max_edges >= 2); g_assert(search_value >= edges[0]); g_assert(search_value <= edges[max_edges - 1]); BSEARCH_SETUP(); BSEARCH(int, edges, 0, max_edges, search_value); if (BSEARCH_FOUND()) return BSEARCH_AT(); g_assert(BSEARCH_FOUND_NEAREST_SMALLER()); /* Get the nearest larger instead. */ return BSEARCH_AT() + 1; } static void expand_width(Rect* r, int by) { r->width += by; } static void expand_height(Rect* r, int by) { r->height += by; } typedef void ((*ExpandByMethod)(Rect*, int)); /* This structure packs most of the parametars for expand_field() in order to save pushing the same parameters twice. */ typedef struct _ExpandInfo { const Point* top_left; int orig_width; int orig_height; const Rect* monitor; const Rect* client_rects; int n_client_rects; int max_edges; } ExpandInfo; static int expand_field(int orig_edge_index, const int* edges, ExpandByMethod expand_by, const ExpandInfo* i) { Rect field; RECT_SET(field, i->top_left->x, i->top_left->y, i->orig_width, i->orig_height); int edge_index = orig_edge_index; while (edge_index < i->max_edges - 1) { int next_edge_index = edge_index + 1; (*expand_by)(&field, edges[next_edge_index] - edges[edge_index]); int overlap = total_overlap(i->client_rects, i->n_client_rects, &field); if (overlap != 0 || !RECT_CONTAINS_RECT(*(i->monitor), field)) break; edge_index = next_edge_index; } return edge_index; } /* The algortihm used for centering a rectangle in a grid field: First find the smallest rectangle of grid lines that enclose the given rectangle. By definition, there is no overlap with any of the other windows if the given rectangle is centered within this minimal rectangle. Then, try extending the minimal rectangle in either direction (x and y) by picking successively further grid lines for the opposite edge. If the minimal rectangle can be extended in *one* direction (x or y) but *not* the other, extend it as far as possible. Otherwise, just use the minimal one. */ static void center_in_field(Point* top_left, const Size* req_size, const Rect *monitor, const Rect* client_rects, int n_client_rects, const int* x_edges, const int* y_edges, int max_edges) { /* Find minimal rectangle. */ int orig_right_edge_index = find_first_grid_position_greater_or_equal( top_left->x + req_size->width, x_edges, max_edges); int orig_bottom_edge_index = find_first_grid_position_greater_or_equal( top_left->y + req_size->height, y_edges, max_edges); ExpandInfo i = { .top_left = top_left, .orig_width = x_edges[orig_right_edge_index] - top_left->x, .orig_height = y_edges[orig_bottom_edge_index] - top_left->y, .monitor = monitor, .client_rects = client_rects, .n_client_rects = n_client_rects, .max_edges = max_edges}; /* Try extending width. */ int right_edge_index = expand_field(orig_right_edge_index, x_edges, expand_width, &i); /* Try extending height. */ int bottom_edge_index = expand_field(orig_bottom_edge_index, y_edges, expand_height, &i); int final_width = x_edges[orig_right_edge_index] - top_left->x; int final_height = y_edges[orig_bottom_edge_index] - top_left->y; if (right_edge_index == orig_right_edge_index && bottom_edge_index != orig_bottom_edge_index) final_height = y_edges[bottom_edge_index] - top_left->y; else if (right_edge_index != orig_right_edge_index && bottom_edge_index == orig_bottom_edge_index) final_width = x_edges[right_edge_index] - top_left->x; /* Now center the given rectangle within the field */ top_left->x += (final_width - req_size->width) / 2; top_left->y += (final_height - req_size->height) / 2; } /* Given a list of Rect RECTS, a Point PT and a Size size, determine the direction from PT which results in the least total overlap with RECTS if a rectangle is placed in that direction. Return the top/left Point of such rectangle and the resulting overlap amount. Only consider placements within BOUNDS. */ #define NUM_DIRECTIONS 4 static int best_direction(const Point* grid_point, const Rect* client_rects, int n_client_rects, const Rect* monitor, const Size* req_size, Point* best_top_left) { static const Size directions[NUM_DIRECTIONS] = { {0, 0}, {0, -1}, {-1, 0}, {-1, -1} }; int overlap = G_MAXINT; int i; for (i = 0; i < NUM_DIRECTIONS; ++i) { Point pt = { .x = grid_point->x + (req_size->width * directions[i].width), .y = grid_point->y + (req_size->height * directions[i].height) }; Rect r; RECT_SET(r, pt.x, pt.y, req_size->width, req_size->height); if (!RECT_CONTAINS_RECT(*monitor, r)) continue; int this_overlap = total_overlap(client_rects, n_client_rects, &r); if (this_overlap < overlap) { overlap = this_overlap; *best_top_left = pt; } if (overlap == 0) break; } return overlap; } openbox-3.6.1/openbox/place_overlap.h0000644000175300001440000000203512426440016014551 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- overlap.h for the Openbox window manager Copyright (c) 2011 Ian Zimmerman 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 the COPYING file for a copy of the GNU General Public License. */ #include "geom.h" void place_overlap_find_least_placement(const Rect* client_rects, int n_client_rects, const Rect* bounds, const Size* req_size, Point* result); openbox-3.6.1/openbox/prompt.c0000644000175300001440000004444312426440016013262 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- prompt.c for the Openbox window manager Copyright (c) 2008 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "prompt.h" #include "openbox.h" #include "screen.h" #include "client.h" #include "group.h" #include "event.h" #include "obt/display.h" #include "obt/keyboard.h" #include "obt/prop.h" #include "gettext.h" static GList *prompt_list = NULL; /* we construct these */ static RrAppearance *prompt_a_bg; static RrAppearance *prompt_a_button; static RrAppearance *prompt_a_focus; static RrAppearance *prompt_a_press; /* we change the max width which would screw with others */ static RrAppearance *prompt_a_msg; /* sizing stuff */ #define OUTSIDE_MARGIN 4 #define MSG_BUTTON_SEPARATION 4 #define BUTTON_SEPARATION 4 #define BUTTON_VMARGIN 4 #define BUTTON_HMARGIN 12 #define MAX_WIDTH 400 static void prompt_layout(ObPrompt *self); static void render_all(ObPrompt *self); static void render_button(ObPrompt *self, ObPromptElement *e); static void prompt_resize(ObPrompt *self, gint w, gint h); static void prompt_run_callback(ObPrompt *self, gint result); void prompt_startup(gboolean reconfig) { /* note: this is not a copy, don't free it */ prompt_a_bg = ob_rr_theme->osd_bg; prompt_a_button = RrAppearanceCopy(ob_rr_theme->osd_unpressed_button); prompt_a_focus = RrAppearanceCopy(ob_rr_theme->osd_focused_button); prompt_a_press = RrAppearanceCopy(ob_rr_theme->osd_pressed_button); prompt_a_msg = RrAppearanceCopy(ob_rr_theme->osd_hilite_label); prompt_a_msg->texture[0].data.text.flow = TRUE; if (reconfig) { GList *it; for (it = prompt_list; it; it = g_list_next(it)) { ObPrompt *p = it->data; prompt_layout(p); render_all(p); } } } void prompt_shutdown(gboolean reconfig) { GList *it, *next; if (!reconfig) { for (it = prompt_list; it; it = next) { ObPrompt *p = it->data; next = it->next; if (p->cleanup) p->cleanup(p, p->data); } g_assert(prompt_list == NULL); } RrAppearanceFree(prompt_a_button); RrAppearanceFree(prompt_a_focus); RrAppearanceFree(prompt_a_press); RrAppearanceFree(prompt_a_msg); } ObPrompt* prompt_new(const gchar *msg, const gchar *title, const ObPromptAnswer *answers, gint n_answers, gint default_result, gint cancel_result, ObPromptCallback func, ObPromptCleanup cleanup, gpointer data) { ObPrompt *self; XSetWindowAttributes attrib; gint i; attrib.override_redirect = FALSE; self = g_slice_new0(ObPrompt); self->ref = 1; self->func = func; self->cleanup = cleanup; self->data = data; self->default_result = default_result; self->cancel_result = cancel_result; self->super.type = OB_WINDOW_CLASS_PROMPT; self->super.window = XCreateWindow(obt_display, obt_root(ob_screen), 0, 0, 1, 1, 0, CopyFromParent, InputOutput, CopyFromParent, CWOverrideRedirect, &attrib); self->ic = obt_keyboard_context_new(self->super.window, self->super.window); /* make it a dialog type window */ OBT_PROP_SET32(self->super.window, NET_WM_WINDOW_TYPE, ATOM, OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_DIALOG)); /* set the window's title */ if (title) OBT_PROP_SETS(self->super.window, NET_WM_NAME, title); /* listen for key presses on the window */ self->event_mask = KeyPressMask; /* set up the text message widow */ self->msg.text = g_strdup(msg); self->msg.window = XCreateWindow(obt_display, self->super.window, 0, 0, 1, 1, 0, CopyFromParent, InputOutput, CopyFromParent, 0, NULL); XMapWindow(obt_display, self->msg.window); /* set up the buttons from the answers */ self->n_buttons = n_answers; if (!self->n_buttons) self->n_buttons = 1; self->button = g_new0(ObPromptElement, self->n_buttons); if (n_answers == 0) { g_assert(self->n_buttons == 1); /* should be set to this above.. */ self->button[0].text = g_strdup(_("OK")); } else { g_assert(self->n_buttons > 0); for (i = 0; i < self->n_buttons; ++i) { self->button[i].text = g_strdup(answers[i].text); self->button[i].result = answers[i].result; } } for (i = 0; i < self->n_buttons; ++i) { self->button[i].window = XCreateWindow(obt_display, self->super.window, 0, 0, 1, 1, 0, CopyFromParent, InputOutput, CopyFromParent, 0, NULL); XMapWindow(obt_display, self->button[i].window); window_add(&self->button[i].window, PROMPT_AS_WINDOW(self)); /* listen for button presses on the buttons */ XSelectInput(obt_display, self->button[i].window, ButtonPressMask | ButtonReleaseMask | ButtonMotionMask); } prompt_list = g_list_prepend(prompt_list, self); return self; } void prompt_ref(ObPrompt *self) { ++self->ref; } void prompt_unref(ObPrompt *self) { if (self && --self->ref == 0) { gint i; if (self->mapped) prompt_hide(self); prompt_list = g_list_remove(prompt_list, self); obt_keyboard_context_unref(self->ic); for (i = 0; i < self->n_buttons; ++i) { window_remove(self->button[i].window); XDestroyWindow(obt_display, self->button[i].window); } XDestroyWindow(obt_display, self->msg.window); XDestroyWindow(obt_display, self->super.window); g_slice_free(ObPrompt, self); } } static void prompt_layout(ObPrompt *self) { gint l, r, t, b; gint i; gint allbuttonsw, allbuttonsh, buttonx; gint w, h; gint maxw; RrMargins(prompt_a_bg, &l, &t, &r, &b); l += OUTSIDE_MARGIN; t += OUTSIDE_MARGIN; r += OUTSIDE_MARGIN; b += OUTSIDE_MARGIN; { const Rect *area = screen_physical_area_all_monitors(); maxw = MIN(MAX_WIDTH, area->width*4/5); } /* find the button sizes and how much space we need for them */ allbuttonsw = allbuttonsh = 0; for (i = 0; i < self->n_buttons; ++i) { gint bw, bh; prompt_a_button->texture[0].data.text.string = self->button[i].text; prompt_a_focus->texture[0].data.text.string = self->button[i].text; prompt_a_press->texture[0].data.text.string = self->button[i].text; RrMinSize(prompt_a_button, &bw, &bh); self->button[i].width = bw; self->button[i].height = bh; RrMinSize(prompt_a_focus, &bw, &bh); self->button[i].width = MAX(self->button[i].width, bw); self->button[i].height = MAX(self->button[i].height, bh); RrMinSize(prompt_a_press, &bw, &bh); self->button[i].width = MAX(self->button[i].width, bw); self->button[i].height = MAX(self->button[i].height, bh); self->button[i].width += BUTTON_HMARGIN * 2; self->button[i].height += BUTTON_VMARGIN * 2; allbuttonsw += self->button[i].width + (i > 0 ? BUTTON_SEPARATION : 0); allbuttonsh = MAX(allbuttonsh, self->button[i].height); } self->msg_wbound = MAX(allbuttonsw, maxw); /* measure the text message area */ prompt_a_msg->texture[0].data.text.string = self->msg.text; prompt_a_msg->texture[0].data.text.maxwidth = self->msg_wbound; RrMinSize(prompt_a_msg, &self->msg.width, &self->msg.height); /* width and height inside the outer margins */ w = MAX(self->msg.width, allbuttonsw); h = self->msg.height + MSG_BUTTON_SEPARATION + allbuttonsh; /* position the text message */ self->msg.x = l + (w - self->msg.width) / 2; self->msg.y = t; /* position the button buttons on the right of the dialog */ buttonx = l + w; for (i = self->n_buttons - 1; i >= 0; --i) { self->button[i].x = buttonx - self->button[i].width; buttonx -= self->button[i].width + BUTTON_SEPARATION; self->button[i].y = t + h - allbuttonsh; self->button[i].y += (allbuttonsh - self->button[i].height) / 2; } /* size and position the toplevel window */ prompt_resize(self, w + l + r, h + t + b); /* move and resize the internal windows */ XMoveResizeWindow(obt_display, self->msg.window, self->msg.x, self->msg.y, self->msg.width, self->msg.height); for (i = 0; i < self->n_buttons; ++i) XMoveResizeWindow(obt_display, self->button[i].window, self->button[i].x, self->button[i].y, self->button[i].width, self->button[i].height); } static void prompt_resize(ObPrompt *self, gint w, gint h) { XConfigureRequestEvent req; XSizeHints hints; self->width = w; self->height = h; /* the user can't resize the prompt */ hints.flags = PMinSize | PMaxSize; hints.min_width = hints.max_width = w; hints.min_height = hints.max_height = h; XSetWMNormalHints(obt_display, self->super.window, &hints); if (self->mapped) { /* send a configure request like a normal client would */ req.type = ConfigureRequest; req.display = obt_display; req.parent = obt_root(ob_screen); req.window = self->super.window; req.width = w; req.height = h; req.value_mask = CWWidth | CWHeight; XSendEvent(req.display, req.window, FALSE, StructureNotifyMask, (XEvent*)&req); } else XResizeWindow(obt_display, self->super.window, w, h); } static void setup_button_focus_tex(ObPromptElement *e, RrAppearance *a, gboolean on) { gint i, l, r, t, b; for (i = 1; i < 5; ++i) a->texture[i].type = on ? RR_TEXTURE_LINE_ART : RR_TEXTURE_NONE; if (!on) return; RrMargins(a, &l, &t, &r, &b); l += MIN(BUTTON_HMARGIN, BUTTON_VMARGIN) / 2; r += MIN(BUTTON_HMARGIN, BUTTON_VMARGIN) / 2; t += MIN(BUTTON_HMARGIN, BUTTON_VMARGIN) / 2; b += MIN(BUTTON_HMARGIN, BUTTON_VMARGIN) / 2; /* top line */ a->texture[1].data.lineart.x1 = l; a->texture[1].data.lineart.x2 = e->width - r - 1; a->texture[1].data.lineart.y1 = t; a->texture[1].data.lineart.y2 = t; /* bottom line */ a->texture[2].data.lineart.x1 = l; a->texture[2].data.lineart.x2 = e->width - r - 1; a->texture[2].data.lineart.y1 = e->height - b - 1; a->texture[2].data.lineart.y2 = e->height - b - 1; /* left line */ a->texture[3].data.lineart.x1 = l; a->texture[3].data.lineart.x2 = l; a->texture[3].data.lineart.y1 = t; a->texture[3].data.lineart.y2 = e->height - b - 1; /* right line */ a->texture[4].data.lineart.x1 = e->width - r - 1; a->texture[4].data.lineart.x2 = e->width - r - 1; a->texture[4].data.lineart.y1 = t; a->texture[4].data.lineart.y2 = e->height - b - 1; } static void render_button(ObPrompt *self, ObPromptElement *e) { RrAppearance *a; if (e->hover && e->pressed) a = prompt_a_press; else if (self->focus == e) a = prompt_a_focus; else a = prompt_a_button; a->surface.parent = prompt_a_bg; a->surface.parentx = e->x; a->surface.parenty = e->y; /* draw the keyfocus line */ if (self->focus == e) setup_button_focus_tex(e, a, TRUE); a->texture[0].data.text.string = e->text; RrPaint(a, e->window, e->width, e->height); /* turn off the keyfocus line so that it doesn't affect size calculations */ if (self->focus == e) setup_button_focus_tex(e, a, FALSE); } static void render_all(ObPrompt *self) { gint i; RrPaint(prompt_a_bg, self->super.window, self->width, self->height); prompt_a_msg->surface.parent = prompt_a_bg; prompt_a_msg->surface.parentx = self->msg.x; prompt_a_msg->surface.parenty = self->msg.y; prompt_a_msg->texture[0].data.text.string = self->msg.text; prompt_a_msg->texture[0].data.text.maxwidth = self->msg_wbound; RrPaint(prompt_a_msg, self->msg.window, self->msg.width, self->msg.height); for (i = 0; i < self->n_buttons; ++i) render_button(self, &self->button[i]); } void prompt_show(ObPrompt *self, ObClient *parent, gboolean modal) { gint i; if (self->mapped) { /* activate the prompt */ OBT_PROP_MSG(ob_screen, self->super.window, NET_ACTIVE_WINDOW, 1, /* from an application.. */ event_time(), 0, 0, 0); return; } /* set the focused button (if not found then the first button is used) */ self->focus = &self->button[0]; for (i = 0; i < self->n_buttons; ++i) if (self->button[i].result == self->default_result) { self->focus = &self->button[i]; break; } if (parent) { Atom states[1]; gint nstates; Window p; XWMHints h; if (parent->group) { /* make it transient for the window's group */ h.flags = WindowGroupHint; h.window_group = parent->group->leader; p = obt_root(ob_screen); } else { /* make it transient for the window directly */ h.flags = 0; p = parent->window; } XSetWMHints(obt_display, self->super.window, &h); OBT_PROP_SET32(self->super.window, WM_TRANSIENT_FOR, WINDOW, p); states[0] = OBT_PROP_ATOM(NET_WM_STATE_MODAL); nstates = (modal ? 1 : 0); OBT_PROP_SETA32(self->super.window, NET_WM_STATE, ATOM, states, nstates); } else OBT_PROP_ERASE(self->super.window, WM_TRANSIENT_FOR); /* set up the dialog and render it */ prompt_layout(self); render_all(self); client_manage(self->super.window, self); self->mapped = TRUE; } void prompt_hide(ObPrompt *self) { XUnmapWindow(obt_display, self->super.window); self->mapped = FALSE; } gboolean prompt_key_event(ObPrompt *self, XEvent *e) { gboolean shift; guint shift_mask, mods; KeySym sym; if (e->type != KeyPress) return FALSE; shift_mask = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_SHIFT); mods = obt_keyboard_only_modmasks(e->xkey.state); shift = !!(mods & shift_mask); /* only accept shift */ if (mods != 0 && mods != shift_mask) return FALSE; sym = obt_keyboard_keypress_to_keysym(e); if (sym == XK_Escape) prompt_cancel(self); else if (sym == XK_Return || sym == XK_KP_Enter || sym == XK_space) prompt_run_callback(self, self->focus->result); else if (sym == XK_Tab || sym == XK_Left || sym == XK_Right) { gint i; gboolean left; ObPromptElement *oldfocus; left = (sym == XK_Left) || ((sym == XK_Tab) && shift); oldfocus = self->focus; for (i = 0; i < self->n_buttons; ++i) if (self->focus == &self->button[i]) break; i += (left ? -1 : 1); if (i < 0) i = self->n_buttons - 1; else if (i >= self->n_buttons) i = 0; self->focus = &self->button[i]; if (oldfocus != self->focus) render_button(self, oldfocus); render_button(self, self->focus); } return TRUE; } gboolean prompt_mouse_event(ObPrompt *self, XEvent *e) { gint i; ObPromptElement *but; if (e->type != ButtonPress && e->type != ButtonRelease && e->type != MotionNotify) return FALSE; /* find the button */ but = NULL; for (i = 0; i < self->n_buttons; ++i) if (self->button[i].window == (e->type == MotionNotify ? e->xmotion.window : e->xbutton.window)) { but = &self->button[i]; break; } if (!but) return FALSE; if (e->type == ButtonPress) { ObPromptElement *oldfocus; oldfocus = self->focus; but->pressed = but->hover = TRUE; self->focus = but; if (oldfocus != but) render_button(self, oldfocus); render_button(self, but); } else if (e->type == ButtonRelease) { if (but->hover) prompt_run_callback(self, but->result); but->pressed = FALSE; } else if (e->type == MotionNotify) { if (but->pressed) { gboolean hover; hover = (e->xmotion.x >= 0 && e->xmotion.y >= 0 && e->xmotion.x < but->width && e->xmotion.y < but->height); if (hover != but->hover) { but->hover = hover; render_button(self, but); } } } return TRUE; } void prompt_cancel(ObPrompt *self) { prompt_run_callback(self, self->cancel_result); } static gboolean prompt_show_message_cb(ObPrompt *p, int res, gpointer data) { return TRUE; /* call the cleanup func */ } static void prompt_show_message_cleanup(ObPrompt *p, gpointer data) { prompt_unref(p); } ObPrompt* prompt_show_message(const gchar *msg, const gchar *title, const gchar *answer) { ObPrompt *p; ObPromptAnswer ans[] = { { answer, 0 } }; p = prompt_new(msg, title, ans, 1, 0, 0, prompt_show_message_cb, prompt_show_message_cleanup, NULL); prompt_show(p, NULL, FALSE); return p; } static void prompt_run_callback(ObPrompt *self, gint result) { prompt_ref(self); if (self->func) { gboolean clean = self->func(self, result, self->data); if (clean && self->cleanup) self->cleanup(self, self->data); } prompt_hide(self); prompt_unref(self); } openbox-3.6.1/openbox/prompt.h0000644000175300001440000000776012426440016013270 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- prompt.h for the Openbox window manager Copyright (c) 2008 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__prompt_h #define ob__prompt_h #include "window.h" #include "geom.h" #include "obrender/render.h" #include "obt/keyboard.h" #include #include typedef struct _ObPrompt ObPrompt; typedef struct _ObPromptElement ObPromptElement; typedef struct _ObPromptAnswer ObPromptAnswer; typedef gboolean (*ObPromptCallback)(ObPrompt *p, gint result, gpointer data); typedef void (*ObPromptCleanup)(ObPrompt *p, gpointer data); struct _ObPromptElement { gchar *text; Window window; gint x, y, width, height; gboolean pressed; gboolean hover; gint result; }; struct _ObPrompt { ObInternalWindow super; gint ref; ObtIC *ic; guint event_mask; /* keep a copy of this because we re-render things that may need it (i.e. the buttons) */ RrAppearance *a_bg; gboolean mapped; gint width, height; gint msg_wbound; ObPromptElement msg; /* one for each answer */ ObPromptElement *button; gint n_buttons; /* points to the button with the focus */ ObPromptElement *focus; /* the default button to have selected */ gint default_result; /* the cancel result if the dialog is closed */ gint cancel_result; ObPromptCallback func; ObPromptCleanup cleanup; gpointer data; }; struct _ObPromptAnswer { const gchar *text; gint result; }; void prompt_startup(gboolean reconfig); void prompt_shutdown(gboolean reconfig); /*! Create a new prompt @param answers A number of ObPromptAnswers which define the buttons which will appear in the dialog from left to right, and the result returned when they are selected. @param n_answers The number of answers @param default_result The result for the answer button selected by default @param cancel_result The result that is given if the dialog is closed instead of having a button presssed @param func The callback function which is called when the dialog is closed or a button is pressed @param cleanup The cleanup function which is called if the prompt system is shutting down, and someone is still holding a reference to the prompt. This callback should cause the prompt's refcount to go to zero so it can be freed, and free any other memory associated with the prompt. The cleanup function is also called if the prompt's callback function returns TRUE. @param data User defined data which will be passed to the callback */ ObPrompt* prompt_new(const gchar *msg, const gchar *title, const ObPromptAnswer *answers, gint n_answers, gint default_result, gint cancel_result, ObPromptCallback func, ObPromptCleanup cleanup, gpointer data); void prompt_ref(ObPrompt *self); void prompt_unref(ObPrompt *self); /*! Show the prompt. It will be centered within the given area rectangle */ void prompt_show(ObPrompt *self, struct _ObClient *parent, gboolean modal); void prompt_hide(ObPrompt *self); gboolean prompt_key_event(ObPrompt *self, XEvent *e); gboolean prompt_mouse_event(ObPrompt *self, XEvent *e); void prompt_cancel(ObPrompt *self); ObPrompt* prompt_show_message(const gchar *msg, const gchar *title, const gchar *answer); #endif openbox-3.6.1/openbox/popup.c0000644000175300001440000004101212426440016013071 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- popup.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "popup.h" #include "openbox.h" #include "frame.h" #include "client.h" #include "stacking.h" #include "event.h" #include "screen.h" #include "obrender/render.h" #include "obrender/theme.h" ObPopup *popup_new(void) { XSetWindowAttributes attrib; ObPopup *self = g_slice_new0(ObPopup); self->obwin.type = OB_WINDOW_CLASS_INTERNAL; self->gravity = NorthWestGravity; self->x = self->y = self->textw = self->h = 0; self->a_bg = RrAppearanceCopy(ob_rr_theme->osd_bg); self->a_text = RrAppearanceCopy(ob_rr_theme->osd_hilite_label); self->iconwm = self->iconhm = 1; attrib.override_redirect = True; self->bg = XCreateWindow(obt_display, obt_root(ob_screen), 0, 0, 1, 1, 0, RrDepth(ob_rr_inst), InputOutput, RrVisual(ob_rr_inst), CWOverrideRedirect, &attrib); self->text = XCreateWindow(obt_display, self->bg, 0, 0, 1, 1, 0, RrDepth(ob_rr_inst), InputOutput, RrVisual(ob_rr_inst), 0, NULL); XSetWindowBorderWidth(obt_display, self->bg, ob_rr_theme->obwidth); XSetWindowBorder(obt_display, self->bg, RrColorPixel(ob_rr_theme->osd_border_color)); XMapWindow(obt_display, self->text); stacking_add(INTERNAL_AS_WINDOW(self)); window_add(&self->bg, INTERNAL_AS_WINDOW(self)); return self; } void popup_free(ObPopup *self) { if (self) { popup_hide(self); /* make sure it's not showing or is being delayed and will be shown */ XDestroyWindow(obt_display, self->bg); XDestroyWindow(obt_display, self->text); RrAppearanceFree(self->a_bg); RrAppearanceFree(self->a_text); window_remove(self->bg); stacking_remove(self); g_slice_free(ObPopup, self); } } void popup_position(ObPopup *self, gint gravity, gint x, gint y) { self->gravity = gravity; self->x = x; self->y = y; } void popup_text_width(ObPopup *self, gint w) { self->textw = w; } void popup_min_width(ObPopup *self, gint minw) { self->minw = minw; } void popup_max_width(ObPopup *self, gint maxw) { self->maxw = maxw; } void popup_height(ObPopup *self, gint h) { gint texth; /* don't let the height be smaller than the text */ texth = RrMinHeight(self->a_text) + ob_rr_theme->paddingy * 2; self->h = MAX(h, texth); } void popup_text_width_to_string(ObPopup *self, gchar *text) { if (text[0] != '\0') { self->a_text->texture[0].data.text.string = text; self->textw = RrMinWidth(self->a_text); } else self->textw = 0; } void popup_height_to_string(ObPopup *self, gchar *text) { self->h = RrMinHeight(self->a_text) + ob_rr_theme->paddingy * 2; } void popup_text_width_to_strings(ObPopup *self, gchar **strings, gint num) { gint i, maxw; maxw = 0; for (i = 0; i < num; ++i) { popup_text_width_to_string(self, strings[i]); maxw = MAX(maxw, self->textw); } self->textw = maxw; } void popup_set_text_align(ObPopup *self, RrJustify align) { self->a_text->texture[0].data.text.justify = align; } static gboolean popup_show_timeout(gpointer data) { ObPopup *self = data; XMapWindow(obt_display, self->bg); stacking_raise(INTERNAL_AS_WINDOW(self)); self->mapped = TRUE; self->delay_mapped = FALSE; self->delay_timer = 0; return FALSE; /* don't repeat */ } void popup_delay_show(ObPopup *self, gulong msec, gchar *text) { gint l, t, r, b; gint x, y, w, h; guint m; gint emptyx, emptyy; /* empty space between elements */ gint textx, texty, textw, texth; gint iconx, icony, iconw, iconh; const Rect *area; Rect mon; gboolean hasicon = self->hasicon; /* when there is no icon and the text is not parent relative, then fill the whole dialog with the text appearance, don't use the bg at all */ if (hasicon || self->a_text->surface.grad == RR_SURFACE_PARENTREL) RrMargins(self->a_bg, &l, &t, &r, &b); else l = t = r = b = 0; /* set up the textures */ self->a_text->texture[0].data.text.string = text; /* measure the text out */ if (text[0] != '\0') { RrMinSize(self->a_text, &textw, &texth); } else { textw = 0; texth = RrMinHeight(self->a_text); } /* get the height, which is also used for the icon width */ emptyy = t + b + ob_rr_theme->paddingy * 2; if (self->h) texth = self->h - emptyy; h = texth * self->iconhm + emptyy; if (self->textw) textw = self->textw; iconx = textx = l + ob_rr_theme->paddingx; emptyx = l + r + ob_rr_theme->paddingx * 2; if (hasicon) { iconw = texth * self->iconwm; iconh = texth * self->iconhm; textx += iconw + ob_rr_theme->paddingx; if (textw) emptyx += ob_rr_theme->paddingx; /* between the icon and text */ icony = (h - iconh - emptyy) / 2 + t + ob_rr_theme->paddingy; } else iconw = 0; texty = (h - texth - emptyy) / 2 + t + ob_rr_theme->paddingy; /* when there is no icon, then fill the whole dialog with the text appearance */ if (!hasicon) { textx = texty = 0; texth += emptyy; textw += emptyx; emptyx = emptyy = 0; } w = textw + emptyx + iconw; /* cap it at maxw/minw */ if (self->maxw) w = MIN(w, self->maxw); if (self->minw) w = MAX(w, self->minw); textw = w - emptyx - iconw; /* sanity checks to avoid crashes! */ if (w < 1) w = 1; if (h < 1) h = 1; if (texth < 1) texth = 1; /* set up the x coord */ x = self->x; switch (self->gravity) { case NorthGravity: case CenterGravity: case SouthGravity: x -= w / 2; break; case NorthEastGravity: case EastGravity: case SouthEastGravity: x -= w; break; } /* set up the y coord */ y = self->y; switch (self->gravity) { case WestGravity: case CenterGravity: case EastGravity: y -= h / 2; break; case SouthWestGravity: case SouthGravity: case SouthEastGravity: y -= h; break; } /* If the popup belongs to a client (eg, the moveresize popup), get * the monitor for that client, otherwise do other stuff */ if (self->client) { m = client_monitor(self->client); } else { /* Find the monitor which contains the biggest part of the popup. * If the popup is completely off screen, limit it to the intersection * of all monitors and then try again. If it's still off screen, put it * on monitor 0. */ RECT_SET(mon, x, y, w, h); m = screen_find_monitor(&mon); } area = screen_physical_area_monitor(m); x = MAX(MIN(x, area->x+area->width-w), area->x); y = MAX(MIN(y, area->y+area->height-h), area->y); if (m == screen_num_monitors) { RECT_SET(mon, x, y, w, h); m = screen_find_monitor(&mon); if (m == screen_num_monitors) m = 0; area = screen_physical_area_monitor(m); x = MAX(MIN(x, area->x+area->width-w), area->x); y = MAX(MIN(y, area->y+area->height-h), area->y); } /* set the windows/appearances up */ XMoveResizeWindow(obt_display, self->bg, x, y, w, h); /* when there is no icon and the text is not parent relative, then fill the whole dialog with the text appearance, don't use the bg at all */ if (hasicon || self->a_text->surface.grad == RR_SURFACE_PARENTREL) RrPaint(self->a_bg, self->bg, w, h); if (textw) { self->a_text->surface.parent = self->a_bg; self->a_text->surface.parentx = textx; self->a_text->surface.parenty = texty; XMoveResizeWindow(obt_display, self->text, textx, texty, textw, texth); RrPaint(self->a_text, self->text, textw, texth); } if (hasicon) self->draw_icon(iconx, icony, iconw, iconh, self->draw_icon_data); /* do the actual showing */ if (!self->mapped) { if (msec) { /* don't kill previous show timers */ if (!self->delay_mapped) { self->delay_timer = g_timeout_add(msec, popup_show_timeout, self); self->delay_mapped = TRUE; } } else { popup_show_timeout(self); } } } void popup_hide(ObPopup *self) { if (self->mapped) { gulong ignore_start; /* kill enter events cause by this unmapping */ ignore_start = event_start_ignore_all_enters(); XUnmapWindow(obt_display, self->bg); self->mapped = FALSE; event_end_ignore_all_enters(ignore_start); } else if (self->delay_mapped) { g_source_remove(self->delay_timer); self->delay_timer = 0; self->delay_mapped = FALSE; } } static void icon_popup_draw_icon(gint x, gint y, gint w, gint h, gpointer data) { ObIconPopup *self = data; self->a_icon->surface.parent = self->popup->a_bg; self->a_icon->surface.parentx = x; self->a_icon->surface.parenty = y; XMoveResizeWindow(obt_display, self->icon, x, y, w, h); RrPaint(self->a_icon, self->icon, w, h); } ObIconPopup *icon_popup_new(void) { ObIconPopup *self; self = g_slice_new0(ObIconPopup); self->popup = popup_new(); self->a_icon = RrAppearanceCopy(ob_rr_theme->a_clear_tex); self->icon = XCreateWindow(obt_display, self->popup->bg, 0, 0, 1, 1, 0, RrDepth(ob_rr_inst), InputOutput, RrVisual(ob_rr_inst), 0, NULL); XMapWindow(obt_display, self->icon); self->popup->hasicon = TRUE; self->popup->draw_icon = icon_popup_draw_icon; self->popup->draw_icon_data = self; return self; } void icon_popup_free(ObIconPopup *self) { if (self) { XDestroyWindow(obt_display, self->icon); RrAppearanceFree(self->a_icon); popup_free(self->popup); g_slice_free(ObIconPopup, self); } } void icon_popup_delay_show(ObIconPopup *self, gulong msec, gchar *text, RrImage *icon) { if (icon) { RrAppearanceClearTextures(self->a_icon); self->a_icon->texture[0].type = RR_TEXTURE_IMAGE; self->a_icon->texture[0].data.image.alpha = 0xff; self->a_icon->texture[0].data.image.image = icon; } else { RrAppearanceClearTextures(self->a_icon); self->a_icon->texture[0].type = RR_TEXTURE_NONE; } popup_delay_show(self->popup, msec, text); } void icon_popup_icon_size_multiplier(ObIconPopup *self, guint wm, guint hm) { /* cap them at 1 */ self->popup->iconwm = MAX(1, wm); self->popup->iconhm = MAX(1, hm); } static void pager_popup_draw_icon(gint px, gint py, gint w, gint h, gpointer data) { ObPagerPopup *self = data; gint x, y; guint rown, n; guint horz_inc; guint vert_inc; guint r, c; gint eachw, eachh; const guint cols = screen_desktop_layout.columns; const guint rows = screen_desktop_layout.rows; const gint linewidth = ob_rr_theme->obwidth; eachw = (w - ((cols + 1) * linewidth)) / cols; eachh = (h - ((rows + 1) * linewidth)) / rows; /* make them squares */ eachw = eachh = MIN(eachw, eachh); /* center */ px += (w - (cols * (eachw + linewidth) + linewidth)) / 2; py += (h - (rows * (eachh + linewidth) + linewidth)) / 2; if (eachw <= 0 || eachh <= 0) return; switch (screen_desktop_layout.orientation) { case OB_ORIENTATION_HORZ: switch (screen_desktop_layout.start_corner) { case OB_CORNER_TOPLEFT: n = 0; horz_inc = 1; vert_inc = cols; break; case OB_CORNER_TOPRIGHT: n = cols - 1; horz_inc = -1; vert_inc = cols; break; case OB_CORNER_BOTTOMRIGHT: n = rows * cols - 1; horz_inc = -1; vert_inc = -screen_desktop_layout.columns; break; case OB_CORNER_BOTTOMLEFT: n = (rows - 1) * cols; horz_inc = 1; vert_inc = -cols; break; default: g_assert_not_reached(); } break; case OB_ORIENTATION_VERT: switch (screen_desktop_layout.start_corner) { case OB_CORNER_TOPLEFT: n = 0; horz_inc = rows; vert_inc = 1; break; case OB_CORNER_TOPRIGHT: n = rows * (cols - 1); horz_inc = -rows; vert_inc = 1; break; case OB_CORNER_BOTTOMRIGHT: n = rows * cols - 1; horz_inc = -rows; vert_inc = -1; break; case OB_CORNER_BOTTOMLEFT: n = rows - 1; horz_inc = rows; vert_inc = -1; break; default: g_assert_not_reached(); } break; default: g_assert_not_reached(); } rown = n; for (r = 0, y = 0; r < rows; ++r, y += eachh + linewidth) { for (c = 0, x = 0; c < cols; ++c, x += eachw + linewidth) { RrAppearance *a; if (n < self->desks) { a = (n == self->curdesk ? self->hilight : self->unhilight); a->surface.parent = self->popup->a_bg; a->surface.parentx = x + px; a->surface.parenty = y + py; XMoveResizeWindow(obt_display, self->wins[n], x + px, y + py, eachw, eachh); RrPaint(a, self->wins[n], eachw, eachh); } n += horz_inc; } n = rown += vert_inc; } } ObPagerPopup *pager_popup_new(void) { ObPagerPopup *self; self = g_slice_new(ObPagerPopup); self->popup = popup_new(); self->desks = 0; self->wins = g_new(Window, self->desks); self->hilight = RrAppearanceCopy(ob_rr_theme->osd_hilite_bg); self->unhilight = RrAppearanceCopy(ob_rr_theme->osd_unhilite_bg); self->popup->hasicon = TRUE; self->popup->draw_icon = pager_popup_draw_icon; self->popup->draw_icon_data = self; return self; } void pager_popup_free(ObPagerPopup *self) { if (self) { guint i; for (i = 0; i < self->desks; ++i) XDestroyWindow(obt_display, self->wins[i]); g_free(self->wins); RrAppearanceFree(self->hilight); RrAppearanceFree(self->unhilight); popup_free(self->popup); g_slice_free(ObPagerPopup, self); } } void pager_popup_delay_show(ObPagerPopup *self, gulong msec, gchar *text, guint desk) { guint i; if (screen_num_desktops < self->desks) for (i = screen_num_desktops; i < self->desks; ++i) XDestroyWindow(obt_display, self->wins[i]); if (screen_num_desktops != self->desks) self->wins = g_renew(Window, self->wins, screen_num_desktops); if (screen_num_desktops > self->desks) for (i = self->desks; i < screen_num_desktops; ++i) { XSetWindowAttributes attr; attr.border_pixel = RrColorPixel(ob_rr_theme->osd_border_color); self->wins[i] = XCreateWindow(obt_display, self->popup->bg, 0, 0, 1, 1, ob_rr_theme->obwidth, RrDepth(ob_rr_inst), InputOutput, RrVisual(ob_rr_inst), CWBorderPixel, &attr); XMapWindow(obt_display, self->wins[i]); } self->desks = screen_num_desktops; self->curdesk = desk; popup_delay_show(self->popup, msec, text); } void pager_popup_icon_size_multiplier(ObPagerPopup *self, guint wm, guint hm) { /* cap them at 1 */ self->popup->iconwm = MAX(1, wm); self->popup->iconhm = MAX(1, hm); } openbox-3.6.1/openbox/popup.h0000644000175300001440000001173412426440016013106 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- popup.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __popup_h #define __popup_h #include "client.h" #include "window.h" #include "obrender/render.h" #include struct _ObClientIcon; #define POPUP_WIDTH 320 #define POPUP_HEIGHT 48 typedef struct _ObPopup ObPopup; typedef struct _ObIconPopup ObIconPopup; typedef struct _ObPagerPopup ObPagerPopup; struct _ObPopup { ObWindow obwin; Window bg; Window text; gboolean hasicon; RrAppearance *a_bg; RrAppearance *a_text; gint gravity; gint x; gint y; gint textw; gint h; gint minw; gint maxw; guint iconwm; /* icon width multiplier. multiplied by the normal width */ guint iconhm; /* icon height multiplier. multipled by the normal height */ gboolean mapped; gboolean delay_mapped; guint delay_timer; void (*draw_icon)(gint x, gint y, gint w, gint h, gpointer data); gpointer draw_icon_data; ObClient *client; }; struct _ObIconPopup { ObPopup *popup; Window icon; RrAppearance *a_icon; }; struct _ObPagerPopup { ObPopup *popup; guint desks; guint curdesk; Window *wins; RrAppearance *hilight; RrAppearance *unhilight; }; ObPopup *popup_new(void); void popup_free(ObPopup *self); /*! Position the popup. The gravity rules are not the same X uses for windows, instead of the position being the top-left of the window, the gravity specifies which corner of the popup will be placed at the given coords. Static and Forget gravity are equivilent to NorthWest. */ void popup_position(ObPopup *self, gint gravity, gint x, gint y); /*! Set the sizes for the popup. When set to 0, the size will be based on the text size. */ void popup_height(ObPopup *self, gint w); void popup_min_width(ObPopup *self, gint minw); void popup_max_width(ObPopup *self, gint maxw); void popup_text_width(ObPopup *self, gint w); void popup_text_width_to_string(ObPopup *self, gchar *text); void popup_height_to_string(ObPopup *self, gchar *text); void popup_text_width_to_strings(ObPopup *self, gchar **strings, gint num); void popup_set_text_align(ObPopup *self, RrJustify align); #define popup_show(s, t) popup_delay_show((s),0,(t)) void popup_delay_show(ObPopup *self, gulong msec, gchar *text); void popup_hide(ObPopup *self); RrAppearance *popup_icon_appearance(ObPopup *self); ObIconPopup *icon_popup_new(void); void icon_popup_free(ObIconPopup *self); #define icon_popup_show(s, t, i) icon_popup_delay_show((s),0,(t),(i)) void icon_popup_delay_show(ObIconPopup *self, gulong msec, gchar *text, RrImage *icon); #define icon_popup_hide(p) popup_hide((p)->popup) #define icon_popup_position(p, g, x, y) popup_position((p)->popup,(g),(x),(y)) #define icon_popup_text_width(p, w) popup_text_width((p)->popup,(w)) #define icon_popup_height(p, h) popup_height((p)->popup,(h)) #define icon_popup_min_width(p, m) popup_min_width((p)->popup,(m)) #define icon_popup_max_width(p, m) popup_max_width((p)->popup,(m)) #define icon_popup_text_width_to_string(p, s) \ popup_text_width_to_string((p)->popup,(s)) #define icon_popup_text_width_to_strings(p, s, n) \ popup_text_width_to_strings((p)->popup,(s),(n)) #define icon_popup_set_text_align(p, j) popup_set_text_align((p)->popup,(j)) void icon_popup_icon_size_multiplier(ObIconPopup *self, guint wm, guint hm); ObPagerPopup *pager_popup_new(void); void pager_popup_free(ObPagerPopup *self); #define pager_popup_show(s, t, d) pager_popup_delay_show((s),0,(t),(d)) void pager_popup_delay_show(ObPagerPopup *self, gulong msec, gchar *text, guint desk); #define pager_popup_hide(p) popup_hide((p)->popup) #define pager_popup_position(p, g, x, y) popup_position((p)->popup,(g),(x),(y)) #define pager_popup_text_width(p, w) popup_text_width((p)->popup,(w)) #define pager_popup_height(p, h) popup_height((p)->popup,(h)) #define pager_popup_min_width(p, m) popup_min_width((p)->popup,(m)) #define pager_popup_max_width(p, m) popup_max_width((p)->popup,(m)) #define pager_popup_text_width_to_string(p, s) \ popup_text_width_to_string((p)->popup,(s)) #define pager_popup_text_width_to_strings(p, s, n) \ popup_text_width_to_strings((p)->popup,(s),(n)) #define pager_popup_set_text_align(p, j) popup_set_text_align((p)->popup,(j)) void pager_popup_icon_size_multiplier(ObPagerPopup *self, guint wm, guint hm); #endif openbox-3.6.1/openbox/resist.c0000644000175300001440000003071212426440016013244 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- resist.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "resist.h" #include "client.h" #include "frame.h" #include "stacking.h" #include "screen.h" #include "dock.h" #include "config.h" #include static gboolean resist_move_window(Rect window, Rect target, gint resist, gint *x, gint *y) { gint l, t, r, b; /* requested edges */ gint cl, ct, cr, cb; /* current edges */ gint w, h; /* current size */ gint tl, tt, tr, tb; /* 1 past the target's edges on each side */ gboolean snapx = 0, snapy = 0; w = window.width; h = window.height; l = *x; t = *y; r = l + w - 1; b = t + h - 1; cl = RECT_LEFT(window); ct = RECT_TOP(window); cr = RECT_RIGHT(window); cb = RECT_BOTTOM(window); tl = RECT_LEFT(target) - 1; tt = RECT_TOP(target) - 1; tr = RECT_RIGHT(target) + 1; tb = RECT_BOTTOM(target) + 1; /* snapx and snapy ensure that the window snaps to the top-most window edge available, without going all the way from bottom-to-top in the stacking list */ if (!snapx) { if (ct < tb && cb > tt) { if (cl >= tr && l < tr && l >= tr - resist) *x = tr, snapx = TRUE; else if (cr <= tl && r > tl && r <= tl + resist) *x = tl - w + 1, snapx = TRUE; if (snapx) { /* try to corner snap to the window */ if (ct > tt && t <= tt && t > tt - resist) *y = tt + 1, snapy = TRUE; else if (cb < tb && b >= tb && b < tb + resist) *y = tb - h, snapy = TRUE; } } } if (!snapy) { if (cl < tr && cr > tl) { if (ct >= tb && t < tb && t >= tb - resist) *y = tb, snapy = TRUE; else if (cb <= tt && b > tt && b <= tt + resist) *y = tt - h + 1, snapy = TRUE; if (snapy) { /* try to corner snap to the window */ if (cl > tl && l <= tl && l > tl - resist) *x = tl + 1, snapx = TRUE; else if (cr < tr && r >= tr && r < tr + resist) *x = tr - w, snapx = TRUE; } } } return snapx && snapy; } void resist_move_windows(ObClient *c, gint resist, gint *x, gint *y) { GList *it; Rect dock_area; if (!resist) return; frame_client_gravity(c->frame, x, y); for (it = stacking_list; it; it = g_list_next(it)) { ObClient *target; if (!WINDOW_IS_CLIENT(it->data)) continue; target = it->data; /* don't snap to self or non-visibles */ if (!target->frame->visible || target == c) continue; /* don't snap to windows set to below and skip_taskbar (desklets) */ if (target->below && !c->below && target->skip_taskbar) continue; if (resist_move_window(c->frame->area, target->frame->area, resist, x, y)) break; } dock_get_area(&dock_area); resist_move_window(c->frame->area, dock_area, resist, x, y); frame_frame_gravity(c->frame, x, y); } void resist_move_monitors(ObClient *c, gint resist, gint *x, gint *y) { Rect *area; const Rect *parea; guint i; gint l, t, r, b; /* requested edges */ gint al, at, ar, ab; /* screen area edges */ gint pl, pt, pr, pb; /* physical screen area edges */ gint cl, ct, cr, cb; /* current edges */ gint w, h; /* current size */ Rect desired_area; if (!resist) return; frame_client_gravity(c->frame, x, y); w = c->frame->area.width; h = c->frame->area.height; l = *x; t = *y; r = l + w - 1; b = t + h - 1; cl = RECT_LEFT(c->frame->area); ct = RECT_TOP(c->frame->area); cr = RECT_RIGHT(c->frame->area); cb = RECT_BOTTOM(c->frame->area); RECT_SET(desired_area, c->frame->area.x, c->frame->area.y, c->frame->area.width, c->frame->area.height); for (i = 0; i < screen_num_monitors; ++i) { parea = screen_physical_area_monitor(i); if (!RECT_INTERSECTS_RECT(*parea, c->frame->area)) continue; area = screen_area(c->desktop, SCREEN_AREA_ALL_MONITORS, &desired_area); al = RECT_LEFT(*area); at = RECT_TOP(*area); ar = RECT_RIGHT(*area); ab = RECT_BOTTOM(*area); pl = RECT_LEFT(*parea); pt = RECT_TOP(*parea); pr = RECT_RIGHT(*parea); pb = RECT_BOTTOM(*parea); if (cl >= al && l < al && l >= al - resist) *x = al; else if (cr <= ar && r > ar && r <= ar + resist) *x = ar - w + 1; else if (cl >= pl && l < pl && l >= pl - resist) *x = pl; else if (cr <= pr && r > pr && r <= pr + resist) *x = pr - w + 1; if (ct >= at && t < at && t >= at - resist) *y = at; else if (cb <= ab && b > ab && b < ab + resist) *y = ab - h + 1; else if (ct >= pt && t < pt && t >= pt - resist) *y = pt; else if (cb <= pb && b > pb && b < pb + resist) *y = pb - h + 1; g_slice_free(Rect, area); } frame_frame_gravity(c->frame, x, y); } static gboolean resist_size_window(Rect window, Rect target, gint resist, gint *w, gint *h, ObDirection dir) { gint l, t, r, b; /* my left, top, right and bottom sides */ gint tl, tt, tr, tb; /* target's left, top, right and bottom bottom sides*/ gint dlt, drb; /* my destination left/top and right/bottom sides */ gboolean snapx = 0, snapy = 0; gint orgw, orgh; l = RECT_LEFT(window); t = RECT_TOP(window); r = RECT_RIGHT(window); b = RECT_BOTTOM(window); orgw = window.width; orgh = window.height; tl = RECT_LEFT(target); tt = RECT_TOP(target); tr = RECT_RIGHT(target); tb = RECT_BOTTOM(target); if (!snapx) { /* horizontal snapping */ if (t < tb && b > tt) { switch (dir) { case OB_DIRECTION_EAST: case OB_DIRECTION_NORTHEAST: case OB_DIRECTION_SOUTHEAST: case OB_DIRECTION_NORTH: case OB_DIRECTION_SOUTH: dlt = l; drb = r + *w - orgw; if (r < tl && drb >= tl && drb < tl + resist) *w = tl - l, snapx = TRUE; break; case OB_DIRECTION_WEST: case OB_DIRECTION_NORTHWEST: case OB_DIRECTION_SOUTHWEST: dlt = l - *w + orgw; drb = r; if (l > tr && dlt <= tr && dlt > tr - resist) *w = r - tr, snapx = TRUE; break; } } } if (!snapy) { /* vertical snapping */ if (l < tr && r > tl) { switch (dir) { case OB_DIRECTION_SOUTH: case OB_DIRECTION_SOUTHWEST: case OB_DIRECTION_SOUTHEAST: case OB_DIRECTION_EAST: case OB_DIRECTION_WEST: dlt = t; drb = b + *h - orgh; if (b < tt && drb >= tt && drb < tt + resist) *h = tt - t, snapy = TRUE; break; case OB_DIRECTION_NORTH: case OB_DIRECTION_NORTHWEST: case OB_DIRECTION_NORTHEAST: dlt = t - *h + orgh; drb = b; if (t > tb && dlt <= tb && dlt > tb - resist) *h = b - tb, snapy = TRUE; break; } } } /* snapped both ways */ return snapx && snapy; } void resist_size_windows(ObClient *c, gint resist, gint *w, gint *h, ObDirection dir) { GList *it; ObClient *target; /* target */ Rect dock_area; if (!resist) return; for (it = stacking_list; it; it = g_list_next(it)) { if (!WINDOW_IS_CLIENT(it->data)) continue; target = it->data; /* don't snap to invisibles or ourself */ if (!target->frame->visible || target == c) continue; /* don't snap to windows set to below and skip_taskbar (desklets) */ if (target->below && !c->below && target->skip_taskbar) continue; if (resist_size_window(c->frame->area, target->frame->area, resist, w, h, dir)) break; } dock_get_area(&dock_area); resist_size_window(c->frame->area, dock_area, resist, w, h, dir); } void resist_size_monitors(ObClient *c, gint resist, gint *w, gint *h, ObDirection dir) { gint l, t, r, b; /* my left, top, right and bottom sides */ gint dlt, drb; /* my destination left/top and right/bottom sides */ Rect *area; const Rect *parea; gint al, at, ar, ab; /* screen boundaries */ gint pl, pt, pr, pb; /* physical screen boundaries */ guint i; Rect desired_area; if (!resist) return; l = RECT_LEFT(c->frame->area); r = RECT_RIGHT(c->frame->area); t = RECT_TOP(c->frame->area); b = RECT_BOTTOM(c->frame->area); RECT_SET(desired_area, c->area.x, c->area.y, *w, *h); for (i = 0; i < screen_num_monitors; ++i) { parea = screen_physical_area_monitor(i); if (!RECT_INTERSECTS_RECT(*parea, c->frame->area)) continue; area = screen_area(c->desktop, SCREEN_AREA_ALL_MONITORS, &desired_area); /* get the screen boundaries */ al = RECT_LEFT(*area); at = RECT_TOP(*area); ar = RECT_RIGHT(*area); ab = RECT_BOTTOM(*area); pl = RECT_LEFT(*parea); pt = RECT_TOP(*parea); pr = RECT_RIGHT(*parea); pb = RECT_BOTTOM(*parea); /* horizontal snapping */ switch (dir) { case OB_DIRECTION_EAST: case OB_DIRECTION_NORTHEAST: case OB_DIRECTION_SOUTHEAST: case OB_DIRECTION_NORTH: case OB_DIRECTION_SOUTH: dlt = l; drb = r + *w - c->frame->area.width; if (r <= ar && drb > ar && drb <= ar + resist) *w = ar - l + 1; else if (r <= pr && drb > pr && drb <= pr + resist) *w = pr - l + 1; break; case OB_DIRECTION_WEST: case OB_DIRECTION_NORTHWEST: case OB_DIRECTION_SOUTHWEST: dlt = l - *w + c->frame->area.width; drb = r; if (l >= al && dlt < al && dlt >= al - resist) *w = r - al + 1; else if (l >= pl && dlt < pl && dlt >= pl - resist) *w = r - pl + 1; break; } /* vertical snapping */ switch (dir) { case OB_DIRECTION_SOUTH: case OB_DIRECTION_SOUTHWEST: case OB_DIRECTION_SOUTHEAST: case OB_DIRECTION_WEST: case OB_DIRECTION_EAST: dlt = t; drb = b + *h - c->frame->area.height; if (b <= ab && drb > ab && drb <= ab + resist) *h = ab - t + 1; else if (b <= pb && drb > pb && drb <= pb + resist) *h = pb - t + 1; break; case OB_DIRECTION_NORTH: case OB_DIRECTION_NORTHWEST: case OB_DIRECTION_NORTHEAST: dlt = t - *h + c->frame->area.height; drb = b; if (t >= at && dlt < at && dlt >= at - resist) *h = b - at + 1; else if (t >= pt && dlt < pt && dlt >= pt - resist) *h = b - pt + 1; break; } g_slice_free(Rect, area); } } openbox-3.6.1/openbox/resist.h0000644000175300001440000000303112426440016013243 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- resist.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__resist_h #define ob__resist_h #include "misc.h" #include struct _ObClient; /*! @x The client's x destination (in the client's coordinates, not the frame's @y The client's y destination (in the client's coordinates, not the frame's */ void resist_move_windows(struct _ObClient *c, gint resist, gint *x, gint *y); /*! @x The client's x destination (in the client's coordinates, not the frame's @y The client's y destination (in the client's coordinates, not the frame's */ void resist_move_monitors(struct _ObClient *c, gint resist, gint *x, gint *y); void resist_size_windows(struct _ObClient *c, gint resist, gint *w, gint *h, ObDirection dir); void resist_size_monitors(struct _ObClient *c, gint resist, gint *w, gint *h, ObDirection dir); #endif openbox-3.6.1/openbox/screen.c0000644000175300001440000021014312426440016013210 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- screen.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "debug.h" #include "openbox.h" #include "dock.h" #include "grab.h" #include "startupnotify.h" #include "moveresize.h" #include "config.h" #include "screen.h" #include "client.h" #include "session.h" #include "frame.h" #include "event.h" #include "focus.h" #include "focus_cycle.h" #include "popup.h" #include "version.h" #include "obrender/render.h" #include "gettext.h" #include "obt/display.h" #include "obt/xqueue.h" #include "obt/prop.h" #include #ifdef HAVE_UNISTD_H # include # include #endif #include /*! The event mask to grab on the root window */ #define ROOT_EVENTMASK (StructureNotifyMask | PropertyChangeMask | \ EnterWindowMask | LeaveWindowMask | \ SubstructureRedirectMask | FocusChangeMask | \ ButtonPressMask | ButtonReleaseMask) static gboolean screen_validate_layout(ObDesktopLayout *l); static gboolean replace_wm(void); static void screen_tell_ksplash(void); static void screen_fallback_focus(void); guint screen_num_desktops; guint screen_num_monitors; guint screen_desktop; guint screen_last_desktop; ObScreenShowDestopMode screen_show_desktop_mode; ObDesktopLayout screen_desktop_layout; gchar **screen_desktop_names; Window screen_support_win; Time screen_desktop_user_time = CurrentTime; static Size screen_physical_size; static guint screen_old_desktop; static gboolean screen_desktop_timeout = TRUE; static guint screen_desktop_timer = 0; /*! An array of desktops, holding an array of areas per monitor */ static Rect *monitor_area = NULL; /*! An array of desktops, holding an array of struts */ static GSList *struts_top = NULL; static GSList *struts_left = NULL; static GSList *struts_right = NULL; static GSList *struts_bottom = NULL; static ObPagerPopup *desktop_popup; static guint desktop_popup_timer = 0; static gboolean desktop_popup_perm; /*! The number of microseconds that you need to be on a desktop before it will replace the remembered "last desktop" */ #define REMEMBER_LAST_DESKTOP_TIME 750 static gboolean replace_wm(void) { gchar *wm_sn; Atom wm_sn_atom; Window current_wm_sn_owner; Time timestamp; wm_sn = g_strdup_printf("WM_S%d", ob_screen); wm_sn_atom = XInternAtom(obt_display, wm_sn, FALSE); g_free(wm_sn); current_wm_sn_owner = XGetSelectionOwner(obt_display, wm_sn_atom); if (current_wm_sn_owner == screen_support_win) current_wm_sn_owner = None; if (current_wm_sn_owner) { if (!ob_replace_wm) { g_message(_("A window manager is already running on screen %d"), ob_screen); return FALSE; } obt_display_ignore_errors(TRUE); /* We want to find out when the current selection owner dies */ XSelectInput(obt_display, current_wm_sn_owner, StructureNotifyMask); XSync(obt_display, FALSE); obt_display_ignore_errors(FALSE); if (obt_display_error_occured) current_wm_sn_owner = None; } timestamp = event_time(); XSetSelectionOwner(obt_display, wm_sn_atom, screen_support_win, timestamp); if (XGetSelectionOwner(obt_display, wm_sn_atom) != screen_support_win) { g_message(_("Could not acquire window manager selection on screen %d"), ob_screen); return FALSE; } /* Wait for old window manager to go away */ if (current_wm_sn_owner) { gulong wait = 0; const gulong timeout = G_USEC_PER_SEC * 15; /* wait for 15s max */ ObtXQueueWindowType wt; wt.window = current_wm_sn_owner; wt.type = DestroyNotify; while (wait < timeout) { /* Checks the local queue and incoming events for this event */ if (xqueue_exists_local(xqueue_match_window_type, &wt)) break; g_usleep(G_USEC_PER_SEC / 10); wait += G_USEC_PER_SEC / 10; } if (wait >= timeout) { g_message(_("The WM on screen %d is not exiting"), ob_screen); return FALSE; } } /* Send client message indicating that we are now the WM */ obt_prop_message(ob_screen, obt_root(ob_screen), OBT_PROP_ATOM(MANAGER), timestamp, wm_sn_atom, screen_support_win, 0, 0, SubstructureNotifyMask); return TRUE; } gboolean screen_annex(void) { XSetWindowAttributes attrib; pid_t pid; gint i, num_support; gulong *supported; /* create the netwm support window */ attrib.override_redirect = TRUE; attrib.event_mask = PropertyChangeMask; screen_support_win = XCreateWindow(obt_display, obt_root(ob_screen), -100, -100, 1, 1, 0, CopyFromParent, InputOutput, CopyFromParent, CWEventMask | CWOverrideRedirect, &attrib); XMapWindow(obt_display, screen_support_win); XLowerWindow(obt_display, screen_support_win); if (!replace_wm()) { XDestroyWindow(obt_display, screen_support_win); return FALSE; } obt_display_ignore_errors(TRUE); XSelectInput(obt_display, obt_root(ob_screen), ROOT_EVENTMASK); obt_display_ignore_errors(FALSE); if (obt_display_error_occured) { g_message(_("A window manager is already running on screen %d"), ob_screen); XDestroyWindow(obt_display, screen_support_win); return FALSE; } screen_set_root_cursor(); /* set the OPENBOX_PID hint */ pid = getpid(); OBT_PROP_SET32(obt_root(ob_screen), OPENBOX_PID, CARDINAL, pid); /* set supporting window */ OBT_PROP_SET32(obt_root(ob_screen), NET_SUPPORTING_WM_CHECK, WINDOW, screen_support_win); /* set properties on the supporting window */ OBT_PROP_SETS(screen_support_win, NET_WM_NAME, "Openbox"); OBT_PROP_SET32(screen_support_win, NET_SUPPORTING_WM_CHECK, WINDOW, screen_support_win); /* set the _NET_SUPPORTED_ATOMS hint */ /* this is all the atoms after NET_SUPPORTED in the ObtPropAtoms enum */ num_support = OBT_PROP_NUM_ATOMS - OBT_PROP_NET_SUPPORTED - 1; i = 0; supported = g_new(gulong, num_support); supported[i++] = OBT_PROP_ATOM(NET_SUPPORTING_WM_CHECK); supported[i++] = OBT_PROP_ATOM(NET_WM_FULL_PLACEMENT); supported[i++] = OBT_PROP_ATOM(NET_CURRENT_DESKTOP); supported[i++] = OBT_PROP_ATOM(NET_NUMBER_OF_DESKTOPS); supported[i++] = OBT_PROP_ATOM(NET_DESKTOP_GEOMETRY); supported[i++] = OBT_PROP_ATOM(NET_DESKTOP_VIEWPORT); supported[i++] = OBT_PROP_ATOM(NET_ACTIVE_WINDOW); supported[i++] = OBT_PROP_ATOM(NET_WORKAREA); supported[i++] = OBT_PROP_ATOM(NET_CLIENT_LIST); supported[i++] = OBT_PROP_ATOM(NET_CLIENT_LIST_STACKING); supported[i++] = OBT_PROP_ATOM(NET_DESKTOP_NAMES); supported[i++] = OBT_PROP_ATOM(NET_CLOSE_WINDOW); supported[i++] = OBT_PROP_ATOM(NET_DESKTOP_LAYOUT); supported[i++] = OBT_PROP_ATOM(NET_SHOWING_DESKTOP); supported[i++] = OBT_PROP_ATOM(NET_WM_NAME); supported[i++] = OBT_PROP_ATOM(NET_WM_VISIBLE_NAME); supported[i++] = OBT_PROP_ATOM(NET_WM_ICON_NAME); supported[i++] = OBT_PROP_ATOM(NET_WM_VISIBLE_ICON_NAME); supported[i++] = OBT_PROP_ATOM(NET_WM_DESKTOP); supported[i++] = OBT_PROP_ATOM(NET_WM_STRUT); supported[i++] = OBT_PROP_ATOM(NET_WM_STRUT_PARTIAL); supported[i++] = OBT_PROP_ATOM(NET_WM_ICON); supported[i++] = OBT_PROP_ATOM(NET_WM_ICON_GEOMETRY); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_TYPE); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_DESKTOP); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_DOCK); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_TOOLBAR); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_MENU); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_UTILITY); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_SPLASH); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_DIALOG); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_TYPE_NORMAL); supported[i++] = OBT_PROP_ATOM(NET_WM_ALLOWED_ACTIONS); supported[i++] = OBT_PROP_ATOM(NET_WM_WINDOW_OPACITY); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_MOVE); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_RESIZE); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_MINIMIZE); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_SHADE); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_MAXIMIZE_HORZ); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_MAXIMIZE_VERT); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_FULLSCREEN); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_CHANGE_DESKTOP); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_CLOSE); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_ABOVE); supported[i++] = OBT_PROP_ATOM(NET_WM_ACTION_BELOW); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_MODAL); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_VERT); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_MAXIMIZED_HORZ); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_SHADED); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_SKIP_TASKBAR); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_SKIP_PAGER); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_HIDDEN); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_FULLSCREEN); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_ABOVE); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_BELOW); supported[i++] = OBT_PROP_ATOM(NET_WM_STATE_DEMANDS_ATTENTION); supported[i++] = OBT_PROP_ATOM(NET_MOVERESIZE_WINDOW); supported[i++] = OBT_PROP_ATOM(NET_WM_MOVERESIZE); supported[i++] = OBT_PROP_ATOM(NET_WM_USER_TIME); /* supported[i++] = OBT_PROP_ATOM(NET_WM_USER_TIME_WINDOW); */ supported[i++] = OBT_PROP_ATOM(NET_FRAME_EXTENTS); supported[i++] = OBT_PROP_ATOM(NET_REQUEST_FRAME_EXTENTS); supported[i++] = OBT_PROP_ATOM(NET_RESTACK_WINDOW); supported[i++] = OBT_PROP_ATOM(NET_STARTUP_ID); #ifdef SYNC supported[i++] = OBT_PROP_ATOM(NET_WM_SYNC_REQUEST); supported[i++] = OBT_PROP_ATOM(NET_WM_SYNC_REQUEST_COUNTER); #endif supported[i++] = OBT_PROP_ATOM(NET_WM_PID); supported[i++] = OBT_PROP_ATOM(NET_WM_PING); supported[i++] = OBT_PROP_ATOM(KDE_WM_CHANGE_STATE); supported[i++] = OBT_PROP_ATOM(KDE_NET_WM_FRAME_STRUT); supported[i++] = OBT_PROP_ATOM(KDE_NET_WM_WINDOW_TYPE_OVERRIDE); supported[i++] = OBT_PROP_ATOM(OB_WM_ACTION_UNDECORATE); supported[i++] = OBT_PROP_ATOM(OB_WM_STATE_UNDECORATED); supported[i++] = OBT_PROP_ATOM(OPENBOX_PID); supported[i++] = OBT_PROP_ATOM(OB_THEME); supported[i++] = OBT_PROP_ATOM(OB_CONFIG_FILE); supported[i++] = OBT_PROP_ATOM(OB_CONTROL); supported[i++] = OBT_PROP_ATOM(OB_VERSION); supported[i++] = OBT_PROP_ATOM(OB_APP_ROLE); supported[i++] = OBT_PROP_ATOM(OB_APP_TITLE); supported[i++] = OBT_PROP_ATOM(OB_APP_NAME); supported[i++] = OBT_PROP_ATOM(OB_APP_CLASS); supported[i++] = OBT_PROP_ATOM(OB_APP_GROUP_NAME); supported[i++] = OBT_PROP_ATOM(OB_APP_GROUP_CLASS); supported[i++] = OBT_PROP_ATOM(OB_APP_TYPE); g_assert(i == num_support); OBT_PROP_SETA32(obt_root(ob_screen), NET_SUPPORTED, ATOM, supported, num_support); g_free(supported); OBT_PROP_SETS(RootWindow(obt_display, ob_screen), OB_VERSION, OPENBOX_VERSION); screen_tell_ksplash(); return TRUE; } static void screen_tell_ksplash(void) { XEvent e; char **argv; argv = g_new(gchar*, 6); argv[0] = g_strdup("dcop"); argv[1] = g_strdup("ksplash"); argv[2] = g_strdup("ksplash"); argv[3] = g_strdup("upAndRunning(QString)"); argv[4] = g_strdup("wm started"); argv[5] = NULL; /* tell ksplash through the dcop server command line interface */ g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_STDERR_TO_DEV_NULL | G_SPAWN_STDOUT_TO_DEV_NULL, NULL, NULL, NULL, NULL); g_strfreev(argv); /* i'm not sure why we do this, kwin does it, but ksplash doesn't seem to hear it anyways. perhaps it is for old ksplash. or new ksplash. or something. oh well. */ e.xclient.type = ClientMessage; e.xclient.display = obt_display; e.xclient.window = obt_root(ob_screen); e.xclient.message_type = XInternAtom(obt_display, "_KDE_SPLASH_PROGRESS", False); e.xclient.format = 8; strcpy(e.xclient.data.b, "wm started"); XSendEvent(obt_display, obt_root(ob_screen), False, SubstructureNotifyMask, &e); } void screen_startup(gboolean reconfig) { gchar **names = NULL; guint32 d; gboolean namesexist = FALSE; desktop_popup = pager_popup_new(); desktop_popup_perm = FALSE; pager_popup_height(desktop_popup, POPUP_HEIGHT); if (reconfig) { /* update the pager popup's width */ pager_popup_text_width_to_strings(desktop_popup, screen_desktop_names, screen_num_desktops); return; } /* get the initial size */ screen_resize(); /* have names already been set for the desktops? */ if (OBT_PROP_GETSS_UTF8(obt_root(ob_screen), NET_DESKTOP_NAMES, &names)) { g_strfreev(names); namesexist = TRUE; } /* if names don't exist and we have session names, set those. do this stuff BEFORE setting the number of desktops, because that will create default names for them */ if (!namesexist && session_desktop_names != NULL) { guint i, numnames; GSList *it; /* get the desktop names */ numnames = g_slist_length(session_desktop_names); names = g_new(gchar*, numnames + 1); names[numnames] = NULL; for (i = 0, it = session_desktop_names; it; ++i, it = g_slist_next(it)) names[i] = g_strdup(it->data); /* set the root window property */ OBT_PROP_SETSS(obt_root(ob_screen), NET_DESKTOP_NAMES, (const gchar*const*)names); g_strfreev(names); } /* set the number of desktops, if it's not already set. this will also set the default names from the config file up for desktops that don't have names yet */ screen_num_desktops = 0; if (OBT_PROP_GET32(obt_root(ob_screen), NET_NUMBER_OF_DESKTOPS, CARDINAL, &d)) { if (d != config_desktops_num) { /* TRANSLATORS: If you need to specify a different order of the arguments, you can use %1$d for the first one and %2$d for the second one. For example, "The current session has %2$d desktops, but Openbox is configured for %1$d ..." */ g_warning(ngettext("Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.", "Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.", config_desktops_num), config_desktops_num, d); } screen_set_num_desktops(d); } /* restore from session if possible */ else if (session_num_desktops) screen_set_num_desktops(session_num_desktops); else screen_set_num_desktops(config_desktops_num); screen_desktop = screen_num_desktops; /* something invalid */ /* start on the current desktop when a wm was already running */ if (OBT_PROP_GET32(obt_root(ob_screen), NET_CURRENT_DESKTOP, CARDINAL, &d) && d < screen_num_desktops) { screen_set_desktop(d, FALSE); } else if (session_desktop >= 0) screen_set_desktop(MIN((guint)session_desktop, screen_num_desktops), FALSE); else screen_set_desktop(MIN(config_screen_firstdesk, screen_num_desktops) - 1, FALSE); screen_last_desktop = screen_desktop; /* don't start in showing-desktop mode */ screen_show_desktop_mode = SCREEN_SHOW_DESKTOP_NO; OBT_PROP_SET32(obt_root(ob_screen), NET_SHOWING_DESKTOP, CARDINAL, screen_showing_desktop()); if (session_desktop_layout_present && screen_validate_layout(&session_desktop_layout)) { screen_desktop_layout = session_desktop_layout; } else screen_update_layout(); } void screen_shutdown(gboolean reconfig) { pager_popup_free(desktop_popup); if (reconfig) return; XSelectInput(obt_display, obt_root(ob_screen), NoEventMask); /* we're not running here no more! */ OBT_PROP_ERASE(obt_root(ob_screen), OPENBOX_PID); /* not without us */ OBT_PROP_ERASE(obt_root(ob_screen), NET_SUPPORTED); /* don't keep this mode */ OBT_PROP_ERASE(obt_root(ob_screen), NET_SHOWING_DESKTOP); XDestroyWindow(obt_display, screen_support_win); g_strfreev(screen_desktop_names); screen_desktop_names = NULL; } void screen_resize(void) { gint w, h; GList *it; gulong geometry[2]; w = WidthOfScreen(ScreenOfDisplay(obt_display, ob_screen)); h = HeightOfScreen(ScreenOfDisplay(obt_display, ob_screen)); /* Set the _NET_DESKTOP_GEOMETRY hint */ screen_physical_size.width = geometry[0] = w; screen_physical_size.height = geometry[1] = h; OBT_PROP_SETA32(obt_root(ob_screen), NET_DESKTOP_GEOMETRY, CARDINAL, geometry, 2); if (ob_state() != OB_STATE_RUNNING) return; /* this calls screen_update_areas(), which we need ! */ dock_configure(); for (it = client_list; it; it = g_list_next(it)) { client_move_onscreen(it->data, FALSE); client_reconfigure(it->data, FALSE); } } void screen_set_num_desktops(guint num) { gulong *viewport; GList *it, *stacking_copy; g_assert(num > 0); if (screen_num_desktops == num) return; screen_num_desktops = num; OBT_PROP_SET32(obt_root(ob_screen), NET_NUMBER_OF_DESKTOPS, CARDINAL, num); /* set the viewport hint */ viewport = g_new0(gulong, num * 2); OBT_PROP_SETA32(obt_root(ob_screen), NET_DESKTOP_VIEWPORT, CARDINAL, viewport, num * 2); g_free(viewport); /* the number of rows/columns will differ */ screen_update_layout(); /* move windows on desktops that will no longer exist! make a copy of the list cuz we're changing it */ stacking_copy = g_list_copy(stacking_list); for (it = g_list_last(stacking_copy); it; it = g_list_previous(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; if (c->desktop != DESKTOP_ALL && c->desktop >= num) client_set_desktop(c, num - 1, FALSE, TRUE); /* raise all the windows that are on the current desktop which is being merged */ else if (screen_desktop == num - 1 && (c->desktop == DESKTOP_ALL || c->desktop == screen_desktop)) stacking_raise(CLIENT_AS_WINDOW(c)); } } g_list_free(stacking_copy); /* change our struts/area to match (after moving windows) */ screen_update_areas(); /* may be some unnamed desktops that we need to fill in with names (after updating the areas so the popup can resize) */ screen_update_desktop_names(); /* change our desktop if we're on one that no longer exists! */ if (screen_desktop >= screen_num_desktops) screen_set_desktop(num - 1, TRUE); } static void screen_fallback_focus(void) { ObClient *c; gboolean allow_omni; /* only allow omnipresent windows to get focus on desktop change if an omnipresent window is already focused (it'll keep focus probably, but maybe not depending on mouse-focus options) */ allow_omni = focus_client && (client_normal(focus_client) && focus_client->desktop == DESKTOP_ALL); /* the client moved there already so don't move focus. prevent flicker on sendtodesktop + follow */ if (focus_client && focus_client->desktop == screen_desktop) return; /* have to try focus here because when you leave an empty desktop there is no focus out to watch for. also, we have different rules here. we always allow it to look under the mouse pointer if config_focus_last is FALSE do this before hiding the windows so if helper windows are coming with us, they don't get hidden */ if ((c = focus_fallback(TRUE, !config_focus_last, allow_omni, !allow_omni))) { /* only do the flicker reducing stuff ahead of time if we are going to call xsetinputfocus on the window ourselves. otherwise there is no guarantee the window will actually take focus.. */ if (c->can_focus) { /* reduce flicker by hiliting now rather than waiting for the server FocusIn event */ frame_adjust_focus(c->frame, TRUE); /* do this here so that if you switch desktops to a window with helper windows then the helper windows won't flash */ client_bring_helper_windows(c); } } } static gboolean last_desktop_func(gpointer data) { screen_desktop_timeout = TRUE; screen_desktop_timer = 0; return FALSE; /* don't repeat */ } void screen_set_desktop(guint num, gboolean dofocus) { GList *it; guint previous; gulong ignore_start; g_assert(num < screen_num_desktops); previous = screen_desktop; screen_desktop = num; if (previous == num) return; OBT_PROP_SET32(obt_root(ob_screen), NET_CURRENT_DESKTOP, CARDINAL, num); /* This whole thing decides when/how to save the screen_last_desktop so that it can be restored later if you want */ if (screen_desktop_timeout) { /* If screen_desktop_timeout is true, then we've been on this desktop long enough and we can save it as the last desktop. */ if (screen_last_desktop == previous) /* this is the startup state only */ screen_old_desktop = screen_desktop; else { /* save the "last desktop" as the "old desktop" */ screen_old_desktop = screen_last_desktop; /* save the desktop we're coming from as the "last desktop" */ screen_last_desktop = previous; } } else { /* If screen_desktop_timeout is false, then we just got to this desktop and we are moving away again. */ if (screen_desktop == screen_last_desktop) { /* If we are moving to the "last desktop" .. */ if (previous == screen_old_desktop) { /* .. from the "old desktop", change the last desktop to be where we are coming from */ screen_last_desktop = screen_old_desktop; } else if (screen_last_desktop == screen_old_desktop) { /* .. and also to the "old desktop", change the "last desktop" to be where we are coming from */ screen_last_desktop = previous; } else { /* .. from some other desktop, then set the "last desktop" to be the saved "old desktop", i.e. where we were before the "last desktop" */ screen_last_desktop = screen_old_desktop; } } else { /* If we are moving to any desktop besides the "last desktop".. (this is the normal case) */ if (screen_desktop == screen_old_desktop) { /* If moving to the "old desktop", which is not the "last desktop", don't save anything */ } else if (previous == screen_old_desktop) { /* If moving from the "old desktop", and not to the "last desktop", don't save anything */ } else if (screen_last_desktop == screen_old_desktop) { /* If the "last desktop" is the same as "old desktop" and you're not moving to the "last desktop" then save where we're coming from as the "last desktop" */ screen_last_desktop = previous; } else { /* If the "last desktop" is different from the "old desktop" and you're not moving to the "last desktop", then don't save anything */ } } } screen_desktop_timeout = FALSE; if (screen_desktop_timer) g_source_remove(screen_desktop_timer); screen_desktop_timer = g_timeout_add(REMEMBER_LAST_DESKTOP_TIME, last_desktop_func, NULL); ob_debug("Moving to desktop %d", num+1); if (ob_state() == OB_STATE_RUNNING) screen_show_desktop_popup(screen_desktop, FALSE); /* ignore enter events caused by the move */ ignore_start = event_start_ignore_all_enters(); if (moveresize_client) client_set_desktop(moveresize_client, num, TRUE, FALSE); /* show windows before hiding the rest to lessen the enter/leave events */ /* show windows from top to bottom */ for (it = stacking_list; it; it = g_list_next(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; client_show(c); } } if (dofocus) screen_fallback_focus(); /* hide windows from bottom to top */ for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; if (client_hide(c)) { if (c == focus_client) { /* c was focused and we didn't do fallback clearly so make sure openbox doesnt still consider the window focused. this happens when using NextWindow with allDesktops, since it doesnt want to move focus on desktop change, but the focus is not going to stay with the current window, which has now disappeared. only do this if the client was actually hidden, otherwise it can keep focus. */ focus_set_client(NULL); } } } } focus_cycle_addremove(NULL, TRUE); event_end_ignore_all_enters(ignore_start); if (event_source_time() != CurrentTime) screen_desktop_user_time = event_source_time(); } void screen_add_desktop(gboolean current) { gulong ignore_start; /* ignore enter events caused by this */ ignore_start = event_start_ignore_all_enters(); screen_set_num_desktops(screen_num_desktops+1); /* move all the clients over */ if (current) { GList *it; for (it = client_list; it; it = g_list_next(it)) { ObClient *c = it->data; if (c->desktop != DESKTOP_ALL && c->desktop >= screen_desktop && /* don't move direct children, they'll be moved with their parent - which will have to be on the same desktop */ !client_direct_parent(c)) { ob_debug("moving window %s", c->title); client_set_desktop(c, c->desktop+1, FALSE, TRUE); } } } event_end_ignore_all_enters(ignore_start); } void screen_remove_desktop(gboolean current) { guint rmdesktop, movedesktop; GList *it, *stacking_copy; gulong ignore_start; if (screen_num_desktops <= 1) return; /* ignore enter events caused by this */ ignore_start = event_start_ignore_all_enters(); /* what desktop are we removing and moving to? */ if (current) rmdesktop = screen_desktop; else rmdesktop = screen_num_desktops - 1; if (rmdesktop < screen_num_desktops - 1) movedesktop = rmdesktop + 1; else movedesktop = rmdesktop; /* make a copy of the list cuz we're changing it */ stacking_copy = g_list_copy(stacking_list); for (it = g_list_last(stacking_copy); it; it = g_list_previous(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; guint d = c->desktop; if (d != DESKTOP_ALL && d >= movedesktop && /* don't move direct children, they'll be moved with their parent - which will have to be on the same desktop */ !client_direct_parent(c)) { ob_debug("moving window %s", c->title); client_set_desktop(c, c->desktop - 1, TRUE, TRUE); } /* raise all the windows that are on the current desktop which is being merged */ if ((screen_desktop == rmdesktop - 1 || screen_desktop == rmdesktop) && (d == DESKTOP_ALL || d == screen_desktop)) { stacking_raise(CLIENT_AS_WINDOW(c)); ob_debug("raising window %s", c->title); } } } g_list_free(stacking_copy); /* fallback focus like we're changing desktops */ if (screen_desktop < screen_num_desktops - 1) { screen_fallback_focus(); ob_debug("fake desktop change"); } screen_set_num_desktops(screen_num_desktops-1); event_end_ignore_all_enters(ignore_start); } static void get_row_col(guint d, guint *r, guint *c) { switch (screen_desktop_layout.orientation) { case OB_ORIENTATION_HORZ: switch (screen_desktop_layout.start_corner) { case OB_CORNER_TOPLEFT: *r = d / screen_desktop_layout.columns; *c = d % screen_desktop_layout.columns; break; case OB_CORNER_BOTTOMLEFT: *r = screen_desktop_layout.rows - 1 - d / screen_desktop_layout.columns; *c = d % screen_desktop_layout.columns; break; case OB_CORNER_TOPRIGHT: *r = d / screen_desktop_layout.columns; *c = screen_desktop_layout.columns - 1 - d % screen_desktop_layout.columns; break; case OB_CORNER_BOTTOMRIGHT: *r = screen_desktop_layout.rows - 1 - d / screen_desktop_layout.columns; *c = screen_desktop_layout.columns - 1 - d % screen_desktop_layout.columns; break; } break; case OB_ORIENTATION_VERT: switch (screen_desktop_layout.start_corner) { case OB_CORNER_TOPLEFT: *r = d % screen_desktop_layout.rows; *c = d / screen_desktop_layout.rows; break; case OB_CORNER_BOTTOMLEFT: *r = screen_desktop_layout.rows - 1 - d % screen_desktop_layout.rows; *c = d / screen_desktop_layout.rows; break; case OB_CORNER_TOPRIGHT: *r = d % screen_desktop_layout.rows; *c = screen_desktop_layout.columns - 1 - d / screen_desktop_layout.rows; break; case OB_CORNER_BOTTOMRIGHT: *r = screen_desktop_layout.rows - 1 - d % screen_desktop_layout.rows; *c = screen_desktop_layout.columns - 1 - d / screen_desktop_layout.rows; break; } break; } } static guint translate_row_col(guint r, guint c) { switch (screen_desktop_layout.orientation) { case OB_ORIENTATION_HORZ: switch (screen_desktop_layout.start_corner) { case OB_CORNER_TOPLEFT: return r % screen_desktop_layout.rows * screen_desktop_layout.columns + c % screen_desktop_layout.columns; case OB_CORNER_BOTTOMLEFT: return (screen_desktop_layout.rows - 1 - r % screen_desktop_layout.rows) * screen_desktop_layout.columns + c % screen_desktop_layout.columns; case OB_CORNER_TOPRIGHT: return r % screen_desktop_layout.rows * screen_desktop_layout.columns + (screen_desktop_layout.columns - 1 - c % screen_desktop_layout.columns); case OB_CORNER_BOTTOMRIGHT: return (screen_desktop_layout.rows - 1 - r % screen_desktop_layout.rows) * screen_desktop_layout.columns + (screen_desktop_layout.columns - 1 - c % screen_desktop_layout.columns); } case OB_ORIENTATION_VERT: switch (screen_desktop_layout.start_corner) { case OB_CORNER_TOPLEFT: return c % screen_desktop_layout.columns * screen_desktop_layout.rows + r % screen_desktop_layout.rows; case OB_CORNER_BOTTOMLEFT: return c % screen_desktop_layout.columns * screen_desktop_layout.rows + (screen_desktop_layout.rows - 1 - r % screen_desktop_layout.rows); case OB_CORNER_TOPRIGHT: return (screen_desktop_layout.columns - 1 - c % screen_desktop_layout.columns) * screen_desktop_layout.rows + r % screen_desktop_layout.rows; case OB_CORNER_BOTTOMRIGHT: return (screen_desktop_layout.columns - 1 - c % screen_desktop_layout.columns) * screen_desktop_layout.rows + (screen_desktop_layout.rows - 1 - r % screen_desktop_layout.rows); } } g_assert_not_reached(); return 0; } static gboolean hide_desktop_popup_func(gpointer data) { pager_popup_hide(desktop_popup); desktop_popup_timer = 0; return FALSE; /* don't repeat */ } void screen_show_desktop_popup(guint d, gboolean perm) { const Rect *a; /* 0 means don't show the popup */ if (!config_desktop_popup_time) return; a = screen_physical_area_primary(FALSE); pager_popup_position(desktop_popup, CenterGravity, a->x + a->width / 2, a->y + a->height / 2); pager_popup_icon_size_multiplier(desktop_popup, (screen_desktop_layout.columns / screen_desktop_layout.rows) / 2, (screen_desktop_layout.rows/ screen_desktop_layout.columns) / 2); pager_popup_max_width(desktop_popup, MAX(a->width/3, POPUP_WIDTH)); pager_popup_show(desktop_popup, screen_desktop_names[d], d); if (desktop_popup_timer) g_source_remove(desktop_popup_timer); desktop_popup_timer = 0; if (!perm && !desktop_popup_perm) /* only hide if its not already being show permanently */ desktop_popup_timer = g_timeout_add(config_desktop_popup_time, hide_desktop_popup_func, desktop_popup); if (perm) desktop_popup_perm = TRUE; } void screen_hide_desktop_popup(void) { if (desktop_popup_timer) g_source_remove(desktop_popup_timer); desktop_popup_timer = 0; pager_popup_hide(desktop_popup); desktop_popup_perm = FALSE; } guint screen_find_desktop(guint from, ObDirection dir, gboolean wrap, gboolean linear) { guint r, c; guint d; d = from; get_row_col(d, &r, &c); if (linear) { switch (dir) { case OB_DIRECTION_EAST: if (d < screen_num_desktops - 1) ++d; else if (wrap) d = 0; else return from; break; case OB_DIRECTION_WEST: if (d > 0) --d; else if (wrap) d = screen_num_desktops - 1; else return from; break; default: g_assert_not_reached(); return from; } } else { switch (dir) { case OB_DIRECTION_EAST: ++c; if (c >= screen_desktop_layout.columns) { if (wrap) c = 0; else return from; } d = translate_row_col(r, c); if (d >= screen_num_desktops) { if (wrap) ++c; else return from; } break; case OB_DIRECTION_WEST: --c; if (c >= screen_desktop_layout.columns) { if (wrap) c = screen_desktop_layout.columns - 1; else return from; } d = translate_row_col(r, c); if (d >= screen_num_desktops) { if (wrap) --c; else return from; } break; case OB_DIRECTION_SOUTH: ++r; if (r >= screen_desktop_layout.rows) { if (wrap) r = 0; else return from; } d = translate_row_col(r, c); if (d >= screen_num_desktops) { if (wrap) ++r; else return from; } break; case OB_DIRECTION_NORTH: --r; if (r >= screen_desktop_layout.rows) { if (wrap) r = screen_desktop_layout.rows - 1; else return from; } d = translate_row_col(r, c); if (d >= screen_num_desktops) { if (wrap) --r; else return from; } break; default: g_assert_not_reached(); return from; } d = translate_row_col(r, c); } return d; } static gboolean screen_validate_layout(ObDesktopLayout *l) { if (l->columns == 0 && l->rows == 0) /* both 0's is bad data.. */ return FALSE; /* fill in a zero rows/columns */ if (l->columns == 0) { l->columns = screen_num_desktops / l->rows; if (l->rows * l->columns < screen_num_desktops) l->columns++; if (l->rows * l->columns >= screen_num_desktops + l->columns) l->rows--; } else if (l->rows == 0) { l->rows = screen_num_desktops / l->columns; if (l->columns * l->rows < screen_num_desktops) l->rows++; if (l->columns * l->rows >= screen_num_desktops + l->rows) l->columns--; } /* bounds checking */ if (l->orientation == OB_ORIENTATION_HORZ) { l->columns = MIN(screen_num_desktops, l->columns); l->rows = MIN(l->rows, (screen_num_desktops + l->columns - 1) / l->columns); l->columns = screen_num_desktops / l->rows + !!(screen_num_desktops % l->rows); } else { l->rows = MIN(screen_num_desktops, l->rows); l->columns = MIN(l->columns, (screen_num_desktops + l->rows - 1) / l->rows); l->rows = screen_num_desktops / l->columns + !!(screen_num_desktops % l->columns); } return TRUE; } void screen_update_layout(void) { ObDesktopLayout l; guint32 *data; guint num; screen_desktop_layout.orientation = OB_ORIENTATION_HORZ; screen_desktop_layout.start_corner = OB_CORNER_TOPLEFT; screen_desktop_layout.rows = 1; screen_desktop_layout.columns = screen_num_desktops; if (OBT_PROP_GETA32(obt_root(ob_screen), NET_DESKTOP_LAYOUT, CARDINAL, &data, &num)) { if (num == 3 || num == 4) { if (data[0] == OBT_PROP_ATOM(NET_WM_ORIENTATION_VERT)) l.orientation = OB_ORIENTATION_VERT; else if (data[0] == OBT_PROP_ATOM(NET_WM_ORIENTATION_HORZ)) l.orientation = OB_ORIENTATION_HORZ; else return; if (num < 4) l.start_corner = OB_CORNER_TOPLEFT; else { if (data[3] == OBT_PROP_ATOM(NET_WM_TOPLEFT)) l.start_corner = OB_CORNER_TOPLEFT; else if (data[3] == OBT_PROP_ATOM(NET_WM_TOPRIGHT)) l.start_corner = OB_CORNER_TOPRIGHT; else if (data[3] == OBT_PROP_ATOM(NET_WM_BOTTOMRIGHT)) l.start_corner = OB_CORNER_BOTTOMRIGHT; else if (data[3] == OBT_PROP_ATOM(NET_WM_BOTTOMLEFT)) l.start_corner = OB_CORNER_BOTTOMLEFT; else return; } l.columns = data[1]; l.rows = data[2]; if (screen_validate_layout(&l)) screen_desktop_layout = l; g_free(data); } } } void screen_update_desktop_names(void) { guint i; /* empty the array */ g_strfreev(screen_desktop_names); screen_desktop_names = NULL; if (OBT_PROP_GETSS(obt_root(ob_screen), NET_DESKTOP_NAMES, &screen_desktop_names)) for (i = 0; screen_desktop_names[i] && i < screen_num_desktops; ++i); else i = 0; if (i < screen_num_desktops) { GSList *it; screen_desktop_names = g_renew(gchar*, screen_desktop_names, screen_num_desktops + 1); screen_desktop_names[screen_num_desktops] = NULL; it = g_slist_nth(config_desktops_names, i); for (; i < screen_num_desktops; ++i) { if (it && ((char*)it->data)[0]) /* not empty */ /* use the names from the config file when possible */ screen_desktop_names[i] = g_strdup(it->data); else /* make up a nice name if it's not though */ screen_desktop_names[i] = g_strdup_printf(_("desktop %i"), i + 1); if (it) it = g_slist_next(it); } /* if we changed any names, then set the root property so we can all agree on the names */ OBT_PROP_SETSS(obt_root(ob_screen), NET_DESKTOP_NAMES, (const gchar*const*)screen_desktop_names); } /* resize the pager for these names */ pager_popup_text_width_to_strings(desktop_popup, screen_desktop_names, screen_num_desktops); } void screen_show_desktop(ObScreenShowDestopMode show_mode, ObClient *show_only) { GList *it; ObScreenShowDestopMode before_mode = screen_show_desktop_mode; gboolean showing_before = screen_showing_desktop(); screen_show_desktop_mode = show_mode; gboolean showing_after = screen_showing_desktop(); if (showing_before == showing_after) { /* No change. */ screen_show_desktop_mode = before_mode; return; } if (screen_show_desktop_mode == SCREEN_SHOW_DESKTOP_UNTIL_TOGGLE && show_only != NULL) { /* If we're showing the desktop until the show-mode is toggled, we don't allow breaking out of showing-desktop mode unless we're showing all the windows again. */ screen_show_desktop_mode = before_mode; return; } if (showing_after) { /* hide windows bottom to top */ for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *client = it->data; client_showhide(client); } } } else { /* restore windows top to bottom */ for (it = stacking_list; it; it = g_list_next(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *client = it->data; if (client_should_show(client)) { if (!show_only || client == show_only) client_show(client); else client_iconify(client, TRUE, FALSE, TRUE); } } } } if (showing_after) { /* focus the desktop */ for (it = focus_order; it; it = g_list_next(it)) { ObClient *c = it->data; if (c->type == OB_CLIENT_TYPE_DESKTOP && (c->desktop == screen_desktop || c->desktop == DESKTOP_ALL) && client_focus(it->data)) break; } } else if (!show_only) { ObClient *c; if ((c = focus_fallback(TRUE, FALSE, TRUE, FALSE))) { /* only do the flicker reducing stuff ahead of time if we are going to call xsetinputfocus on the window ourselves. otherwise there is no guarantee the window will actually take focus.. */ if (c->can_focus) { /* reduce flicker by hiliting now rather than waiting for the server FocusIn event */ frame_adjust_focus(c->frame, TRUE); } } } OBT_PROP_SET32(obt_root(ob_screen), NET_SHOWING_DESKTOP, CARDINAL, !!showing_after); } gboolean screen_showing_desktop() { switch (screen_show_desktop_mode) { case SCREEN_SHOW_DESKTOP_NO: return FALSE; case SCREEN_SHOW_DESKTOP_UNTIL_WINDOW: case SCREEN_SHOW_DESKTOP_UNTIL_TOGGLE: return TRUE; } g_assert_not_reached(); return FALSE; } void screen_install_colormap(ObClient *client, gboolean install) { if (client == NULL || client->colormap == None) { if (install) XInstallColormap(obt_display, RrColormap(ob_rr_inst)); else XUninstallColormap(obt_display, RrColormap(ob_rr_inst)); } else { obt_display_ignore_errors(TRUE); if (install) XInstallColormap(obt_display, client->colormap); else XUninstallColormap(obt_display, client->colormap); obt_display_ignore_errors(FALSE); } } typedef struct { guint desktop; StrutPartial *strut; } ObScreenStrut; #define RESET_STRUT_LIST(sl) \ while (sl) { \ g_slice_free(ObScreenStrut, (sl)->data); \ sl = g_slist_delete_link(sl, sl); \ } #define ADD_STRUT_TO_LIST(sl, d, s) \ { \ ObScreenStrut *ss = g_slice_new(ObScreenStrut); \ ss->desktop = d; \ ss->strut = s; \ sl = g_slist_prepend(sl, ss); \ } #define VALIDATE_STRUTS(sl, side, max) \ { \ GSList *it; \ for (it = sl; it; it = g_slist_next(it)) { \ ObScreenStrut *ss = it->data; \ ss->strut->side = MIN(max, ss->strut->side); \ } \ } static void get_xinerama_screens(Rect **xin_areas, guint *nxin) { guint i; gint l, r, t, b; #ifdef XINERAMA gint n; XineramaScreenInfo *info; #endif if (ob_debug_xinerama) { gint w = WidthOfScreen(ScreenOfDisplay(obt_display, ob_screen)); gint h = HeightOfScreen(ScreenOfDisplay(obt_display, ob_screen)); *nxin = 2; *xin_areas = g_new(Rect, *nxin + 1); RECT_SET((*xin_areas)[0], 0, 0, w/2, h); RECT_SET((*xin_areas)[1], w/2, 0, w-(w/2), h); } #ifdef XINERAMA else if (obt_display_extension_xinerama && (info = XineramaQueryScreens(obt_display, &n))) { *nxin = n; *xin_areas = g_new(Rect, *nxin + 1); for (i = 0; i < *nxin; ++i) RECT_SET((*xin_areas)[i], info[i].x_org, info[i].y_org, info[i].width, info[i].height); XFree(info); } #endif else { *nxin = 1; *xin_areas = g_new(Rect, *nxin + 1); RECT_SET((*xin_areas)[0], 0, 0, WidthOfScreen(ScreenOfDisplay(obt_display, ob_screen)), HeightOfScreen(ScreenOfDisplay(obt_display, ob_screen))); } /* returns one extra with the total area in it */ l = (*xin_areas)[0].x; t = (*xin_areas)[0].y; r = (*xin_areas)[0].x + (*xin_areas)[0].width - 1; b = (*xin_areas)[0].y + (*xin_areas)[0].height - 1; for (i = 1; i < *nxin; ++i) { l = MIN(l, (*xin_areas)[i].x); t = MIN(l, (*xin_areas)[i].y); r = MAX(r, (*xin_areas)[i].x + (*xin_areas)[i].width - 1); b = MAX(b, (*xin_areas)[i].y + (*xin_areas)[i].height - 1); } RECT_SET((*xin_areas)[*nxin], l, t, r - l + 1, b - t + 1); for (i = 0; i < *nxin; ++i) ob_debug("Monitor %d @ %d,%d %dx%d\n", i, (*xin_areas)[i].x, (*xin_areas)[i].y, (*xin_areas)[i].width, (*xin_areas)[i].height); ob_debug("Full desktop @ %d,%d %dx%d\n", (*xin_areas)[i].x, (*xin_areas)[i].y, (*xin_areas)[i].width, (*xin_areas)[i].height); } void screen_update_areas(void) { guint i; gulong *dims; GList *it, *onscreen; /* collect the clients that are on screen */ onscreen = NULL; for (it = client_list; it; it = g_list_next(it)) { if (client_monitor(it->data) != screen_num_monitors) onscreen = g_list_prepend(onscreen, it->data); } g_free(monitor_area); get_xinerama_screens(&monitor_area, &screen_num_monitors); /* set up the user-specified margins */ config_margins.top_start = RECT_LEFT(monitor_area[screen_num_monitors]); config_margins.top_end = RECT_RIGHT(monitor_area[screen_num_monitors]); config_margins.bottom_start = RECT_LEFT(monitor_area[screen_num_monitors]); config_margins.bottom_end = RECT_RIGHT(monitor_area[screen_num_monitors]); config_margins.left_start = RECT_TOP(monitor_area[screen_num_monitors]); config_margins.left_end = RECT_BOTTOM(monitor_area[screen_num_monitors]); config_margins.right_start = RECT_TOP(monitor_area[screen_num_monitors]); config_margins.right_end = RECT_BOTTOM(monitor_area[screen_num_monitors]); RESET_STRUT_LIST(struts_left); RESET_STRUT_LIST(struts_top); RESET_STRUT_LIST(struts_right); RESET_STRUT_LIST(struts_bottom); /* collect the struts */ for (it = client_list; it; it = g_list_next(it)) { ObClient *c = it->data; if (c->strut.left) ADD_STRUT_TO_LIST(struts_left, c->desktop, &c->strut); if (c->strut.top) ADD_STRUT_TO_LIST(struts_top, c->desktop, &c->strut); if (c->strut.right) ADD_STRUT_TO_LIST(struts_right, c->desktop, &c->strut); if (c->strut.bottom) ADD_STRUT_TO_LIST(struts_bottom, c->desktop, &c->strut); } if (dock_strut.left) ADD_STRUT_TO_LIST(struts_left, DESKTOP_ALL, &dock_strut); if (dock_strut.top) ADD_STRUT_TO_LIST(struts_top, DESKTOP_ALL, &dock_strut); if (dock_strut.right) ADD_STRUT_TO_LIST(struts_right, DESKTOP_ALL, &dock_strut); if (dock_strut.bottom) ADD_STRUT_TO_LIST(struts_bottom, DESKTOP_ALL, &dock_strut); if (config_margins.left) ADD_STRUT_TO_LIST(struts_left, DESKTOP_ALL, &config_margins); if (config_margins.top) ADD_STRUT_TO_LIST(struts_top, DESKTOP_ALL, &config_margins); if (config_margins.right) ADD_STRUT_TO_LIST(struts_right, DESKTOP_ALL, &config_margins); if (config_margins.bottom) ADD_STRUT_TO_LIST(struts_bottom, DESKTOP_ALL, &config_margins); VALIDATE_STRUTS(struts_left, left, monitor_area[screen_num_monitors].width / 2); VALIDATE_STRUTS(struts_right, right, monitor_area[screen_num_monitors].width / 2); VALIDATE_STRUTS(struts_top, top, monitor_area[screen_num_monitors].height / 2); VALIDATE_STRUTS(struts_bottom, bottom, monitor_area[screen_num_monitors].height / 2); dims = g_new(gulong, 4 * screen_num_desktops); for (i = 0; i < screen_num_desktops; ++i) { Rect *area = screen_area(i, SCREEN_AREA_ALL_MONITORS, NULL); dims[i*4+0] = area->x; dims[i*4+1] = area->y; dims[i*4+2] = area->width; dims[i*4+3] = area->height; g_slice_free(Rect, area); } /* set the legacy workarea hint to the union of all the monitors */ OBT_PROP_SETA32(obt_root(ob_screen), NET_WORKAREA, CARDINAL, dims, 4 * screen_num_desktops); /* the area has changed, adjust all the windows if they need it */ for (it = onscreen; it; it = g_list_next(it)) client_reconfigure(it->data, FALSE); g_free(dims); } #if 0 Rect* screen_area_all_monitors(guint desktop) { guint i; Rect *a; a = screen_area_monitor(desktop, 0); /* combine all the monitors together */ for (i = 1; i < screen_num_monitors; ++i) { Rect *m = screen_area_monitor(desktop, i); gint l, r, t, b; l = MIN(RECT_LEFT(*a), RECT_LEFT(*m)); t = MIN(RECT_TOP(*a), RECT_TOP(*m)); r = MAX(RECT_RIGHT(*a), RECT_RIGHT(*m)); b = MAX(RECT_BOTTOM(*a), RECT_BOTTOM(*m)); RECT_SET(*a, l, t, r - l + 1, b - t + 1); g_free(m); } return a; } #endif #define STRUT_LEFT_IN_SEARCH(s, search) \ (RANGES_INTERSECT(search->y, search->height, \ s->left_start, s->left_end - s->left_start + 1)) #define STRUT_RIGHT_IN_SEARCH(s, search) \ (RANGES_INTERSECT(search->y, search->height, \ s->right_start, s->right_end - s->right_start + 1)) #define STRUT_TOP_IN_SEARCH(s, search) \ (RANGES_INTERSECT(search->x, search->width, \ s->top_start, s->top_end - s->top_start + 1)) #define STRUT_BOTTOM_IN_SEARCH(s, search) \ (RANGES_INTERSECT(search->x, search->width, \ s->bottom_start, s->bottom_end - s->bottom_start + 1)) #define STRUT_LEFT_IGNORE(s, us, search) \ (head == SCREEN_AREA_ALL_MONITORS && us && \ RECT_LEFT(monitor_area[i]) + s->left > RECT_LEFT(*search)) #define STRUT_RIGHT_IGNORE(s, us, search) \ (head == SCREEN_AREA_ALL_MONITORS && us && \ RECT_RIGHT(monitor_area[i]) - s->right < RECT_RIGHT(*search)) #define STRUT_TOP_IGNORE(s, us, search) \ (head == SCREEN_AREA_ALL_MONITORS && us && \ RECT_TOP(monitor_area[i]) + s->top > RECT_TOP(*search)) #define STRUT_BOTTOM_IGNORE(s, us, search) \ (head == SCREEN_AREA_ALL_MONITORS && us && \ RECT_BOTTOM(monitor_area[i]) - s->bottom < RECT_BOTTOM(*search)) Rect* screen_area(guint desktop, guint head, Rect *search) { Rect *a; GSList *it; gint l, r, t, b; guint i, d; gboolean us = search != NULL; /* user provided search */ g_assert(desktop < screen_num_desktops || desktop == DESKTOP_ALL); g_assert(head < screen_num_monitors || head == SCREEN_AREA_ONE_MONITOR || head == SCREEN_AREA_ALL_MONITORS); g_assert(!(head == SCREEN_AREA_ONE_MONITOR && search == NULL)); /* find any struts for this monitor which will be affecting the search area. */ /* search everything if search is null */ if (!search) { if (head < screen_num_monitors) search = &monitor_area[head]; else search = &monitor_area[screen_num_monitors]; } if (head == SCREEN_AREA_ONE_MONITOR) head = screen_find_monitor(search); /* al is "all left" meaning the furthest left you can get, l is our "working left" meaning our current strut edge which we're calculating */ /* only include monitors which the search area lines up with */ if (RECT_INTERSECTS_RECT(monitor_area[screen_num_monitors], *search)) { l = RECT_RIGHT(monitor_area[screen_num_monitors]); t = RECT_BOTTOM(monitor_area[screen_num_monitors]); r = RECT_LEFT(monitor_area[screen_num_monitors]); b = RECT_TOP(monitor_area[screen_num_monitors]); for (i = 0; i < screen_num_monitors; ++i) { /* add the monitor if applicable */ if (RANGES_INTERSECT(search->x, search->width, monitor_area[i].x, monitor_area[i].width)) { t = MIN(t, RECT_TOP(monitor_area[i])); b = MAX(b, RECT_BOTTOM(monitor_area[i])); } if (RANGES_INTERSECT(search->y, search->height, monitor_area[i].y, monitor_area[i].height)) { l = MIN(l, RECT_LEFT(monitor_area[i])); r = MAX(r, RECT_RIGHT(monitor_area[i])); } } } else { l = RECT_LEFT(monitor_area[screen_num_monitors]); t = RECT_TOP(monitor_area[screen_num_monitors]); r = RECT_RIGHT(monitor_area[screen_num_monitors]); b = RECT_BOTTOM(monitor_area[screen_num_monitors]); } for (d = 0; d < screen_num_desktops; ++d) { if (d != desktop && desktop != DESKTOP_ALL) continue; for (i = 0; i < screen_num_monitors; ++i) { if (head != SCREEN_AREA_ALL_MONITORS && head != i) continue; for (it = struts_left; it; it = g_slist_next(it)) { ObScreenStrut *s = it->data; if ((s->desktop == d || s->desktop == DESKTOP_ALL) && STRUT_LEFT_IN_SEARCH(s->strut, search) && !STRUT_LEFT_IGNORE(s->strut, us, search)) l = MAX(l, RECT_LEFT(monitor_area[screen_num_monitors]) + s->strut->left); } for (it = struts_top; it; it = g_slist_next(it)) { ObScreenStrut *s = it->data; if ((s->desktop == d || s->desktop == DESKTOP_ALL) && STRUT_TOP_IN_SEARCH(s->strut, search) && !STRUT_TOP_IGNORE(s->strut, us, search)) t = MAX(t, RECT_TOP(monitor_area[screen_num_monitors]) + s->strut->top); } for (it = struts_right; it; it = g_slist_next(it)) { ObScreenStrut *s = it->data; if ((s->desktop == d || s->desktop == DESKTOP_ALL) && STRUT_RIGHT_IN_SEARCH(s->strut, search) && !STRUT_RIGHT_IGNORE(s->strut, us, search)) r = MIN(r, RECT_RIGHT(monitor_area[screen_num_monitors]) - s->strut->right); } for (it = struts_bottom; it; it = g_slist_next(it)) { ObScreenStrut *s = it->data; if ((s->desktop == d || s->desktop == DESKTOP_ALL) && STRUT_BOTTOM_IN_SEARCH(s->strut, search) && !STRUT_BOTTOM_IGNORE(s->strut, us, search)) b = MIN(b, RECT_BOTTOM(monitor_area[screen_num_monitors]) - s->strut->bottom); } /* limit to this monitor */ if (head == i) { l = MAX(l, RECT_LEFT(monitor_area[i])); t = MAX(t, RECT_TOP(monitor_area[i])); r = MIN(r, RECT_RIGHT(monitor_area[i])); b = MIN(b, RECT_BOTTOM(monitor_area[i])); } } } a = g_slice_new(Rect); a->x = l; a->y = t; a->width = r - l + 1; a->height = b - t + 1; return a; } typedef struct { Rect r; gboolean subtract; } RectArithmetic; guint screen_find_monitor(const Rect *search) { guint i; guint mostpx_index = screen_num_monitors; glong mostpx = 0; guint closest_distance_index = screen_num_monitors; guint closest_distance = G_MAXUINT; GSList *counted = NULL; /* we want to count the number of pixels search has on each monitor, but not double count. so if a pixel is counted on monitor A then we should not count it again on monitor B. in the end we want to return the monitor that had the most pixels counted under this scheme. this assumes that monitors earlier in the list are more desirable to be considered the search area's monitor. we try the configured primary monitor first, so it gets the highest preference. if we have counted an area A, then we want to subtract the intersection of A with the area on future monitors. but now consider if we count an area B that intersects A. we want to subtract the area B from that counted on future monitors, but not subtract the intersection of A and B twice! so we would add the intersection of A and B back, to account for it being subtracted both for A and B. this is the idea behind the algorithm. we always subtract the full area for monitor M intersected with the search area. we'll call that AREA. but then we go through the list |counted| and for each rectangle in the list that is being subtracted from future monitors, we insert a request to add back the intersection of the subtracted rect with AREA. vice versa for a rect in |counted| that is getting added back. */ if (config_primary_monitor_index < screen_num_monitors) { const Rect *monitor; Rect on_current_monitor; glong area; monitor = screen_physical_area_monitor(config_primary_monitor_index); if (RECT_INTERSECTS_RECT(*monitor, *search)) { RECT_SET_INTERSECTION(on_current_monitor, *monitor, *search); area = RECT_AREA(on_current_monitor); if (area > mostpx) { mostpx = area; mostpx_index = config_primary_monitor_index; } /* add the intersection rect on the current monitor to the counted list. that's easy for the first one, we just mark it for subtraction */ { RectArithmetic *ra = g_slice_new(RectArithmetic); ra->r = on_current_monitor; ra->subtract = TRUE; counted = g_slist_prepend(counted, ra); } } } for (i = 0; i < screen_num_monitors; ++i) { const Rect *monitor; Rect on_current_monitor; glong area; GSList *it; monitor = screen_physical_area_monitor(i); if (!RECT_INTERSECTS_RECT(*monitor, *search)) { /* If we don't intersect then find the distance between the search rect and the monitor. We'll use the closest monitor from this metric if none of the monitors intersect. */ guint distance = rect_manhatten_distance(*monitor, *search); if (distance < closest_distance) { closest_distance = distance; closest_distance_index = i; } continue; } if (i == config_primary_monitor_index) continue; /* already did this one */ RECT_SET_INTERSECTION(on_current_monitor, *monitor, *search); area = RECT_AREA(on_current_monitor); /* remove pixels we already counted on any previous monitors. */ for (it = counted; it; it = g_slist_next(it)) { RectArithmetic *ra = it->data; Rect intersection; RECT_SET_INTERSECTION(intersection, ra->r, *search); if (ra->subtract) area -= RECT_AREA(intersection); else area += RECT_AREA(intersection); } if (area > mostpx) { mostpx = area; mostpx_index = i; } /* add the intersection rect on the current monitor I to the counted list. but now we need to compensate for every rectangle R already in the counted list, and add a new rect R' that is the intersection of R and I, but with the reverse subtraction/addition operation. */ for (it = counted; it; it = g_slist_next(it)) { RectArithmetic *saved = it->data; if (!RECT_INTERSECTS_RECT(saved->r, on_current_monitor)) continue; /* we are going to subtract our rect from future monitors, but part of it may already be being subtracted/added, so compensate to not double add/subtract. */ RectArithmetic *reverse = g_slice_new(RectArithmetic); RECT_SET_INTERSECTION(reverse->r, saved->r, on_current_monitor); reverse->subtract = !saved->subtract; /* prepend so we can continue thru the list uninterupted */ counted = g_slist_prepend(counted, reverse); } { RectArithmetic *ra = g_slice_new(RectArithmetic); ra->r = on_current_monitor; ra->subtract = TRUE; counted = g_slist_prepend(counted, ra); } } while (counted) { g_slice_free(RectArithmetic, counted->data); counted = g_slist_delete_link(counted, counted); } if (mostpx_index < screen_num_monitors) return mostpx_index; g_assert(closest_distance_index < screen_num_monitors); return closest_distance_index; } const Rect* screen_physical_area_all_monitors(void) { return screen_physical_area_monitor(screen_num_monitors); } const Rect* screen_physical_area_monitor(guint head) { g_assert(head <= screen_num_monitors); return &monitor_area[head]; } gboolean screen_physical_area_monitor_contains(guint head, Rect *search) { g_assert(head <= screen_num_monitors); g_assert(search); return RECT_INTERSECTS_RECT(monitor_area[head], *search); } guint screen_monitor_active(void) { if (moveresize_client) return client_monitor(moveresize_client); else if (focus_client) return client_monitor(focus_client); else return screen_monitor_pointer(); } const Rect* screen_physical_area_active(void) { return screen_physical_area_monitor(screen_monitor_active()); } guint screen_monitor_primary(gboolean fixed) { if (config_primary_monitor_index > 0) { if (config_primary_monitor_index-1 < screen_num_monitors) return config_primary_monitor_index - 1; else return 0; } else if (fixed) return 0; else if (config_primary_monitor == OB_PLACE_MONITOR_ACTIVE) return screen_monitor_active(); else /* config_primary_monitor == OB_PLACE_MONITOR_MOUSE */ return screen_monitor_pointer(); } const Rect* screen_physical_area_primary(gboolean fixed) { return screen_physical_area_monitor(screen_monitor_primary(fixed)); } void screen_set_root_cursor(void) { if (sn_app_starting()) XDefineCursor(obt_display, obt_root(ob_screen), ob_cursor(OB_CURSOR_BUSYPOINTER)); else XDefineCursor(obt_display, obt_root(ob_screen), ob_cursor(OB_CURSOR_POINTER)); } guint screen_find_monitor_point(guint x, guint y) { Rect mon; RECT_SET(mon, x, y, 1, 1); return screen_find_monitor(&mon); } guint screen_monitor_pointer() { gint x, y; if (!screen_pointer_pos(&x, &y)) x = y = 0; return screen_find_monitor_point(x, y); } gboolean screen_pointer_pos(gint *x, gint *y) { Window w; gint i; guint u; gboolean ret; ret = !!XQueryPointer(obt_display, obt_root(ob_screen), &w, &w, x, y, &i, &i, &u); if (!ret) { for (i = 0; i < ScreenCount(obt_display); ++i) if (i != ob_screen) if (XQueryPointer(obt_display, obt_root(i), &w, &w, x, y, &i, &i, &u)) break; } return ret; } gboolean screen_compare_desktops(guint a, guint b) { if (a == DESKTOP_ALL) a = screen_desktop; if (b == DESKTOP_ALL) b = screen_desktop; return a == b; } void screen_apply_gravity_point(gint *x, gint *y, gint width, gint height, const GravityPoint *position, const Rect *area) { if (position->x.center) *x = area->width / 2 - width / 2; else { *x = position->x.pos; if (position->x.denom) *x = (*x * area->width) / position->x.denom; if (position->x.opposite) *x = area->width - width - *x; } if (position->y.center) *y = area->height / 2 - height / 2; else { *y = position->y.pos; if (position->y.denom) *y = (*y * area->height) / position->y.denom; if (position->y.opposite) *y = area->height - height - *y; } *x += area->x; *y += area->y; } openbox-3.6.1/openbox/screen.h0000644000175300001440000001603712426440016013223 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- screen.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __screen_h #define __screen_h #include "misc.h" #include "geom.h" struct _ObClient; #define DESKTOP_ALL (0xffffffff) typedef enum { SCREEN_SHOW_DESKTOP_NO, SCREEN_SHOW_DESKTOP_UNTIL_WINDOW, SCREEN_SHOW_DESKTOP_UNTIL_TOGGLE } ObScreenShowDestopMode; /*! The number of available desktops */ extern guint screen_num_desktops; /*! The number of virtual "xinerama" screens/heads */ extern guint screen_num_monitors; /*! The current desktop */ extern guint screen_desktop; /*! The desktop which was last visible */ extern guint screen_last_desktop; /*! Are we in showing-desktop mode? */ extern ObScreenShowDestopMode screen_show_desktop_mode; /*! The support window also used for focus and stacking */ extern Window screen_support_win; /*! The last time at which the user changed desktops */ extern Time screen_desktop_user_time; typedef struct ObDesktopLayout { ObOrientation orientation; ObCorner start_corner; guint rows; guint columns; } ObDesktopLayout; extern ObDesktopLayout screen_desktop_layout; /*! An array of gchar*'s which are desktop names in UTF-8 format */ extern gchar **screen_desktop_names; /*! Take over the screen, set the basic hints on it claming it as ours */ gboolean screen_annex(void); /*! Once the screen is ours, set up its initial state */ void screen_startup(gboolean reconfig); /*! Free resources */ void screen_shutdown(gboolean reconfig); /*! Figure out the new size of the screen and adjust stuff for it */ void screen_resize(void); /*! Change the number of available desktops */ void screen_set_num_desktops(guint num); /*! Change the current desktop */ void screen_set_desktop(guint num, gboolean dofocus); /*! Add a new desktop either at the end or inserted at the current desktop */ void screen_add_desktop(gboolean current); /*! Remove a desktop, either at the end or the current desktop */ void screen_remove_desktop(gboolean current); guint screen_find_desktop(guint from, ObDirection dir, gboolean wrap, gboolean linear); /*! Show the desktop popup/notification @permanent If TRUE, the popup will stay on the screen until you call screen_hide_desktop_popup(). Otherwise it will hide after a delay. */ void screen_show_desktop_popup(guint d, gboolean permanent); /*! Hide it */ void screen_hide_desktop_popup(void); /*! Shows and focuses the desktop and hides all the client windows, or returns to the normal state, showing client windows. @param If show_only is non-NULL, then only that client is shown (assuming show is FALSE (restoring from show-desktop mode), and the rest are iconified. */ void screen_show_desktop(ObScreenShowDestopMode show_mode, struct _ObClient *show_only); /*! Returns true if showing desktop mode is enabled. */ gboolean screen_showing_desktop(); /*! Updates the desktop layout from the root property if available */ void screen_update_layout(void); /*! Get desktop names from the root window property */ void screen_update_desktop_names(void); /*! Installs or uninstalls a colormap for a client. If client is NULL, then it handles the root colormap. */ void screen_install_colormap(struct _ObClient *client, gboolean install); void screen_update_areas(void); const Rect* screen_physical_area_all_monitors(void); /*! Returns a Rect which is owned by the screen code and should not be freed */ const Rect* screen_physical_area_monitor(guint head); /*! Returns the monitor which contains the active window, or the one containing the pointer otherwise. */ guint screen_monitor_active(void); /*! Returns a Rect which is owned by the screen code and should not be freed */ const Rect* screen_physical_area_active(void); /*! Returns the primary monitor, as specified by the config. @fixed If TRUE, then this will always return a fixed monitor, otherwise it may change based on where focus is, or other heuristics. */ guint screen_monitor_primary(gboolean fixed); /*! Returns physical area for the primary monitor, as specified by the config. @fixed If TRUE, then this will always use a fixed monitor as primary, otherwise it may change based on where focus is, or other heuristics. See screen_monitor_primary(). @return A Rect which is owned by the screen code and should not be freed */ const Rect* screen_physical_area_primary(gboolean fixed); /* doesn't include struts which the search area is already outside of when 'search' is not NULL */ #define SCREEN_AREA_ALL_MONITORS ((unsigned)-1) #define SCREEN_AREA_ONE_MONITOR ((unsigned)-2) /*! @param head is the number of the head or one of SCREEN_AREA_ALL_MONITORS, SCREEN_AREA_ONE_MONITOR @param search NULL or the whole monitor(s) @return A Rect allocated with g_slice_new() */ Rect* screen_area(guint desktop, guint head, Rect *search); gboolean screen_physical_area_monitor_contains(guint head, Rect *search); /*! Determines which physical monitor a rectangle is on by calculating the area of the part of the rectable on each monitor. The number of the monitor containing the greatest area of the rectangle is returned. */ guint screen_find_monitor(const Rect *search); /*! Finds the monitor which contains the point @x, @y */ guint screen_find_monitor_point(guint x, guint y); /*! Sets the root cursor. This function decides which cursor to use, but you gotta call it to let it know it should change. */ void screen_set_root_cursor(void); /*! Gives back the pointer's position in x and y. Returns TRUE if the pointer is on this screen and FALSE if it is on another screen. */ gboolean screen_pointer_pos(gint *x, gint *y); /*! Returns the monitor which contains the pointer device */ guint screen_monitor_pointer(void); /*! Compare the desktop for two windows to see if they are considered on the same desktop. Windows that are on "all desktops" are treated like they are only on the current desktop, so they are only in one place at a time. @return TRUE if they are on the same desktop, FALSE otherwise. */ gboolean screen_compare_desktops(guint a, guint b); /*! Resolve a gravity point into absolute coordinates. * width and height are the size of the object being placed, used for * aligning to right/bottom edges of the area. */ void screen_apply_gravity_point(gint *x, gint *y, gint width, gint height, const GravityPoint *position, const Rect *area); #endif openbox-3.6.1/openbox/session.c0000644000175300001440000006733312426440016013427 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- session.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ /* This session code is largely inspired by metacity code. */ #include "session.h" struct _ObClient; GList *session_saved_state = NULL; gint session_desktop = -1; gint session_num_desktops = 0; gboolean session_desktop_layout_present = FALSE; ObDesktopLayout session_desktop_layout; GSList *session_desktop_names = NULL; #ifndef USE_SM void session_startup(gint argc, gchar **argv) {} void session_shutdown(gboolean permanent) {} GList* session_state_find(struct _ObClient *c) { return NULL; } void session_request_logout(gboolean silent) {} gboolean session_connected(void) { return FALSE; } #else #include "debug.h" #include "openbox.h" #include "client.h" #include "focus.h" #include "gettext.h" #include "obt/xml.h" #include "obt/paths.h" #include #include #include #ifdef HAVE_UNISTD_H # include # include #endif #include #define SM_ERR_LEN 1024 static SmcConn sm_conn; static gint sm_argc; static gchar **sm_argv; /* Data saved from the first level save yourself */ typedef struct { ObClient *focus_client; gint desktop; } ObSMSaveData; static gboolean session_connect(); static void session_load_file(const gchar *path); static gboolean session_save_to_file(const ObSMSaveData *savedata); static void session_setup_program(); static void session_setup_user(); static void session_setup_restart_style(gboolean restart); static void session_setup_pid(); static void session_setup_priority(); static void session_setup_clone_command(); static void session_setup_restart_command(); static void sm_save_yourself(SmcConn conn, SmPointer data, gint save_type, Bool shutdown, gint interact_style, Bool fast); static void sm_die(SmcConn conn, SmPointer data); static void sm_save_complete(SmcConn conn, SmPointer data); static void sm_shutdown_cancelled(SmcConn conn, SmPointer data); static gboolean session_state_cmp(ObSessionState *s, ObClient *c); static void session_state_free(ObSessionState *state); void session_startup(gint argc, gchar **argv) { gchar *dir; ObtPaths *p; if (!ob_sm_use) return; sm_argc = argc; sm_argv = argv; p = obt_paths_new(); dir = g_build_filename(obt_paths_cache_home(p), "openbox", "sessions", NULL); obt_paths_unref(p), p = NULL; if (!obt_paths_mkdir_path(dir, 0700)) { g_message(_("Unable to make directory \"%s\": %s"), dir, g_strerror(errno)); } if (ob_sm_save_file != NULL) { if (ob_sm_restore) { ob_debug_type(OB_DEBUG_SM, "Loading from session file %s", ob_sm_save_file); session_load_file(ob_sm_save_file); } } else { gchar *filename; /* this algo is from metacity */ filename = g_strdup_printf("%u-%u-%u.obs", (guint)time(NULL), (guint)getpid(), g_random_int()); ob_sm_save_file = g_build_filename(dir, filename, NULL); g_free(filename); } if (session_connect()) { session_setup_program(); session_setup_user(); session_setup_restart_style(TRUE); session_setup_pid(); session_setup_priority(); session_setup_clone_command(); } g_free(dir); } void session_shutdown(gboolean permanent) { if (!ob_sm_use) return; if (sm_conn) { /* if permanent is true then we will change our session state so that the SM won't run us again */ if (permanent) session_setup_restart_style(FALSE); SmcCloseConnection(sm_conn, 0, NULL); while (session_saved_state) { session_state_free(session_saved_state->data); session_saved_state = g_list_delete_link(session_saved_state, session_saved_state); } } } gboolean session_connected(void) { return !!sm_conn; } /*! Connect to the session manager and set up our callback functions */ static gboolean session_connect(void) { SmcCallbacks cb; gchar *oldid; gchar sm_err[SM_ERR_LEN]; /* set up our callback functions */ cb.save_yourself.callback = sm_save_yourself; cb.save_yourself.client_data = NULL; cb.die.callback = sm_die; cb.die.client_data = NULL; cb.save_complete.callback = sm_save_complete; cb.save_complete.client_data = NULL; cb.shutdown_cancelled.callback = sm_shutdown_cancelled; cb.shutdown_cancelled.client_data = NULL; /* connect to the server */ oldid = ob_sm_id; ob_debug_type(OB_DEBUG_SM, "Connecting to SM with id: %s", oldid ? oldid : "(null)"); sm_conn = SmcOpenConnection(NULL, NULL, 1, 0, SmcSaveYourselfProcMask | SmcDieProcMask | SmcSaveCompleteProcMask | SmcShutdownCancelledProcMask, &cb, oldid, &ob_sm_id, SM_ERR_LEN-1, sm_err); g_free(oldid); ob_debug_type(OB_DEBUG_SM, "Connected to SM with id: %s", ob_sm_id); if (sm_conn == NULL) ob_debug("Failed to connect to session manager: %s", sm_err); return sm_conn != NULL; } static void session_setup_program(void) { SmPropValue vals = { .value = sm_argv[0], .length = strlen(sm_argv[0]) + 1 }; SmProp prop = { .name = g_strdup(SmProgram), .type = g_strdup(SmARRAY8), .num_vals = 1, .vals = &vals }; SmProp *list = ∝ ob_debug_type(OB_DEBUG_SM, "Setting program: %s", sm_argv[0]); SmcSetProperties(sm_conn, 1, &list); g_free(prop.name); g_free(prop.type); } static void session_setup_user(void) { char *user = g_strdup(g_get_user_name()); SmPropValue vals = { .value = user, .length = strlen(user) + 1 }; SmProp prop = { .name = g_strdup(SmUserID), .type = g_strdup(SmARRAY8), .num_vals = 1, .vals = &vals }; SmProp *list = ∝ ob_debug_type(OB_DEBUG_SM, "Setting user: %s", user); SmcSetProperties(sm_conn, 1, &list); g_free(prop.name); g_free(prop.type); g_free(user); } static void session_setup_restart_style(gboolean restart) { gchar restart_hint = restart ? SmRestartImmediately : SmRestartIfRunning; SmPropValue vals = { .value = &restart_hint, .length = 1 }; SmProp prop = { .name = g_strdup(SmRestartStyleHint), .type = g_strdup(SmCARD8), .num_vals = 1, .vals = &vals }; SmProp *list = ∝ ob_debug_type(OB_DEBUG_SM, "Setting restart: %d", restart); SmcSetProperties(sm_conn, 1, &list); g_free(prop.name); g_free(prop.type); } static void session_setup_pid(void) { gchar *pid = g_strdup_printf("%ld", (glong) getpid()); SmPropValue vals = { .value = pid, .length = strlen(pid) + 1 }; SmProp prop = { .name = g_strdup(SmProcessID), .type = g_strdup(SmARRAY8), .num_vals = 1, .vals = &vals }; SmProp *list = ∝ ob_debug_type(OB_DEBUG_SM, "Setting pid: %s", pid); SmcSetProperties(sm_conn, 1, &list); g_free(prop.name); g_free(prop.type); g_free(pid); } /*! This is a gnome-session-manager extension */ static void session_setup_priority(void) { gchar priority = 20; /* 20 is a lower prioity to run before other apps */ SmPropValue vals = { .value = &priority, .length = 1 }; SmProp prop = { .name = g_strdup("_GSM_Priority"), .type = g_strdup(SmCARD8), .num_vals = 1, .vals = &vals }; SmProp *list = ∝ ob_debug_type(OB_DEBUG_SM, "Setting priority: %d", priority); SmcSetProperties(sm_conn, 1, &list); g_free(prop.name); g_free(prop.type); } static void session_setup_clone_command(void) { gint i; SmPropValue *vals = g_new(SmPropValue, sm_argc); SmProp prop = { .name = g_strdup(SmCloneCommand), .type = g_strdup(SmLISTofARRAY8), .num_vals = sm_argc, .vals = vals }; SmProp *list = ∝ ob_debug_type(OB_DEBUG_SM, "Setting clone command: (%d)", sm_argc); for (i = 0; i < sm_argc; ++i) { vals[i].value = sm_argv[i]; vals[i].length = strlen(sm_argv[i]) + 1; ob_debug_type(OB_DEBUG_SM, " %s", vals[i].value); } SmcSetProperties(sm_conn, 1, &list); g_free(prop.name); g_free(prop.type); g_free(vals); } static void session_setup_restart_command(void) { gint i; SmPropValue *vals = g_new(SmPropValue, sm_argc + 4); SmProp prop = { .name = g_strdup(SmRestartCommand), .type = g_strdup(SmLISTofARRAY8), .num_vals = sm_argc + 4, .vals = vals }; SmProp *list = ∝ ob_debug_type(OB_DEBUG_SM, "Setting restart command: (%d)", sm_argc+4); for (i = 0; i < sm_argc; ++i) { vals[i].value = sm_argv[i]; vals[i].length = strlen(sm_argv[i]) + 1; ob_debug_type(OB_DEBUG_SM, " %s", vals[i].value); } vals[i].value = g_strdup("--sm-client-id"); vals[i].length = strlen("--sm-client-id") + 1; vals[i+1].value = ob_sm_id; vals[i+1].length = strlen(ob_sm_id) + 1; ob_debug_type(OB_DEBUG_SM, " %s", vals[i].value); ob_debug_type(OB_DEBUG_SM, " %s", vals[i+1].value); vals[i+2].value = g_strdup("--sm-save-file"); vals[i+2].length = strlen("--sm-save-file") + 1; vals[i+3].value = ob_sm_save_file; vals[i+3].length = strlen(ob_sm_save_file) + 1; ob_debug_type(OB_DEBUG_SM, " %s", vals[i+2].value); ob_debug_type(OB_DEBUG_SM, " %s", vals[i+3].value); SmcSetProperties(sm_conn, 1, &list); g_free(prop.name); g_free(prop.type); g_free(vals[i].value); g_free(vals[i+2].value); g_free(vals); } static ObSMSaveData *sm_save_get_data(void) { ObSMSaveData *savedata = g_slice_new0(ObSMSaveData); /* save the active desktop and client. we don't bother to preemptively save the other desktop state like number and names of desktops, cuz those shouldn't be changing during the save.. */ savedata->focus_client = focus_client; savedata->desktop = screen_desktop; return savedata; } static void sm_save_yourself_2(SmcConn conn, SmPointer data) { gboolean success; ObSMSaveData *savedata = data; /* save the current state */ ob_debug_type(OB_DEBUG_SM, "Session save phase 2 requested"); ob_debug_type(OB_DEBUG_SM, " Saving session to file '%s'", ob_sm_save_file); if (savedata == NULL) savedata = sm_save_get_data(); success = session_save_to_file(savedata); g_slice_free(ObSMSaveData, savedata); /* tell the session manager how to restore this state */ if (success) session_setup_restart_command(); ob_debug_type(OB_DEBUG_SM, "Saving is done (success = %d)", success); SmcSaveYourselfDone(conn, success); } static void sm_save_yourself(SmcConn conn, SmPointer data, gint save_type, Bool shutdown, gint interact_style, Bool fast) { ObSMSaveData *savedata = NULL; gchar *vendor; #ifdef DEBUG { const gchar *sname = (save_type == SmSaveLocal ? "SmSaveLocal" : (save_type == SmSaveGlobal ? "SmSaveGlobal" : (save_type == SmSaveBoth ? "SmSaveBoth" : "INVALID!!"))); ob_debug_type(OB_DEBUG_SM, "Session save requested, type %s", sname); } #endif if (save_type == SmSaveGlobal) { /* we have no data to save. we only store state to get back to where we were, we don't keep open writable files or anything */ SmcSaveYourselfDone(conn, TRUE); return; } vendor = SmcVendor(sm_conn); ob_debug_type(OB_DEBUG_SM, "Session manager's vendor: %s", vendor); if (!strcmp(vendor, "KDE")) { /* ksmserver guarantees that phase 1 will complete before allowing any clients interaction, so we can save this sanely here before they get messed up from interaction */ savedata = sm_save_get_data(); } free(vendor); if (!SmcRequestSaveYourselfPhase2(conn, sm_save_yourself_2, savedata)) { ob_debug_type(OB_DEBUG_SM, "Requst for phase 2 failed"); g_slice_free(ObSMSaveData, savedata); SmcSaveYourselfDone(conn, FALSE); } } static void sm_die(SmcConn conn, SmPointer data) { ob_debug_type(OB_DEBUG_SM, "Die requested"); ob_exit(0); } static void sm_save_complete(SmcConn conn, SmPointer data) { ob_debug_type(OB_DEBUG_SM, "Save complete"); } static void sm_shutdown_cancelled(SmcConn conn, SmPointer data) { ob_debug_type(OB_DEBUG_SM, "Shutdown cancelled"); } static gboolean session_save_to_file(const ObSMSaveData *savedata) { FILE *f; GList *it; gboolean success = TRUE; f = fopen(ob_sm_save_file, "w"); if (!f) { success = FALSE; g_message(_("Unable to save the session to \"%s\": %s"), ob_sm_save_file, g_strerror(errno)); } else { fprintf(f, "\n\n"); fprintf(f, "\n\n"); fprintf(f, "%d\n", savedata->desktop); fprintf(f, "%d\n", screen_num_desktops); fprintf(f, "\n"); fprintf(f, " %d\n", screen_desktop_layout.orientation); fprintf(f, " %d\n", screen_desktop_layout.start_corner); fprintf(f, " %d\n", screen_desktop_layout.columns); fprintf(f, " %d\n", screen_desktop_layout.rows); fprintf(f, "\n"); if (screen_desktop_names) { gint i; gchar *t; fprintf(f, "\n"); for (i = 0; screen_desktop_names[i]; ++i){ t = g_markup_escape_text(screen_desktop_names[i], -1); fprintf(f, " %s\n", t); g_free(t); } fprintf(f, "\n"); } /* they are ordered top to bottom in stacking order */ for (it = stacking_list; it; it = g_list_next(it)) { gint prex, prey, prew, preh; ObClient *c; gchar *t; if (WINDOW_IS_CLIENT(it->data)) c = WINDOW_AS_CLIENT(it->data); else continue; if (!client_normal(c)) continue; if (!c->sm_client_id) { ob_debug_type(OB_DEBUG_SM, "Client %s does not have a " "session id set", c->title); if (!c->wm_command) { ob_debug_type(OB_DEBUG_SM, "Client %s does not have an " "oldskool wm_command set either. We won't " "be saving its data", c->title); continue; } } ob_debug_type(OB_DEBUG_SM, "Saving state for client %s", c->title); prex = c->area.x; prey = c->area.y; prew = c->area.width; preh = c->area.height; if (c->fullscreen) { prex = c->pre_fullscreen_area.x; prey = c->pre_fullscreen_area.x; prew = c->pre_fullscreen_area.width; preh = c->pre_fullscreen_area.height; } if (c->max_horz) { prex = c->pre_max_area.x; prew = c->pre_max_area.width; } if (c->max_vert) { prey = c->pre_max_area.y; preh = c->pre_max_area.height; } if (c->sm_client_id) fprintf(f, "\n", c->sm_client_id); else { t = g_markup_escape_text(c->wm_command, -1); fprintf(f, "\n", t); g_free(t); } t = g_markup_escape_text(c->name, -1); fprintf(f, "\t%s\n", t); g_free(t); t = g_markup_escape_text(c->class, -1); fprintf(f, "\t%s\n", t); g_free(t); t = g_markup_escape_text(c->role, -1); fprintf(f, "\t%s\n", t); g_free(t); fprintf(f, "\t%d\n", c->type); fprintf(f, "\t%d\n", c->desktop); fprintf(f, "\t%d\n", prex); fprintf(f, "\t%d\n", prey); fprintf(f, "\t%d\n", prew); fprintf(f, "\t%d\n", preh); if (c->shaded) fprintf(f, "\t\n"); if (c->iconic) fprintf(f, "\t\n"); if (c->skip_pager) fprintf(f, "\t\n"); if (c->skip_taskbar) fprintf(f, "\t\n"); if (c->fullscreen) fprintf(f, "\t\n"); if (c->above) fprintf(f, "\t\n"); if (c->below) fprintf(f, "\t\n"); if (c->max_horz) fprintf(f, "\t\n"); if (c->max_vert) fprintf(f, "\t\n"); if (c->undecorated) fprintf(f, "\t\n"); if (savedata->focus_client == c) fprintf(f, "\t\n"); fprintf(f, "\n\n"); } fprintf(f, "\n"); if (fflush(f)) { success = FALSE; g_message(_("Error while saving the session to \"%s\": %s"), ob_sm_save_file, g_strerror(errno)); } fclose(f); } return success; } static void session_state_free(ObSessionState *state) { if (state) { g_free(state->id); g_free(state->command); g_free(state->name); g_free(state->class); g_free(state->role); g_slice_free(ObSessionState, state); } } static gboolean session_state_cmp(ObSessionState *s, ObClient *c) { ob_debug_type(OB_DEBUG_SM, "Comparing client against saved state: "); ob_debug_type(OB_DEBUG_SM, " client id: %s ", c->sm_client_id); ob_debug_type(OB_DEBUG_SM, " client name: %s ", c->name); ob_debug_type(OB_DEBUG_SM, " client class: %s ", c->class); ob_debug_type(OB_DEBUG_SM, " client role: %s ", c->role); ob_debug_type(OB_DEBUG_SM, " client type: %d ", c->type); ob_debug_type(OB_DEBUG_SM, " client command: %s ", c->wm_command ? c->wm_command : "(null)"); ob_debug_type(OB_DEBUG_SM, " state id: %s ", s->id); ob_debug_type(OB_DEBUG_SM, " state name: %s ", s->name); ob_debug_type(OB_DEBUG_SM, " state class: %s ", s->class); ob_debug_type(OB_DEBUG_SM, " state role: %s ", s->role); ob_debug_type(OB_DEBUG_SM, " state type: %d ", s->type); ob_debug_type(OB_DEBUG_SM, " state command: %s ", s->command ? s->command : "(null)"); if ((c->sm_client_id && s->id && !strcmp(c->sm_client_id, s->id)) || (c->wm_command && s->command && !strcmp(c->wm_command, s->command))) { return (!strcmp(s->name, c->name) && !strcmp(s->class, c->class) && !strcmp(s->role, c->role) && /* the check for type is to catch broken clients, like firefox, which open a different window on startup with the same info as the one we saved. only do this check for old windows that dont use xsmp, others should know better ! */ (!s->command || c->type == s->type)); } return FALSE; } GList* session_state_find(ObClient *c) { GList *it; for (it = session_saved_state; it; it = g_list_next(it)) { ObSessionState *s = it->data; if (!s->matched && session_state_cmp(s, c)) { s->matched = TRUE; break; } } return it; } static void session_load_file(const gchar *path) { ObtXmlInst *i; xmlNodePtr node, n, m; GList *it, *inext; i = obt_xml_instance_new(); if (!obt_xml_load_file(i, path, "openbox_session")) { ob_debug_type(OB_DEBUG_SM, "ERROR: session file is missing root node"); obt_xml_instance_unref(i); return; } node = obt_xml_root(i); if ((n = obt_xml_find_node(node->children, "desktop"))) session_desktop = obt_xml_node_int(n); if ((n = obt_xml_find_node(node->children, "numdesktops"))) session_num_desktops = obt_xml_node_int(n); if ((n = obt_xml_find_node(node->children, "desktoplayout"))) { /* make sure they are all there for it to be valid */ if ((m = obt_xml_find_node(n->children, "orientation"))) session_desktop_layout.orientation = obt_xml_node_int(m); if (m && (m = obt_xml_find_node(n->children, "startcorner"))) session_desktop_layout.start_corner = obt_xml_node_int(m); if (m && (m = obt_xml_find_node(n->children, "columns"))) session_desktop_layout.columns = obt_xml_node_int(m); if (m && (m = obt_xml_find_node(n->children, "rows"))) session_desktop_layout.rows = obt_xml_node_int(m); session_desktop_layout_present = m != NULL; } if ((n = obt_xml_find_node(node->children, "desktopnames"))) { for (m = obt_xml_find_node(n->children, "name"); m; m = obt_xml_find_node(m->next, "name")) { session_desktop_names = g_slist_append(session_desktop_names, obt_xml_node_string(m)); } } ob_debug_type(OB_DEBUG_SM, "loading windows"); for (node = obt_xml_find_node(node->children, "window"); node != NULL; node = obt_xml_find_node(node->next, "window")) { ObSessionState *state; state = g_slice_new0(ObSessionState); if (!obt_xml_attr_string(node, "id", &state->id)) if (!obt_xml_attr_string(node, "command", &state->command)) goto session_load_bail; if (!(n = obt_xml_find_node(node->children, "name"))) goto session_load_bail; state->name = obt_xml_node_string(n); if (!(n = obt_xml_find_node(node->children, "class"))) goto session_load_bail; state->class = obt_xml_node_string(n); if (!(n = obt_xml_find_node(node->children, "role"))) goto session_load_bail; state->role = obt_xml_node_string(n); if (!(n = obt_xml_find_node(node->children, "windowtype"))) goto session_load_bail; state->type = obt_xml_node_int(n); if (!(n = obt_xml_find_node(node->children, "desktop"))) goto session_load_bail; state->desktop = obt_xml_node_int(n); if (!(n = obt_xml_find_node(node->children, "x"))) goto session_load_bail; state->x = obt_xml_node_int(n); if (!(n = obt_xml_find_node(node->children, "y"))) goto session_load_bail; state->y = obt_xml_node_int(n); if (!(n = obt_xml_find_node(node->children, "width"))) goto session_load_bail; state->w = obt_xml_node_int(n); if (!(n = obt_xml_find_node(node->children, "height"))) goto session_load_bail; state->h = obt_xml_node_int(n); state->shaded = obt_xml_find_node(node->children, "shaded") != NULL; state->iconic = obt_xml_find_node(node->children, "iconic") != NULL; state->skip_pager = obt_xml_find_node(node->children, "skip_pager") != NULL; state->skip_taskbar = obt_xml_find_node(node->children, "skip_taskbar") != NULL; state->fullscreen = obt_xml_find_node(node->children, "fullscreen") != NULL; state->above = obt_xml_find_node(node->children, "above") != NULL; state->below = obt_xml_find_node(node->children, "below") != NULL; state->max_horz = obt_xml_find_node(node->children, "max_horz") != NULL; state->max_vert = obt_xml_find_node(node->children, "max_vert") != NULL; state->undecorated = obt_xml_find_node(node->children, "undecorated") != NULL; state->focused = obt_xml_find_node(node->children, "focused") != NULL; /* save this. they are in the file in stacking order, so preserve that order here */ session_saved_state = g_list_append(session_saved_state, state); ob_debug_type(OB_DEBUG_SM, "loaded %s", state->name); continue; session_load_bail: ob_debug_type(OB_DEBUG_SM, "loading FAILED"); session_state_free(state); } /* Remove any duplicates. This means that if two windows (or more) are saved with the same session state, we won't restore a session for any of them because we don't know what window to put what on. AHEM FIREFOX. This is going to be an O(2^n) kind of operation unfortunately. */ for (it = session_saved_state; it; it = inext) { GList *jt, *jnext; gboolean founddup = FALSE; ObSessionState *s1 = it->data; inext = g_list_next(it); for (jt = g_list_next(it); jt; jt = jnext) { ObSessionState *s2 = jt->data; gboolean match; jnext = g_list_next(jt); if (s1->id && s2->id) match = strcmp(s1->id, s2->id) == 0; else if (s1->command && s2->command) match = strcmp(s1->command, s2->command) == 0; else match = FALSE; if (match && !strcmp(s1->name, s2->name) && !strcmp(s1->class, s2->class) && !strcmp(s1->role, s2->role)) { ob_debug_type(OB_DEBUG_SM, "removing duplicate %s", s2->name); session_state_free(s2); session_saved_state = g_list_delete_link(session_saved_state, jt); founddup = TRUE; } } if (founddup) { ob_debug_type(OB_DEBUG_SM, "removing duplicate %s", s1->name); session_state_free(s1); session_saved_state = g_list_delete_link(session_saved_state, it); } } obt_xml_instance_unref(i); } void session_request_logout(gboolean silent) { if (sm_conn) { SmcRequestSaveYourself(sm_conn, SmSaveGlobal, TRUE, /* logout */ (silent ? SmInteractStyleNone : SmInteractStyleAny), TRUE, /* if false, with GSM, it shows the old logout prompt */ TRUE); /* global */ } else g_message(_("Not connected to a session manager")); } #endif openbox-3.6.1/openbox/session.h0000644000175300001440000000333612426440016013425 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- session.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __ob__session_h #define __ob__session_h #include "client.h" #include "screen.h" #include typedef struct _ObSessionState ObSessionState; struct _ObSessionState { gchar *id, *command, *name, *class, *role; ObClientType type; guint desktop; gint x, y, w, h; gboolean shaded, iconic, skip_pager, skip_taskbar, fullscreen; gboolean above, below, max_horz, max_vert, undecorated; gboolean focused; gboolean matched; }; /*! The desktop being viewed when the session was saved. A valud of -1 means it was not saved */ extern gint session_desktop; extern gint session_num_desktops; extern gboolean session_desktop_layout_present; extern ObDesktopLayout session_desktop_layout; extern GSList *session_desktop_names; extern GList *session_saved_state; void session_startup(gint argc, gchar **argv); void session_shutdown(gboolean permanent); GList* session_state_find(struct _ObClient *c); void session_request_logout(gboolean silent); gboolean session_connected(void); #endif openbox-3.6.1/openbox/stacking.c0000644000175300001440000006102012426440016013532 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- stacking.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "openbox.h" #include "screen.h" #include "focus.h" #include "client.h" #include "group.h" #include "frame.h" #include "window.h" #include "event.h" #include "debug.h" #include "dock.h" #include "config.h" #include "obt/prop.h" GList *stacking_list = NULL; GList *stacking_list_tail = NULL; /*! When true, stacking changes will not be reflected on the screen. This is to freeze the on-screen stacking order while a window is being temporarily raised during focus cycling */ static gboolean pause_changes = FALSE; void stacking_set_list(void) { Window *windows = NULL; GList *it; guint i = 0; /* on shutdown, don't update the properties, so that we can read it back in on startup and re-stack the windows as they were before we shut down */ if (ob_state() == OB_STATE_EXITING) return; /* create an array of the window ids (from bottom to top, reverse order!) */ if (stacking_list) { windows = g_new(Window, g_list_length(stacking_list)); for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) { if (WINDOW_IS_CLIENT(it->data)) windows[i++] = WINDOW_AS_CLIENT(it->data)->window; } } OBT_PROP_SETA32(obt_root(ob_screen), NET_CLIENT_LIST_STACKING, WINDOW, (gulong*)windows, i); g_free(windows); } static void do_restack(GList *wins, GList *before) { GList *it; Window *win; gint i; #ifdef DEBUG GList *next; g_assert(wins); /* pls only restack stuff in the same layer at a time */ for (it = wins; it; it = next) { next = g_list_next(it); if (!next) break; g_assert (window_layer(it->data) == window_layer(next->data)); } if (before) g_assert(window_layer(it->data) >= window_layer(before->data)); #endif win = g_new(Window, g_list_length(wins) + 1); if (before == stacking_list) win[0] = screen_support_win; else if (!before) win[0] = window_top(g_list_last(stacking_list)->data); else win[0] = window_top(g_list_previous(before)->data); for (i = 1, it = wins; it; ++i, it = g_list_next(it)) { win[i] = window_top(it->data); g_assert(win[i] != None); /* better not call stacking shit before setting your top level window value */ stacking_list = g_list_insert_before(stacking_list, before, it->data); } #ifdef DEBUG /* some debug checking of the stacking list's order */ for (it = stacking_list; ; it = next) { next = g_list_next(it); if (!next) break; g_assert(window_layer(it->data) >= window_layer(next->data)); } #endif if (!pause_changes) XRestackWindows(obt_display, win, i); g_free(win); stacking_set_list(); } void stacking_temp_raise(ObWindow *window) { Window win[2]; GList *it; gulong start; /* don't use this for internal windows..! it would lower them.. */ g_assert(window_layer(window) < OB_STACKING_LAYER_INTERNAL); /* find the window to drop it underneath */ win[0] = screen_support_win; for (it = stacking_list; it; it = g_list_next(it)) { ObWindow *w = it->data; if (window_layer(w) >= OB_STACKING_LAYER_INTERNAL) win[0] = window_top(w); else break; } win[1] = window_top(window); start = event_start_ignore_all_enters(); XRestackWindows(obt_display, win, 2); event_end_ignore_all_enters(start); pause_changes = TRUE; } void stacking_restore(void) { Window *win; GList *it; gint i; gulong start; win = g_new(Window, g_list_length(stacking_list) + 1); win[0] = screen_support_win; for (i = 1, it = stacking_list; it; ++i, it = g_list_next(it)) win[i] = window_top(it->data); start = event_start_ignore_all_enters(); XRestackWindows(obt_display, win, i); event_end_ignore_all_enters(start); g_free(win); pause_changes = FALSE; } static void do_raise(GList *wins) { GList *it; GList *layer[OB_NUM_STACKING_LAYERS] = {NULL}; gint i; for (it = wins; it; it = g_list_next(it)) { ObStackingLayer l; l = window_layer(it->data); layer[l] = g_list_append(layer[l], it->data); } it = stacking_list; for (i = OB_NUM_STACKING_LAYERS - 1; i >= 0; --i) { if (layer[i]) { for (; it; it = g_list_next(it)) { /* look for the top of the layer */ if (window_layer(it->data) <= (ObStackingLayer) i) break; } do_restack(layer[i], it); g_list_free(layer[i]); } } } static void do_lower(GList *wins) { GList *it; GList *layer[OB_NUM_STACKING_LAYERS] = {NULL}; gint i; for (it = wins; it; it = g_list_next(it)) { ObStackingLayer l; l = window_layer(it->data); layer[l] = g_list_append(layer[l], it->data); } it = stacking_list; for (i = OB_NUM_STACKING_LAYERS - 1; i >= 0; --i) { if (layer[i]) { for (; it; it = g_list_next(it)) { /* look for the top of the next layer down */ if (window_layer(it->data) < (ObStackingLayer) i) break; } do_restack(layer[i], it); g_list_free(layer[i]); } } } static void restack_windows(ObClient *selected, gboolean raise) { GList *it, *last, *below, *above, *next; GList *wins = NULL; GList *group_helpers = NULL; GList *group_modals = NULL; GList *group_trans = NULL; GList *modals = NULL; GList *trans = NULL; if (raise) { ObClient *p; /* if a window is modal for another single window, then raise it to the top too, the same is done with the focus order */ while (selected->modal && (p = client_direct_parent(selected))) selected = p; } /* remove first so we can't run into ourself */ it = g_list_find(stacking_list, selected); g_assert(it); stacking_list = g_list_delete_link(stacking_list, it); /* go from the bottom of the stacking list up. don't move any other windows when lowering, we call this for each window independently */ if (raise) { for (it = g_list_last(stacking_list); it; it = next) { next = g_list_previous(it); if (WINDOW_IS_CLIENT(it->data)) { ObClient *ch = it->data; /* only move windows in the same stacking layer */ if (ch->layer == selected->layer && /* looking for windows that are transients, and so would remain above the selected window */ client_search_transient(selected, ch)) { if (client_is_direct_child(selected, ch)) { if (ch->modal) modals = g_list_prepend(modals, ch); else trans = g_list_prepend(trans, ch); } else if (client_helper(ch)) { if (selected->transient) { /* helpers do not stay above transient windows */ continue; } group_helpers = g_list_prepend(group_helpers, ch); } else { if (ch->modal) group_modals = g_list_prepend(group_modals, ch); else group_trans = g_list_prepend(group_trans, ch); } stacking_list = g_list_delete_link(stacking_list, it); } } } } /* put modals above other direct transients */ wins = g_list_concat(modals, trans); /* put helpers below direct transients */ wins = g_list_concat(wins, group_helpers); /* put the selected window right below these children */ wins = g_list_append(wins, selected); /* if selected window is transient for group then raise it above others */ if (selected->transient_for_group) { /* if it's modal, raise it above those also */ if (selected->modal) { wins = g_list_concat(wins, group_modals); group_modals = NULL; } wins = g_list_concat(wins, group_trans); group_trans = NULL; } /* find where to put the selected window, start from bottom of list, this is the window below everything we are re-adding to the list */ last = NULL; for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) { if (window_layer(it->data) < selected->layer) { last = it; continue; } /* if lowering, stop at the beginning of the layer */ if (!raise) break; /* if raising, stop at the end of the layer */ if (window_layer(it->data) > selected->layer) break; last = it; } /* save this position in the stacking list */ below = last; /* find where to put the group transients, start from the top of list */ for (it = stacking_list; it; it = g_list_next(it)) { /* skip past higher layers */ if (window_layer(it->data) > selected->layer) continue; /* if we reach the end of the layer (how?) then don't go further */ if (window_layer(it->data) < selected->layer) break; /* stop when we reach the first window in the group */ if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; if (c->group == selected->group) break; } /* if we don't hit any other group members, stop here because this is where we are putting the selected window (and its children) */ if (it == below) break; } /* save this position, this is the top of the group of windows between the group transient ones we're restacking and the others up above that we're restacking we actually want to save 1 position _above_ that, for for loops to work nicely, so move back one position in the list while saving it */ above = it ? g_list_previous(it) : g_list_last(stacking_list); /* put the windows inside the gap to the other windows we're stacking into the restacking list, go from the bottom up so that we can use g_list_prepend */ if (below) it = g_list_previous(below); else it = g_list_last(stacking_list); for (; it != above; it = next) { next = g_list_previous(it); wins = g_list_prepend(wins, it->data); stacking_list = g_list_delete_link(stacking_list, it); } /* group transients go above the rest of the stuff acquired to now */ wins = g_list_concat(group_trans, wins); /* group modals go on the very top */ wins = g_list_concat(group_modals, wins); do_restack(wins, below); g_list_free(wins); /* lower our parents after us, so they go below us */ if (!raise && selected->parents) { GSList *parents_copy, *sit; GSList *reorder = NULL; parents_copy = g_slist_copy(selected->parents); /* go thru stacking list backwards so we can use g_slist_prepend */ for (it = g_list_last(stacking_list); it && parents_copy; it = g_list_previous(it)) if ((sit = g_slist_find(parents_copy, it->data))) { reorder = g_slist_prepend(reorder, sit->data); parents_copy = g_slist_delete_link(parents_copy, sit); } g_assert(parents_copy == NULL); /* call restack for each of these to lower them */ for (sit = reorder; sit; sit = g_slist_next(sit)) restack_windows(sit->data, raise); } } void stacking_raise(ObWindow *window) { if (WINDOW_IS_CLIENT(window)) { ObClient *selected; selected = WINDOW_AS_CLIENT(window); restack_windows(selected, TRUE); } else { GList *wins; wins = g_list_append(NULL, window); stacking_list = g_list_remove(stacking_list, window); do_raise(wins); g_list_free(wins); } stacking_list_tail = g_list_last(stacking_list); } void stacking_lower(ObWindow *window) { if (WINDOW_IS_CLIENT(window)) { ObClient *selected; selected = WINDOW_AS_CLIENT(window); restack_windows(selected, FALSE); } else { GList *wins; wins = g_list_append(NULL, window); stacking_list = g_list_remove(stacking_list, window); do_lower(wins); g_list_free(wins); } stacking_list_tail = g_list_last(stacking_list); } void stacking_below(ObWindow *window, ObWindow *below) { GList *wins, *before; if (window_layer(window) != window_layer(below)) return; wins = g_list_append(NULL, window); stacking_list = g_list_remove(stacking_list, window); before = g_list_next(g_list_find(stacking_list, below)); do_restack(wins, before); g_list_free(wins); stacking_list_tail = g_list_last(stacking_list); } void stacking_add(ObWindow *win) { g_assert(screen_support_win != None); /* make sure I dont break this in the future */ /* don't add windows that are being unmanaged ! */ if (WINDOW_IS_CLIENT(win)) g_assert(WINDOW_AS_CLIENT(win)->managed); stacking_list = g_list_append(stacking_list, win); stacking_raise(win); /* stacking_list_tail set by stacking_raise() */ } static GList *find_highest_relative(ObClient *client) { GList *ret = NULL; if (client->parents) { GList *it; GSList *top; /* get all top level relatives of this client */ top = client_search_all_top_parents_layer(client); /* go from the top of the stacking order down */ for (it = stacking_list; !ret && it; it = g_list_next(it)) { if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; /* only look at windows in the same layer and that are visible */ if (c->layer == client->layer && !c->iconic && (c->desktop == client->desktop || c->desktop == DESKTOP_ALL || client->desktop == DESKTOP_ALL)) { GSList *sit; /* go through each top level parent and see it this window is related to them */ for (sit = top; !ret && sit; sit = g_slist_next(sit)) { ObClient *topc = sit->data; /* are they related ? */ if (topc == c || client_search_transient(topc, c)) ret = it; } } } } } return ret; } void stacking_add_nonintrusive(ObWindow *win) { ObClient *client; GList *it_below = NULL; /* this client will be below us */ GList *it_above; GList *wins; if (!WINDOW_IS_CLIENT(win)) { stacking_add(win); /* no special rules for others */ return; } client = WINDOW_AS_CLIENT(win); /* don't add windows that are being unmanaged ! */ g_assert(client->managed); /* insert above its highest parent (or its highest child !) */ it_below = find_highest_relative(client); if (!it_below) { /* nothing to put it directly above, so try find the focused client to put it underneath it */ if (focus_client && client != focus_client && focus_client->layer == client->layer) { it_below = g_list_find(stacking_list, focus_client); /* this can give NULL, but it means the focused window is on the bottom of the stacking order, so go to the bottom in that case, below it */ it_below = g_list_next(it_below); } else { /* There is no window to put this directly above, so put it at the top, so you know it is there. It used to do this only if the window was focused and lower it otherwise. We also put it at the top not the bottom to fix a bug with fullscreen windows. When focusLast is off and followsMouse is on, when you switch desktops, the fullscreen window loses focus and goes into its lower layer. If this puts it at the bottom then when you come back to the desktop, the window is at the bottom and won't get focus back. */ it_below = stacking_list; } } /* make sure it's not in the wrong layer though ! */ for (; it_below; it_below = g_list_next(it_below)) { /* stop when the window is not in a higher layer than the window it is going above (it_below) */ if (client->layer >= window_layer(it_below->data)) break; } for (; it_below != stacking_list; it_below = it_above) { /* stop when the window is not in a lower layer than the window it is going under (it_above) */ it_above = it_below ? g_list_previous(it_below) : g_list_last(stacking_list); if (client->layer <= window_layer(it_above->data)) break; } wins = g_list_append(NULL, win); do_restack(wins, it_below); g_list_free(wins); stacking_list_tail = g_list_last(stacking_list); } /*! Returns TRUE if client is occluded by the sibling. If sibling is NULL it tries against all other clients. */ static gboolean stacking_occluded(ObClient *client, ObWindow *sibling_win) { GList *it; gboolean occluded = FALSE; ObClient *sibling = NULL; if (sibling_win && WINDOW_IS_CLIENT(sibling_win)) sibling = WINDOW_AS_CLIENT(sibling_win); /* no need for any looping in this case */ if (sibling && client->layer != sibling->layer) return FALSE; for (it = g_list_previous(g_list_find(stacking_list, client)); it; it = g_list_previous(it)) if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; if (!c->iconic && (c->desktop == DESKTOP_ALL || client->desktop == DESKTOP_ALL || c->desktop == client->desktop) && !client_search_transient(client, c)) { if (RECT_INTERSECTS_RECT(c->frame->area, client->frame->area)) { if (sibling != NULL) { if (c == sibling) { occluded = TRUE; break; } } else if (c->layer == client->layer) { occluded = TRUE; break; } else if (c->layer > client->layer) break; /* we past its layer */ } } } else if (WINDOW_IS_DOCK(it->data)) { ObDock *dock = it->data; if (RECT_INTERSECTS_RECT(dock->area, client->frame->area)) { if (sibling_win != NULL) { if (DOCK_AS_WINDOW(dock) == sibling_win) { occluded = TRUE; break; } } else if (config_dock_layer == client->layer) { occluded = TRUE; break; } } } return occluded; } /*! Returns TRUE if client occludes the sibling. If sibling is NULL it tries against all other clients. */ static gboolean stacking_occludes(ObClient *client, ObWindow *sibling_win) { GList *it; gboolean occludes = FALSE; ObClient *sibling = NULL; if (sibling_win && WINDOW_IS_CLIENT(sibling_win)) sibling = WINDOW_AS_CLIENT(sibling_win); /* no need for any looping in this case */ if (sibling && client->layer != sibling->layer) return FALSE; for (it = g_list_next(g_list_find(stacking_list, client)); it; it = g_list_next(it)) if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; if (!c->iconic && (c->desktop == DESKTOP_ALL || client->desktop == DESKTOP_ALL || c->desktop == client->desktop) && !client_search_transient(c, client)) { if (RECT_INTERSECTS_RECT(c->frame->area, client->frame->area)) { if (sibling != NULL) { if (c == sibling) { occludes = TRUE; break; } } else if (c->layer == client->layer) { occludes = TRUE; break; } else if (c->layer < client->layer) break; /* we past its layer */ } } } else if (WINDOW_IS_DOCK(it->data)) { ObDock *dock = it->data; if (RECT_INTERSECTS_RECT(dock->area, client->frame->area)) { if (sibling_win != NULL) { if (DOCK_AS_WINDOW(dock) == sibling_win) { occludes = TRUE; break; } } else if (config_dock_layer == client->layer) { occludes = TRUE; break; } } } return occludes; } gboolean stacking_restack_request(ObClient *client, ObWindow *sibling_win, gint detail) { gboolean ret = FALSE; ObClient *sibling = NULL; if (sibling_win && WINDOW_IS_CLIENT(sibling_win)) sibling = WINDOW_AS_CLIENT(sibling_win); if (sibling && ((client->desktop != sibling->desktop && client->desktop != DESKTOP_ALL && sibling->desktop != DESKTOP_ALL) || sibling->iconic)) { ob_debug("Setting restack sibling to NULL, they are not on the same " "desktop or it is iconified"); sibling = NULL; } switch (detail) { case Below: ob_debug("Restack request Below for client %s sibling %s", client->title, sibling ? sibling->title : "(all)"); /* just lower it */ stacking_lower(CLIENT_AS_WINDOW(client)); ret = TRUE; break; case BottomIf: ob_debug("Restack request BottomIf for client %s sibling %s", client->title, sibling ? sibling->title : "(all)"); /* if this client occludes sibling (or anything if NULL), then lower it to the bottom */ if (stacking_occludes(client, sibling_win)) { stacking_lower(CLIENT_AS_WINDOW(client)); ret = TRUE; } break; case Above: ob_debug("Restack request Above for client %s sibling %s", client->title, sibling ? sibling->title : "(all)"); stacking_raise(CLIENT_AS_WINDOW(client)); ret = TRUE; break; case TopIf: ob_debug("Restack request TopIf for client %s sibling %s", client->title, sibling ? sibling->title : "(all)"); if (stacking_occluded(client, sibling_win)) { stacking_raise(CLIENT_AS_WINDOW(client)); ret = TRUE; } break; case Opposite: ob_debug("Restack request Opposite for client %s sibling %s", client->title, sibling ? sibling->title : "(all)"); if (stacking_occluded(client, sibling_win)) { stacking_raise(CLIENT_AS_WINDOW(client)); ret = TRUE; } else if (stacking_occludes(client, sibling_win)) { stacking_lower(CLIENT_AS_WINDOW(client)); ret = TRUE; } break; } return ret; } openbox-3.6.1/openbox/stacking.h0000644000175300001440000000637112426440016013547 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- stacking.h for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __stacking_h #define __stacking_h #include #include struct _ObWindow; struct _ObClient; /*! The possible stacking layers a client window can be a part of */ typedef enum { OB_STACKING_LAYER_INVALID, OB_STACKING_LAYER_DESKTOP, /*!< 0 - desktop windows */ OB_STACKING_LAYER_BELOW, /*!< 1 - normal windows w/ below */ OB_STACKING_LAYER_NORMAL, /*!< 2 - normal windows */ OB_STACKING_LAYER_ABOVE, /*!< 3 - normal windows w/ above */ OB_STACKING_LAYER_FULLSCREEN, /*!< 4 - fullscreeen windows */ OB_STACKING_LAYER_INTERNAL, /*!< 5 - openbox windows/menus */ OB_NUM_STACKING_LAYERS } ObStackingLayer; /* list of ObWindow*s in stacking order from highest to lowest */ extern GList *stacking_list; /* list of ObWindow*s in stacking order from lowest to highest */ extern GList *stacking_list_tail; /*! Sets the window stacking list on the root window from the stacking_list */ void stacking_set_list(void); void stacking_add(struct _ObWindow *win); void stacking_add_nonintrusive(struct _ObWindow *win); #define stacking_remove(win) stacking_list = g_list_remove(stacking_list, win); /*! Raises a window above all others in its stacking layer */ void stacking_raise(struct _ObWindow *window); /*! Temporarily raises a window above all others */ void stacking_temp_raise(struct _ObWindow *window); /*! Restores any temporarily raised windows to their correct place */ void stacking_restore(void); /*! Lowers a window below all others in its stacking layer */ void stacking_lower(struct _ObWindow *window); /*! Moves a window below another if its in the same layer. This function does not enforce stacking rules IRT transients n such, and so it should really ONLY be used to restore stacking orders from saved sessions */ void stacking_below(struct _ObWindow *window, struct _ObWindow *below); /*! Restack a window based upon a sibling (or all windows) in various ways. @param client The client to be restacked @param sibling A window to compare to, or NULL to compare to all windows @param detail One of Above, Below, TopIf, BottomIf, Opposite @return TRUE if the client was restacked See http://tronche.com/gui/x/xlib/window/configure.html for details on how each detail works with and without a sibling. */ gboolean stacking_restack_request(struct _ObClient *client, struct _ObWindow *sibling_win, gint detail); #endif openbox-3.6.1/openbox/startupnotify.c0000644000175300001440000002017712426440016014672 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- startupnotify.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "startupnotify.h" #include "gettext.h" #include "event.h" #include "obt/xqueue.h" #ifdef HAVE_STDLIB_H # include #endif #ifndef USE_LIBSN void sn_startup(gboolean reconfig) {} void sn_shutdown(gboolean reconfig) {} gboolean sn_app_starting() { return FALSE; } Time sn_app_started(const gchar *id, const gchar *wmclass, const gchar *name) { return CurrentTime; } gboolean sn_get_desktop(gchar *id, guint *desktop) { return FALSE; } void sn_setup_spawn_environment(const gchar *program, const gchar *name, const gchar *icon_name, const gchar *wmclass, gint desktop) {} void sn_spawn_cancel() {} #else #include "openbox.h" #include "screen.h" #define SN_API_NOT_YET_FROZEN #include static SnDisplay *sn_display; static SnMonitorContext *sn_context; static SnLauncherContext *sn_launcher; static GSList *sn_waits; /* list of SnStartupSequences we're waiting on */ static SnStartupSequence* sequence_find(const gchar *id); static void sn_handler(const XEvent *e, gpointer data); static void sn_event_func(SnMonitorEvent *event, gpointer data); void sn_startup(gboolean reconfig) { if (reconfig) return; sn_display = sn_display_new(obt_display, NULL, NULL); sn_context = sn_monitor_context_new(sn_display, ob_screen, sn_event_func, NULL, NULL); sn_launcher = sn_launcher_context_new(sn_display, ob_screen); xqueue_add_callback(sn_handler, NULL); } void sn_shutdown(gboolean reconfig) { GSList *it; if (reconfig) return; xqueue_remove_callback(sn_handler, NULL); for (it = sn_waits; it; it = g_slist_next(it)) sn_startup_sequence_unref((SnStartupSequence*)it->data); g_slist_free(sn_waits); sn_waits = NULL; screen_set_root_cursor(); sn_launcher_context_unref(sn_launcher); sn_monitor_context_unref(sn_context); sn_display_unref(sn_display); } static SnStartupSequence* sequence_find(const gchar *id) { SnStartupSequence*ret = NULL; GSList *it; for (it = sn_waits; it; it = g_slist_next(it)) { SnStartupSequence *seq = it->data; if (!strcmp(id, sn_startup_sequence_get_id(seq))) { ret = seq; break; } } return ret; } gboolean sn_app_starting(void) { return sn_waits != NULL; } static gboolean sn_wait_timeout(gpointer data) { SnStartupSequence *seq = data; sn_waits = g_slist_remove(sn_waits, seq); screen_set_root_cursor(); return FALSE; /* don't repeat */ } static void sn_handler(const XEvent *e, gpointer data) { XEvent ec; ec = *e; sn_display_process_event(sn_display, &ec); } static void sn_event_func(SnMonitorEvent *ev, gpointer data) { SnStartupSequence *seq; gboolean change = FALSE; if (!(seq = sn_monitor_event_get_startup_sequence(ev))) return; switch (sn_monitor_event_get_type(ev)) { case SN_MONITOR_EVENT_INITIATED: sn_startup_sequence_ref(seq); sn_waits = g_slist_prepend(sn_waits, seq); /* 20 second timeout for apps to start if the launcher doesn't have a timeout */ g_timeout_add_full(G_PRIORITY_DEFAULT, 20 * 1000, sn_wait_timeout, seq, (GDestroyNotify)sn_startup_sequence_unref); change = TRUE; break; case SN_MONITOR_EVENT_CHANGED: /* XXX feedback changed? */ change = TRUE; break; case SN_MONITOR_EVENT_COMPLETED: case SN_MONITOR_EVENT_CANCELED: if ((seq = sequence_find(sn_startup_sequence_get_id(seq)))) { sn_waits = g_slist_remove(sn_waits, seq); g_source_remove_by_user_data(seq); change = TRUE; } break; }; if (change) screen_set_root_cursor(); } Time sn_app_started(const gchar *id, const gchar *wmclass, const gchar *name) { GSList *it; Time t = CurrentTime; if (!id && !wmclass) return t; for (it = sn_waits; it; it = g_slist_next(it)) { SnStartupSequence *seq = it->data; gboolean found = FALSE; const gchar *seqid, *seqclass, *seqbin; seqid = sn_startup_sequence_get_id(seq); seqclass = sn_startup_sequence_get_wmclass(seq); seqbin = sn_startup_sequence_get_binary_name(seq); if (id && seqid) { /* if the app has a startup id, then look for that for highest accuracy */ if (!strcmp(seqid, id)) found = TRUE; } else if (seqclass) { /* seqclass = "a string to match against the "resource name" or "resource class" hints. These are WM_CLASS[0] and WM_CLASS[1]" - from the startup-notification spec */ found = (seqclass && !strcmp(seqclass, wmclass)) || (seqclass && !strcmp(seqclass, name)); } else if (seqbin) { /* Check the binary name against the class and name hints as well, to help apps that don't have the class set correctly */ found = (seqbin && !g_ascii_strcasecmp(seqbin, wmclass)) || (seqbin && !g_ascii_strcasecmp(seqbin, name)); } if (found) { sn_startup_sequence_complete(seq); t = sn_startup_sequence_get_timestamp(seq); break; } } return t; } gboolean sn_get_desktop(gchar *id, guint *desktop) { SnStartupSequence *seq; if (id && (seq = sequence_find(id))) { gint desk = sn_startup_sequence_get_workspace(seq); if (desk != -1) { *desktop = desk; return TRUE; } } return FALSE; } static gboolean sn_launch_wait_timeout(gpointer data) { SnLauncherContext *sn = data; sn_launcher_context_complete(sn); return FALSE; /* don't repeat */ } void sn_setup_spawn_environment(const gchar *program, const gchar *name, const gchar *icon_name, const gchar *wmclass, gint desktop) { gchar *desc; const char *id; desc = g_strdup_printf(_("Running %s"), program); if (sn_launcher_context_get_initiated(sn_launcher)) { sn_launcher_context_unref(sn_launcher); sn_launcher = sn_launcher_context_new(sn_display, ob_screen); } sn_launcher_context_set_name(sn_launcher, name ? name : program); sn_launcher_context_set_description(sn_launcher, desc); sn_launcher_context_set_icon_name(sn_launcher, icon_name ? icon_name : program); sn_launcher_context_set_binary_name(sn_launcher, program); if (wmclass) sn_launcher_context_set_wmclass(sn_launcher, wmclass); if (desktop >= 0 && (unsigned) desktop < screen_num_desktops) sn_launcher_context_set_workspace(sn_launcher, (signed) desktop); sn_launcher_context_initiate(sn_launcher, "openbox", program, event_time()); id = sn_launcher_context_get_startup_id(sn_launcher); /* 20 second timeout for apps to start */ sn_launcher_context_ref(sn_launcher); g_timeout_add_full(G_PRIORITY_DEFAULT, 20 * 1000, sn_launch_wait_timeout, sn_launcher, (GDestroyNotify)sn_launcher_context_unref); g_setenv("DESKTOP_STARTUP_ID", id, TRUE); g_free(desc); } void sn_spawn_cancel(void) { sn_launcher_context_complete(sn_launcher); } #endif openbox-3.6.1/openbox/startupnotify.h0000644000175300001440000000322112426440016014666 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- startupnotify.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__startupnotify_h #define ob__startupnotify_h #include #include void sn_startup(gboolean reconfig); void sn_shutdown(gboolean reconfig); gboolean sn_app_starting(void); /*! Notify that an app has started @param wmclass the WM_CLASS[1] hint @param name the WM_CLASS[0] hint */ Time sn_app_started(const gchar *id, const gchar *wmclass, const gchar *name); /*! Get the desktop requested via the startup-notiication protocol if one was requested */ gboolean sn_get_desktop(gchar *id, guint *desktop); /* Get the environment to run the program in, with startup notification */ void sn_setup_spawn_environment(const gchar *program, const gchar *name, const gchar *icon_name, const gchar *wmclass, gint desktop); /* Tell startup notification we're not actually running the program we told it we were */ void sn_spawn_cancel(void); #endif openbox-3.6.1/openbox/translate.c0000644000175300001440000001156012426440016013730 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- translate.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "openbox.h" #include "mouse.h" #include "gettext.h" #include "obt/keyboard.h" #include #include #include static guint translate_modifier(gchar *str) { guint mask = 0; if (!g_ascii_strcasecmp("Mod1", str)) mask = Mod1Mask; else if (!g_ascii_strcasecmp("Mod2", str)) mask = Mod2Mask; else if (!g_ascii_strcasecmp("Mod3", str)) mask = Mod3Mask; else if (!g_ascii_strcasecmp("Mod4", str)) mask = Mod4Mask; else if (!g_ascii_strcasecmp("Mod5", str)) mask = Mod5Mask; else if (!g_ascii_strcasecmp("Control", str) || !g_ascii_strcasecmp("C", str)) mask = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_CONTROL); else if (!g_ascii_strcasecmp("Alt", str) || !g_ascii_strcasecmp("A", str)) mask = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_ALT); else if (!g_ascii_strcasecmp("Meta", str) || !g_ascii_strcasecmp("M", str)) mask = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_META); /* W = windows key, is linked to the Super_L/R buttons */ else if (!g_ascii_strcasecmp("Super", str) || !g_ascii_strcasecmp("W", str)) mask = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_SUPER); else if (!g_ascii_strcasecmp("Shift", str) || !g_ascii_strcasecmp("S", str)) mask = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_SHIFT); else if (!g_ascii_strcasecmp("Hyper", str) || !g_ascii_strcasecmp("H", str)) mask = obt_keyboard_modkey_to_modmask(OBT_KEYBOARD_MODKEY_HYPER); else g_message(_("Invalid modifier key \"%s\" in key/mouse binding"), str); return mask; } gboolean translate_button(const gchar *str, guint *state, guint *button) { gchar **parsed; gchar *l; gint i; gboolean ret = FALSE; parsed = g_strsplit(str, "-", -1); /* first, find the button (last token) */ l = NULL; for (i = 0; parsed[i] != NULL; ++i) l = parsed[i]; if (l == NULL) goto translation_fail; /* figure out the mod mask */ *state = 0; for (i = 0; parsed[i] != l; ++i) { guint m = translate_modifier(parsed[i]); if (!m) goto translation_fail; *state |= m; } /* figure out the button */ if (!g_ascii_strcasecmp("Left", l)) *button = 1; else if (!g_ascii_strcasecmp("Middle", l)) *button = 2; else if (!g_ascii_strcasecmp("Right", l)) *button = 3; else if (!g_ascii_strcasecmp("Up", l)) *button = 4; else if (!g_ascii_strcasecmp("Down", l)) *button = 5; else if (!g_ascii_strncasecmp("Button", l, 6)) *button = atoi(l+6); if (!*button) goto translation_fail; ret = TRUE; translation_fail: g_strfreev(parsed); return ret; } gboolean translate_key(const gchar *str, guint *state, guint *keycode) { gchar **parsed; gchar *l; gint i; gboolean ret = FALSE; KeySym sym; parsed = g_strsplit(str, "-", -1); *state = *keycode = 0; /* first, find the key (last token) */ l = NULL; for (i = 0; parsed[i] != NULL; ++i) l = parsed[i]; if (l == NULL) goto translation_fail; /* figure out the mod mask */ *state = 0; for (i = 0; parsed[i] != l; ++i) { guint m = translate_modifier(parsed[i]); if (!m) goto translation_fail; *state |= m; } if (!g_ascii_strncasecmp("0x", l, 2)) { gchar *end; /* take it directly */ *keycode = strtol(l, &end, 16); if (*l == '\0' || *end != '\0') { g_message(_("Invalid key code \"%s\" in key binding"), l); goto translation_fail; } } else { /* figure out the keycode */ sym = XStringToKeysym(l); if (sym == NoSymbol) { g_message(_("Invalid key name \"%s\" in key binding"), l); goto translation_fail; } *keycode = XKeysymToKeycode(obt_display, sym); } if (!*keycode) { g_message(_("Requested key \"%s\" does not exist on the display"), l); goto translation_fail; } ret = TRUE; translation_fail: g_strfreev(parsed); return ret; } openbox-3.6.1/openbox/translate.h0000644000175300001440000000200012426440016013722 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- translate.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef ob__translate_h #define ob__translate_h #include gboolean translate_button(const gchar *str, guint *state, guint *keycode); gboolean translate_key(const gchar *str, guint *state, guint *keycode); void RrImageSetDestroyFunc(RrImage *image, RrImageDestroyFunc func); #endif openbox-3.6.1/openbox/window.c0000644000175300001440000001474412426440016013251 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- window.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include "window.h" #include "menuframe.h" #include "config.h" #include "dock.h" #include "client.h" #include "frame.h" #include "openbox.h" #include "prompt.h" #include "debug.h" #include "grab.h" #include "obt/prop.h" #include "obt/xqueue.h" static GHashTable *window_map; static guint window_hash(Window *w) { return *w; } static gboolean window_comp(Window *w1, Window *w2) { return *w1 == *w2; } void window_startup(gboolean reconfig) { if (reconfig) return; window_map = g_hash_table_new((GHashFunc)window_hash, (GEqualFunc)window_comp); } void window_shutdown(gboolean reconfig) { if (reconfig) return; g_hash_table_destroy(window_map); } Window window_top(ObWindow *self) { switch (self->type) { case OB_WINDOW_CLASS_MENUFRAME: return WINDOW_AS_MENUFRAME(self)->window; case OB_WINDOW_CLASS_DOCK: return WINDOW_AS_DOCK(self)->frame; case OB_WINDOW_CLASS_CLIENT: return WINDOW_AS_CLIENT(self)->frame->window; case OB_WINDOW_CLASS_INTERNAL: return WINDOW_AS_INTERNAL(self)->window; case OB_WINDOW_CLASS_PROMPT: return WINDOW_AS_PROMPT(self)->super.window; } g_assert_not_reached(); return None; } ObStackingLayer window_layer(ObWindow *self) { switch (self->type) { case OB_WINDOW_CLASS_DOCK: return config_dock_layer; case OB_WINDOW_CLASS_CLIENT: return ((ObClient*)self)->layer; case OB_WINDOW_CLASS_MENUFRAME: case OB_WINDOW_CLASS_INTERNAL: return OB_STACKING_LAYER_INTERNAL; case OB_WINDOW_CLASS_PROMPT: /* not used directly for stacking, prompts are managed as clients */ g_assert_not_reached(); break; } g_assert_not_reached(); return None; } ObWindow* window_find(Window xwin) { return g_hash_table_lookup(window_map, &xwin); } void window_add(Window *xwin, ObWindow *win) { g_assert(xwin != NULL); g_assert(win != NULL); g_hash_table_insert(window_map, xwin, win); } void window_remove(Window xwin) { g_assert(xwin != None); g_hash_table_remove(window_map, &xwin); } void window_manage_all(void) { guint i, j, nchild; Window w, *children; XWMHints *wmhints; XWindowAttributes attrib; if (!XQueryTree(obt_display, RootWindow(obt_display, ob_screen), &w, &w, &children, &nchild)) { ob_debug("XQueryTree failed in window_manage_all"); nchild = 0; } /* remove all icon windows from the list */ for (i = 0; i < nchild; i++) { if (children[i] == None) continue; wmhints = XGetWMHints(obt_display, children[i]); if (wmhints) { if ((wmhints->flags & IconWindowHint) && (wmhints->icon_window != children[i])) for (j = 0; j < nchild; j++) if (children[j] == wmhints->icon_window) { /* XXX watch the window though */ children[j] = None; break; } XFree(wmhints); } } for (i = 0; i < nchild; ++i) { if (children[i] == None) continue; if (window_find(children[i])) continue; /* skip our own windows */ if (XGetWindowAttributes(obt_display, children[i], &attrib)) { if (attrib.map_state == IsUnmapped) ; else window_manage(children[i]); } } if (children) XFree(children); } static gboolean check_unmap(XEvent *e, gpointer data) { const Window win = *(Window*)data; return ((e->type == DestroyNotify && e->xdestroywindow.window == win) || (e->type == UnmapNotify && e->xunmap.window == win)); } void window_manage(Window win) { XWindowAttributes attrib; gboolean no_manage = FALSE; gboolean is_dockapp = FALSE; Window icon_win = None; grab_server(TRUE); /* check if it has already been unmapped by the time we started mapping. the grab does a sync so we don't have to here */ if (xqueue_exists_local(check_unmap, &win)) { ob_debug("Trying to manage unmapped window. Aborting that."); no_manage = TRUE; } else if (!XGetWindowAttributes(obt_display, win, &attrib)) no_manage = TRUE; else { XWMHints *wmhints; /* is the window a docking app */ is_dockapp = FALSE; if ((wmhints = XGetWMHints(obt_display, win))) { if ((wmhints->flags & StateHint) && wmhints->initial_state == WithdrawnState) { if (wmhints->flags & IconWindowHint) icon_win = wmhints->icon_window; is_dockapp = TRUE; } XFree(wmhints); } /* This is a new method to declare that a window is a dockapp, being implemented by Windowmaker, to alleviate pain in writing GTK+ dock apps. http://thread.gmane.org/gmane.comp.window-managers.openbox/4881 */ if (!is_dockapp) { gchar **ss; if (OBT_PROP_GETSS_TYPE(win, WM_CLASS, STRING_NO_CC, &ss)) { if (ss[0] && ss[1] && strcmp(ss[1], "DockApp") == 0) is_dockapp = TRUE; g_strfreev(ss); } } } if (!no_manage) { if (attrib.override_redirect) { ob_debug("not managing override redirect window 0x%x", win); grab_server(FALSE); } else if (is_dockapp) { if (!icon_win) icon_win = win; dock_manage(icon_win, win); } else client_manage(win, NULL); } else { grab_server(FALSE); ob_debug("FAILED to manage window 0x%x", win); } } void window_unmanage_all(void) { dock_unmanage_all(); client_unmanage_all(); } openbox-3.6.1/openbox/window.h0000644000175300001440000000545312426440016013253 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- window.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #ifndef __window_h #define __window_h #include "stacking.h" #include #include typedef struct _ObWindow ObWindow; typedef struct _ObInternalWindow ObInternalWindow; typedef enum { OB_WINDOW_CLASS_MENUFRAME, OB_WINDOW_CLASS_DOCK, OB_WINDOW_CLASS_CLIENT, OB_WINDOW_CLASS_INTERNAL, OB_WINDOW_CLASS_PROMPT } ObWindowClass; /* In order to be an ObWindow, you need to make this struct the top of your struct */ struct _ObWindow { ObWindowClass type; }; #define WINDOW_IS_MENUFRAME(win) \ (((ObWindow*)win)->type == OB_WINDOW_CLASS_MENUFRAME) #define WINDOW_IS_DOCK(win) \ (((ObWindow*)win)->type == OB_WINDOW_CLASS_DOCK) #define WINDOW_IS_CLIENT(win) \ (((ObWindow*)win)->type == OB_WINDOW_CLASS_CLIENT) #define WINDOW_IS_INTERNAL(win) \ (((ObWindow*)win)->type == OB_WINDOW_CLASS_INTERNAL) #define WINDOW_IS_PROMPT(win) \ (((ObWindow*)win)->type == OB_WINDOW_CLASS_PROMPT) struct _ObMenu; struct _ObDock; struct _ObDockApp; struct _ObClient; struct _ObPrompt; #define WINDOW_AS_MENUFRAME(win) ((struct _ObMenuFrame*)win) #define WINDOW_AS_DOCK(win) ((struct _ObDock*)win) #define WINDOW_AS_CLIENT(win) ((struct _ObClient*)win) #define WINDOW_AS_INTERNAL(win) ((struct _ObInternalWindow*)win) #define WINDOW_AS_PROMPT(win) ((struct _ObPrompt*)win) #define MENUFRAME_AS_WINDOW(menu) ((ObWindow*)menu) #define DOCK_AS_WINDOW(dock) ((ObWindow*)dock) #define CLIENT_AS_WINDOW(client) ((ObWindow*)client) #define INTERNAL_AS_WINDOW(intern) ((ObWindow*)intern) #define PROMPT_AS_WINDOW(prompt) ((ObWindow*)prompt) void window_startup (gboolean reconfig); void window_shutdown(gboolean reconfig); Window window_top (ObWindow *self); ObStackingLayer window_layer(ObWindow *self); ObWindow* window_find (Window xwin); void window_add (Window *xwin, ObWindow *win); void window_remove(Window xwin); /* Internal openbox-owned windows like the alt-tab popup */ struct _ObInternalWindow { ObWindowClass type; Window window; }; void window_manage_all(void); void window_manage(Window win); void window_unmanage_all(void); #endif openbox-3.6.1/tests/0000755000175300001440000000000012544731565011351 500000000000000openbox-3.6.1/tests/hideshow.py0000755000175300001440000000451211003645211013437 00000000000000#!/usr/bin/env python import pygtk import gtk import gobject pygtk.require('2.0') class FolderSelector(gtk.Window): def __init__(self, jules): gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL) print "init folder selector", self, jules self.set_title("Select Folder") self.jules = jules self.set_size_request(140, 200) self.list_model = gtk.ListStore(gobject.TYPE_STRING) self.tree = gtk.TreeView(self.list_model) self.folder_column = gtk.TreeViewColumn('Folder') self.tree.append_column(self.folder_column) self.folder_cell = gtk.CellRendererText() self.folder_column.pack_start(self.folder_cell, True) self.folder_column.add_attribute(self.folder_cell, 'text', 0) self.tree.set_search_column(0) self.icon_theme = gtk.icon_theme_get_default() self.add(self.tree) self.show_all() self.tree.columns_autosize() print "done init" class Jules(gtk.Window): def __init__(self): gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL) self.set_title("Jules") self.set_size_request(150, 320) self.connect("delete_event", self.on_delete_event) self.connect("destroy", self.on_destroy) self.scroll = gtk.ScrolledWindow() self.tree_model = gtk.TreeStore(gobject.TYPE_STRING, gobject.TYPE_STRING) self.tree = gtk.TreeView(self.tree_model) self.file_column = gtk.TreeViewColumn('name', gtk.CellRendererText(), markup=0) self.file_column.set_sort_indicator(True) self.file_column.set_clickable(True) self.file_column.set_sort_column_id(1) self.tree.append_column(self.file_column) self.tree.set_headers_clickable(True) self.tree.set_search_column(0) self.scroll.add(self.tree) self.add(self.scroll) self.show_all() self.project_selector = FolderSelector(self) self.project_selector.hide() self.project_selector.hide() self.project_selector.show() def on_delete_event(self, widget, event): return False def on_destroy(self, widget): gtk.main_quit() def run(self): gtk.main() if __name__ == "__main__": jules = Jules() jules.run() openbox-3.6.1/tests/Makefile0000644000175300001440000000024411007302604012706 00000000000000files=$(wildcard *.c) all: $(files:.c=) %: %.c $(CC) `pkg-config --cflags --libs glib-2.0` $(CFLAGS) -o $@ $^ -lX11 -lXext -L/usr/X11R6/lib -I/usr/X11R6/include openbox-3.6.1/tests/aspect.c0000644000175300001440000000402012426440016012673 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- aspect.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include int main () { XSetWindowAttributes xswa; unsigned long xswamask; Display *display; Window win; XEvent report; int x=10,y=10,h=100,w=400; XSizeHints size; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } xswa.win_gravity = StaticGravity; xswamask = CWWinGravity; win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, xswamask, &xswa); XSetWindowBackground(display,win,WhitePixel(display,0)); size.flags = PAspect; size.min_aspect.x = 3; size.min_aspect.y = 3; size.max_aspect.x = 3; size.max_aspect.y = 3; XSetWMNormalHints(display, win, &size); XMapWindow(display, win); XFlush(display); XSelectInput(display, win, ExposureMask | StructureNotifyMask); while (1) { XNextEvent(display, &report); switch (report.type) { case Expose: printf("exposed\n"); break; case ConfigureNotify: x = report.xconfigure.x; y = report.xconfigure.y; w = report.xconfigure.width; h = report.xconfigure.height; printf("confignotify %i,%i-%ix%i\n",x,y,w,h); break; } } return 1; } openbox-3.6.1/tests/fullscreen.c0000644000175300001440000000554212426440016013570 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- fullscreen.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include int main () { Display *display; Window win; XEvent report; Atom _net_fs, _net_state; XEvent msg; int x=10,y=10,h=100,w=400; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } _net_state = XInternAtom(display, "_NET_WM_STATE", False); _net_fs = XInternAtom(display, "_NET_WM_STATE_FULLSCREEN", False); win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL); XSetWindowBackground(display,win,WhitePixel(display,0)); XMapWindow(display, win); XFlush(display); sleep(2); printf("fullscreen\n"); msg.xclient.type = ClientMessage; msg.xclient.message_type = _net_state; msg.xclient.display = display; msg.xclient.window = win; msg.xclient.format = 32; msg.xclient.data.l[0] = 2; // toggle msg.xclient.data.l[1] = _net_fs; msg.xclient.data.l[2] = 0l; msg.xclient.data.l[3] = 0l; msg.xclient.data.l[4] = 0l; XSendEvent(display, RootWindow(display, 0), False, SubstructureNotifyMask | SubstructureRedirectMask, &msg); XFlush(display); sleep(2); printf("restore\n"); msg.xclient.type = ClientMessage; msg.xclient.message_type = _net_state; msg.xclient.display = display; msg.xclient.window = win; msg.xclient.format = 32; msg.xclient.data.l[0] = 2; // toggle msg.xclient.data.l[1] = _net_fs; msg.xclient.data.l[2] = 0l; msg.xclient.data.l[3] = 0l; msg.xclient.data.l[4] = 0l; XSendEvent(display, RootWindow(display, 0), False, SubstructureNotifyMask | SubstructureRedirectMask, &msg); XSelectInput(display, win, ExposureMask | StructureNotifyMask); while (1) { XNextEvent(display, &report); switch (report.type) { case Expose: printf("exposed\n"); break; case ConfigureNotify: x = report.xconfigure.x; y = report.xconfigure.y; w = report.xconfigure.width; h = report.xconfigure.height; printf("confignotify %i,%i-%ix%i\n",x,y,w,h); break; } } return 1; } openbox-3.6.1/tests/grav.c0000644000175300001440000000404512426440016012362 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- grav.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include int main () { Display *display; Window win; XEvent report; int x=10,y=10,h=100,w=400,b=10; XSizeHints *hints; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, b, CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL); hints = XAllocSizeHints(); hints->flags = PWinGravity; hints->win_gravity = SouthEastGravity; XSetWMNormalHints(display, win, hints); XFree(hints); XSetWindowBackground(display,win,WhitePixel(display,0)); XMapWindow(display, win); XFlush(display); w = 600; h = 160; XMoveResizeWindow(display, win, 1172-w-b*2, 668-h-b*2, w, h); XFlush(display); sleep(1); XResizeWindow(display, win, 900, 275); XSelectInput(display, win, ExposureMask | StructureNotifyMask); while (1) { XNextEvent(display, &report); switch (report.type) { case Expose: printf("exposed\n"); break; case ConfigureNotify: x = report.xconfigure.x; y = report.xconfigure.y; w = report.xconfigure.width; h = report.xconfigure.height; printf("confignotify %i,%i-%ix%i\n",x,y,w,h); break; } } return 1; } openbox-3.6.1/tests/grouptran.c0000644000175300001440000000401712426440016013443 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- grouptran.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include int main () { Display *display; Window one, two, group; XEvent report; XWMHints *wmhints; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } group = XCreateWindow(display, RootWindow(display, 0), 0,0,1,1, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); one = XCreateWindow(display, RootWindow(display, 0), 0,0,100,100, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); two = XCreateWindow(display, RootWindow(display, 0), 0,0,100,100, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); XSetWindowBackground(display,one,WhitePixel(display,0)); XSetWindowBackground(display,two,BlackPixel(display,0)); XSetTransientForHint(display, two, RootWindow(display,0)); wmhints = XAllocWMHints(); wmhints->flags = WindowGroupHint; wmhints->window_group = group; XSetWMHints(display, one, wmhints); XSetWMHints(display, two, wmhints); XFree(wmhints); XMapWindow(display, one); XMapWindow(display, two); XFlush(display); while (1) { XNextEvent(display, &report); } return 1; } openbox-3.6.1/tests/icons.c0000644000175300001440000001702312426440016012536 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- icons.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include #include #include #include #include Window findClient(Display *d, Window win) { Window r, *children; unsigned int n, i; Atom state = XInternAtom(d, "WM_STATE", True); Atom ret_type; int ret_format; unsigned long ret_items, ret_bytesleft; unsigned long *prop_return; XQueryTree(d, win, &r, &r, &children, &n); for (i = 0; i < n; ++i) { Window w = findClient(d, children[i]); if (w) return w; } // try me XGetWindowProperty(d, win, state, 0, 1, False, state, &ret_type, &ret_format, &ret_items, &ret_bytesleft, (unsigned char**) &prop_return); if (ret_type == None || ret_items < 1) return None; return win; // found it! } int main(int argc, char **argv) { Display *d = XOpenDisplay(NULL); int s = DefaultScreen(d); Atom net_wm_icon = XInternAtom(d, "_NET_WM_ICON", True); Atom ret_type; unsigned int winw = 0, winh = 0; int ret_format; unsigned long ret_items, ret_bytesleft; const int MAX_IMAGES = 10; unsigned long *prop_return[MAX_IMAGES]; XImage *i[MAX_IMAGES]; long offset = 0; unsigned int image = 0; unsigned int j; // loop counter Window id, win; Pixmap p; Cursor cur; XEvent ev; unsigned int bs = sizeof(long); printf("Click on a window with an icon...\n"); //int id = strtol(argv[1], NULL, 16); XUngrabPointer(d, CurrentTime); cur = XCreateFontCursor(d, XC_crosshair); XGrabPointer(d, RootWindow(d, s), False, ButtonPressMask, GrabModeAsync, GrabModeAsync, None, cur, CurrentTime); while (1) { XNextEvent(d, &ev); if (ev.type == ButtonPress) { XUngrabPointer(d, CurrentTime); id = findClient(d, ev.xbutton.subwindow); break; } } printf("Using window 0x%lx\n", id); do { unsigned int w, h; XGetWindowProperty(d, id, net_wm_icon, offset++, 1, False, XA_CARDINAL, &ret_type, &ret_format, &ret_items, &ret_bytesleft, (unsigned char**) &prop_return[image]); if (ret_type == None || ret_items < 1) { printf("No icon found\n"); return 1; } w = prop_return[image][0]; XFree(prop_return[image]); XGetWindowProperty(d, id, net_wm_icon, offset++, 1, False, XA_CARDINAL, &ret_type, &ret_format, &ret_items, &ret_bytesleft, (unsigned char**) &prop_return[image]); if (ret_type == None || ret_items < 1) { printf("Failed to get height\n"); return 1; } h = prop_return[image][0]; XFree(prop_return[image]); XGetWindowProperty(d, id, net_wm_icon, offset, w*h, False, XA_CARDINAL, &ret_type, &ret_format, &ret_items, &ret_bytesleft, (unsigned char**) &prop_return[image]); if (ret_type == None || ret_items < w*h) { printf("Failed to get image data\n"); return 1; } offset += w*h; printf("Found icon with size %dx%d\n", w, h); i[image] = XCreateImage(d, DefaultVisual(d, s), DefaultDepth(d, s), ZPixmap, 0, NULL, w, h, 32, 0); assert(i[image]); i[image]->byte_order = LSBFirst; i[image]->data = (char*)prop_return[image]; for (j = 0; j < w*h; j++) { unsigned char alpha = (unsigned char)i[image]->data[j*bs+3]; unsigned char r = (unsigned char) i[image]->data[j*bs+0]; unsigned char g = (unsigned char) i[image]->data[j*bs+1]; unsigned char b = (unsigned char) i[image]->data[j*bs+2]; // background color unsigned char bgr = 0; unsigned char bgg = 0; unsigned char bgb = 0; r = bgr + (r - bgr) * alpha / 256; g = bgg + (g - bgg) * alpha / 256; b = bgb + (b - bgb) * alpha / 256; i[image]->data[j*4+0] = (char) r; i[image]->data[j*4+1] = (char) g; i[image]->data[j*4+2] = (char) b; } winw += w; if (h > winh) winh = h; ++image; } while (ret_bytesleft > 0 && image < MAX_IMAGES); #define hashsize(n) ((guint32)1<<(n)) #define hashmask(n) (hashsize(n)-1) #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) #define mix(a,b,c) \ { \ a -= c; a ^= rot(c, 4); c += b; \ b -= a; b ^= rot(a, 6); a += c; \ c -= b; c ^= rot(b, 8); b += a; \ a -= c; a ^= rot(c,16); c += b; \ b -= a; b ^= rot(a,19); a += c; \ c -= b; c ^= rot(b, 4); b += a; \ } #define final(a,b,c) \ { \ c ^= b; c -= rot(b,14); \ a ^= c; a -= rot(c,11); \ b ^= a; b -= rot(a,25); \ c ^= b; c -= rot(b,16); \ a ^= c; a -= rot(c,4); \ b ^= a; b -= rot(a,14); \ c ^= b; c -= rot(b,24); \ } /* hash the images */ for (j = 0; j < image; ++j) { unsigned int w, h, length; guint32 a,b,c; guint32 initval = 0xf00d; const guint32 *k = (guint32*)i[j]->data; w = i[j]->width; h = i[j]->height; length = w * h; /* Set up the internal state */ a = b = c = 0xdeadbeef + (((guint32)length)<<2) + initval; /*---------------------------------------- handle most of the key */ while (length > 3) { a += k[0]; b += k[1]; c += k[2]; mix(a,b,c); length -= 3; k += 3; } /*--------------------------------- handle the last 3 uint32_t's */ switch(length) /* all the case statements fall through */ { case 3 : c+=k[2]; case 2 : b+=k[1]; case 1 : a+=k[0]; final(a,b,c); case 0: /* case 0: nothing left to add */ break; } /*------------------------------------ report the result */ printf("image[%d] %ux%u %lu\n", j, w, h, c); } win = XCreateSimpleWindow(d, RootWindow(d, s), 0, 0, winw, winh, 0, 0, 0); assert(win); XMapWindow(d, win); p = XCreatePixmap(d, win, winw, winh, DefaultDepth(d, s)); XFillRectangle(d, p, DefaultGC(d, s), 0, 0, winw, winh); for (j = 0; j < image; ++j) { static unsigned int x = 0; XPutImage(d, p, DefaultGC(d, s), i[j], 0, 0, x, 0, i[j]->width, i[j]->height); x += i[j]->width; XDestroyImage(i[j]); } XSetWindowBackgroundPixmap(d, win, p); XClearWindow(d, win); XFlush(d); getchar(); XFreePixmap(d, p); XCloseDisplay(d); } openbox-3.6.1/tests/modal2.c0000644000175300001440000000424212426440016012600 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- modal2.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include int main () { Display *display; Window parent, child; XEvent report; Atom state, modal; int x=10,y=10,h=400,w=400; XEvent ce; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } state = XInternAtom(display, "_NET_WM_STATE", True); modal = XInternAtom(display, "_NET_WM_STATE_MODAL", True); parent = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); child = XCreateWindow(display, RootWindow(display, 0), x, y, w/2, h/2, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); XSetWindowBackground(display,parent,WhitePixel(display,0)); XSetWindowBackground(display,child,BlackPixel(display,0)); XSetTransientForHint(display, child, parent); XMapWindow(display, parent); XMapWindow(display, child); XFlush(display); ce.xclient.type = ClientMessage; ce.xclient.message_type = state; ce.xclient.display = display; ce.xclient.window = child; ce.xclient.format = 32; ce.xclient.data.l[0] = 1; ce.xclient.data.l[1] = modal; ce.xclient.data.l[2] = 0; XSendEvent(display, RootWindow(display, DefaultScreen(display)), False, SubstructureNotifyMask | SubstructureRedirectMask, &ce); while (1) { XNextEvent(display, &report); } return 1; } openbox-3.6.1/tests/modal3.c0000644000175300001440000000451012426440016012577 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- modal3.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include int main () { Display *display; Window parent, child; XEvent report; Atom state, modal; int x=10,y=10,h=400,w=400; XEvent ce; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } state = XInternAtom(display, "_NET_WM_STATE", True); modal = XInternAtom(display, "_NET_WM_STATE_MODAL", True); parent = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); child = XCreateWindow(display, RootWindow(display, 0), x, y, w/2, h/2, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); XSetWindowBackground(display,parent,WhitePixel(display,0)); XSetWindowBackground(display,child,BlackPixel(display,0)); XSetTransientForHint(display, child, parent); XMapWindow(display, parent); XMapWindow(display, child); XFlush(display); ce.xclient.type = ClientMessage; ce.xclient.message_type = state; ce.xclient.display = display; ce.xclient.window = child; ce.xclient.format = 32; ce.xclient.data.l[0] = 1; ce.xclient.data.l[1] = modal; ce.xclient.data.l[2] = 0; XSendEvent(display, RootWindow(display, DefaultScreen(display)), False, SubstructureNotifyMask | SubstructureRedirectMask, &ce); ce.xclient.data.l[0] = 0; XSendEvent(display, RootWindow(display, DefaultScreen(display)), False, SubstructureNotifyMask | SubstructureRedirectMask, &ce); while (1) { XNextEvent(display, &report); } return 1; } openbox-3.6.1/tests/modal.c0000644000175300001440000000357412426440016012525 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- modal.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include int main () { Display *display; Window parent, child; XEvent report; Atom state, modal; int x=10,y=10,h=400,w=400; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } state = XInternAtom(display, "_NET_WM_STATE", True); modal = XInternAtom(display, "_NET_WM_STATE_MODAL", True); parent = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); child = XCreateWindow(display, RootWindow(display, 0), x, y, w/2, h/2, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, 0); XSetWindowBackground(display,parent,WhitePixel(display,0)); XSetWindowBackground(display,child,BlackPixel(display,0)); XSetTransientForHint(display, child, parent); XChangeProperty(display, child, state, XA_ATOM, 32, PropModeReplace, (unsigned char*)&modal, 1); XMapWindow(display, parent); XMapWindow(display, child); XFlush(display); while (1) { XNextEvent(display, &report); } return 1; } openbox-3.6.1/tests/noresize.c0000644000175300001440000000413612426440016013262 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- noresize.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include int main () { XSetWindowAttributes xswa; unsigned long xswamask; Display *display; Window win; XEvent report; int x=10,y=10,h=100,w=400; XSizeHints size; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } xswa.win_gravity = StaticGravity; xswamask = CWWinGravity; win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 0, CopyFromParent, CopyFromParent, CopyFromParent, xswamask, &xswa); XSetWindowBackground(display,win,WhitePixel(display,0)); size.flags = PMinSize | PMaxSize; size.max_width = 0; size.min_width = w; size.max_height = 0; size.min_height = h; XSetWMNormalHints(display, win, &size); XSelectInput(display, win, ExposureMask | StructureNotifyMask); XMapWindow(display, win); XFlush(display); XMoveWindow(display, win, 10, 10); XMoveWindow(display, win, 10, 10); while (1) { XNextEvent(display, &report); switch (report.type) { case Expose: printf("exposed\n"); break; case ConfigureNotify: x = report.xconfigure.x; y = report.xconfigure.y; w = report.xconfigure.width; h = report.xconfigure.height; printf("confignotify %i,%i-%ix%i\n",x,y,w,h); break; } } return 1; } openbox-3.6.1/tests/override.c0000644000175300001440000000367412426440016013251 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- override.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include int main () { XSetWindowAttributes xswa; unsigned long xswamask; Display *display; Window win; XEvent report; int x=10,y=10,h=100,w=400; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } xswa.override_redirect = True; xswamask = CWOverrideRedirect; win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, xswamask, &xswa); XSetWindowBackground(display,win,WhitePixel(display,0)); XMapWindow(display, win); XFlush(display); sleep(1); XUnmapWindow(display, win); XFlush(display); sleep(1); XMapWindow(display, win); XFlush(display); XSelectInput(display, win, ExposureMask | StructureNotifyMask); while (1) { XNextEvent(display, &report); switch (report.type) { case Expose: printf("exposed\n"); break; case ConfigureNotify: x = report.xconfigure.x; y = report.xconfigure.y; w = report.xconfigure.width; h = report.xconfigure.height; printf("confignotify %i,%i-%ix%i\n",x,y,w,h); break; } } return 1; } openbox-3.6.1/tests/positioned.c0000644000175300001440000000414312426440016013577 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- positioned.c for the Openbox window manager Copyright (c) 2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include int main (int argc, char **argv) { Display *display; Window win; XEvent report; int x=200,y=200,h=100,w=400,s; XSizeHints *size; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 0, CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL); XSetWindowBackground(display,win,WhitePixel(display,0)); size = XAllocSizeHints(); size->flags = PPosition; XSetWMNormalHints(display,win,size); XFree(size); XFlush(display); XMapWindow(display, win); XSelectInput(display, win, StructureNotifyMask | ButtonPressMask); while (1) { XNextEvent(display, &report); switch (report.type) { case ButtonPress: XUnmapWindow(display, win); break; case ConfigureNotify: x = report.xconfigure.x; y = report.xconfigure.y; w = report.xconfigure.width; h = report.xconfigure.height; s = report.xconfigure.send_event; printf("confignotify %i,%i-%ix%i (send: %d)\n",x,y,w,h,s); break; } } return 1; } openbox-3.6.1/tests/strut.c0000644000175300001440000000422612426440016012605 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- strut.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include int main () { Display *display; Window win; XEvent report; Atom _net_strut; XEvent msg; int x=10,y=10,h=100,w=400; int s[4]; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } _net_strut = XInternAtom(display, "_NET_WM_STRUT", False); win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL); XSetWindowBackground(display,win,WhitePixel(display,0)); XMapWindow(display, win); XFlush(display); sleep(2); printf("top\n"); s[0] = 0; s[1] = 0; s[2] = 20; s[3] = 0; XChangeProperty(display, win, _net_strut, XA_CARDINAL, 32, PropModeReplace, (unsigned char*) s, 4); XFlush(display); sleep(2); printf("none\n"); XDeleteProperty(display, win, _net_strut); XFlush(display); XSelectInput(display, win, ExposureMask | StructureNotifyMask); while (1) { XNextEvent(display, &report); switch (report.type) { case Expose: printf("exposed\n"); break; case ConfigureNotify: x = report.xconfigure.x; y = report.xconfigure.y; w = report.xconfigure.width; h = report.xconfigure.height; printf("confignotify %i,%i-%ix%i\n",x,y,w,h); break; } } return 1; } openbox-3.6.1/tests/title.c0000644000175300001440000000443512426440016012547 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- title.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include int main (int argc, char **argv) { Display *display; Window win; XEvent report; int x=10,y=10,h=100,w=400; XSizeHints size; XTextProperty name; Atom nameprop,nameenc; if (argc < 2) return 1; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } if (argc > 2) nameprop = XInternAtom(display,argv[2],False); else nameprop = XInternAtom(display,"WM_NAME",False); if (argc > 3) nameenc = XInternAtom(display,argv[3],False); else nameenc = XInternAtom(display,"STRING",False); win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL); XSetWindowBackground(display,win,WhitePixel(display,0)); // XStringListToTextProperty(&argv[1], 1, &name); // XSetWMName(display, win, &name); XChangeProperty(display, win, nameprop, nameenc, 8, PropModeAppend, argv[1], strlen(argv[1])); XFlush(display); XMapWindow(display, win); XSelectInput(display, win, ExposureMask | StructureNotifyMask); while (1) { XNextEvent(display, &report); switch (report.type) { case Expose: printf("exposed\n"); break; case ConfigureNotify: x = report.xconfigure.x; y = report.xconfigure.y; w = report.xconfigure.width; h = report.xconfigure.height; printf("confignotify %i,%i-%ix%i\n",x,y,w,h); break; } } return 1; } openbox-3.6.1/tests/urgent.c0000644000175300001440000000374512426440016012735 00000000000000/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- urgent.c for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ #include #include #include #include int main () { Display *display; Window win; XEvent report; Atom _net_fs, _net_state; XEvent msg; int x=50,y=50,h=100,w=400; XWMHints hint; display = XOpenDisplay(NULL); if (display == NULL) { fprintf(stderr, "couldn't connect to X server :0\n"); return 0; } _net_state = XInternAtom(display, "_NET_WM_STATE", False); _net_fs = XInternAtom(display, "_NET_WM_STATE_FULLSCREEN", False); win = XCreateWindow(display, RootWindow(display, 0), x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL); XSetWindowBackground(display,win,WhitePixel(display,0)); XMapWindow(display, win); XFlush(display); sleep(1); printf("urgent on\n"); hint.flags = XUrgencyHint; XSetWMHints(display, win, &hint); XFlush(display); while (1) { XNextEvent(display, &report); switch (report.type) { case Expose: printf("exposed\n"); break; case ConfigureNotify: x = report.xconfigure.x; y = report.xconfigure.y; w = report.xconfigure.width; h = report.xconfigure.height; printf("confignotify %i,%i-%ix%i\n",x,y,w,h); break; } } return 1; } openbox-3.6.1/themes/0000755000175300001440000000000012544731565011474 500000000000000openbox-3.6.1/themes/Artwiz-boxed/0000755000175300001440000000000012544731565014053 500000000000000openbox-3.6.1/themes/Artwiz-boxed/openbox-3/0000755000175300001440000000000012544731565015665 500000000000000openbox-3.6.1/themes/Artwiz-boxed/openbox-3/themerc0000644000175300001440000000732511003645211017143 00000000000000menu.title.bg: raised gradient diagonal menu.title.bg.color: rgb:90/94/98 menu.title.bg.colorTo: rgb:20/24/28 menu.title.text.color: white menu.title.text.justify: center menu.items.bg: sunken gradient diagonal menu.items.bg.color: rgb:10/20/30 menu.items.bg.colorTo: rgb:70/80/90 menu.items.text.color: rgb:90/a0/b0 menu.items.justify: center menu.items.active.bg: raised gradient diagonal menu.items.active.bg.color: rgb:90/94/98 menu.items.active.bg.colorTo: rgb:20/24/28 menu.items.active.text.color: white menu.bullet.image.color: rgb:90/a0/b0 menu.bullet.selected.image.color: #ffffff window.active.title.bg: raised gradient vertical window.active.title.bg.color: rgb:80/84/88 window.active.title.bg.colorTo: rgb:30/34/38 window.inactive.title.bg: raised vertical gradient window.inactive.title.bg.color: rgb:50/54/58 window.inactive.title.bg.colorTo: black window.active.label.bg: sunken diagonal gradient window.active.label.bg.color: rgb:10/20/30 window.active.label.bg.colorTo: rgb:70/80/90 window.active.label.text.color: white window.inactive.label.bg: sunken gradient diagonal window.inactive.label.bg.color: black window.inactive.label.bg.colorTo: rgb:40/50/60 window.inactive.label.text.color: rgb:60/64/68 window.label.text.justify: center window.active.button.unpressed.bg: raised gradient diagonal window.active.button.unpressed.bg.color: rgb:90/94/98 window.active.button.unpressed.bg.colorTo: rgb:20/24/28 window.active.button.unpressed.image.color: white window.inactive.button.unpressed.bg: raised gradient diagonal window.inactive.button.unpressed.bg.color: rgb:50/54/58 window.inactive.button.unpressed.bg.colorTo: black window.inactive.button.unpressed.image.color: rgb:70/74/78 window.active.button.pressed.bg: sunken gradient diagonal window.active.button.pressed.bg.color: rgb:20/40/50 window.active.button.pressed.bg.colorTo: rgb:60/70/80 window.inactive.button.pressed.bg: sunken gradient diagonal window.inactive.button.pressed.bg.color: rgb:50/54/58 window.inactive.button.pressed.bg.colorTo: black window.inactive.button.pressed.image.color: rgb:70/74/78 window.active.client.color: rgb:40/44/48 window.inactive.client.color: rgb:20/24/28 window.active.handle.bg: raised gradient diagonal window.active.handle.bg.color: rgb:70/74/78 window.active.handle.bg.colorTo: rgb:40/44/48 window.inactive.handle.bg: raised gradient diagonal window.inactive.handle.bg.color: rgb:50/54/58 window.inactive.handle.bg.colorTo: black window.active.grip.bg: sunken diagonal gradient window.active.grip.bg.color: rgb:20/30/40 window.active.grip.bg.colorTo: rgb:60/70/80 window.inactive.grip.bg: sunken diagonal gradient window.inactive.grip.bg.color: black window.inactive.grip.bg.colorTo: rgb:30/40/50 window.active.button.toggled.bg: raised gradient diagonal window.active.button.toggled.bg.color: rgb:90/94/98 window.active.button.toggled.bg.colorTo: rgb:20/24/28 window.active.button.toggled.image.color: white window.inactive.button.toggled.bg: raised gradient diagonal window.inactive.button.toggled.bg.color: rgb:50/54/58 window.inactive.button.toggled.bg.colorTo: black window.inactive.button.toggled.image.color: rgb:70/74/78 window.active.button.disabled.bg: raised gradient diagonal window.active.button.disabled.bg.color: rgb:90/94/98 window.active.button.disabled.bg.colorTo: rgb:20/24/28 window.active.button.disabled.image.color: grey window.inactive.button.disabled.bg: raised gradient diagonal window.inactive.button.disabled.bg.color: rgb:50/54/58 window.inactive.button.disabled.bg.colorTo: black window.inactive.button.disabled.image.color: rgb:70/74/78 border.color: black padding.width: 1 borderWidth: 1 window.handle.width: 4 window.active.label.text.font: menu.title.text.font: menu.items.font: openbox-3.6.1/themes/Bear2/0000755000175300001440000000000012544731565012427 500000000000000openbox-3.6.1/themes/Bear2/openbox-3/0000755000175300001440000000000012544731565014241 500000000000000openbox-3.6.1/themes/Bear2/openbox-3/close_pressed.xbm0000644000175300001440000000035511003645211017503 00000000000000#define close_pressed_width 10 #define close_pressed_height 10 static unsigned char close_pressed_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x0c, 0x03, 0x9c, 0x03, 0xf8, 0x01, 0xf0, 0x00, 0xf0, 0x00, 0xf8, 0x01, 0x9c, 0x03, 0x0c, 0x03 }; openbox-3.6.1/themes/Bear2/openbox-3/close.xbm0000644000175300001440000000021011003645211015744 00000000000000#define close_width 8 #define close_height 8 static unsigned char close_bits[] = { 0xc3, 0xe7, 0x7e, 0x3c, 0x3c, 0x7e, 0xe7, 0xc3 }; openbox-3.6.1/themes/Bear2/openbox-3/desk_toggled.xbm0000644000175300001440000000023511003645211017301 00000000000000#define desk_toggled_width 8 #define desk_toggled_height 8 static unsigned char desk_toggled_bits[] = { 0x00, 0x66, 0x66, 0x00, 0x00, 0x66, 0x66, 0x00 }; openbox-3.6.1/themes/Bear2/openbox-3/desk.xbm0000644000175300001440000000020511003645211015571 00000000000000#define desk_width 8 #define desk_height 8 static unsigned char desk_bits[] = { 0x00, 0x00, 0x48, 0x78, 0x7f, 0x78, 0x48, 0x00 }; openbox-3.6.1/themes/Bear2/openbox-3/iconify_pressed.xbm0000644000175300001440000000036311003645211020035 00000000000000#define iconify_pressed_width 10 #define iconify_pressed_height 10 static unsigned char iconify_pressed_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x03, 0xfc, 0x03 }; openbox-3.6.1/themes/Bear2/openbox-3/iconify.xbm0000644000175300001440000000021611003645211016305 00000000000000#define iconify_width 8 #define iconify_height 8 static unsigned char iconify_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff }; openbox-3.6.1/themes/Bear2/openbox-3/max_pressed.xbm0000644000175300001440000000034711003645211017164 00000000000000#define max_pressed_width 10 #define max_pressed_height 10 static unsigned char max_pressed_bits[] = { 0x00, 0x00, 0x00, 0x00, 0xfc, 0x03, 0xfc, 0x03, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0xfc, 0x03 }; openbox-3.6.1/themes/Bear2/openbox-3/max_toggled.xbm0000644000175300001440000000023211003645211017135 00000000000000#define max_toggled_width 8 #define max_toggled_height 8 static unsigned char max_toggled_bits[] = { 0xfc, 0xfc, 0x84, 0x9f, 0x91, 0xf1, 0x11, 0x1f }; openbox-3.6.1/themes/Bear2/openbox-3/max.xbm0000644000175300001440000000020211003645211015425 00000000000000#define max_width 8 #define max_height 8 static unsigned char max_bits[] = { 0xff, 0xff, 0x81, 0x81, 0x81, 0x81, 0x81, 0xff }; openbox-3.6.1/themes/Bear2/openbox-3/shade_pressed.xbm0000644000175300001440000000035511003645211017462 00000000000000#define shade_pressed_width 10 #define shade_pressed_height 10 static unsigned char shade_pressed_bits[] = { 0x00, 0x00, 0x00, 0x00, 0xfc, 0x03, 0xfc, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; openbox-3.6.1/themes/Bear2/openbox-3/shade.xbm0000644000175300001440000000021011003645211015723 00000000000000#define shade_width 8 #define shade_height 8 static unsigned char shade_bits[] = { 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; openbox-3.6.1/themes/Bear2/openbox-3/themerc0000644000175300001440000000454311003645211015516 00000000000000!! Bear2 by David Barr !! http://david.chalkskeletons.com !! another blue theme !!General window.handle.width: 4 window.client.padding.width: 0 window.client.padding.height: 0 border.Width: 1 padding.width: 3 menu.overlap: 2 border.color: #4e4e4e window.frameColor: #eeeeec window.*.client.color: #eeeeec *.text.justify: center !!Fonts window.active.label.text.font: shadow=y:shadowoffset=1:shadowtint=3 window.inactive.label.text.font: shadow=y:shadowoffset=1:shadowtint=0 menu.items.font: menu.title.text.font: shadow=y:shadowoffset=1:shadowtint=30 !!Menu menu.border.color: #9d9d9d menu.title.bg: flat border vertical gradient menu.title.bg.color: #3465A4 menu.title.bg.colorTo: #407CCA menu.title.bg.border.color: #729fcf menu.title.text.color: #ffffff menu.items.bg: flat border solid menu.items.bg.color: #eeeeec menu.items.bg.border.color: #EFEBE7 menu.items.text.color: #444444 menu.items.disabled.text.color: #babdb6 menu.items.active.bg: flat solid menu.items.active.bg.color: #4481c0 menu.items.active.bg.colorTo: #4175aa menu.items.active.text.color: #f6f8fb menu.items.active.bg.border.color: #416c98 !!Active window.active.title.bg: flat border gradient osx window.active.title.bg.color: #3465A4 window.active.title.bg.colorTo: #407CCA window.active.title.bg.border.color: #699acd window.active.label.bg: parentrelative window.active.label.text.color: #ffffff window.active.button.*.bg: parentrelative window.active.button.*.image.color: #efefef window.active.button.hover.bg.color: #729fcf window.active.button.hover.image.color: #ffffff window.active.button.pressed.bg.color: #a7cef2 window.active.button.disabled.image.color: #6d8fbc window.active.handle.bg: raised solid window.active.handle.bg.color: #E7e7e7 window.*.grip.bg: parentrelative !!Inactive window.inactive.title.bg: flat border gradient osx window.inactive.title.bg.color: #dcdcdc window.inactive.title.bg.colorTo: #eeeeec window.inactive.title.bg.border.color: #efefef window.inactive.label.bg: parentrelative window.inactive.label.text.color: #888a85 window.inactive.button.*.bg: parentrelative window.inactive.button.*.image.color: #888a85 window.inactive.button.pressed.bg.color: #d3d7cf window.inactive.button.pressed.bg.color: #4f5051 window.inactive.button.disabled.image.color: #d0d0d0 window.inactive.handle.bg: raised solid window.inactive.handle.bg.color: #E7e7e7 openbox-3.6.1/themes/Clearlooks-3.4/0000755000175300001440000000000012544731565014074 500000000000000openbox-3.6.1/themes/Clearlooks-3.4/openbox-3/0000755000175300001440000000000012544731565015706 500000000000000openbox-3.6.1/themes/Clearlooks-3.4/openbox-3/themerc0000644000175300001440000001033611003645211017160 00000000000000# Name: Clearlooks # Author: John McKnight # Note: This is a port of the Clearlooks metacity theme to Openbox. ### Menu #menu.border.color: #b5aa99 menu.title.bg: Flat Border Gradient Vertical menu.title.bg.color: #589bda menu.title.bg.colorTo: #3c7cb7 menu.title.bg.border.color: #7cb6ec menu.title.text.color: #ffffff menu.title.text.justify: Center menu.items.bg: Flat Solid menu.items.bg.color: #fcfbfa menu.items.text.color: #000000 menu.items.disable.text.color: #b5b3ac menu.items.active.bg: Flat Gradient Vertical menu.items.active.bg.color: #5c9edb menu.items.active.bg.colorTo: #4489ca menu.items.active.text.color: #ffffff ### Window active window.active.title.bg: Flat Border Gradient Vertical window.active.title.bg.color: #589bda window.active.title.bg.colorTo: #3c7cb7 window.active.title.bg.border.color: #7cb6ec window.active.title.separator.color: #334c62 window.active.label.bg: Parentrelative window.active.label.text.color: #ffffff window.active.handle.bg: Flat Border Solid window.active.handle.bg.color: #3c7cb7 window.active.handle.bg.border.color: #7cb6ec window.active.grip.bg: Flat Border Solid window.active.grip.bg.color: #3c7cb7 window.active.grip.bg.border.color: #7cb6ec window.active.button.unpressed.bg: Flat Border Gradient Vertical window.active.button.unpressed.bg.color: #5ea0dd window.active.button.unpressed.bg.colorTo: #3f85c5 window.active.button.unpressed.bg.border.color: #36536f window.active.button.unpressed.image.color: #ffffff window.active.button.pressed.bg: Flat Border Gradient Vertical window.active.button.pressed.bg.color: #3c82c3 window.active.button.pressed.bg.colorTo: #3c7ab5 window.active.button.pressed.bg.border.color: #36536f window.active.button.pressed.image.color: #ffffff window.active.button.disabled.bg: Flat Border Gradient Vertical window.active.button.disabled.bg.color: #3c82c3 window.active.button.disabled.bg.colorTo: #3c7ab5 window.active.button.disabled.bg.border.color: #36536f window.active.button.disabled.image.color: #36536f window.active.button.toggled.bg: Flat Border Gradient Vertical window.active.button.toggled.bg.color: #5ea0dd window.active.button.toggled.bg.colorTo: #3f85c5 window.active.button.toggled.bg.border.color: #36536f window.active.button.toggled.image.color: #dcd4c9 ### Window inactive window.inactive.border.color: #3d3a37 window.inactive.title.bg: Flat Border Gradient Vertical window.inactive.title.bg.color: #efece6 window.inactive.title.bg.colorTo: #d9d2c7 window.inactive.title.bg.border.color: #ffffff window.inactive.title.separator.color: #9a8e7c window.inactive.label.bg: Parentrelative window.inactive.label.text.color: #000000 window.inactive.handle.bg: Flat Border Solid window.inactive.handle.bg.color: #d9d2c7 window.inactive.handle.bg.border.color: #ffffff window.inactive.grip.bg: Flat Border Solid window.inactive.grip.bg.color: #d9d2c7 window.inactive.grip.bg.border.color: #ffffff window.inactive.button.unpressed.bg: Flat Border Gradient Vertical window.inactive.button.unpressed.bg.color: #ede9e3 window.inactive.button.unpressed.bg.colorTo: #dbd5ca window.inactive.button.unpressed.bg.border.color: #8f8370 window.inactive.button.unpressed.image.color: #000000 window.inactive.button.pressed.bg: Flat Border Gradient Vertical window.inactive.button.pressed.bg.color: #ede9e3 window.inactive.button.pressed.bg.colorTo: #dbd5ca window.inactive.button.pressed.bg.border.color: #8f8370 window.inactive.button.pressed.image.color: #000000 window.inactive.button.disabled.bg: Flat Border Gradient Vertical window.inactive.button.disabled.bg.color: #ede9e3 window.inactive.button.disabled.bg.colorTo: #dbd5ca window.inactive.button.disabled.bg.border.color: #8f8370 window.inactive.button.disabled.image.color: #000000 window.inactive.button.toggled.bg: Flat Border Gradient Vertical window.inactive.button.toggled.bg.color: #ede9e3 window.inactive.button.toggled.bg.colorTo: #dbd5ca window.inactive.button.toggled.bg.border.color: #8f8370 window.inactive.button.toggled.image.color: #000000 ### Everything else border.width: 1 padding.width: 2 window.handle.width: 4 window.client.padding.width: 0 border.color: #1f252b menu.overlap: 0 ### Fonts window.active.label.text.font: window.inactive.label.text.font: menu.items.font: menu.title.text.font: openbox-3.6.1/themes/Clearlooks-Olive/0000755000175300001440000000000012544731565014646 500000000000000openbox-3.6.1/themes/Clearlooks-Olive/openbox-3/0000755000175300001440000000000012544731565016460 500000000000000openbox-3.6.1/themes/Clearlooks-Olive/openbox-3/themerc0000644000175300001440000001027711003645211017736 00000000000000# Name: Clearlooks-Olive # Author: John McKnight # Note: This is a port of the Clearlooks-Olive metacity theme to Openbox. # Menu settings menu.title.bg: Raised Gradient Vertical menu.title.bg.color: #95ad70 menu.title.bg.colorTo: #7d925d menu.title.text.color: #ffffff menu.title.text.justify: Left menu.items.bg: Flat Solid menu.items.bg.color: #f1eee0 menu.items.text.color: #444444 menu.items.disabled.text.color: #aaaaaa menu.items.active.disabled.text.color: #969696 menu.items.active.bg: Flat Gradient Vertical Border menu.items.active.bg.color: #b4c994 menu.items.active.bg.colorTo: #92aa6d menu.items.active.bg.border.color: #92aa6d menu.items.active.text.color: #ffffff # Window settings (focused) window.active.title.bg: Raised Gradient Vertical window.active.title.bg.color: #95ad70 window.active.title.bg.colorTo: #7d925d window.active.label.bg: Parentrelative window.active.label.text.color: #ffffff window.active.handle.bg: Raised Gradient Vertical window.active.handle.bg.color: #95ad70 window.active.handle.bg.colorTo: #7d925d window.active.grip.bg: Raised Gradient Vertical window.active.grip.bg.color: #95ad70 window.active.grip.bg.colorTo: #7d925d window.active.button.unpressed.bg: Flat Gradient Vertical Border window.active.button.unpressed.bg.color: #65744e window.active.button.unpressed.bg.colorTo: #5b6846 window.active.button.unpressed.bg.border.color: #abbc91 window.active.button.unpressed.image.color: #ffffff window.active.button.pressed.bg: Flat Gradient Vertical Border window.active.button.pressed.bg.color: #373d2b window.active.button.pressed.bg.colorTo: #333828 window.active.button.pressed.bg.border.color: #abbc91 window.active.button.pressed.image.color: #ffffff window.active.button.disabled.bg: Flat Gradient Vertical Border window.active.button.disabled.bg.color: #373d2b window.active.button.disabled.bg.colorTo: #333828 window.active.button.disabled.bg.border.color: #abbc91 window.active.button.disabled.image.color: #abbc91 window.active.button.toggled.bg: Flat Gradient Vertical Border window.active.button.toggled.bg.color: #65744e window.active.button.toggled.bg.colorTo: #5b6846 window.active.button.toggled.bg.border.color: #abbc91 window.active.button.toggled.image.color: #b9b7a7 # Window settings (unfocused) window.inactive.title.bg: Raised Gradient Vertical window.inactive.title.bg.color: #f1eeea window.inactive.title.bg.colorTo: #d8cfc7 window.inactive.label.bg: Parentrelative window.inactive.label.text.color: #000000 window.inactive.handle.bg: Raised Gradient Vertical window.inactive.handle.bg.color: #f1eeea window.inactive.handle.bg.colorTo: #d8cfc7 window.inactive.grip.bg: Raised Gradient Vertical window.inactive.grip.bg.color: #f1eeea window.inactive.grip.bg.colorTo: #d8cfc7 window.inactive.button.unpressed.bg: Flat Gradient Vertical Border window.inactive.button.unpressed.bg.color: #efebe7 window.inactive.button.unpressed.bg.colorTo: #ddd6ce window.inactive.button.unpressed.bg.border.color: #8f8173 window.inactive.button.unpressed.image.color: #000000 window.inactive.button.pressed.bg: Flat Gradient Vertical Border window.inactive.button.pressed.bg.color: #efebe7 window.inactive.button.pressed.bg.colorTo: #ddd6ce window.inactive.button.pressed.bg.border.color: #8f8173 window.inactive.button.pressed.image.color: #000000 window.inactive.button.disabled.bg: Flat Gradient Vertical Border window.inactive.button.disabled.bg.color: #efebe7 window.inactive.button.disabled.bg.colorTo: #ddd6ce window.inactive.button.disabled.bg.border.color: #8f8173 window.inactive.button.disabled.image.color: #8f8173 window.inactive.button.toggled.bg: Flat Gradient Vertical Border window.inactive.button.toggled.bg.color: #efebe7 window.inactive.button.toggled.bg.colorTo: #ddd6ce window.inactive.button.toggled.bg.border.color: #8f8173 window.inactive.button.toggled.image.color: #000000 ### Everything else border.width: 1 padding.width: 2 window.handle.width: 3 window.client.padding.width: 0 window.client.padding.height: 0 border.color: #000000 menu.overlap: 0 ### Fonts window.active.label.text.font:shadow=y:shadowtint=70:shadowoffset=1 window.inactive.label.text.font:shadow=y:shadowtint=20:shadowoffset=1 menu.items.font: menu.title.text.font:shadow=y:shadowtint=70 openbox-3.6.1/themes/Clearlooks/0000755000175300001440000000000012544731565013572 500000000000000openbox-3.6.1/themes/Clearlooks/openbox-3/0000755000175300001440000000000012544731565015404 500000000000000openbox-3.6.1/themes/Clearlooks/openbox-3/themerc0000644000175300001440000001045711345434254016676 00000000000000!# Clearlooks-Evolving !# Clearlooks as it evolves in gnome-git... !# Last updated 09/03/10 # Fonts # these are really halos, but who cares? *.font: shadow=n window.active.label.text.font:shadow=y:shadowtint=30:shadowoffset=1 window.inactive.label.text.font:shadow=y:shadowtint=00:shadowoffset=0 menu.items.font:shadow=y:shadowtint=0:shadowoffset=1 !# general stuff border.width: 1 padding.width: 3 padding.height: 2 window.handle.width: 3 window.client.padding.width: 0 menu.overlap: 2 *.justify: center !# lets set our damn shadows here, eh? *.bg.highlight: 50 *.bg.shadow: 05 window.active.title.bg.highlight: 35 window.active.title.bg.shadow: 05 window.inactive.title.bg.highlight: 30 window.inactive.title.bg.shadow: 05 window.*.grip.bg.highlight: 50 window.*.grip.bg.shadow: 30 window.*.handle.bg.highlight: 50 window.*.handle.bg.shadow: 30 !# Menu settings menu.border.color: #aaaaaa menu.border.width: 1 menu.title.bg: solid flat menu.title.bg.color: #E6E7E6 menu.title.text.color: #111111 menu.items.bg: Flat Solid menu.items.bg.color: #ffffff menu.items.text.color: #111111 menu.items.disabled.text.color: #aaaaaa menu.items.active.bg: Flat Gradient splitvertical border menu.items.active.bg.color: #97b8e2 menu.items.active.bg.color.splitTo: #a8c5e9 menu.items.active.bg.colorTo: #91b3de menu.items.active.bg.colorTo.splitTo: #80a7d6 menu.items.active.bg.border.color: #4b6e99 menu.items.active.text.color: #ffffff menu.separator.width: 1 menu.separator.padding.width: 0 menu.separator.padding.height: 3 menu.separator.color: #aaaaaa !# set handles here and only the once? window.*.handle.bg: Raised solid window.*.handle.bg.color: #eaebec window.*.grip.bg: Raised solid window.*.grip.bg.color: #eaebec !# Active window.*.border.color: #585a5d window.active.title.separator.color: #4e76a8 *.title.bg: Raised Gradient splitvertical *.title.bg.color: #8CB0DC *.title.bg.color.splitTo: #99BAE3 *.title.bg.colorTo: #86ABD9 *.title.bg.colorTo.splitTo: #7AA1D1 window.active.label.bg: Parentrelative window.active.label.text.color: #ffffff window.active.button.*.bg: Flat Gradient splitvertical Border window.active.button.*.bg.color: #92B4DF window.active.button.*.bg.color.splitTo: #B0CAEB window.active.button.*.bg.colorTo: #86ABD9 window.active.button.*.bg.colorTo.splitTo: #769FD0 window.active.button.*.bg.border.color: #49678B window.active.button.*.image.color: #F4F5F6 window.active.button.hover.bg.color: #b5d3ef window.active.button.hover.bg.color.splitTo: #b5d3ef window.active.button.hover.bg.colorTo: #9cbae7 window.active.button.hover.bg.colorTo.splitTo: #8caede window.active.button.hover.bg.border.color: #4A658C window.active.button.hover.image.color: #ffffff window.active.button.pressed.bg: Flat solid Border window.active.button.pressed.bg.color: #7aa1d2 window.active.button.hover.bg.border.color: #4A658C !# inactive !#window.inactive.border.color: #7e8285 window.inactive.title.separator.color: #96999d window.inactive.title.bg: Raised Gradient splitvertical window.inactive.title.bg.color: #E3E2E0 window.inactive.title.bg.color.splitTo: #EBEAE9 window.inactive.title.bg.colorTo: #DEDCDA window.inactive.title.bg.colorTo.splitTo: #D5D3D1 window.inactive.label.bg: Parentrelative window.inactive.label.text.color: #70747d window.inactive.button.*.bg: Flat Gradient splitVertical Border window.inactive.button.*.bg.color: #ffffff window.inactive.button.*.bg.color.splitto: #ffffff window.inactive.button.*.bg.colorTo: #F9F8F8 window.inactive.button.*.bg.colorTo.splitto: #E9E7E6 window.inactive.button.*.bg.border.color: #928F8B window.inactive.button.*.image.color: #6D6C6C !# osd (pop ups and what not, dock?) osd.border.width: 1 osd.border.color: #aaaaaa osd.bg: flat border gradient splitvertical osd.bg.color: #F0EFEE osd.bg.color.splitto: #f5f5f4 osd.bg.colorTo: #EAEBEC osd.bg.colorTo.splitto: #E7E5E4 osd.bg.border.color: #ffffff osd.active.label.bg: parentrelative osd.active.label.bg.color: #efefef osd.active.label.bg.border.color: #9c9e9c osd.active.label.text.color: #444 osd.inactive.label.bg: parentrelative osd.inactive.label.text.color: #70747d !# yeah whatever, this is fine anyhoo? osd.hilight.bg: flat vertical gradient osd.hilight.bg.color: #9ebde5 osd.hilight.bg.colorTo: #749dcf osd.unhilight.bg: flat vertical gradient osd.unhilight.bg.color: #BABDB6 osd.unhilight.bg.colorTo: #efefef openbox-3.6.1/themes/Mikachu/0000755000175300001440000000000012544731565013055 500000000000000openbox-3.6.1/themes/Mikachu/openbox-3/0000755000175300001440000000000012544731565014667 500000000000000openbox-3.6.1/themes/Mikachu/openbox-3/bullet.xbm0000644000175300001440000000020511003645211016560 00000000000000#define bullet_width 4 #define bullet_height 7 static unsigned char bullet_bits[] = { 0x01, 0x03, 0x07, 0x0f, 0x07, 0x03, 0x01 }; openbox-3.6.1/themes/Mikachu/openbox-3/close.xbm0000644000175300001440000000024411003645211016401 00000000000000/* Created with The GIMP */ #define close_width 8 #define close_height 8 static unsigned char close_bits[] = { 0x00, 0xc3, 0x66, 0x3c, 0x3c, 0x66, 0xc3, 0x00 }; openbox-3.6.1/themes/Mikachu/openbox-3/desk.xbm0000644000175300001440000000024411003645211016222 00000000000000/* Created with The GIMP */ #define stick_width 8 #define stick_height 8 static unsigned char stick_bits[] = { 0x00, 0x66, 0x66, 0x00, 0x00, 0x66, 0x66, 0x00 }; openbox-3.6.1/themes/Mikachu/openbox-3/iconify.xbm0000644000175300001440000000024111003645211016731 00000000000000/* Created with The GIMP */ #define icon_width 8 #define icon_height 8 static unsigned char icon_bits[] = { 0x00, 0x00, 0x42, 0x66, 0x3c, 0x18, 0x00, 0x00 }; openbox-3.6.1/themes/Mikachu/openbox-3/max.xbm0000644000175300001440000000023611003645211016062 00000000000000/* Created with The GIMP */ #define max_width 8 #define max_height 8 static unsigned char max_bits[] = { 0x00, 0x00, 0x18, 0x3c, 0x66, 0x42, 0x00, 0x00 }; openbox-3.6.1/themes/Mikachu/openbox-3/themerc0000644000175300001440000001455611003645211016151 00000000000000!! Menu settings menu.title.bg: raised gradient crossdiagonal bevel1 menu.title.bg.color: #6699CC menu.title.bg.colorTo: #334866 menu.title.bg.border.color: #000000 menu.title.text.color: #CCCCFF menu.title.text.justify: center menu.items.bg: flat gradient vertical bevel1 menu.items.bg.color: #B8B8D8 menu.items.bg.colorTo: #A0A0BA menu.items.bg.border.color: #000000 menu.items.text.color: #000022 menu.items.disabled.text.color: #711 menu.items.active.bg: raised gradient mirrorhorizontal menu.items.active.bg.color: #555577 menu.items.active.bg.colorTo: #6699CC menu.items.active.bg.border.color: #000000 menu.items.active.text.color: #CCCCFF menu.frame.justify: left !! General window settings window.label.text.justify: left !! focused window settings window.active.client.color: #8080A0 window.active.title.bg: raised gradient crossdiagonal bevel1 window.active.title.bg.color: #6699CC window.active.title.bg.colorTo: #334866 window.active.title.bg.border.color: #000000 window.active.handle.bg: flat gradient crossdiagonal bevel1 window.active.handle.bg.color: #6699CC window.active.handle.bg.colorTo: #334866 window.active.handle.bg.border.color: #000000 window.active.grip.bg: parentrelative window.active.grip.bg.color: #000000 window.active.grip.bg.colorTo: #000000 window.active.grip.bg.border.color: #000000 window.active.label.bg: parentrelative window.active.label.bg.color: #000000 window.active.label.bg.colorTo: #000000 window.active.label.bg.border.color: #000000 window.active.label.text.color: #BFE9FF window.active.button.unpressed.bg: parentrelative window.active.button.unpressed.bg.color: #000000 window.active.button.unpressed.bg.colorTo: #000000 window.active.button.unpressed.bg.border.color: #000000 window.active.button.unpressed.image.color: grey85 window.active.button.pressed.bg: sunken parentrelative bevel1 window.active.button.pressed.bg.color: #6699CC window.active.button.pressed.bg.colorTo: #334866 window.active.button.pressed.bg.border.color: #000000 window.active.button.pressed.image.color: green window.active.button.toggled.bg: sunken parentrelative bevel2 window.active.button.toggled.bg.color: #6699CC window.active.button.toggled.bg.colorTo: #334866 window.active.button.toggled.bg.border.color: #000000 window.active.button.toggled.image.color: grey85 window.active.button.toggled.hover.bg: sunken parentrelative bevel2 window.active.button.toggled.hover.bg.color: #6699CC window.active.button.toggled.hover.bg.colorTo: #334866 window.active.button.toggled.hover.bg.border.color: #000000 window.active.button.toggled.hover.image.color: #00FF00 window.active.button.disabled.bg: parentrelative window.active.button.disabled.bg.color: #000000 window.active.button.disabled.bg.colorTo: #000000 window.active.button.disabled.image.color: #000000 window.active.button.disabled.bg.border.color: #000000 window.active.button.hover.bg: parentrelative window.active.button.hover.image.color: #00FF00 window.active.button.hover.bg.color: #000000 window.active.button.hover.bg.colorTo: #000000 window.active.button.hover.bg.border.color: #000000 !window.active.button.hover.bg: raised gradient crossdiagonal bevel1 !window.active.button.hover.image.color: #00FF00 !window.active.button.hover.bg.color: #334866 !window.active.button.hover.bg.colorTo: #6699CC !window.active.button.hover.bg.border.color: #000000 !! unfocused window settings window.inactive.client.color: grey50 window.inactive.title.bg: flat gradient diagonal bevel1 window.inactive.title.bg.color: #7F7FA0 window.inactive.title.bg.colorTo: #333350 window.inactive.title.bg.border.color: #000000 window.inactive.handle.bg: flat gradient diagonal bevel1 window.inactive.handle.bg.color: grey50 window.inactive.handle.bg.colorTo: grey20 window.inactive.handle.bg.border.color: #000000 window.inactive.grip.bg: parentrelative window.inactive.grip.bg.color: #000000 window.inactive.grip.bg.colorTo: #000000 window.inactive.grip.bg.border.color: #000000 window.inactive.label.bg: parentrelative window.inactive.label.bg.color: #000000 window.inactive.label.bg.colorTo: #000000 window.inactive.label.bg.border.color: #000000 window.inactive.label.text.color: #C3C3E0 window.inactive.button.unpressed.bg: parentrelative window.inactive.button.unpressed.bg.color: #000000 window.inactive.button.unpressed.bg.colorTo: #000000 window.inactive.button.unpressed.bg.border.color: #000000 window.inactive.button.unpressed.image.color: grey60 window.inactive.button.pressed.bg: sunken parentrelative bevel1 window.inactive.button.pressed.bg.color: grey60 window.inactive.button.pressed.bg.colorTo: grey20 window.inactive.button.pressed.bg.border.color: #000000 window.inactive.button.pressed.image.color: #00CC00 window.inactive.button.disabled.bg: parentrelative window.inactive.button.disabled.bg.color: #000000 window.inactive.button.disabled.bg.colorTo: #000000 window.inactive.button.disabled.bg.border.color: #000000 window.inactive.button.disabled.image.color: #000000 window.inactive.button.toggled.bg: sunken parentrelative bevel2 window.inactive.button.toggled.bg.color: grey60 window.inactive.button.toggled.bg.colorTo: grey20 window.inactive.button.toggled.bg.border.color: #000000 window.inactive.button.toggled.image.color: grey60 window.inactive.button.toggled.hover.bg: sunken parentrelative bevel2 window.inactive.button.toggled.hover.bg.color: grey60 window.inactive.button.toggled.hover.bg.colorTo: grey20 window.inactive.button.toggled.hover.bg.border.color: #000000 window.inactive.button.toggled.hover.image.color: #00CC00 window.inactive.button.hover.bg: parentrelative window.inactive.button.hover.bg.color: #000000 window.inactive.button.hover.bg.colorTo: #000000 window.inactive.button.hover.image.color: #00CC00 window.inactive.button.hover.bg.border.color: #000000 osd.label.bg: parentrelative sunken !! Global width settings border.width: 1 padding.width: 1 window.handle.width: 0 window.client.padding.width: 0 window.client.padding.height: 0 focus.inner.color: #A6CAF3 focus.outer.color: #0000A0 !! Miscellaneous settings border.color: #223344 !! Font stuff (not used anymore) window.active.label.text.font: Candara,sans:size=10:shadow=y:shadowoffset=2:shadowtint=32:weight=0 window.inactive.label.text.font: Candara,sans:size=10:shadowoffset=3:shadowtint=32:shadow=y:weight=0 menu.title.text.font: Technical,sans:size=20:shadowoffset=2:shadowtint=35:shadow=y menu.items.font: Technical,sans:size=10:shadowoffset=2:shadowtint=15:shadow=y menu.overlap: -3 openbox-3.6.1/themes/Natura/0000755000175300001440000000000012544731565012726 500000000000000openbox-3.6.1/themes/Natura/openbox-3/0000755000175300001440000000000012544731565014540 500000000000000openbox-3.6.1/themes/Natura/openbox-3/close_hover.xbm0000644000175300001440000000034711003645211017461 00000000000000#define close_hover_width 10 #define close_hover_height 10 static unsigned char close_hover_bits[] = { 0x03, 0x03, 0x87, 0x03, 0xce, 0x01, 0xfc, 0x00, 0x78, 0x00, 0x78, 0x00, 0xfc, 0x00, 0xce, 0x01, 0x87, 0x03, 0x03, 0x03 }; openbox-3.6.1/themes/Natura/openbox-3/close.xbm0000644000175300001440000000021011003645211016243 00000000000000#define close_width 8 #define close_height 8 static unsigned char close_bits[] = { 0xc3, 0xe7, 0x7e, 0x3c, 0x3c, 0x7e, 0xe7, 0xc3 }; openbox-3.6.1/themes/Natura/openbox-3/desk_toggled.xbm0000644000175300001440000000023511003645211017600 00000000000000#define desk_toggled_width 8 #define desk_toggled_height 8 static unsigned char desk_toggled_bits[] = { 0x00, 0x66, 0x66, 0x00, 0x00, 0x66, 0x66, 0x00 }; openbox-3.6.1/themes/Natura/openbox-3/desk_hover.xbm0000644000175300001440000000022711003645211017277 00000000000000#define desk_hover_width 8 #define desk_hover_height 8 static unsigned char desk_hover_bits[] = { 0x00, 0x88, 0x88, 0xf8, 0xff, 0xf8, 0x88, 0x88 }; openbox-3.6.1/themes/Natura/openbox-3/desk.xbm0000644000175300001440000000020511003645211016070 00000000000000#define desk_width 8 #define desk_height 8 static unsigned char desk_bits[] = { 0x00, 0x00, 0x48, 0x78, 0x7e, 0x78, 0x48, 0x00 }; openbox-3.6.1/themes/Natura/openbox-3/iconify_hover.xbm0000644000175300001440000000024011003645211020004 00000000000000#define iconify_hover_width 8 #define iconify_hover_height 8 static unsigned char iconify_hover_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff }; openbox-3.6.1/themes/Natura/openbox-3/iconify.xbm0000644000175300001440000000021611003645211016604 00000000000000#define iconify_width 8 #define iconify_height 8 static unsigned char iconify_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x7e, 0x7e }; openbox-3.6.1/themes/Natura/openbox-3/max_hover.xbm0000644000175300001440000000034111003645211017133 00000000000000#define max_hover_width 10 #define max_hover_height 10 static unsigned char max_hover_bits[] = { 0xff, 0x03, 0xff, 0x03, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0xff, 0x03 }; openbox-3.6.1/themes/Natura/openbox-3/max_toggled.xbm0000644000175300001440000000023211003645211017434 00000000000000#define max_toggled_width 8 #define max_toggled_height 8 static unsigned char max_toggled_bits[] = { 0xfc, 0xfc, 0x84, 0x9f, 0x91, 0xf1, 0x11, 0x1f }; openbox-3.6.1/themes/Natura/openbox-3/max.xbm0000644000175300001440000000020211003645211015724 00000000000000#define max_width 8 #define max_height 8 static unsigned char max_bits[] = { 0xff, 0xff, 0x81, 0x81, 0x81, 0x81, 0x81, 0xff }; openbox-3.6.1/themes/Natura/openbox-3/shade.xbm0000644000175300001440000000021011003645211016222 00000000000000#define shade_width 8 #define shade_height 8 static unsigned char shade_bits[] = { 0x7e, 0x7e, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00 }; openbox-3.6.1/themes/Natura/openbox-3/shade_hover.xbm0000644000175300001440000000023211003645211017431 00000000000000#define shade_hover_width 8 #define shade_hover_height 8 static unsigned char shade_hover_bits[] = { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00 }; openbox-3.6.1/themes/Natura/openbox-3/themerc0000644000175300001440000000565711003645211016024 00000000000000!! Natura by quandar (http://deletefactory.net/quandar) !! Global Width window.handle.width: 2 window.client.padding.width: 0 window.client.padding.height: 0 border.Width: 1 padding.width: 2 window.active.border.color: #000000 window.inactive.border.color: #000000 menu.border.color: #000000 menu.overlap: 0 window.frameColor: #eeeeee window.*.client.color: #eeeeee *.text.justify: left !! Menu menu.title.bg: flat gradient split menu.title.bg.color: #5c4e45 menu.title.bg.colorTo: #51443e menu.title.text.color: #ffffff menu.items.bg: flat solid menu.items.bg.color: #f9f2ee menu.items.text.color: #000000 menu.items.disabled.text.color: #737573 menu.items.active.bg: flat gradient split menu.items.active.bg.color: #5c4e45 menu.items.active.bg.colorTo:#51443e menu.items.active.text.color: #f9f2ee !! Active Windows window.active.title.bg: flat gradient split window.active.title.bg.color: #5c4e45 window.active.title.bg.colorTo: #51443e window.active.*.bg.border.color: #000000 window.active.label.bg: parentrelative window.active.label.text.color: #f9f2ee window.active.button.*.bg: parentrelative window.active.button.*.image.color: #f9f2ee window.active.button.*.bg.border.color: #4e5860 window.active.button.hover.bg.color: #576773 window.active.button.hover.bg.border.color: #9aabb9 window.active.button.pressed.bg.color: #343b40 window.active.button.pressed.bg.colorTo: #000000 window.active.button.pressed.image.color: #b6b6b6 window.active.button.pressed.bg.border.color: #b1a19e window.active.button.disabled.bg: parentrelative window.active.button.disabled.image.color: #725e51 window.active.handle.bg: flat solid window.active.handle.bg.color:#51443e window.*.grip.bg: flat solid window.*.grip.bg.color: #51443e window.handle.width: 2 !! Inactive Windows window.inactive.title.bg: flat gradient vertical window.inactive.title.bg.color: #f0ece3 window.inactive.title.bg.colorTo: #f8f7f2 window.inactive.*.border.color: #bfbfbf window.inactive.label.bg: parentrelative window.inactive.label.text.color: #919191 window.inactive.button.*.bg: parentrelative window.inactive.button.*.bg.color: #eeeeee window.inactive.button.*.image.color: #b6b6b6 window.inactive.button.*.bg.border.color: #c9c9c9 window.inactive.button.pressed.bg.color: #c5c2c5 window.inactive.button.pressed.bg.border.color: #7b7d7b window.inactive.button.pressed.image.color: #999999 window.inactive.button.hover.bg.color: #afb1b2 window.inactive.button.hover.bg.border.color: #d9dfe4 window.inactive.button.hover.image.color: #a0a0a0 window.inactive.button.disabled.bg: parentrelative window.inactive.button.disabled.image.color: #dddddd window.inactive.handle.bg: flat solid window.inactive.handle.bg.color: #f9f7f3 window.inactive.grip.bg: parentrelative !! Fonts window.active.label.text.font: shadow=y:shadowoffset=1:shadowtint=75 window.inactive.label.text.font: shadow=y:shadowoffset=1:shadowtint=0 menu.items.font: menu.title.text.font: shadow=y:shadowoffset=1:shadowtint=75 openbox-3.6.1/themes/Onyx-Citrus/0000755000175300001440000000000012544731565013700 500000000000000openbox-3.6.1/themes/Onyx-Citrus/openbox-3/0000755000175300001440000000000012544731565015512 500000000000000openbox-3.6.1/themes/Onyx-Citrus/openbox-3/themerc0000644000175300001440000000523311003645211016764 00000000000000!! Onyx-Citrus by Dana Jansens !! inspired by "Carbon" by p0ng, and the ever so popular Vista glass look !! Menu background menu.items.bg: flat gradient vertical menu.items.bg.color: #303030 menu.items.bg.colorTo: #080808 !! Menu text menu.items.text.color: #b8b8b8 menu.items.justify: left menu.items.disabled.text.color: #606060 !! Menu headers menu.title.bg: raised splitvertical gradient menu.title.bg.color: #303030 menu.title.bg.colorTo: #181818 menu.title.text.color: white menu.title.text.justify: center !! Selected menu item menu.items.active.bg: raised splitvertical gradient menu.items.active.bg.color: #e18a51 menu.items.active.bg.colorTo: #e1621d menu.items.active.text.color: white !! Titlebar window.active.title.bg: raised splitvertical gradient window.active.title.bg.color: #414141 window.active.title.bg.colorTo: #202020 window.inactive.title.bg: gradient splitvertical gradient flat window.inactive.title.bg.color: #DEE0D8 window.inactive.title.bg.colorTo: #E0E0D8 !! Titlebar text window.label.text.justify: center window.active.label.bg: parentrelative window.active.label.text.color: #f8f8f8 window.inactive.label.bg: parentrelative window.inactive.label.text.color: #747474 !! Window buttons window.*.button.*.bg: parentrelative window.active.button.*.hover.bg: flat splitvertical gradient border window.inactive.button.*.hover.bg: parentrelative window.*.button.*.pressed.bg: flat splitvertical gradient border window.active.button.*.hover.bg.color: #e18a51 window.active.button.*.hover.bg.colorTo: #e1621d window.active.button.*.hover.bg.border.color: #ab5d20 window.active.button.*.pressed.bg.color: #99663c window.active.button.*.pressed.bg.colorTo: #99663c window.active.button.*.pressed.image.color: #888888 window.active.button.*.pressed.bg.border.color: #683913 window.inactive.button.*.pressed.bg.color: #ffaa64 window.inactive.button.*.pressed.bg.colorTo: #ffaa64 window.inactive.button.*.pressed.image.color: #fdceb7 window.inactive.button.*.pressed.bg.border.color: #f0832c window.active.button.*.image.color: #e0e0e0 window.active.button.disabled.image.color: #707070 window.inactive.button.*.image.color: #747474 window.inactive.button.disabled.image.color: #c0c0c0 !! Borders window.active.border.color: #181818 window.inactive.border.color: #404040 window.inactive.title.separator.color: #eeeee6 border.width: 1 padding.width: 2 window.handle.width: 0 window.active.client.color: #181818 window.inactive.client.color: #CACAB6 window.client.padding.width: 1 window.client.padding.height: 1 menu.overlap: 0 !! Font shadows menu.items.font:shadow=y:shadowtint=30 !! On-screen displays osd.bg: gradient vertical flat osd.bg.color: #303030 osd.bg.colorTo: #080808 openbox-3.6.1/themes/Onyx/0000755000175300001440000000000012544731565012431 500000000000000openbox-3.6.1/themes/Onyx/openbox-3/0000755000175300001440000000000012544731565014243 500000000000000openbox-3.6.1/themes/Onyx/openbox-3/themerc0000644000175300001440000000522611003645211015517 00000000000000!! Onyx by Dana Jansens !! inspired by "Carbon" by p0ng, and the ever so popular Vista glass look !! Menu background menu.items.bg: flat gradient vertical menu.items.bg.color: #303030 menu.items.bg.colorTo: #080808 !! Menu text menu.items.text.color: #b8b8b8 menu.items.justify: left menu.items.disabled.text.color: #606060 !! Menu headers menu.title.bg: raised splitvertical gradient menu.title.bg.color: #303030 menu.title.bg.colorTo: #181818 menu.title.text.color: white menu.title.text.justify: center !! Selected menu item menu.items.active.bg: raised splitvertical gradient menu.items.active.bg.color: #6d95de menu.items.active.bg.colorTo: #2b829d menu.items.active.text.color: #f8f8f8 !! Titlebar window.active.title.bg: raised splitvertical gradient window.active.title.bg.color: #414141 window.active.title.bg.colorTo: #202020 window.inactive.title.bg: gradient splitvertical gradient flat window.inactive.title.bg.color: #DEE0D8 window.inactive.title.bg.colorTo: #E0E0D8 !! Titlebar text window.label.text.justify: center window.active.label.bg: parentrelative window.active.label.text.color: #f8f8f8 window.inactive.label.bg: parentrelative window.inactive.label.text.color: #747474 !! Window buttons window.*.button.*.bg: parentrelative window.active.button.*.hover.bg: flat splitvertical gradient border window.inactive.button.*.hover.bg: parentrelative window.*.button.*.pressed.bg: flat splitvertical gradient border window.active.button.*.hover.bg.color: #398dc6 window.active.button.*.hover.bg.colorTo: #236d83 window.active.button.*.hover.bg.border.color: #236d83 window.active.button.*.pressed.bg.color: #235679 window.active.button.*.pressed.bg.colorTo: #154350 window.active.button.*.pressed.image.color: #898989 window.active.button.*.pressed.bg.border.color: #154350 window.inactive.button.*.pressed.bg.color: #4ab5ff window.inactive.button.*.pressed.bg.colorTo: #38b3d6 window.inactive.button.*.pressed.image.color: #b7fdef window.inactive.button.*.pressed.bg.border.color: #38b3d6 window.active.button.*.image.color: #e0e0e0 window.active.button.disabled.image.color: #707070 window.inactive.button.*.image.color: #747474 window.inactive.button.disabled.image.color: #c0c0c0 !! Borders window.active.border.color: #181818 window.inactive.border.color: #404040 window.inactive.title.separator.color: #eeeee6 border.width: 1 padding.width: 2 window.handle.width: 0 window.active.client.color: #181818 window.inactive.client.color: #CACAB6 window.client.padding.width: 1 window.client.padding.height: 1 menu.overlap: 0 !! Font shadows menu.items.font:shadow=y:shadowtint=30 !! On-screen displays osd.bg: gradient vertical flat osd.bg.color: #303030 osd.bg.colorTo: #080808 openbox-3.6.1/themes/Orang/0000755000175300001440000000000012544731565012542 500000000000000openbox-3.6.1/themes/Orang/openbox-3/0000755000175300001440000000000012544731565014354 500000000000000openbox-3.6.1/themes/Orang/openbox-3/themerc0000644000175300001440000000517711003645211015635 00000000000000!! i be a mess menu.title.bg: flat solid border menu.title.bg.color: #ce5c00 menu.title.bg.border.color: #fcaf3e menu.title.text.color: #ffffff menu.items.bg: flat solid #menu.items.bg.color: #ffffff menu.items.bg.color: #d3d7cf menu.items.text.color: #000000 menu.items.disabled.text.color: #737573 menu.items.active.bg: flat solid menu.items.active.bg.color: #ce5c00 menu.items.active.text.color: #ffffff !! General window settings *.justify: left !! focused window settings window.active.client.color: #f7f7f7 window.active.title.bg: flat border solid window.active.title.bg.color: #ce5c00 window.active.title.bg.border.color: #fcaf3e window.active.handle.bg: flat solid border window.active.handle.bg.color: #d3d7cf window.active.handle.bg.border.color: #eeeeec !window.active.handle.bg.color: #969494 window.active.grip.bg: parentrelative window.active.label.bg: parentrelative window.active.label.text.color: #ffffff window.active.button.*.bg: parentrelative window.active.button.*.image.color: #ffffff window.active.button.pressed.bg: flat solid bevel1 !window.active.button.pressed.bg.color: #888888 window.active.button.pressed.bg.color: #f57900 window.active.button.pressed.image.color: #d3d7cf !#hover window.active.button.hover.bg: flat solid window.active.button.hover.image.color: #ffffff window.active.button.hover.bg.color: #fcaf3e window.active.button.disabled.bg: flat solid window.active.button.disabled.bg.color: #dfb454 window.active.button.disabled.image.color: #ffffff !! unfocused window settings window.inactive.client.color: #f7f7f7 window.inactive.title.bg: flat solid border window.inactive.title.bg.color: #d3d7cf window.inactive.title.bg.border.color: #dfe3db window.inactive.handle.bg: flat solid window.inactive.handle.bg.color: #d3d7cf window.inactive.grip.bg: parentrelative window.inactive.label.bg: parentrelative window.inactive.label.text.color: #888a85 window.inactive.button.*.bg: parentrelative window.inactive.button.unpressed.image.color: #555555 window.inactive.button.pressed.bg: flat border solid window.inactive.button.pressed.bg.color: #aaaaaa window.inactive.button.pressed.bg.border.color: #e5e5e5 window.inactive.button.hover.bg: flat solid window.inactive.button.hover.bg.color: #e3e3e3 window.inactive.button.disabled.bg:flat solid window.inactive.button.disabled.bg.color: #e3e3e3 !! Global width settings border.Width: 1 padding.width: 1 window.handle.width: 3 window.client.padding.width: 0 window.client.padding.height: 0 menu.overlap: 2 !! Miscellaneous settings border.color: #000000 !! font me! window.active.label.text.font: window.inactive.label.text.font: menu.title.text.font: menu.items.font: openbox-3.6.1/themes/Syscrash/0000755000175300001440000000000012544731565013273 500000000000000openbox-3.6.1/themes/Syscrash/openbox-3/0000755000175300001440000000000012544731565015105 500000000000000openbox-3.6.1/themes/Syscrash/openbox-3/max_disabled.xbm0000644000175300001440000000016611003645211020131 00000000000000#define max_width 6 #define max_height 6 static unsigned char max_bits[] = { 0x3f, 0x3f, 0x21, 0x21, 0x21, 0x3f }; openbox-3.6.1/themes/Syscrash/openbox-3/max_pressed.xbm0000644000175300001440000000016611003645211020027 00000000000000#define max_width 6 #define max_height 6 static unsigned char max_bits[] = { 0x3f, 0x3f, 0x21, 0x21, 0x21, 0x3f }; openbox-3.6.1/themes/Syscrash/openbox-3/max_toggled.xbm0000644000175300001440000000021611003645211020003 00000000000000#define max_toggled_width 6 #define max_toggled_height 6 static unsigned char max_toggled_bits[] = { 0x3c, 0x27, 0x25, 0x3d, 0x11, 0x1f }; openbox-3.6.1/themes/Syscrash/openbox-3/max.xbm0000644000175300001440000000016611003645211016302 00000000000000#define max_width 6 #define max_height 6 static unsigned char max_bits[] = { 0x3e, 0x22, 0x2f, 0x29, 0x39, 0x0f }; openbox-3.6.1/themes/Syscrash/openbox-3/themerc0000644000175300001440000000662611003645211016366 00000000000000!! syscrash's theme, based off nightm4re's flax or something !!--------------------------------------------------------------------------- !! Dimensions border.width: 1 border.color: #6d6d6d padding.width: 1 window.handle.width: 0 window.client.padding.width: 0 window.client.padding.height: 0 menu.overlap: 0 !!--------------------------------------------------------------------------- !! Fonts window.active.label.text.font: shadow=y window.label.text.justify: left menu.title.text.font: shadow=y menu.title.text.justify: left menu.items.font: !!--------------------------------------------------------------------------- !! Menu Settings menu.title.bg: flat gradient vertical menu.title.bg.color: #4c4c4c menu.title.bg.colorTo: #707070 menu.title.text.color: white menu.items.bg: flat solid menu.items.bg.color: #e6e6e0 menu.items.text.color: #22221c menu.items.active.bg: flat solid menu.items.active.bg.color: #4c4c4c menu.items.active.text.color: #ffffff menu.items.disabled.text.color: #8c8c75 !!--------------------------------------------------------------------------- !! Window Settings window.active.padding.width: 10 window.active.title.bg: flat solid window.active.title.bg.color: #9b9b9b window.active.label.bg: flat gradient vertical border window.active.label.bg.color: #4c4c4c window.active.label.bg.colorTo: #707070 window.active.label.text.color: white window.active.handle.bg: flat gradient crossdiagonal window.active.handle.bg.color: #d3deda window.active.handle.bg.colorTo: #9fbfc1 window.active.grip.bg: flat solid window.active.grip.bg.color: #9fbfc1 window.active.client.color: #4c4c4c window.inactive.client.color: #707070 window.inactive.title.bg: flat solid window.inactive.title.bg.color: #9b9b9b window.inactive.label.bg: parentrelative window.inactive.label.text.color: #4c4c4c window.inactive.handle.bg: flat solid window.inactive.handle.bg.color: #e6e6e0 window.inactive.grip.bg: flat solid window.inactive.grip.bg.color: #e6e6e0 !!--------------------------------------------------------------------------- !! Button Settings window.active.button.unpressed.bg: flat gradient vertical border window.active.button.unpressed.bg.color: #515151 window.active.button.unpressed.bg.colorTo: #676767 window.active.button.unpressed.image.color: white window.active.button.pressed.bg: flat gradient crossdiagonal border window.active.button.pressed.bg.color: #d3deda window.active.button.pressed.bg.colorTo: #9fbfc1 window.active.button.hover.bg: flat solid border window.active.button.hover.bg.color: #e6e6e0 window.active.button.disabled.bg: parentrelative window.active.button.disabled.image.color: #8c8c75 !! without this it looks right !!window.active.button.toggled.bg: flat solid !!window.active.button.toggled.bg.color: #9fbfc1 window.inactive.button.unpressed.bg: parentrelative window.inactive.button.unpressed.image.color: #4c4c4c window.inactive.button.hover.bg: flat solid border window.inactive.button.hover.bg.color: #e6e6e0 window.inactive.button.pressed.bg: flat gradient crossdiagonal border window.inactive.button.pressed.bg.color: #d3deda window.inactive.button.pressed.bg.colorTo: #9fbfc1 window.inactive.button.disabled.bg: parentrelative window.inactive.button.disabled.image.color: #8c8c75 !! window.inactive.button.toggled.bg: flat solid !! window.inactive.button.toggled.bg.color: #444438 openbox-3.6.1/tools/0000755000175300001440000000000012544731565011347 500000000000000openbox-3.6.1/tools/gdm-control/0000755000175300001440000000000012544731565013574 500000000000000openbox-3.6.1/tools/gdm-control/gdm-control.c0000644000175300001440000001620712426440016016076 00000000000000#include #include #include #include #include #include #include #include #include #include typedef enum { INVALID, NONE, SHUTDOWN, REBOOT, SUSPEND, SWITCHUSER } Action; #define GDM_PROTOCOL_SOCKET_PATH1 "/var/run/gdm_socket" #define GDM_PROTOCOL_SOCKET_PATH2 "/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 GDM_PROTOCOL_MSG_SET_ACTION" NONE" #define GDM_ACTION_STR_SHUTDOWN GDM_PROTOCOL_MSG_SET_ACTION" HALT" #define GDM_ACTION_STR_REBOOT GDM_PROTOCOL_MSG_SET_ACTION" REBOOT" #define GDM_ACTION_STR_SUSPEND GDM_PROTOCOL_MSG_SET_ACTION" SUSPEND" #define GDM_MIT_MAGIC_COOKIE_LEN 16 static int fd = 0; static void gdm_disconnect() { if (fd > 0) close(fd); fd = 0; } static char* get_display_number(void) { char *display_name; char *retval; char *p; display_name = XDisplayName(NULL); 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 char* gdm_send_protocol_msg (const char *msg) { GString *retval; char buf[256]; char *p; int len; p = g_strconcat(msg, "\n", NULL); if (write (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(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 gboolean gdm_authenticate() { FILE *f; Xauth *xau; const char *xau_path; char *display_number; gboolean retval; 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(msg); g_free (msg); if (response && !strcmp(response, "OK")) { /*auth_cookie = g_strdup(buffer);*/ g_free(response); retval = TRUE; break; } g_free (response); } fclose(f); return retval; } static gboolean gdm_connect() { struct sockaddr_un addr; char *response; assert(fd <= 0); fd = socket(AF_UNIX, SOCK_STREAM, 0); if (fd < 0) { g_warning("Failed to create GDM socket: %s", g_strerror (errno)); gdm_disconnect(); return FALSE; } if (g_file_test(GDM_PROTOCOL_SOCKET_PATH1, G_FILE_TEST_EXISTS)) strcpy(addr.sun_path, GDM_PROTOCOL_SOCKET_PATH1); else strcpy(addr.sun_path, GDM_PROTOCOL_SOCKET_PATH2); addr.sun_family = AF_UNIX; if (connect(fd, (struct sockaddr *) &addr, sizeof (addr)) < 0) { g_warning("Failed to establish a connection with GDM: %s", g_strerror(errno)); gdm_disconnect(); return FALSE; } response = gdm_send_protocol_msg(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_disconnect(); return FALSE; } g_free(response); if (!gdm_authenticate()) { g_warning("Failed to authenticate with GDM"); gdm_disconnect(); return FALSE; } return TRUE; } int main(int argc, char **argv) { int i; Action a = INVALID; for (i = 1; i < argc; ++i) { if (!strcmp(argv[i], "--help")) { a = INVALID; break; } if (!strcmp(argv[i], "--none")) { a = NONE; break; } if (!strcmp(argv[i], "--shutdown")) { a = SHUTDOWN; break; } if (!strcmp(argv[i], "--reboot")) { a = REBOOT; break; } if (!strcmp(argv[i], "--suspend")) { a = SUSPEND; break; } if (!strcmp(argv[i], "--switch-user")) { a = SWITCHUSER; break; } } if (!a) { printf("Usage: gdm-control ACTION\n\n"); printf("Actions:\n"); printf(" --help Display this help and exit\n"); printf(" --none Do nothing special when the current session ends\n"); printf(" --shutdown Shutdown the computer when the current session ends\n"); printf(" --reboot Reboot the computer when the current session ends\n"); printf(" --suspend Suspend the computer when the current session ends\n"); printf(" --switch-user Log in as a new user (this works immediately)\n\n"); return 0; } { char *d, *response; const char *action_string; d = XDisplayName(NULL); if (!d) { fprintf(stderr, "Unable to find the X display specified by the DISPLAY " "environment variable. Ensure that it is set correctly."); return 1; } switch (a) { case NONE: action_string = GDM_ACTION_STR_NONE; break; case SHUTDOWN: action_string = GDM_ACTION_STR_SHUTDOWN; break; case REBOOT: action_string = GDM_ACTION_STR_REBOOT; break; case SUSPEND: action_string = GDM_ACTION_STR_SUSPEND; break; case SWITCHUSER: action_string = GDM_PROTOCOL_MSG_FLEXI_XSERVER; break; default: assert(0); } if (gdm_connect()) { response = gdm_send_protocol_msg(action_string); g_free(response); gdm_disconnect(); } } return 0; } openbox-3.6.1/tools/gnome-panel-control/0000755000175300001440000000000012544731565015227 500000000000000openbox-3.6.1/tools/gnome-panel-control/gnome-panel-control.c0000644000175300001440000000472512426440016021166 00000000000000#include #include #include #include typedef enum { NONE, MAIN_MENU, RUN_DIALOG } Action; int main(int argc, char **argv) { int i; Action a = NONE; for (i = 1; i < argc; ++i) { if (!strcmp(argv[i], "--help")) { a = NONE; break; } if (!strcmp(argv[i], "--main-menu")) { a = MAIN_MENU; break; } if (!strcmp(argv[i], "--run-dialog")) { a = RUN_DIALOG; break; } } if (!a) { printf("Usage: gnome-panel-control ACTION\n\n"); printf("Actions:\n"); printf(" --help Display this help and exit\n"); printf(" --main-menu Show the main menu\n"); printf(" --run-dialog Show the run dialog\n\n"); return 0; } { Display *d; Window root; XClientMessageEvent ce; Atom act_atom; Time timestamp; d = XOpenDisplay(NULL); if (!d) { fprintf(stderr, "Unable to open the X display specified by the DISPLAY " "environment variable. Ensure you have permission to " "connect to the display."); return 1; } root = RootWindowOfScreen(DefaultScreenOfDisplay(d)); switch (a) { case MAIN_MENU: act_atom = XInternAtom(d, "_GNOME_PANEL_ACTION_MAIN_MENU", False); break; case RUN_DIALOG: act_atom = XInternAtom(d, "_GNOME_PANEL_ACTION_RUN_DIALOG", False); break; default: assert(0); } /* Generate a timestamp */ { XEvent event; Window win; win = XCreateSimpleWindow(d, root, 0, 0, 1, 1, 0, 0, 0); XSelectInput(d, win, PropertyChangeMask); XChangeProperty(d, win, act_atom, act_atom, 8, PropModeAppend, NULL, 0); XWindowEvent(d, win, PropertyChangeMask, &event); XDestroyWindow(d, win); timestamp = event.xproperty.time; } ce.type = ClientMessage; ce.window = root; ce.message_type = XInternAtom(d, "_GNOME_PANEL_ACTION", False); ce.format = 32; ce.data.l[0] = act_atom; ce.data.l[1] = timestamp; XSendEvent(d, root, False, StructureNotifyMask, (XEvent*) &ce); XCloseDisplay(d); } return 0; } openbox-3.6.1/tools/obxprop/0000755000175300001440000000000012544731565013040 500000000000000openbox-3.6.1/tools/obxprop/obxprop.c0000644000175300001440000002175612426440016014613 00000000000000#include #include #include #include #include #include #include gint fail(const gchar *s) { if (s) fprintf(stderr, "%s\n", s); else fprintf (stderr, "Usage: obxprop [OPTIONS] [--] [PROPERTIES ...]\n\n" "Options:\n" " --help Display this help and exit\n" " --display DISPLAY Connect to this X display\n" " --id ID Show the properties for this window\n" " --root Show the properties for the root window\n"); return 1; } gint parse_hex(gchar *s) { gint result = 0; while (*s) { gint add; if (*s >= '0' && *s <='9') add = *s-'0'; else if (*s >= 'A' && *s <='F') add = *s-'A'+10; else if (*s >= 'a' && *s <='f') add = *s-'a'+10; else break; result *= 16; result += add; ++s; } return result; } Window find_client(Display *d, Window win) { Window r, *children; guint n, i; Atom state = XInternAtom(d, "WM_STATE", True); Atom ret_type; gint ret_format, res; gulong ret_items, ret_bytesleft, *xdata; XQueryTree(d, win, &r, &r, &children, &n); for (i = 0; i < n; ++i) { Window w = find_client(d, children[i]); if (w) return w; } // try me res = XGetWindowProperty(d, win, state, 0, 1, False, state, &ret_type, &ret_format, &ret_items, &ret_bytesleft, (unsigned char**) &xdata); XFree(xdata); if (res != Success || ret_type == None || ret_items < 1) return None; return win; // found it! } static gboolean get_all(Display *d, Window win, Atom prop, Atom *type, gint *size, guchar **data, guint *num) { gboolean ret = FALSE; gint res; guchar *xdata = NULL; gulong ret_items, bytes_left; res = XGetWindowProperty(d, win, prop, 0l, G_MAXLONG, FALSE, AnyPropertyType, type, size, &ret_items, &bytes_left, &xdata); if (res == Success) { if (ret_items > 0) { guint i; *data = g_malloc(ret_items * (*size / 8)); for (i = 0; i < ret_items; ++i) switch (*size) { case 8: (*data)[i] = xdata[i]; break; case 16: ((guint16*)*data)[i] = ((gushort*)xdata)[i]; break; case 32: ((guint32*)*data)[i] = ((gulong*)xdata)[i]; break; default: g_assert_not_reached(); /* unhandled size */ } } *num = ret_items; ret = TRUE; XFree(xdata); } return ret; } GString *append_string(GString *before, gchar *after, gboolean quote) { const gchar *q = quote ? "\"" : ""; if (before) g_string_append_printf(before, ", %s%s%s", q, after, q); else g_string_append_printf(before = g_string_new(NULL), "%s%s%s", q, after, q); return before; } GString *append_int(GString *before, guint after) { if (before) g_string_append_printf(before, ", %u", after); else g_string_append_printf(before = g_string_new(NULL), "%u", after); return before; } gchar* read_strings(gchar *val, guint n, gboolean utf8) { GSList *strs = NULL, *it; GString *ret; gchar *p; guint i; p = val; while (p < val + n) { strs = g_slist_append(strs, g_strndup(p, n - (p - val))); p += strlen(p) + 1; /* next string */ } ret = NULL; for (i = 0, it = strs; it; ++i, it = g_slist_next(it)) { char *data; if (utf8) { if (g_utf8_validate(it->data, -1, NULL)) data = g_strdup(it->data); else data = g_strdup(""); } else data = g_locale_to_utf8(it->data, -1, NULL, NULL, NULL); ret = append_string(ret, data, TRUE); g_free(data); } while (strs) { g_free(strs->data); strs = g_slist_delete_link(strs, strs); } if (ret) return g_string_free(ret, FALSE); return NULL; } gchar* read_atoms(Display *d, guchar *val, guint n) { GString *ret; guint i; ret = NULL; for (i = 0; i < n; ++i) ret = append_string(ret, XGetAtomName(d, ((guint32*)val)[i]), FALSE); if (ret) return g_string_free(ret, FALSE); return NULL; } gchar* read_numbers(guchar *val, guint n, guint size) { GString *ret; guint i; ret = NULL; for (i = 0; i < n; ++i) switch (size) { case 8: ret = append_int(ret, ((guint8*)val)[i]); break; case 16: ret = append_int(ret, ((guint16*)val)[i]); break; case 32: ret = append_int(ret, ((guint32*)val)[i]); break; default: g_assert_not_reached(); /* unhandled size */ } if (ret) return g_string_free(ret, FALSE); return NULL; } gboolean read_prop(Display *d, Window w, Atom prop, const gchar **type, gchar **val) { guchar *ret; guint nret; gint size; Atom ret_type; ret = NULL; if (get_all(d, w, prop, &ret_type, &size, &ret, &nret)) { *type = XGetAtomName(d, ret_type); if (strcmp(*type, "STRING") == 0) *val = read_strings((gchar*)ret, nret, FALSE); else if (strcmp(*type, "UTF8_STRING") == 0) *val = read_strings((gchar*)ret, nret, TRUE); else if (strcmp(*type, "ATOM") == 0) { g_assert(size == 32); *val = read_atoms(d, ret, nret); } else *val = read_numbers(ret, nret, size); g_free(ret); return TRUE; } return FALSE; } void show_properties(Display *d, Window w, int argc, char **argv) { Atom* props; int i, n; props = XListProperties(d, w, &n); for (i = 0; i < n; ++i) { const char *type; char *name, *val; name = XGetAtomName(d, props[i]); if (read_prop(d, w, props[i], &type, &val)) { int found = 1; if (argc) { int i; found = 0; for (i = 0; i < argc; i++) if (!strcmp(name, argv[i])) { found = 1; break; } } if (found) g_print("%s(%s) = %s\n", name, type, (val ? val : "")); g_free(val); } XFree(name); } XFree(props); } int main(int argc, char **argv) { Display *d; Window id, userid = None; int i; char *dname = NULL; gboolean root = FALSE; for (i = 1; i < argc; ++i) { if (!strcmp(argv[i], "--help")) { return fail(NULL); } else if (!strcmp(argv[i], "--root")) root = TRUE; else if (!strcmp(argv[i], "--id")) { if (++i == argc) return fail(NULL); if (argv[i][0] == '0' && argv[i][1] == 'x') { /* hex */ userid = parse_hex(argv[i]+2); } else { /* decimal */ userid = atoi(argv[i]); } if (!userid) return fail("Unable to parse argument to --id."); } else if (!strcmp(argv[i], "--display")) { if (++i == argc) return fail(NULL); dname = argv[i]; } else if (*argv[i] != '-') break; else if (!strcmp(argv[i], "--")) { i++; break; } else return fail(NULL); } d = XOpenDisplay(dname); if (!d) { return fail("Unable to find an X display. " "Ensure you have permission to connect to the display."); } if (root) userid = RootWindow(d, DefaultScreen(d)); if (userid == None) { int j; j = XGrabPointer(d, RootWindow(d, DefaultScreen(d)), False, ButtonPressMask, GrabModeAsync, GrabModeAsync, None, XCreateFontCursor(d, XC_crosshair), CurrentTime); if (j != GrabSuccess) return fail("Unable to grab the pointer device"); while (1) { XEvent ev; XNextEvent(d, &ev); if (ev.type == ButtonPress) { XUngrabPointer(d, CurrentTime); userid = ev.xbutton.subwindow; break; } } id = find_client(d, userid); } else id = userid; /* they picked this one */ if (id == None) return fail("Unable to find window with the requested ID"); show_properties(d, id, argc - i, &argv[i]); XCloseDisplay(d); return 0; } openbox-3.6.1/tools/themeupdate/0000755000175300001440000000000012544731565013654 500000000000000openbox-3.6.1/tools/themeupdate/themeupdate.py0000755000175300001440000003703611003645211016444 00000000000000#! /usr/bin/python # themeupdate.py for the Openbox window manager # This utility is for updating old themes from Blackbox, Fluxbox, and Openbox2 # to Openbox3 # # Copyright (c) 2003-2007 Dana Jansens # # 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 the COPYING file for a copy of the GNU General Public License. import sys data = [] valid = True def out(str): sys.stderr.write(str) sys.stderr.flush() def read_bool(): while True: inp = sys.stdin.readline(1).strip() if inp == 'y' or inp == '': return True if inp == 'n': return False def getkeyval(line): key = line[:line.find(':')].strip() value = line[line.find(':') + 1:].strip() if not (key and value): key = value = None return key, value def find_key(data, keysubstr, exact = False): i = 0 n = len(data) while i < n: l = data[i] key, value = getkeyval(l) if key and value: if (exact and key == keysubstr) or \ (not exact and key.find(keysubstr) != -1): return i, key, value i += 1 return -1, None, None def simple_replace(data): pairs = {} pairs['.picColor'] = '.imageColor' pairs['menu.frame'] = 'menu.items' pairs['menu.hilite'] = 'menu.selected' pairs['borderColor'] = 'border.color' pairs['imageColor'] = 'image.color' pairs['textColor'] = 'text.color' pairs['interlaceColor'] = 'interlace.color' for k in pairs.keys(): while 1: i, key, nul = find_key(data, k); if i >= 0: newl = data[i].replace(k, pairs[k]) out('Updating "' + key + '" to "' + key.replace(k, pairs[k]) + '"\n') data[i] = newl else: break pairs = {} pairs['window.focus.font'] = 'window.active.label.text.font' pairs['window.unfocus.font'] = 'window.inactive.label.text.font' pairs['window.justify'] = 'window.label.justify' pairs['menu.frame.disableColor'] = 'menu.disabled.textColor' pairs['window.label.focus.font'] = 'window.active.label.text.font' pairs['window.label.unfocus.font'] = 'window.inactive.label.text.font' pairs['window.label.justify'] = 'window.label.text.justify' pairs['menu.title.font'] = 'menu.title.text.font' pairs['menu.title.justify'] = 'menu.title.text.justify' pairs['menuOverlap'] = 'menu.overlap' pairs['handleWidth'] = 'window.handle.width' pairs['borderWidth'] = 'border.width' pairs['bevelWidth'] = 'padding.width' pairs['frameWidth'] = 'window.client.padding.width' pairs['window.frame.focusColor'] = 'window.active.client.color' pairs['window.frame.unfocusColor'] = 'window.inactive.client.color' pairs['window.title.focus'] = 'window.active.title.bg' pairs['window.title.unfocus'] = 'window.inactive.title.bg' pairs['window.label.focus'] = 'window.active.label.bg' pairs['window.label.unfocus'] = 'window.inactive.label.bg' pairs['window.handle.focus'] = 'window.active.handle.bg' pairs['window.handle.unfocus'] = 'window.inactive.handle.bg' pairs['window.grip.focus'] = 'window.active.grip.bg' pairs['window.grip.unfocus'] = 'window.inactive.grip.bg' pairs['menu.items'] = 'menu.items.bg' pairs['menu.title'] = 'menu.title.bg' pairs['menu.selected'] = 'menu.items.active.bg' pairs['window.title.focus'] = 'window.active.title.bg' pairs['window.label.focus'] = 'window.active.label.bg' pairs['window.title.unfocus'] = 'window.inactive.title.bg' pairs['window.label.unfocus'] = 'window.inactive.label.bg' pairs['window.button.disabled.focus'] = 'window.active.button.disabled.bg' pairs['window.button.disabled.unfocus'] = \ 'window.inactive.button.disabled.bg' pairs['window.button.pressed.focus'] = 'window.active.button.pressed.bg' pairs['window.button.pressed.unfocus'] = \ 'window.inactive.button.pressed.bg' pairs['window.button.toggled.focus'] = 'window.active.button.toggled.bg' pairs['window.button.toggled.unfocus'] = \ 'window.inactive.button.toggled.bg' pairs['window.button.focus'] = 'window.active.button.unpressed.bg' pairs['window.button.unfocus'] = 'window.inactive.button.unpressed.bg' pairs['window.button.hover.focus'] = 'window.active.button.hover.bg' pairs['window.button.hover.unfocus'] = 'window.inactive.button.hover.bg' for k in pairs.keys(): while 1: i, key, nul = find_key(data, k, True); if i >= 0: newl = data[i].replace(k, pairs[k]) out('Updating "' + key + '" to "' + key.replace(k, pairs[k]) + '"\n') data[i] = newl else: break pairs = {} pairs['window.title.focus'] = 'window.active.title' pairs['window.title.unfocus'] = 'window.inactive.title' pairs['window.label.focus'] = 'window.active.label' pairs['window.label.unfocus'] = 'window.inactive.label' pairs['window.handle.focus'] = 'window.active.handle' pairs['window.handle.unfocus'] = 'window.inactive.handle' pairs['window.grip.focus'] = 'window.active.grip' pairs['window.grip.unfocus'] = 'window.inactive.grip' pairs['menu.selected'] = 'menu.items.active' pairs['window.title.focus'] = 'window.active.title' pairs['window.label.focus'] = 'window.active.label' pairs['window.title.unfocus'] = 'window.inactive.title' pairs['window.label.unfocus'] = 'window.inactive.label' pairs['window.button.disabled.focus'] = 'window.active.button.disabled' pairs['window.button.disabled.unfocus'] = \ 'window.inactive.button.disabled' pairs['window.button.pressed.focus'] = 'window.active.button.pressed' pairs['window.button.pressed.unfocus'] = \ 'window.inactive.button.pressed' pairs['window.button.toggled.focus'] = 'window.active.button.toggled' pairs['window.button.toggled.unfocus'] = \ 'window.inactive.button.toggled' pairs['window.button.focus'] = 'window.active.button' pairs['window.button.unfocus'] = 'window.inactive.button' pairs['window.button.hover.focus'] = 'window.active.button.hover' pairs['window.button.hover.unfocus'] = 'window.inactive.button.hover' pairs['window.label.unfocus'] = 'window.inactive.label' pairs['window.label.focus'] = 'window.active.label' pairs['window.button.focus'] = 'window.active.button.unpressed' pairs['menu.disabled'] = 'menu.items.disabled' pairs['menu.selected'] = 'menu.items.active' pairs['window.button.unfocus'] = 'window.inactive.button.unpressed' pairs['window.button.pressed.focus'] = 'window.active.button.pressed' pairs['window.button.pressed.unfocus'] = 'window.inactive.button.pressed' pairs['window.button.disabled.focus'] = 'window.active.button.disabled' pairs['window.button.disabled.unfocus'] = 'window.inactive.button.disabled' pairs['window.button.hover.focus'] = 'window.active.button.hover' pairs['window.button.hover.unfocus'] = 'window.inactive.button.hover' pairs['window.button.toggled.focus'] = 'window.active.button.toggled' pairs['window.button.toggled.unfocus'] = 'window.inactive.button.toggled' for k in pairs.keys(): while 1: i, key, nul = find_key(data, k); if i >= 0: newl = data[i].replace(k, pairs[k]) out('Updating "' + key + '" to "' + key.replace(k, pairs[k]) + '"\n') data[i] = newl else: break def replace_colors(data): i = 0 n = len(data) while i < n: l = data[i] key, value = getkeyval(l) if key and value: if key.find('.color') != -1: if key.find('client.color') == -1 \ and key.find('image.color') == -1 \ and key.find('bg.color') == -1 \ and key.find('border.color') == -1 \ and key.find('interlace.color') == -1 \ and key.find('text.color') == -1: newl = data[i].replace('.color', '.bg.color') out('Updating "' + key + '" to "' + key.replace('.color', '.bg.color') + '"\n') data[i] = newl if key.find('.border.color') != -1 \ and key.find('bg.border.color') == -1: newl = data[i].replace('.border.color', '.bg.border.color') out('Updating "' + key + '" to "' + key.replace('.border.color', '.bg.border.color') + '"\n') data[i] = newl if key.find('.interlace.color') != -1 \ and key.find('bg.interlace.color') == -1: newl = data[i].replace('.interlace.color', '.bg.interlace.color') out('Updating "' + key + '" to "' + key.replace('.interlace.color', '.bg.interlace.color') + '"\n') data[i] = newl i += 1 def remove(data): invalid = [] invalid.append('toolbar') for inv in invalid: while 1: i, key, nul = find_key(data, inv) if i >= 0: out(key + ' is no longer supported.\nRemove (Y/n)? ') if read_bool(): out('Removing "' + key + '"\n') data.pop(i) else: break invalid.append('rootCommand') invalid.append('menu.bullet') invalid.append('menu.bullet.image.color') invalid.append('menu.bullet.selected.image.color') invalid.append('menu.frame.justify') for inv in invalid: while 1: i, key, nul = find_key(data, inv, True) if i >= 0: out(key + ' is no longer supported.\nRemove (Y/n)? ') if read_bool(): out('Removing "' + key + '"\n') data.pop(i) else: break def pressed(data): i, nul, nul = find_key(data, 'window.button.pressed', True) if i >= 0: out('The window.button.pressed option has been replaced by ' + 'window.button.pressed.focus and ' + 'window.button.pressed.unfocus.\nUpdate (Y/n)? ') if read_bool(): l = data[i] out('Removing "window.button.pressed"\n') data.pop(i) out('Adding "window.button.pressed.unfocus"\n') data.insert(i, l.replace('window.button.pressed', 'window.button.pressed.unfocus')) out('Adding "window.button.pressed.focus"\n') data.insert(i, l.replace('window.button.pressed', 'window.button.pressed.focus')) def x_fonts(data): i, nul, nul = find_key(data, 'window.font') if i >= 0: out('You appear to specify fonts using the old X fonts ' + 'syntax.\nShall I remove all fonts from the theme (Y/n)? ') if not read_bool(): return else: return while 1: i, key, nul = find_key(data, '.font') if i < 0: break out('Removing "' + key + '"\n') data.pop(i) def xft_fonts(data): i, nul, nul = find_key(data, '.xft.') if i >= 0: out('You appear to specify fonts using the old Xft fonts ' + 'syntax.\nShall I update these to the new syntax (Y/n)? ') if not read_bool(): return else: return fonts = {} fonts['window'] = 'window.label.focus.font' fonts['menu.items'] = 'menu.items.font' fonts['menu.title'] = 'menu.title.font' for f in fonts.keys(): li, nul, flags = find_key(data, f + '.xft.flags') if li < 0: li, nul, flags = find_key(data, '*.xft.flags') else: out('Removing ' + f + '.xft.flags\n') data.pop(li) oi, nul, offset = find_key(data, f + '.xft.shadow.offset') if oi < 0: oi, nul, offset = find_key(data, '*.xft.shadow.offset') else: out('Removing ' + f + '.xft.shadow.offset\n') data.pop(oi) ti, nul, tint = find_key(data, f + '.xft.shadow.tint') if ti < 0: ti, nul, tint = find_key(data, '*.xft.shadow.tint') else: out('Removing ' + f + '.xft.shadow.tint\n') data.pop(ti) fi, nul, face = find_key(data, f + '.xft.font') if fi < 0: fi, nul, face = find_key(data, '*.xft.font') if fi >= 0: fi = len(data) - 1 else: out('Removing ' + f + '.xft.font\n') data.pop(fi) if fi >= 0: s = face if li >= 0: if flags.find('bold'): s = s + ':bold' if flags.find('shadow'): s = s + ':shadow=y' if oi >= 0: s = s + ':shadowoffset=' + offset if ti >= 0: s = s + ':shadowtint=' + tint out('Adding ' + fonts[f] + '\n') data.insert(fi, fonts[f] + ': ' + s) for stars in ('*.xft.flags', '*.xft.shadow.offset' , '*.xft.shadow.tint', '*.xft.font'): i, key, nul = find_key(data, stars) if i >= 0: out('Removing ' + key + '\n') data.pop(i) def pixelsize(data): fonts = ('window.label.focus.font', 'menu.items.font', 'menu.title.font') for f in fonts: i, key, value = find_key(data, f, True) if value: if value.find('pixelsize') == -1: out('*** ERROR *** The ' + key + ' font size is not being ' 'specified by pixelsize. It is recommended that you use ' 'pixelsize instead of pointsize for specifying theme ' 'fonts. e.g. "sans:pixelsize=12"\n') global valid valid = False def warn_missing(data): need = ('window.active.button.hover', 'window.inactive.button.hover', 'menu.overlap') for n in need: i, nul, nul = find_key(data, n) if i < 0: out('The ' + n + ' value was not found in the theme, but it ' 'can optionally be set.\n') def err_missing(data): need = ('window.active.button.disabled', 'window.inactive.button.disabled', 'window.active.client.color', 'window.inactive.client.color') for n in need: i, nul, nul = find_key(data, n) if i < 0: out('*** ERROR *** The ' + n + ' value was not found in the ' 'theme, but it is required to be set.\n') global valid valid = False def usage(): out('Usage: themupdate.py /path/to/themerc > newthemerc\n\n') sys.exit() try: file = open(sys.argv[1]) except IndexError: usage() except IOError: out('Unable to open file "' + sys.argv[1] + '"\n\n') usage() data = file.readlines() for i in range(len(data)): data[i] = data[i].strip() simple_replace(data) replace_colors(data) remove(data) pressed(data) x_fonts(data) xft_fonts(data) pixelsize(data) warn_missing(data) err_missing(data) for l in data: print l sys.exit(not valid) openbox-3.6.1/README0000644000175300001440000000144212133512457010777 00000000000000Openbox Copyright (C) 2004 Mikael Magnusson Copyright (C) 2002 Dana Jansens ---- This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative. ---- 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 the COPYING file for a copy of the GNU General Public License. openbox-3.6.1/configure.ac0000644000175300001440000001535112544730413012411 00000000000000AC_PREREQ([2.54]) AC_INIT([openbox], [3.6.1], [http://bugzilla.icculus.org]) AC_CONFIG_SRCDIR([openbox/openbox.c]) AM_INIT_AUTOMAKE([foreign]) AM_SILENT_RULES([yes]) OB_VERSION=$PACKAGE_VERSION AC_SUBST(OB_VERSION) dnl Making releases: dnl RR_ is for obrender, OBT_ is for obt, keep major/minor in sync, dnl treat the rest separately. dnl dnl if MAJOR or MINOR version changes, be sure to change AC_INIT above to match. dnl the other variables aren't related to the user visible versions, but are used dnl to version the .so files. dnl if no backward compat is broken, it's just a preference if you want to bump dnl the AC_INIT micro version or minor version. if the AC_INIT micro version is dnl 0, don't write it out. dnl dnl How to process .so versioning, dnl RR_MICRO_VERSION += 1; dnl RR_INTERFACE_AGE += 1; dnl RR_BINARY_AGE += 1; dnl if any functions have been added, set RR_INTERFACE_AGE to 0. dnl if backwards compatibility has been broken, dnl set RR_BINARY_AGE and RR_INTERFACE_AGE to 0. dnl if you set anything to 0, you should also bump the MINOR version. dnl RR_MAJOR_VERSION=3 RR_MINOR_VERSION=6 RR_MICRO_VERSION=32 RR_INTERFACE_AGE=0 RR_BINARY_AGE=0 RR_VERSION=$RR_MAJOR_VERSION.$RR_MINOR_VERSION OBT_MAJOR_VERSION=3 OBT_MINOR_VERSION=6 OBT_MICRO_VERSION=4 OBT_INTERFACE_AGE=2 OBT_BINARY_AGE=2 OBT_VERSION=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION AC_SUBST(RR_MAJOR_VERSION) AC_SUBST(RR_MINOR_VERSION) AC_SUBST(RR_MICRO_VERSION) AC_SUBST(RR_INTERFACE_AGE) AC_SUBST(RR_BINARY_AGE) AC_SUBST(RR_VERSION) AC_SUBST(OBT_MAJOR_VERSION) AC_SUBST(OBT_MINOR_VERSION) AC_SUBST(OBT_MICRO_VERSION) AC_SUBST(OBT_INTERFACE_AGE) AC_SUBST(OBT_BINARY_AGE) AC_SUBST(OBT_VERSION) dnl Libtool versioning RR_RELEASE=$RR_MAJOR_VERSION.$RR_MINOR_VERSION RR_CURRENT=`expr $RR_MICRO_VERSION - $RR_INTERFACE_AGE` RR_REVISION=$RR_INTERFACE_AGE RR_AGE=`expr $RR_BINARY_AGE - $RR_INTERFACE_AGE` RR_CURRENT_MINUS_AGE=`expr $RR_CURRENT - $RR_AGE` OBT_RELEASE=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION OBT_CURRENT=`expr $OBT_MICRO_VERSION - $OBT_INTERFACE_AGE` OBT_REVISION=$OBT_INTERFACE_AGE OBT_AGE=`expr $OBT_BINARY_AGE - $OBT_INTERFACE_AGE` OBT_CURRENT_MINUS_AGE=`expr $OBT_CURRENT - $OBT_AGE` AC_SUBST(RR_RELEASE) AC_SUBST(RR_CURRENT) AC_SUBST(RR_REVISION) AC_SUBST(RR_AGE) AC_SUBST(RR_CURRENT_MINUS_AGE) AC_SUBST(OBT_RELEASE) AC_SUBST(OBT_CURRENT) AC_SUBST(OBT_REVISION) AC_SUBST(OBT_AGE) AC_SUBST(OBT_CURRENT_MINUS_AGE) AC_PREFIX_DEFAULT([/usr/local]) test "$prefix" = "NONE" && prefix=$ac_default_prefix dnl Determine build target OB_DEBUG dnl Pick compiler specific/build target flags, and set $CVS AM_PROG_CC_C_O OB_COMPILER_FLAGS AC_C_CONST AC_C_INLINE AC_PROG_LIBTOOL AC_SUBST(LIBTOOL_DEPS) LIBTOOL="$LIBTOOL --silent" AC_PROG_INSTALL AM_GNU_GETTEXT_VERSION(0.15) AM_GNU_GETTEXT([external]) AC_CHECK_HEADERS(ctype.h dirent.h errno.h fcntl.h grp.h locale.h pwd.h) AC_CHECK_HEADERS(signal.h string.h stdio.h stdlib.h unistd.h sys/stat.h) AC_CHECK_HEADERS(sys/select.h sys/socket.h sys/time.h sys/types.h sys/wait.h) AC_PATH_PROG([SED], [sed], [no]) if test "$SED" = "no"; then AC_MSG_ERROR([The program "sed" is not available. This program is required to build Openbox.]) fi AC_PATH_PROG([DIRNAME], [dirname], [no]) if test "$DIRNAME" = "no"; then AC_MSG_ERROR([The program "dirname" is not available. This program is required to build Openbox.]) fi PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.14.0]) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) PKG_CHECK_MODULES(PANGO, [pango >= 1.8.0 pangoxft >= 1.8.0]) AC_SUBST(PANGO_CFLAGS) AC_SUBST(PANGO_LIBS) PKG_CHECK_MODULES(XML, [libxml-2.0 >= 2.6.0]) AC_SUBST(XML_CFLAGS) AC_SUBST(XML_LIBS) AC_ARG_ENABLE(startup-notification, AC_HELP_STRING( [--disable-startup-notification], [disable the startup notification library. [default=enabled]] ), [enable_sn=$enableval], [enable_sn=yes] ) if test "$enable_sn" = yes; then PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0 >= 0.8], [ AC_DEFINE(USE_LIBSN, [1], [Use startup-notification]) AC_SUBST(LIBSN_CFLAGS) AC_SUBST(LIBSN_LIBS) sn_found=yes ], [ sn_found=no ] ) else sn_found=no fi AC_ARG_ENABLE(xcursor, AC_HELP_STRING( [--disable-xcursor], [disable use of the X Cursor library. [default=enabled]] ), [enable_xcursor=$enableval], [enable_xcursor=yes] ) if test "$enable_xcursor" = yes; then PKG_CHECK_MODULES(XCURSOR, [xcursor], [ AC_DEFINE(USE_XCURSOR, [1], [Use X Cursor library]) AC_SUBST(XCURSOR_CFLAGS) AC_SUBST(XCURSOR_LIBS) xcursor_found=yes ], [ xcursor_found=no ] ) else xcursor_found=no fi AC_ARG_ENABLE(imlib2, AC_HELP_STRING( [--disable-imlib2], [disable use of Imlib2 image library for loading icons. [default=enabled]] ), [enable_imlib2=$enableval], [enable_imlib2=yes] ) if test "$enable_imlib2" = yes; then PKG_CHECK_MODULES(IMLIB2, [imlib2], [ AC_DEFINE(USE_IMLIB2, [1], [Use Imlib2 image library]) AC_SUBST(IMLIB2_CFLAGS) AC_SUBST(IMLIB2_LIBS) # export it for the pkg-config file PKG_CONFIG_IMLIB=imlib2 AC_SUBST(PKG_CONFIG_IMLIB) imlib2_found=yes ], [ imlib2_found=no ] ) else imlib2_found=no fi AM_CONDITIONAL(USE_IMLIB2, [test $imlib2_found = yes]) AC_ARG_ENABLE(librsvg, AC_HELP_STRING( [--disable-librsvg], [disable use of SVG image files for loading icons. [default=enabled]] ), [enable_librsvg=$enableval], [enable_librsvg=yes] ) if test "$enable_librsvg" = yes; then PKG_CHECK_MODULES(LIBRSVG, [librsvg-2.0], [ AC_DEFINE(USE_LIBRSVG, [1], [Use SVG image files]) AC_SUBST(LIBRSVG_CFLAGS) AC_SUBST(LIBRSVG_LIBS) # export it for the pkg-config file PKG_CONFIG_LIBRSVG=librsvg-2.0 AC_SUBST(PKG_CONFIG_LIBRSVG) librsvg_found=yes ], [ librsvg_found=no ] ) else librsvg_found=no fi AM_CONDITIONAL(USE_LIBRSVG, [test $librsvg_found = yes]) dnl Check for session management X11_SM #EFENCE_LIBS=-lefence EFENCE_LIBS="" AC_SUBST(EFENCE_LIBS) dnl Check for X11 extensions X11_EXT_XKB X11_EXT_XRANDR X11_EXT_SHAPE X11_EXT_XINERAMA X11_EXT_SYNC X11_EXT_AUTH AC_CONFIG_FILES([ Makefile m4/Makefile po/Makefile.in obrender/obrender-3.5.pc obt/obt-3.5.pc obrender/version.h obt/version.h version.h ]) AC_CONFIG_COMMANDS([doc], [test -d doc || mkdir doc]) AC_CONFIG_COMMANDS([data], [test -d data || mkdir data]) AC_CONFIG_COMMANDS([data/xsession], [test -d data/xsession || mkdir data/xsession]) AC_OUTPUT AC_MSG_RESULT AC_MSG_RESULT([Compiling with these options: Startup Notification... $sn_found X Cursor Library... $xcursor_found Session Management... $SM Imlib2 Library... $imlib2_found SVG Support (librsvg)... $librsvg_found ]) AC_MSG_RESULT([configure complete, now type "make"]) openbox-3.6.1/aclocal.m40000644000175300001440000013217312544730642011771 00000000000000# generated automatically by aclocal 1.11.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009, 2010, 2011 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. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # 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|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 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. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have 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_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) 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 AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [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])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [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 .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # PKG_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable pkgconfigdir as the location where a module # should install pkg-config .pc files. By default the directory is # $libdir/pkgconfig, but the default can be changed by passing # DIRECTORY. The user can override through the --with-pkgconfigdir # parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_INSTALLDIR # PKG_NOARCH_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable noarch_pkgconfigdir as the location where a # module should install arch-independent pkg-config .pc files. By # default the directory is $datadir/pkgconfig, but the default can be # changed by passing DIRECTORY. The user can override through the # --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_NOARCH_INSTALLDIR # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # ------------------------------------------- # Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])# PKG_CHECK_VAR # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software # Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.6], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.6])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # 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, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, # 2010, 2011 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 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir 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='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # 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"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, # Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_PROG_CC_C_O # -------------- # Like AC_PROG_CC_C_O, but changed for automake. AC_DEFUN([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC_C_O])dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi dnl Make sure AC_PROG_CC is never called again, or it will override our dnl setting of CC. m4_define([AC_PROG_CC], [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, # Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software # Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2009, 2011 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_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # (`yes' being less verbose, `no' or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [ --enable-silent-rules less verbose build output (undo: `make V=1') --disable-silent-rules verbose build output (undo: `make V=0')]) case $enable_silent_rules in yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few `make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using `$V' instead of `$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008, 2010 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_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005, 2012 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. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} 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([m4/gettext.m4]) m4_include([m4/iconv.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) m4_include([m4/lib-prefix.m4]) m4_include([m4/libtool.m4]) m4_include([m4/ltoptions.m4]) m4_include([m4/ltsugar.m4]) m4_include([m4/ltversion.m4]) m4_include([m4/lt~obsolete.m4]) m4_include([m4/nls.m4]) m4_include([m4/openbox.m4]) m4_include([m4/po.m4]) m4_include([m4/progtest.m4]) m4_include([m4/x11.m4]) openbox-3.6.1/COMPLIANCE0000644000175300001440000000466511101201611011443 00000000000000EWMH Compliance Document: ========================== Listed below are all the NetWM (or EWM) hints decided upon on freedesktop.org and Openbox's current level of compliance with the spec. Beside each hint is the version of the spec which Openbox is compliant up to for the hint. ( compliance : - = none, / = partial, + = complete, * = Openbox is compliant, but something else needs checking ? = unknown ) + _NET_SUPPORTED (1.3) + _NET_CLIENT_LIST (1.3) + _NET_NUMBER_OF_DESKTOPS (1.3) + _NET_DESKTOP_GEOMETRY (1.3) Openbox doesn't support large desktops so these just match the screen size. + _NET_DESKTOP_VIEWPORT (1.3) Openbox doesn't support large desktops so these are just (0, 0). + _NET_CURRENT_DESKTOP (1.3) + _NET_DESKTOP_NAMES (1.3) + _NET_ACTIVE_WINDOW (1.3) + _NET_WORKAREA (1.3) + _NET_SUPPORTING_WM_CHECK (1.3) + _NET_VIRTUAL_ROOTS (1.3) Openbox does not use virtual roots, so this is not needed. + _NET_DESKTOP_LAYOUT (1.3) + _NET_SHOWING_DESKTOP (1.3) + _NET_CLOSE_WINDOW (1.3) + _NET_MOVERESIZE_WINDOW (1.3) + _NET_WM_MOVERESIZE (1.3) + _NET_WM_NAME (1.3) + _NET_WM_VISIBLE_NAME (1.3) + _NET_WM_ICON_NAME (1.3) + _NET_WM_VISIBLE_ICON_NAME (1.3) + _NET_WM_DESKTOP (1.3) + _NET_WM_WINDOW_TYPE (1.3) Openbox does not let windows change this hint after mapping. + _NET_WM_STATE (1.3) + _NET_WM_ALLOWED_ACTIONS (1.3) + _NET_WM_STRUT (1.3) + _NET_WM_STRUT_PARTIAL (1.3) Openbox uses these to create per-monitor struts in Xinerama setups. + _NET_WM_ICON_GEOMETRY (1.3) + _NET_WM_ICON (1.3) - _NET_WM_PID (1.3) Openbox does not currently kill processes. - _NET_WM_HANDLED_ICONS (1.3) Openbox does not display icons for iconic windows. + _NET_WM_USER_TIME (1.3) - _NET_WM_USER_TIME_WINDOW (1.4) - _NET_WM_PING (1.3) Openbox doesn't look for hung processes at this time. + _NET_FRAME_EXTENTS (1.3) + _NET_WM_STATE_DEMANDS_ATTENTION (1.3) + _NET_RESTACK_WINDOW (1.3) + _NET_WM_SYNC_REQUEST (1.3) + _NET_WM_FULL_PLACEMENT (1.4) + _NET_WM_MOVERESIZE_CANCEL (1.4) + _NET_REQUEST_FRAME_EXTENTS (1.3) + _NET_WM_ACTION_MOVE (1.3) + _NET_WM_ACTION_RESIZE (1.3) + _NET_WM_ACTION_MINIMIZE (1.3) + _NET_WM_ACTION_SHADE (1.3) - _NET_WM_ACTION_STICK (1.3) Openbox does not do large desktops, so no sticky state is needed. + _NET_WM_ACTION_MAXIMIZE_HORZ (1.3) + _NET_WM_ACTION_MAXIMIZE_VERT (1.3) + _NET_WM_ACTION_FULLSCREEN (1.3) + _NET_WM_ACTION_CHANGE_DESKTOP (1.3) + _NET_WM_ACTION_CLOSE (1.3) + _NET_WM_ACTION_ABOVE (1.4?) + _NET_WM_ACTION_BELOW (1.4?) openbox-3.6.1/AUTHORS0000644000175300001440000000115112423623653011167 00000000000000Openbox authors/contributors: Mikael Magnusson (mikachu@icculus.org) - Developer Dana Jansens (danakj@orodu.net) - Lead developer Derek Foreman (manmower@openbox.org) - Rendering code Tore Anderson (tore@linpro.no) - Directional focus, edge moving/growing actions Audun Hove (audun@nlc.no) - Actions code, move window to edge actions Marius Nita (marius@cs.pdx.edu) - Otk prototype code, design ideas. John McKnight (jmcknight@gmail.com) - Clearlooks themes David Barr (david@chalkskeletons.com) - Bear2 theme - Clearlooks theme - Icon Brandon Cash - SplitVertical gradient style Dan Rise - Natura theme openbox-3.6.1/CHANGELOG0000644000175300001440000020542112544731434011340 000000000000003.6.1: * Bump ABI version of libobrender that should have been done in 3.6 3.6: * Added various new abilities to If action, including the tag, matching class, name, role and window type. * Added ForEach action. * Restore the
option for window placement. * New GrowToFill action. * Updated Portuguese and Polish translations. * New Galician translation. * Added strict option to ToggleShowDesktop action. * Speed optimization in rendering code. * New tag for ShowMenu action allows placing menus other than at the mouse cursor. * Fix some corner cases of relative position to work correctly. * Allow specifying multiple mousebinds in one tag as we already do for keybinds (separated by spaces, as "W-Return M-S-F3" for example). * Added option rebindOnMappingNotify option, on by default, which controls if we update binds when the keyboard layout changes at runtime. * The resize action now only considers the part of the client that is onscreen for purposes of picking an action to perform. * Make desktop actions non-interactive (means you can have more actions bound to a key after them, and the dialog disappears on a timer instead of when releasing the modifier keys). * obxprop is now not pathologically slow when printing very long arrays. * Fix menu accelerator underlines sometimes not showing up. * Fix so you can click menu entries before the menuHideDelay expires if it's a new click. * Don't readd the X event fd to the poll set every time we reconfigure. * Fix some specialized button bitmaps not loading from the correct files. (toggled + pressed or hover would just be the base toggled image). * Various small bugfixes. 3.5.2: * Fix crash in theme rendering code, and in theme parsing code. * Maximize windows without borders to fill the whole screen, don't leave a one-pixel empty space. (Bug #5996) 3.5.1: * New translations: Afrikaans, Belarusian, Interlingua, Hebrew, Romanian, Greek. * Updated translations: Italian, Serbian, Spanish, Czech, Hungarian, Turkish, German, Arabic, Polish, Dutch, Lithuanian, Portuguese, Estonian. * SVG icon support. This is optional, depending on librsvg being installed. * Allow application rules to control window size with a new tag. * Allow application rules to pick a monitor for new windows without forcing a position. * Allow non-interactive focus cycling with a new tag. * New LeastOverlap window placement policy replaces the old default behaviour. It finds a place on a given monitor that overlaps as few windows as possible. Contributed by Ian Zimmerman. * Improved Xinerama behaviour. * Correctly interface with latest gnome-session for Gnome/Openbox X sessions. * Allow third-party control of window opacity in compositing managers. * Improved themeing options. Contributed by Dave Foster. * Add , , <title type="exact"> and <activedesktop> options to If action. * Addresses bugs #4661, #5506, #5186, #5758, #5410, #5228, #5277, #5731, #5746, #5737, #5419, #5721, #5711, #5385, #5500, #4992, #5443, #5518, #5444, #4782, #5237, #5228, #5173, #5203, #5246, #5180, #5179, #5150, #5132, #4937, #4889, #5253, #3769, #5819, #5811, #5081, #5426 among others. 3.5.0: * New alt-tab dialog shows windows in a vertical list. * Improved Xinerama support. * Allow icons in menus. * Theme options for prompt dialogs (osd.button.unpressed.*, osd.button.pressed.*, osd.button.focused.*) * Addresses bug #4877, #4596, #4617, #4752, #4663, #4662, #4586, #2319, #4341, #4519, #4543, #4503, #4355, #4072, #3702, #4284 * Lots of additional bug fixes and performance improvements. 3.4.11.2: * Updated Estonian and Portuguese translations. * Fix a rare crash involving moving fullscreen windows to different monitors * Fix a more common crash involving pressing right in a menu 3.4.11.1: * Updated Polish translation. * Fixed bug #4519 (Incorrect focus in reused windows). * Lower the default submenu open/hide delay from 200ms to 100ms. * Fix some more problems with gnome integration. * Update Clearlooks theme. * Some other small fixes. 3.4.11: * Update Hungarian, Japanese, and Latvian translations. * Make xdg-autostart use the OPENBOX environment by default, so you can use OnlyShowIn=OPENBOX in an autostart .desktop and it will work as expected. * Don't close the menu when you hold control and execute something. * Fix bug #4503 (Adjust who shows up in the Alt-Tab list using SKIP_TASKBAR). * Fix flickering window when moving maximized window between monitors of different sizes. * Fix bug #4355 (Allow multiple escaped _'s in a menu label and allow a menu shortcut to come after an escaped _). * Remember the maximized state of a window when it goes fullscreen, and restore it when leaving fullscreen state. * Fix bug #4072 (Openbox is stopped by terminal applications writing to stdout). * Fix bug #4492 (Mistake in openbox-gnome-session check while setting up). * Fix obxprop to make --root and --id work correctly. * Add _OB_APP_ROLE/CLASS/NAME/TYPE properties (replaces _OB_ROLE/CLASS/NAME). * Make the focus cycling popup dynamic when windows appear/disappear. * Fix bug #4411 (Crash when window appears during focus cycling). * Allow the user to specify which properties should be shown by obxprop. * Fix tilde expansion in the Execute action * Make Home and End keys move to the top/bottom of the active menu. * Use the submenuShowDelay when navigating menus with the keyboard. 3.4.10: * Improve keyboard navigation in Openbox menus. * Add a --root option and a manpage for obxprop. * Use a negative value for submenuShowDelay and submenuHideDelay to cause an infinite delay. This means you have to click to show a submenu, rather than just hover over it. * Improved code for submenu show/hide delay. Added the submenuHideDelay config file option, under the "menu" section. * Fixed bug #4464 (Typo in openbox-gnome-session script). * Fixed bug #4436 (Focusing a window used to stop focus cycling). * Renamed obprop to obxprop due to collision with Open Babel (See bug #4419). 3.4.9: * Allow focus to move while inside an Openbox menu, or during an interactive action such as window cycling. * Fixed bug #3717 (Empty dock interfered with move/grow to edge actions). * Fixed bug #4411 (Crash when switching desktops and window cycling). * Fixed bug #4377 (Window resistance against struts). * Fixed bug #4035 (Prevent focus from moving under the mouse after activating a window with an Openbox menu. * Correct the value provided by the _NET_WORKAREA hint, so desktop icons will place across all monitors. * Don't hide submenus immediately when moving through the parent menu. (Resolves request #3762). * Fix for showing Openbox menus with multiple monitors, don't restrict them to the monitor where the mouse is. * Fixed bug #4023 (Allow the user to have multiple keys which perform the same function in Openbox menus/move/resize. E.g. two keys which are both bound to Escape. * Add a new obprop tool, which can be used to read the _OB_ROLE, _OB_NAME, and _OB_CLASS (as well as any other UTF-8 window properties) off of a window. * Add _OB_ROLE, _OB_NAME, and _OB_CLASS hints on each window that show the respective values for use in the rc.xml applications section, to modify the window when it appears. * Improve Openbox interoperability with gnome-session >= 2.24. * Fixed bug #4040 (Remove desktop hints set by gdm in the openbox-session scripts, so that Openbox can set the number of desktops (assuming gnome-settings-daemon doesn't first)). * Fix a bug in xdg-autostart preventing some .desktop files from working. * Show the desktop pager popup on the primary monitor instead of on all monitors. * Add a new primaryMonitor config option, which is where Openbox popups will appear. Defaults to a fixed monitor, but can be made to behave as before with the "active" value for it. * Correct edge detection for move/grow to edge to properly use monitor edges for multi-monitor setups. * Change default window placement policy to stay on the active monitor for multi-monitor setups. * Fixed bug #1149 (Crash with some window icon sizes). * Respond to all strut changes, fixes moving/hiding panels. * Fix internal code to focus windows on other desktops correctly (Fixes bug #4413). * Focus correctness fixups for switching desktops. * Fixed bug #4373 (Decoration bug for shaded maximized windows). * Fixed bug #4350 (Allow a window to be made skip_taskbar but still get focused by the user's rc.xml). * Fixed bug #4307 (Set a minimum time for screenEdgeWarpTime). * Fixed bug #4253 (Support for Solaris in openbox-session scripts). * Fixed bug #3851 (Allow transient windows to be above helper windows). 3.4.8: * Updated translations: Slovak. * Allow windows to change their decorations at any time (Fix for Google Chrome). * Make openbox-session to respect the $XDG_CONFIG_HOME environment variable. * Fixed bug #4344 where borders were given to windows that should not have them. * Merge the SessionLogout and Exit actions. They now test if connected to a session manager and ask it to exit if so, or simply kill Openbox if not. * Further tweaks to the _NET_ACTIVE_WINDOW message handling. Use the same logic for focus-stealing as is used when mapping a new window. * Don't go out of our way any more to prevent focus from moving while the keyboard is grabbed. * Fix openbox-gnome-session when using gnome-session > 2.22. 3.4.8-rc2: * Updated translations: Italian, Croatian, Ukrainian. * When resizing a window while focus cycling with bar=no, the bar no longer reappears. * Correctly handle shaped windows using the ShapeInput kind, this is used by many composited apps to pass through clicks in their transparent areas. * Fix the <monitor> per-app setting. * Avoid using anonymous unions. * Windows that had their decorations removed by per-app settings were still placed as if they still had their decorations. * Fix event handling not to ignore events on a window when they have an unmap event in the queue, if that unmap event doesn't cause the window to be unmanaged. * Show the desktop switch on every monitor in xinerama. * Fix interpretation of struts in xinerama where the screens have different sizes. * Add "next" and "prev" as possible <monitor> targets in the moveto and resizeto actions. * Allow escaping the _ used to mark the shortcut character in menu labels. You can now change the (first) _ in a label to __, this will be displayed as a single underscore. The rest of the _ in the string will be unaffected, so only double the first one. * Only replace ~ with the home directory when it is preceded by whitespace or is at the start of the string, and when it is followed by a space, slash, or the end of the string. This is implemented with GRegex, and so the required glib version has been bumped to 2.14. * Some other small fixes. 3.4.8-rc1: * Updated translations: Basque, Catalan, Turkish, Italian, Spanish, Russian. * New translations: Danish, Turkish, Lithuanian. * Set the _MOTIF_WM_INFO atom so urxvt uses motif hints for borderless mode. * Properly escape the xml used in session files. * Correct a 64-bit issue related to comparing timestamps. * There is a sneaky sentence right at the end of a big paragraph in the wm-spec document that says windows mapping with _NET_WM_USER_TIME=0 should not be focused initially, honor this request. * When moving a window to another desktop with following on, bring the window's helper windows (for example gimp image windows with the toolbox set to utility window). * Change the _NET_ACTIVE_WINDOW messages again, if they originate from the app and the window is on another desktop, just set the demands_attention flag. If the event came from the user (ie pager/panel), then the window is still moved to the current desktop. 3.4.7.2: * The system I used to generate the dist tarball didn't have the docbook-to-man command so the manpages were empty. 3.4.7.1: * Not to be outdone by the cairo team, I introduced a bug in the last release which made resizing not give any feedback. This is now fixed. 3.4.7: * Fully updated Czech, Simplified Chinese, Traditional Chinese, German, French, Hungarian, Norwegian, Vietnamese, Dutch, Swedish, Finnish, Brazilian Portuguese, Japanese and Portuguese translations * Partially updated Spanish translation * Add an example of the "force" option for the per-app placement options to the default rc.xml file * Add a new xdg-autostart script. This will eventually end up in the PyXDG distribution hopefully, but it is included in Openbox for now. This script runs things based on the freedesktop.org autostart specification. You can have it run GNOME, KDE, ROX, or XFCE specific things if you want. The new default system-wide autostart.sh script runs it automatically * Update the default menu.xml to include a lot of common apps * Fix white font shadows (negative shadowtint) * Update the autostart.sh to find gnome-settings-daemon correctly, as the GNOME people have moved it to libexec * Fix focus possibly getting stolen when using the Focus action * Drastically speed up rendering of Vertical and SplitVertical gradients * Speed improvements also for Horizonal and Pyramid gradients * Add new theme options, menu.overlap.x and menu.overlap.y options, that let you independently control the horizontal and vertical position of submenus * Change _NET_ACTIVE_WINDOW messages to not change the current desktop, but to bring the window to the current desktop instead. This is the industry standard policy * Use the pretty new openbox.png icon as the default window icon * Allow matching per-application rules to windows by their window type (normal, dialog, splash, etc). The default rc.xml has more details * Add new Openbox-themed prompt windows. Use these prompt windows to ask before killing off windows that aren't responding. This also means we don't need to ping every window constantly forever * Add a new <prompt> option to the Execute action. If this is set to a string, a dialog will be shown with that string in it and "yes"/"no" buttons. The command to be executed will only be run if the user selects "yes" in the dialog * Add a new <prompt> option to the Exit action, which is a boolean (not a string). When true, Openbox will show a dialog confirming if you want to exit. The default is to show the prompt * Reduce Openbox's memory footprint and speed up rendering through the use of a new icon cache, so that Openbox only needs to keep 1 copy of an icon when 100 different windows share it * Make Openbox menus have the "menu type" hint for compositors to see and use * Fix the MoveResizeTo action for negative coords (opposite edges) * Fix key bindings getting lost if multiple bindings at the same level could not be translated (Fixes VMWare causing Openbox keybindings to stop working) * Fix the resize popup box for terminal windows with a base size of 0 (show the right size values for urxvt terminals) * Fix some off-by-one bugs with the edge growing/shrinking code * Add new theme options for menu line separators: menu.separator.color, menu.separator.width, menu.separator.padding.width, menu.separator.padding.height * Add xfce-mcs-manager to the default autostart.sh, and run it automatically when gnome-settings-daemon is not present to have GTK apps inherit settings from the XFCE configuration tools * Make the send-to-desktop menu in the client-menu indicate which is the current desktop for omnipresent windows, and don't close it if just toggling omni-presence when ctrl-clicking * Add a new SessionLogout action that logs out through the session manager, when running Openbox within a session manager such as within an GNOME/Openbox or KDE/Openbox session. The action includes a <prompt> option which is similar to the Exit action's * Add a new gdm-control command that lets you control gdm from within an X session. The gdm-control lets you change GDM's behaviour for when you end the current session. For instance, you can tell GDM to reboot, and then immediately log out of the current session, and the computer will be rebooted * Show an information dialog when an error occurs for Openbox, such as when the Execute action fails or when XML syntax errors are present in the configuration files * When making a window very narrow, don't draw buttons to the right of the title on top of the ones on its left. 3.4.6.1: * Updated Clearlooks theme * Add the force="yes/no" option for the per-app settings' <position> tag * Raise and focus modal children and their direct parents together, improved usability with direct modal transient windows * Fix crash when using <raise> for NextWindow and there are no windows to move focus to * Add the <manageDesktops> option in the rc.xml <menu> section, which toggles the "Manage Desktops" section appearing in the combined-client-list-menu * Fix for menu headers showing the wrong text * Fix for the <focusLast> behavior * Treat modal direct children as one window with their parent consistently 3.4.6: * Added Basque translation * Updated French, Vietnamese German, Simplified Chinese, Russian, Portuguese, Brasilian Portuguese, Norwegian, and Finnish translations * New Clearlooks theme, updated by David Barr * Updated the previous Clearlooks theme, and renamed it to Clearlooks-3.4 * Allow dialog type windows to go fullscreen (Fixes Kpdf) * Remove the extraneous top border for undecorated windows while maximized * Fixes for keyboard modifiers (Alt-tab dialog getting stuck on screen for some users) * Automatically catch changes to the keyboard map and reconfigure the key bindings on the fly * Fix focus moving incorrectly sometimes with focus under mouse enabled * Make default configuration focus the desktop when you right click * Add the <bar> and <raise> options for all window cycling actions, allowing you to have your target window temporarily raised above all others, and to turn the focus target indicator bar off * Improve the LastDesktop action to not remember desktops you skipped across * Ignore mouse clicks that are made on override-redirect (unmanaged) windows * When opening a menu with a key binding, don't use the key binding to run something in the menu * Add a <monitor> option for window placement, which gives you the option to place new windows on the active monitor, or the monitor where the mouse is, instead of on any monitor (for xinerama multihead setups) * Add options for placing the window move/resize coordinate popup window in a fixed position on screen, rather than relative to the window being moved or resized * Prevent the dock from auto-hiding completely offscreen if the theme has no borders for it * New icon * Fix race condition when running things that want to grab the keyboard (e.g. gnome-panel-control --main-menu) * When dialog windows ask to not appear in the taskbar, still give them focus in normal ways (fixes new GNOME session logout dialogs) * Fix bug with resizing corners on certain parts of the window frame * Ping applications to tell when they are running or have become frozen. Show a [Not Responding] message in the title bar of windows which are frozen. * When closing a window which is [Not Responding], kill the window's process if it is running on the same machine as Openbox. Otherwise, just disconnect the window from the X display. A second attempt to close a [Not Responding] window will kill it forcefully (kill -9). * Fixes for internal timers * Add a <wmclass> option for the execute action's startup-notification. This lets you tell Openbox that the application will map a window with the specified class - for applications that do not support startup-notification natively. * Fix for empty dock taking up space onscreen after a reconfigure * Reduce Openbox's additional memory footprint per-window and per-menu * Faster horizontal gradient rendering * Don't deiconify windows that aren't allowed to be directly iconified on restart (eg toolbars), as they can be iconified by other means * Improve support for fullscreen windows in xinerama (TwinView) and multiple-screen setups * Add a --config-file command line option, to specify an alternate configuration file path 3.4.5: * Added Hungarian translation * Updated Finnish, Russian, German and French translations * Fixed some very minor memory leaks * Hide the desktop popup when showing the focus popup * Fix a crash when trying to access the More... menu of client-list-combined-menu * Fix the coordinate popup only showing up on the first monitor in xinerama * Add --exit to exit the currently running openbox instance 3.4.4: * Updated Traditional Chinese translation * Updated Norwegian translation * Fix for MoveToEdge skipping edges sometimes * Let you specify the vertical and horizontal padding independently in themes * Fix so that if you select an omnipresent window on another desktop in the client list menus, it will go to that desktop * Make the GrowToEdge action shrink once there is no more room to grow, similar to in 3.4.2, but shrinking to edges as well * Move the Send To and Layers submenus to the top of the client menu * Fix race causing omnipresent windows to lose focus when switching desktops very quickly * Don't focus new windows on other desktops if they aren't related to the currently focused window * Add corner resizing areas in the inner client border (Fixes themes such as Onyx) * New focus stealing prevention that is smart and not intrusive and not annoying * Revert a small change in 3.4.3 that caused windows to be placed funny in Smart placement when there was a dock or something on the side of the screen * Show a notification when switching desktops * Fix for delayed focus-follows-mouse interrupting move/resize or menus * Make screen edge warp keep warping without having the move the mouse 1 pixel * Fix for resizing terminals in the top/left sides getting a little confused * Fix to keep oldschool (Non-EWMH) fullscreen windows from being moved and resized inside of the struts (Fixes Acroread) * Accept the <command> option for the Restart command, similar to the Execute action * Don't make clicking on dock apps sometimes act like clicking on the root window (Don't propogate button events up) * Fix a bug introduced in 3.4.3 which caused the Windows key as a modifier for bindings to not work properly * Let windows skip across monitors in a Xinerama setup when using MoveToEdge or Shift-arrow in an interactive move * Make move and resize take the dock into account for resistance * Raise new windows when it makes sense, when they aren't being focused * Change default config to use click events for mouse wheel bindings instead of presses 3.4.3: * Add Ukrainian translation * Updated translations: - Japanese, Dutch, Polish, Italian, Estonian, German, Portuguese, Vietnamese, Finnish, Czech, Arabic, Spanish, Swedish, French * Improve focus fallback - don't fallback to windows you can't focus cycle (Alt-Tab) to * Don't show the client border for undecorated windows when keepBorder is on, just the outer border * Some improvements in the smart placement to help it find a place more often. This needs more work still. * Don't focus windows that appear under the mouse in mouse-focus mode unless underMouse is enabled * Don't move focus when the window under the pointer iconifies unless underMouse is enabled * Respect min/max window sizes when a window is fullscreened or maximized. This fixes problems experienced with maximizing vnc windows * Don't XUngrabKeyboard unless we need to * Correct calculations for the menu header width, so that they are not ellisized unnecessarily * Advanced support for partial struts. When you maximize a window it will now only use the struts it needs to. This can greatly improve xinerama functionality. * Fixes for how the dock is placed in certain positions on screen (off by 1 errors) * New default bindings: - don't unshade when clicking on the titlebar - raise when unshading with the scrollwheel - lower when shading with the scrollwheel * Don't show the top resize area in the titlebar when a window is shaded * Optimize rendering of window decorations * Optimize splitvertical gradients - no more malloc/free during render * Let the theme specify all colors for a splitvertical gradient with the new .splitTo theme elements * Improve decorations for maximized windows. Don't draw the side borders in the titlebar. * Don't resist against desklet windows (below layer + skip taskbar) * New actions for dynamically adjusting your desktop workspaces: - AddDesktopLast, RemoveDesktopLast - AddDesktopCurrent, RemoveDestopCurrent * New <center> option for smart placement (default is on) * Fix MoveToCenter in Xinerama (TwinView) setups * Let you lower a window without lowering its children or siblings * Don't set the default Openbox icon on child windows, let them inherit the icon from their parents * Fix Onyx themes - fade out disabled buttons * Don't auto-resize windows to fit on screen if they are UserSpecified Size or Position * Don't activate windows which raise themselves anymore. It was a nice thought, but it caused too much problems * Rewrite of the actions subsystem * Removed deprecated actions: - ShowDesktop, UnshowDesktop (Use ToggleShowDesktop) - ResizeRelativeVert, ResizeRelativeHorz (Use ResizeRelative) * Combined the MoveFromEdge* actions with MoveToEdge* actions, and removed the MoveFromEdge* action names. * Switch desktops when moving a window and you drag it to the edge of the screen (added the <screenEdgeWarpTime> option for this) * Add actions to add/remove the last desktop in the client list menus * Use startup notification when launching ObConf in the default root menu * Remove the desktop switching dialog, as it confuses people and they don't know how to turn it off to switch desktops instantly. Some other incarnation may return in the future. * Add optional <finalactions> option for NextWindow, PreviousWindow, DirectionalFocus*, and DirectionalTarget* actions * Don't focus new helper windows unless they are alone in their group. This fixes gucharmap * Fancy keyboard window moving: - Shift-arrow will move the window to the next edge - Control-arrow will move the window by only 1 pixel - Arrow will move the window by a larger number of pixels * Fancy keyboard window resizing: - The first arrow will choose an edge to resize (then you can grow or shrink the window on that edge) - Hitting an arrow perpendicular to your selected edge will choose a different edge to resize - Shift-arrow will grow/shrink the window to the next edge - Control arrow will grow/shrink the window by only 1 pixel - Arrow will grow/shrink the window by a larger number of pixel * Timeout when synchronously resizing a window so you can still resize busy or dead application windows * Let you specify keyboard shortcuts in your root menus with _. Such as label="XTe_rm" would make 'r' the shortcut key. * Fixes for placing windows with per-app settings: - you can now place windows relative to any edge of the screen instead of only the top left. (-0 uses the far edge, +0 uses the near edge. You can use --0 and +-0 to specify negative numbers.) - fix bug with windows being placed far off-screen occasionally - allow you to place windows partially outside of the screen - let per-app settings override program-specified positions (but not if it is user-specified) * Add user-specified margins to the configuration file * Fix for transient windows in groups with transient windows of the group transients. That wasn't supposed to be legible. i.e. 2 group transients and 1 direct transient for one of the group transients. * Don't include child/parent windows in tests for being occluded or occluding other windows, since you can't raise/lower above/below them. This fixes the raiselower action for windows which have children. * Reduce the size of the middle gradient in splitvertical gradients. This makes the split harder than it was in 3.4.2 * Don't include debian/ dir in releases * Add resize bindings for the edges to the default hardcoded bindings * Fix focus cycle indicator positioning for some windows (i.e. OpenOffice) * Add the MoveResizeTo action. This is very xinerama aware! It also lets you move a window to any edge of any screen. * Make actions that look for edges include the dock's edges (e.g. MoveToEdge) * New preferred option for the Execute action is <command> instead of <execute> but the old one will still work. * Fix for moving windows partially offsceen causing them to jump far away * Fix for windows which are not on any monitor, to keep them on screen partically too * Require libstartupnotification 0.8 in configure (we use stuff that was not around in some earlier versions) * Grab the server when mapping windows to avoid race conditions in other programs (getting MapNotify before you are visible) * Handle case gracefully when ConfigureRequent for restacking specifies a siblig which we aren't managing * Use KeyRelease to run things from Openbox menus, so that the release does not go to the focused window (causing the new window to not get focus) * Add new actions for controlling window decorations: - Decorate, Undecorate * Fix so that the values for per-app settings are not case sensitive * Fix crash with very small windows * Fix resize resistance for windows with aspect ratio limits * Let you resize windows with aspect ratio limits in the vertical directions 3.4.2: * Add ability to set the bevel strength in themes * Fix for focusLast with omnipresent windows * Cache pipe menus while the menus are open * Allow non-interactive directional focus key bindings * Change how nested interactive key bindings work (it stays in the key chain, like chroot, until you end the interactive action) * Fix for gtk apps trying to get focus - mostly nullify focus stealing prevention (Fixes Tilda) * Send ConfigureNotify always on ConfigureRequest (Previous emacs fix makes this possible now) * Fix RelativeResize action for right/bottom edges * Remove SCIM from the default autostart.sh - it has caused problems with some (buggy) panels, such as pypanel * Fix the titlebar changing to non-focused when iconifying a window with animation * Use the new osd theme hints for the dock, rather than the titlebar hints * Fix rare crash when menu is hidden while browsing it * End move/resize more cleanly when focus moves during a move/resize * Don't focus new windows when browsing a menu or moving/resizing a window, just flash the window instead, so that the menu/move/resize doesn't have to cancel. 3.4.1: * Add Vietnamese translation * Add Japanese translation * Keep new transient windows from not getting focus when any related window has focus already * Change behavior of underMouse option - make focus go under the mouse when no window has focus anymore, rather than to the last used window * Make on-screen display dialogs (such as the Alt-Tab dialog) appear on the active monitor when using Xinerama (a.k.a. TwinView) * Fix for window stacking - let you lower sibling transient windows behind eachother * Fix directional focus actions when used without a dialog * Fix race that could prevent ObConf from setting the desktop names correctly * Add new theme options: - window.active.button.toggled.image.color has been split into: - window.active.button.toggled.unpressed.image.color - window.active.button.toggled.pressed.image.color - window.active.button.toggled.hover.image.color - window.inactive.button.toggled.image.color has been split into: - window.inactive.button.toggled.unpressed.image.color - window.inactive.button.toggled.pressed.image.color - window.inactive.button.toggled.hover.image.color - window.active.button.toggled.bg has been split into: - window.active.button.toggled.unpressed.bg - window.active.button.toggled.pressed.bg - window.active.button.toggled.hover.bg - window.inactive.button.toggled.bg has been split into: - window.inactive.button.toggled.unpressed.bg - window.inactive.button.toggled.pressed.bg - window.inactive.button.toggled.hover.bg * Add new Onyx and Onyx-Citrus themes * Updated Mikachu theme using new theme options * Improvements to splitvertical gradients - Add a small gradient in the middle between the upper and lower gradients * Fix another emacs event storm, don't configure the window when it sets its WM_NORMAL_HINTS unless we have to * Fix for focus cycling to helper windows - Don't count dialogs as a sibling, so they don't stop you * Allow the use of negative numbers in per-app settings position to place a window relative to the right/bottom edges of your monitor (taking the struts (panels) into account) * Fix focus moving irrationally when focusLast was off 3.4: * Add Indian Bengali translation * Updated Italian translation * Small updates to Czech, Estonian, Norwegian, and German translations * Removed out-of-date Japanese translation (ja.po) * Removed out-of-date Croatian translation (hr.po) * Allow parentrelative theme textures to have borders, bevels and interlacing * Add new theme elements: window.active.title.separator.color and window.inactive.title.separator.color (note that globbing might set these properties when you didnt mean to) * Add new theme elements: osd.border.width, osd.border.color, osd.bg, osd.label.bg, osd.label.text.color, osd.label.text.font, osd.hilight.bg, osd.unhilight.bg * Add new underMouse focus option * Rename new theme element menu.items.activedisabled to menu.items.active.disabled for consistency with other elements * Improvements to smart placement - especially with xinerama (Twinview) * Fixes for focus with omnipresent windows - Allow focus to fallback to them except during desktop switches (other mechanisms exist for that) * Fix for putting child windows (transients) on all desktops * Changes to how Shift/Control/CapsLock are used * Fix focus fallback when windows are not visible (showing the desktop, or iconic windows) * Fix bug #3196 - Unable to alt-tab away from full-screen windows * Fix crash in parsing empty xml fields * Fix left and right contexts resizing the wrong way in the example mouse focus config file * Fix so dock doesn't auto-hide when the mouse is inside it (over top of a dock app) * Allow new utility windows to gain focus like normal windows * Add workarounds for Java Swing applications (Extra ConfigureNotify events) * More fixes for modal window usability (Deiconify the modal window when you try to focus its parent) * Fixes to focus tracking, especially with iconify animation * Changes to libobrender's API for ObConf 2.0 (RrThemeNew) * Check for libxml >= 2.6.0 when compiling * Fix for Openoffice windows (Static window gravity) * Fix for hovering over window buttons while a menu is open * Make the Escape key close all levels of a menu, not just one * Change default drag threshold to 8px (Same as in XSettings) * Fixes for windows restacking with TopIf, BottomIf, or Opposite modes. Only compare with valid windows * Fix for actions which find other window edges. Find all windows, and only windows which are on the right desktop * Improve RaiseLower action (Not lower when it doesn't need to move the window) * Fix for the menu hideDelay (Don't hide immediately when you click to open the menu), make it work reliably * Make focusLast default to true when not present in the config file 3.3.995: * Fix bug introduced in 3.3.993 that prevented you from raising focused windows above fullscreen windows * Fix bug introduced in 3.3.993 that made the desktop window keep focus when changing desktops * Add Arabic translations * Added Control-Alt-Up/Down bindings to the mouse focus example rc.xml * Don't raise on clients in the client context in the mouse focus example rc.xml * Fixes for when to focus new windows - improve keeping transient windows from stealing focus, and allow new windows to get focus when any relative window is focused * Fixes for frame decorations layout * Fixes for forcing window sizes to fit on the screen. Don't resize windows if they are a user-specified size (USSize) or if they are non-normal windows. (Fix Rox pinboard mapping across multiple monitors) * Centre window icons when they are not square * Fixes for Java windows behaving badly - Java makes all kinds of non-standard-compliant assumptions which we are forced to meet * Changed startup notification timeout from 30 to 20 seconds * Fix possible crashes and misbehaviors with new focus cycling dialogs * Recreate enter events when Press mouse actions move windows (e.g. Lower action) for focus-follows-mouse * Update Slovak translation * Highlight the first menu entry when there is a separator/header at the top * Only highlight the first menu entry when the menu is opened with a key binding * Fix crash when you press enter with nothing selected in the menu * Fix for ignoring an unmap event after restart * Fixes for setting the clients' colormaps * Change focusLast option behavior to what it was in 3.3.1. It only affects changing desktops. * Add comments to the default rc.xml files about the various focus options * Fix focus bug where a window had the keyboard grabbed when it unmapped (Firefox gmarks extension) * Update Catalan translation * Fix alignment of the titlebar elements when the window icon is placed to the right of the label * Improve placement of child (transient) windows. When their parent is omnipresent, open the child on the current desktop only. * When a window has modal children on another desktop and you try to focus it, bring the modal child to the current desktop to focus it instead * Let you focus cycle to windows with a modal child on another desktop * Fix for not seeing windows change their partial strut * Give iconified windows a faded icon in the focus cycling (Alt-Tab) dialog, and in the client list menus * Make it more difficult to select items by accident in parent menus when it changes direction. Moving the mouse only selects menu entries for a few levels of open menus. Mouse clicks will select menu entries further down. * Add Simplified Chinese translation * Set the current theme in the OB_THEME root property for other applications * Notify ksplash when we have started up if dcop is installed * Allow you to resize the window on the client padding as well as the outer border * Fix to show the focus cycle indicator when focus cycling and there is only 1 valid target * Centre splash screens on one monitor * Don't centre parent-less utility/menu/toolbar windows on the screen * Remove the bottom decorations for fully maximized windows * Fix crash when reconfiguring and no themes can be found 3.3.994: * Fix a bug introduced in .993 that prevented you from switching desktops and caused general mayhem 3.3.993: * Update for Russian translation * Added Dutch translation * Fix for choosing badly sized icons from the window for the window cycling dialog (and other things). (Fixes Pidgin icon) * Open child (transient) windows on the current desktop if they don't have a direct parent, or if the parents are not all on some other desktop. (Fixes Pidgin and Gimp dialogs appearing on the wrong desktop) * Make windows fit within the available space when they are first created, if they are not user-positioned. (Fix xpdf making itself bigger than the space inside the struts, and hiding behind them). * Don't let child (transient) windows steal focus when the situation is ambiguous * Fix bevels and borders display in the titlebar * Set the _NET_ACTIVE_WINDOW hint properly, when nothing is focused (This is the proper fix for libwnck pagers.) * Fallback focus immediately during iconify animation in all cases (was missing RevertToParent case) * Fix new frame elements being given 0 sizes for very small windows * Send iconified windows to the bottom of the focus order so you can Alt-Shift-Tab to get back what you just iconified. This makes things more predictable. * Show the hostname for remotely run programs in iconified titles * Stop focus flicker when sending windows to a desktop and following them, and when changing desktops with an omnipresent window focused * Empty desktop names in the configuration file are not used, so you can set a name on the second desktop without having to set one on the first * Make control key work for menu accelerators like it does for mouse clicking and hitting enter * Add C-A-Up/Down mouse bindings to switch desktops, similar to the C-A-Left/Right/Up/Down keyboard bindings 3.3.992: * Don't move mouse focus when the mouse is over the focus cycling dialog * Fixes for positioning of frame decoration elements * Update for Brazilian Portuguese translation * Improvements in how decorations respond for maximized windows. (If they can't be resized don't "hide" the resizing contexts) * Updated Italian translation * Added Czech translation * Fix for applications that do weird things with modal windows (Make sure you can focus cycle to them) * Updated Spanish translation * Fix for programs using the old WM-spec, and not setting unused fields to 0 in _NET_ACTIVE_WINDOW messages (Rox pinboard) * Fixes for default rc.xml configuration file. Updated comments and comment out the applications section in an xml compatible way. * Update for Portuguese translation * Fix support for window gravity (eg xterm -geometry -0+0) * Fix for libwnck with iconify animation (Unmap the parent of the client's window) * Force the top left corner of new windows onto the screen area, if the position wasn't requested by the user (Fix xpdf and others hiding their titlebar under a panel) * Fix for determining text geometry from Pango * Save the desktop layout and names in the session, and restore them on next log in. * The <desktop> section from the configuration file is only used for defaults, and so is only applied at the start of a new log-in. (Use ObConf 1.6.2 to change the config file for these options, and have them set immediately, if you don't use a session manager to save them.) * Fix updating and crashing in the old split client list menu * Translate the default desktop names * Update Taiwanese Chinese translation * Less restrictions of behavior based on window type (Let you maximize dialogs and utility windows) * Fix for focus tracking when Press mouse actions are used * Fix bug which let the openbox-*-session scripts take command-line arguments * Better detection of legacy fullscreen windows vs. undercorated windows that the user has maximized 3.3.991: * Added Brazilian Portuguese translation * Added a rough Italian translation * Added Estonian translation * Update Polish translation * Make focus stealing prevention a little less intrusive, especially with default config * Updates for Swedish translation * Fixes for decorations of maximized windows * Fix so that clicking in the corner of a maximized window presses the button * Don't reload the session and reapply it when restarting * Fix for losing the original size of a window that mapped with maximized state (or on restart) * Let you move splash type windows * Fix for window placement using wrong dimensions * Stop xemacs ConfigureNotify storm * Fix bug stopping panels from moving themselves off-screen to hide themselves * Fix for GNOME/Openbox and openbox-gnome-session to use a new session name, because GNOME won't let you replace the window manager in the saved session * Don't restore session state when multiple windows have the same identifiers, because we can't tell them apart then (Firefox/Thunderbird) * Small fixes to build system to make it more reliable * Fix for what manpage files are distributed in the source code, so they will not be pre-built with the wrong info * Fix pkg-config files for compiling things against Openbox libraries 3.3.990: * Wildcard matching for per-application (per-window) settings. Let you match multiple rules for a window. (Props to Mark Pustjens for code to do this.) * Added startup notification support to the menus and key/mouse bindings with <startupnotify>. It's an option for execute actions. * New combined client menu, accessed with <action name="ShowMenu"><menu>client-list-combined-menu</menu></action> * No menu titles - instead added separators with labels to be used as menu headers anywhere in menus * Improved client menu - placement, the options in it, and added an icon for "All Desktops" * Keyboard shortcuts in menus, by highlighted letter or by the first letter * Menus dont jump around, are always placed on screen * Menus larger than can fit on the screen are broken into a submenu at the bottom titled "More..." * Disabled menu items can be selected now (not used though, of course) * Using ()'s instead of a line separator to signify iconified windows in the client list menus * New Root context for mouse bindings * New "alt-tab" focus switching dialog * openbox-session command and log-in option which provides the autostart capability. * SCIM support in the default Openbox session launched by the openbox-session command * Many code paths made significantly faster * Sections of code rewritten to be more reliable, such as session save/restore and input focus handling * Handle the X server's clock going backwards, without locking up. Sometimes the server can still lock up though, it is not recommended to do this! * Better handling of window types such as docks, utility windows, tool bar windows. Clicking to focus these windows is done more intelligently. Dock windows no longer get focus when you click them, so that you don't have focus flickering when you use a dock window with a taskbar. * Better language support through Pango, which is now mandatory, and the code for Pango has been greatly improved and optimized. * Support for windows that use true 32-bit transparency * Resize grips (with mouse binding contexts) for the top, left, and right of the window frame * Smarter about keeping windows on the screen without invading user's capabilities * Add MoveFromEdge* actions corresponding to MoveToEdge* but aligns far edges instead of near edges, so if you have two overlapping windows you can easily put them side by side. * Better choice of mouse cursors for startup notification * Focus stealing prevention * Improve window placement across multiple Xinerama monitors * Support 8-bit truecolor visuals (such as in vncserver) * Better, more friendly support for omnipresent windows * Full support for EWMH 1.4-draft2 * Iconify/restore animation ! * Improved support for running openbox with multiple screens (non-xinerama) - won't steal focus from other screens, and let you focus a screen by clicking on the desktop (root window). * Support for more cursors through XCursor, means that startup notification can use a pointer+watch cursor if you are using an XCursor theme * Fully maximize terminal windows (and any resized-by-increment window) * Show the hostname of clients running on remote computers in the titlebar * Add <panels> and <desktop> options to NextWindow, PreviousWindow, DirectionalFocusNorth etc.. * Synchronize resizing with the application when possible * Smarter subdivision of windows into 9 sections for resizing * Set default icon on windows so applications can agree on an icon * Better support for programs that are on more than one desktop (multiple firefox windows for example) - move to the desktop when you're using the application and it opens a window on another desktop. * Chrooted key chains, and key quoting through chroots * New BreakChroot action to break out of the current chroot * New keychains popup, to show where you are in a keychain * Improved show-desktop mode. When you open a new window, the old windows are not all restored * Add <allDesktops> option to NextWindow and PreviousWindow. The desktop name will be shown in the focus cycling popup * Dynamically size the window and desktop dialogs. Desktop layouts that aren't horizontal look better in the desktop cycling dialog. * Support for legacy fullscreen applications (that don't use EWMH) such as VLC * Session support for old clients that do not use the session management protocol * Desktop setup is only changed on startup, so as to not overwrite settings from other apps like pagers * Take advantage of ksmserver (KDE Session Manager) features * KDE/Openbox and GNOME/Openbox options for display manager GDM/KDM. Use openbox-gnome-session and openbox-kde-session to run a GNOME or KDE session with Openbox as the window manager. * Titlebar buttons autohide when hiding won't move other buttons (removed the hideDisabled option from config file) * Support user time window hint, which is good for laptops power usage * When legacy windows raise themselves, interpreate as wanting to be activated. Makes Firefox more pleasant. * Don't show handles on windows that cant resize for more extreme visual minimalism * Let you move maximized windows between Xinerama monitors * Improve application awareness of focus, e.g. Kopete and Firefox, so they know when they are or aren't focused, and which window in their application is focused * Improvements in the distributed themes * Add new Clearlooks and Clearlooks-Olive themes by John McKnight * Fonts are no longer loaded from theme. They are loaded from the rc.xml config file. Font shadow settings are still loaded from the theme though. 5 fonts to be set: ActiveWindow InactiveWindow, MenuHeader, MenuItem and OnScreenDisplay * Distributed theme names have been renamed with Capitalization * menu.items.activedisabled.text.color * menu.border.color (note that globbing might set these properties when you didnt mean to) * window.active.border.color (note that globbing might set these properties when you didnt mean to) * window.inactive.border.color (note that globbing might set these properties when you didnt mean to) * menu.border.width * Guarantee that titlebar buttons are even sized, so even sized icons (button masks) will be centered * Default titlebar button icons (as xbms) installed to /usr/share/doc/openbox * New mouse binding contexts Left, Right, TLCorner, TRCorner and Top. These need bindings in config file to be useful. Also new context Bottom which is synonym for Handle. * W is no longer hard coded to Mod4. It is now a shortcut for Super, which is usually bound to Mod4. xmodmap will show your mapping. * The per-app setting <head> has been renamed to <monitor> * Can use "default" for anything in per-app settings * Removed <edges_hit_layers_below> option from config file * --reconfigure command line option * --restart command line option * Closed bug #886 - Reference point for client-menu * Closed bug #898 - Add option for OB2 style menu behaviour * Closed bug #952 - Focus sometimes gets lost when closing windows * Closed bug #1006 - duplicate window title numbering is so-so * Closed bug #1080 - menus dont update when using ctrl to keep them open * Closed bug #1082 - doing window stuff while changing focus is mad slow * Closed bug #1106 - Openbox resize problems with Beep Media Player and some websites using Mozilla * Closed bug #1146 - minimized windows dont unminimize from fspanel if ob restarted * Closed bug #1409 - Window stacking is messed up when dealing with multiple nested dialog boxes * Closed bug #1526 - Incorrect handling of utility windows * Closed bug #1846 - Patch for theme overrides * Closed bug #1974 - Limit the number of resizes per second to make window resizing smoother * Closed bug #2060 - Apps disappear when using composite extension * Closed bug #2221 - _NET_WM_STATE_(ABOVE|BELOW) is being inherited * Closed bug #2250 - openbox ignores size request ? * Closed bug #2251 - support for legacy ""fullscreen"" * Closed bug #2254 - segfault in render/render.c on sendtodesktop [endian?] * Closed bug #2255 - segmentation fault on 8-bit truecolor visual * Closed bug #2258 - long menus truncated * Closed bug #2311 - Does not display the pressed state while a button in the frame is toggled * Closed bug #2321 - ResizeRelative -up and -left makes window move when at min_size * Closed bug #2483 - Pinned windows raise to top on all desktops when they become focused on just one desktop * Closed bug #2491 - Client List by App instead of by Desktop * Closed bug #2551 - Request to be able to cycle docks (e.g. * Closed bug #2659 - Menu header display should be configurable * Closed bug #2769 - temporarily chroot the keychain tree * Closed bug #2841 - Changes to the keepborder option aren't applied when reconfiguring * Closed bug #2850 - Openbox gives black backgrounds to windows using the new 'rgba' or 'argb' visual * Closed bug #2865 - openbox 3.3 is not C89 compatible * Closed bug #2872 - Focus issues with Eclipse and Firefox * Closed bug #2878 - Openbox crash when used with vncserver * Closed bug #2897 - Openbox shouldn't redraw the whole screen everytime when minimizing windows. * Closed bug #2898 - Patch adding advanced keyboard support in popup menus. * Closed bug #2982 - tilda doesn't work propertly * Closed bug #3034 - themeupdate.py seems to bee broken * Closed bug #3045 - RrPaint in obrender should be split for easier use by external apps * Closed bug #3050 - 'syscrash' theme update * Closed bug #3051 - When closing windows * Closed bug #3053 - Updates de.po for German Localisation * Closed bug #3059 - Feature Request: NextWindowForAllWorkspaces * Closed bug #3063 - extensions_xinerama_screens() leaks memory if Xinerama is enabled * Closed bug #3064 - slist_path_add() might leak memory * Closed bug #3068 - Multimonitor focus problems * Closed bug #3081 - window doesn't appear * Closed bug #3092 - Config parser expects wrong values of "layer" in per-application settings * Closed bug #3094 - smart placement should Ignore maximized windows * Closed bug #3100 - Netwmpager is configured with layer = "below" but OB is ignoring it * Closed bug #3101 - Openbox won't compile on CentOS 4.4 * Closed bug #3102 - svn-6175 windows come not back in the foregroud * Closed bug #3106 - Fullscreened mplayer loses focus when switching to another desktop and back * Closed bug #3108 - After revision 6437 the desktop dialog window stays on screen 3.3.1: * Fix panels getting a border with keepBorder turned on. * Fix a crash in mirrorhorizontal when drawing a surface with width 1. 3.3: * Add a showDelay option for the dock. * Fixed onscreen-keeping code which broke a bit in -rc2. * Fix incorrect handling of window properties on 64 bit arches. * Fix pixelsize being the same as size for pango, now it is correct. * Fix drawing of icons taller than wide, eg gimp. * Add a 'mirrorhorizontal' gradient, like horizontal but mirrored in the center and 'splitvertical' which is like vertical but nonlinear in a fancy way. * Translations for de, hr and zh_TW added. * Add initial per-app settings support. * Fix some outstanding issues with 64-bit support. * Add an optional delay for displaying submenus so you can move the mouse over some entries without flashing each submenu. * Plug some minor memleaks and fix minor bugs. * Changed algorithm for downscaling window icons. * New themes! * Disable support for libstartup-notification by default, it doesn't seem to work well. * Allow disabling of duplicate window numbering by option titleNumber in theme section. * Add moverelative and resizerelative actions. * Option middle for menus that make submenus be centered instead of aligned by the top edge to the parent entry. * Fix transient (ie dialog) windows being placed offscreen if the parent is close to the edge of the screen. 3.3-rc2: * Fixed some typos and errors in rc.xsd * Add the noStrut option to the dock (to allow maximizing windows over it), useful when it is not in the above layer. * Fix transparent terminals not updating when using ToggleDecor. * Yet more poking at the onscreen-keeping code, should now do the right thing always. * Add an option to hide disabled buttons instead of showing them as disabled. * Hopefully fixed all the remaining pango issues. The new 1.10 release also fixes shadows again. * I think the lib linking in Makefile.am is right now, please tell me if it isn't. * Added a finnish translation and some minor updates to others. * Fixed configure.ac so --enable-pango doesn't disable pango support or the other way around, make enabled be default to get some extra testing. 3.3-rc1: * Poked around a bit in the code that keeps windows onscreen, if you are using xinerama, please let me know if things are better/worse/same. * Add support for pango, disabled by default due to a bug in pango 1.8 that breaks shadows, it works fine with 1.6.x though. Poke the pango developers here http://bugzilla.gnome.org/show_bug.cgi?id=169622 if you want this to be fixed. * Made edge resist and Send/MoveToEdge not hit windows at layers below the current one, add option to disable this behaviour. * Fixed directional focus not getting trapped in omnipresent windows * Fixed focus actions when bound to the mouse, normal focus cycle is always linear and directional focus is totally disabled, it makes no sense anyway, just move the mouse. * Added an option for the raise/lower/raiselower/unshaderaise/shadelower options called group that lets you bind stuff to raise/lower the whole window group. <action name="raise"><group>yes</group></action> * Add various new actions. I haven't updated the web docs yet, but I think I managed to get all of them listed in rc.xsd. * Bugs 1783, 1812, 1863, 1905, 2005, 1957 fixed. * Some translations added. (ca, no, pl, ru, fr) 3.2: * Added spanish and swedish translations * Changed "Unnamed Desktop" to "Desktop n" where n is the actual number of the desktop * Hopefully no more of the hanging X totally bug * the fullscreen property now overrides aspect hints, all programs i've tried that use it (mplayer and tvtime) handle the aspect internally anyway, this just makes sure you have black borders all the way to the edge. If this breaks anything for you, let me know. * Added M as an alias for Mod3 in the same manner that W is an alias for Mod4 * Added probably too many options and actions * ToggleDockAutohide to toggle the autohide option at runtime, doesn't save it to the config * keepBorder option to set if you want the 1-pixel border when you toggleDecorations * added popupShow and popupPosition to control where and when the move/resize-popup is shown, these go in the resize section of the config popupPosition can be Top or Center, popupShow can be Always, Never or Nonpixel (this is the default). * Added the xorStyle option to change the behaviour of menus along the bottom edge, note that the default is true * warpPointer option in the menu section to control if the mouse cursor is to be warped by openbox when the menu moves to keep on screen to keep the cursor in the same place relative to the menu. (I think i got that right) * Added back the focusLast option (this controls what happens when you change desktops and have followMouse on) * Added an option to set which desktop to start on when you start openbox, firstdesk, for example you might like to set it to 5 if you have a 3x3 grid to start in the middle. * I think that was everything, have fun 3.1: * Added japanese translation (bug #1029) * Closed bug #1060 (modal unfocused window should be placed above focused parent) * Closed bug #1012 (Openbox stalls gnome session startup after --replace) * Closed bug #1073 (The Desktop action doesn't work) * Closed bug #1023 (config_focus_raise declared as guint) * Closed bug #1019 (Strange behavior with focus:followMouse and RaiseLower action) * Closed bug #1007 (use g_snprintf in openbox/session.c instead of sprintf) * Closed bug #1001 (gimp crashes openbox) * Closed bug #1005 (import -frame leaves windows in a temporary "on top" state) * Closed bug #881 (Programs started with X become zombies upon shutdown.) * Closed bug #1025 (desktopnext/previous and desktopleft/right dont quite get along) 3.0: * Closed bug #908 (sometimes some weird grab is left) * Closed bug #945 (xawtv overlay visible on every desktop) * Closed bug #944 (remove restarting/reconfiguring messages from openbox.c) * Closed bug #946 (use g_strsplit in parse.c:split_paths()) * Closed bug #943 (consistent glib type (gint, gchar, etc.) usage) * Closed bug #951 (stale openbox session files) * Closed bug #947 (Sloppyfocus can yield two windows at the same time with focus (!)) * Closed bug #948 (Gets stuck in 'move' mode if mouse is let up while dragged away from title bar) * Closed bug #949 (dock above gnome panel behaviour) * Closed bug #902 (Openbox raises gDesklets when clicked) * Closed bug #904 (ToggleMaximizeHorz & Vert dont always toggle) * Closed bug #907 (window focus is not properly indicated) * Closed bug #919 (Temporary raise window when alt tabbing) * Closed bug #921 (focus rectangle stays on the screen after modifier release) * Closed bug #925 (Invalid option: '--sm-save' & '--sm-disable') * Closed bug #926 (problem with client-list-menu, destkop switching, and sticky client) * Closed bug #927 (disappearing windows, crash with I-merry theme) * Closed bug #929 (crash (signal 11) when activating Reconfigure) * Closed bug #940 (actions dont work on desktops with no client windows) * Closed bug #943 (consistent glib type (gint, gchar, etc.) usage) * Closed bug #957 (openbox crashes when exiting out of OpenOffice Impress) * Closed bug #960 (look for dupes in xdg paths when setting up slists?) * Closed bug #961 (Menu causes core dump) * Closed bug #963 (wrapper for mkdir() in parse.c) * Closed bug #964 (free GErrors in action.c, openbox.c) * Closed bug #965 (add message for chdir() failure in openbox.c) * Closed bug #966 (list->next/prev to g_[s]list_next/previous, list != NULL to list * Closed bug #971 (typo in code) * Closed bug #974 (use g_getenv() in parser/parse.c) * Closed bug #975 (void * -> gpointer) * Closed bug #976 (use g_strerror() in openbox/session.c) * Closed bug #978 (disable entry to go to desktop if it is the current) * Closed bug #979 (request for version check in ob libraries) * Closed bug #944 (remove restarting/reconfiguring messages from openbox.c) * Closed bug #968 (rc.xml refers to a non-existant "debian" menu file) 3.0-rc4: * Closed bug #921 (focus rectangle stays on the screen after modifier release) * Closed bug #927 (disappearing windows, crash with I-merry theme) * Fix crash when restoring a session with a maximized window * Fix leak of RrColors in menus * Closed bug #929 (crash (signal 11) when activating Reconfigure) * Allow focus to be moved around by clients (for WM_TAKE_FOCUS to work as it is meant to). This means fullscreen apps like wine and bzflag work now * Reversed the default directions for the mouse wheel desktop switching actions * Don't wrap around in the default keyboard desktop switching bindings * Place parentless dialogs so they avoid always-on-top windows * Ignore fullscreen windows in placing new ones * Closed bug #940 (actions dont work on desktops with no client windows) 3.0-rc3: * Closed bug #904 (ToggleMaximizeHorz & Vert dont always toggle) * Allow resizing of windows in only vertical/horizontal directions (via Alt-MiddleClick-Drag with the default bindings) * Added intelligence to window cycling and raise/lowering based on window types * Closed bug #902 (Openbox raises gDesklets when clicked). This has the side effect that panels which do not set the ABOVE state (most panels curerntly around) will no longer be kept always on top. You can set the ABOVE state yourself by using the client menu (Alt-RightClick in the default bindings) and selecting the Always on top Layer * Closed bug #907 (window focus is not properly indicated) * Added a focus indicator during focus cycling that is always visible instead of just moving the focus hilight around. 3.0-rc2: * Closed bug #885 (raiseOnFocus is flawed) * Closed bug #887 (Mouse-wheel scrolling only changes 1 desktop when using "dialog" option) * Closed bug #888 (some random coredump) * Closed bug #889 (focus follow mouse not following) * Closed bug #892 (client_under_pointer() doesn't check DESKTOP_ALL) * Avoid the focus flicker when switching desktops * Free the XML DOM trees properly, fixes mem leak 3.0-rc1: * Closed bug #875 (RaiseLower fails to funtion on windows with dialogs) * Added the <moveButton> option for moving dock apps around inside the dock. (Closes bug #798) * Made the "Desktop" action show the pager/desktop dialog * Add the <dialog> option to the Desktop and Focus switching actions * No longer iconify fullscreen windows when they lose focus (Closes bug #876) * When not using focusLast, when a focused transient is closed, focus will still fallback to its parent or transient siblings * Improved intelligence for focus cycling with modal transients * Removed the focusLast option * Added the placement-policy option to select if windows are placed under the mouse pointer * Children inherit their window icon from their parent * Closed bug #878 (minimal resizing of mplayer makes openbox crash) * Fix case where opening a menu would leave Openbox in a locked state * Upstream updates for TheBear theme 3.0-beta6: * Added _OB_WM_STATE_UNDECORATED hint, which can be read and controlled by external applications * Closed bug #874 (libtool won't install libobrender.la) * Launch ObConf when selecting GNOME's Desktop Preferences for Windows * Focus new children always if their direct parent is focused 3.0-beta5: * Initial release. �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/COPYING�������������������������������������������������������������������������������0000644�0001753�0000144�00000043110�11003645205�011141� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 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. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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 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. <signature of Ty Coon>, 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. ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/Makefile.am���������������������������������������������������������������������������0000644�0001753�0000144�00000034722�12475446152�012171� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������SUBDIRS = m4 po docxbmdir = $(docdir)/xbm themedir = $(datadir)/themes localedir = $(datadir)/locale configdir = $(sysconfdir)/xdg rcdir = $(configdir)/openbox xsessionsdir = $(datadir)/xsessions gnomesessiondir = $(datadir)/gnome-session/sessions gnomewmfilesdir = $(datadir)/gnome/wm-properties pkgconfigdir = $(libdir)/pkgconfig obtpubincludedir= $(includedir)/openbox/@OBT_VERSION@/obt rrpubincludedir = $(includedir)/openbox/@RR_VERSION@/obrender pixmapdir = $(datadir)/pixmaps xsddir = $(datadir)/openbox appsdir = $(datadir)/applications theme = Clearlooks AUTOMAKE_OPTIONS = subdir-objects foreign ACLOCAL_AMFLAGS = -I m4 INCLUDES = -I. check_PROGRAMS = \ obrender/rendertest lib_LTLIBRARIES = \ obt/libobt.la \ obrender/libobrender.la bin_PROGRAMS = \ openbox/openbox \ tools/gdm-control/gdm-control \ tools/gnome-panel-control/gnome-panel-control \ tools/obxprop/obxprop noinst_PROGRAMS = \ obt/obt_unittests nodist_bin_SCRIPTS = \ data/xsession/openbox-session \ data/xsession/openbox-gnome-session \ data/xsession/openbox-kde-session dist_rc_SCRIPTS = \ data/environment nodist_rc_SCRIPTS = \ data/autostart/autostart dist_libexec_SCRIPTS = \ data/autostart/openbox-xdg-autostart nodist_libexec_SCRIPTS = \ data/autostart/openbox-autostart ## obrender ## obrender_rendertest_CPPFLAGS = \ $(PANGO_CFLAGS) \ $(GLIB_CFLAGS) \ -DG_LOG_DOMAIN=\"RenderTest\" obrender_rendertest_LDADD = \ obt/libobt.la \ obrender/libobrender.la \ $(GLIB_LIBS) \ $(PANGO_LIBS) \ $(XML_LIBS) \ $(X_LIBS) obrender_rendertest_SOURCES = obrender/test.c obrender_libobrender_la_CPPFLAGS = \ $(X_CFLAGS) \ $(GLIB_CFLAGS) \ $(XML_CFLAGS) \ $(PANGO_CFLAGS) \ $(IMLIB2_CFLAGS) \ $(LIBRSVG_CFLAGS) \ -DG_LOG_DOMAIN=\"ObRender\" \ -DDEFAULT_THEME=\"$(theme)\" obrender_libobrender_la_LDFLAGS = \ -version-info $(RR_CURRENT):$(RR_REVISION):$(RR_AGE) obrender_libobrender_la_LIBADD = \ obt/libobt.la \ $(X_LIBS) \ $(PANGO_LIBS) \ $(GLIB_LIBS) \ $(IMLIB2_LIBS) \ $(LIBRSVG_LIBS) \ $(XML_LIBS) obrender_libobrender_la_SOURCES = \ gettext.h \ obrender/button.c \ obrender/color.h \ obrender/color.c \ obrender/font.h \ obrender/font.c \ obrender/geom.h \ obrender/gradient.h \ obrender/gradient.c \ obrender/icon.h \ obrender/image.h \ obrender/image.c \ obrender/imagecache.h \ obrender/imagecache.c \ obrender/instance.h \ obrender/instance.c \ obrender/mask.h \ obrender/mask.c \ obrender/render.h \ obrender/render.c \ obrender/theme.h \ obrender/theme.c ## obt ## obt_libobt_la_CPPFLAGS = \ $(X_CFLAGS) \ $(XINERAMA_CFLAGS) \ $(XKB_CFLAGS) \ $(XRANDR_CFLAGS) \ $(XSHAPE_CFLAGS) \ $(XSYNC_CFLAGS) \ $(GLIB_CFLAGS) \ $(XML_CFLAGS) \ -DG_LOG_DOMAIN=\"Obt\" \ -DLOCALEDIR=\"$(localedir)\" \ -DDATADIR=\"$(datadir)\" \ -DCONFIGDIR=\"$(configdir)\" obt_libobt_la_LDFLAGS = \ -version-info $(OBT_CURRENT):$(OBT_REVISION):$(OBT_AGE) obt_libobt_la_LIBADD = \ $(X_LIBS) \ $(XINERAMA_LIBS) \ $(XKB_LIBS) \ $(XRANDR_LIBS) \ $(XSHAPE_LIBS) \ $(XSYNC_LIBS) \ $(GLIB_LIBS) \ $(XML_LIBS) obt_libobt_la_SOURCES = \ obt/bsearch.h \ obt/display.h \ obt/display.c \ obt/internal.h \ obt/keyboard.h \ obt/keyboard.c \ obt/xml.h \ obt/xml.c \ obt/ddparse.h \ obt/ddparse.c \ obt/link.h \ obt/link.c \ obt/paths.h \ obt/paths.c \ obt/prop.h \ obt/prop.c \ obt/signal.h \ obt/signal.c \ obt/util.h \ obt/xqueue.h \ obt/xqueue.c ## openbox ## openbox_openbox_CPPFLAGS = \ $(SM_CFLAGS) \ $(X_CFLAGS) \ $(XCURSOR_CFLAGS) \ $(SM_CFLAGS) \ $(PANGO_CFLAGS) \ $(GLIB_CFLAGS) \ $(LIBSN_CFLAGS) \ $(XML_CFLAGS) \ -DLOCALEDIR=\"$(localedir)\" \ -DDATADIR=\"$(datadir)\" \ -DCONFIGDIR=\"$(configdir)\" \ -DG_LOG_DOMAIN=\"Openbox\" openbox_openbox_LDADD = \ $(XINERAMA_LIBS) \ $(XRANDR_LIBS) \ $(SM_LIBS) \ $(GLIB_LIBS) \ $(X_LIBS) \ $(XCURSOR_LIBS) \ $(LIBSN_LIBS) \ $(XML_LIBS) \ $(EFENCE_LIBS) \ $(LIBINTL) \ obrender/libobrender.la \ obt/libobt.la openbox_openbox_LDFLAGS = -export-dynamic openbox_openbox_SOURCES = \ gettext.h \ openbox/actions/all.c \ openbox/actions/all.h \ openbox/actions/addremovedesktop.c \ openbox/actions/breakchroot.c \ openbox/actions/close.c \ openbox/actions/cyclewindows.c \ openbox/actions/debug.c \ openbox/actions/decorations.c \ openbox/actions/desktop.c \ openbox/actions/dock.c \ openbox/actions/dockautohide.c \ openbox/actions/directionalwindows.c \ openbox/actions/execute.c \ openbox/actions/exit.c \ openbox/actions/focus.c \ openbox/actions/focustobottom.c \ openbox/actions/fullscreen.c \ openbox/actions/growtoedge.c \ openbox/actions/iconify.c \ openbox/actions/if.c \ openbox/actions/kill.c \ openbox/actions/layer.c \ openbox/actions/lower.c \ openbox/actions/maximize.c \ openbox/actions/move.c \ openbox/actions/moverelative.c \ openbox/actions/moveresizeto.c \ openbox/actions/movetoedge.c \ openbox/actions/omnipresent.c \ openbox/actions/raise.c \ openbox/actions/raiselower.c \ openbox/actions/reconfigure.c \ openbox/actions/resize.c \ openbox/actions/resizerelative.c \ openbox/actions/restart.c \ openbox/actions/shade.c \ openbox/actions/shadelowerraise.c \ openbox/actions/showdesktop.c \ openbox/actions/showmenu.c \ openbox/actions/unfocus.c \ openbox/actions.c \ openbox/actions.h \ openbox/client.c \ openbox/client.h \ openbox/client_list_menu.c \ openbox/client_list_menu.h \ openbox/client_list_combined_menu.c \ openbox/client_list_combined_menu.h \ openbox/client_menu.c \ openbox/client_menu.h \ openbox/config.c \ openbox/config.h \ openbox/debug.c \ openbox/debug.h \ openbox/dock.c \ openbox/dock.h \ openbox/event.c \ openbox/event.h \ openbox/focus.c \ openbox/focus.h \ openbox/focus_cycle.c \ openbox/focus_cycle.h \ openbox/focus_cycle_indicator.c \ openbox/focus_cycle_indicator.h \ openbox/focus_cycle_popup.c \ openbox/focus_cycle_popup.h \ openbox/frame.c \ openbox/frame.h \ openbox/framerender.c \ openbox/framerender.h \ openbox/geom.h \ openbox/grab.c \ openbox/grab.h \ openbox/group.c \ openbox/group.h \ openbox/keyboard.c \ openbox/keyboard.h \ openbox/keytree.c \ openbox/keytree.h \ openbox/menuframe.c \ openbox/menuframe.h \ openbox/menu.c \ openbox/menu.h \ openbox/misc.h \ openbox/mouse.c \ openbox/mouse.h \ openbox/moveresize.c \ openbox/moveresize.h \ openbox/mwm.h \ openbox/openbox.c \ openbox/openbox.h \ openbox/ping.c \ openbox/ping.h \ openbox/place.c \ openbox/place.h \ openbox/place_overlap.c \ openbox/place_overlap.h \ openbox/prompt.c \ openbox/prompt.h \ openbox/popup.c \ openbox/popup.h \ openbox/resist.c \ openbox/resist.h \ openbox/screen.c \ openbox/screen.h \ openbox/session.c \ openbox/session.h \ openbox/stacking.c \ openbox/stacking.h \ openbox/startupnotify.c \ openbox/startupnotify.h \ openbox/translate.c \ openbox/translate.h \ openbox/window.c \ openbox/window.h ## obt_unittests ## obt_obt_unittests_CPPFLAGS = \ $(GLIB_CFLAGS) \ -DLOCALEDIR=\"$(localedir)\" \ -DDATADIR=\"$(datadir)\" \ -DCONFIGDIR=\"$(configdir)\" \ -DG_LOG_DOMAIN=\"Obt-Unittests\" obt_obt_unittests_LDADD = \ $(GLIB_LIBS) \ obt/libobt.la obt_obt_unittests_LDFLAGS = -export-dynamic obt_obt_unittests_SOURCES = \ obt/unittest_base.h \ obt/unittest_base.c \ obt/bsearch_unittest.c ## gnome-panel-control ## tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \ $(X_CFLAGS) tools_gnome_panel_control_gnome_panel_control_LDADD = \ $(X_LIBS) tools_gnome_panel_control_gnome_panel_control_SOURCES = \ tools/gnome-panel-control/gnome-panel-control.c ## obxprop ## tools_obxprop_obxprop_CPPFLAGS = \ $(GLIB_CFLAGS) \ $(X_CFLAGS) tools_obxprop_obxprop_LDADD = \ $(GLIB_LIBS) \ $(X_LIBS) tools_obxprop_obxprop_SOURCES = \ tools/obxprop/obxprop.c ## gdm-control ## tools_gdm_control_gdm_control_CPPFLAGS = \ $(XAUTH_CFLAGS) \ $(X_CFLAGS) \ $(GLIB_CFLAGS) tools_gdm_control_gdm_control_LDADD = \ $(XAUTH_LIBS) \ $(X_LIBS) \ $(GLIB_LIBS) tools_gdm_control_gdm_control_SOURCES = \ tools/gdm-control/gdm-control.c ## default button masks ## dist_docxbm_DATA = \ data/xbm/bullet.xbm \ data/xbm/close.xbm \ data/xbm/desk_toggled.xbm \ data/xbm/desk.xbm \ data/xbm/iconify.xbm \ data/xbm/max_toggled.xbm \ data/xbm/max.xbm \ data/xbm/shade_toggled.xbm \ data/xbm/shade.xbm ## themes ## clearlooks_themedir = $(themedir)/Clearlooks/openbox-3 dist_clearlooks_theme_DATA= \ themes/Clearlooks/openbox-3/themerc clearlooks34_themedir = $(themedir)/Clearlooks-3.4/openbox-3 dist_clearlooks34_theme_DATA= \ themes/Clearlooks-3.4/openbox-3/themerc clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3 dist_clearlooksolive_theme_DATA= \ themes/Clearlooks-Olive/openbox-3/themerc mikachu_themedir = $(themedir)/Mikachu/openbox-3 dist_mikachu_theme_DATA= \ themes/Mikachu/openbox-3/bullet.xbm \ themes/Mikachu/openbox-3/close.xbm \ themes/Mikachu/openbox-3/desk.xbm \ themes/Mikachu/openbox-3/iconify.xbm \ themes/Mikachu/openbox-3/max.xbm \ themes/Mikachu/openbox-3/themerc natura_themedir = $(themedir)/Natura/openbox-3 dist_natura_theme_DATA= \ themes/Natura/openbox-3/close_hover.xbm \ themes/Natura/openbox-3/close.xbm \ themes/Natura/openbox-3/desk_toggled.xbm \ themes/Natura/openbox-3/desk_hover.xbm \ themes/Natura/openbox-3/desk.xbm \ themes/Natura/openbox-3/iconify_hover.xbm \ themes/Natura/openbox-3/iconify.xbm \ themes/Natura/openbox-3/max_hover.xbm \ themes/Natura/openbox-3/max_toggled.xbm \ themes/Natura/openbox-3/max.xbm \ themes/Natura/openbox-3/shade.xbm \ themes/Natura/openbox-3/shade_hover.xbm \ themes/Natura/openbox-3/themerc artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3 dist_artwizboxed_theme_DATA= \ themes/Artwiz-boxed/openbox-3/themerc bear2_themedir = $(themedir)/Bear2/openbox-3 dist_bear2_theme_DATA= \ themes/Bear2/openbox-3/close_pressed.xbm \ themes/Bear2/openbox-3/close.xbm \ themes/Bear2/openbox-3/desk_toggled.xbm \ themes/Bear2/openbox-3/desk.xbm \ themes/Bear2/openbox-3/iconify_pressed.xbm \ themes/Bear2/openbox-3/iconify.xbm \ themes/Bear2/openbox-3/max_pressed.xbm \ themes/Bear2/openbox-3/max_toggled.xbm \ themes/Bear2/openbox-3/max.xbm \ themes/Bear2/openbox-3/shade_pressed.xbm \ themes/Bear2/openbox-3/shade.xbm \ themes/Bear2/openbox-3/themerc orang_themedir = $(themedir)/Orang/openbox-3 dist_orang_theme_DATA= \ themes/Orang/openbox-3/themerc onyx_themedir = $(themedir)/Onyx/openbox-3 dist_onyx_theme_DATA= \ themes/Onyx/openbox-3/themerc onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3 dist_onyxcitrus_theme_DATA= \ themes/Onyx-Citrus/openbox-3/themerc syscrash_themedir = $(themedir)/Syscrash/openbox-3 dist_syscrash_theme_DATA= \ themes/Syscrash/openbox-3/max_disabled.xbm \ themes/Syscrash/openbox-3/max_pressed.xbm \ themes/Syscrash/openbox-3/max_toggled.xbm \ themes/Syscrash/openbox-3/max.xbm \ themes/Syscrash/openbox-3/themerc ## public headers ## rrpubinclude_HEADERS = \ obrender/color.h \ obrender/font.h \ obrender/geom.h \ obrender/gradient.h \ obrender/image.h \ obrender/instance.h \ obrender/mask.h \ obrender/render.h \ obrender/theme.h \ obrender/version.h obtpubinclude_HEADERS = \ obt/link.h \ obt/display.h \ obt/keyboard.h \ obt/xml.h \ obt/paths.h \ obt/prop.h \ obt/signal.h \ obt/util.h \ obt/version.h \ obt/xqueue.h nodist_pkgconfig_DATA = \ obrender/obrender-3.5.pc \ obt/obt-3.5.pc ## data ## dist_apps_DATA = \ data/openbox.desktop dist_pixmap_DATA = \ data/openbox.png dist_rc_DATA = \ data/rc.xml \ data/menu.xml edit = $(SED) \ -e 's!@version\@!$(VERSION)!' \ -e 's!@configdir\@!$(configdir)!' \ -e 's!@rcdir\@!$(rcdir)!' \ -e 's!@libexecdir\@!$(libexecdir)!' \ -e 's!@bindir\@!$(bindir)!' data/autostart/autostart: $(top_srcdir)/data/autostart/autostart.in Makefile @echo make: creating $@ @test -d $(shell dirname $(top_builddir)/$@) || \ mkdir $(shell dirname $(top_builddir)/$@) @$(edit) $< >$(top_builddir)/$@ data/autostart/openbox-autostart: $(top_srcdir)/data/autostart/openbox-autostart.in Makefile @echo make: creating $@ @test -d $(shell dirname $(top_builddir)/$@) || \ mkdir $(shell dirname $(top_builddir)/$@) @$(edit) $< >$(top_builddir)/$@ %.desktop: %.desktop.in Makefile @echo make: creating $@ @$(edit) $< >$@ %-session: %-session.in Makefile @echo make: creating $@ @$(edit) $< >$@ %.1.in: %.1.sgml @echo make: creating $@ @docbook-to-man $< >$@ %.1: %.1.in Makefile @echo make: creating $@ @$(edit) $< >$@ dist_gnomewmfiles_DATA = \ data/gnome-wm-properties/openbox.desktop nodist_xsessions_DATA = \ data/xsession/openbox.desktop \ data/xsession/openbox-gnome.desktop \ data/xsession/openbox-kde.desktop dist_gnomesession_DATA = \ data/gnome-session/openbox-gnome.session \ data/gnome-session/openbox-gnome-fallback.session dist_noinst_DATA = \ data/rc.xsd \ data/menu.xsd \ data/autostart/autostart.in \ data/autostart/openbox-autostart.in \ data/xsession/openbox.desktop.in \ data/xsession/openbox-gnome.desktop.in \ data/xsession/openbox-kde.desktop.in \ data/xsession/openbox-session.in \ data/xsession/openbox-gnome-session.in \ data/xsession/openbox-kde-session.in \ doc/openbox.1.sgml \ doc/openbox.1.in \ doc/openbox-session.1.sgml \ doc/openbox-session.1.in \ doc/openbox-gnome-session.1.sgml \ doc/openbox-gnome-session.1.in \ doc/openbox-kde-session.1.sgml \ doc/openbox-kde-session.1.in \ doc/obxprop.1.sgml \ doc/obxprop.1.in \ obrender/version.h.in \ obrender/obrender-3.5.pc.in \ obt/obt-3.5.pc.in \ obt/version.h.in \ tools/themeupdate/themeupdate.py \ tests/hideshow.py \ tests/Makefile \ tests/aspect.c \ tests/fullscreen.c \ tests/grav.c \ tests/grouptran.c \ tests/icons.c \ tests/modal2.c \ tests/modal3.c \ tests/modal.c \ tests/noresize.c \ tests/override.c \ tests/positioned.c \ tests/strut.c \ tests/title.c \ tests/urgent.c dist_doc_DATA = \ COMPLIANCE \ README \ AUTHORS \ CHANGELOG \ COPYING \ data/rc.xsd \ data/menu.xsd \ doc/rc-mouse-focus.xml nodist_man_MANS = \ doc/openbox.1 \ doc/openbox-session.1 \ doc/openbox-gnome-session.1 \ doc/openbox-kde-session.1 \ doc/obxprop.1 EXTRA_DIST = \ config.rpath # make clean doesn't delete these for some reason, even though they are # built by make CLEANFILES = \ $(nodist_man_MANS) \ $(nodist_bin_SCRIPTS) \ $(nodist_xsessions_DATA) \ $(nodist_rc_SCRIPTS) \ $(nodist_libexec_SCRIPTS) #doc: # $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc distclean-local: for d in . m4 po obrender parser obt openbox; do \ for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \ rm -f "$$d/$$p"; \ done \ done .PHONY: doc ����������������������������������������������openbox-3.6.1/Makefile.in���������������������������������������������������������������������������0000644�0001753�0000144�00001231706�12544730644�012203� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = obrender/rendertest$(EXEEXT) bin_PROGRAMS = openbox/openbox$(EXEEXT) \ tools/gdm-control/gdm-control$(EXEEXT) \ tools/gnome-panel-control/gnome-panel-control$(EXEEXT) \ tools/obxprop/obxprop$(EXEEXT) noinst_PROGRAMS = obt/obt_unittests$(EXEEXT) subdir = . DIST_COMMON = README $(am__configure_deps) $(dist_apps_DATA) \ $(dist_artwizboxed_theme_DATA) $(dist_bear2_theme_DATA) \ $(dist_clearlooks34_theme_DATA) $(dist_clearlooks_theme_DATA) \ $(dist_clearlooksolive_theme_DATA) $(dist_doc_DATA) \ $(dist_docxbm_DATA) $(dist_gnomesession_DATA) \ $(dist_gnomewmfiles_DATA) $(dist_libexec_SCRIPTS) \ $(dist_mikachu_theme_DATA) $(dist_natura_theme_DATA) \ $(dist_noinst_DATA) $(dist_onyx_theme_DATA) \ $(dist_onyxcitrus_theme_DATA) $(dist_orang_theme_DATA) \ $(dist_pixmap_DATA) $(dist_rc_DATA) $(dist_rc_SCRIPTS) \ $(dist_syscrash_theme_DATA) $(obtpubinclude_HEADERS) \ $(rrpubinclude_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/version.h.in \ $(top_srcdir)/configure \ $(top_srcdir)/obrender/obrender-3.5.pc.in \ $(top_srcdir)/obrender/version.h.in \ $(top_srcdir)/obt/obt-3.5.pc.in $(top_srcdir)/obt/version.h.in \ ABOUT-NLS AUTHORS COPYING compile config.guess config.rpath \ config.sub depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/openbox.m4 $(top_srcdir)/m4/po.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/x11.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 config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = obrender/obrender-3.5.pc obt/obt-3.5.pc \ obrender/version.h obt/version.h version.h CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(rcdir)" \ "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" \ "$(DESTDIR)$(rcdir)" "$(DESTDIR)$(man1dir)" \ "$(DESTDIR)$(appsdir)" "$(DESTDIR)$(artwizboxed_themedir)" \ "$(DESTDIR)$(bear2_themedir)" \ "$(DESTDIR)$(clearlooks34_themedir)" \ "$(DESTDIR)$(clearlooks_themedir)" \ "$(DESTDIR)$(clearlooksolive_themedir)" "$(DESTDIR)$(docdir)" \ "$(DESTDIR)$(docxbmdir)" "$(DESTDIR)$(gnomesessiondir)" \ "$(DESTDIR)$(gnomewmfilesdir)" "$(DESTDIR)$(mikachu_themedir)" \ "$(DESTDIR)$(natura_themedir)" "$(DESTDIR)$(onyx_themedir)" \ "$(DESTDIR)$(onyxcitrus_themedir)" \ "$(DESTDIR)$(orang_themedir)" "$(DESTDIR)$(pixmapdir)" \ "$(DESTDIR)$(rcdir)" "$(DESTDIR)$(syscrash_themedir)" \ "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(xsessionsdir)" \ "$(DESTDIR)$(obtpubincludedir)" "$(DESTDIR)$(rrpubincludedir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = obrender_libobrender_la_DEPENDENCIES = obt/libobt.la \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am__dirstamp = $(am__leading_dot)dirstamp am_obrender_libobrender_la_OBJECTS = \ obrender/obrender_libobrender_la-button.lo \ obrender/obrender_libobrender_la-color.lo \ obrender/obrender_libobrender_la-font.lo \ obrender/obrender_libobrender_la-gradient.lo \ obrender/obrender_libobrender_la-image.lo \ obrender/obrender_libobrender_la-imagecache.lo \ obrender/obrender_libobrender_la-instance.lo \ obrender/obrender_libobrender_la-mask.lo \ obrender/obrender_libobrender_la-render.lo \ obrender/obrender_libobrender_la-theme.lo obrender_libobrender_la_OBJECTS = \ $(am_obrender_libobrender_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent obrender_libobrender_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(AM_CFLAGS) $(CFLAGS) $(obrender_libobrender_la_LDFLAGS) \ $(LDFLAGS) -o $@ obt_libobt_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_obt_libobt_la_OBJECTS = obt/obt_libobt_la-display.lo \ obt/obt_libobt_la-keyboard.lo obt/obt_libobt_la-xml.lo \ obt/obt_libobt_la-ddparse.lo obt/obt_libobt_la-link.lo \ obt/obt_libobt_la-paths.lo obt/obt_libobt_la-prop.lo \ obt/obt_libobt_la-signal.lo obt/obt_libobt_la-xqueue.lo obt_libobt_la_OBJECTS = $(am_obt_libobt_la_OBJECTS) obt_libobt_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(obt_libobt_la_LDFLAGS) $(LDFLAGS) -o $@ PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS) am_obrender_rendertest_OBJECTS = \ obrender/obrender_rendertest-test.$(OBJEXT) obrender_rendertest_OBJECTS = $(am_obrender_rendertest_OBJECTS) obrender_rendertest_DEPENDENCIES = obt/libobt.la \ obrender/libobrender.la $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) am_obt_obt_unittests_OBJECTS = \ obt/obt_obt_unittests-unittest_base.$(OBJEXT) \ obt/obt_obt_unittests-bsearch_unittest.$(OBJEXT) obt_obt_unittests_OBJECTS = $(am_obt_obt_unittests_OBJECTS) obt_obt_unittests_DEPENDENCIES = $(am__DEPENDENCIES_1) obt/libobt.la obt_obt_unittests_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(AM_CFLAGS) $(CFLAGS) $(obt_obt_unittests_LDFLAGS) $(LDFLAGS) \ -o $@ am_openbox_openbox_OBJECTS = \ openbox/actions/openbox_openbox-all.$(OBJEXT) \ openbox/actions/openbox_openbox-addremovedesktop.$(OBJEXT) \ openbox/actions/openbox_openbox-breakchroot.$(OBJEXT) \ openbox/actions/openbox_openbox-close.$(OBJEXT) \ openbox/actions/openbox_openbox-cyclewindows.$(OBJEXT) \ openbox/actions/openbox_openbox-debug.$(OBJEXT) \ openbox/actions/openbox_openbox-decorations.$(OBJEXT) \ openbox/actions/openbox_openbox-desktop.$(OBJEXT) \ openbox/actions/openbox_openbox-dock.$(OBJEXT) \ openbox/actions/openbox_openbox-dockautohide.$(OBJEXT) \ openbox/actions/openbox_openbox-directionalwindows.$(OBJEXT) \ openbox/actions/openbox_openbox-execute.$(OBJEXT) \ openbox/actions/openbox_openbox-exit.$(OBJEXT) \ openbox/actions/openbox_openbox-focus.$(OBJEXT) \ openbox/actions/openbox_openbox-focustobottom.$(OBJEXT) \ openbox/actions/openbox_openbox-fullscreen.$(OBJEXT) \ openbox/actions/openbox_openbox-growtoedge.$(OBJEXT) \ openbox/actions/openbox_openbox-iconify.$(OBJEXT) \ openbox/actions/openbox_openbox-if.$(OBJEXT) \ openbox/actions/openbox_openbox-kill.$(OBJEXT) \ openbox/actions/openbox_openbox-layer.$(OBJEXT) \ openbox/actions/openbox_openbox-lower.$(OBJEXT) \ openbox/actions/openbox_openbox-maximize.$(OBJEXT) \ openbox/actions/openbox_openbox-move.$(OBJEXT) \ openbox/actions/openbox_openbox-moverelative.$(OBJEXT) \ openbox/actions/openbox_openbox-moveresizeto.$(OBJEXT) \ openbox/actions/openbox_openbox-movetoedge.$(OBJEXT) \ openbox/actions/openbox_openbox-omnipresent.$(OBJEXT) \ openbox/actions/openbox_openbox-raise.$(OBJEXT) \ openbox/actions/openbox_openbox-raiselower.$(OBJEXT) \ openbox/actions/openbox_openbox-reconfigure.$(OBJEXT) \ openbox/actions/openbox_openbox-resize.$(OBJEXT) \ openbox/actions/openbox_openbox-resizerelative.$(OBJEXT) \ openbox/actions/openbox_openbox-restart.$(OBJEXT) \ openbox/actions/openbox_openbox-shade.$(OBJEXT) \ openbox/actions/openbox_openbox-shadelowerraise.$(OBJEXT) \ openbox/actions/openbox_openbox-showdesktop.$(OBJEXT) \ openbox/actions/openbox_openbox-showmenu.$(OBJEXT) \ openbox/actions/openbox_openbox-unfocus.$(OBJEXT) \ openbox/openbox_openbox-actions.$(OBJEXT) \ openbox/openbox_openbox-client.$(OBJEXT) \ openbox/openbox_openbox-client_list_menu.$(OBJEXT) \ openbox/openbox_openbox-client_list_combined_menu.$(OBJEXT) \ openbox/openbox_openbox-client_menu.$(OBJEXT) \ openbox/openbox_openbox-config.$(OBJEXT) \ openbox/openbox_openbox-debug.$(OBJEXT) \ openbox/openbox_openbox-dock.$(OBJEXT) \ openbox/openbox_openbox-event.$(OBJEXT) \ openbox/openbox_openbox-focus.$(OBJEXT) \ openbox/openbox_openbox-focus_cycle.$(OBJEXT) \ openbox/openbox_openbox-focus_cycle_indicator.$(OBJEXT) \ openbox/openbox_openbox-focus_cycle_popup.$(OBJEXT) \ openbox/openbox_openbox-frame.$(OBJEXT) \ openbox/openbox_openbox-framerender.$(OBJEXT) \ openbox/openbox_openbox-grab.$(OBJEXT) \ openbox/openbox_openbox-group.$(OBJEXT) \ openbox/openbox_openbox-keyboard.$(OBJEXT) \ openbox/openbox_openbox-keytree.$(OBJEXT) \ openbox/openbox_openbox-menuframe.$(OBJEXT) \ openbox/openbox_openbox-menu.$(OBJEXT) \ openbox/openbox_openbox-mouse.$(OBJEXT) \ openbox/openbox_openbox-moveresize.$(OBJEXT) \ openbox/openbox_openbox-openbox.$(OBJEXT) \ openbox/openbox_openbox-ping.$(OBJEXT) \ openbox/openbox_openbox-place.$(OBJEXT) \ openbox/openbox_openbox-place_overlap.$(OBJEXT) \ openbox/openbox_openbox-prompt.$(OBJEXT) \ openbox/openbox_openbox-popup.$(OBJEXT) \ openbox/openbox_openbox-resist.$(OBJEXT) \ openbox/openbox_openbox-screen.$(OBJEXT) \ openbox/openbox_openbox-session.$(OBJEXT) \ openbox/openbox_openbox-stacking.$(OBJEXT) \ openbox/openbox_openbox-startupnotify.$(OBJEXT) \ openbox/openbox_openbox-translate.$(OBJEXT) \ openbox/openbox_openbox-window.$(OBJEXT) openbox_openbox_OBJECTS = $(am_openbox_openbox_OBJECTS) openbox_openbox_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) obrender/libobrender.la obt/libobt.la openbox_openbox_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(AM_CFLAGS) $(CFLAGS) $(openbox_openbox_LDFLAGS) $(LDFLAGS) \ -o $@ am_tools_gdm_control_gdm_control_OBJECTS = tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.$(OBJEXT) tools_gdm_control_gdm_control_OBJECTS = \ $(am_tools_gdm_control_gdm_control_OBJECTS) tools_gdm_control_gdm_control_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) am_tools_gnome_panel_control_gnome_panel_control_OBJECTS = tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.$(OBJEXT) tools_gnome_panel_control_gnome_panel_control_OBJECTS = \ $(am_tools_gnome_panel_control_gnome_panel_control_OBJECTS) tools_gnome_panel_control_gnome_panel_control_DEPENDENCIES = \ $(am__DEPENDENCIES_1) am_tools_obxprop_obxprop_OBJECTS = \ tools/obxprop/tools_obxprop_obxprop-obxprop.$(OBJEXT) tools_obxprop_obxprop_OBJECTS = $(am_tools_obxprop_obxprop_OBJECTS) tools_obxprop_obxprop_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) SCRIPTS = $(dist_libexec_SCRIPTS) $(dist_rc_SCRIPTS) \ $(nodist_bin_SCRIPTS) $(nodist_libexec_SCRIPTS) \ $(nodist_rc_SCRIPTS) DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(obrender_libobrender_la_SOURCES) $(obt_libobt_la_SOURCES) \ $(obrender_rendertest_SOURCES) $(obt_obt_unittests_SOURCES) \ $(openbox_openbox_SOURCES) \ $(tools_gdm_control_gdm_control_SOURCES) \ $(tools_gnome_panel_control_gnome_panel_control_SOURCES) \ $(tools_obxprop_obxprop_SOURCES) DIST_SOURCES = $(obrender_libobrender_la_SOURCES) \ $(obt_libobt_la_SOURCES) $(obrender_rendertest_SOURCES) \ $(obt_obt_unittests_SOURCES) $(openbox_openbox_SOURCES) \ $(tools_gdm_control_gdm_control_SOURCES) \ $(tools_gnome_panel_control_gnome_panel_control_SOURCES) \ $(tools_obxprop_obxprop_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac man1dir = $(mandir)/man1 NROFF = nroff MANS = $(nodist_man_MANS) DATA = $(dist_apps_DATA) $(dist_artwizboxed_theme_DATA) \ $(dist_bear2_theme_DATA) $(dist_clearlooks34_theme_DATA) \ $(dist_clearlooks_theme_DATA) \ $(dist_clearlooksolive_theme_DATA) $(dist_doc_DATA) \ $(dist_docxbm_DATA) $(dist_gnomesession_DATA) \ $(dist_gnomewmfiles_DATA) $(dist_mikachu_theme_DATA) \ $(dist_natura_theme_DATA) $(dist_noinst_DATA) \ $(dist_onyx_theme_DATA) $(dist_onyxcitrus_theme_DATA) \ $(dist_orang_theme_DATA) $(dist_pixmap_DATA) $(dist_rc_DATA) \ $(dist_syscrash_theme_DATA) $(nodist_pkgconfig_DATA) \ $(nodist_xsessions_DATA) HEADERS = $(obtpubinclude_HEADERS) $(rrpubinclude_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DIRNAME = @DIRNAME@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EFENCE_LIBS = @EFENCE_LIBS@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ IMLIB2_CFLAGS = @IMLIB2_CFLAGS@ IMLIB2_LIBS = @IMLIB2_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBRSVG_CFLAGS = @LIBRSVG_CFLAGS@ LIBRSVG_LIBS = @LIBRSVG_LIBS@ LIBS = @LIBS@ LIBSN_CFLAGS = @LIBSN_CFLAGS@ LIBSN_LIBS = @LIBSN_LIBS@ LIBTOOL = @LIBTOOL@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OBT_AGE = @OBT_AGE@ OBT_BINARY_AGE = @OBT_BINARY_AGE@ OBT_CURRENT = @OBT_CURRENT@ OBT_CURRENT_MINUS_AGE = @OBT_CURRENT_MINUS_AGE@ OBT_INTERFACE_AGE = @OBT_INTERFACE_AGE@ OBT_MAJOR_VERSION = @OBT_MAJOR_VERSION@ OBT_MICRO_VERSION = @OBT_MICRO_VERSION@ OBT_MINOR_VERSION = @OBT_MINOR_VERSION@ OBT_RELEASE = @OBT_RELEASE@ OBT_REVISION = @OBT_REVISION@ OBT_VERSION = @OBT_VERSION@ OB_VERSION = @OB_VERSION@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PANGO_CFLAGS = @PANGO_CFLAGS@ PANGO_LIBS = @PANGO_LIBS@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_IMLIB = @PKG_CONFIG_IMLIB@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_LIBRSVG = @PKG_CONFIG_LIBRSVG@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ RANLIB = @RANLIB@ RR_AGE = @RR_AGE@ RR_BINARY_AGE = @RR_BINARY_AGE@ RR_CURRENT = @RR_CURRENT@ RR_CURRENT_MINUS_AGE = @RR_CURRENT_MINUS_AGE@ RR_INTERFACE_AGE = @RR_INTERFACE_AGE@ RR_MAJOR_VERSION = @RR_MAJOR_VERSION@ RR_MICRO_VERSION = @RR_MICRO_VERSION@ RR_MINOR_VERSION = @RR_MINOR_VERSION@ RR_RELEASE = @RR_RELEASE@ RR_REVISION = @RR_REVISION@ RR_VERSION = @RR_VERSION@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SM_CFLAGS = @SM_CFLAGS@ SM_LIBS = @SM_LIBS@ STRIP = @STRIP@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XAUTH_CFLAGS = @XAUTH_CFLAGS@ XAUTH_LIBS = @XAUTH_LIBS@ XCURSOR_CFLAGS = @XCURSOR_CFLAGS@ XCURSOR_LIBS = @XCURSOR_LIBS@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XINERAMA_LIBS = @XINERAMA_LIBS@ XKB_CFLAGS = @XKB_CFLAGS@ XKB_LIBS = @XKB_LIBS@ XMKMF = @XMKMF@ XML_CFLAGS = @XML_CFLAGS@ XML_LIBS = @XML_LIBS@ XRANDR_CFLAGS = @XRANDR_CFLAGS@ XRANDR_LIBS = @XRANDR_LIBS@ XSHAPE_CFLAGS = @XSHAPE_CFLAGS@ XSHAPE_LIBS = @XSHAPE_LIBS@ XSYNC_CFLAGS = @XSYNC_CFLAGS@ XSYNC_LIBS = @XSYNC_LIBS@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = $(datadir)/locale localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = m4 po docxbmdir = $(docdir)/xbm themedir = $(datadir)/themes configdir = $(sysconfdir)/xdg rcdir = $(configdir)/openbox xsessionsdir = $(datadir)/xsessions gnomesessiondir = $(datadir)/gnome-session/sessions gnomewmfilesdir = $(datadir)/gnome/wm-properties pkgconfigdir = $(libdir)/pkgconfig obtpubincludedir = $(includedir)/openbox/@OBT_VERSION@/obt rrpubincludedir = $(includedir)/openbox/@RR_VERSION@/obrender pixmapdir = $(datadir)/pixmaps xsddir = $(datadir)/openbox appsdir = $(datadir)/applications theme = Clearlooks AUTOMAKE_OPTIONS = subdir-objects foreign ACLOCAL_AMFLAGS = -I m4 INCLUDES = -I. lib_LTLIBRARIES = \ obt/libobt.la \ obrender/libobrender.la nodist_bin_SCRIPTS = \ data/xsession/openbox-session \ data/xsession/openbox-gnome-session \ data/xsession/openbox-kde-session dist_rc_SCRIPTS = \ data/environment nodist_rc_SCRIPTS = \ data/autostart/autostart dist_libexec_SCRIPTS = \ data/autostart/openbox-xdg-autostart nodist_libexec_SCRIPTS = \ data/autostart/openbox-autostart obrender_rendertest_CPPFLAGS = \ $(PANGO_CFLAGS) \ $(GLIB_CFLAGS) \ -DG_LOG_DOMAIN=\"RenderTest\" obrender_rendertest_LDADD = \ obt/libobt.la \ obrender/libobrender.la \ $(GLIB_LIBS) \ $(PANGO_LIBS) \ $(XML_LIBS) \ $(X_LIBS) obrender_rendertest_SOURCES = obrender/test.c obrender_libobrender_la_CPPFLAGS = \ $(X_CFLAGS) \ $(GLIB_CFLAGS) \ $(XML_CFLAGS) \ $(PANGO_CFLAGS) \ $(IMLIB2_CFLAGS) \ $(LIBRSVG_CFLAGS) \ -DG_LOG_DOMAIN=\"ObRender\" \ -DDEFAULT_THEME=\"$(theme)\" obrender_libobrender_la_LDFLAGS = \ -version-info $(RR_CURRENT):$(RR_REVISION):$(RR_AGE) obrender_libobrender_la_LIBADD = \ obt/libobt.la \ $(X_LIBS) \ $(PANGO_LIBS) \ $(GLIB_LIBS) \ $(IMLIB2_LIBS) \ $(LIBRSVG_LIBS) \ $(XML_LIBS) obrender_libobrender_la_SOURCES = \ gettext.h \ obrender/button.c \ obrender/color.h \ obrender/color.c \ obrender/font.h \ obrender/font.c \ obrender/geom.h \ obrender/gradient.h \ obrender/gradient.c \ obrender/icon.h \ obrender/image.h \ obrender/image.c \ obrender/imagecache.h \ obrender/imagecache.c \ obrender/instance.h \ obrender/instance.c \ obrender/mask.h \ obrender/mask.c \ obrender/render.h \ obrender/render.c \ obrender/theme.h \ obrender/theme.c obt_libobt_la_CPPFLAGS = \ $(X_CFLAGS) \ $(XINERAMA_CFLAGS) \ $(XKB_CFLAGS) \ $(XRANDR_CFLAGS) \ $(XSHAPE_CFLAGS) \ $(XSYNC_CFLAGS) \ $(GLIB_CFLAGS) \ $(XML_CFLAGS) \ -DG_LOG_DOMAIN=\"Obt\" \ -DLOCALEDIR=\"$(localedir)\" \ -DDATADIR=\"$(datadir)\" \ -DCONFIGDIR=\"$(configdir)\" obt_libobt_la_LDFLAGS = \ -version-info $(OBT_CURRENT):$(OBT_REVISION):$(OBT_AGE) obt_libobt_la_LIBADD = \ $(X_LIBS) \ $(XINERAMA_LIBS) \ $(XKB_LIBS) \ $(XRANDR_LIBS) \ $(XSHAPE_LIBS) \ $(XSYNC_LIBS) \ $(GLIB_LIBS) \ $(XML_LIBS) obt_libobt_la_SOURCES = \ obt/bsearch.h \ obt/display.h \ obt/display.c \ obt/internal.h \ obt/keyboard.h \ obt/keyboard.c \ obt/xml.h \ obt/xml.c \ obt/ddparse.h \ obt/ddparse.c \ obt/link.h \ obt/link.c \ obt/paths.h \ obt/paths.c \ obt/prop.h \ obt/prop.c \ obt/signal.h \ obt/signal.c \ obt/util.h \ obt/xqueue.h \ obt/xqueue.c openbox_openbox_CPPFLAGS = \ $(SM_CFLAGS) \ $(X_CFLAGS) \ $(XCURSOR_CFLAGS) \ $(SM_CFLAGS) \ $(PANGO_CFLAGS) \ $(GLIB_CFLAGS) \ $(LIBSN_CFLAGS) \ $(XML_CFLAGS) \ -DLOCALEDIR=\"$(localedir)\" \ -DDATADIR=\"$(datadir)\" \ -DCONFIGDIR=\"$(configdir)\" \ -DG_LOG_DOMAIN=\"Openbox\" openbox_openbox_LDADD = \ $(XINERAMA_LIBS) \ $(XRANDR_LIBS) \ $(SM_LIBS) \ $(GLIB_LIBS) \ $(X_LIBS) \ $(XCURSOR_LIBS) \ $(LIBSN_LIBS) \ $(XML_LIBS) \ $(EFENCE_LIBS) \ $(LIBINTL) \ obrender/libobrender.la \ obt/libobt.la openbox_openbox_LDFLAGS = -export-dynamic openbox_openbox_SOURCES = \ gettext.h \ openbox/actions/all.c \ openbox/actions/all.h \ openbox/actions/addremovedesktop.c \ openbox/actions/breakchroot.c \ openbox/actions/close.c \ openbox/actions/cyclewindows.c \ openbox/actions/debug.c \ openbox/actions/decorations.c \ openbox/actions/desktop.c \ openbox/actions/dock.c \ openbox/actions/dockautohide.c \ openbox/actions/directionalwindows.c \ openbox/actions/execute.c \ openbox/actions/exit.c \ openbox/actions/focus.c \ openbox/actions/focustobottom.c \ openbox/actions/fullscreen.c \ openbox/actions/growtoedge.c \ openbox/actions/iconify.c \ openbox/actions/if.c \ openbox/actions/kill.c \ openbox/actions/layer.c \ openbox/actions/lower.c \ openbox/actions/maximize.c \ openbox/actions/move.c \ openbox/actions/moverelative.c \ openbox/actions/moveresizeto.c \ openbox/actions/movetoedge.c \ openbox/actions/omnipresent.c \ openbox/actions/raise.c \ openbox/actions/raiselower.c \ openbox/actions/reconfigure.c \ openbox/actions/resize.c \ openbox/actions/resizerelative.c \ openbox/actions/restart.c \ openbox/actions/shade.c \ openbox/actions/shadelowerraise.c \ openbox/actions/showdesktop.c \ openbox/actions/showmenu.c \ openbox/actions/unfocus.c \ openbox/actions.c \ openbox/actions.h \ openbox/client.c \ openbox/client.h \ openbox/client_list_menu.c \ openbox/client_list_menu.h \ openbox/client_list_combined_menu.c \ openbox/client_list_combined_menu.h \ openbox/client_menu.c \ openbox/client_menu.h \ openbox/config.c \ openbox/config.h \ openbox/debug.c \ openbox/debug.h \ openbox/dock.c \ openbox/dock.h \ openbox/event.c \ openbox/event.h \ openbox/focus.c \ openbox/focus.h \ openbox/focus_cycle.c \ openbox/focus_cycle.h \ openbox/focus_cycle_indicator.c \ openbox/focus_cycle_indicator.h \ openbox/focus_cycle_popup.c \ openbox/focus_cycle_popup.h \ openbox/frame.c \ openbox/frame.h \ openbox/framerender.c \ openbox/framerender.h \ openbox/geom.h \ openbox/grab.c \ openbox/grab.h \ openbox/group.c \ openbox/group.h \ openbox/keyboard.c \ openbox/keyboard.h \ openbox/keytree.c \ openbox/keytree.h \ openbox/menuframe.c \ openbox/menuframe.h \ openbox/menu.c \ openbox/menu.h \ openbox/misc.h \ openbox/mouse.c \ openbox/mouse.h \ openbox/moveresize.c \ openbox/moveresize.h \ openbox/mwm.h \ openbox/openbox.c \ openbox/openbox.h \ openbox/ping.c \ openbox/ping.h \ openbox/place.c \ openbox/place.h \ openbox/place_overlap.c \ openbox/place_overlap.h \ openbox/prompt.c \ openbox/prompt.h \ openbox/popup.c \ openbox/popup.h \ openbox/resist.c \ openbox/resist.h \ openbox/screen.c \ openbox/screen.h \ openbox/session.c \ openbox/session.h \ openbox/stacking.c \ openbox/stacking.h \ openbox/startupnotify.c \ openbox/startupnotify.h \ openbox/translate.c \ openbox/translate.h \ openbox/window.c \ openbox/window.h obt_obt_unittests_CPPFLAGS = \ $(GLIB_CFLAGS) \ -DLOCALEDIR=\"$(localedir)\" \ -DDATADIR=\"$(datadir)\" \ -DCONFIGDIR=\"$(configdir)\" \ -DG_LOG_DOMAIN=\"Obt-Unittests\" obt_obt_unittests_LDADD = \ $(GLIB_LIBS) \ obt/libobt.la obt_obt_unittests_LDFLAGS = -export-dynamic obt_obt_unittests_SOURCES = \ obt/unittest_base.h \ obt/unittest_base.c \ obt/bsearch_unittest.c tools_gnome_panel_control_gnome_panel_control_CPPFLAGS = \ $(X_CFLAGS) tools_gnome_panel_control_gnome_panel_control_LDADD = \ $(X_LIBS) tools_gnome_panel_control_gnome_panel_control_SOURCES = \ tools/gnome-panel-control/gnome-panel-control.c tools_obxprop_obxprop_CPPFLAGS = \ $(GLIB_CFLAGS) \ $(X_CFLAGS) tools_obxprop_obxprop_LDADD = \ $(GLIB_LIBS) \ $(X_LIBS) tools_obxprop_obxprop_SOURCES = \ tools/obxprop/obxprop.c tools_gdm_control_gdm_control_CPPFLAGS = \ $(XAUTH_CFLAGS) \ $(X_CFLAGS) \ $(GLIB_CFLAGS) tools_gdm_control_gdm_control_LDADD = \ $(XAUTH_LIBS) \ $(X_LIBS) \ $(GLIB_LIBS) tools_gdm_control_gdm_control_SOURCES = \ tools/gdm-control/gdm-control.c dist_docxbm_DATA = \ data/xbm/bullet.xbm \ data/xbm/close.xbm \ data/xbm/desk_toggled.xbm \ data/xbm/desk.xbm \ data/xbm/iconify.xbm \ data/xbm/max_toggled.xbm \ data/xbm/max.xbm \ data/xbm/shade_toggled.xbm \ data/xbm/shade.xbm clearlooks_themedir = $(themedir)/Clearlooks/openbox-3 dist_clearlooks_theme_DATA = \ themes/Clearlooks/openbox-3/themerc clearlooks34_themedir = $(themedir)/Clearlooks-3.4/openbox-3 dist_clearlooks34_theme_DATA = \ themes/Clearlooks-3.4/openbox-3/themerc clearlooksolive_themedir = $(themedir)/Clearlooks-Olive/openbox-3 dist_clearlooksolive_theme_DATA = \ themes/Clearlooks-Olive/openbox-3/themerc mikachu_themedir = $(themedir)/Mikachu/openbox-3 dist_mikachu_theme_DATA = \ themes/Mikachu/openbox-3/bullet.xbm \ themes/Mikachu/openbox-3/close.xbm \ themes/Mikachu/openbox-3/desk.xbm \ themes/Mikachu/openbox-3/iconify.xbm \ themes/Mikachu/openbox-3/max.xbm \ themes/Mikachu/openbox-3/themerc natura_themedir = $(themedir)/Natura/openbox-3 dist_natura_theme_DATA = \ themes/Natura/openbox-3/close_hover.xbm \ themes/Natura/openbox-3/close.xbm \ themes/Natura/openbox-3/desk_toggled.xbm \ themes/Natura/openbox-3/desk_hover.xbm \ themes/Natura/openbox-3/desk.xbm \ themes/Natura/openbox-3/iconify_hover.xbm \ themes/Natura/openbox-3/iconify.xbm \ themes/Natura/openbox-3/max_hover.xbm \ themes/Natura/openbox-3/max_toggled.xbm \ themes/Natura/openbox-3/max.xbm \ themes/Natura/openbox-3/shade.xbm \ themes/Natura/openbox-3/shade_hover.xbm \ themes/Natura/openbox-3/themerc artwizboxed_themedir = $(themedir)/Artwiz-boxed/openbox-3 dist_artwizboxed_theme_DATA = \ themes/Artwiz-boxed/openbox-3/themerc bear2_themedir = $(themedir)/Bear2/openbox-3 dist_bear2_theme_DATA = \ themes/Bear2/openbox-3/close_pressed.xbm \ themes/Bear2/openbox-3/close.xbm \ themes/Bear2/openbox-3/desk_toggled.xbm \ themes/Bear2/openbox-3/desk.xbm \ themes/Bear2/openbox-3/iconify_pressed.xbm \ themes/Bear2/openbox-3/iconify.xbm \ themes/Bear2/openbox-3/max_pressed.xbm \ themes/Bear2/openbox-3/max_toggled.xbm \ themes/Bear2/openbox-3/max.xbm \ themes/Bear2/openbox-3/shade_pressed.xbm \ themes/Bear2/openbox-3/shade.xbm \ themes/Bear2/openbox-3/themerc orang_themedir = $(themedir)/Orang/openbox-3 dist_orang_theme_DATA = \ themes/Orang/openbox-3/themerc onyx_themedir = $(themedir)/Onyx/openbox-3 dist_onyx_theme_DATA = \ themes/Onyx/openbox-3/themerc onyxcitrus_themedir = $(themedir)/Onyx-Citrus/openbox-3 dist_onyxcitrus_theme_DATA = \ themes/Onyx-Citrus/openbox-3/themerc syscrash_themedir = $(themedir)/Syscrash/openbox-3 dist_syscrash_theme_DATA = \ themes/Syscrash/openbox-3/max_disabled.xbm \ themes/Syscrash/openbox-3/max_pressed.xbm \ themes/Syscrash/openbox-3/max_toggled.xbm \ themes/Syscrash/openbox-3/max.xbm \ themes/Syscrash/openbox-3/themerc rrpubinclude_HEADERS = \ obrender/color.h \ obrender/font.h \ obrender/geom.h \ obrender/gradient.h \ obrender/image.h \ obrender/instance.h \ obrender/mask.h \ obrender/render.h \ obrender/theme.h \ obrender/version.h obtpubinclude_HEADERS = \ obt/link.h \ obt/display.h \ obt/keyboard.h \ obt/xml.h \ obt/paths.h \ obt/prop.h \ obt/signal.h \ obt/util.h \ obt/version.h \ obt/xqueue.h nodist_pkgconfig_DATA = \ obrender/obrender-3.5.pc \ obt/obt-3.5.pc dist_apps_DATA = \ data/openbox.desktop dist_pixmap_DATA = \ data/openbox.png dist_rc_DATA = \ data/rc.xml \ data/menu.xml edit = $(SED) \ -e 's!@version\@!$(VERSION)!' \ -e 's!@configdir\@!$(configdir)!' \ -e 's!@rcdir\@!$(rcdir)!' \ -e 's!@libexecdir\@!$(libexecdir)!' \ -e 's!@bindir\@!$(bindir)!' dist_gnomewmfiles_DATA = \ data/gnome-wm-properties/openbox.desktop nodist_xsessions_DATA = \ data/xsession/openbox.desktop \ data/xsession/openbox-gnome.desktop \ data/xsession/openbox-kde.desktop dist_gnomesession_DATA = \ data/gnome-session/openbox-gnome.session \ data/gnome-session/openbox-gnome-fallback.session dist_noinst_DATA = \ data/rc.xsd \ data/menu.xsd \ data/autostart/autostart.in \ data/autostart/openbox-autostart.in \ data/xsession/openbox.desktop.in \ data/xsession/openbox-gnome.desktop.in \ data/xsession/openbox-kde.desktop.in \ data/xsession/openbox-session.in \ data/xsession/openbox-gnome-session.in \ data/xsession/openbox-kde-session.in \ doc/openbox.1.sgml \ doc/openbox.1.in \ doc/openbox-session.1.sgml \ doc/openbox-session.1.in \ doc/openbox-gnome-session.1.sgml \ doc/openbox-gnome-session.1.in \ doc/openbox-kde-session.1.sgml \ doc/openbox-kde-session.1.in \ doc/obxprop.1.sgml \ doc/obxprop.1.in \ obrender/version.h.in \ obrender/obrender-3.5.pc.in \ obt/obt-3.5.pc.in \ obt/version.h.in \ tools/themeupdate/themeupdate.py \ tests/hideshow.py \ tests/Makefile \ tests/aspect.c \ tests/fullscreen.c \ tests/grav.c \ tests/grouptran.c \ tests/icons.c \ tests/modal2.c \ tests/modal3.c \ tests/modal.c \ tests/noresize.c \ tests/override.c \ tests/positioned.c \ tests/strut.c \ tests/title.c \ tests/urgent.c dist_doc_DATA = \ COMPLIANCE \ README \ AUTHORS \ CHANGELOG \ COPYING \ data/rc.xsd \ data/menu.xsd \ doc/rc-mouse-focus.xml nodist_man_MANS = \ doc/openbox.1 \ doc/openbox-session.1 \ doc/openbox-gnome-session.1 \ doc/openbox-kde-session.1 \ doc/obxprop.1 EXTRA_DIST = \ config.rpath # make clean doesn't delete these for some reason, even though they are # built by make CLEANFILES = \ $(nodist_man_MANS) \ $(nodist_bin_SCRIPTS) \ $(nodist_xsessions_DATA) \ $(nodist_rc_SCRIPTS) \ $(nodist_libexec_SCRIPTS) all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign 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: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): obrender/obrender-3.5.pc: $(top_builddir)/config.status $(top_srcdir)/obrender/obrender-3.5.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ obt/obt-3.5.pc: $(top_builddir)/config.status $(top_srcdir)/obt/obt-3.5.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ obrender/version.h: $(top_builddir)/config.status $(top_srcdir)/obrender/version.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ obt/version.h: $(top_builddir)/config.status $(top_srcdir)/obt/version.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ version.h: $(top_builddir)/config.status $(srcdir)/version.h.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done obrender/$(am__dirstamp): @$(MKDIR_P) obrender @: > obrender/$(am__dirstamp) obrender/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) obrender/$(DEPDIR) @: > obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-button.lo: obrender/$(am__dirstamp) \ obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-color.lo: obrender/$(am__dirstamp) \ obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-font.lo: obrender/$(am__dirstamp) \ obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-gradient.lo: \ obrender/$(am__dirstamp) obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-image.lo: obrender/$(am__dirstamp) \ obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-imagecache.lo: \ obrender/$(am__dirstamp) obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-instance.lo: \ obrender/$(am__dirstamp) obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-mask.lo: obrender/$(am__dirstamp) \ obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-render.lo: obrender/$(am__dirstamp) \ obrender/$(DEPDIR)/$(am__dirstamp) obrender/obrender_libobrender_la-theme.lo: obrender/$(am__dirstamp) \ obrender/$(DEPDIR)/$(am__dirstamp) obrender/libobrender.la: $(obrender_libobrender_la_OBJECTS) $(obrender_libobrender_la_DEPENDENCIES) $(EXTRA_obrender_libobrender_la_DEPENDENCIES) obrender/$(am__dirstamp) $(AM_V_CCLD)$(obrender_libobrender_la_LINK) -rpath $(libdir) $(obrender_libobrender_la_OBJECTS) $(obrender_libobrender_la_LIBADD) $(LIBS) obt/$(am__dirstamp): @$(MKDIR_P) obt @: > obt/$(am__dirstamp) obt/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) obt/$(DEPDIR) @: > obt/$(DEPDIR)/$(am__dirstamp) obt/obt_libobt_la-display.lo: obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_libobt_la-keyboard.lo: obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_libobt_la-xml.lo: obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_libobt_la-ddparse.lo: obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_libobt_la-link.lo: obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_libobt_la-paths.lo: obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_libobt_la-prop.lo: obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_libobt_la-signal.lo: obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_libobt_la-xqueue.lo: obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/libobt.la: $(obt_libobt_la_OBJECTS) $(obt_libobt_la_DEPENDENCIES) $(EXTRA_obt_libobt_la_DEPENDENCIES) obt/$(am__dirstamp) $(AM_V_CCLD)$(obt_libobt_la_LINK) -rpath $(libdir) $(obt_libobt_la_OBJECTS) $(obt_libobt_la_LIBADD) $(LIBS) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list clean-checkPROGRAMS: @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list obrender/obrender_rendertest-test.$(OBJEXT): obrender/$(am__dirstamp) \ obrender/$(DEPDIR)/$(am__dirstamp) obrender/rendertest$(EXEEXT): $(obrender_rendertest_OBJECTS) $(obrender_rendertest_DEPENDENCIES) $(EXTRA_obrender_rendertest_DEPENDENCIES) obrender/$(am__dirstamp) @rm -f obrender/rendertest$(EXEEXT) $(AM_V_CCLD)$(LINK) $(obrender_rendertest_OBJECTS) $(obrender_rendertest_LDADD) $(LIBS) obt/obt_obt_unittests-unittest_base.$(OBJEXT): obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_obt_unittests-bsearch_unittest.$(OBJEXT): obt/$(am__dirstamp) \ obt/$(DEPDIR)/$(am__dirstamp) obt/obt_unittests$(EXEEXT): $(obt_obt_unittests_OBJECTS) $(obt_obt_unittests_DEPENDENCIES) $(EXTRA_obt_obt_unittests_DEPENDENCIES) obt/$(am__dirstamp) @rm -f obt/obt_unittests$(EXEEXT) $(AM_V_CCLD)$(obt_obt_unittests_LINK) $(obt_obt_unittests_OBJECTS) $(obt_obt_unittests_LDADD) $(LIBS) openbox/actions/$(am__dirstamp): @$(MKDIR_P) openbox/actions @: > openbox/actions/$(am__dirstamp) openbox/actions/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) openbox/actions/$(DEPDIR) @: > openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-all.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-addremovedesktop.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-breakchroot.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-close.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-cyclewindows.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-debug.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-decorations.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-desktop.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-dock.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-dockautohide.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-directionalwindows.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-execute.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-exit.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-focus.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-focustobottom.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-fullscreen.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-growtoedge.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-iconify.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-if.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-kill.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-layer.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-lower.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-maximize.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-move.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-moverelative.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-moveresizeto.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-movetoedge.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-omnipresent.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-raise.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-raiselower.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-reconfigure.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-resize.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-resizerelative.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-restart.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-shade.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-shadelowerraise.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-showdesktop.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-showmenu.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/actions/openbox_openbox-unfocus.$(OBJEXT): \ openbox/actions/$(am__dirstamp) \ openbox/actions/$(DEPDIR)/$(am__dirstamp) openbox/$(am__dirstamp): @$(MKDIR_P) openbox @: > openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) openbox/$(DEPDIR) @: > openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-actions.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-client.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-client_list_menu.$(OBJEXT): \ openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-client_list_combined_menu.$(OBJEXT): \ openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-client_menu.$(OBJEXT): \ openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-config.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-debug.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-dock.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-event.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-focus.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-focus_cycle.$(OBJEXT): \ openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-focus_cycle_indicator.$(OBJEXT): \ openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-focus_cycle_popup.$(OBJEXT): \ openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-frame.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-framerender.$(OBJEXT): \ openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-grab.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-group.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-keyboard.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-keytree.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-menuframe.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-menu.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-mouse.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-moveresize.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-openbox.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-ping.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-place.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-place_overlap.$(OBJEXT): \ openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-prompt.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-popup.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-resist.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-screen.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-session.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-stacking.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-startupnotify.$(OBJEXT): \ openbox/$(am__dirstamp) openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-translate.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox_openbox-window.$(OBJEXT): openbox/$(am__dirstamp) \ openbox/$(DEPDIR)/$(am__dirstamp) openbox/openbox$(EXEEXT): $(openbox_openbox_OBJECTS) $(openbox_openbox_DEPENDENCIES) $(EXTRA_openbox_openbox_DEPENDENCIES) openbox/$(am__dirstamp) @rm -f openbox/openbox$(EXEEXT) $(AM_V_CCLD)$(openbox_openbox_LINK) $(openbox_openbox_OBJECTS) $(openbox_openbox_LDADD) $(LIBS) tools/gdm-control/$(am__dirstamp): @$(MKDIR_P) tools/gdm-control @: > tools/gdm-control/$(am__dirstamp) tools/gdm-control/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) tools/gdm-control/$(DEPDIR) @: > tools/gdm-control/$(DEPDIR)/$(am__dirstamp) tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.$(OBJEXT): \ tools/gdm-control/$(am__dirstamp) \ tools/gdm-control/$(DEPDIR)/$(am__dirstamp) tools/gdm-control/gdm-control$(EXEEXT): $(tools_gdm_control_gdm_control_OBJECTS) $(tools_gdm_control_gdm_control_DEPENDENCIES) $(EXTRA_tools_gdm_control_gdm_control_DEPENDENCIES) tools/gdm-control/$(am__dirstamp) @rm -f tools/gdm-control/gdm-control$(EXEEXT) $(AM_V_CCLD)$(LINK) $(tools_gdm_control_gdm_control_OBJECTS) $(tools_gdm_control_gdm_control_LDADD) $(LIBS) tools/gnome-panel-control/$(am__dirstamp): @$(MKDIR_P) tools/gnome-panel-control @: > tools/gnome-panel-control/$(am__dirstamp) tools/gnome-panel-control/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) tools/gnome-panel-control/$(DEPDIR) @: > tools/gnome-panel-control/$(DEPDIR)/$(am__dirstamp) tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.$(OBJEXT): \ tools/gnome-panel-control/$(am__dirstamp) \ tools/gnome-panel-control/$(DEPDIR)/$(am__dirstamp) tools/gnome-panel-control/gnome-panel-control$(EXEEXT): $(tools_gnome_panel_control_gnome_panel_control_OBJECTS) $(tools_gnome_panel_control_gnome_panel_control_DEPENDENCIES) $(EXTRA_tools_gnome_panel_control_gnome_panel_control_DEPENDENCIES) tools/gnome-panel-control/$(am__dirstamp) @rm -f tools/gnome-panel-control/gnome-panel-control$(EXEEXT) $(AM_V_CCLD)$(LINK) $(tools_gnome_panel_control_gnome_panel_control_OBJECTS) $(tools_gnome_panel_control_gnome_panel_control_LDADD) $(LIBS) tools/obxprop/$(am__dirstamp): @$(MKDIR_P) tools/obxprop @: > tools/obxprop/$(am__dirstamp) tools/obxprop/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) tools/obxprop/$(DEPDIR) @: > tools/obxprop/$(DEPDIR)/$(am__dirstamp) tools/obxprop/tools_obxprop_obxprop-obxprop.$(OBJEXT): \ tools/obxprop/$(am__dirstamp) \ tools/obxprop/$(DEPDIR)/$(am__dirstamp) tools/obxprop/obxprop$(EXEEXT): $(tools_obxprop_obxprop_OBJECTS) $(tools_obxprop_obxprop_DEPENDENCIES) $(EXTRA_tools_obxprop_obxprop_DEPENDENCIES) tools/obxprop/$(am__dirstamp) @rm -f tools/obxprop/obxprop$(EXEEXT) $(AM_V_CCLD)$(LINK) $(tools_obxprop_obxprop_OBJECTS) $(tools_obxprop_obxprop_LDADD) $(LIBS) install-dist_libexecSCRIPTS: $(dist_libexec_SCRIPTS) @$(NORMAL_INSTALL) @list='$(dist_libexec_SCRIPTS)'; test -n "$(libexecdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \ } \ ; done uninstall-dist_libexecSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(dist_libexec_SCRIPTS)'; test -n "$(libexecdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(libexecdir)'; $(am__uninstall_files_from_dir) install-dist_rcSCRIPTS: $(dist_rc_SCRIPTS) @$(NORMAL_INSTALL) @list='$(dist_rc_SCRIPTS)'; test -n "$(rcdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(rcdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(rcdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(rcdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(rcdir)$$dir" || exit $$?; \ } \ ; done uninstall-dist_rcSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(dist_rc_SCRIPTS)'; test -n "$(rcdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(rcdir)'; $(am__uninstall_files_from_dir) install-nodist_binSCRIPTS: $(nodist_bin_SCRIPTS) @$(NORMAL_INSTALL) @list='$(nodist_bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-nodist_binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(nodist_bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) install-nodist_libexecSCRIPTS: $(nodist_libexec_SCRIPTS) @$(NORMAL_INSTALL) @list='$(nodist_libexec_SCRIPTS)'; test -n "$(libexecdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(libexecdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(libexecdir)$$dir" || exit $$?; \ } \ ; done uninstall-nodist_libexecSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(nodist_libexec_SCRIPTS)'; test -n "$(libexecdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(libexecdir)'; $(am__uninstall_files_from_dir) install-nodist_rcSCRIPTS: $(nodist_rc_SCRIPTS) @$(NORMAL_INSTALL) @list='$(nodist_rc_SCRIPTS)'; test -n "$(rcdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(rcdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(rcdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n' \ -e 'h;s|.*|.|' \ -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) { files[d] = files[d] " " $$1; \ if (++n[d] == $(am__install_max)) { \ print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ else { print "f", d "/" $$4, $$1 } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(rcdir)$$dir'"; \ $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(rcdir)$$dir" || exit $$?; \ } \ ; done uninstall-nodist_rcSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(nodist_rc_SCRIPTS)'; test -n "$(rcdir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ dir='$(DESTDIR)$(rcdir)'; $(am__uninstall_files_from_dir) mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-button.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-button.lo -rm -f obrender/obrender_libobrender_la-color.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-color.lo -rm -f obrender/obrender_libobrender_la-font.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-font.lo -rm -f obrender/obrender_libobrender_la-gradient.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-gradient.lo -rm -f obrender/obrender_libobrender_la-image.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-image.lo -rm -f obrender/obrender_libobrender_la-imagecache.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-imagecache.lo -rm -f obrender/obrender_libobrender_la-instance.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-instance.lo -rm -f obrender/obrender_libobrender_la-mask.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-mask.lo -rm -f obrender/obrender_libobrender_la-render.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-render.lo -rm -f obrender/obrender_libobrender_la-theme.$(OBJEXT) -rm -f obrender/obrender_libobrender_la-theme.lo -rm -f obrender/obrender_rendertest-test.$(OBJEXT) -rm -f obt/obt_libobt_la-ddparse.$(OBJEXT) -rm -f obt/obt_libobt_la-ddparse.lo -rm -f obt/obt_libobt_la-display.$(OBJEXT) -rm -f obt/obt_libobt_la-display.lo -rm -f obt/obt_libobt_la-keyboard.$(OBJEXT) -rm -f obt/obt_libobt_la-keyboard.lo -rm -f obt/obt_libobt_la-link.$(OBJEXT) -rm -f obt/obt_libobt_la-link.lo -rm -f obt/obt_libobt_la-paths.$(OBJEXT) -rm -f obt/obt_libobt_la-paths.lo -rm -f obt/obt_libobt_la-prop.$(OBJEXT) -rm -f obt/obt_libobt_la-prop.lo -rm -f obt/obt_libobt_la-signal.$(OBJEXT) -rm -f obt/obt_libobt_la-signal.lo -rm -f obt/obt_libobt_la-xml.$(OBJEXT) -rm -f obt/obt_libobt_la-xml.lo -rm -f obt/obt_libobt_la-xqueue.$(OBJEXT) -rm -f obt/obt_libobt_la-xqueue.lo -rm -f obt/obt_obt_unittests-bsearch_unittest.$(OBJEXT) -rm -f obt/obt_obt_unittests-unittest_base.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-addremovedesktop.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-all.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-breakchroot.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-close.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-cyclewindows.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-debug.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-decorations.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-desktop.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-directionalwindows.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-dock.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-dockautohide.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-execute.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-exit.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-focus.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-focustobottom.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-fullscreen.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-growtoedge.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-iconify.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-if.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-kill.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-layer.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-lower.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-maximize.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-move.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-moverelative.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-moveresizeto.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-movetoedge.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-omnipresent.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-raise.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-raiselower.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-reconfigure.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-resize.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-resizerelative.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-restart.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-shade.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-shadelowerraise.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-showdesktop.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-showmenu.$(OBJEXT) -rm -f openbox/actions/openbox_openbox-unfocus.$(OBJEXT) -rm -f openbox/openbox_openbox-actions.$(OBJEXT) -rm -f openbox/openbox_openbox-client.$(OBJEXT) -rm -f openbox/openbox_openbox-client_list_combined_menu.$(OBJEXT) -rm -f openbox/openbox_openbox-client_list_menu.$(OBJEXT) -rm -f openbox/openbox_openbox-client_menu.$(OBJEXT) -rm -f openbox/openbox_openbox-config.$(OBJEXT) -rm -f openbox/openbox_openbox-debug.$(OBJEXT) -rm -f openbox/openbox_openbox-dock.$(OBJEXT) -rm -f openbox/openbox_openbox-event.$(OBJEXT) -rm -f openbox/openbox_openbox-focus.$(OBJEXT) -rm -f openbox/openbox_openbox-focus_cycle.$(OBJEXT) -rm -f openbox/openbox_openbox-focus_cycle_indicator.$(OBJEXT) -rm -f openbox/openbox_openbox-focus_cycle_popup.$(OBJEXT) -rm -f openbox/openbox_openbox-frame.$(OBJEXT) -rm -f openbox/openbox_openbox-framerender.$(OBJEXT) -rm -f openbox/openbox_openbox-grab.$(OBJEXT) -rm -f openbox/openbox_openbox-group.$(OBJEXT) -rm -f openbox/openbox_openbox-keyboard.$(OBJEXT) -rm -f openbox/openbox_openbox-keytree.$(OBJEXT) -rm -f openbox/openbox_openbox-menu.$(OBJEXT) -rm -f openbox/openbox_openbox-menuframe.$(OBJEXT) -rm -f openbox/openbox_openbox-mouse.$(OBJEXT) -rm -f openbox/openbox_openbox-moveresize.$(OBJEXT) -rm -f openbox/openbox_openbox-openbox.$(OBJEXT) -rm -f openbox/openbox_openbox-ping.$(OBJEXT) -rm -f openbox/openbox_openbox-place.$(OBJEXT) -rm -f openbox/openbox_openbox-place_overlap.$(OBJEXT) -rm -f openbox/openbox_openbox-popup.$(OBJEXT) -rm -f openbox/openbox_openbox-prompt.$(OBJEXT) -rm -f openbox/openbox_openbox-resist.$(OBJEXT) -rm -f openbox/openbox_openbox-screen.$(OBJEXT) -rm -f openbox/openbox_openbox-session.$(OBJEXT) -rm -f openbox/openbox_openbox-stacking.$(OBJEXT) -rm -f openbox/openbox_openbox-startupnotify.$(OBJEXT) -rm -f openbox/openbox_openbox-translate.$(OBJEXT) -rm -f openbox/openbox_openbox-window.$(OBJEXT) -rm -f tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.$(OBJEXT) -rm -f tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.$(OBJEXT) -rm -f tools/obxprop/tools_obxprop_obxprop-obxprop.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-button.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-color.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-font.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-gradient.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-image.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-imagecache.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-instance.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-mask.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-render.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_libobrender_la-theme.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obrender/$(DEPDIR)/obrender_rendertest-test.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_libobt_la-ddparse.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_libobt_la-display.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_libobt_la-keyboard.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_libobt_la-link.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_libobt_la-paths.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_libobt_la-prop.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_libobt_la-signal.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_libobt_la-xml.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_libobt_la-xqueue.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_obt_unittests-bsearch_unittest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@obt/$(DEPDIR)/obt_obt_unittests-unittest_base.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-actions.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-client.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-client_list_combined_menu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-client_list_menu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-client_menu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-config.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-debug.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-dock.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-event.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-focus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-focus_cycle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-focus_cycle_indicator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-focus_cycle_popup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-frame.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-framerender.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-grab.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-group.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-keyboard.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-keytree.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-menu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-menuframe.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-mouse.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-moveresize.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-openbox.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-ping.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-place.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-place_overlap.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-popup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-prompt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-resist.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-screen.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-session.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-stacking.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-startupnotify.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-translate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/$(DEPDIR)/openbox_openbox-window.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-addremovedesktop.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-all.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-breakchroot.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-close.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-cyclewindows.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-debug.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-decorations.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-desktop.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-directionalwindows.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-dock.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-dockautohide.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-execute.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-exit.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-focus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-focustobottom.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-fullscreen.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-growtoedge.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-iconify.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-if.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-kill.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-layer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-lower.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-maximize.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-move.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-moverelative.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-moveresizeto.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-movetoedge.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-omnipresent.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-raise.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-raiselower.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-reconfigure.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-resize.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-resizerelative.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-restart.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-shade.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-shadelowerraise.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-showdesktop.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-showmenu.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@openbox/actions/$(DEPDIR)/openbox_openbox-unfocus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@tools/gdm-control/$(DEPDIR)/tools_gdm_control_gdm_control-gdm-control.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@tools/gnome-panel-control/$(DEPDIR)/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@tools/obxprop/$(DEPDIR)/tools_obxprop_obxprop-obxprop.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< obrender/obrender_libobrender_la-button.lo: obrender/button.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-button.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-button.Tpo -c -o obrender/obrender_libobrender_la-button.lo `test -f 'obrender/button.c' || echo '$(srcdir)/'`obrender/button.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-button.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-button.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/button.c' object='obrender/obrender_libobrender_la-button.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-button.lo `test -f 'obrender/button.c' || echo '$(srcdir)/'`obrender/button.c obrender/obrender_libobrender_la-color.lo: obrender/color.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-color.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-color.Tpo -c -o obrender/obrender_libobrender_la-color.lo `test -f 'obrender/color.c' || echo '$(srcdir)/'`obrender/color.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-color.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-color.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/color.c' object='obrender/obrender_libobrender_la-color.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-color.lo `test -f 'obrender/color.c' || echo '$(srcdir)/'`obrender/color.c obrender/obrender_libobrender_la-font.lo: obrender/font.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-font.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-font.Tpo -c -o obrender/obrender_libobrender_la-font.lo `test -f 'obrender/font.c' || echo '$(srcdir)/'`obrender/font.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-font.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-font.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/font.c' object='obrender/obrender_libobrender_la-font.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-font.lo `test -f 'obrender/font.c' || echo '$(srcdir)/'`obrender/font.c obrender/obrender_libobrender_la-gradient.lo: obrender/gradient.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-gradient.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-gradient.Tpo -c -o obrender/obrender_libobrender_la-gradient.lo `test -f 'obrender/gradient.c' || echo '$(srcdir)/'`obrender/gradient.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-gradient.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-gradient.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/gradient.c' object='obrender/obrender_libobrender_la-gradient.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-gradient.lo `test -f 'obrender/gradient.c' || echo '$(srcdir)/'`obrender/gradient.c obrender/obrender_libobrender_la-image.lo: obrender/image.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-image.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-image.Tpo -c -o obrender/obrender_libobrender_la-image.lo `test -f 'obrender/image.c' || echo '$(srcdir)/'`obrender/image.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-image.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-image.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/image.c' object='obrender/obrender_libobrender_la-image.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-image.lo `test -f 'obrender/image.c' || echo '$(srcdir)/'`obrender/image.c obrender/obrender_libobrender_la-imagecache.lo: obrender/imagecache.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-imagecache.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-imagecache.Tpo -c -o obrender/obrender_libobrender_la-imagecache.lo `test -f 'obrender/imagecache.c' || echo '$(srcdir)/'`obrender/imagecache.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-imagecache.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-imagecache.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/imagecache.c' object='obrender/obrender_libobrender_la-imagecache.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-imagecache.lo `test -f 'obrender/imagecache.c' || echo '$(srcdir)/'`obrender/imagecache.c obrender/obrender_libobrender_la-instance.lo: obrender/instance.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-instance.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-instance.Tpo -c -o obrender/obrender_libobrender_la-instance.lo `test -f 'obrender/instance.c' || echo '$(srcdir)/'`obrender/instance.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-instance.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-instance.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/instance.c' object='obrender/obrender_libobrender_la-instance.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-instance.lo `test -f 'obrender/instance.c' || echo '$(srcdir)/'`obrender/instance.c obrender/obrender_libobrender_la-mask.lo: obrender/mask.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-mask.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-mask.Tpo -c -o obrender/obrender_libobrender_la-mask.lo `test -f 'obrender/mask.c' || echo '$(srcdir)/'`obrender/mask.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-mask.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-mask.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/mask.c' object='obrender/obrender_libobrender_la-mask.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-mask.lo `test -f 'obrender/mask.c' || echo '$(srcdir)/'`obrender/mask.c obrender/obrender_libobrender_la-render.lo: obrender/render.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-render.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-render.Tpo -c -o obrender/obrender_libobrender_la-render.lo `test -f 'obrender/render.c' || echo '$(srcdir)/'`obrender/render.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-render.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-render.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/render.c' object='obrender/obrender_libobrender_la-render.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-render.lo `test -f 'obrender/render.c' || echo '$(srcdir)/'`obrender/render.c obrender/obrender_libobrender_la-theme.lo: obrender/theme.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_libobrender_la-theme.lo -MD -MP -MF obrender/$(DEPDIR)/obrender_libobrender_la-theme.Tpo -c -o obrender/obrender_libobrender_la-theme.lo `test -f 'obrender/theme.c' || echo '$(srcdir)/'`obrender/theme.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_libobrender_la-theme.Tpo obrender/$(DEPDIR)/obrender_libobrender_la-theme.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/theme.c' object='obrender/obrender_libobrender_la-theme.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_libobrender_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_libobrender_la-theme.lo `test -f 'obrender/theme.c' || echo '$(srcdir)/'`obrender/theme.c obt/obt_libobt_la-display.lo: obt/display.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_libobt_la-display.lo -MD -MP -MF obt/$(DEPDIR)/obt_libobt_la-display.Tpo -c -o obt/obt_libobt_la-display.lo `test -f 'obt/display.c' || echo '$(srcdir)/'`obt/display.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_libobt_la-display.Tpo obt/$(DEPDIR)/obt_libobt_la-display.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/display.c' object='obt/obt_libobt_la-display.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_libobt_la-display.lo `test -f 'obt/display.c' || echo '$(srcdir)/'`obt/display.c obt/obt_libobt_la-keyboard.lo: obt/keyboard.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_libobt_la-keyboard.lo -MD -MP -MF obt/$(DEPDIR)/obt_libobt_la-keyboard.Tpo -c -o obt/obt_libobt_la-keyboard.lo `test -f 'obt/keyboard.c' || echo '$(srcdir)/'`obt/keyboard.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_libobt_la-keyboard.Tpo obt/$(DEPDIR)/obt_libobt_la-keyboard.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/keyboard.c' object='obt/obt_libobt_la-keyboard.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_libobt_la-keyboard.lo `test -f 'obt/keyboard.c' || echo '$(srcdir)/'`obt/keyboard.c obt/obt_libobt_la-xml.lo: obt/xml.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_libobt_la-xml.lo -MD -MP -MF obt/$(DEPDIR)/obt_libobt_la-xml.Tpo -c -o obt/obt_libobt_la-xml.lo `test -f 'obt/xml.c' || echo '$(srcdir)/'`obt/xml.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_libobt_la-xml.Tpo obt/$(DEPDIR)/obt_libobt_la-xml.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/xml.c' object='obt/obt_libobt_la-xml.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_libobt_la-xml.lo `test -f 'obt/xml.c' || echo '$(srcdir)/'`obt/xml.c obt/obt_libobt_la-ddparse.lo: obt/ddparse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_libobt_la-ddparse.lo -MD -MP -MF obt/$(DEPDIR)/obt_libobt_la-ddparse.Tpo -c -o obt/obt_libobt_la-ddparse.lo `test -f 'obt/ddparse.c' || echo '$(srcdir)/'`obt/ddparse.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_libobt_la-ddparse.Tpo obt/$(DEPDIR)/obt_libobt_la-ddparse.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/ddparse.c' object='obt/obt_libobt_la-ddparse.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_libobt_la-ddparse.lo `test -f 'obt/ddparse.c' || echo '$(srcdir)/'`obt/ddparse.c obt/obt_libobt_la-link.lo: obt/link.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_libobt_la-link.lo -MD -MP -MF obt/$(DEPDIR)/obt_libobt_la-link.Tpo -c -o obt/obt_libobt_la-link.lo `test -f 'obt/link.c' || echo '$(srcdir)/'`obt/link.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_libobt_la-link.Tpo obt/$(DEPDIR)/obt_libobt_la-link.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/link.c' object='obt/obt_libobt_la-link.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_libobt_la-link.lo `test -f 'obt/link.c' || echo '$(srcdir)/'`obt/link.c obt/obt_libobt_la-paths.lo: obt/paths.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_libobt_la-paths.lo -MD -MP -MF obt/$(DEPDIR)/obt_libobt_la-paths.Tpo -c -o obt/obt_libobt_la-paths.lo `test -f 'obt/paths.c' || echo '$(srcdir)/'`obt/paths.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_libobt_la-paths.Tpo obt/$(DEPDIR)/obt_libobt_la-paths.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/paths.c' object='obt/obt_libobt_la-paths.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_libobt_la-paths.lo `test -f 'obt/paths.c' || echo '$(srcdir)/'`obt/paths.c obt/obt_libobt_la-prop.lo: obt/prop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_libobt_la-prop.lo -MD -MP -MF obt/$(DEPDIR)/obt_libobt_la-prop.Tpo -c -o obt/obt_libobt_la-prop.lo `test -f 'obt/prop.c' || echo '$(srcdir)/'`obt/prop.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_libobt_la-prop.Tpo obt/$(DEPDIR)/obt_libobt_la-prop.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/prop.c' object='obt/obt_libobt_la-prop.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_libobt_la-prop.lo `test -f 'obt/prop.c' || echo '$(srcdir)/'`obt/prop.c obt/obt_libobt_la-signal.lo: obt/signal.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_libobt_la-signal.lo -MD -MP -MF obt/$(DEPDIR)/obt_libobt_la-signal.Tpo -c -o obt/obt_libobt_la-signal.lo `test -f 'obt/signal.c' || echo '$(srcdir)/'`obt/signal.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_libobt_la-signal.Tpo obt/$(DEPDIR)/obt_libobt_la-signal.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/signal.c' object='obt/obt_libobt_la-signal.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_libobt_la-signal.lo `test -f 'obt/signal.c' || echo '$(srcdir)/'`obt/signal.c obt/obt_libobt_la-xqueue.lo: obt/xqueue.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_libobt_la-xqueue.lo -MD -MP -MF obt/$(DEPDIR)/obt_libobt_la-xqueue.Tpo -c -o obt/obt_libobt_la-xqueue.lo `test -f 'obt/xqueue.c' || echo '$(srcdir)/'`obt/xqueue.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_libobt_la-xqueue.Tpo obt/$(DEPDIR)/obt_libobt_la-xqueue.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/xqueue.c' object='obt/obt_libobt_la-xqueue.lo' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_libobt_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_libobt_la-xqueue.lo `test -f 'obt/xqueue.c' || echo '$(srcdir)/'`obt/xqueue.c obrender/obrender_rendertest-test.o: obrender/test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_rendertest_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_rendertest-test.o -MD -MP -MF obrender/$(DEPDIR)/obrender_rendertest-test.Tpo -c -o obrender/obrender_rendertest-test.o `test -f 'obrender/test.c' || echo '$(srcdir)/'`obrender/test.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_rendertest-test.Tpo obrender/$(DEPDIR)/obrender_rendertest-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/test.c' object='obrender/obrender_rendertest-test.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_rendertest_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_rendertest-test.o `test -f 'obrender/test.c' || echo '$(srcdir)/'`obrender/test.c obrender/obrender_rendertest-test.obj: obrender/test.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_rendertest_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obrender/obrender_rendertest-test.obj -MD -MP -MF obrender/$(DEPDIR)/obrender_rendertest-test.Tpo -c -o obrender/obrender_rendertest-test.obj `if test -f 'obrender/test.c'; then $(CYGPATH_W) 'obrender/test.c'; else $(CYGPATH_W) '$(srcdir)/obrender/test.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obrender/$(DEPDIR)/obrender_rendertest-test.Tpo obrender/$(DEPDIR)/obrender_rendertest-test.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obrender/test.c' object='obrender/obrender_rendertest-test.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obrender_rendertest_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obrender/obrender_rendertest-test.obj `if test -f 'obrender/test.c'; then $(CYGPATH_W) 'obrender/test.c'; else $(CYGPATH_W) '$(srcdir)/obrender/test.c'; fi` obt/obt_obt_unittests-unittest_base.o: obt/unittest_base.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_obt_unittests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_obt_unittests-unittest_base.o -MD -MP -MF obt/$(DEPDIR)/obt_obt_unittests-unittest_base.Tpo -c -o obt/obt_obt_unittests-unittest_base.o `test -f 'obt/unittest_base.c' || echo '$(srcdir)/'`obt/unittest_base.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_obt_unittests-unittest_base.Tpo obt/$(DEPDIR)/obt_obt_unittests-unittest_base.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/unittest_base.c' object='obt/obt_obt_unittests-unittest_base.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_obt_unittests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_obt_unittests-unittest_base.o `test -f 'obt/unittest_base.c' || echo '$(srcdir)/'`obt/unittest_base.c obt/obt_obt_unittests-unittest_base.obj: obt/unittest_base.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_obt_unittests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_obt_unittests-unittest_base.obj -MD -MP -MF obt/$(DEPDIR)/obt_obt_unittests-unittest_base.Tpo -c -o obt/obt_obt_unittests-unittest_base.obj `if test -f 'obt/unittest_base.c'; then $(CYGPATH_W) 'obt/unittest_base.c'; else $(CYGPATH_W) '$(srcdir)/obt/unittest_base.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_obt_unittests-unittest_base.Tpo obt/$(DEPDIR)/obt_obt_unittests-unittest_base.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/unittest_base.c' object='obt/obt_obt_unittests-unittest_base.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_obt_unittests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_obt_unittests-unittest_base.obj `if test -f 'obt/unittest_base.c'; then $(CYGPATH_W) 'obt/unittest_base.c'; else $(CYGPATH_W) '$(srcdir)/obt/unittest_base.c'; fi` obt/obt_obt_unittests-bsearch_unittest.o: obt/bsearch_unittest.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_obt_unittests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_obt_unittests-bsearch_unittest.o -MD -MP -MF obt/$(DEPDIR)/obt_obt_unittests-bsearch_unittest.Tpo -c -o obt/obt_obt_unittests-bsearch_unittest.o `test -f 'obt/bsearch_unittest.c' || echo '$(srcdir)/'`obt/bsearch_unittest.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_obt_unittests-bsearch_unittest.Tpo obt/$(DEPDIR)/obt_obt_unittests-bsearch_unittest.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/bsearch_unittest.c' object='obt/obt_obt_unittests-bsearch_unittest.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_obt_unittests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_obt_unittests-bsearch_unittest.o `test -f 'obt/bsearch_unittest.c' || echo '$(srcdir)/'`obt/bsearch_unittest.c obt/obt_obt_unittests-bsearch_unittest.obj: obt/bsearch_unittest.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_obt_unittests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT obt/obt_obt_unittests-bsearch_unittest.obj -MD -MP -MF obt/$(DEPDIR)/obt_obt_unittests-bsearch_unittest.Tpo -c -o obt/obt_obt_unittests-bsearch_unittest.obj `if test -f 'obt/bsearch_unittest.c'; then $(CYGPATH_W) 'obt/bsearch_unittest.c'; else $(CYGPATH_W) '$(srcdir)/obt/bsearch_unittest.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obt/$(DEPDIR)/obt_obt_unittests-bsearch_unittest.Tpo obt/$(DEPDIR)/obt_obt_unittests-bsearch_unittest.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obt/bsearch_unittest.c' object='obt/obt_obt_unittests-bsearch_unittest.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obt_obt_unittests_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o obt/obt_obt_unittests-bsearch_unittest.obj `if test -f 'obt/bsearch_unittest.c'; then $(CYGPATH_W) 'obt/bsearch_unittest.c'; else $(CYGPATH_W) '$(srcdir)/obt/bsearch_unittest.c'; fi` openbox/actions/openbox_openbox-all.o: openbox/actions/all.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-all.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-all.Tpo -c -o openbox/actions/openbox_openbox-all.o `test -f 'openbox/actions/all.c' || echo '$(srcdir)/'`openbox/actions/all.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-all.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-all.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/all.c' object='openbox/actions/openbox_openbox-all.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-all.o `test -f 'openbox/actions/all.c' || echo '$(srcdir)/'`openbox/actions/all.c openbox/actions/openbox_openbox-all.obj: openbox/actions/all.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-all.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-all.Tpo -c -o openbox/actions/openbox_openbox-all.obj `if test -f 'openbox/actions/all.c'; then $(CYGPATH_W) 'openbox/actions/all.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/all.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-all.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-all.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/all.c' object='openbox/actions/openbox_openbox-all.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-all.obj `if test -f 'openbox/actions/all.c'; then $(CYGPATH_W) 'openbox/actions/all.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/all.c'; fi` openbox/actions/openbox_openbox-addremovedesktop.o: openbox/actions/addremovedesktop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-addremovedesktop.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-addremovedesktop.Tpo -c -o openbox/actions/openbox_openbox-addremovedesktop.o `test -f 'openbox/actions/addremovedesktop.c' || echo '$(srcdir)/'`openbox/actions/addremovedesktop.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-addremovedesktop.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-addremovedesktop.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/addremovedesktop.c' object='openbox/actions/openbox_openbox-addremovedesktop.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-addremovedesktop.o `test -f 'openbox/actions/addremovedesktop.c' || echo '$(srcdir)/'`openbox/actions/addremovedesktop.c openbox/actions/openbox_openbox-addremovedesktop.obj: openbox/actions/addremovedesktop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-addremovedesktop.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-addremovedesktop.Tpo -c -o openbox/actions/openbox_openbox-addremovedesktop.obj `if test -f 'openbox/actions/addremovedesktop.c'; then $(CYGPATH_W) 'openbox/actions/addremovedesktop.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/addremovedesktop.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-addremovedesktop.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-addremovedesktop.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/addremovedesktop.c' object='openbox/actions/openbox_openbox-addremovedesktop.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-addremovedesktop.obj `if test -f 'openbox/actions/addremovedesktop.c'; then $(CYGPATH_W) 'openbox/actions/addremovedesktop.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/addremovedesktop.c'; fi` openbox/actions/openbox_openbox-breakchroot.o: openbox/actions/breakchroot.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-breakchroot.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-breakchroot.Tpo -c -o openbox/actions/openbox_openbox-breakchroot.o `test -f 'openbox/actions/breakchroot.c' || echo '$(srcdir)/'`openbox/actions/breakchroot.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-breakchroot.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-breakchroot.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/breakchroot.c' object='openbox/actions/openbox_openbox-breakchroot.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-breakchroot.o `test -f 'openbox/actions/breakchroot.c' || echo '$(srcdir)/'`openbox/actions/breakchroot.c openbox/actions/openbox_openbox-breakchroot.obj: openbox/actions/breakchroot.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-breakchroot.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-breakchroot.Tpo -c -o openbox/actions/openbox_openbox-breakchroot.obj `if test -f 'openbox/actions/breakchroot.c'; then $(CYGPATH_W) 'openbox/actions/breakchroot.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/breakchroot.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-breakchroot.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-breakchroot.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/breakchroot.c' object='openbox/actions/openbox_openbox-breakchroot.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-breakchroot.obj `if test -f 'openbox/actions/breakchroot.c'; then $(CYGPATH_W) 'openbox/actions/breakchroot.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/breakchroot.c'; fi` openbox/actions/openbox_openbox-close.o: openbox/actions/close.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-close.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-close.Tpo -c -o openbox/actions/openbox_openbox-close.o `test -f 'openbox/actions/close.c' || echo '$(srcdir)/'`openbox/actions/close.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-close.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-close.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/close.c' object='openbox/actions/openbox_openbox-close.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-close.o `test -f 'openbox/actions/close.c' || echo '$(srcdir)/'`openbox/actions/close.c openbox/actions/openbox_openbox-close.obj: openbox/actions/close.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-close.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-close.Tpo -c -o openbox/actions/openbox_openbox-close.obj `if test -f 'openbox/actions/close.c'; then $(CYGPATH_W) 'openbox/actions/close.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/close.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-close.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-close.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/close.c' object='openbox/actions/openbox_openbox-close.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-close.obj `if test -f 'openbox/actions/close.c'; then $(CYGPATH_W) 'openbox/actions/close.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/close.c'; fi` openbox/actions/openbox_openbox-cyclewindows.o: openbox/actions/cyclewindows.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-cyclewindows.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-cyclewindows.Tpo -c -o openbox/actions/openbox_openbox-cyclewindows.o `test -f 'openbox/actions/cyclewindows.c' || echo '$(srcdir)/'`openbox/actions/cyclewindows.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-cyclewindows.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-cyclewindows.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/cyclewindows.c' object='openbox/actions/openbox_openbox-cyclewindows.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-cyclewindows.o `test -f 'openbox/actions/cyclewindows.c' || echo '$(srcdir)/'`openbox/actions/cyclewindows.c openbox/actions/openbox_openbox-cyclewindows.obj: openbox/actions/cyclewindows.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-cyclewindows.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-cyclewindows.Tpo -c -o openbox/actions/openbox_openbox-cyclewindows.obj `if test -f 'openbox/actions/cyclewindows.c'; then $(CYGPATH_W) 'openbox/actions/cyclewindows.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/cyclewindows.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-cyclewindows.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-cyclewindows.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/cyclewindows.c' object='openbox/actions/openbox_openbox-cyclewindows.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-cyclewindows.obj `if test -f 'openbox/actions/cyclewindows.c'; then $(CYGPATH_W) 'openbox/actions/cyclewindows.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/cyclewindows.c'; fi` openbox/actions/openbox_openbox-debug.o: openbox/actions/debug.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-debug.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-debug.Tpo -c -o openbox/actions/openbox_openbox-debug.o `test -f 'openbox/actions/debug.c' || echo '$(srcdir)/'`openbox/actions/debug.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-debug.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-debug.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/debug.c' object='openbox/actions/openbox_openbox-debug.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-debug.o `test -f 'openbox/actions/debug.c' || echo '$(srcdir)/'`openbox/actions/debug.c openbox/actions/openbox_openbox-debug.obj: openbox/actions/debug.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-debug.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-debug.Tpo -c -o openbox/actions/openbox_openbox-debug.obj `if test -f 'openbox/actions/debug.c'; then $(CYGPATH_W) 'openbox/actions/debug.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/debug.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-debug.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-debug.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/debug.c' object='openbox/actions/openbox_openbox-debug.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-debug.obj `if test -f 'openbox/actions/debug.c'; then $(CYGPATH_W) 'openbox/actions/debug.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/debug.c'; fi` openbox/actions/openbox_openbox-decorations.o: openbox/actions/decorations.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-decorations.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-decorations.Tpo -c -o openbox/actions/openbox_openbox-decorations.o `test -f 'openbox/actions/decorations.c' || echo '$(srcdir)/'`openbox/actions/decorations.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-decorations.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-decorations.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/decorations.c' object='openbox/actions/openbox_openbox-decorations.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-decorations.o `test -f 'openbox/actions/decorations.c' || echo '$(srcdir)/'`openbox/actions/decorations.c openbox/actions/openbox_openbox-decorations.obj: openbox/actions/decorations.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-decorations.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-decorations.Tpo -c -o openbox/actions/openbox_openbox-decorations.obj `if test -f 'openbox/actions/decorations.c'; then $(CYGPATH_W) 'openbox/actions/decorations.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/decorations.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-decorations.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-decorations.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/decorations.c' object='openbox/actions/openbox_openbox-decorations.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-decorations.obj `if test -f 'openbox/actions/decorations.c'; then $(CYGPATH_W) 'openbox/actions/decorations.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/decorations.c'; fi` openbox/actions/openbox_openbox-desktop.o: openbox/actions/desktop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-desktop.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-desktop.Tpo -c -o openbox/actions/openbox_openbox-desktop.o `test -f 'openbox/actions/desktop.c' || echo '$(srcdir)/'`openbox/actions/desktop.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-desktop.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-desktop.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/desktop.c' object='openbox/actions/openbox_openbox-desktop.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-desktop.o `test -f 'openbox/actions/desktop.c' || echo '$(srcdir)/'`openbox/actions/desktop.c openbox/actions/openbox_openbox-desktop.obj: openbox/actions/desktop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-desktop.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-desktop.Tpo -c -o openbox/actions/openbox_openbox-desktop.obj `if test -f 'openbox/actions/desktop.c'; then $(CYGPATH_W) 'openbox/actions/desktop.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/desktop.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-desktop.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-desktop.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/desktop.c' object='openbox/actions/openbox_openbox-desktop.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-desktop.obj `if test -f 'openbox/actions/desktop.c'; then $(CYGPATH_W) 'openbox/actions/desktop.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/desktop.c'; fi` openbox/actions/openbox_openbox-dock.o: openbox/actions/dock.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-dock.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-dock.Tpo -c -o openbox/actions/openbox_openbox-dock.o `test -f 'openbox/actions/dock.c' || echo '$(srcdir)/'`openbox/actions/dock.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-dock.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-dock.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/dock.c' object='openbox/actions/openbox_openbox-dock.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-dock.o `test -f 'openbox/actions/dock.c' || echo '$(srcdir)/'`openbox/actions/dock.c openbox/actions/openbox_openbox-dock.obj: openbox/actions/dock.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-dock.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-dock.Tpo -c -o openbox/actions/openbox_openbox-dock.obj `if test -f 'openbox/actions/dock.c'; then $(CYGPATH_W) 'openbox/actions/dock.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/dock.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-dock.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-dock.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/dock.c' object='openbox/actions/openbox_openbox-dock.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-dock.obj `if test -f 'openbox/actions/dock.c'; then $(CYGPATH_W) 'openbox/actions/dock.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/dock.c'; fi` openbox/actions/openbox_openbox-dockautohide.o: openbox/actions/dockautohide.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-dockautohide.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-dockautohide.Tpo -c -o openbox/actions/openbox_openbox-dockautohide.o `test -f 'openbox/actions/dockautohide.c' || echo '$(srcdir)/'`openbox/actions/dockautohide.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-dockautohide.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-dockautohide.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/dockautohide.c' object='openbox/actions/openbox_openbox-dockautohide.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-dockautohide.o `test -f 'openbox/actions/dockautohide.c' || echo '$(srcdir)/'`openbox/actions/dockautohide.c openbox/actions/openbox_openbox-dockautohide.obj: openbox/actions/dockautohide.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-dockautohide.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-dockautohide.Tpo -c -o openbox/actions/openbox_openbox-dockautohide.obj `if test -f 'openbox/actions/dockautohide.c'; then $(CYGPATH_W) 'openbox/actions/dockautohide.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/dockautohide.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-dockautohide.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-dockautohide.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/dockautohide.c' object='openbox/actions/openbox_openbox-dockautohide.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-dockautohide.obj `if test -f 'openbox/actions/dockautohide.c'; then $(CYGPATH_W) 'openbox/actions/dockautohide.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/dockautohide.c'; fi` openbox/actions/openbox_openbox-directionalwindows.o: openbox/actions/directionalwindows.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-directionalwindows.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-directionalwindows.Tpo -c -o openbox/actions/openbox_openbox-directionalwindows.o `test -f 'openbox/actions/directionalwindows.c' || echo '$(srcdir)/'`openbox/actions/directionalwindows.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-directionalwindows.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-directionalwindows.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/directionalwindows.c' object='openbox/actions/openbox_openbox-directionalwindows.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-directionalwindows.o `test -f 'openbox/actions/directionalwindows.c' || echo '$(srcdir)/'`openbox/actions/directionalwindows.c openbox/actions/openbox_openbox-directionalwindows.obj: openbox/actions/directionalwindows.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-directionalwindows.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-directionalwindows.Tpo -c -o openbox/actions/openbox_openbox-directionalwindows.obj `if test -f 'openbox/actions/directionalwindows.c'; then $(CYGPATH_W) 'openbox/actions/directionalwindows.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/directionalwindows.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-directionalwindows.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-directionalwindows.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/directionalwindows.c' object='openbox/actions/openbox_openbox-directionalwindows.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-directionalwindows.obj `if test -f 'openbox/actions/directionalwindows.c'; then $(CYGPATH_W) 'openbox/actions/directionalwindows.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/directionalwindows.c'; fi` openbox/actions/openbox_openbox-execute.o: openbox/actions/execute.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-execute.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-execute.Tpo -c -o openbox/actions/openbox_openbox-execute.o `test -f 'openbox/actions/execute.c' || echo '$(srcdir)/'`openbox/actions/execute.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-execute.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-execute.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/execute.c' object='openbox/actions/openbox_openbox-execute.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-execute.o `test -f 'openbox/actions/execute.c' || echo '$(srcdir)/'`openbox/actions/execute.c openbox/actions/openbox_openbox-execute.obj: openbox/actions/execute.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-execute.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-execute.Tpo -c -o openbox/actions/openbox_openbox-execute.obj `if test -f 'openbox/actions/execute.c'; then $(CYGPATH_W) 'openbox/actions/execute.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/execute.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-execute.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-execute.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/execute.c' object='openbox/actions/openbox_openbox-execute.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-execute.obj `if test -f 'openbox/actions/execute.c'; then $(CYGPATH_W) 'openbox/actions/execute.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/execute.c'; fi` openbox/actions/openbox_openbox-exit.o: openbox/actions/exit.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-exit.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-exit.Tpo -c -o openbox/actions/openbox_openbox-exit.o `test -f 'openbox/actions/exit.c' || echo '$(srcdir)/'`openbox/actions/exit.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-exit.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-exit.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/exit.c' object='openbox/actions/openbox_openbox-exit.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-exit.o `test -f 'openbox/actions/exit.c' || echo '$(srcdir)/'`openbox/actions/exit.c openbox/actions/openbox_openbox-exit.obj: openbox/actions/exit.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-exit.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-exit.Tpo -c -o openbox/actions/openbox_openbox-exit.obj `if test -f 'openbox/actions/exit.c'; then $(CYGPATH_W) 'openbox/actions/exit.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/exit.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-exit.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-exit.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/exit.c' object='openbox/actions/openbox_openbox-exit.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-exit.obj `if test -f 'openbox/actions/exit.c'; then $(CYGPATH_W) 'openbox/actions/exit.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/exit.c'; fi` openbox/actions/openbox_openbox-focus.o: openbox/actions/focus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-focus.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-focus.Tpo -c -o openbox/actions/openbox_openbox-focus.o `test -f 'openbox/actions/focus.c' || echo '$(srcdir)/'`openbox/actions/focus.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-focus.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-focus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/focus.c' object='openbox/actions/openbox_openbox-focus.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-focus.o `test -f 'openbox/actions/focus.c' || echo '$(srcdir)/'`openbox/actions/focus.c openbox/actions/openbox_openbox-focus.obj: openbox/actions/focus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-focus.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-focus.Tpo -c -o openbox/actions/openbox_openbox-focus.obj `if test -f 'openbox/actions/focus.c'; then $(CYGPATH_W) 'openbox/actions/focus.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/focus.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-focus.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-focus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/focus.c' object='openbox/actions/openbox_openbox-focus.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-focus.obj `if test -f 'openbox/actions/focus.c'; then $(CYGPATH_W) 'openbox/actions/focus.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/focus.c'; fi` openbox/actions/openbox_openbox-focustobottom.o: openbox/actions/focustobottom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-focustobottom.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-focustobottom.Tpo -c -o openbox/actions/openbox_openbox-focustobottom.o `test -f 'openbox/actions/focustobottom.c' || echo '$(srcdir)/'`openbox/actions/focustobottom.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-focustobottom.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-focustobottom.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/focustobottom.c' object='openbox/actions/openbox_openbox-focustobottom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-focustobottom.o `test -f 'openbox/actions/focustobottom.c' || echo '$(srcdir)/'`openbox/actions/focustobottom.c openbox/actions/openbox_openbox-focustobottom.obj: openbox/actions/focustobottom.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-focustobottom.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-focustobottom.Tpo -c -o openbox/actions/openbox_openbox-focustobottom.obj `if test -f 'openbox/actions/focustobottom.c'; then $(CYGPATH_W) 'openbox/actions/focustobottom.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/focustobottom.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-focustobottom.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-focustobottom.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/focustobottom.c' object='openbox/actions/openbox_openbox-focustobottom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-focustobottom.obj `if test -f 'openbox/actions/focustobottom.c'; then $(CYGPATH_W) 'openbox/actions/focustobottom.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/focustobottom.c'; fi` openbox/actions/openbox_openbox-fullscreen.o: openbox/actions/fullscreen.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-fullscreen.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-fullscreen.Tpo -c -o openbox/actions/openbox_openbox-fullscreen.o `test -f 'openbox/actions/fullscreen.c' || echo '$(srcdir)/'`openbox/actions/fullscreen.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-fullscreen.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-fullscreen.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/fullscreen.c' object='openbox/actions/openbox_openbox-fullscreen.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-fullscreen.o `test -f 'openbox/actions/fullscreen.c' || echo '$(srcdir)/'`openbox/actions/fullscreen.c openbox/actions/openbox_openbox-fullscreen.obj: openbox/actions/fullscreen.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-fullscreen.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-fullscreen.Tpo -c -o openbox/actions/openbox_openbox-fullscreen.obj `if test -f 'openbox/actions/fullscreen.c'; then $(CYGPATH_W) 'openbox/actions/fullscreen.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/fullscreen.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-fullscreen.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-fullscreen.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/fullscreen.c' object='openbox/actions/openbox_openbox-fullscreen.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-fullscreen.obj `if test -f 'openbox/actions/fullscreen.c'; then $(CYGPATH_W) 'openbox/actions/fullscreen.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/fullscreen.c'; fi` openbox/actions/openbox_openbox-growtoedge.o: openbox/actions/growtoedge.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-growtoedge.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-growtoedge.Tpo -c -o openbox/actions/openbox_openbox-growtoedge.o `test -f 'openbox/actions/growtoedge.c' || echo '$(srcdir)/'`openbox/actions/growtoedge.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-growtoedge.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-growtoedge.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/growtoedge.c' object='openbox/actions/openbox_openbox-growtoedge.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-growtoedge.o `test -f 'openbox/actions/growtoedge.c' || echo '$(srcdir)/'`openbox/actions/growtoedge.c openbox/actions/openbox_openbox-growtoedge.obj: openbox/actions/growtoedge.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-growtoedge.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-growtoedge.Tpo -c -o openbox/actions/openbox_openbox-growtoedge.obj `if test -f 'openbox/actions/growtoedge.c'; then $(CYGPATH_W) 'openbox/actions/growtoedge.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/growtoedge.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-growtoedge.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-growtoedge.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/growtoedge.c' object='openbox/actions/openbox_openbox-growtoedge.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-growtoedge.obj `if test -f 'openbox/actions/growtoedge.c'; then $(CYGPATH_W) 'openbox/actions/growtoedge.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/growtoedge.c'; fi` openbox/actions/openbox_openbox-iconify.o: openbox/actions/iconify.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-iconify.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-iconify.Tpo -c -o openbox/actions/openbox_openbox-iconify.o `test -f 'openbox/actions/iconify.c' || echo '$(srcdir)/'`openbox/actions/iconify.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-iconify.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-iconify.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/iconify.c' object='openbox/actions/openbox_openbox-iconify.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-iconify.o `test -f 'openbox/actions/iconify.c' || echo '$(srcdir)/'`openbox/actions/iconify.c openbox/actions/openbox_openbox-iconify.obj: openbox/actions/iconify.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-iconify.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-iconify.Tpo -c -o openbox/actions/openbox_openbox-iconify.obj `if test -f 'openbox/actions/iconify.c'; then $(CYGPATH_W) 'openbox/actions/iconify.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/iconify.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-iconify.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-iconify.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/iconify.c' object='openbox/actions/openbox_openbox-iconify.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-iconify.obj `if test -f 'openbox/actions/iconify.c'; then $(CYGPATH_W) 'openbox/actions/iconify.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/iconify.c'; fi` openbox/actions/openbox_openbox-if.o: openbox/actions/if.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-if.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-if.Tpo -c -o openbox/actions/openbox_openbox-if.o `test -f 'openbox/actions/if.c' || echo '$(srcdir)/'`openbox/actions/if.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-if.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-if.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/if.c' object='openbox/actions/openbox_openbox-if.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-if.o `test -f 'openbox/actions/if.c' || echo '$(srcdir)/'`openbox/actions/if.c openbox/actions/openbox_openbox-if.obj: openbox/actions/if.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-if.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-if.Tpo -c -o openbox/actions/openbox_openbox-if.obj `if test -f 'openbox/actions/if.c'; then $(CYGPATH_W) 'openbox/actions/if.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/if.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-if.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-if.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/if.c' object='openbox/actions/openbox_openbox-if.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-if.obj `if test -f 'openbox/actions/if.c'; then $(CYGPATH_W) 'openbox/actions/if.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/if.c'; fi` openbox/actions/openbox_openbox-kill.o: openbox/actions/kill.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-kill.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-kill.Tpo -c -o openbox/actions/openbox_openbox-kill.o `test -f 'openbox/actions/kill.c' || echo '$(srcdir)/'`openbox/actions/kill.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-kill.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-kill.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/kill.c' object='openbox/actions/openbox_openbox-kill.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-kill.o `test -f 'openbox/actions/kill.c' || echo '$(srcdir)/'`openbox/actions/kill.c openbox/actions/openbox_openbox-kill.obj: openbox/actions/kill.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-kill.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-kill.Tpo -c -o openbox/actions/openbox_openbox-kill.obj `if test -f 'openbox/actions/kill.c'; then $(CYGPATH_W) 'openbox/actions/kill.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/kill.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-kill.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-kill.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/kill.c' object='openbox/actions/openbox_openbox-kill.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-kill.obj `if test -f 'openbox/actions/kill.c'; then $(CYGPATH_W) 'openbox/actions/kill.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/kill.c'; fi` openbox/actions/openbox_openbox-layer.o: openbox/actions/layer.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-layer.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-layer.Tpo -c -o openbox/actions/openbox_openbox-layer.o `test -f 'openbox/actions/layer.c' || echo '$(srcdir)/'`openbox/actions/layer.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-layer.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-layer.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/layer.c' object='openbox/actions/openbox_openbox-layer.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-layer.o `test -f 'openbox/actions/layer.c' || echo '$(srcdir)/'`openbox/actions/layer.c openbox/actions/openbox_openbox-layer.obj: openbox/actions/layer.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-layer.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-layer.Tpo -c -o openbox/actions/openbox_openbox-layer.obj `if test -f 'openbox/actions/layer.c'; then $(CYGPATH_W) 'openbox/actions/layer.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/layer.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-layer.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-layer.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/layer.c' object='openbox/actions/openbox_openbox-layer.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-layer.obj `if test -f 'openbox/actions/layer.c'; then $(CYGPATH_W) 'openbox/actions/layer.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/layer.c'; fi` openbox/actions/openbox_openbox-lower.o: openbox/actions/lower.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-lower.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-lower.Tpo -c -o openbox/actions/openbox_openbox-lower.o `test -f 'openbox/actions/lower.c' || echo '$(srcdir)/'`openbox/actions/lower.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-lower.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-lower.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/lower.c' object='openbox/actions/openbox_openbox-lower.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-lower.o `test -f 'openbox/actions/lower.c' || echo '$(srcdir)/'`openbox/actions/lower.c openbox/actions/openbox_openbox-lower.obj: openbox/actions/lower.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-lower.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-lower.Tpo -c -o openbox/actions/openbox_openbox-lower.obj `if test -f 'openbox/actions/lower.c'; then $(CYGPATH_W) 'openbox/actions/lower.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/lower.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-lower.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-lower.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/lower.c' object='openbox/actions/openbox_openbox-lower.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-lower.obj `if test -f 'openbox/actions/lower.c'; then $(CYGPATH_W) 'openbox/actions/lower.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/lower.c'; fi` openbox/actions/openbox_openbox-maximize.o: openbox/actions/maximize.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-maximize.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-maximize.Tpo -c -o openbox/actions/openbox_openbox-maximize.o `test -f 'openbox/actions/maximize.c' || echo '$(srcdir)/'`openbox/actions/maximize.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-maximize.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-maximize.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/maximize.c' object='openbox/actions/openbox_openbox-maximize.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-maximize.o `test -f 'openbox/actions/maximize.c' || echo '$(srcdir)/'`openbox/actions/maximize.c openbox/actions/openbox_openbox-maximize.obj: openbox/actions/maximize.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-maximize.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-maximize.Tpo -c -o openbox/actions/openbox_openbox-maximize.obj `if test -f 'openbox/actions/maximize.c'; then $(CYGPATH_W) 'openbox/actions/maximize.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/maximize.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-maximize.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-maximize.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/maximize.c' object='openbox/actions/openbox_openbox-maximize.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-maximize.obj `if test -f 'openbox/actions/maximize.c'; then $(CYGPATH_W) 'openbox/actions/maximize.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/maximize.c'; fi` openbox/actions/openbox_openbox-move.o: openbox/actions/move.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-move.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-move.Tpo -c -o openbox/actions/openbox_openbox-move.o `test -f 'openbox/actions/move.c' || echo '$(srcdir)/'`openbox/actions/move.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-move.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-move.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/move.c' object='openbox/actions/openbox_openbox-move.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-move.o `test -f 'openbox/actions/move.c' || echo '$(srcdir)/'`openbox/actions/move.c openbox/actions/openbox_openbox-move.obj: openbox/actions/move.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-move.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-move.Tpo -c -o openbox/actions/openbox_openbox-move.obj `if test -f 'openbox/actions/move.c'; then $(CYGPATH_W) 'openbox/actions/move.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/move.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-move.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-move.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/move.c' object='openbox/actions/openbox_openbox-move.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-move.obj `if test -f 'openbox/actions/move.c'; then $(CYGPATH_W) 'openbox/actions/move.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/move.c'; fi` openbox/actions/openbox_openbox-moverelative.o: openbox/actions/moverelative.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-moverelative.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-moverelative.Tpo -c -o openbox/actions/openbox_openbox-moverelative.o `test -f 'openbox/actions/moverelative.c' || echo '$(srcdir)/'`openbox/actions/moverelative.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-moverelative.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-moverelative.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/moverelative.c' object='openbox/actions/openbox_openbox-moverelative.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-moverelative.o `test -f 'openbox/actions/moverelative.c' || echo '$(srcdir)/'`openbox/actions/moverelative.c openbox/actions/openbox_openbox-moverelative.obj: openbox/actions/moverelative.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-moverelative.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-moverelative.Tpo -c -o openbox/actions/openbox_openbox-moverelative.obj `if test -f 'openbox/actions/moverelative.c'; then $(CYGPATH_W) 'openbox/actions/moverelative.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/moverelative.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-moverelative.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-moverelative.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/moverelative.c' object='openbox/actions/openbox_openbox-moverelative.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-moverelative.obj `if test -f 'openbox/actions/moverelative.c'; then $(CYGPATH_W) 'openbox/actions/moverelative.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/moverelative.c'; fi` openbox/actions/openbox_openbox-moveresizeto.o: openbox/actions/moveresizeto.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-moveresizeto.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-moveresizeto.Tpo -c -o openbox/actions/openbox_openbox-moveresizeto.o `test -f 'openbox/actions/moveresizeto.c' || echo '$(srcdir)/'`openbox/actions/moveresizeto.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-moveresizeto.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-moveresizeto.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/moveresizeto.c' object='openbox/actions/openbox_openbox-moveresizeto.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-moveresizeto.o `test -f 'openbox/actions/moveresizeto.c' || echo '$(srcdir)/'`openbox/actions/moveresizeto.c openbox/actions/openbox_openbox-moveresizeto.obj: openbox/actions/moveresizeto.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-moveresizeto.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-moveresizeto.Tpo -c -o openbox/actions/openbox_openbox-moveresizeto.obj `if test -f 'openbox/actions/moveresizeto.c'; then $(CYGPATH_W) 'openbox/actions/moveresizeto.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/moveresizeto.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-moveresizeto.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-moveresizeto.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/moveresizeto.c' object='openbox/actions/openbox_openbox-moveresizeto.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-moveresizeto.obj `if test -f 'openbox/actions/moveresizeto.c'; then $(CYGPATH_W) 'openbox/actions/moveresizeto.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/moveresizeto.c'; fi` openbox/actions/openbox_openbox-movetoedge.o: openbox/actions/movetoedge.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-movetoedge.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-movetoedge.Tpo -c -o openbox/actions/openbox_openbox-movetoedge.o `test -f 'openbox/actions/movetoedge.c' || echo '$(srcdir)/'`openbox/actions/movetoedge.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-movetoedge.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-movetoedge.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/movetoedge.c' object='openbox/actions/openbox_openbox-movetoedge.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-movetoedge.o `test -f 'openbox/actions/movetoedge.c' || echo '$(srcdir)/'`openbox/actions/movetoedge.c openbox/actions/openbox_openbox-movetoedge.obj: openbox/actions/movetoedge.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-movetoedge.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-movetoedge.Tpo -c -o openbox/actions/openbox_openbox-movetoedge.obj `if test -f 'openbox/actions/movetoedge.c'; then $(CYGPATH_W) 'openbox/actions/movetoedge.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/movetoedge.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-movetoedge.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-movetoedge.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/movetoedge.c' object='openbox/actions/openbox_openbox-movetoedge.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-movetoedge.obj `if test -f 'openbox/actions/movetoedge.c'; then $(CYGPATH_W) 'openbox/actions/movetoedge.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/movetoedge.c'; fi` openbox/actions/openbox_openbox-omnipresent.o: openbox/actions/omnipresent.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-omnipresent.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-omnipresent.Tpo -c -o openbox/actions/openbox_openbox-omnipresent.o `test -f 'openbox/actions/omnipresent.c' || echo '$(srcdir)/'`openbox/actions/omnipresent.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-omnipresent.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-omnipresent.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/omnipresent.c' object='openbox/actions/openbox_openbox-omnipresent.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-omnipresent.o `test -f 'openbox/actions/omnipresent.c' || echo '$(srcdir)/'`openbox/actions/omnipresent.c openbox/actions/openbox_openbox-omnipresent.obj: openbox/actions/omnipresent.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-omnipresent.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-omnipresent.Tpo -c -o openbox/actions/openbox_openbox-omnipresent.obj `if test -f 'openbox/actions/omnipresent.c'; then $(CYGPATH_W) 'openbox/actions/omnipresent.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/omnipresent.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-omnipresent.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-omnipresent.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/omnipresent.c' object='openbox/actions/openbox_openbox-omnipresent.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-omnipresent.obj `if test -f 'openbox/actions/omnipresent.c'; then $(CYGPATH_W) 'openbox/actions/omnipresent.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/omnipresent.c'; fi` openbox/actions/openbox_openbox-raise.o: openbox/actions/raise.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-raise.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-raise.Tpo -c -o openbox/actions/openbox_openbox-raise.o `test -f 'openbox/actions/raise.c' || echo '$(srcdir)/'`openbox/actions/raise.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-raise.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-raise.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/raise.c' object='openbox/actions/openbox_openbox-raise.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-raise.o `test -f 'openbox/actions/raise.c' || echo '$(srcdir)/'`openbox/actions/raise.c openbox/actions/openbox_openbox-raise.obj: openbox/actions/raise.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-raise.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-raise.Tpo -c -o openbox/actions/openbox_openbox-raise.obj `if test -f 'openbox/actions/raise.c'; then $(CYGPATH_W) 'openbox/actions/raise.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/raise.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-raise.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-raise.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/raise.c' object='openbox/actions/openbox_openbox-raise.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-raise.obj `if test -f 'openbox/actions/raise.c'; then $(CYGPATH_W) 'openbox/actions/raise.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/raise.c'; fi` openbox/actions/openbox_openbox-raiselower.o: openbox/actions/raiselower.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-raiselower.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-raiselower.Tpo -c -o openbox/actions/openbox_openbox-raiselower.o `test -f 'openbox/actions/raiselower.c' || echo '$(srcdir)/'`openbox/actions/raiselower.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-raiselower.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-raiselower.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/raiselower.c' object='openbox/actions/openbox_openbox-raiselower.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-raiselower.o `test -f 'openbox/actions/raiselower.c' || echo '$(srcdir)/'`openbox/actions/raiselower.c openbox/actions/openbox_openbox-raiselower.obj: openbox/actions/raiselower.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-raiselower.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-raiselower.Tpo -c -o openbox/actions/openbox_openbox-raiselower.obj `if test -f 'openbox/actions/raiselower.c'; then $(CYGPATH_W) 'openbox/actions/raiselower.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/raiselower.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-raiselower.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-raiselower.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/raiselower.c' object='openbox/actions/openbox_openbox-raiselower.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-raiselower.obj `if test -f 'openbox/actions/raiselower.c'; then $(CYGPATH_W) 'openbox/actions/raiselower.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/raiselower.c'; fi` openbox/actions/openbox_openbox-reconfigure.o: openbox/actions/reconfigure.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-reconfigure.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-reconfigure.Tpo -c -o openbox/actions/openbox_openbox-reconfigure.o `test -f 'openbox/actions/reconfigure.c' || echo '$(srcdir)/'`openbox/actions/reconfigure.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-reconfigure.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-reconfigure.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/reconfigure.c' object='openbox/actions/openbox_openbox-reconfigure.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-reconfigure.o `test -f 'openbox/actions/reconfigure.c' || echo '$(srcdir)/'`openbox/actions/reconfigure.c openbox/actions/openbox_openbox-reconfigure.obj: openbox/actions/reconfigure.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-reconfigure.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-reconfigure.Tpo -c -o openbox/actions/openbox_openbox-reconfigure.obj `if test -f 'openbox/actions/reconfigure.c'; then $(CYGPATH_W) 'openbox/actions/reconfigure.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/reconfigure.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-reconfigure.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-reconfigure.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/reconfigure.c' object='openbox/actions/openbox_openbox-reconfigure.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-reconfigure.obj `if test -f 'openbox/actions/reconfigure.c'; then $(CYGPATH_W) 'openbox/actions/reconfigure.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/reconfigure.c'; fi` openbox/actions/openbox_openbox-resize.o: openbox/actions/resize.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-resize.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-resize.Tpo -c -o openbox/actions/openbox_openbox-resize.o `test -f 'openbox/actions/resize.c' || echo '$(srcdir)/'`openbox/actions/resize.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-resize.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-resize.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/resize.c' object='openbox/actions/openbox_openbox-resize.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-resize.o `test -f 'openbox/actions/resize.c' || echo '$(srcdir)/'`openbox/actions/resize.c openbox/actions/openbox_openbox-resize.obj: openbox/actions/resize.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-resize.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-resize.Tpo -c -o openbox/actions/openbox_openbox-resize.obj `if test -f 'openbox/actions/resize.c'; then $(CYGPATH_W) 'openbox/actions/resize.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/resize.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-resize.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-resize.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/resize.c' object='openbox/actions/openbox_openbox-resize.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-resize.obj `if test -f 'openbox/actions/resize.c'; then $(CYGPATH_W) 'openbox/actions/resize.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/resize.c'; fi` openbox/actions/openbox_openbox-resizerelative.o: openbox/actions/resizerelative.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-resizerelative.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-resizerelative.Tpo -c -o openbox/actions/openbox_openbox-resizerelative.o `test -f 'openbox/actions/resizerelative.c' || echo '$(srcdir)/'`openbox/actions/resizerelative.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-resizerelative.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-resizerelative.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/resizerelative.c' object='openbox/actions/openbox_openbox-resizerelative.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-resizerelative.o `test -f 'openbox/actions/resizerelative.c' || echo '$(srcdir)/'`openbox/actions/resizerelative.c openbox/actions/openbox_openbox-resizerelative.obj: openbox/actions/resizerelative.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-resizerelative.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-resizerelative.Tpo -c -o openbox/actions/openbox_openbox-resizerelative.obj `if test -f 'openbox/actions/resizerelative.c'; then $(CYGPATH_W) 'openbox/actions/resizerelative.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/resizerelative.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-resizerelative.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-resizerelative.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/resizerelative.c' object='openbox/actions/openbox_openbox-resizerelative.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-resizerelative.obj `if test -f 'openbox/actions/resizerelative.c'; then $(CYGPATH_W) 'openbox/actions/resizerelative.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/resizerelative.c'; fi` openbox/actions/openbox_openbox-restart.o: openbox/actions/restart.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-restart.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-restart.Tpo -c -o openbox/actions/openbox_openbox-restart.o `test -f 'openbox/actions/restart.c' || echo '$(srcdir)/'`openbox/actions/restart.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-restart.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-restart.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/restart.c' object='openbox/actions/openbox_openbox-restart.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-restart.o `test -f 'openbox/actions/restart.c' || echo '$(srcdir)/'`openbox/actions/restart.c openbox/actions/openbox_openbox-restart.obj: openbox/actions/restart.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-restart.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-restart.Tpo -c -o openbox/actions/openbox_openbox-restart.obj `if test -f 'openbox/actions/restart.c'; then $(CYGPATH_W) 'openbox/actions/restart.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/restart.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-restart.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-restart.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/restart.c' object='openbox/actions/openbox_openbox-restart.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-restart.obj `if test -f 'openbox/actions/restart.c'; then $(CYGPATH_W) 'openbox/actions/restart.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/restart.c'; fi` openbox/actions/openbox_openbox-shade.o: openbox/actions/shade.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-shade.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-shade.Tpo -c -o openbox/actions/openbox_openbox-shade.o `test -f 'openbox/actions/shade.c' || echo '$(srcdir)/'`openbox/actions/shade.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-shade.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-shade.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/shade.c' object='openbox/actions/openbox_openbox-shade.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-shade.o `test -f 'openbox/actions/shade.c' || echo '$(srcdir)/'`openbox/actions/shade.c openbox/actions/openbox_openbox-shade.obj: openbox/actions/shade.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-shade.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-shade.Tpo -c -o openbox/actions/openbox_openbox-shade.obj `if test -f 'openbox/actions/shade.c'; then $(CYGPATH_W) 'openbox/actions/shade.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/shade.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-shade.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-shade.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/shade.c' object='openbox/actions/openbox_openbox-shade.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-shade.obj `if test -f 'openbox/actions/shade.c'; then $(CYGPATH_W) 'openbox/actions/shade.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/shade.c'; fi` openbox/actions/openbox_openbox-shadelowerraise.o: openbox/actions/shadelowerraise.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-shadelowerraise.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-shadelowerraise.Tpo -c -o openbox/actions/openbox_openbox-shadelowerraise.o `test -f 'openbox/actions/shadelowerraise.c' || echo '$(srcdir)/'`openbox/actions/shadelowerraise.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-shadelowerraise.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-shadelowerraise.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/shadelowerraise.c' object='openbox/actions/openbox_openbox-shadelowerraise.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-shadelowerraise.o `test -f 'openbox/actions/shadelowerraise.c' || echo '$(srcdir)/'`openbox/actions/shadelowerraise.c openbox/actions/openbox_openbox-shadelowerraise.obj: openbox/actions/shadelowerraise.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-shadelowerraise.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-shadelowerraise.Tpo -c -o openbox/actions/openbox_openbox-shadelowerraise.obj `if test -f 'openbox/actions/shadelowerraise.c'; then $(CYGPATH_W) 'openbox/actions/shadelowerraise.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/shadelowerraise.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-shadelowerraise.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-shadelowerraise.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/shadelowerraise.c' object='openbox/actions/openbox_openbox-shadelowerraise.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-shadelowerraise.obj `if test -f 'openbox/actions/shadelowerraise.c'; then $(CYGPATH_W) 'openbox/actions/shadelowerraise.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/shadelowerraise.c'; fi` openbox/actions/openbox_openbox-showdesktop.o: openbox/actions/showdesktop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-showdesktop.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-showdesktop.Tpo -c -o openbox/actions/openbox_openbox-showdesktop.o `test -f 'openbox/actions/showdesktop.c' || echo '$(srcdir)/'`openbox/actions/showdesktop.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-showdesktop.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-showdesktop.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/showdesktop.c' object='openbox/actions/openbox_openbox-showdesktop.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-showdesktop.o `test -f 'openbox/actions/showdesktop.c' || echo '$(srcdir)/'`openbox/actions/showdesktop.c openbox/actions/openbox_openbox-showdesktop.obj: openbox/actions/showdesktop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-showdesktop.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-showdesktop.Tpo -c -o openbox/actions/openbox_openbox-showdesktop.obj `if test -f 'openbox/actions/showdesktop.c'; then $(CYGPATH_W) 'openbox/actions/showdesktop.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/showdesktop.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-showdesktop.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-showdesktop.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/showdesktop.c' object='openbox/actions/openbox_openbox-showdesktop.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-showdesktop.obj `if test -f 'openbox/actions/showdesktop.c'; then $(CYGPATH_W) 'openbox/actions/showdesktop.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/showdesktop.c'; fi` openbox/actions/openbox_openbox-showmenu.o: openbox/actions/showmenu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-showmenu.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-showmenu.Tpo -c -o openbox/actions/openbox_openbox-showmenu.o `test -f 'openbox/actions/showmenu.c' || echo '$(srcdir)/'`openbox/actions/showmenu.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-showmenu.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-showmenu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/showmenu.c' object='openbox/actions/openbox_openbox-showmenu.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-showmenu.o `test -f 'openbox/actions/showmenu.c' || echo '$(srcdir)/'`openbox/actions/showmenu.c openbox/actions/openbox_openbox-showmenu.obj: openbox/actions/showmenu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-showmenu.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-showmenu.Tpo -c -o openbox/actions/openbox_openbox-showmenu.obj `if test -f 'openbox/actions/showmenu.c'; then $(CYGPATH_W) 'openbox/actions/showmenu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/showmenu.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-showmenu.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-showmenu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/showmenu.c' object='openbox/actions/openbox_openbox-showmenu.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-showmenu.obj `if test -f 'openbox/actions/showmenu.c'; then $(CYGPATH_W) 'openbox/actions/showmenu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/showmenu.c'; fi` openbox/actions/openbox_openbox-unfocus.o: openbox/actions/unfocus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-unfocus.o -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-unfocus.Tpo -c -o openbox/actions/openbox_openbox-unfocus.o `test -f 'openbox/actions/unfocus.c' || echo '$(srcdir)/'`openbox/actions/unfocus.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-unfocus.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-unfocus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/unfocus.c' object='openbox/actions/openbox_openbox-unfocus.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-unfocus.o `test -f 'openbox/actions/unfocus.c' || echo '$(srcdir)/'`openbox/actions/unfocus.c openbox/actions/openbox_openbox-unfocus.obj: openbox/actions/unfocus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/actions/openbox_openbox-unfocus.obj -MD -MP -MF openbox/actions/$(DEPDIR)/openbox_openbox-unfocus.Tpo -c -o openbox/actions/openbox_openbox-unfocus.obj `if test -f 'openbox/actions/unfocus.c'; then $(CYGPATH_W) 'openbox/actions/unfocus.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/unfocus.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/actions/$(DEPDIR)/openbox_openbox-unfocus.Tpo openbox/actions/$(DEPDIR)/openbox_openbox-unfocus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions/unfocus.c' object='openbox/actions/openbox_openbox-unfocus.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/actions/openbox_openbox-unfocus.obj `if test -f 'openbox/actions/unfocus.c'; then $(CYGPATH_W) 'openbox/actions/unfocus.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions/unfocus.c'; fi` openbox/openbox_openbox-actions.o: openbox/actions.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-actions.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-actions.Tpo -c -o openbox/openbox_openbox-actions.o `test -f 'openbox/actions.c' || echo '$(srcdir)/'`openbox/actions.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-actions.Tpo openbox/$(DEPDIR)/openbox_openbox-actions.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions.c' object='openbox/openbox_openbox-actions.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-actions.o `test -f 'openbox/actions.c' || echo '$(srcdir)/'`openbox/actions.c openbox/openbox_openbox-actions.obj: openbox/actions.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-actions.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-actions.Tpo -c -o openbox/openbox_openbox-actions.obj `if test -f 'openbox/actions.c'; then $(CYGPATH_W) 'openbox/actions.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-actions.Tpo openbox/$(DEPDIR)/openbox_openbox-actions.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/actions.c' object='openbox/openbox_openbox-actions.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-actions.obj `if test -f 'openbox/actions.c'; then $(CYGPATH_W) 'openbox/actions.c'; else $(CYGPATH_W) '$(srcdir)/openbox/actions.c'; fi` openbox/openbox_openbox-client.o: openbox/client.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-client.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-client.Tpo -c -o openbox/openbox_openbox-client.o `test -f 'openbox/client.c' || echo '$(srcdir)/'`openbox/client.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-client.Tpo openbox/$(DEPDIR)/openbox_openbox-client.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/client.c' object='openbox/openbox_openbox-client.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-client.o `test -f 'openbox/client.c' || echo '$(srcdir)/'`openbox/client.c openbox/openbox_openbox-client.obj: openbox/client.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-client.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-client.Tpo -c -o openbox/openbox_openbox-client.obj `if test -f 'openbox/client.c'; then $(CYGPATH_W) 'openbox/client.c'; else $(CYGPATH_W) '$(srcdir)/openbox/client.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-client.Tpo openbox/$(DEPDIR)/openbox_openbox-client.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/client.c' object='openbox/openbox_openbox-client.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-client.obj `if test -f 'openbox/client.c'; then $(CYGPATH_W) 'openbox/client.c'; else $(CYGPATH_W) '$(srcdir)/openbox/client.c'; fi` openbox/openbox_openbox-client_list_menu.o: openbox/client_list_menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-client_list_menu.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-client_list_menu.Tpo -c -o openbox/openbox_openbox-client_list_menu.o `test -f 'openbox/client_list_menu.c' || echo '$(srcdir)/'`openbox/client_list_menu.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-client_list_menu.Tpo openbox/$(DEPDIR)/openbox_openbox-client_list_menu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/client_list_menu.c' object='openbox/openbox_openbox-client_list_menu.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-client_list_menu.o `test -f 'openbox/client_list_menu.c' || echo '$(srcdir)/'`openbox/client_list_menu.c openbox/openbox_openbox-client_list_menu.obj: openbox/client_list_menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-client_list_menu.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-client_list_menu.Tpo -c -o openbox/openbox_openbox-client_list_menu.obj `if test -f 'openbox/client_list_menu.c'; then $(CYGPATH_W) 'openbox/client_list_menu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/client_list_menu.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-client_list_menu.Tpo openbox/$(DEPDIR)/openbox_openbox-client_list_menu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/client_list_menu.c' object='openbox/openbox_openbox-client_list_menu.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-client_list_menu.obj `if test -f 'openbox/client_list_menu.c'; then $(CYGPATH_W) 'openbox/client_list_menu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/client_list_menu.c'; fi` openbox/openbox_openbox-client_list_combined_menu.o: openbox/client_list_combined_menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-client_list_combined_menu.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-client_list_combined_menu.Tpo -c -o openbox/openbox_openbox-client_list_combined_menu.o `test -f 'openbox/client_list_combined_menu.c' || echo '$(srcdir)/'`openbox/client_list_combined_menu.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-client_list_combined_menu.Tpo openbox/$(DEPDIR)/openbox_openbox-client_list_combined_menu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/client_list_combined_menu.c' object='openbox/openbox_openbox-client_list_combined_menu.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-client_list_combined_menu.o `test -f 'openbox/client_list_combined_menu.c' || echo '$(srcdir)/'`openbox/client_list_combined_menu.c openbox/openbox_openbox-client_list_combined_menu.obj: openbox/client_list_combined_menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-client_list_combined_menu.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-client_list_combined_menu.Tpo -c -o openbox/openbox_openbox-client_list_combined_menu.obj `if test -f 'openbox/client_list_combined_menu.c'; then $(CYGPATH_W) 'openbox/client_list_combined_menu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/client_list_combined_menu.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-client_list_combined_menu.Tpo openbox/$(DEPDIR)/openbox_openbox-client_list_combined_menu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/client_list_combined_menu.c' object='openbox/openbox_openbox-client_list_combined_menu.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-client_list_combined_menu.obj `if test -f 'openbox/client_list_combined_menu.c'; then $(CYGPATH_W) 'openbox/client_list_combined_menu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/client_list_combined_menu.c'; fi` openbox/openbox_openbox-client_menu.o: openbox/client_menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-client_menu.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-client_menu.Tpo -c -o openbox/openbox_openbox-client_menu.o `test -f 'openbox/client_menu.c' || echo '$(srcdir)/'`openbox/client_menu.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-client_menu.Tpo openbox/$(DEPDIR)/openbox_openbox-client_menu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/client_menu.c' object='openbox/openbox_openbox-client_menu.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-client_menu.o `test -f 'openbox/client_menu.c' || echo '$(srcdir)/'`openbox/client_menu.c openbox/openbox_openbox-client_menu.obj: openbox/client_menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-client_menu.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-client_menu.Tpo -c -o openbox/openbox_openbox-client_menu.obj `if test -f 'openbox/client_menu.c'; then $(CYGPATH_W) 'openbox/client_menu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/client_menu.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-client_menu.Tpo openbox/$(DEPDIR)/openbox_openbox-client_menu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/client_menu.c' object='openbox/openbox_openbox-client_menu.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-client_menu.obj `if test -f 'openbox/client_menu.c'; then $(CYGPATH_W) 'openbox/client_menu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/client_menu.c'; fi` openbox/openbox_openbox-config.o: openbox/config.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-config.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-config.Tpo -c -o openbox/openbox_openbox-config.o `test -f 'openbox/config.c' || echo '$(srcdir)/'`openbox/config.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-config.Tpo openbox/$(DEPDIR)/openbox_openbox-config.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/config.c' object='openbox/openbox_openbox-config.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-config.o `test -f 'openbox/config.c' || echo '$(srcdir)/'`openbox/config.c openbox/openbox_openbox-config.obj: openbox/config.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-config.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-config.Tpo -c -o openbox/openbox_openbox-config.obj `if test -f 'openbox/config.c'; then $(CYGPATH_W) 'openbox/config.c'; else $(CYGPATH_W) '$(srcdir)/openbox/config.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-config.Tpo openbox/$(DEPDIR)/openbox_openbox-config.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/config.c' object='openbox/openbox_openbox-config.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-config.obj `if test -f 'openbox/config.c'; then $(CYGPATH_W) 'openbox/config.c'; else $(CYGPATH_W) '$(srcdir)/openbox/config.c'; fi` openbox/openbox_openbox-debug.o: openbox/debug.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-debug.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-debug.Tpo -c -o openbox/openbox_openbox-debug.o `test -f 'openbox/debug.c' || echo '$(srcdir)/'`openbox/debug.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-debug.Tpo openbox/$(DEPDIR)/openbox_openbox-debug.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/debug.c' object='openbox/openbox_openbox-debug.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-debug.o `test -f 'openbox/debug.c' || echo '$(srcdir)/'`openbox/debug.c openbox/openbox_openbox-debug.obj: openbox/debug.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-debug.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-debug.Tpo -c -o openbox/openbox_openbox-debug.obj `if test -f 'openbox/debug.c'; then $(CYGPATH_W) 'openbox/debug.c'; else $(CYGPATH_W) '$(srcdir)/openbox/debug.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-debug.Tpo openbox/$(DEPDIR)/openbox_openbox-debug.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/debug.c' object='openbox/openbox_openbox-debug.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-debug.obj `if test -f 'openbox/debug.c'; then $(CYGPATH_W) 'openbox/debug.c'; else $(CYGPATH_W) '$(srcdir)/openbox/debug.c'; fi` openbox/openbox_openbox-dock.o: openbox/dock.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-dock.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-dock.Tpo -c -o openbox/openbox_openbox-dock.o `test -f 'openbox/dock.c' || echo '$(srcdir)/'`openbox/dock.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-dock.Tpo openbox/$(DEPDIR)/openbox_openbox-dock.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/dock.c' object='openbox/openbox_openbox-dock.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-dock.o `test -f 'openbox/dock.c' || echo '$(srcdir)/'`openbox/dock.c openbox/openbox_openbox-dock.obj: openbox/dock.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-dock.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-dock.Tpo -c -o openbox/openbox_openbox-dock.obj `if test -f 'openbox/dock.c'; then $(CYGPATH_W) 'openbox/dock.c'; else $(CYGPATH_W) '$(srcdir)/openbox/dock.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-dock.Tpo openbox/$(DEPDIR)/openbox_openbox-dock.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/dock.c' object='openbox/openbox_openbox-dock.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-dock.obj `if test -f 'openbox/dock.c'; then $(CYGPATH_W) 'openbox/dock.c'; else $(CYGPATH_W) '$(srcdir)/openbox/dock.c'; fi` openbox/openbox_openbox-event.o: openbox/event.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-event.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-event.Tpo -c -o openbox/openbox_openbox-event.o `test -f 'openbox/event.c' || echo '$(srcdir)/'`openbox/event.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-event.Tpo openbox/$(DEPDIR)/openbox_openbox-event.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/event.c' object='openbox/openbox_openbox-event.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-event.o `test -f 'openbox/event.c' || echo '$(srcdir)/'`openbox/event.c openbox/openbox_openbox-event.obj: openbox/event.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-event.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-event.Tpo -c -o openbox/openbox_openbox-event.obj `if test -f 'openbox/event.c'; then $(CYGPATH_W) 'openbox/event.c'; else $(CYGPATH_W) '$(srcdir)/openbox/event.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-event.Tpo openbox/$(DEPDIR)/openbox_openbox-event.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/event.c' object='openbox/openbox_openbox-event.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-event.obj `if test -f 'openbox/event.c'; then $(CYGPATH_W) 'openbox/event.c'; else $(CYGPATH_W) '$(srcdir)/openbox/event.c'; fi` openbox/openbox_openbox-focus.o: openbox/focus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-focus.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-focus.Tpo -c -o openbox/openbox_openbox-focus.o `test -f 'openbox/focus.c' || echo '$(srcdir)/'`openbox/focus.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-focus.Tpo openbox/$(DEPDIR)/openbox_openbox-focus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/focus.c' object='openbox/openbox_openbox-focus.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-focus.o `test -f 'openbox/focus.c' || echo '$(srcdir)/'`openbox/focus.c openbox/openbox_openbox-focus.obj: openbox/focus.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-focus.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-focus.Tpo -c -o openbox/openbox_openbox-focus.obj `if test -f 'openbox/focus.c'; then $(CYGPATH_W) 'openbox/focus.c'; else $(CYGPATH_W) '$(srcdir)/openbox/focus.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-focus.Tpo openbox/$(DEPDIR)/openbox_openbox-focus.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/focus.c' object='openbox/openbox_openbox-focus.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-focus.obj `if test -f 'openbox/focus.c'; then $(CYGPATH_W) 'openbox/focus.c'; else $(CYGPATH_W) '$(srcdir)/openbox/focus.c'; fi` openbox/openbox_openbox-focus_cycle.o: openbox/focus_cycle.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-focus_cycle.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-focus_cycle.Tpo -c -o openbox/openbox_openbox-focus_cycle.o `test -f 'openbox/focus_cycle.c' || echo '$(srcdir)/'`openbox/focus_cycle.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-focus_cycle.Tpo openbox/$(DEPDIR)/openbox_openbox-focus_cycle.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/focus_cycle.c' object='openbox/openbox_openbox-focus_cycle.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-focus_cycle.o `test -f 'openbox/focus_cycle.c' || echo '$(srcdir)/'`openbox/focus_cycle.c openbox/openbox_openbox-focus_cycle.obj: openbox/focus_cycle.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-focus_cycle.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-focus_cycle.Tpo -c -o openbox/openbox_openbox-focus_cycle.obj `if test -f 'openbox/focus_cycle.c'; then $(CYGPATH_W) 'openbox/focus_cycle.c'; else $(CYGPATH_W) '$(srcdir)/openbox/focus_cycle.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-focus_cycle.Tpo openbox/$(DEPDIR)/openbox_openbox-focus_cycle.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/focus_cycle.c' object='openbox/openbox_openbox-focus_cycle.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-focus_cycle.obj `if test -f 'openbox/focus_cycle.c'; then $(CYGPATH_W) 'openbox/focus_cycle.c'; else $(CYGPATH_W) '$(srcdir)/openbox/focus_cycle.c'; fi` openbox/openbox_openbox-focus_cycle_indicator.o: openbox/focus_cycle_indicator.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-focus_cycle_indicator.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-focus_cycle_indicator.Tpo -c -o openbox/openbox_openbox-focus_cycle_indicator.o `test -f 'openbox/focus_cycle_indicator.c' || echo '$(srcdir)/'`openbox/focus_cycle_indicator.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-focus_cycle_indicator.Tpo openbox/$(DEPDIR)/openbox_openbox-focus_cycle_indicator.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/focus_cycle_indicator.c' object='openbox/openbox_openbox-focus_cycle_indicator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-focus_cycle_indicator.o `test -f 'openbox/focus_cycle_indicator.c' || echo '$(srcdir)/'`openbox/focus_cycle_indicator.c openbox/openbox_openbox-focus_cycle_indicator.obj: openbox/focus_cycle_indicator.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-focus_cycle_indicator.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-focus_cycle_indicator.Tpo -c -o openbox/openbox_openbox-focus_cycle_indicator.obj `if test -f 'openbox/focus_cycle_indicator.c'; then $(CYGPATH_W) 'openbox/focus_cycle_indicator.c'; else $(CYGPATH_W) '$(srcdir)/openbox/focus_cycle_indicator.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-focus_cycle_indicator.Tpo openbox/$(DEPDIR)/openbox_openbox-focus_cycle_indicator.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/focus_cycle_indicator.c' object='openbox/openbox_openbox-focus_cycle_indicator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-focus_cycle_indicator.obj `if test -f 'openbox/focus_cycle_indicator.c'; then $(CYGPATH_W) 'openbox/focus_cycle_indicator.c'; else $(CYGPATH_W) '$(srcdir)/openbox/focus_cycle_indicator.c'; fi` openbox/openbox_openbox-focus_cycle_popup.o: openbox/focus_cycle_popup.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-focus_cycle_popup.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-focus_cycle_popup.Tpo -c -o openbox/openbox_openbox-focus_cycle_popup.o `test -f 'openbox/focus_cycle_popup.c' || echo '$(srcdir)/'`openbox/focus_cycle_popup.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-focus_cycle_popup.Tpo openbox/$(DEPDIR)/openbox_openbox-focus_cycle_popup.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/focus_cycle_popup.c' object='openbox/openbox_openbox-focus_cycle_popup.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-focus_cycle_popup.o `test -f 'openbox/focus_cycle_popup.c' || echo '$(srcdir)/'`openbox/focus_cycle_popup.c openbox/openbox_openbox-focus_cycle_popup.obj: openbox/focus_cycle_popup.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-focus_cycle_popup.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-focus_cycle_popup.Tpo -c -o openbox/openbox_openbox-focus_cycle_popup.obj `if test -f 'openbox/focus_cycle_popup.c'; then $(CYGPATH_W) 'openbox/focus_cycle_popup.c'; else $(CYGPATH_W) '$(srcdir)/openbox/focus_cycle_popup.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-focus_cycle_popup.Tpo openbox/$(DEPDIR)/openbox_openbox-focus_cycle_popup.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/focus_cycle_popup.c' object='openbox/openbox_openbox-focus_cycle_popup.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-focus_cycle_popup.obj `if test -f 'openbox/focus_cycle_popup.c'; then $(CYGPATH_W) 'openbox/focus_cycle_popup.c'; else $(CYGPATH_W) '$(srcdir)/openbox/focus_cycle_popup.c'; fi` openbox/openbox_openbox-frame.o: openbox/frame.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-frame.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-frame.Tpo -c -o openbox/openbox_openbox-frame.o `test -f 'openbox/frame.c' || echo '$(srcdir)/'`openbox/frame.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-frame.Tpo openbox/$(DEPDIR)/openbox_openbox-frame.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/frame.c' object='openbox/openbox_openbox-frame.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-frame.o `test -f 'openbox/frame.c' || echo '$(srcdir)/'`openbox/frame.c openbox/openbox_openbox-frame.obj: openbox/frame.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-frame.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-frame.Tpo -c -o openbox/openbox_openbox-frame.obj `if test -f 'openbox/frame.c'; then $(CYGPATH_W) 'openbox/frame.c'; else $(CYGPATH_W) '$(srcdir)/openbox/frame.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-frame.Tpo openbox/$(DEPDIR)/openbox_openbox-frame.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/frame.c' object='openbox/openbox_openbox-frame.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-frame.obj `if test -f 'openbox/frame.c'; then $(CYGPATH_W) 'openbox/frame.c'; else $(CYGPATH_W) '$(srcdir)/openbox/frame.c'; fi` openbox/openbox_openbox-framerender.o: openbox/framerender.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-framerender.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-framerender.Tpo -c -o openbox/openbox_openbox-framerender.o `test -f 'openbox/framerender.c' || echo '$(srcdir)/'`openbox/framerender.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-framerender.Tpo openbox/$(DEPDIR)/openbox_openbox-framerender.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/framerender.c' object='openbox/openbox_openbox-framerender.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-framerender.o `test -f 'openbox/framerender.c' || echo '$(srcdir)/'`openbox/framerender.c openbox/openbox_openbox-framerender.obj: openbox/framerender.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-framerender.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-framerender.Tpo -c -o openbox/openbox_openbox-framerender.obj `if test -f 'openbox/framerender.c'; then $(CYGPATH_W) 'openbox/framerender.c'; else $(CYGPATH_W) '$(srcdir)/openbox/framerender.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-framerender.Tpo openbox/$(DEPDIR)/openbox_openbox-framerender.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/framerender.c' object='openbox/openbox_openbox-framerender.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-framerender.obj `if test -f 'openbox/framerender.c'; then $(CYGPATH_W) 'openbox/framerender.c'; else $(CYGPATH_W) '$(srcdir)/openbox/framerender.c'; fi` openbox/openbox_openbox-grab.o: openbox/grab.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-grab.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-grab.Tpo -c -o openbox/openbox_openbox-grab.o `test -f 'openbox/grab.c' || echo '$(srcdir)/'`openbox/grab.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-grab.Tpo openbox/$(DEPDIR)/openbox_openbox-grab.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/grab.c' object='openbox/openbox_openbox-grab.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-grab.o `test -f 'openbox/grab.c' || echo '$(srcdir)/'`openbox/grab.c openbox/openbox_openbox-grab.obj: openbox/grab.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-grab.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-grab.Tpo -c -o openbox/openbox_openbox-grab.obj `if test -f 'openbox/grab.c'; then $(CYGPATH_W) 'openbox/grab.c'; else $(CYGPATH_W) '$(srcdir)/openbox/grab.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-grab.Tpo openbox/$(DEPDIR)/openbox_openbox-grab.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/grab.c' object='openbox/openbox_openbox-grab.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-grab.obj `if test -f 'openbox/grab.c'; then $(CYGPATH_W) 'openbox/grab.c'; else $(CYGPATH_W) '$(srcdir)/openbox/grab.c'; fi` openbox/openbox_openbox-group.o: openbox/group.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-group.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-group.Tpo -c -o openbox/openbox_openbox-group.o `test -f 'openbox/group.c' || echo '$(srcdir)/'`openbox/group.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-group.Tpo openbox/$(DEPDIR)/openbox_openbox-group.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/group.c' object='openbox/openbox_openbox-group.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-group.o `test -f 'openbox/group.c' || echo '$(srcdir)/'`openbox/group.c openbox/openbox_openbox-group.obj: openbox/group.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-group.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-group.Tpo -c -o openbox/openbox_openbox-group.obj `if test -f 'openbox/group.c'; then $(CYGPATH_W) 'openbox/group.c'; else $(CYGPATH_W) '$(srcdir)/openbox/group.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-group.Tpo openbox/$(DEPDIR)/openbox_openbox-group.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/group.c' object='openbox/openbox_openbox-group.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-group.obj `if test -f 'openbox/group.c'; then $(CYGPATH_W) 'openbox/group.c'; else $(CYGPATH_W) '$(srcdir)/openbox/group.c'; fi` openbox/openbox_openbox-keyboard.o: openbox/keyboard.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-keyboard.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-keyboard.Tpo -c -o openbox/openbox_openbox-keyboard.o `test -f 'openbox/keyboard.c' || echo '$(srcdir)/'`openbox/keyboard.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-keyboard.Tpo openbox/$(DEPDIR)/openbox_openbox-keyboard.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/keyboard.c' object='openbox/openbox_openbox-keyboard.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-keyboard.o `test -f 'openbox/keyboard.c' || echo '$(srcdir)/'`openbox/keyboard.c openbox/openbox_openbox-keyboard.obj: openbox/keyboard.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-keyboard.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-keyboard.Tpo -c -o openbox/openbox_openbox-keyboard.obj `if test -f 'openbox/keyboard.c'; then $(CYGPATH_W) 'openbox/keyboard.c'; else $(CYGPATH_W) '$(srcdir)/openbox/keyboard.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-keyboard.Tpo openbox/$(DEPDIR)/openbox_openbox-keyboard.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/keyboard.c' object='openbox/openbox_openbox-keyboard.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-keyboard.obj `if test -f 'openbox/keyboard.c'; then $(CYGPATH_W) 'openbox/keyboard.c'; else $(CYGPATH_W) '$(srcdir)/openbox/keyboard.c'; fi` openbox/openbox_openbox-keytree.o: openbox/keytree.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-keytree.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-keytree.Tpo -c -o openbox/openbox_openbox-keytree.o `test -f 'openbox/keytree.c' || echo '$(srcdir)/'`openbox/keytree.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-keytree.Tpo openbox/$(DEPDIR)/openbox_openbox-keytree.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/keytree.c' object='openbox/openbox_openbox-keytree.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-keytree.o `test -f 'openbox/keytree.c' || echo '$(srcdir)/'`openbox/keytree.c openbox/openbox_openbox-keytree.obj: openbox/keytree.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-keytree.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-keytree.Tpo -c -o openbox/openbox_openbox-keytree.obj `if test -f 'openbox/keytree.c'; then $(CYGPATH_W) 'openbox/keytree.c'; else $(CYGPATH_W) '$(srcdir)/openbox/keytree.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-keytree.Tpo openbox/$(DEPDIR)/openbox_openbox-keytree.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/keytree.c' object='openbox/openbox_openbox-keytree.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-keytree.obj `if test -f 'openbox/keytree.c'; then $(CYGPATH_W) 'openbox/keytree.c'; else $(CYGPATH_W) '$(srcdir)/openbox/keytree.c'; fi` openbox/openbox_openbox-menuframe.o: openbox/menuframe.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-menuframe.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-menuframe.Tpo -c -o openbox/openbox_openbox-menuframe.o `test -f 'openbox/menuframe.c' || echo '$(srcdir)/'`openbox/menuframe.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-menuframe.Tpo openbox/$(DEPDIR)/openbox_openbox-menuframe.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/menuframe.c' object='openbox/openbox_openbox-menuframe.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-menuframe.o `test -f 'openbox/menuframe.c' || echo '$(srcdir)/'`openbox/menuframe.c openbox/openbox_openbox-menuframe.obj: openbox/menuframe.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-menuframe.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-menuframe.Tpo -c -o openbox/openbox_openbox-menuframe.obj `if test -f 'openbox/menuframe.c'; then $(CYGPATH_W) 'openbox/menuframe.c'; else $(CYGPATH_W) '$(srcdir)/openbox/menuframe.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-menuframe.Tpo openbox/$(DEPDIR)/openbox_openbox-menuframe.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/menuframe.c' object='openbox/openbox_openbox-menuframe.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-menuframe.obj `if test -f 'openbox/menuframe.c'; then $(CYGPATH_W) 'openbox/menuframe.c'; else $(CYGPATH_W) '$(srcdir)/openbox/menuframe.c'; fi` openbox/openbox_openbox-menu.o: openbox/menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-menu.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-menu.Tpo -c -o openbox/openbox_openbox-menu.o `test -f 'openbox/menu.c' || echo '$(srcdir)/'`openbox/menu.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-menu.Tpo openbox/$(DEPDIR)/openbox_openbox-menu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/menu.c' object='openbox/openbox_openbox-menu.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-menu.o `test -f 'openbox/menu.c' || echo '$(srcdir)/'`openbox/menu.c openbox/openbox_openbox-menu.obj: openbox/menu.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-menu.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-menu.Tpo -c -o openbox/openbox_openbox-menu.obj `if test -f 'openbox/menu.c'; then $(CYGPATH_W) 'openbox/menu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/menu.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-menu.Tpo openbox/$(DEPDIR)/openbox_openbox-menu.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/menu.c' object='openbox/openbox_openbox-menu.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-menu.obj `if test -f 'openbox/menu.c'; then $(CYGPATH_W) 'openbox/menu.c'; else $(CYGPATH_W) '$(srcdir)/openbox/menu.c'; fi` openbox/openbox_openbox-mouse.o: openbox/mouse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-mouse.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-mouse.Tpo -c -o openbox/openbox_openbox-mouse.o `test -f 'openbox/mouse.c' || echo '$(srcdir)/'`openbox/mouse.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-mouse.Tpo openbox/$(DEPDIR)/openbox_openbox-mouse.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/mouse.c' object='openbox/openbox_openbox-mouse.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-mouse.o `test -f 'openbox/mouse.c' || echo '$(srcdir)/'`openbox/mouse.c openbox/openbox_openbox-mouse.obj: openbox/mouse.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-mouse.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-mouse.Tpo -c -o openbox/openbox_openbox-mouse.obj `if test -f 'openbox/mouse.c'; then $(CYGPATH_W) 'openbox/mouse.c'; else $(CYGPATH_W) '$(srcdir)/openbox/mouse.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-mouse.Tpo openbox/$(DEPDIR)/openbox_openbox-mouse.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/mouse.c' object='openbox/openbox_openbox-mouse.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-mouse.obj `if test -f 'openbox/mouse.c'; then $(CYGPATH_W) 'openbox/mouse.c'; else $(CYGPATH_W) '$(srcdir)/openbox/mouse.c'; fi` openbox/openbox_openbox-moveresize.o: openbox/moveresize.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-moveresize.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-moveresize.Tpo -c -o openbox/openbox_openbox-moveresize.o `test -f 'openbox/moveresize.c' || echo '$(srcdir)/'`openbox/moveresize.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-moveresize.Tpo openbox/$(DEPDIR)/openbox_openbox-moveresize.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/moveresize.c' object='openbox/openbox_openbox-moveresize.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-moveresize.o `test -f 'openbox/moveresize.c' || echo '$(srcdir)/'`openbox/moveresize.c openbox/openbox_openbox-moveresize.obj: openbox/moveresize.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-moveresize.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-moveresize.Tpo -c -o openbox/openbox_openbox-moveresize.obj `if test -f 'openbox/moveresize.c'; then $(CYGPATH_W) 'openbox/moveresize.c'; else $(CYGPATH_W) '$(srcdir)/openbox/moveresize.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-moveresize.Tpo openbox/$(DEPDIR)/openbox_openbox-moveresize.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/moveresize.c' object='openbox/openbox_openbox-moveresize.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-moveresize.obj `if test -f 'openbox/moveresize.c'; then $(CYGPATH_W) 'openbox/moveresize.c'; else $(CYGPATH_W) '$(srcdir)/openbox/moveresize.c'; fi` openbox/openbox_openbox-openbox.o: openbox/openbox.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-openbox.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-openbox.Tpo -c -o openbox/openbox_openbox-openbox.o `test -f 'openbox/openbox.c' || echo '$(srcdir)/'`openbox/openbox.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-openbox.Tpo openbox/$(DEPDIR)/openbox_openbox-openbox.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/openbox.c' object='openbox/openbox_openbox-openbox.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-openbox.o `test -f 'openbox/openbox.c' || echo '$(srcdir)/'`openbox/openbox.c openbox/openbox_openbox-openbox.obj: openbox/openbox.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-openbox.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-openbox.Tpo -c -o openbox/openbox_openbox-openbox.obj `if test -f 'openbox/openbox.c'; then $(CYGPATH_W) 'openbox/openbox.c'; else $(CYGPATH_W) '$(srcdir)/openbox/openbox.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-openbox.Tpo openbox/$(DEPDIR)/openbox_openbox-openbox.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/openbox.c' object='openbox/openbox_openbox-openbox.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-openbox.obj `if test -f 'openbox/openbox.c'; then $(CYGPATH_W) 'openbox/openbox.c'; else $(CYGPATH_W) '$(srcdir)/openbox/openbox.c'; fi` openbox/openbox_openbox-ping.o: openbox/ping.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-ping.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-ping.Tpo -c -o openbox/openbox_openbox-ping.o `test -f 'openbox/ping.c' || echo '$(srcdir)/'`openbox/ping.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-ping.Tpo openbox/$(DEPDIR)/openbox_openbox-ping.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/ping.c' object='openbox/openbox_openbox-ping.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-ping.o `test -f 'openbox/ping.c' || echo '$(srcdir)/'`openbox/ping.c openbox/openbox_openbox-ping.obj: openbox/ping.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-ping.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-ping.Tpo -c -o openbox/openbox_openbox-ping.obj `if test -f 'openbox/ping.c'; then $(CYGPATH_W) 'openbox/ping.c'; else $(CYGPATH_W) '$(srcdir)/openbox/ping.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-ping.Tpo openbox/$(DEPDIR)/openbox_openbox-ping.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/ping.c' object='openbox/openbox_openbox-ping.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-ping.obj `if test -f 'openbox/ping.c'; then $(CYGPATH_W) 'openbox/ping.c'; else $(CYGPATH_W) '$(srcdir)/openbox/ping.c'; fi` openbox/openbox_openbox-place.o: openbox/place.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-place.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-place.Tpo -c -o openbox/openbox_openbox-place.o `test -f 'openbox/place.c' || echo '$(srcdir)/'`openbox/place.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-place.Tpo openbox/$(DEPDIR)/openbox_openbox-place.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/place.c' object='openbox/openbox_openbox-place.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-place.o `test -f 'openbox/place.c' || echo '$(srcdir)/'`openbox/place.c openbox/openbox_openbox-place.obj: openbox/place.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-place.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-place.Tpo -c -o openbox/openbox_openbox-place.obj `if test -f 'openbox/place.c'; then $(CYGPATH_W) 'openbox/place.c'; else $(CYGPATH_W) '$(srcdir)/openbox/place.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-place.Tpo openbox/$(DEPDIR)/openbox_openbox-place.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/place.c' object='openbox/openbox_openbox-place.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-place.obj `if test -f 'openbox/place.c'; then $(CYGPATH_W) 'openbox/place.c'; else $(CYGPATH_W) '$(srcdir)/openbox/place.c'; fi` openbox/openbox_openbox-place_overlap.o: openbox/place_overlap.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-place_overlap.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-place_overlap.Tpo -c -o openbox/openbox_openbox-place_overlap.o `test -f 'openbox/place_overlap.c' || echo '$(srcdir)/'`openbox/place_overlap.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-place_overlap.Tpo openbox/$(DEPDIR)/openbox_openbox-place_overlap.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/place_overlap.c' object='openbox/openbox_openbox-place_overlap.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-place_overlap.o `test -f 'openbox/place_overlap.c' || echo '$(srcdir)/'`openbox/place_overlap.c openbox/openbox_openbox-place_overlap.obj: openbox/place_overlap.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-place_overlap.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-place_overlap.Tpo -c -o openbox/openbox_openbox-place_overlap.obj `if test -f 'openbox/place_overlap.c'; then $(CYGPATH_W) 'openbox/place_overlap.c'; else $(CYGPATH_W) '$(srcdir)/openbox/place_overlap.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-place_overlap.Tpo openbox/$(DEPDIR)/openbox_openbox-place_overlap.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/place_overlap.c' object='openbox/openbox_openbox-place_overlap.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-place_overlap.obj `if test -f 'openbox/place_overlap.c'; then $(CYGPATH_W) 'openbox/place_overlap.c'; else $(CYGPATH_W) '$(srcdir)/openbox/place_overlap.c'; fi` openbox/openbox_openbox-prompt.o: openbox/prompt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-prompt.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-prompt.Tpo -c -o openbox/openbox_openbox-prompt.o `test -f 'openbox/prompt.c' || echo '$(srcdir)/'`openbox/prompt.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-prompt.Tpo openbox/$(DEPDIR)/openbox_openbox-prompt.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/prompt.c' object='openbox/openbox_openbox-prompt.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-prompt.o `test -f 'openbox/prompt.c' || echo '$(srcdir)/'`openbox/prompt.c openbox/openbox_openbox-prompt.obj: openbox/prompt.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-prompt.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-prompt.Tpo -c -o openbox/openbox_openbox-prompt.obj `if test -f 'openbox/prompt.c'; then $(CYGPATH_W) 'openbox/prompt.c'; else $(CYGPATH_W) '$(srcdir)/openbox/prompt.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-prompt.Tpo openbox/$(DEPDIR)/openbox_openbox-prompt.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/prompt.c' object='openbox/openbox_openbox-prompt.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-prompt.obj `if test -f 'openbox/prompt.c'; then $(CYGPATH_W) 'openbox/prompt.c'; else $(CYGPATH_W) '$(srcdir)/openbox/prompt.c'; fi` openbox/openbox_openbox-popup.o: openbox/popup.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-popup.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-popup.Tpo -c -o openbox/openbox_openbox-popup.o `test -f 'openbox/popup.c' || echo '$(srcdir)/'`openbox/popup.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-popup.Tpo openbox/$(DEPDIR)/openbox_openbox-popup.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/popup.c' object='openbox/openbox_openbox-popup.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-popup.o `test -f 'openbox/popup.c' || echo '$(srcdir)/'`openbox/popup.c openbox/openbox_openbox-popup.obj: openbox/popup.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-popup.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-popup.Tpo -c -o openbox/openbox_openbox-popup.obj `if test -f 'openbox/popup.c'; then $(CYGPATH_W) 'openbox/popup.c'; else $(CYGPATH_W) '$(srcdir)/openbox/popup.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-popup.Tpo openbox/$(DEPDIR)/openbox_openbox-popup.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/popup.c' object='openbox/openbox_openbox-popup.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-popup.obj `if test -f 'openbox/popup.c'; then $(CYGPATH_W) 'openbox/popup.c'; else $(CYGPATH_W) '$(srcdir)/openbox/popup.c'; fi` openbox/openbox_openbox-resist.o: openbox/resist.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-resist.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-resist.Tpo -c -o openbox/openbox_openbox-resist.o `test -f 'openbox/resist.c' || echo '$(srcdir)/'`openbox/resist.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-resist.Tpo openbox/$(DEPDIR)/openbox_openbox-resist.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/resist.c' object='openbox/openbox_openbox-resist.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-resist.o `test -f 'openbox/resist.c' || echo '$(srcdir)/'`openbox/resist.c openbox/openbox_openbox-resist.obj: openbox/resist.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-resist.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-resist.Tpo -c -o openbox/openbox_openbox-resist.obj `if test -f 'openbox/resist.c'; then $(CYGPATH_W) 'openbox/resist.c'; else $(CYGPATH_W) '$(srcdir)/openbox/resist.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-resist.Tpo openbox/$(DEPDIR)/openbox_openbox-resist.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/resist.c' object='openbox/openbox_openbox-resist.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-resist.obj `if test -f 'openbox/resist.c'; then $(CYGPATH_W) 'openbox/resist.c'; else $(CYGPATH_W) '$(srcdir)/openbox/resist.c'; fi` openbox/openbox_openbox-screen.o: openbox/screen.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-screen.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-screen.Tpo -c -o openbox/openbox_openbox-screen.o `test -f 'openbox/screen.c' || echo '$(srcdir)/'`openbox/screen.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-screen.Tpo openbox/$(DEPDIR)/openbox_openbox-screen.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/screen.c' object='openbox/openbox_openbox-screen.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-screen.o `test -f 'openbox/screen.c' || echo '$(srcdir)/'`openbox/screen.c openbox/openbox_openbox-screen.obj: openbox/screen.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-screen.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-screen.Tpo -c -o openbox/openbox_openbox-screen.obj `if test -f 'openbox/screen.c'; then $(CYGPATH_W) 'openbox/screen.c'; else $(CYGPATH_W) '$(srcdir)/openbox/screen.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-screen.Tpo openbox/$(DEPDIR)/openbox_openbox-screen.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/screen.c' object='openbox/openbox_openbox-screen.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-screen.obj `if test -f 'openbox/screen.c'; then $(CYGPATH_W) 'openbox/screen.c'; else $(CYGPATH_W) '$(srcdir)/openbox/screen.c'; fi` openbox/openbox_openbox-session.o: openbox/session.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-session.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-session.Tpo -c -o openbox/openbox_openbox-session.o `test -f 'openbox/session.c' || echo '$(srcdir)/'`openbox/session.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-session.Tpo openbox/$(DEPDIR)/openbox_openbox-session.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/session.c' object='openbox/openbox_openbox-session.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-session.o `test -f 'openbox/session.c' || echo '$(srcdir)/'`openbox/session.c openbox/openbox_openbox-session.obj: openbox/session.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-session.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-session.Tpo -c -o openbox/openbox_openbox-session.obj `if test -f 'openbox/session.c'; then $(CYGPATH_W) 'openbox/session.c'; else $(CYGPATH_W) '$(srcdir)/openbox/session.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-session.Tpo openbox/$(DEPDIR)/openbox_openbox-session.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/session.c' object='openbox/openbox_openbox-session.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-session.obj `if test -f 'openbox/session.c'; then $(CYGPATH_W) 'openbox/session.c'; else $(CYGPATH_W) '$(srcdir)/openbox/session.c'; fi` openbox/openbox_openbox-stacking.o: openbox/stacking.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-stacking.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-stacking.Tpo -c -o openbox/openbox_openbox-stacking.o `test -f 'openbox/stacking.c' || echo '$(srcdir)/'`openbox/stacking.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-stacking.Tpo openbox/$(DEPDIR)/openbox_openbox-stacking.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/stacking.c' object='openbox/openbox_openbox-stacking.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-stacking.o `test -f 'openbox/stacking.c' || echo '$(srcdir)/'`openbox/stacking.c openbox/openbox_openbox-stacking.obj: openbox/stacking.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-stacking.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-stacking.Tpo -c -o openbox/openbox_openbox-stacking.obj `if test -f 'openbox/stacking.c'; then $(CYGPATH_W) 'openbox/stacking.c'; else $(CYGPATH_W) '$(srcdir)/openbox/stacking.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-stacking.Tpo openbox/$(DEPDIR)/openbox_openbox-stacking.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/stacking.c' object='openbox/openbox_openbox-stacking.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-stacking.obj `if test -f 'openbox/stacking.c'; then $(CYGPATH_W) 'openbox/stacking.c'; else $(CYGPATH_W) '$(srcdir)/openbox/stacking.c'; fi` openbox/openbox_openbox-startupnotify.o: openbox/startupnotify.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-startupnotify.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-startupnotify.Tpo -c -o openbox/openbox_openbox-startupnotify.o `test -f 'openbox/startupnotify.c' || echo '$(srcdir)/'`openbox/startupnotify.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-startupnotify.Tpo openbox/$(DEPDIR)/openbox_openbox-startupnotify.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/startupnotify.c' object='openbox/openbox_openbox-startupnotify.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-startupnotify.o `test -f 'openbox/startupnotify.c' || echo '$(srcdir)/'`openbox/startupnotify.c openbox/openbox_openbox-startupnotify.obj: openbox/startupnotify.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-startupnotify.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-startupnotify.Tpo -c -o openbox/openbox_openbox-startupnotify.obj `if test -f 'openbox/startupnotify.c'; then $(CYGPATH_W) 'openbox/startupnotify.c'; else $(CYGPATH_W) '$(srcdir)/openbox/startupnotify.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-startupnotify.Tpo openbox/$(DEPDIR)/openbox_openbox-startupnotify.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/startupnotify.c' object='openbox/openbox_openbox-startupnotify.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-startupnotify.obj `if test -f 'openbox/startupnotify.c'; then $(CYGPATH_W) 'openbox/startupnotify.c'; else $(CYGPATH_W) '$(srcdir)/openbox/startupnotify.c'; fi` openbox/openbox_openbox-translate.o: openbox/translate.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-translate.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-translate.Tpo -c -o openbox/openbox_openbox-translate.o `test -f 'openbox/translate.c' || echo '$(srcdir)/'`openbox/translate.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-translate.Tpo openbox/$(DEPDIR)/openbox_openbox-translate.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/translate.c' object='openbox/openbox_openbox-translate.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-translate.o `test -f 'openbox/translate.c' || echo '$(srcdir)/'`openbox/translate.c openbox/openbox_openbox-translate.obj: openbox/translate.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-translate.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-translate.Tpo -c -o openbox/openbox_openbox-translate.obj `if test -f 'openbox/translate.c'; then $(CYGPATH_W) 'openbox/translate.c'; else $(CYGPATH_W) '$(srcdir)/openbox/translate.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-translate.Tpo openbox/$(DEPDIR)/openbox_openbox-translate.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/translate.c' object='openbox/openbox_openbox-translate.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-translate.obj `if test -f 'openbox/translate.c'; then $(CYGPATH_W) 'openbox/translate.c'; else $(CYGPATH_W) '$(srcdir)/openbox/translate.c'; fi` openbox/openbox_openbox-window.o: openbox/window.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-window.o -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-window.Tpo -c -o openbox/openbox_openbox-window.o `test -f 'openbox/window.c' || echo '$(srcdir)/'`openbox/window.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-window.Tpo openbox/$(DEPDIR)/openbox_openbox-window.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/window.c' object='openbox/openbox_openbox-window.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-window.o `test -f 'openbox/window.c' || echo '$(srcdir)/'`openbox/window.c openbox/openbox_openbox-window.obj: openbox/window.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT openbox/openbox_openbox-window.obj -MD -MP -MF openbox/$(DEPDIR)/openbox_openbox-window.Tpo -c -o openbox/openbox_openbox-window.obj `if test -f 'openbox/window.c'; then $(CYGPATH_W) 'openbox/window.c'; else $(CYGPATH_W) '$(srcdir)/openbox/window.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) openbox/$(DEPDIR)/openbox_openbox-window.Tpo openbox/$(DEPDIR)/openbox_openbox-window.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openbox/window.c' object='openbox/openbox_openbox-window.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(openbox_openbox_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o openbox/openbox_openbox-window.obj `if test -f 'openbox/window.c'; then $(CYGPATH_W) 'openbox/window.c'; else $(CYGPATH_W) '$(srcdir)/openbox/window.c'; fi` tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.o: tools/gdm-control/gdm-control.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_gdm_control_gdm_control_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.o -MD -MP -MF tools/gdm-control/$(DEPDIR)/tools_gdm_control_gdm_control-gdm-control.Tpo -c -o tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.o `test -f 'tools/gdm-control/gdm-control.c' || echo '$(srcdir)/'`tools/gdm-control/gdm-control.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) tools/gdm-control/$(DEPDIR)/tools_gdm_control_gdm_control-gdm-control.Tpo tools/gdm-control/$(DEPDIR)/tools_gdm_control_gdm_control-gdm-control.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tools/gdm-control/gdm-control.c' object='tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_gdm_control_gdm_control_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.o `test -f 'tools/gdm-control/gdm-control.c' || echo '$(srcdir)/'`tools/gdm-control/gdm-control.c tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.obj: tools/gdm-control/gdm-control.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_gdm_control_gdm_control_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.obj -MD -MP -MF tools/gdm-control/$(DEPDIR)/tools_gdm_control_gdm_control-gdm-control.Tpo -c -o tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.obj `if test -f 'tools/gdm-control/gdm-control.c'; then $(CYGPATH_W) 'tools/gdm-control/gdm-control.c'; else $(CYGPATH_W) '$(srcdir)/tools/gdm-control/gdm-control.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) tools/gdm-control/$(DEPDIR)/tools_gdm_control_gdm_control-gdm-control.Tpo tools/gdm-control/$(DEPDIR)/tools_gdm_control_gdm_control-gdm-control.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tools/gdm-control/gdm-control.c' object='tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_gdm_control_gdm_control_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tools/gdm-control/tools_gdm_control_gdm_control-gdm-control.obj `if test -f 'tools/gdm-control/gdm-control.c'; then $(CYGPATH_W) 'tools/gdm-control/gdm-control.c'; else $(CYGPATH_W) '$(srcdir)/tools/gdm-control/gdm-control.c'; fi` tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.o: tools/gnome-panel-control/gnome-panel-control.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_gnome_panel_control_gnome_panel_control_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.o -MD -MP -MF tools/gnome-panel-control/$(DEPDIR)/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.Tpo -c -o tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.o `test -f 'tools/gnome-panel-control/gnome-panel-control.c' || echo '$(srcdir)/'`tools/gnome-panel-control/gnome-panel-control.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) tools/gnome-panel-control/$(DEPDIR)/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.Tpo tools/gnome-panel-control/$(DEPDIR)/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tools/gnome-panel-control/gnome-panel-control.c' object='tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_gnome_panel_control_gnome_panel_control_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.o `test -f 'tools/gnome-panel-control/gnome-panel-control.c' || echo '$(srcdir)/'`tools/gnome-panel-control/gnome-panel-control.c tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.obj: tools/gnome-panel-control/gnome-panel-control.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_gnome_panel_control_gnome_panel_control_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.obj -MD -MP -MF tools/gnome-panel-control/$(DEPDIR)/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.Tpo -c -o tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.obj `if test -f 'tools/gnome-panel-control/gnome-panel-control.c'; then $(CYGPATH_W) 'tools/gnome-panel-control/gnome-panel-control.c'; else $(CYGPATH_W) '$(srcdir)/tools/gnome-panel-control/gnome-panel-control.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) tools/gnome-panel-control/$(DEPDIR)/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.Tpo tools/gnome-panel-control/$(DEPDIR)/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tools/gnome-panel-control/gnome-panel-control.c' object='tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_gnome_panel_control_gnome_panel_control_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tools/gnome-panel-control/tools_gnome_panel_control_gnome_panel_control-gnome-panel-control.obj `if test -f 'tools/gnome-panel-control/gnome-panel-control.c'; then $(CYGPATH_W) 'tools/gnome-panel-control/gnome-panel-control.c'; else $(CYGPATH_W) '$(srcdir)/tools/gnome-panel-control/gnome-panel-control.c'; fi` tools/obxprop/tools_obxprop_obxprop-obxprop.o: tools/obxprop/obxprop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_obxprop_obxprop_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tools/obxprop/tools_obxprop_obxprop-obxprop.o -MD -MP -MF tools/obxprop/$(DEPDIR)/tools_obxprop_obxprop-obxprop.Tpo -c -o tools/obxprop/tools_obxprop_obxprop-obxprop.o `test -f 'tools/obxprop/obxprop.c' || echo '$(srcdir)/'`tools/obxprop/obxprop.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) tools/obxprop/$(DEPDIR)/tools_obxprop_obxprop-obxprop.Tpo tools/obxprop/$(DEPDIR)/tools_obxprop_obxprop-obxprop.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tools/obxprop/obxprop.c' object='tools/obxprop/tools_obxprop_obxprop-obxprop.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_obxprop_obxprop_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tools/obxprop/tools_obxprop_obxprop-obxprop.o `test -f 'tools/obxprop/obxprop.c' || echo '$(srcdir)/'`tools/obxprop/obxprop.c tools/obxprop/tools_obxprop_obxprop-obxprop.obj: tools/obxprop/obxprop.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_obxprop_obxprop_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT tools/obxprop/tools_obxprop_obxprop-obxprop.obj -MD -MP -MF tools/obxprop/$(DEPDIR)/tools_obxprop_obxprop-obxprop.Tpo -c -o tools/obxprop/tools_obxprop_obxprop-obxprop.obj `if test -f 'tools/obxprop/obxprop.c'; then $(CYGPATH_W) 'tools/obxprop/obxprop.c'; else $(CYGPATH_W) '$(srcdir)/tools/obxprop/obxprop.c'; fi` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) tools/obxprop/$(DEPDIR)/tools_obxprop_obxprop-obxprop.Tpo tools/obxprop/$(DEPDIR)/tools_obxprop_obxprop-obxprop.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tools/obxprop/obxprop.c' object='tools/obxprop/tools_obxprop_obxprop-obxprop.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(tools_obxprop_obxprop_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o tools/obxprop/tools_obxprop_obxprop-obxprop.obj `if test -f 'tools/obxprop/obxprop.c'; then $(CYGPATH_W) 'tools/obxprop/obxprop.c'; else $(CYGPATH_W) '$(srcdir)/tools/obxprop/obxprop.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs -rm -rf obrender/.libs obrender/_libs -rm -rf obt/.libs obt/_libs -rm -rf openbox/.libs openbox/_libs -rm -rf tools/gdm-control/.libs tools/gdm-control/_libs -rm -rf tools/gnome-panel-control/.libs tools/gnome-panel-control/_libs -rm -rf tools/obxprop/.libs tools/obxprop/_libs distclean-libtool: -rm -f libtool config.lt install-man1: $(nodist_man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(nodist_man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(nodist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-dist_appsDATA: $(dist_apps_DATA) @$(NORMAL_INSTALL) @list='$(dist_apps_DATA)'; test -n "$(appsdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(appsdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(appsdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appsdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(appsdir)" || exit $$?; \ done uninstall-dist_appsDATA: @$(NORMAL_UNINSTALL) @list='$(dist_apps_DATA)'; test -n "$(appsdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(appsdir)'; $(am__uninstall_files_from_dir) install-dist_artwizboxed_themeDATA: $(dist_artwizboxed_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_artwizboxed_theme_DATA)'; test -n "$(artwizboxed_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(artwizboxed_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(artwizboxed_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(artwizboxed_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(artwizboxed_themedir)" || exit $$?; \ done uninstall-dist_artwizboxed_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_artwizboxed_theme_DATA)'; test -n "$(artwizboxed_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(artwizboxed_themedir)'; $(am__uninstall_files_from_dir) install-dist_bear2_themeDATA: $(dist_bear2_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_bear2_theme_DATA)'; test -n "$(bear2_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bear2_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bear2_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(bear2_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(bear2_themedir)" || exit $$?; \ done uninstall-dist_bear2_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_bear2_theme_DATA)'; test -n "$(bear2_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(bear2_themedir)'; $(am__uninstall_files_from_dir) install-dist_clearlooks34_themeDATA: $(dist_clearlooks34_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_clearlooks34_theme_DATA)'; test -n "$(clearlooks34_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(clearlooks34_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(clearlooks34_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(clearlooks34_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(clearlooks34_themedir)" || exit $$?; \ done uninstall-dist_clearlooks34_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_clearlooks34_theme_DATA)'; test -n "$(clearlooks34_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(clearlooks34_themedir)'; $(am__uninstall_files_from_dir) install-dist_clearlooks_themeDATA: $(dist_clearlooks_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_clearlooks_theme_DATA)'; test -n "$(clearlooks_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(clearlooks_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(clearlooks_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(clearlooks_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(clearlooks_themedir)" || exit $$?; \ done uninstall-dist_clearlooks_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_clearlooks_theme_DATA)'; test -n "$(clearlooks_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(clearlooks_themedir)'; $(am__uninstall_files_from_dir) install-dist_clearlooksolive_themeDATA: $(dist_clearlooksolive_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_clearlooksolive_theme_DATA)'; test -n "$(clearlooksolive_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(clearlooksolive_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(clearlooksolive_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(clearlooksolive_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(clearlooksolive_themedir)" || exit $$?; \ done uninstall-dist_clearlooksolive_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_clearlooksolive_theme_DATA)'; test -n "$(clearlooksolive_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(clearlooksolive_themedir)'; $(am__uninstall_files_from_dir) install-dist_docDATA: $(dist_doc_DATA) @$(NORMAL_INSTALL) @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ done uninstall-dist_docDATA: @$(NORMAL_UNINSTALL) @list='$(dist_doc_DATA)'; test -n "$(docdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir) install-dist_docxbmDATA: $(dist_docxbm_DATA) @$(NORMAL_INSTALL) @list='$(dist_docxbm_DATA)'; test -n "$(docxbmdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(docxbmdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(docxbmdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docxbmdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(docxbmdir)" || exit $$?; \ done uninstall-dist_docxbmDATA: @$(NORMAL_UNINSTALL) @list='$(dist_docxbm_DATA)'; test -n "$(docxbmdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(docxbmdir)'; $(am__uninstall_files_from_dir) install-dist_gnomesessionDATA: $(dist_gnomesession_DATA) @$(NORMAL_INSTALL) @list='$(dist_gnomesession_DATA)'; test -n "$(gnomesessiondir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(gnomesessiondir)'"; \ $(MKDIR_P) "$(DESTDIR)$(gnomesessiondir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gnomesessiondir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(gnomesessiondir)" || exit $$?; \ done uninstall-dist_gnomesessionDATA: @$(NORMAL_UNINSTALL) @list='$(dist_gnomesession_DATA)'; test -n "$(gnomesessiondir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(gnomesessiondir)'; $(am__uninstall_files_from_dir) install-dist_gnomewmfilesDATA: $(dist_gnomewmfiles_DATA) @$(NORMAL_INSTALL) @list='$(dist_gnomewmfiles_DATA)'; test -n "$(gnomewmfilesdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(gnomewmfilesdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(gnomewmfilesdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gnomewmfilesdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(gnomewmfilesdir)" || exit $$?; \ done uninstall-dist_gnomewmfilesDATA: @$(NORMAL_UNINSTALL) @list='$(dist_gnomewmfiles_DATA)'; test -n "$(gnomewmfilesdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(gnomewmfilesdir)'; $(am__uninstall_files_from_dir) install-dist_mikachu_themeDATA: $(dist_mikachu_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_mikachu_theme_DATA)'; test -n "$(mikachu_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(mikachu_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(mikachu_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(mikachu_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(mikachu_themedir)" || exit $$?; \ done uninstall-dist_mikachu_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_mikachu_theme_DATA)'; test -n "$(mikachu_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(mikachu_themedir)'; $(am__uninstall_files_from_dir) install-dist_natura_themeDATA: $(dist_natura_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_natura_theme_DATA)'; test -n "$(natura_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(natura_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(natura_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(natura_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(natura_themedir)" || exit $$?; \ done uninstall-dist_natura_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_natura_theme_DATA)'; test -n "$(natura_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(natura_themedir)'; $(am__uninstall_files_from_dir) install-dist_onyx_themeDATA: $(dist_onyx_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_onyx_theme_DATA)'; test -n "$(onyx_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(onyx_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(onyx_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(onyx_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(onyx_themedir)" || exit $$?; \ done uninstall-dist_onyx_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_onyx_theme_DATA)'; test -n "$(onyx_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(onyx_themedir)'; $(am__uninstall_files_from_dir) install-dist_onyxcitrus_themeDATA: $(dist_onyxcitrus_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_onyxcitrus_theme_DATA)'; test -n "$(onyxcitrus_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(onyxcitrus_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(onyxcitrus_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(onyxcitrus_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(onyxcitrus_themedir)" || exit $$?; \ done uninstall-dist_onyxcitrus_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_onyxcitrus_theme_DATA)'; test -n "$(onyxcitrus_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(onyxcitrus_themedir)'; $(am__uninstall_files_from_dir) install-dist_orang_themeDATA: $(dist_orang_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_orang_theme_DATA)'; test -n "$(orang_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(orang_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(orang_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(orang_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(orang_themedir)" || exit $$?; \ done uninstall-dist_orang_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_orang_theme_DATA)'; test -n "$(orang_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(orang_themedir)'; $(am__uninstall_files_from_dir) install-dist_pixmapDATA: $(dist_pixmap_DATA) @$(NORMAL_INSTALL) @list='$(dist_pixmap_DATA)'; test -n "$(pixmapdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pixmapdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pixmapdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pixmapdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pixmapdir)" || exit $$?; \ done uninstall-dist_pixmapDATA: @$(NORMAL_UNINSTALL) @list='$(dist_pixmap_DATA)'; test -n "$(pixmapdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pixmapdir)'; $(am__uninstall_files_from_dir) install-dist_rcDATA: $(dist_rc_DATA) @$(NORMAL_INSTALL) @list='$(dist_rc_DATA)'; test -n "$(rcdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(rcdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(rcdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(rcdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(rcdir)" || exit $$?; \ done uninstall-dist_rcDATA: @$(NORMAL_UNINSTALL) @list='$(dist_rc_DATA)'; test -n "$(rcdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(rcdir)'; $(am__uninstall_files_from_dir) install-dist_syscrash_themeDATA: $(dist_syscrash_theme_DATA) @$(NORMAL_INSTALL) @list='$(dist_syscrash_theme_DATA)'; test -n "$(syscrash_themedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(syscrash_themedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(syscrash_themedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(syscrash_themedir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(syscrash_themedir)" || exit $$?; \ done uninstall-dist_syscrash_themeDATA: @$(NORMAL_UNINSTALL) @list='$(dist_syscrash_theme_DATA)'; test -n "$(syscrash_themedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(syscrash_themedir)'; $(am__uninstall_files_from_dir) install-nodist_pkgconfigDATA: $(nodist_pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(nodist_pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-nodist_pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(nodist_pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) install-nodist_xsessionsDATA: $(nodist_xsessions_DATA) @$(NORMAL_INSTALL) @list='$(nodist_xsessions_DATA)'; test -n "$(xsessionsdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(xsessionsdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(xsessionsdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(xsessionsdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(xsessionsdir)" || exit $$?; \ done uninstall-nodist_xsessionsDATA: @$(NORMAL_UNINSTALL) @list='$(nodist_xsessions_DATA)'; test -n "$(xsessionsdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(xsessionsdir)'; $(am__uninstall_files_from_dir) install-obtpubincludeHEADERS: $(obtpubinclude_HEADERS) @$(NORMAL_INSTALL) @list='$(obtpubinclude_HEADERS)'; test -n "$(obtpubincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(obtpubincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(obtpubincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(obtpubincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(obtpubincludedir)" || exit $$?; \ done uninstall-obtpubincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(obtpubinclude_HEADERS)'; test -n "$(obtpubincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(obtpubincludedir)'; $(am__uninstall_files_from_dir) install-rrpubincludeHEADERS: $(rrpubinclude_HEADERS) @$(NORMAL_INSTALL) @list='$(rrpubinclude_HEADERS)'; test -n "$(rrpubincludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(rrpubincludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(rrpubincludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(rrpubincludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(rrpubincludedir)" || exit $$?; \ done uninstall-rrpubincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(rrpubinclude_HEADERS)'; test -n "$(rrpubincludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(rrpubincludedir)'; $(am__uninstall_files_from_dir) # 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): @fail= 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; \ ($(am__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" $(RECURSIVE_CLEAN_TARGETS): @fail= 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; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__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; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ 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 || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @list='$(MANS)'; if test -n "$$list"; then \ list=`for p in $$list; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ if test -n "$$list" && \ grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ echo " typically \`make maintainer-clean' will remove them" >&2; \ exit 1; \ else :; fi; \ else :; fi $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -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 $(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=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(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) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod u+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(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 \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { 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 $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) check: check-recursive all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \ $(HEADERS) install-binPROGRAMS: install-libLTLIBRARIES installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(rcdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(rcdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(appsdir)" "$(DESTDIR)$(artwizboxed_themedir)" "$(DESTDIR)$(bear2_themedir)" "$(DESTDIR)$(clearlooks34_themedir)" "$(DESTDIR)$(clearlooks_themedir)" "$(DESTDIR)$(clearlooksolive_themedir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(docxbmdir)" "$(DESTDIR)$(gnomesessiondir)" "$(DESTDIR)$(gnomewmfilesdir)" "$(DESTDIR)$(mikachu_themedir)" "$(DESTDIR)$(natura_themedir)" "$(DESTDIR)$(onyx_themedir)" "$(DESTDIR)$(onyxcitrus_themedir)" "$(DESTDIR)$(orang_themedir)" "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(rcdir)" "$(DESTDIR)$(syscrash_themedir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(xsessionsdir)" "$(DESTDIR)$(obtpubincludedir)" "$(DESTDIR)$(rrpubincludedir)"; 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: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -rm -f obrender/$(DEPDIR)/$(am__dirstamp) -rm -f obrender/$(am__dirstamp) -rm -f obt/$(DEPDIR)/$(am__dirstamp) -rm -f obt/$(am__dirstamp) -rm -f openbox/$(DEPDIR)/$(am__dirstamp) -rm -f openbox/$(am__dirstamp) -rm -f openbox/actions/$(DEPDIR)/$(am__dirstamp) -rm -f openbox/actions/$(am__dirstamp) -rm -f tools/gdm-control/$(DEPDIR)/$(am__dirstamp) -rm -f tools/gdm-control/$(am__dirstamp) -rm -f tools/gnome-panel-control/$(DEPDIR)/$(am__dirstamp) -rm -f tools/gnome-panel-control/$(am__dirstamp) -rm -f tools/obxprop/$(DEPDIR)/$(am__dirstamp) -rm -f tools/obxprop/$(am__dirstamp) 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-binPROGRAMS clean-checkPROGRAMS clean-generic \ clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS \ mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf obrender/$(DEPDIR) obt/$(DEPDIR) openbox/$(DEPDIR) openbox/actions/$(DEPDIR) tools/gdm-control/$(DEPDIR) tools/gnome-panel-control/$(DEPDIR) tools/obxprop/$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-local distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dist_appsDATA \ install-dist_artwizboxed_themeDATA \ install-dist_bear2_themeDATA \ install-dist_clearlooks34_themeDATA \ install-dist_clearlooks_themeDATA \ install-dist_clearlooksolive_themeDATA install-dist_docDATA \ install-dist_docxbmDATA install-dist_gnomesessionDATA \ install-dist_gnomewmfilesDATA install-dist_mikachu_themeDATA \ install-dist_natura_themeDATA install-dist_onyx_themeDATA \ install-dist_onyxcitrus_themeDATA install-dist_orang_themeDATA \ install-dist_pixmapDATA install-dist_rcDATA \ install-dist_rcSCRIPTS install-dist_syscrash_themeDATA \ install-man install-nodist_pkgconfigDATA \ install-nodist_rcSCRIPTS install-nodist_xsessionsDATA \ install-obtpubincludeHEADERS install-rrpubincludeHEADERS install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-dist_libexecSCRIPTS \ install-libLTLIBRARIES install-nodist_binSCRIPTS \ install-nodist_libexecSCRIPTS install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-man1 install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -rf obrender/$(DEPDIR) obt/$(DEPDIR) openbox/$(DEPDIR) openbox/actions/$(DEPDIR) tools/gdm-control/$(DEPDIR) tools/gnome-panel-control/$(DEPDIR) tools/obxprop/$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-dist_appsDATA \ uninstall-dist_artwizboxed_themeDATA \ uninstall-dist_bear2_themeDATA \ uninstall-dist_clearlooks34_themeDATA \ uninstall-dist_clearlooks_themeDATA \ uninstall-dist_clearlooksolive_themeDATA \ uninstall-dist_docDATA uninstall-dist_docxbmDATA \ uninstall-dist_gnomesessionDATA \ uninstall-dist_gnomewmfilesDATA uninstall-dist_libexecSCRIPTS \ uninstall-dist_mikachu_themeDATA \ uninstall-dist_natura_themeDATA uninstall-dist_onyx_themeDATA \ uninstall-dist_onyxcitrus_themeDATA \ uninstall-dist_orang_themeDATA uninstall-dist_pixmapDATA \ uninstall-dist_rcDATA uninstall-dist_rcSCRIPTS \ uninstall-dist_syscrash_themeDATA uninstall-libLTLIBRARIES \ uninstall-man uninstall-nodist_binSCRIPTS \ uninstall-nodist_libexecSCRIPTS uninstall-nodist_pkgconfigDATA \ uninstall-nodist_rcSCRIPTS uninstall-nodist_xsessionsDATA \ uninstall-obtpubincludeHEADERS uninstall-rrpubincludeHEADERS uninstall-man: uninstall-man1 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) check-am \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-binPROGRAMS \ clean-checkPROGRAMS clean-generic clean-libLTLIBRARIES \ clean-libtool clean-noinstPROGRAMS ctags ctags-recursive dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-lzma dist-shar \ dist-tarZ dist-xz dist-zip distcheck distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-local distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-binPROGRAMS install-data \ install-data-am install-dist_appsDATA \ install-dist_artwizboxed_themeDATA \ install-dist_bear2_themeDATA \ install-dist_clearlooks34_themeDATA \ install-dist_clearlooks_themeDATA \ install-dist_clearlooksolive_themeDATA install-dist_docDATA \ install-dist_docxbmDATA install-dist_gnomesessionDATA \ install-dist_gnomewmfilesDATA install-dist_libexecSCRIPTS \ install-dist_mikachu_themeDATA install-dist_natura_themeDATA \ install-dist_onyx_themeDATA install-dist_onyxcitrus_themeDATA \ install-dist_orang_themeDATA install-dist_pixmapDATA \ install-dist_rcDATA install-dist_rcSCRIPTS \ install-dist_syscrash_themeDATA install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-libLTLIBRARIES \ install-man install-man1 install-nodist_binSCRIPTS \ install-nodist_libexecSCRIPTS install-nodist_pkgconfigDATA \ install-nodist_rcSCRIPTS install-nodist_xsessionsDATA \ install-obtpubincludeHEADERS install-pdf install-pdf-am \ install-ps install-ps-am install-rrpubincludeHEADERS \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-binPROGRAMS \ uninstall-dist_appsDATA uninstall-dist_artwizboxed_themeDATA \ uninstall-dist_bear2_themeDATA \ uninstall-dist_clearlooks34_themeDATA \ uninstall-dist_clearlooks_themeDATA \ uninstall-dist_clearlooksolive_themeDATA \ uninstall-dist_docDATA uninstall-dist_docxbmDATA \ uninstall-dist_gnomesessionDATA \ uninstall-dist_gnomewmfilesDATA uninstall-dist_libexecSCRIPTS \ uninstall-dist_mikachu_themeDATA \ uninstall-dist_natura_themeDATA uninstall-dist_onyx_themeDATA \ uninstall-dist_onyxcitrus_themeDATA \ uninstall-dist_orang_themeDATA uninstall-dist_pixmapDATA \ uninstall-dist_rcDATA uninstall-dist_rcSCRIPTS \ uninstall-dist_syscrash_themeDATA uninstall-libLTLIBRARIES \ uninstall-man uninstall-man1 uninstall-nodist_binSCRIPTS \ uninstall-nodist_libexecSCRIPTS uninstall-nodist_pkgconfigDATA \ uninstall-nodist_rcSCRIPTS uninstall-nodist_xsessionsDATA \ uninstall-obtpubincludeHEADERS uninstall-rrpubincludeHEADERS data/autostart/autostart: $(top_srcdir)/data/autostart/autostart.in Makefile @echo make: creating $@ @test -d $(shell dirname $(top_builddir)/$@) || \ mkdir $(shell dirname $(top_builddir)/$@) @$(edit) $< >$(top_builddir)/$@ data/autostart/openbox-autostart: $(top_srcdir)/data/autostart/openbox-autostart.in Makefile @echo make: creating $@ @test -d $(shell dirname $(top_builddir)/$@) || \ mkdir $(shell dirname $(top_builddir)/$@) @$(edit) $< >$(top_builddir)/$@ %.desktop: %.desktop.in Makefile @echo make: creating $@ @$(edit) $< >$@ %-session: %-session.in Makefile @echo make: creating $@ @$(edit) $< >$@ %.1.in: %.1.sgml @echo make: creating $@ @docbook-to-man $< >$@ %.1: %.1.in Makefile @echo make: creating $@ @$(edit) $< >$@ #doc: # $(MAKE) -$(MAKEFLAGS) -C doc/doxygen doc distclean-local: for d in . m4 po obrender parser obt openbox; do \ for p in core core.* gmon.out *\~ *.orig *.rej .\#*; do \ rm -f "$$d/$$p"; \ done \ done .PHONY: doc # 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: ����������������������������������������������������������openbox-3.6.1/version.h.in��������������������������������������������������������������������������0000644�0001753�0000144�00000000134�11334406005�012350� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef ob__version_h #define ob__version_h #define OPENBOX_VERSION "@OB_VERSION@" #endif ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/configure�����������������������������������������������������������������������������0000755�0001753�0000144�00002115346�12544730643�012046� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for openbox 3.6.1. # # Report bugs to <http://bugzilla.icculus.org>. # # # Copyright (C) 1992-1996, 1998-2012 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=: # Pre-4.2 versions of Zsh do 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_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } 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.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do 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_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: http://bugzilla.icculus.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_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 || $as_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" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # 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 as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # 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" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # 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 } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then 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 -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' 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='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # 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'" SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 </dev/null exec 6>&1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/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= # Identity of this package. PACKAGE_NAME='openbox' PACKAGE_TARNAME='openbox' PACKAGE_VERSION='3.6.1' PACKAGE_STRING='openbox 3.6.1' PACKAGE_BUGREPORT='http://bugzilla.icculus.org' PACKAGE_URL='' ac_unique_file="openbox/openbox.c" ac_default_prefix=/usr/local # Factoring default headers for most tests. ac_includes_default="\ #include <stdio.h> #ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif #ifdef STDC_HEADERS # include <stdlib.h> # include <stddef.h> #else # ifdef HAVE_STDLIB_H # include <stdlib.h> # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include <memory.h> # endif # include <string.h> #endif #ifdef HAVE_STRINGS_H # include <strings.h> #endif #ifdef HAVE_INTTYPES_H # include <inttypes.h> #endif #ifdef HAVE_STDINT_H # include <stdint.h> #endif #ifdef HAVE_UNISTD_H # include <unistd.h> #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS XAUTH_LIBS XAUTH_CFLAGS XSYNC_LIBS XSYNC_CFLAGS XINERAMA_LIBS XSHAPE_LIBS XSHAPE_CFLAGS XRANDR_LIBS XRANDR_CFLAGS XKB_LIBS XKB_CFLAGS EFENCE_LIBS SM_LIBS SM_CFLAGS X_EXTRA_LIBS X_LIBS X_PRE_LIBS X_CFLAGS XMKMF USE_LIBRSVG_FALSE USE_LIBRSVG_TRUE PKG_CONFIG_LIBRSVG LIBRSVG_LIBS LIBRSVG_CFLAGS USE_IMLIB2_FALSE USE_IMLIB2_TRUE PKG_CONFIG_IMLIB IMLIB2_LIBS IMLIB2_CFLAGS XCURSOR_LIBS XCURSOR_CFLAGS LIBSN_LIBS LIBSN_CFLAGS XML_LIBS XML_CFLAGS PANGO_LIBS PANGO_CFLAGS GLIB_LIBS GLIB_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG DIRNAME POSUB LTLIBINTL LIBINTL INTLLIBS LTLIBICONV LIBICONV INTL_MACOSX_LIBS MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 MSGFMT_015 GMSGFMT MSGFMT USE_NLS LIBTOOL_DEPS LT_SYS_LIBRARY_PATH OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR DLLTOOL OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBTOOL CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC OBT_CURRENT_MINUS_AGE OBT_AGE OBT_REVISION OBT_CURRENT OBT_RELEASE RR_CURRENT_MINUS_AGE RR_AGE RR_REVISION RR_CURRENT RR_RELEASE OBT_VERSION OBT_BINARY_AGE OBT_INTERFACE_AGE OBT_MICRO_VERSION OBT_MINOR_VERSION OBT_MAJOR_VERSION RR_VERSION RR_BINARY_AGE RR_INTERFACE_AGE RR_MICRO_VERSION RR_MINOR_VERSION RR_MAJOR_VERSION OB_VERSION AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_strict_ansi enable_super_warnings enable_debug enable_gprof enable_gprof_libc enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_aix_soname with_gnu_ld with_sysroot enable_libtool_lock enable_nls enable_rpath with_libiconv_prefix with_libintl_prefix enable_startup_notification enable_xcursor enable_imlib2 enable_librsvg with_x enable_session_management enable_xkb enable_xrandr enable_xshape enable_xinerama enable_xsync ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP LT_SYS_LIBRARY_PATH PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR GLIB_CFLAGS GLIB_LIBS PANGO_CFLAGS PANGO_LIBS XML_CFLAGS XML_LIBS LIBSN_CFLAGS LIBSN_LIBS XCURSOR_CFLAGS XCURSOR_LIBS IMLIB2_CFLAGS IMLIB2_LIBS LIBRSVG_CFLAGS LIBRSVG_LIBS XMKMF' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # 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_TARNAME}' 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= ;; *) 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_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=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_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$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_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=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 ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_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'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. 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 # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 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 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 .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # 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 -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | 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 .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 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 openbox 3.6.1 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/openbox] --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 X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR 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 case $ac_init_help in short | recursive ) echo "Configuration of openbox 3.6.1:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: `make V=1') --disable-silent-rules verbose build output (undo: `make V=0') --enable-strict-ansi Enable strict ANSI compliance build [[default=no]] --enable-super-warnings Enable extra compiler warnings [[default=no]] --enable-debug build a debug version [[default=no]] --enable-gprof Enable gprof profiling output [[default=no]] --enable-gprof-libc Link against libc with profiling support [[default=no]] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths --disable-startup-notification disable the startup notification library. [default=enabled] --disable-xcursor disable use of the X Cursor library. [default=enabled] --disable-imlib2 disable use of Imlib2 image library for loading icons. [default=enabled] --disable-librsvg disable use of SVG image files for loading icons. [default=enabled] --disable-session-management build without support for session managers [default=enabled] --disable-xkb build without support for xkb extension [default=enabled] --disable-xrandr build without support for xrandr extension [default=enabled] --disable-xshape build without support for xshape extension [default=enabled] --disable-xinerama build without support for xinerama [default=enabled] --disable-xsync build without support for xsync extension [default=enabled] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use both] --with-aix-soname=aix|svr4|both shared library versioning (aka "SONAME") variant to provide on AIX, [default=aix]. --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir --with-x use the X Window System Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor LT_SYS_LIBRARY_PATH User-defined run-time library search path. PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config GLIB_LIBS linker flags for GLIB, overriding pkg-config PANGO_CFLAGS C compiler flags for PANGO, overriding pkg-config PANGO_LIBS linker flags for PANGO, overriding pkg-config XML_CFLAGS C compiler flags for XML, overriding pkg-config XML_LIBS linker flags for XML, overriding pkg-config LIBSN_CFLAGS C compiler flags for LIBSN, overriding pkg-config LIBSN_LIBS linker flags for LIBSN, overriding pkg-config XCURSOR_CFLAGS C compiler flags for XCURSOR, overriding pkg-config XCURSOR_LIBS linker flags for XCURSOR, overriding pkg-config IMLIB2_CFLAGS C compiler flags for IMLIB2, overriding pkg-config IMLIB2_LIBS linker flags for IMLIB2, overriding pkg-config LIBRSVG_CFLAGS C compiler flags for LIBRSVG, overriding pkg-config LIBRSVG_LIBS linker flags for LIBRSVG, overriding pkg-config XMKMF Path to xmkmf, Makefile generator for X Window System Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to <http://bugzilla.icculus.org>. _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" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_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 $as_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 openbox configure 3.6.1 generated by GNU Autoconf 2.69 Copyright (C) 2012 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 ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case <limits.h> declares $2. For example, HP-UX 11i <limits.h> declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since <limits.h> exists even on freestanding compilers. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif #undef $2 /* 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 $2 (); /* 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_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## ------------------------------------------ ## ## Report this to http://bugzilla.icculus.org ## ## ------------------------------------------ ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel 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 openbox $as_me 3.6.1, which was generated by GNU Autoconf 2.69. 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=. $as_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=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append 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 as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset 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 $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" 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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; 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 $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_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'; as_fn_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 $as_echo "/* confdefs.h */" > 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 cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } 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. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_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,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_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 # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_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. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## 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.11' 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 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 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. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$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 rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$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' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "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 $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P 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. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='openbox' VERSION='3.6.1' 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"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' OB_VERSION=$PACKAGE_VERSION RR_MAJOR_VERSION=3 RR_MINOR_VERSION=6 RR_MICRO_VERSION=32 RR_INTERFACE_AGE=0 RR_BINARY_AGE=0 RR_VERSION=$RR_MAJOR_VERSION.$RR_MINOR_VERSION OBT_MAJOR_VERSION=3 OBT_MINOR_VERSION=6 OBT_MICRO_VERSION=4 OBT_INTERFACE_AGE=2 OBT_BINARY_AGE=2 OBT_VERSION=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION RR_RELEASE=$RR_MAJOR_VERSION.$RR_MINOR_VERSION RR_CURRENT=`expr $RR_MICRO_VERSION - $RR_INTERFACE_AGE` RR_REVISION=$RR_INTERFACE_AGE RR_AGE=`expr $RR_BINARY_AGE - $RR_INTERFACE_AGE` RR_CURRENT_MINUS_AGE=`expr $RR_CURRENT - $RR_AGE` OBT_RELEASE=$OBT_MAJOR_VERSION.$OBT_MINOR_VERSION OBT_CURRENT=`expr $OBT_MICRO_VERSION - $OBT_INTERFACE_AGE` OBT_REVISION=$OBT_INTERFACE_AGE OBT_AGE=`expr $OBT_BINARY_AGE - $OBT_INTERFACE_AGE` OBT_CURRENT_MINUS_AGE=`expr $OBT_CURRENT - $OBT_AGE` test "$prefix" = "NONE" && prefix=$ac_default_prefix { $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5 $as_echo_n "checking build type... " >&6; } # Check whether --enable-strict-ansi was given. if test "${enable_strict_ansi+set}" = set; then : enableval=$enable_strict_ansi; STRICT=$enableval else STRICT="no" fi # Check whether --enable-super-warnings was given. if test "${enable_super_warnings+set}" = set; then : enableval=$enable_super_warnings; SUPERWARN=$enableval else SUPERWARN="no" fi # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then : enableval=$enable_debug; DEBUG=$enableval else DEBUG="no" fi # Check whether --enable-gprof was given. if test "${enable_gprof+set}" = set; then : enableval=$enable_gprof; PROF=$enableval else PROF="no" fi # Check whether --enable-gprof-libc was given. if test "${enable_gprof_libc+set}" = set; then : enableval=$enable_gprof_libc; PROFLC=$enableval else PROFLC="no" fi if test "$PROFLC" = "yes"; then PROF="yes" # always enable profiling then fi TEST="" test "${PACKAGE_VERSION%*alpha*}" != "$PACKAGE_VERSION" && TEST="yes" test "${PACKAGE_VERSION%*beta*}" != "$PACKAGE_VERSION" && TEST="yes" test "$TEST" = "yes" && DEBUG="yes" if test "$DEBUG" = "yes"; then MSG="DEBUG" else MSG="RELEASE" fi if test "$TEST" = "yes"; then MSG="$MSG (test release)" fi if test "$STRICT" = "yes"; then MSG="$MSG with strict ANSI compliance" fi if test "$SUPERWARN" = "yes"; then MSG="$MSG with super warnings" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5 $as_echo "$MSG" >&6; } test "$DEBUG" = "yes" && \ $as_echo "#define DEBUG 1" >>confdefs.h DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_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='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= 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 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$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" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM 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. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; 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 | *.dSYM | *.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 if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; 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 | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdio.h> int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; 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 | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdarg.h> #include <stdio.h> struct stat; /* 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" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg 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) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : 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 depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&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'. rm -rf conftest.dir 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 am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$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 if test "x$CC" != xcc; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } fi set dummy $CC; ac_cc=`$as_echo "$2" | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # We do the test twice because some compilers refuse to overwrite an # existing .o file with -o, though they will create one. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -f conftest2.$ac_objext && { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then # Test first that cc exists at all. if { ac_try='cc -c conftest.$ac_ext >&5' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' rm -f conftest2.* if { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -f conftest2.$ac_objext && { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # cc works too. : else # cc exists but doesn't like -o. eval ac_cv_prog_cc_${ac_cc}_c_o=no fi fi fi else eval ac_cv_prog_cc_${ac_cc}_c_o=no fi rm -f core conftest* fi if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h fi # FIXME: we rely on the cache variable name because # there is no other way. set dummy $CC am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o if test "$am_t" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&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 <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$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 <limits.h> to <assert.h> if __STDC__ is defined, since # <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include <limits.h> #else # include <assert.h> #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <ac_nonexistent.h> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } 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 FLAGS="" L="" if test "$DEBUG" = "yes"; then FLAGS="-DDEBUG" else FLAGS="-DNDEBUG -DG_DISABLE_ASSERT" fi # Check what compiler we are using { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU CC" >&5 $as_echo_n "checking for GNU CC... " >&6; } if test "$GCC" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } if test "$DEBUG" = "yes"; then FLAGS="$FLAGS -O0 -ggdb -fno-inline -Wwrite-strings" FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return" FLAGS="$FLAGS -Wbad-function-cast -Wpointer-arith" FLAGS="$FLAGS -Wno-write-strings" # for Python.h #FLAGS="$FLAGS -Wno-long-long" fi if test "$SUPERWARN" = "yes"; then # glib can't handle -Wcast-qual FLAGS="$FLAGS -Wcast-qual -Wextra" fi if test "$STRICT" = "yes"; then FLAGS="$FLAGS -ansi -pedantic -D_XOPEN_SOURCE" fi if test "$PROF" = "yes"; then FLAGS="$FLAGS -pg -fno-inline" fi if test "$PROFLC" = "yes"; then L="$L -lc_p -lm_p" fi FLAGS="$FLAGS -fno-strict-aliasing" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler specific flags" >&5 $as_echo_n "checking for compiler specific flags... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLAGS" >&5 $as_echo "$FLAGS" >&6; } CFLAGS="$CFLAGS $FLAGS" LIBS="$LIBS $L" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* 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 sort of thing. */ char tx; char *t = &tx; 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 sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; 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 if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4.6' macro_revision='2.4.6' ltmain=$ac_aux_dir/ltmain.sh # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&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 && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&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` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 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 # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case $ECHO in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_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 do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_SED" || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_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_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then 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" as_fn_executable_p "$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 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_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 as_fn_arith $ac_count + 1 && ac_count=$as_val 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 if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then 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" as_fn_executable_p "$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 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_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 as_fn_arith $ac_count + 1 && ac_count=$as_val 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 if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_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 fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_FGREP" || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_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_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) test no != "$with_gnu_ld" && break ;; *) test yes != "$with_gnu_ld" && break ;; esac fi done IFS=$lt_save_ifs else lt_cv_path_LD=$LD # Let the user override the test with a path. fi fi LD=$lt_cv_path_LD if test -n "$LD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) lt_cv_prog_gnu_ld=yes ;; *) lt_cv_prog_gnu_ld=no ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM=$NM else lt_nm_to_check=${ac_tool_prefix}nm if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. tmp_nm=$ac_dir/$lt_tmp_nm if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then # Check to see if the nm accepts a BSD-compat flag. # Adding the 'sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty case $build_os in mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n "$lt_cv_sys_max_cmd_len"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test yes != "$GCC"; then reload_cmds=false fi ;; darwin*) if test yes = "$GCC"; then reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # 'unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # that responds to the $file_magic_cmd with a given extended regex. # If you have 'file' or equivalent on your system and you're not sure # whether 'pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; os2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 $as_echo "$with_sysroot" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 $as_echo_n "checking for a working dd... " >&6; } if ${ac_cv_path_lt_DD+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i : ${lt_DD:=$DD} if test -z "$lt_DD"; then ac_path_lt_DD_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 do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in dd; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_lt_DD" || continue if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: fi $ac_path_lt_DD_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_lt_DD"; then : fi else ac_cv_path_lt_DD=$lt_DD fi rm -f conftest.i conftest2.i conftest.out fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 $as_echo "$ac_cv_path_lt_DD" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 $as_echo_n "checking how to truncate binary pipes... " >&6; } if ${lt_cv_truncate_bin+:} false; then : $as_echo_n "(cached) " >&6 else printf 0123456789abcdef0123456789abcdef >conftest.i cat conftest.i conftest.i >conftest2.i lt_cv_truncate_bin= if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then cmp -s conftest.i conftest.out \ && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" fi rm -f conftest.i conftest2.i conftest.out test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 $as_echo "$lt_cv_truncate_bin" >&6; } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext 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 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&5 # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&5 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[012][,.]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <float.h> int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else 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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <string.h> _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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdlib.h> _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 confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <ctype.h> #include <stdlib.h> #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 if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h 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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=no # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS=$lt_save_ifs ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS=$lt_save_ifs ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac else pic_mode=default fi # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for pkg in $enableval; do IFS=$lt_save_ifs if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS=$lt_save_ifs ;; esac else enable_fast_install=yes fi shared_archive_member_spec= case $host,$enable_shared in power*-*-aix[5-9]*,yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } # Check whether --with-aix-soname was given. if test "${with_aix_soname+set}" = set; then : withval=$with_aix_soname; case $withval in aix|svr4|both) ;; *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 ;; esac lt_cv_with_aix_soname=$with_aix_soname else if ${lt_cv_with_aix_soname+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_with_aix_soname=aix fi with_aix_soname=$lt_cv_with_aix_soname fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 $as_echo "$with_aix_soname" >&6; } if test aix != "$with_aix_soname"; then # For the AIX way of multilib, we name the shared archive member # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, # the AIX toolchain works better with OBJECT_MODE set (default 32). if test 64 = "${OBJECT_MODE-32}"; then shared_archive_member_spec=shr_64 else shared_archive_member_spec=shr fi fi ;; *) with_aix_soname=aix ;; esac # This can be used to rebuild libtool when needed LIBTOOL_DEPS=$ltmain # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o func_cc_basename $compiler cc_basename=$func_cc_basename_result # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/${ac_tool_prefix}file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/file"; then lt_cv_path_MAGIC_CMD=$ac_dir/"file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac fi MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC=$CC 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 # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test yes = "$GCC"; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test yes = "$GCC"; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi lt_prog_compiler_pic='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' if test -n "$lt_prog_compiler_pic"; then lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' case $host_os in os2*) lt_prog_compiler_static='$wl-static' ;; esac ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ F* | *Sun*Fortran*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Intel*\ [CF]*Compiler*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; *Portland\ Group*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test yes = "$lt_cv_prog_compiler_pic_works"; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test yes = "$lt_cv_prog_compiler_static_works"; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links=nottested if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test no = "$hard_links"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' export_dynamic_flag_spec='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='$wl--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' link_all_deplibs=yes ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in tcc*) export_dynamic_flag_spec='-rdynamic' ;; xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test no = "$ld_shlibs"; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to GNU nm, but means don't demangle to AIX nm. # Without the "-l" option, or with the "-B" option, AIX nm treats # weak defined symbols like other global defined symbols, whereas # GNU nm marks them as "W". # While the 'weak' keyword is ignored in the Export File, we need # it in the Import File for the 'aix-soname' feature, so we have # to replace the "-B" option with "-P" for AIX nm. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # have runtime linking enabled, and use it for executables. # For shared libraries, we enable/disable runtime linking # depending on the kind of the shared library created - # when "with_aix_soname,aix_use_runtimelinking" is: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables # "aix,yes" lib.so shared, rtl:yes, for executables # lib.a static archive # "both,no" lib.so.V(shr.o) shared, rtl:yes # lib.a(lib.so.V) shared, rtl:no, for executables # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a(lib.so.V) shared, rtl:no # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables # lib.a static archive case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then aix_use_runtimelinking=yes break fi done if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then # With aix-soname=svr4, we create the lib.so.V shared archives only, # so we don't have lib.a shared libs to link our executables. # We have to force runtime linking in this case. aix_use_runtimelinking=yes LDFLAGS="$LDFLAGS -Wl,-brtl" fi ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='$wl-f,' case $with_aix_soname,$aix_use_runtimelinking in aix,*) ;; # traditional, no import file svr4,* | *,yes) # use import file # The Import File defines what to hardcode. hardcode_direct=no hardcode_direct_absolute=no ;; esac if test yes = "$GCC"; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi # Need to ensure runtime linking is disabled for the traditional # shared library, or the linker may eventually find shared libraries # /with/ Import File - we do not want to mix them. shared_flag_aix='-shared' shared_flag_svr4='-shared $wl-G' else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi shared_flag_aix='$wl-bM:SRE' shared_flag_svr4='$wl-G' fi fi export_dynamic_flag_spec='$wl-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=/usr/lib:/lib fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' $wl-bernotok' allow_undefined_flag=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' # -brtl affects multiple linker settings, -berok does not and is overridden later compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' if test svr4 != "$with_aix_soname"; then # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' fi if test aix != "$with_aix_soname"; then archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' else # used by -dlpreopen to get the symbols archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' fi archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test yes = "$lt_cv_ld_force_load"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test yes = "$GCC"; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test yes = "$lt_cv_prog_compiler__b"; then archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test no = "$with_gnu_ld"; then hardcode_libdir_flag_spec='$wl+b $wl$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test yes = "$lt_cv_irix_exported_symbol"; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; linux*) case $cc_basename in tcc*) # Fabrice Bellard et al's Tiny C Compiler ld_shlibs=yes archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='$wl-rpath,$libdir' export_dynamic_flag_spec='$wl-E' else archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='$wl-rpath,$libdir' fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported shrext_cmds=.dll archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ $ECHO EXPORTS >> $output_objdir/$libname.def~ prefix_cmds="$SED"~ if test EXPORTS = "`$SED 1q $export_symbols`"; then prefix_cmds="$prefix_cmds -e 1d"; fi~ prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes ;; osf3*) if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then allow_undefined_flag=' $wl-expect_unresolved $wl\*' archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test yes = "$GCC"; then wlarc='$wl' archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='$wl-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='$wl-z,text' allow_undefined_flag='$wl-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='$wl-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='$wl-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test no = "$ld_shlibs" && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test yes,yes = "$GCC,$enable_shared"; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([A-Za-z]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[4-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # Using Import Files as archive members, it is possible to support # filename-based versioning of shared library archives on AIX. While # this would work for both with and without runtime linking, it will # prevent static linking of such archives. So we do filename-based # shared library versioning with .so extension only, which is used # when both runtime linking and shared linking is enabled. # Unfortunately, runtime linking may impact performance, so we do # not want this to be the default eventually. Also, we use the # versioned .so libs for executables only if there is the -brtl # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. # To allow for filename-based versioning support, we need to create # libNAME.so.V as an archive file, containing: # *) an Import File, referring to the versioned filename of the # archive as well as the shared archive member, telling the # bitwidth (32 or 64) of that shared object, and providing the # list of exported symbols of that shared object, eventually # decorated with the 'weak' keyword # *) the shared object with the F_LOADONLY flag set, to really avoid # it being seen by the linker. # At run time we better use the real file rather than another symlink, # but for link time we create the symlink libNAME.so -> libNAME.so.V case $with_aix_soname,$aix_use_runtimelinking in # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. aix,yes) # traditional libtool dynamic_linker='AIX unversionable lib.so' # If using run time linking (on AIX 4.2 or later) use lib<name>.so # instead of lib<name>.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; aix,no) # traditional AIX only dynamic_linker='AIX lib.a(lib.so.V)' # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' ;; svr4,*) # full svr4 only dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,yes) # both, prefer svr4 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' # unpreferred sharedlib libNAME.a needs extra handling postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' # We do not specify a path in Import Files, so LIBPATH fires. shlibpath_overrides_runpath=yes ;; *,no) # both, prefer aix dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" library_names_spec='$libname$release.a $libname.a' soname_spec='$libname$release$shared_ext$major' # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' ;; esac shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi # Handle Gentoo/FreeBSD as it was Linux case $host_vendor in gentoo) version_type=linux ;; *) version_type=freebsd-$objformat ;; esac case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' need_version=yes ;; linux) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' need_lib_prefix=no need_version=no ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" sys_lib_dlsearch_path_spec=/usr/lib/hpux32 else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" sys_lib_dlsearch_path_spec=/usr/lib/hpux64 fi ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. hardcode_libdir_flag_spec='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, # even though it is searched at run-time. Try to do the best guess by # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no # OS/2 can only load a DLL with a base name of 8 characters or less. soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; v=$($ECHO $release$versuffix | tr -d .-); n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); $ECHO $n$v`$shared_ext' library_names_spec='${libname}_dll.$libext' dynamic_linker='OS/2 ld.exe' shlibpath_var=BEGINLIBPATH sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=sco need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test yes = "$hardcode_automatic"; then # We can hardcode non-existent directories. if test no != "$hardcode_direct" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && test no != "$hardcode_minus_L"; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test relink = "$hardcode_action" || test yes = "$inherit_rpath"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi if test yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen=shl_load else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen=dlopen else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld fi fi fi fi fi fi ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include <dlfcn.h> #endif #include <stdio.h> #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test yes = "$cross_compiling"; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include <dlfcn.h> #endif #include <stdio.h> #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisibility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report what library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test ia64 != "$host_cpu"; then case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in yes,aix,yes) ;; # shared object as lib.so file only yes,svr4,*) ;; # shared object as lib.so archive member only yes,*) enable_static=no ;; # shared object in lib.a archive as well esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test yes = "$enable_shared" || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } 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 CC=$lt_save_CC ac_config_commands="$ac_config_commands libtool" # Only expand once: LIBTOOL="$LIBTOOL --silent" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } # Prepare PATH_SEPARATOR. # 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 # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac # Prepare PATH_SEPARATOR. # 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 # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f messages.po case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac # Prepare PATH_SEPARATOR. # 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 # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$localedir" || localedir='${datadir}/locale' ac_config_commands="$ac_config_commands po-directories" if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # 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 ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 $as_echo_n "checking for ld used by GCC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${acl_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$acl_cv_path_LD" if test -n "$LD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${acl_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 </dev/null` in *GNU* | *'with BFD'*) acl_cv_prog_gnu_ld=yes ;; *) acl_cv_prog_gnu_ld=no ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 $as_echo "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 $as_echo_n "checking for shared library run path origin... " >&6; } if ${acl_cv_rpath+:} false; then : $as_echo_n "(cached) " >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 $as_echo "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; : else enable_rpath=yes fi acl_libdirstem=lib searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi fi LIBICONV= LTLIBICONV= INCICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <CoreFoundation/CFPreferences.h> int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <CoreFoundation/CFLocale.h> int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi LIBINTL= LTLIBINTL= POSUB= if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 $as_echo_n "checking for GNU gettext in libc... " >&6; } if ${gt_cv_func_gnugettext1_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <libintl.h> extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_gnugettext1_libc=yes else gt_cv_func_gnugettext1_libc=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } if test "$gt_cv_func_gnugettext1_libc" != "yes"; then am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 $as_echo_n "checking for iconv... " >&6; } if ${am_cv_func_iconv+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdlib.h> #include <iconv.h> int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <stdlib.h> #include <iconv.h> int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 $as_echo "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then $as_echo "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 $as_echo_n "checking how to link with libiconv... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 $as_echo "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test "${with_libintl_prefix+set}" = set; then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi fi LIBINTL= LTLIBINTL= INCINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 $as_echo_n "checking for GNU gettext in libintl... " >&6; } if ${gt_cv_func_gnugettext1_libintl+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <libintl.h> extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_gnugettext1_libintl=yes else gt_cv_func_gnugettext1_libintl=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <libintl.h> extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" gt_cv_func_gnugettext1_libintl=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } fi if test "$gt_cv_func_gnugettext1_libc" = "yes" \ || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 $as_echo_n "checking whether to use NLS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 $as_echo_n "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 $as_echo "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 $as_echo_n "checking how to link with libintl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 $as_echo "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h fi POSUB=po fi INTLLIBS="$LIBINTL" for ac_header in ctype.h dirent.h errno.h fcntl.h grp.h locale.h pwd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in signal.h string.h stdio.h stdlib.h unistd.h sys/stat.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/select.h sys/socket.h sys/time.h sys/types.h sys/wait.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Extract the first word of "sed", so it can be a program name with args. set dummy sed; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else case $SED in [\\/]* | ?:[\\/]*) ac_cv_path_SED="$SED" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_SED" && ac_cv_path_SED="no" ;; esac fi SED=$ac_cv_path_SED if test -n "$SED"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 $as_echo "$SED" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$SED" = "no"; then as_fn_error $? "The program \"sed\" is not available. This program is required to build Openbox." "$LINENO" 5 fi # Extract the first word of "dirname", so it can be a program name with args. set dummy dirname; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_DIRNAME+:} false; then : $as_echo_n "(cached) " >&6 else case $DIRNAME in [\\/]* | ?:[\\/]*) ac_cv_path_DIRNAME="$DIRNAME" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME="no" ;; esac fi DIRNAME=$ac_cv_path_DIRNAME if test -n "$DIRNAME"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 $as_echo "$DIRNAME" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "$DIRNAME" = "no"; then as_fn_error $? "The program \"dirname\" is not available. This program is required to build Openbox." "$LINENO" 5 fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 $as_echo_n "checking for GLIB... " >&6; } if test -n "$GLIB_CFLAGS"; then pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.14.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.14.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.14.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB_LIBS"; then pkg_cv_GLIB_LIBS="$GLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.14.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.14.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.14.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.14.0" 2>&1` else GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.14.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (glib-2.0 >= 2.14.0) were not met: $GLIB_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 GLIB_CFLAGS and GLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GLIB_CFLAGS and GLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see <http://pkg-config.freedesktop.org/>. See \`config.log' for more details" "$LINENO" 5; } else GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS GLIB_LIBS=$pkg_cv_GLIB_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 $as_echo_n "checking for PANGO... " >&6; } if test -n "$PANGO_CFLAGS"; then pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.8.0 pangoxft >= 1.8.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "pango >= 1.8.0 pangoxft >= 1.8.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.8.0 pangoxft >= 1.8.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$PANGO_LIBS"; then pkg_cv_PANGO_LIBS="$PANGO_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.8.0 pangoxft >= 1.8.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "pango >= 1.8.0 pangoxft >= 1.8.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.8.0 pangoxft >= 1.8.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.8.0 pangoxft >= 1.8.0" 2>&1` else PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.8.0 pangoxft >= 1.8.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$PANGO_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (pango >= 1.8.0 pangoxft >= 1.8.0) were not met: $PANGO_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 PANGO_CFLAGS and PANGO_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables PANGO_CFLAGS and PANGO_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see <http://pkg-config.freedesktop.org/>. See \`config.log' for more details" "$LINENO" 5; } else PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS PANGO_LIBS=$pkg_cv_PANGO_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 $as_echo_n "checking for XML... " >&6; } if test -n "$XML_CFLAGS"; then pkg_cv_XML_CFLAGS="$XML_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XML_LIBS"; then pkg_cv_XML_LIBS="$XML_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` else XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XML_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.0) were not met: $XML_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 XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables XML_CFLAGS and XML_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see <http://pkg-config.freedesktop.org/>. See \`config.log' for more details" "$LINENO" 5; } else XML_CFLAGS=$pkg_cv_XML_CFLAGS XML_LIBS=$pkg_cv_XML_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi # Check whether --enable-startup-notification was given. if test "${enable_startup_notification+set}" = set; then : enableval=$enable_startup_notification; enable_sn=$enableval else enable_sn=yes fi if test "$enable_sn" = yes; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSN" >&5 $as_echo_n "checking for LIBSN... " >&6; } if test -n "$LIBSN_CFLAGS"; then pkg_cv_LIBSN_CFLAGS="$LIBSN_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0 >= 0.8\""; } >&5 ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0 >= 0.8") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBSN_CFLAGS=`$PKG_CONFIG --cflags "libstartup-notification-1.0 >= 0.8" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LIBSN_LIBS"; then pkg_cv_LIBSN_LIBS="$LIBSN_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libstartup-notification-1.0 >= 0.8\""; } >&5 ($PKG_CONFIG --exists --print-errors "libstartup-notification-1.0 >= 0.8") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBSN_LIBS=`$PKG_CONFIG --libs "libstartup-notification-1.0 >= 0.8" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LIBSN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libstartup-notification-1.0 >= 0.8" 2>&1` else LIBSN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libstartup-notification-1.0 >= 0.8" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LIBSN_PKG_ERRORS" >&5 sn_found=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } sn_found=no else LIBSN_CFLAGS=$pkg_cv_LIBSN_CFLAGS LIBSN_LIBS=$pkg_cv_LIBSN_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define USE_LIBSN 1" >>confdefs.h sn_found=yes fi else sn_found=no fi # Check whether --enable-xcursor was given. if test "${enable_xcursor+set}" = set; then : enableval=$enable_xcursor; enable_xcursor=$enableval else enable_xcursor=yes fi if test "$enable_xcursor" = yes; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCURSOR" >&5 $as_echo_n "checking for XCURSOR... " >&6; } if test -n "$XCURSOR_CFLAGS"; then pkg_cv_XCURSOR_CFLAGS="$XCURSOR_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcursor\""; } >&5 ($PKG_CONFIG --exists --print-errors "xcursor") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xcursor" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$XCURSOR_LIBS"; then pkg_cv_XCURSOR_LIBS="$XCURSOR_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcursor\""; } >&5 ($PKG_CONFIG --exists --print-errors "xcursor") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xcursor" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then XCURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcursor" 2>&1` else XCURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcursor" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$XCURSOR_PKG_ERRORS" >&5 xcursor_found=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } xcursor_found=no else XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define USE_XCURSOR 1" >>confdefs.h xcursor_found=yes fi else xcursor_found=no fi # Check whether --enable-imlib2 was given. if test "${enable_imlib2+set}" = set; then : enableval=$enable_imlib2; enable_imlib2=$enableval else enable_imlib2=yes fi if test "$enable_imlib2" = yes; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMLIB2" >&5 $as_echo_n "checking for IMLIB2... " >&6; } if test -n "$IMLIB2_CFLAGS"; then pkg_cv_IMLIB2_CFLAGS="$IMLIB2_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_IMLIB2_CFLAGS=`$PKG_CONFIG --cflags "imlib2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$IMLIB2_LIBS"; then pkg_cv_IMLIB2_LIBS="$IMLIB2_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"imlib2\""; } >&5 ($PKG_CONFIG --exists --print-errors "imlib2") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_IMLIB2_LIBS=`$PKG_CONFIG --libs "imlib2" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then IMLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "imlib2" 2>&1` else IMLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "imlib2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$IMLIB2_PKG_ERRORS" >&5 imlib2_found=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } imlib2_found=no else IMLIB2_CFLAGS=$pkg_cv_IMLIB2_CFLAGS IMLIB2_LIBS=$pkg_cv_IMLIB2_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define USE_IMLIB2 1" >>confdefs.h # export it for the pkg-config file PKG_CONFIG_IMLIB=imlib2 imlib2_found=yes fi else imlib2_found=no fi if test $imlib2_found = yes; then USE_IMLIB2_TRUE= USE_IMLIB2_FALSE='#' else USE_IMLIB2_TRUE='#' USE_IMLIB2_FALSE= fi # Check whether --enable-librsvg was given. if test "${enable_librsvg+set}" = set; then : enableval=$enable_librsvg; enable_librsvg=$enableval else enable_librsvg=yes fi if test "$enable_librsvg" = yes; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5 $as_echo_n "checking for LIBRSVG... " >&6; } if test -n "$LIBRSVG_CFLAGS"; then pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "librsvg-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LIBRSVG_LIBS"; then pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0\""; } >&5 ($PKG_CONFIG --exists --print-errors "librsvg-2.0") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0" 2>&1` else LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LIBRSVG_PKG_ERRORS" >&5 librsvg_found=no elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } librsvg_found=no else LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define USE_LIBRSVG 1" >>confdefs.h # export it for the pkg-config file PKG_CONFIG_LIBRSVG=librsvg-2.0 librsvg_found=yes fi else librsvg_found=no fi if test $librsvg_found = yes; then USE_LIBRSVG_TRUE= USE_LIBRSVG_FALSE='#' else USE_LIBRSVG_TRUE='#' USE_LIBRSVG_FALSE= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <X11/Xlib.h> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <X11/Xlib.h> int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_dnet_ntoa=yes else ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_stub_dnet_ntoa=yes else ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes; then : fi if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if ${ac_cv_lib_bsd_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsd_gethostbyname=yes else ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" if test "x$ac_cv_func_connect" = xyes; then : fi if test $ac_cv_func_connect = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = xyes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" if test "x$ac_cv_func_remove" = xyes; then : fi if test $ac_cv_func_remove = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if ${ac_cv_lib_posix_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 remove (); int main () { return remove (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_posix_remove=yes else ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" if test "x$ac_cv_func_shmat" = xyes; then : fi if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if ${ac_cv_lib_ipc_shmat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 shmat (); int main () { return shmat (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ipc_shmat=yes else ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ICE_IceConnectionNumber=yes else ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi test "$no_x" = "yes" && \ as_fn_error $? "The X Window System could not be found." "$LINENO" 5 # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" X_LIBS="$X_PRE_LIBS $X_LIBS -lX11" LIBS="$LIBS $X_LIBS" # Check for required functions in -lX11 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5 $as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } if ${ac_cv_lib_X11_XOpenDisplay+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_X11_XOpenDisplay=yes else ac_cv_lib_X11_XOpenDisplay=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5 $as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBX11 1 _ACEOF LIBS="-lX11 $LIBS" else as_fn_error $? "Could not find XOpenDisplay in -lX11." "$LINENO" 5 fi # Restore the old values. Use X_CFLAGS and X_LIBS in # the Makefiles LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS # Check whether --enable-session-management was given. if test "${enable_session_management+set}" = set; then : enableval=$enable_session_management; SM=$enableval else SM="yes" fi if test "$SM" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" SM="no" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcSaveYourselfDone in -lSM" >&5 $as_echo_n "checking for SmcSaveYourselfDone in -lSM... " >&6; } if ${ac_cv_lib_SM_SmcSaveYourselfDone+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lSM $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 SmcSaveYourselfDone (); int main () { return SmcSaveYourselfDone (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_SM_SmcSaveYourselfDone=yes else ac_cv_lib_SM_SmcSaveYourselfDone=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcSaveYourselfDone" >&5 $as_echo "$ac_cv_lib_SM_SmcSaveYourselfDone" >&6; } if test "x$ac_cv_lib_SM_SmcSaveYourselfDone" = xyes; then : for ac_header in X11/SM/SMlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_X11_SM_SMLIB_H 1 _ACEOF SM_CFLAGS="$X_CFLAGS" SM_LIBS="-lSM -lICE" $as_echo "#define USE_SM 1" >>confdefs.h SM="yes" fi done fi LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for session management support" >&5 $as_echo_n "checking for session management support... " >&6; } if test "$SM" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi #EFENCE_LIBS=-lefence EFENCE_LIBS="" # Check whether --enable-xkb was given. if test "${enable_xkb+set}" = set; then : enableval=$enable_xkb; USE=$enableval else USE="yes" fi if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbBell in -lX11" >&5 $as_echo_n "checking for XkbBell in -lX11... " >&6; } if ${ac_cv_lib_X11_XkbBell+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 XkbBell (); int main () { return XkbBell (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_X11_XkbBell=yes else ac_cv_lib_X11_XkbBell=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbBell" >&5 $as_echo "$ac_cv_lib_X11_XkbBell" >&6; } if test "x$ac_cv_lib_X11_XkbBell" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/XKBlib.h" >&5 $as_echo_n "checking for X11/XKBlib.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/XKBlib.h> int main () { Display *d; Window w; XkbBell(d, w, 0, 0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } XKB="yes" $as_echo "#define XKB 1" >>confdefs.h XKB_CFLAGS="" XKB_LIBS="" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } XKB="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Xkb extension" >&5 $as_echo_n "checking for the Xkb extension... " >&6; } if test "$XKB" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Check whether --enable-xrandr was given. if test "${enable_xrandr+set}" = set; then : enableval=$enable_xrandr; USE=$enableval else USE="yes" fi if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS -lXext -lXrender -lXrandr" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRSelectInput in -lXrandr" >&5 $as_echo_n "checking for XRRSelectInput in -lXrandr... " >&6; } if ${ac_cv_lib_Xrandr_XRRSelectInput+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXrandr $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 XRRSelectInput (); int main () { return XRRSelectInput (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_Xrandr_XRRSelectInput=yes else ac_cv_lib_Xrandr_XRRSelectInput=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRSelectInput" >&5 $as_echo "$ac_cv_lib_Xrandr_XRRSelectInput" >&6; } if test "x$ac_cv_lib_Xrandr_XRRSelectInput" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xrandr.h" >&5 $as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <X11/Xlib.h> #include <X11/extensions/Xrandr.h> int main () { Display *d; Drawable r; int i; XRRQueryExtension(d, &i, &i); XRRGetScreenInfo(d, r); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } XRANDR="yes" $as_echo "#define XRANDR 1" >>confdefs.h XRANDR_CFLAGS="" XRANDR_LIBS="-lXext -lXrender -lXrandr" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } XRANDR="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the XRandR extension" >&5 $as_echo_n "checking for the XRandR extension... " >&6; } if test "$XRANDR" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Check whether --enable-xshape was given. if test "${enable_xshape+set}" = set; then : enableval=$enable_xshape; USE=$enableval else USE="yes" fi if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineShape in -lXext" >&5 $as_echo_n "checking for XShapeCombineShape in -lXext... " >&6; } if ${ac_cv_lib_Xext_XShapeCombineShape+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXext $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 XShapeCombineShape (); int main () { return XShapeCombineShape (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_Xext_XShapeCombineShape=yes else ac_cv_lib_Xext_XShapeCombineShape=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5 $as_echo "$ac_cv_lib_Xext_XShapeCombineShape" >&6; } if test "x$ac_cv_lib_Xext_XShapeCombineShape" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/shape.h" >&5 $as_echo_n "checking for X11/extensions/shape.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/extensions/shape.h> int main () { long foo = ShapeSet; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SHAPE="yes" $as_echo "#define SHAPE 1" >>confdefs.h XSHAPE_CFLAGS="" XSHAPE_LIBS="-lXext" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SHAPE="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Shape extension" >&5 $as_echo_n "checking for the Shape extension... " >&6; } if test "$SHAPE" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Check whether --enable-xinerama was given. if test "${enable_xinerama+set}" = set; then : enableval=$enable_xinerama; USE=$enableval else USE="yes" fi if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS -lXext" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; } if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXinerama $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 XineramaQueryExtension (); int main () { return XineramaQueryExtension (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_Xinerama_XineramaQueryExtension=yes else ac_cv_lib_Xinerama_XineramaQueryExtension=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; } if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xinerama.h" >&5 $as_echo_n "checking for X11/extensions/Xinerama.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <X11/Xlib.h> #include <X11/extensions/Xinerama.h> int main () { XineramaScreenInfo foo; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } XINERAMA="yes" $as_echo "#define XINERAMA 1" >>confdefs.h XINERAMA_LIBS="-lXext -lXinerama" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } XINERAMA="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Xinerama extension" >&5 $as_echo_n "checking for the Xinerama extension... " >&6; } if test "$XINERAMA" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Check whether --enable-xsync was given. if test "${enable_xsync+set}" = set; then : enableval=$enable_xsync; USE=$enableval else USE="yes" fi if test "$USE" = "yes"; then # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSyncInitialize in -lXext" >&5 $as_echo_n "checking for XSyncInitialize in -lXext... " >&6; } if ${ac_cv_lib_Xext_XSyncInitialize+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXext $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 XSyncInitialize (); int main () { return XSyncInitialize (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_Xext_XSyncInitialize=yes else ac_cv_lib_Xext_XSyncInitialize=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XSyncInitialize" >&5 $as_echo "$ac_cv_lib_Xext_XSyncInitialize" >&6; } if test "x$ac_cv_lib_Xext_XSyncInitialize" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/sync.h" >&5 $as_echo_n "checking for X11/extensions/sync.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/extensions/sync.h> int main () { XSyncValueType foo; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SYNC="yes" $as_echo "#define SYNC 1" >>confdefs.h XSYNC_CFLAGS="" XSYNC_LIBS="-lXext" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SYNC="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Sync extension" >&5 $as_echo_n "checking for the Sync extension... " >&6; } if test "$SYNC" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Store these OLDLIBS=$LIBS OLDCPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" LIBS="$LIBS $X_LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauReadAuth in -lXau" >&5 $as_echo_n "checking for XauReadAuth in -lXau... " >&6; } if ${ac_cv_lib_Xau_XauReadAuth+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXau $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 XauReadAuth (); int main () { return XauReadAuth (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_Xau_XauReadAuth=yes else ac_cv_lib_Xau_XauReadAuth=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauReadAuth" >&5 $as_echo "$ac_cv_lib_Xau_XauReadAuth" >&6; } if test "x$ac_cv_lib_Xau_XauReadAuth" = xyes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xauth.h" >&5 $as_echo_n "checking for X11/Xauth.h... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xauth.h> int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } AUTH="yes" $as_echo "#define AUTH 1" >>confdefs.h XAUTH_CFLAGS="" XAUTH_LIBS="-lXau" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } AUTH="no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi LIBS=$OLDLIBS CPPFLAGS=$OLDCPPFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Xauth extension" >&5 $as_echo_n "checking for the Xauth extension... " >&6; } if test "$AUTH" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ac_config_files="$ac_config_files Makefile m4/Makefile po/Makefile.in obrender/obrender-3.5.pc obt/obt-3.5.pc obrender/version.h obt/version.h version.h" ac_config_commands="$ac_config_commands doc" ac_config_commands="$ac_config_commands data" ac_config_commands="$ac_config_commands data/xsession" 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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; 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 if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_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}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= U= 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=`$as_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. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${USE_IMLIB2_TRUE}" && test -z "${USE_IMLIB2_FALSE}"; then as_fn_error $? "conditional \"USE_IMLIB2\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${USE_LIBRSVG_TRUE}" && test -z "${USE_LIBRSVG_FALSE}"; then as_fn_error $? "conditional \"USE_LIBRSVG\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $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} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## 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=: # Pre-4.2 versions of Zsh do 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_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } 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.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith 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 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # 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 ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac 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 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then 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 -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_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 || $as_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" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # 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 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=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 openbox $as_me 3.6.1, which was generated by GNU Autoconf 2.69. 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 case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent 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 Configuration files: $config_files Configuration commands: $config_commands Report bugs to <http://bugzilla.icculus.org>." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ openbox config.status 3.6.1 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 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' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. 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=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= 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 ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) $as_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. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append 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 || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # 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 sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in SHELL \ ECHO \ PATH_SEPARATOR \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ DLLTOOL \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_import \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ lt_cv_nm_interface \ nm_file_list_spec \ lt_cv_truncate_bin \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ configure_time_dlsearch_path \ configure_time_lt_sys_library_path; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile' # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "obrender/obrender-3.5.pc") CONFIG_FILES="$CONFIG_FILES obrender/obrender-3.5.pc" ;; "obt/obt-3.5.pc") CONFIG_FILES="$CONFIG_FILES obt/obt-3.5.pc" ;; "obrender/version.h") CONFIG_FILES="$CONFIG_FILES obrender/version.h" ;; "obt/version.h") CONFIG_FILES="$CONFIG_FILES obt/version.h" ;; "version.h") CONFIG_FILES="$CONFIG_FILES version.h" ;; "doc") CONFIG_COMMANDS="$CONFIG_COMMANDS doc" ;; "data") CONFIG_COMMANDS="$CONFIG_COMMANDS data" ;; "data/xsession") CONFIG_COMMANDS="$CONFIG_COMMANDS data/xsession" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 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_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= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' <conf$$subs.awk | sed ' /^[^""]/{ N s/\n// } ' >>$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries 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[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[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="$ac_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 || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append 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 '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 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 || $as_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"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_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 ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # 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= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 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 || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;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 s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_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 "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_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 || $as_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; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # Generated automatically by $as_me ($PACKAGE) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # Provide generalized library-building support services. # Written by Gordon Matzigkeit, 1996 # Copyright (C) 2014 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. # GNU Libtool 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 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program or library that is built # using GNU Libtool, you may include this file under the same # distribution terms that you use for the rest of that program. # # GNU Libtool 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, see <http://www.gnu.org/licenses/>. # The names of the tagged configurations supported by this script. available_tags='' # Configured defaults for sys_lib_dlsearch_path munging. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shared archive member basename,for filename based shared library versioning on AIX. shared_archive_member_spec=$shared_archive_member_spec # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The PATH separator for the build system. PATH_SEPARATOR=$lt_PATH_SEPARATOR # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # DLL creation program. DLLTOOL=$lt_DLLTOOL # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm into a list of symbols to manually relocate. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # The name lister interface. nm_interface=$lt_lt_cv_nm_interface # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and where our libraries should be installed. lt_sysroot=$lt_sysroot # Command to truncate a binary pipe. lt_truncate_bin=$lt_lt_cv_truncate_bin # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Detected run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \$shlibpath_var if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # ### END LIBTOOL CONFIG _LT_EOF cat <<'_LT_EOF' >> "$cfgfile" # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE # func_munge_path_list VARIABLE PATH # ----------------------------------- # VARIABLE is name of variable containing _space_ separated list of # directories to be munged by the contents of PATH, which is string # having a format: # "DIR[:DIR]:" # string "DIR[ DIR]" will be prepended to VARIABLE # ":DIR[:DIR]" # string "DIR[ DIR]" will be appended to VARIABLE # "DIRP[:DIRP]::[DIRA:]DIRA" # string "DIRP[ DIRP]" will be prepended to VARIABLE and string # "DIRA[ DIRA]" will be appended to VARIABLE # "DIR[:DIR]" # VARIABLE will be replaced by "DIR[ DIR]" func_munge_path_list () { case x$2 in x) ;; *:) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" ;; x:*) eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" ;; *::*) eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" ;; *) eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" ;; esac } # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. func_cc_basename () { for cc_temp in $*""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` } # ### END FUNCTIONS SHARED WITH CONFIGURE _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain=$ac_aux_dir/ltmain.sh # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; "po-directories":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; 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 INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; "doc":C) test -d doc || mkdir doc ;; "data":C) test -d data || mkdir data ;; "data/xsession":C) test -d data/xsession || mkdir data/xsession ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # 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 || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo "" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compiling with these options: Startup Notification... $sn_found X Cursor Library... $xcursor_found Session Management... $SM Imlib2 Library... $imlib2_found SVG Support (librsvg)... $librsvg_found " >&5 $as_echo "Compiling with these options: Startup Notification... $sn_found X Cursor Library... $xcursor_found Session Management... $SM Imlib2 Library... $imlib2_found SVG Support (librsvg)... $librsvg_found " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: configure complete, now type \"make\"" >&5 $as_echo "configure complete, now type \"make\"" >&6; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/ABOUT-NLS�����������������������������������������������������������������������������0000644�0001753�0000144�00000235235�10761665312�011363� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������1 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. When reporting bugs in the `intl/' directory or bugs which may be related to internationalization, you should tell about the version of `gettext' which is used. The information can be found in the `intl/VERSION' file, in internationalized packages. 1.1 Quick configuration advice ============================== If you want to exploit the full power of internationalization, you should configure it using ./configure --with-included-gettext to force usage of internationalizing routines provided within this package, despite the existence of internationalizing capabilities in the operating system where this package is being installed. So far, only the `gettext' implementation in the GNU C library version 2 provides as many features (such as locale alias, message inheritance, automatic charset conversion or plural form handling) as the implementation here. It is also not possible to offer this additional functionality on top of a `catgets' implementation. Future versions of GNU `gettext' will very likely convey even more functionality. So it might be a good idea to change to GNU `gettext' as soon as possible. So you need _not_ provide this option if you are using GNU libc 2 or you have installed a recent copy of the GNU gettext package with the included `libintl'. 1.2 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. If not, the included GNU `gettext' library will be used. This library is wholly contained within this package, usually in the `intl/' subdirectory, so prior installation of the GNU `gettext' package is _not_ required. Installers may use special options at configuration time for changing the default behaviour. The commands: ./configure --with-included-gettext ./configure --disable-nls will, respectively, bypass any pre-existing `gettext' to use the internationalizing routines provided within this package, or else, _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl.a' file and will decide to use this. This might not be desirable. You should use the more recent version of the GNU `gettext' library. I.e. if the file `intl/VERSION' shows that the library which comes with this package is more recent, you should use ./configure --with-included-gettext to prevent auto-detection. The configuration process will not test for the `catgets' function and therefore it will not be used. The reason is that even an emulation of `gettext' on top of `catgets' could not provide all the extensions of the GNU `gettext' library. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.3 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.4 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `translation@iro.umontreal.ca' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skill are praised more than programming skill, here. 1.5 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of July 2006. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB eo +----------------------------------------------------+ GNUnet | [] | a2ps | [] [] [] [] [] | aegis | () | ant-phone | () | anubis | [] | ap-utils | | aspell | [] [] [] [] | bash | [] [] [] | batchelor | [] | bfd | | bibshelf | [] | binutils | [] | bison | [] [] | bison-runtime | [] | bluez-pin | [] [] [] [] [] | cflow | [] | clisp | [] [] | console-tools | [] [] | coreutils | [] [] [] [] | cpio | | cpplib | [] [] [] | cryptonit | [] | darkstat | [] () [] | dialog | [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] | doodle | [] | e2fsprogs | [] [] | enscript | [] [] [] [] | error | [] [] [] [] | fetchmail | [] [] () [] | fileutils | [] [] | findutils | [] [] [] | flex | [] [] [] | fslint | [] | gas | | gawk | [] [] [] | gbiff | [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] | gettext-runtime | [] [] [] [] [] | gettext-tools | [] [] | gimp-print | [] [] [] [] | gip | [] | gliv | [] | glunarclock | [] | gmult | [] [] | gnubiff | () | gnucash | () () [] | gnucash-glossary | [] () | gnuedu | | gnulib | [] [] [] [] [] [] | gnunet-gtk | | gnutls | | gpe-aerial | [] [] | gpe-beam | [] [] | gpe-calendar | [] [] | gpe-clock | [] [] | gpe-conf | [] [] | gpe-contacts | | gpe-edit | [] | gpe-filemanager | | gpe-go | [] | gpe-login | [] [] | gpe-ownerinfo | [] [] | gpe-package | | gpe-sketchbook | [] [] | gpe-su | [] [] | gpe-taskmanager | [] [] | gpe-timesheet | [] | gpe-today | [] [] | gpe-todo | | gphoto2 | [] [] [] [] | gprof | [] [] | gpsdrive | () () | gramadoir | [] [] | grep | [] [] [] [] [] [] | gretl | | gsasl | | gss | | gst-plugins | [] [] [] [] | gst-plugins-base | [] [] [] | gst-plugins-good | [] [] [] [] [] [] [] | gstreamer | [] [] [] [] [] [] [] | gtick | [] () | gtkam | [] [] [] | gtkorphan | [] [] | gtkspell | [] [] [] [] | gutenprint | [] | hello | [] [] [] [] [] | id-utils | [] [] | impost | | indent | [] [] [] | iso_3166 | [] [] | iso_3166_1 | [] [] [] [] [] | iso_3166_2 | | iso_3166_3 | [] | iso_4217 | [] | iso_639 | [] [] | jpilot | [] | jtag | | jwhois | | kbd | [] [] [] [] | keytouch | | keytouch-editor | | keytouch-keyboa... | | latrine | () | ld | [] | leafpad | [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] | libextractor | [] | libgpewidget | [] [] [] | libgpg-error | [] | libgphoto2 | [] [] | libgphoto2_port | [] [] | libgsasl | | libiconv | [] [] | libidn | [] [] | lifelines | [] () | lilypond | [] | lingoteach | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailutils | [] | make | [] [] | man-db | [] () [] [] | minicom | [] [] [] | mysecretdiary | [] [] | nano | [] [] () [] | nano_1_0 | [] () [] [] | opcodes | [] | parted | | pilot-qof | [] | psmisc | [] | pwdutils | | python | | qof | | radius | [] | recode | [] [] [] [] [] [] | rpm | [] [] | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] | sh-utils | [] [] | shared-mime-info | [] [] [] | sharutils | [] [] [] [] [] [] | shishi | | silky | | skencil | [] () | sketch | [] () | solfege | | soundtracker | [] [] | sp | [] | stardict | [] | system-tools-ba... | [] [] [] [] [] [] [] [] [] | tar | [] | texinfo | [] [] [] | textutils | [] [] [] | tin | () () | tp-robot | [] | tuxpaint | [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] [] | vorbis-tools | [] [] [] [] | wastesedge | () | wdiff | [] [] [] [] | wget | [] [] | xchat | [] [] [] [] [] | xkeyboard-config | | xpad | [] [] | +----------------------------------------------------+ af am ar az be bg bs ca cs cy da de el en en_GB eo 11 0 1 2 8 21 1 42 43 2 62 99 18 1 16 16 es et eu fa fi fr ga gl gu he hi hr hu id is it +--------------------------------------------------+ GNUnet | | a2ps | [] [] [] () | aegis | | ant-phone | [] | anubis | [] | ap-utils | [] [] | aspell | [] [] [] | bash | [] [] [] | batchelor | [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] [] [] | bison | [] [] [] [] [] [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | cflow | | clisp | [] [] | console-tools | | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cpplib | [] [] | cryptonit | [] | darkstat | [] () [] [] [] | dialog | [] [] [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] [] [] [] | doodle | [] [] | e2fsprogs | [] [] [] | enscript | [] [] [] | error | [] [] [] [] [] | fetchmail | [] | fileutils | [] [] [] [] [] [] | findutils | [] [] [] [] | flex | [] [] [] | fslint | [] | gas | [] [] | gawk | [] [] [] [] | gbiff | [] | gcal | [] [] | gcc | [] | gettext-examples | [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] | gimp-print | [] [] | gip | [] [] [] | gliv | () | glunarclock | [] [] [] | gmult | [] [] [] | gnubiff | () () | gnucash | () () () | gnucash-glossary | [] [] | gnuedu | [] | gnulib | [] [] [] [] [] [] [] [] | gnunet-gtk | | gnutls | | gpe-aerial | [] [] | gpe-beam | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] [] | gpe-conf | [] | gpe-contacts | [] [] | gpe-edit | [] [] [] [] | gpe-filemanager | [] | gpe-go | [] [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-package | [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] [] | gpe-taskmanager | [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] | gphoto2 | [] [] [] [] [] | gprof | [] [] [] [] | gpsdrive | () () [] () | gramadoir | [] [] | grep | [] [] [] [] [] [] [] [] [] [] [] [] | gretl | [] [] [] | gsasl | [] | gss | [] | gst-plugins | [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] [] | gstreamer | [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] | gutenprint | [] | hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | id-utils | [] [] [] [] [] | impost | [] [] | indent | [] [] [] [] [] [] [] [] [] [] | iso_3166 | [] [] [] | iso_3166_1 | [] [] [] [] [] [] [] | iso_3166_2 | [] | iso_3166_3 | [] | iso_4217 | [] [] [] [] | iso_639 | [] [] [] [] [] | jpilot | [] [] | jtag | [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | latrine | [] [] [] | ld | [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] | libextractor | [] | libgpewidget | [] [] [] [] [] | libgpg-error | | libgphoto2 | [] [] [] | libgphoto2_port | [] [] | libgsasl | [] [] | libiconv | [] | libidn | [] [] | lifelines | () | lilypond | [] | lingoteach | [] [] [] | lynx | [] [] [] | m4 | [] [] [] [] | mailutils | [] [] | make | [] [] [] [] [] [] [] [] | man-db | () | minicom | [] [] [] [] | mysecretdiary | [] [] [] | nano | [] () [] [] [] [] | nano_1_0 | [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] [] | pilot-qof | | psmisc | [] [] [] | pwdutils | | python | | qof | | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rpm | [] [] | screem | | scrollkeeper | [] [] [] | sed | [] [] [] [] [] | sh-utils | [] [] [] [] [] [] [] | shared-mime-info | [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] [] | shishi | | silky | [] | skencil | [] [] | sketch | [] [] | solfege | [] | soundtracker | [] [] [] | sp | [] | stardict | [] | system-tools-ba... | [] [] [] [] [] [] [] [] | tar | [] [] [] [] [] [] | texinfo | [] [] | textutils | [] [] [] [] [] | tin | [] () | tp-robot | [] [] [] [] | tuxpaint | [] [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux | [] [] [] [] [] [] [] | vorbis-tools | [] [] | wastesedge | () | wdiff | [] [] [] [] [] [] [] [] | wget | [] [] [] [] [] [] [] [] | xchat | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] | xpad | [] [] [] | +--------------------------------------------------+ es et eu fa fi fr ga gl gu he hi hr hu id is it 89 21 16 2 41 119 61 14 1 8 1 6 61 30 0 53 ja ko ku ky lg lt lv mk mn ms mt nb ne nl nn no +--------------------------------------------------+ GNUnet | | a2ps | () [] [] () | aegis | () | ant-phone | [] | anubis | [] [] [] | ap-utils | [] | aspell | [] [] | bash | [] | batchelor | [] [] | bfd | | bibshelf | [] | binutils | | bison | [] [] [] | bison-runtime | [] [] [] | bluez-pin | [] [] [] | cflow | | clisp | [] | console-tools | | coreutils | [] | cpio | | cpplib | [] | cryptonit | [] | darkstat | [] [] | dialog | [] [] | diffutils | [] [] [] | doodle | | e2fsprogs | [] | enscript | [] | error | [] | fetchmail | [] [] | fileutils | [] [] | findutils | [] | flex | [] [] | fslint | [] [] | gas | | gawk | [] [] | gbiff | [] | gcal | | gcc | | gettext-examples | [] [] | gettext-runtime | [] [] [] | gettext-tools | [] [] | gimp-print | [] [] | gip | [] [] | gliv | [] | glunarclock | [] [] | gmult | [] [] | gnubiff | | gnucash | () () | gnucash-glossary | [] | gnuedu | | gnulib | [] [] [] [] | gnunet-gtk | | gnutls | | gpe-aerial | [] | gpe-beam | [] | gpe-calendar | [] | gpe-clock | [] [] | gpe-conf | [] [] | gpe-contacts | [] | gpe-edit | [] [] | gpe-filemanager | [] | gpe-go | [] [] | gpe-login | [] [] | gpe-ownerinfo | [] | gpe-package | [] | gpe-sketchbook | [] [] | gpe-su | [] [] | gpe-taskmanager | [] [] [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | | gphoto2 | [] [] | gprof | | gpsdrive | () () () | gramadoir | () | grep | [] [] [] | gretl | | gsasl | [] | gss | | gst-plugins | [] | gst-plugins-base | | gst-plugins-good | [] | gstreamer | [] | gtick | [] | gtkam | [] | gtkorphan | [] | gtkspell | [] [] | gutenprint | | hello | [] [] [] [] [] [] [] [] | id-utils | [] | impost | | indent | [] [] | iso_3166 | [] | iso_3166_1 | [] [] | iso_3166_2 | [] | iso_3166_3 | [] | iso_4217 | [] [] [] | iso_639 | [] [] | jpilot | () () () | jtag | | jwhois | [] | kbd | [] | keytouch | [] | keytouch-editor | | keytouch-keyboa... | | latrine | [] | ld | | leafpad | [] [] | libc | [] [] [] [] [] | libexif | | libextractor | | libgpewidget | [] | libgpg-error | | libgphoto2 | [] | libgphoto2_port | [] | libgsasl | [] | libiconv | | libidn | [] [] | lifelines | [] | lilypond | | lingoteach | [] | lynx | [] [] | m4 | [] [] | mailutils | | make | [] [] [] | man-db | () | minicom | [] | mysecretdiary | [] | nano | [] [] [] | nano_1_0 | [] [] [] | opcodes | [] | parted | [] [] | pilot-qof | | psmisc | [] [] [] | pwdutils | | python | | qof | | radius | | recode | [] | rpm | [] [] | screem | [] | scrollkeeper | [] [] [] [] | sed | [] [] | sh-utils | [] [] | shared-mime-info | [] [] [] [] [] | sharutils | [] [] | shishi | | silky | [] | skencil | | sketch | | solfege | | soundtracker | | sp | () | stardict | [] [] | system-tools-ba... | [] [] [] [] | tar | [] [] [] | texinfo | [] [] [] | textutils | [] [] [] | tin | | tp-robot | [] | tuxpaint | [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] | vorbis-tools | [] | wastesedge | [] | wdiff | [] [] | wget | [] [] | xchat | [] [] [] [] | xkeyboard-config | [] | xpad | [] [] [] | +--------------------------------------------------+ ja ko ku ky lg lt lv mk mn ms mt nb ne nl nn no 40 24 2 1 1 3 1 2 3 21 0 15 1 101 5 3 nso or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta +------------------------------------------------------+ GNUnet | | a2ps | () [] [] [] [] [] [] | aegis | () () | ant-phone | [] [] | anubis | [] [] [] | ap-utils | () | aspell | [] [] | bash | [] [] [] | batchelor | [] [] | bfd | | bibshelf | [] | binutils | [] [] | bison | [] [] [] [] [] | bison-runtime | [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] [] | cflow | [] | clisp | [] | console-tools | [] | coreutils | [] [] [] [] | cpio | [] [] [] | cpplib | [] | cryptonit | [] [] | darkstat | [] [] [] [] [] [] | dialog | [] [] [] [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | error | [] [] [] [] | fetchmail | [] [] [] | fileutils | [] [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] [] [] | fslint | [] [] [] [] | gas | | gawk | [] [] [] [] | gbiff | [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] [] | gimp-print | [] [] | gip | [] [] [] [] | gliv | [] [] [] [] | glunarclock | [] [] [] [] [] [] | gmult | [] [] [] [] | gnubiff | () | gnucash | () [] | gnucash-glossary | [] [] [] | gnuedu | | gnulib | [] [] [] [] [] | gnunet-gtk | [] | gnutls | [] [] | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | gpe-calendar | [] [] [] [] [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] [] | gpe-contacts | [] [] [] [] [] | gpe-edit | [] [] [] [] [] [] [] [] | gpe-filemanager | [] [] | gpe-go | [] [] [] [] [] [] | gpe-login | [] [] [] [] [] [] [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] | gphoto2 | [] [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] | grep | [] [] [] [] [] [] [] [] | gretl | [] | gsasl | [] [] | gss | [] [] [] | gst-plugins | [] [] [] [] | gst-plugins-base | [] | gst-plugins-good | [] [] [] [] | gstreamer | [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] | gutenprint | [] | hello | [] [] [] [] [] [] [] [] | id-utils | [] [] [] [] | impost | [] | indent | [] [] [] [] [] [] | iso_3166 | [] [] [] [] [] [] | iso_3166_1 | [] [] [] [] | iso_3166_2 | | iso_3166_3 | [] [] [] [] | iso_4217 | [] [] [] [] | iso_639 | [] [] [] [] | jpilot | | jtag | [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | latrine | [] [] | ld | [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] [] | libexif | [] | libextractor | [] [] | libgpewidget | [] [] [] [] [] [] [] | libgpg-error | [] [] | libgphoto2 | [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] | libiconv | | libidn | [] [] () | lifelines | [] [] | lilypond | | lingoteach | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailutils | [] [] [] [] | make | [] [] [] [] | man-db | [] [] | minicom | [] [] [] [] [] | mysecretdiary | [] [] [] [] | nano | [] [] | nano_1_0 | [] [] [] [] | opcodes | [] [] | parted | [] | pilot-qof | [] | psmisc | [] [] | pwdutils | [] [] | python | | qof | [] | radius | [] [] | recode | [] [] [] [] [] [] [] | rpm | [] [] [] [] | screem | | scrollkeeper | [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sh-utils | [] [] [] | shared-mime-info | [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | silky | [] | skencil | [] [] [] | sketch | [] [] [] | solfege | [] | soundtracker | [] [] | sp | | stardict | [] [] [] | system-tools-ba... | [] [] [] [] [] [] [] [] [] | tar | [] [] [] [] [] | texinfo | [] [] [] [] | textutils | [] [] [] | tin | () | tp-robot | [] | tuxpaint | [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] [] | vorbis-tools | [] [] | wastesedge | | wdiff | [] [] [] [] [] [] | wget | [] [] [] [] | xchat | [] [] [] [] [] [] [] | xkeyboard-config | [] [] | xpad | [] [] [] | +------------------------------------------------------+ nso or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv ta 0 2 3 58 31 53 5 76 72 5 42 48 12 51 130 2 tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu +---------------------------------------------------+ GNUnet | [] | 2 a2ps | [] [] [] | 19 aegis | | 0 ant-phone | [] [] | 6 anubis | [] [] [] | 11 ap-utils | () [] | 4 aspell | [] [] [] | 14 bash | [] | 11 batchelor | [] [] | 9 bfd | | 1 bibshelf | [] | 7 binutils | [] [] [] | 9 bison | [] [] [] | 19 bison-runtime | [] [] [] | 16 bluez-pin | [] [] [] [] [] [] | 28 cflow | [] [] | 4 clisp | | 6 console-tools | [] [] | 5 coreutils | [] [] | 17 cpio | [] [] [] | 9 cpplib | [] [] [] [] | 11 cryptonit | | 5 darkstat | [] () () | 15 dialog | [] [] [] [] [] | 30 diffutils | [] [] [] [] | 28 doodle | [] | 6 e2fsprogs | [] [] | 10 enscript | [] [] [] | 16 error | [] [] [] [] | 18 fetchmail | [] [] | 12 fileutils | [] [] [] | 18 findutils | [] [] [] | 17 flex | [] [] | 15 fslint | [] | 9 gas | [] | 3 gawk | [] [] | 15 gbiff | [] | 5 gcal | [] | 5 gcc | [] [] [] | 6 gettext-examples | [] [] [] [] [] [] | 26 gettext-runtime | [] [] [] [] [] [] | 28 gettext-tools | [] [] [] [] [] | 19 gimp-print | [] [] | 12 gip | [] [] | 12 gliv | [] [] | 8 glunarclock | [] [] [] | 15 gmult | [] [] [] [] | 15 gnubiff | [] | 1 gnucash | () | 2 gnucash-glossary | [] [] | 9 gnuedu | [] | 2 gnulib | [] [] [] [] [] | 28 gnunet-gtk | | 1 gnutls | | 2 gpe-aerial | [] [] | 14 gpe-beam | [] [] | 14 gpe-calendar | [] [] [] [] | 19 gpe-clock | [] [] [] [] | 20 gpe-conf | [] [] | 14 gpe-contacts | [] [] | 10 gpe-edit | [] [] [] [] | 19 gpe-filemanager | [] | 5 gpe-go | [] [] | 14 gpe-login | [] [] [] [] [] | 20 gpe-ownerinfo | [] [] [] [] | 20 gpe-package | [] | 5 gpe-sketchbook | [] [] | 16 gpe-su | [] [] [] | 19 gpe-taskmanager | [] [] [] | 19 gpe-timesheet | [] [] [] [] | 18 gpe-today | [] [] [] [] [] | 20 gpe-todo | [] | 6 gphoto2 | [] [] [] [] | 20 gprof | [] [] | 11 gpsdrive | | 4 gramadoir | [] | 7 grep | [] [] [] [] | 33 gretl | | 4 gsasl | [] [] | 6 gss | [] | 5 gst-plugins | [] [] [] | 15 gst-plugins-base | [] [] [] | 9 gst-plugins-good | [] [] [] | 18 gstreamer | [] [] [] | 17 gtick | [] | 11 gtkam | [] | 13 gtkorphan | [] | 7 gtkspell | [] [] [] [] [] [] | 26 gutenprint | | 3 hello | [] [] [] [] [] | 39 id-utils | [] [] | 14 impost | [] | 4 indent | [] [] [] [] | 25 iso_3166 | [] [] [] | 15 iso_3166_1 | [] [] | 20 iso_3166_2 | | 2 iso_3166_3 | [] [] | 9 iso_4217 | [] [] | 14 iso_639 | [] | 14 jpilot | [] [] [] [] | 7 jtag | [] | 3 jwhois | [] [] [] | 13 kbd | [] [] | 12 keytouch | [] | 4 keytouch-editor | | 2 keytouch-keyboa... | | 2 latrine | [] [] | 8 ld | [] [] [] [] | 8 leafpad | [] [] [] [] | 23 libc | [] [] [] | 23 libexif | [] | 4 libextractor | [] | 5 libgpewidget | [] [] [] | 19 libgpg-error | [] | 4 libgphoto2 | [] | 8 libgphoto2_port | [] [] [] | 11 libgsasl | [] | 8 libiconv | [] | 4 libidn | [] [] | 10 lifelines | | 4 lilypond | | 2 lingoteach | [] | 6 lynx | [] [] [] | 15 m4 | [] [] [] | 18 mailutils | [] | 8 make | [] [] [] | 20 man-db | [] | 6 minicom | [] | 14 mysecretdiary | [] [] | 12 nano | [] [] | 15 nano_1_0 | [] [] [] | 18 opcodes | [] [] | 10 parted | [] [] [] | 10 pilot-qof | [] | 3 psmisc | [] | 10 pwdutils | [] | 3 python | | 0 qof | [] | 2 radius | [] | 6 recode | [] [] [] | 25 rpm | [] [] [] [] | 14 screem | [] | 2 scrollkeeper | [] [] [] [] | 26 sed | [] [] [] | 22 sh-utils | [] | 15 shared-mime-info | [] [] [] [] | 23 sharutils | [] [] [] | 23 shishi | | 1 silky | [] | 4 skencil | [] | 7 sketch | | 6 solfege | | 2 soundtracker | [] [] | 9 sp | [] | 3 stardict | [] [] [] [] | 11 system-tools-ba... | [] [] [] [] [] [] [] | 37 tar | [] [] [] [] | 19 texinfo | [] [] [] | 15 textutils | [] [] [] | 17 tin | | 1 tp-robot | [] [] [] | 10 tuxpaint | [] [] [] | 16 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux | [] [] [] | 20 vorbis-tools | [] [] | 11 wastesedge | | 1 wdiff | [] [] | 22 wget | [] [] [] | 19 xchat | [] [] [] [] | 28 xkeyboard-config | [] [] [] [] | 11 xpad | [] [] [] | 14 +---------------------------------------------------+ 77 teams tg th tk tr uk ven vi wa xh zh_CN zh_HK zh_TW zu 172 domains 0 1 1 78 39 0 135 13 1 50 3 54 0 2054 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If July 2006 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. 1.6 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `translation@iro.umontreal.ca' to make the `.pot' files available to the translation teams. �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/compile�������������������������������������������������������������������������������0000755�0001753�0000144�00000016152�12544730643�011506� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2012-03-05.13; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free # Software Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # 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, see <http://www.gnu.org/licenses/>. # 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. # This file is maintained in Automake, please report # bugs to <bug-automake@gnu.org> or send patches to # <automake-patches@gnu.org>. nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to <bug-automake@gnu.org>. EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # 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-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/config.guess��������������������������������������������������������������������������0000755�0001753�0000144�00000130634�10750100575�012442� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /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, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-23' # 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 <per@bothner.com>. # Please send patches to <config-patches@gnu.org>. 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 <config-patches@gnu.org>." 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, 2006, 2007, 2008 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 if [ "${UNAME_SYSTEM}" = "Linux" ] ; then eval $set_cc_for_build cat << EOF > $dummy.c #include <features.h> #ifdef __UCLIBC__ # ifdef __UCLIBC_CONFIG_VERSION__ LIBC=uclibc __UCLIBC_CONFIG_VERSION__ # else LIBC=uclibc # endif #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'` fi # 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 ;; sh5el) machine=sh5le-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.*:* | i86xen: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 <stdio.h> /* 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 <sys/systemcfg.h> 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:*:[456]) 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 <stdlib.h> #include <unistd.h> 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 <unistd.h> 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 ;; *: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 ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [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:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo cris-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo frv-unknown-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 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-${LIBC}"; 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-${LIBC}"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} 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="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${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-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 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-${LIBC}" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld" exit ;; esac # This should get integrated into the C code below, but now we hack if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include <features.h> #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' </usr/options/cb.name` echo ${UNAME_MACHINE}-pc-isc$UNAME_REL elif /bin/uname -X 2>/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 <Richard.M.Bartel@ccMail.Census.GOV> echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes <hewes@openmarket.com>. # 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 ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-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 <<EOF #ifdef _SEQUENT_ # include <sys/types.h> # include <sys/utsname.h> #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 <sys/param.h> 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 <sys/param.h> # 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 <<EOF $0: unable to guess system type This script, last modified $timestamp, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run ($0) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> 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: ����������������������������������������������������������������������������������������������������openbox-3.6.1/config.rpath��������������������������������������������������������������������������0000755�0001753�0000144�00000037444�10761665312�012446� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2006 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # 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. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; darwin*) case $cc_basename in xlc*) wl='-Wl,' ;; esac ;; mingw* | pw32* | os2*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux*) case $cc_basename in icc* | ecc*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; sco3.2v5*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) wl='-Wl,' ;; sysv4*MP*) ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we cannot use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; interix3*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix5*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) ;; cygwin* | mingw* | pw32*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if test "$GCC" = yes ; then : else case $cc_basename in xlc*) ;; *) ld_shlibs=no ;; esac fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | kfreebsd*-gnu | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. libname_spec='lib$name' case "$host_os" in aix3*) ;; aix4* | aix5*) ;; amigaos*) ;; beos*) ;; bsdi[45]*) ;; cygwin* | mingw* | pw32*) shrext=.dll ;; darwin* | rhapsody*) shrext=.dylib ;; dgux*) ;; freebsd1*) ;; kfreebsd*-gnu) ;; freebsd* | dragonfly*) ;; gnu*) ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac ;; interix3*) ;; irix5* | irix6* | nonstopux*) case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux*) ;; knetbsd*-gnu) ;; netbsd*) ;; newsos6) ;; nto-qnx*) ;; openbsd*) ;; os2*) libname_spec='$name' shrext=.dll ;; osf3* | osf4* | osf5*) ;; solaris*) ;; sunos4*) ;; sysv4 | sysv4.3*) ;; sysv4*MP*) ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) ;; uts4*) ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF # How to pass a linker flag through the compiler. wl="$escaped_wl" # Static library suffix (normally "a"). libext="$libext" # Shared library suffix (normally "so"). shlibext="$shlibext" # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec" # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator="$hardcode_libdir_separator" # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the # resulting binary. hardcode_direct="$hardcode_direct" # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L="$hardcode_minus_L" EOF ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/config.sub����������������������������������������������������������������������������0000755�0001753�0000144�00000101565�10750100575�012106� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2008-01-16' # 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 <config-patches@gnu.org>. 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 <config-patches@gnu.org>." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 | dvp \ | fido | 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 | mep \ | 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[24]a*eb | 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-* | fido-* | 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[24]a*eb-* | 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 basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # 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 ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; 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 ;; cr16) basic_machine=cr16-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 ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; 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 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mipsEE* | ee | ps2) basic_machine=mips64r5900el-scei case $os in -linux*) ;; *) os=-elf ;; esac ;; iop) basic_machine=mipsel-scei os=-irx ;; dvp) basic_machine=dvp-scei os=-elf ;; 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 ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; 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 ;; sh5el) basic_machine=sh5le-unknown ;; 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 ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; 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* | -drops* | -irx*) # 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 ;; mep-*) os=-elf ;; 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: �������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/depcomp�������������������������������������������������������������������������������0000755�0001753�0000144�00000050643�12544730644�011511� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2012-03-27.16; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010, # 2011, 2012 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, see <http://www.gnu.org/licenses/>. # 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 <oliva@dcc.unicamp.br>. 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 outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to <bug-automake@gnu.org>. EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # A tabulation character. tab=' ' # A newline character. nl=' ' 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 cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. gccflag=-qmakedep=gcc,-MF depmode=gcc 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. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" 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 ' ' "$nl" < "$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. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## 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 "s|.*$object$||" -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 ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$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" ;; xlc) # 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 ;; 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. 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 tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # 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,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$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 anf tcc (Tiny C Compiler) understand '-MD -MF file'. # However on # $CC -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 ... \ # ... # tcc 0.9.26 (FIXME still under development at the moment of writing) # will emit a similar output, but also prepend the continuation lines # with horizontal tabulation characters. "$@" -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 -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ < "$tmpdepfile" > "$depfile" sed ' s/[ '"$tab"'][ '"$tab"']*/ /g s/^ *// s/ *\\*$// s/^[^:]*: *// /^$/d /:$/d s/$/ :/ ' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. 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 tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; 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 mechanism 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 $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" sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test "$stat" = 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" rm -f "$tmpdepfile" ;; msvc7msys) # 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 ;; #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 "X$1" != 'X--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:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' "$nl" < "$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 "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi 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. -arch) eat=yes ;; -*|$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" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ ## 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 "X$1" != 'X--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. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # 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 ;; 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-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ���������������������������������������������������������������������������������������������openbox-3.6.1/install-sh����������������������������������������������������������������������������0000755�0001753�0000144�00000014253�11140421436�012120� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5 (mit/util/scripts/install.sh). # # Copyright 1991 by the Massachusetts Institute of Technology # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of M.I.T. not be used in advertising or # publicity pertaining to distribution of the software without specific, # written prior permission. M.I.T. makes no representations about the # suitability of this software for any purpose. It is provided "as is" # without express or implied warranty. # # 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}" transformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd=$cpprog shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "$0: no input file specified" >&2 exit 1 else : fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d "$dst" ]; then instcmd=: chmodcmd="" else instcmd=$mkdirprog fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f "$src" ] || [ -d "$src" ] then : else echo "$0: $src does not exist" >&2 exit 1 fi if [ x"$dst" = x ] then echo "$0: no destination specified" >&2 exit 1 else : fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d "$dst" ] then dst=$dst/`basename "$src"` else : fi fi ## this sed command emulates the dirname command dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` IFS=$oIFS pathcomp='' while [ $# -ne 0 ] ; do pathcomp=$pathcomp$1 shift if [ ! -d "$pathcomp" ] ; then $mkdirprog "$pathcomp" else : fi pathcomp=$pathcomp/ done fi if [ x"$dir_arg" != x ] then $doit $instcmd "$dst" && if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename "$dst"` else dstfile=`basename "$dst" $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename "$dst"` else : fi # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/#inst.$$# rmtmp=$dstdir/#rm.$$# # Trap to clean up temp files at exit. trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 # Move or copy the file name to the temp name $doit $instcmd "$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 $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && # 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 [ -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 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" fi && # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/ltmain.sh�����������������������������������������������������������������������������0000644�0001753�0000144�00001171106�12544730633�011751� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in ## by inline-source v2014-01-03.01 # libtool (GNU libtool) 2.4.6 # Provide generalized library-building support services. # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996-2015 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. # GNU Libtool 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. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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, see <http://www.gnu.org/licenses/>. PROGRAM=libtool PACKAGE=libtool VERSION=2.4.6 package_revision=2.4.6 ## ------ ## ## Usage. ## ## ------ ## # Run './libtool --help' for help with using this script from the # command line. ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # After configure completes, it has a better idea of some of the # shell tools we need than the defaults used by the functions shared # with bootstrap, so set those here where they can still be over- # ridden by the user, but otherwise take precedence. : ${AUTOCONF="autoconf"} : ${AUTOMAKE="automake"} ## -------------------------- ## ## Source external libraries. ## ## -------------------------- ## # Much of our low-level functionality needs to be sourced from external # libraries, which are installed to $pkgauxdir. # Set a version string for this script. scriptversion=2015-01-20.17; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 # Copyright (C) 2004-2015 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. # 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 3 of the License, or # (at your option) any later version. # As a special exception to the GNU General Public License, if you distribute # this file as part of a program or library that is built using GNU Libtool, # you may include this file under the same distribution terms that you use # for the rest of that program. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNES 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, see <http://www.gnu.org/licenses/>. # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # Evaluate this file near the top of your script to gain access to # the functions and variables defined here: # # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh # # If you need to override any of the default environment variable # settings, do that before evaluating this file. ## -------------------- ## ## Shell normalisation. ## ## -------------------- ## # Some shells need a little help to be as Bourne compatible as possible. # Before doing anything else, make sure all that help has been provided! DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do 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 # NLS nuisances: We save the old values in case they are required later. _G_user_locale= _G_safe_locale= for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test set = \"\${$_G_var+set}\"; then save_$_G_var=\$$_G_var $_G_var=C export $_G_var _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" fi" done # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Make sure IFS has a sensible default sp=' ' nl=' ' IFS="$sp $nl" # There are apparently some retarded systems that use ';' as a PATH separator! if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi ## ------------------------- ## ## Locate command utilities. ## ## ------------------------- ## # func_executable_p FILE # ---------------------- # Check that FILE is an executable regular file. func_executable_p () { test -f "$1" && test -x "$1" } # func_path_progs PROGS_LIST CHECK_FUNC [PATH] # -------------------------------------------- # Search for either a program that responds to --version with output # containing "GNU", or else returned by CHECK_FUNC otherwise, by # trying all the directories in PATH with each of the elements of # PROGS_LIST. # # CHECK_FUNC should accept the path to a candidate program, and # set $func_check_prog_result if it truncates its output less than # $_G_path_prog_max characters. func_path_progs () { _G_progs_list=$1 _G_check_func=$2 _G_PATH=${3-"$PATH"} _G_path_prog_max=0 _G_path_prog_found=false _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} for _G_dir in $_G_PATH; do IFS=$_G_save_IFS test -z "$_G_dir" && _G_dir=. for _G_prog_name in $_G_progs_list; do for _exeext in '' .EXE; do _G_path_prog=$_G_dir/$_G_prog_name$_exeext func_executable_p "$_G_path_prog" || continue case `"$_G_path_prog" --version 2>&1` in *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; *) $_G_check_func $_G_path_prog func_path_progs_result=$func_check_prog_result ;; esac $_G_path_prog_found && break 3 done done done IFS=$_G_save_IFS test -z "$func_path_progs_result" && { echo "no acceptable sed could be found in \$PATH" >&2 exit 1 } } # We want to be able to use the functions in this file before configure # has figured out where the best binaries are kept, which means we have # to search for them ourselves - except when the results are already set # where we skip the searches. # Unless the user overrides by setting SED, search the path for either GNU # sed, or the sed that truncates its output the least. test -z "$SED" && { _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for _G_i in 1 2 3 4 5 6 7; do _G_sed_script=$_G_sed_script$nl$_G_sed_script done echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed _G_sed_script= func_check_prog_sed () { _G_path_prog=$1 _G_count=0 printf 0123456789 >conftest.in while : do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo '' >> conftest.nl "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin rm -f conftest.sed SED=$func_path_progs_result } # Unless the user overrides by setting GREP, search the path for either GNU # grep, or the grep that truncates its output the least. test -z "$GREP" && { func_check_prog_grep () { _G_path_prog=$1 _G_count=0 _G_path_prog_max=0 printf 0123456789 >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 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break diff conftest.out conftest.nl >/dev/null 2>&1 || break _G_count=`expr $_G_count + 1` if test "$_G_count" -gt "$_G_path_prog_max"; then # Best one so far, save it but keep looking for a better one func_check_prog_result=$_G_path_prog _G_path_prog_max=$_G_count fi # 10*(2^10) chars as input seems more than enough test 10 -lt "$_G_count" && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out } func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin GREP=$func_path_progs_result } ## ------------------------------- ## ## User overridable command paths. ## ## ------------------------------- ## # All uppercase variable names are used for environment variables. These # variables can be overridden by the user before calling a script that # uses them if a suitable command of that name is not already available # in the command search PATH. : ${CP="cp -f"} : ${ECHO="printf %s\n"} : ${EGREP="$GREP -E"} : ${FGREP="$GREP -F"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} ## -------------------- ## ## Useful sed snippets. ## ## -------------------- ## sed_dirname='s|/[^/]*$||' sed_basename='s|^.*/||' # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s|\([`"$\\]\)|\\\1|g' # Same as above, but do not quote variable references. sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' # Sed substitution that converts a w32 file name or path # that contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-'\' parameter expansions in output of sed_double_quote_subst that # were '\'-ed in input to the same. If an odd number of '\' preceded a # '$' in input to sed_double_quote_subst, that '$' was protected from # expansion. Since each input '\' is now two '\'s, look for any number # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. _G_bs='\\' _G_bs2='\\\\' _G_bs4='\\\\\\\\' _G_dollar='\$' sed_double_backslash="\ s/$_G_bs4/&\\ /g s/^$_G_bs2$_G_dollar/$_G_bs&/ s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g s/\n//g" ## ----------------- ## ## Global variables. ## ## ----------------- ## # Except for the global variables explicitly listed below, the following # functions in the '^func_' namespace, and the '^require_' namespace # variables initialised in the 'Resource management' section, sourcing # this file will not pollute your global namespace with anything # else. There's no portable way to scope variables in Bourne shell # though, so actually running these functions will sometimes place # results into a variable named after the function, and often use # temporary variables in the '^_G_' namespace. If you are careful to # avoid using those namespaces casually in your sourcing script, things # should continue to work as you expect. And, of course, you can freely # overwrite any of the functions or variables defined here before # calling anything to customize them. EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. # Allow overriding, eg assuming that you follow the convention of # putting '$debug_cmd' at the start of all your functions, you can get # bash to show function call trace with: # # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name debug_cmd=${debug_cmd-":"} exit_cmd=: # By convention, finish your script with: # # exit $exit_status # # so that you can set exit_status to non-zero if you want to indicate # something went wrong during execution without actually bailing out at # the point of failure. exit_status=$EXIT_SUCCESS # 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 "$sed_basename"` # Make sure we have an absolute progpath for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` progdir=`cd "$progdir" && pwd` progpath=$progdir/$progname ;; *) _G_IFS=$IFS IFS=${PATH_SEPARATOR-:} for progdir in $PATH; do IFS=$_G_IFS test -x "$progdir/$progname" && break done IFS=$_G_IFS test -n "$progdir" || progdir=`pwd` progpath=$progdir/$progname ;; esac ## ----------------- ## ## Standard options. ## ## ----------------- ## # The following options affect the operation of the functions defined # below, and should be set appropriately depending on run-time para- # meters passed on the command line. opt_dry_run=false opt_quiet=false opt_verbose=false # Categories 'all' and 'none' are always available. Append any others # you will pass as the first argument to func_warning from your own # code. warning_categories= # By default, display warnings according to 'opt_warning_types'. Set # 'warning_func' to ':' to elide all warnings, or func_fatal_error to # treat the next displayed warning as a fatal error. warning_func=func_warn_and_continue # Set to 'all' to display all warnings, 'none' to suppress all # warnings, or a space delimited list of some subset of # 'warning_categories' to display only the listed warnings. opt_warning_types=all ## -------------------- ## ## Resource management. ## ## -------------------- ## # This section contains definitions for functions that each ensure a # particular resource (a file, or a non-empty configuration variable for # example) is available, and if appropriate to extract default values # from pertinent package files. Call them using their associated # 'require_*' variable to ensure that they are executed, at most, once. # # It's entirely deliberate that calling these functions can set # variables that don't obey the namespace limitations obeyed by the rest # of this file, in order that that they be as useful as possible to # callers. # require_term_colors # ------------------- # Allow display of bold text on terminals that support it. require_term_colors=func_require_term_colors func_require_term_colors () { $debug_cmd test -t 1 && { # COLORTERM and USE_ANSI_COLORS environment variables take # precedence, because most terminfo databases neglect to describe # whether color sequences are supported. test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} if test 1 = "$USE_ANSI_COLORS"; then # Standard ANSI escape sequences tc_reset='' tc_bold=''; tc_standout='' tc_red=''; tc_green='' tc_blue=''; tc_cyan='' else # Otherwise trust the terminfo database after all. test -n "`tput sgr0 2>/dev/null`" && { tc_reset=`tput sgr0` test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` tc_standout=$tc_bold test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` } fi } require_term_colors=: } ## ----------------- ## ## Function library. ## ## ----------------- ## # This section contains a variety of useful functions to call in your # scripts. Take note of the portable wrappers for features provided by # some modern shells, which will fall back to slower equivalents on # less featureful shells. # func_append VAR VALUE # --------------------- # Append VALUE onto the existing contents of VAR. # We should try to minimise forks, especially on Windows where they are # unreasonably slow, so skip the feature probes when bash or zsh are # being used: if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then : ${_G_HAVE_ARITH_OP="yes"} : ${_G_HAVE_XSI_OPS="yes"} # The += operator was introduced in bash 3.1 case $BASH_VERSION in [12].* | 3.0 | 3.0*) ;; *) : ${_G_HAVE_PLUSEQ_OP="yes"} ;; esac fi # _G_HAVE_PLUSEQ_OP # Can be empty, in which case the shell is probed, "yes" if += is # useable or anything else if it does not work. test -z "$_G_HAVE_PLUSEQ_OP" \ && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ && _G_HAVE_PLUSEQ_OP=yes if test yes = "$_G_HAVE_PLUSEQ_OP" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_append () { $debug_cmd eval "$1+=\$2" }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_append () { $debug_cmd eval "$1=\$$1\$2" } fi # func_append_quoted VAR VALUE # ---------------------------- # Quote VALUE and append to the end of shell variable VAR, separated # by a space. if test yes = "$_G_HAVE_PLUSEQ_OP"; then eval 'func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1+=\\ \$func_quote_for_eval_result" }' else func_append_quoted () { $debug_cmd func_quote_for_eval "$2" eval "$1=\$$1\\ \$func_quote_for_eval_result" } fi # func_append_uniq VAR VALUE # -------------------------- # Append unique VALUE onto the existing contents of VAR, assuming # entries are delimited by the first character of VALUE. For example: # # func_append_uniq options " --another-option option-argument" # # will only append to $options if " --another-option option-argument " # is not already present somewhere in $options already (note spaces at # each end implied by leading space in second argument). func_append_uniq () { $debug_cmd eval _G_current_value='`$ECHO $'$1'`' _G_delim=`expr "$2" : '\(.\)'` case $_G_delim$_G_current_value$_G_delim in *"$2$_G_delim"*) ;; *) func_append "$@" ;; esac } # func_arith TERM... # ------------------ # Set func_arith_result to the result of evaluating TERMs. test -z "$_G_HAVE_ARITH_OP" \ && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ && _G_HAVE_ARITH_OP=yes if test yes = "$_G_HAVE_ARITH_OP"; then eval 'func_arith () { $debug_cmd func_arith_result=$(( $* )) }' else func_arith () { $debug_cmd func_arith_result=`expr "$@"` } fi # func_basename FILE # ------------------ # Set func_basename_result to FILE with everything up to and including # the last / stripped. if test yes = "$_G_HAVE_XSI_OPS"; then # If this shell supports suffix pattern removal, then use it to avoid # forking. Hide the definitions single quotes in case the shell chokes # on unsupported syntax... _b='func_basename_result=${1##*/}' _d='case $1 in */*) func_dirname_result=${1%/*}$2 ;; * ) func_dirname_result=$3 ;; esac' else # ...otherwise fall back to using sed. _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` if test "X$func_dirname_result" = "X$1"; then func_dirname_result=$3 else func_append func_dirname_result "$2" fi' fi eval 'func_basename () { $debug_cmd '"$_b"' }' # func_dirname FILE APPEND NONDIR_REPLACEMENT # ------------------------------------------- # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. eval 'func_dirname () { $debug_cmd '"$_d"' }' # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT # -------------------------------------------------------- # Perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # For efficiency, we do not delegate to the functions above but instead # duplicate the functionality here. eval 'func_dirname_and_basename () { $debug_cmd '"$_b"' '"$_d"' }' # func_echo ARG... # ---------------- # Echo program name prefixed message. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname: $_G_line" done IFS=$func_echo_IFS } # func_echo_all ARG... # -------------------- # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_echo_infix_1 INFIX ARG... # ------------------------------ # Echo program name, followed by INFIX on the first line, with any # additional lines not showing INFIX. func_echo_infix_1 () { $debug_cmd $require_term_colors _G_infix=$1; shift _G_indent=$_G_infix _G_prefix="$progname: $_G_infix: " _G_message=$* # Strip color escape sequences before counting printable length for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" do test -n "$_G_tc" && { _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` } done _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes func_echo_infix_1_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_infix_1_IFS $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 _G_prefix=$_G_indent done IFS=$func_echo_infix_1_IFS } # func_error ARG... # ----------------- # Echo program name prefixed message to standard error. func_error () { $debug_cmd $require_term_colors func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 } # func_fatal_error ARG... # ----------------------- # Echo program name prefixed message to standard error, and exit. func_fatal_error () { $debug_cmd func_error "$*" exit $EXIT_FAILURE } # func_grep EXPRESSION FILENAME # ----------------------------- # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $debug_cmd $GREP "$1" "$2" >/dev/null 2>&1 } # func_len STRING # --------------- # Set func_len_result to the length of STRING. STRING may not # start with a hyphen. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_len () { $debug_cmd func_len_result=${#1} }' else func_len () { $debug_cmd func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } fi # func_mkdir_p DIRECTORY-PATH # --------------------------- # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { $debug_cmd _G_directory_path=$1 _G_dir_list= if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then # Protect directory names starting with '-' case $_G_directory_path in -*) _G_directory_path=./$_G_directory_path ;; esac # While some portion of DIR does not yet exist... while test ! -d "$_G_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. _G_dir_list=$_G_directory_path:$_G_dir_list # If the last portion added has no slash in it, the list is done case $_G_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` done _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` func_mkdir_p_IFS=$IFS; IFS=: for _G_dir in $_G_dir_list; do IFS=$func_mkdir_p_IFS # mkdir can fail with a 'File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$_G_dir" 2>/dev/null || : done IFS=$func_mkdir_p_IFS # Bail out if we (or some other process) failed to create a directory. test -d "$_G_directory_path" || \ func_fatal_error "Failed to create '$1'" fi } # func_mktempdir [BASENAME] # ------------------------- # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, BASENAME is the basename for that directory. func_mktempdir () { $debug_cmd _G_template=${TMPDIR-/tmp}/${1-$progname} if test : = "$opt_dry_run"; then # Return a directory name, but don't create it in dry-run mode _G_tmpdir=$_G_template-$$ else # If mktemp works, use that first and foremost _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` if test ! -d "$_G_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race _G_tmpdir=$_G_template-${RANDOM-0}$$ func_mktempdir_umask=`umask` umask 0077 $MKDIR "$_G_tmpdir" umask $func_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$_G_tmpdir" || \ func_fatal_error "cannot create temporary directory '$_G_tmpdir'" fi $ECHO "$_G_tmpdir" } # func_normal_abspath PATH # ------------------------ # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. func_normal_abspath () { $debug_cmd # These SED scripts presuppose an absolute path with a trailing slash. _G_pathcar='s|^/\([^/]*\).*$|\1|' _G_pathcdr='s|^/[^/]*||' _G_removedotparts=':dotsl s|/\./|/|g t dotsl s|/\.$|/|' _G_collapseslashes='s|/\{1,\}|/|g' _G_finalslash='s|/*$|/|' # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` while :; do # Processed it all yet? if test / = "$func_normal_abspath_tpath"; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result"; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$_G_pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_notquiet ARG... # -------------------- # Echo program name prefixed message only when not in quiet mode. func_notquiet () { $debug_cmd $opt_quiet || func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_relative_path SRCDIR DSTDIR # -------------------------------- # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. func_relative_path () { $debug_cmd func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=$func_dirname_result if test -z "$func_relative_path_tlibdir"; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test -n "$func_stripname_result"; then func_append func_relative_path_result "/$func_stripname_result" fi # Normalisation. If bindir is libdir, return '.' else relative path. if test -n "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result" func_relative_path_result=$func_stripname_result fi test -n "$func_relative_path_result" || func_relative_path_result=. : } # func_quote_for_eval ARG... # -------------------------- # Aesthetically quote ARGs to be evaled later. # This function returns two values: # i) func_quote_for_eval_result # double-quoted, suitable for a subsequent eval # ii) func_quote_for_eval_unquoted_result # has all characters that are still active within double # quotes backslashified. func_quote_for_eval () { $debug_cmd func_quote_for_eval_unquoted_result= func_quote_for_eval_result= while test 0 -lt $#; do case $1 in *[\\\`\"\$]*) _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; *) _G_unquoted_arg=$1 ;; esac if test -n "$func_quote_for_eval_unquoted_result"; then func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" else func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" fi case $_G_unquoted_arg in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and variable expansion # for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_quoted_arg=\"$_G_unquoted_arg\" ;; *) _G_quoted_arg=$_G_unquoted_arg ;; esac if test -n "$func_quote_for_eval_result"; then func_append func_quote_for_eval_result " $_G_quoted_arg" else func_append func_quote_for_eval_result "$_G_quoted_arg" fi shift done } # func_quote_for_expand ARG # ------------------------- # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { $debug_cmd case $1 in *[\\\`\"]*) _G_arg=`$ECHO "$1" | $SED \ -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; *) _G_arg=$1 ;; esac case $_G_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") _G_arg=\"$_G_arg\" ;; esac func_quote_for_expand_result=$_G_arg } # func_stripname PREFIX SUFFIX NAME # --------------------------------- # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_stripname () { $debug_cmd # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary variable first. func_stripname_result=$3 func_stripname_result=${func_stripname_result#"$1"} func_stripname_result=${func_stripname_result%"$2"} }' else func_stripname () { $debug_cmd case $2 in .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; esac } fi # func_show_eval CMD [FAIL_EXP] # ----------------------------- # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} func_quote_for_expand "$_G_cmd" eval "func_notquiet $func_quote_for_expand_result" $opt_dry_run || { eval "$_G_cmd" _G_status=$? if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_show_eval_locale CMD [FAIL_EXP] # ------------------------------------ # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { $debug_cmd _G_cmd=$1 _G_fail_exp=${2-':'} $opt_quiet || { func_quote_for_expand "$_G_cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || { eval "$_G_user_locale $_G_cmd" _G_status=$? eval "$_G_safe_locale" if test 0 -ne "$_G_status"; then eval "(exit $_G_status); $_G_fail_exp" fi } } # func_tr_sh # ---------- # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { $debug_cmd case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_verbose ARG... # ------------------- # Echo program name prefixed message in verbose mode only. func_verbose () { $debug_cmd $opt_verbose && func_echo "$*" : } # func_warn_and_continue ARG... # ----------------------------- # Echo program name prefixed warning message to standard error. func_warn_and_continue () { $debug_cmd $require_term_colors func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 } # func_warning CATEGORY ARG... # ---------------------------- # Echo program name prefixed warning message to standard error. Warning # messages can be filtered according to CATEGORY, where this function # elides messages where CATEGORY is not listed in the global variable # 'opt_warning_types'. func_warning () { $debug_cmd # CATEGORY must be in the warning_categories list! case " $warning_categories " in *" $1 "*) ;; *) func_internal_error "invalid warning category '$1'" ;; esac _G_category=$1 shift case " $opt_warning_types " in *" $_G_category "*) $warning_func ${1+"$@"} ;; esac } # func_sort_ver VER1 VER2 # ----------------------- # 'sort -V' is not generally available. # Note this deviates from the version comparison in automake # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a # but this should suffice as we won't be specifying old # version formats or redundant trailing .0 in bootstrap.conf. # If we did want full compatibility then we should probably # use m4_version_compare from autoconf. func_sort_ver () { $debug_cmd printf '%s\n%s\n' "$1" "$2" \ | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n } # func_lt_ver PREV CURR # --------------------- # Return true if PREV and CURR are in the correct order according to # func_sort_ver, otherwise false. Use it like this: # # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." func_lt_ver () { $debug_cmd test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: #! /bin/sh # Set a version string for this script. scriptversion=2014-01-07.03; # UTC # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 # Copyright (C) 2010-2015 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. # 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 3 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, see <http://www.gnu.org/licenses/>. # Please report bugs or propose patches to gary@gnu.org. ## ------ ## ## Usage. ## ## ------ ## # This file is a library for parsing options in your shell scripts along # with assorted other useful supporting features that you can make use # of too. # # For the simplest scripts you might need only: # # #!/bin/sh # . relative/path/to/funclib.sh # . relative/path/to/options-parser # scriptversion=1.0 # func_options ${1+"$@"} # eval set dummy "$func_options_result"; shift # ...rest of your script... # # In order for the '--version' option to work, you will need to have a # suitably formatted comment like the one at the top of this file # starting with '# Written by ' and ending with '# warranty; '. # # For '-h' and '--help' to work, you will also need a one line # description of your script's purpose in a comment directly above the # '# Written by ' line, like the one at the top of this file. # # The default options also support '--debug', which will turn on shell # execution tracing (see the comment above debug_cmd below for another # use), and '--verbose' and the func_verbose function to allow your script # to display verbose messages only when your user has specified # '--verbose'. # # After sourcing this file, you can plug processing for additional # options by amending the variables from the 'Configuration' section # below, and following the instructions in the 'Option parsing' # section further down. ## -------------- ## ## Configuration. ## ## -------------- ## # You should override these variables in your script after sourcing this # file so that they reflect the customisations you have added to the # option parser. # The usage line for option parsing errors and the start of '-h' and # '--help' output messages. You can embed shell variables for delayed # expansion at the time the message is displayed, but you will need to # quote other shell meta-characters carefully to prevent them being # expanded when the contents are evaled. usage='$progpath [OPTION]...' # Short help message in response to '-h' and '--help'. Add to this or # override it after sourcing this library to reflect the full set of # options your script accepts. usage_message="\ --debug enable verbose shell tracing -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -v, --verbose verbosely report processing --version print version information and exit -h, --help print short or long help message and exit " # Additional text appended to 'usage_message' in response to '--help'. long_help_message=" Warning categories include: 'all' show all warnings 'none' turn off all the warnings 'error' warnings are treated as fatal errors" # Help message printed before fatal option parsing errors. fatal_help="Try '\$progname --help' for more information." ## ------------------------- ## ## Hook function management. ## ## ------------------------- ## # This section contains functions for adding, removing, and running hooks # to the main code. A hook is just a named list of of function, that can # be run in order later on. # func_hookable FUNC_NAME # ----------------------- # Declare that FUNC_NAME will run hooks added with # 'func_add_hook FUNC_NAME ...'. func_hookable () { $debug_cmd func_append hookable_fns " $1" } # func_add_hook FUNC_NAME HOOK_FUNC # --------------------------------- # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must # first have been declared "hookable" by a call to 'func_hookable'. func_add_hook () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not accept hook functions." ;; esac eval func_append ${1}_hooks '" $2"' } # func_remove_hook FUNC_NAME HOOK_FUNC # ------------------------------------ # Remove HOOK_FUNC from the list of functions called by FUNC_NAME. func_remove_hook () { $debug_cmd eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' } # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. # It is assumed that the list of hook functions contains nothing more # than a whitespace-delimited list of legal shell function names, and # no effort is wasted trying to catch shell meta-characters or preserve # whitespace. func_run_hooks () { $debug_cmd case " $hookable_fns " in *" $1 "*) ;; *) func_fatal_error "'$1' does not support hook funcions.n" ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do eval $_G_hook '"$@"' # store returned options list back into positional # parameters for next 'cmd' execution. eval _G_hook_result=\$${_G_hook}_result eval set dummy "$_G_hook_result"; shift done func_quote_for_eval ${1+"$@"} func_run_hooks_result=$func_quote_for_eval_result } ## --------------- ## ## Option parsing. ## ## --------------- ## # In order to add your own option parsing hooks, you must accept the # full positional parameter list in your hook function, remove any # options that you action, and then pass back the remaining unprocessed # options in '<hooked_function_name>_result', escaped suitably for # 'eval'. Like this: # # my_options_prep () # { # $debug_cmd # # # Extend the existing usage message. # usage_message=$usage_message' # -s, --silent don'\''t print informational messages # ' # # func_quote_for_eval ${1+"$@"} # my_options_prep_result=$func_quote_for_eval_result # } # func_add_hook func_options_prep my_options_prep # # # my_silent_option () # { # $debug_cmd # # # Note that for efficiency, we parse as many options as we can # # recognise in a loop before passing the remainder back to the # # caller on the first unrecognised argument we encounter. # while test $# -gt 0; do # opt=$1; shift # case $opt in # --silent|-s) opt_silent=: ;; # # Separate non-argument short options: # -s*) func_split_short_opt "$_G_opt" # set dummy "$func_split_short_opt_name" \ # "-$func_split_short_opt_arg" ${1+"$@"} # shift # ;; # *) set dummy "$_G_opt" "$*"; shift; break ;; # esac # done # # func_quote_for_eval ${1+"$@"} # my_silent_option_result=$func_quote_for_eval_result # } # func_add_hook func_parse_options my_silent_option # # # my_option_validation () # { # $debug_cmd # # $opt_silent && $opt_verbose && func_fatal_help "\ # '--silent' and '--verbose' options are mutually exclusive." # # func_quote_for_eval ${1+"$@"} # my_option_validation_result=$func_quote_for_eval_result # } # func_add_hook func_validate_options my_option_validation # # You'll alse need to manually amend $usage_message to reflect the extra # options you parse. It's preferable to append if you can, so that # multiple option parsing hooks can be added safely. # func_options [ARG]... # --------------------- # All the functions called inside func_options are hookable. See the # individual implementations for details. func_hookable func_options func_options () { $debug_cmd func_options_prep ${1+"$@"} eval func_parse_options \ ${func_options_prep_result+"$func_options_prep_result"} eval func_validate_options \ ${func_parse_options_result+"$func_parse_options_result"} eval func_run_hooks func_options \ ${func_validate_options_result+"$func_validate_options_result"} # save modified positional parameters for caller func_options_result=$func_run_hooks_result } # func_options_prep [ARG]... # -------------------------- # All initialisations required before starting the option parse loop. # Note that when calling hook functions, we pass through the list of # positional parameters. If a hook function modifies that list, and # needs to propogate that back to rest of this script, then the complete # modified list must be put in 'func_run_hooks_result' before # returning. func_hookable func_options_prep func_options_prep () { $debug_cmd # Option defaults: opt_verbose=false opt_warning_types= func_run_hooks func_options_prep ${1+"$@"} # save modified positional parameters for caller func_options_prep_result=$func_run_hooks_result } # func_parse_options [ARG]... # --------------------------- # The main option parsing loop. func_hookable func_parse_options func_parse_options () { $debug_cmd func_parse_options_result= # this just eases exit handling while test $# -gt 0; do # Defer to hook functions for initial option parsing, so they # get priority in the event of reusing an option name. func_run_hooks func_parse_options ${1+"$@"} # Adjust func_parse_options positional parameters to match eval set dummy "$func_run_hooks_result"; shift # Break out of the loop if we already parsed every option. test $# -gt 0 || break _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' func_echo "enabling shell trace mode" $debug_cmd ;; --no-warnings|--no-warning|--no-warn) set dummy --warnings none ${1+"$@"} shift ;; --warnings|--warning|-W) test $# = 0 && func_missing_arg $_G_opt && break case " $warning_categories $1" in *" $1 "*) # trailing space prevents matching last $1 above func_append_uniq opt_warning_types " $1" ;; *all) opt_warning_types=$warning_categories ;; *none) opt_warning_types=none warning_func=: ;; *error) opt_warning_types=$warning_categories warning_func=func_fatal_error ;; *) func_fatal_error \ "unsupported warning category: '$1'" ;; esac shift ;; --verbose|-v) opt_verbose=: ;; --version) func_version ;; -\?|-h) func_usage ;; --help) func_help ;; # Separate optargs to long options (plugins may need this): --*=*) func_split_equals "$_G_opt" set dummy "$func_split_equals_lhs" \ "$func_split_equals_rhs" ${1+"$@"} shift ;; # Separate optargs to short options: -W*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "$func_split_short_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-v*|-x*) func_split_short_opt "$_G_opt" set dummy "$func_split_short_opt_name" \ "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; esac done # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} func_parse_options_result=$func_quote_for_eval_result } # func_validate_options [ARG]... # ------------------------------ # Perform any sanity checks on option settings and/or unconsumed # arguments. func_hookable func_validate_options func_validate_options () { $debug_cmd # Display all warnings if -W was not given. test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" func_run_hooks func_validate_options ${1+"$@"} # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE # save modified positional parameters for caller func_validate_options_result=$func_run_hooks_result } ## ----------------- ## ## Helper functions. ## ## ----------------- ## # This section contains the helper functions used by the rest of the # hookable option parser framework in ascii-betical order. # func_fatal_help ARG... # ---------------------- # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { $debug_cmd eval \$ECHO \""Usage: $usage"\" eval \$ECHO \""$fatal_help"\" func_error ${1+"$@"} exit $EXIT_FAILURE } # func_help # --------- # Echo long help message to standard output and exit. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message" exit 0 } # func_missing_arg ARGNAME # ------------------------ # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $debug_cmd func_error "Missing argument for '$1'." exit_cmd=exit } # func_split_equals STRING # ------------------------ # Set func_split_equals_lhs and func_split_equals_rhs shell variables after # splitting STRING at the '=' sign. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ && _G_HAVE_XSI_OPS=yes if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_equals () { $debug_cmd func_split_equals_lhs=${1%%=*} func_split_equals_rhs=${1#*=} test "x$func_split_equals_lhs" = "x$1" \ && func_split_equals_rhs= }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_equals () { $debug_cmd func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` func_split_equals_rhs= test "x$func_split_equals_lhs" = "x$1" \ || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` } fi #func_split_equals # func_split_short_opt SHORTOPT # ----------------------------- # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. if test yes = "$_G_HAVE_XSI_OPS" then # This is an XSI compatible shell, allowing a faster implementation... eval 'func_split_short_opt () { $debug_cmd func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"} }' else # ...otherwise fall back to using expr, which is often a shell builtin. func_split_short_opt () { $debug_cmd func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` } fi #func_split_short_opt # func_usage # ---------- # Echo short help message to standard output and exit. func_usage () { $debug_cmd func_usage_message $ECHO "Run '$progname --help |${PAGER-more}' for full usage" exit 0 } # func_usage_message # ------------------ # Echo short help message to standard output. func_usage_message () { $debug_cmd eval \$ECHO \""Usage: $usage"\" echo $SED -n 's|^# || /^Written by/{ x;p;x } h /^Written by/q' < "$progpath" echo eval \$ECHO \""$usage_message"\" } # func_version # ------------ # Echo version message to standard output and exit. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' /(C)/!b go :more /\./!{ N s|\n# | | b more } :go /^# Written by /,/# warranty; / { s|^# || s|^# *$|| s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| p } /^# Written by / { s|^# || p } /^warranty; /q' < "$progpath" exit $? } # Local variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: # Set a version string. scriptversion='(GNU libtool) 2.4.6' # func_echo ARG... # ---------------- # Libtool also displays the current mode in messages, so override # funclib.sh func_echo with this custom definition. func_echo () { $debug_cmd _G_message=$* func_echo_IFS=$IFS IFS=$nl for _G_line in $_G_message; do IFS=$func_echo_IFS $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" done IFS=$func_echo_IFS } # func_warning ARG... # ------------------- # Libtool warnings are not categorized, so override funclib.sh # func_warning with this simpler definition. func_warning () { $debug_cmd $warning_func ${1+"$@"} } ## ---------------- ## ## Options parsing. ## ## ---------------- ## # Hook in the functions to make sure our own options are parsed during # the option parsing loop. usage='$progpath [OPTION]... [MODE-ARG]...' # Short help message in response to '-h'. usage_message="Options: --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 --mode=MODE use operation mode MODE --no-warnings equivalent to '-Wnone' --preserve-dup-deps don't remove duplicate dependency libraries --quiet, --silent don't print informational messages --tag=TAG use configuration variables from tag TAG -v, --verbose print more informational messages than default --version print version information -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] -h, --help, --help-all print short, long, or detailed help message " # Additional text appended to 'usage_message' in response to '--help'. func_help () { $debug_cmd func_usage_message $ECHO "$long_help_message 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. When passed as first option, '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. Try '$progname --help --mode=MODE' for a more detailed description of MODE. When reporting a bug, please describe a test case to reproduce it and include the following information: host-triplet: $host shell: $SHELL compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) version: $progname (GNU libtool) 2.4.6 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` Report bugs to <bug-libtool@gnu.org>. GNU libtool home page: <http://www.gnu.org/software/libtool/>. General help using GNU software: <http://www.gnu.org/gethelp/>." exit 0 } # func_lo2o OBJECT-NAME # --------------------- # Transform OBJECT-NAME from a '.lo' suffix to the platform specific # object suffix. lo2o=s/\\.lo\$/.$objext/ o2lo=s/\\.$objext\$/.lo/ if test yes = "$_G_HAVE_XSI_OPS"; then eval 'func_lo2o () { case $1 in *.lo) func_lo2o_result=${1%.lo}.$objext ;; * ) func_lo2o_result=$1 ;; esac }' # func_xform LIBOBJ-OR-SOURCE # --------------------------- # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) # suffix to a '.lo' libtool-object suffix. eval 'func_xform () { func_xform_result=${1%.*}.lo }' else # ...otherwise fall back to using sed. func_lo2o () { func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` } func_xform () { func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` } fi # func_fatal_configuration ARG... # ------------------------------- # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func__fatal_error ${1+"$@"} \ "See the $PACKAGE documentation for more information." \ "Fatal configuration error." } # func_config # ----------- # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # ------------- # Display the features supported by this script. func_features () { echo "host: $host" if test yes = "$build_libtool_libs"; then echo "enable shared libraries" else echo "disable shared libraries" fi if test yes = "$build_old_libs"; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag TAGNAME # ----------------------- # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname=$1 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf=/$re_begincf/,/$re_endcf/p # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # ------------------------ # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # libtool_options_prep [ARG]... # ----------------------------- # Preparation for options parsed by libtool. libtool_options_prep () { $debug_mode # Option defaults: opt_config=false opt_dlopen= opt_dry_run=false opt_help=false opt_mode= opt_preserve_dup_deps=false opt_quiet=false nonopt= preserve_args= # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Pass back the list of options. func_quote_for_eval ${1+"$@"} libtool_options_prep_result=$func_quote_for_eval_result } func_add_hook func_options_prep libtool_options_prep # libtool_parse_options [ARG]... # --------------------------------- # Provide handling for libtool specific options. libtool_parse_options () { $debug_cmd # Perform our own loop to consume as many options as possible in # each iteration. while test $# -gt 0; do _G_opt=$1 shift case $_G_opt in --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) func_config ;; --dlopen|-dlopen) opt_dlopen="${opt_dlopen+$opt_dlopen }$1" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) func_features ;; --finish) set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $_G_opt && break opt_mode=$1 case $1 in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $_G_opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_quiet=false func_append preserve_args " $_G_opt" ;; --no-warnings|--no-warning|--no-warn) opt_warning=false func_append preserve_args " $_G_opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $_G_opt" ;; --silent|--quiet) opt_quiet=: opt_verbose=false func_append preserve_args " $_G_opt" ;; --tag) test $# = 0 && func_missing_arg $_G_opt && break opt_tag=$1 func_append preserve_args " $_G_opt $1" func_enable_tag "$1" shift ;; --verbose|-v) opt_quiet=false opt_verbose=: func_append preserve_args " $_G_opt" ;; # An option not handled by this hook function: *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; esac done # save modified positional parameters for caller func_quote_for_eval ${1+"$@"} libtool_parse_options_result=$func_quote_for_eval_result } func_add_hook func_parse_options libtool_parse_options # libtool_validate_options [ARG]... # --------------------------------- # Perform any sanity checks on option settings and/or unconsumed # arguments. libtool_validate_options () { # save first non-option argument if test 0 -lt $#; then nonopt=$1 shift fi # preserve --debug test : = "$debug_cmd" || func_append preserve_args " --debug" case $host in # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match test yes != "$build_libtool_libs" \ && test yes != "$build_old_libs" \ && func_fatal_configuration "not configured to build any kind of library" # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test execute != "$opt_mode"; then func_error "unrecognized option '-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help=$help help="Try '$progname --help --mode=$opt_mode' for more information." } # Pass back the unparsed argument list func_quote_for_eval ${1+"$@"} libtool_validate_options_result=$func_quote_for_eval_result } func_add_hook func_validate_options libtool_validate_options # Process options as early as possible so that --help and --version # can return quickly. func_options ${1+"$@"} eval set dummy "$func_options_result"; shift ## ----------- ## ## Main. ## ## ----------- ## magic='%%%MAGIC variable%%%' magic_exe='%%%MAGIC EXE variable%%%' # Global variables. extracted_archives= extracted_serial=0 # 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= # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # func_generated_by_libtool # True iff stdin has been generated by Libtool. This function is only # a basic sanity check; it will hardly flush out determined imposters. func_generated_by_libtool_p () { $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p } # func_lalib_unsafe_p file # True iff FILE is a libtool '.la' library or '.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if 'file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case $lalib_p_line in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test yes = "$lalib_p" } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { test -f "$1" && $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $debug_cmd save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE 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. func_source () { $debug_cmd case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case $lt_sysroot:$1 in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result='='$func_stripname_result ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # 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 () { $debug_cmd if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` 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 "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # 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. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # 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 func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with '--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=$1 if test yes = "$build_libtool_libs"; then write_lobj=\'$2\' else write_lobj=none fi if test yes = "$build_old_libs"; then write_oldobj=\'$3\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T <<EOF # $write_libobj - a libtool object file # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # Name of the PIC object. pic_object=$write_lobj # Name of the non-PIC object non_pic_object=$write_oldobj EOF $MV "${write_libobj}T" "$write_libobj" } } ################################################## # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS # ################################################## # func_convert_core_file_wine_to_w32 ARG # Helper function used by file name conversion functions when $build is *nix, # and $host is mingw, cygwin, or some other w32 environment. Relies on a # correctly configured wine environment available, with the winepath program # in $build's $PATH. # # ARG is the $build file name to be converted to w32 format. # Result is available in $func_convert_core_file_wine_to_w32_result, and will # be empty on error (or when ARG is empty) func_convert_core_file_wine_to_w32 () { $debug_cmd func_convert_core_file_wine_to_w32_result=$1 if test -n "$1"; then # Unfortunately, winepath does not exit with a non-zero error code, so we # are forced to check the contents of stdout. On the other hand, if the # command is not found, the shell will set an exit code of 127 and print # *an error message* to stdout. So we must check for both error code of # zero AND non-empty stdout, which explains the odd construction: func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null` if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $debug_cmd # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result= if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result"; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $debug_cmd if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $debug_cmd # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $debug_cmd if test -z "$2" && test -n "$1"; then func_error "Could not determine host file name corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result=$1 fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $debug_cmd if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " '$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result=$3 fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $debug_cmd case $4 in $1 ) func_to_host_path_result=$3$func_to_host_path_result ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via '$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $debug_cmd $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $debug_cmd case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result=$1 } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result=$func_convert_core_msys_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result=$func_convert_core_file_wine_to_w32_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $debug_cmd func_to_host_file_result=$1 if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result=$func_cygpath_result fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via '$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $debug_cmd if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd=func_convert_path_$func_stripname_result fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $debug_cmd func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result=$1 } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_msys_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result=$func_convert_core_path_wine_to_w32_result func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $debug_cmd func_to_host_path_result=$1 if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result=$func_cygpath_result func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_dll_def_p FILE # True iff FILE is a Windows DLL '.def' file. # Keep in sync with _LT_DLL_DEF_P in libtool.m4 func_dll_def_p () { $debug_cmd func_dll_def_p_tmp=`$SED -n \ -e 's/^[ ]*//' \ -e '/^\(;.*\)*$/d' \ -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ -e q \ "$1"` test DEF = "$func_dll_def_p_tmp" } # func_mode_compile arg... func_mode_compile () { $debug_cmd # 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= pie_flag= 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) test -n "$libobj" && \ func_fatal_error "you cannot specify '-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append 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,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs=$IFS; IFS=, for arg in $args; do IFS=$save_ifs func_append_quoted lastarg "$arg" done IFS=$save_ifs func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append 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. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with '-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj=$func_basename_result } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from '$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test yes = "$build_libtool_libs" \ || func_fatal_configuration "cannot build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name '$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname=$func_basename_result xdir=$func_dirname_result lobj=$xdir$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test yes = "$build_old_libs"; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; 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 no = "$compiler_c_o"; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext lockfile=$output_obj.lock 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 yes = "$need_locks"; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test warn = "$need_locks"; 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." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test yes = "$build_libtool_libs"; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test no != "$pic_mode"; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/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." $opt_dry_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 func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test yes = "$suppress_opt"; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test yes = "$build_old_libs"; then if test yes != "$pic_mode"; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test yes = "$compiler_c_o"; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test warn = "$need_locks" && test "X`cat $lockfile 2>/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." $opt_dry_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 func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test no != "$need_locks"; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test compile = "$opt_mode" && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [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: $progname [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 -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a '.o' file suitable for static linking -static only build a '.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler 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: $progname [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: $progname [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: $progname [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 following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [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 -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -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 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) -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 -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) 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: $progname [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." ;; *) func_fatal_help "invalid operation mode '$opt_mode'" ;; esac echo $ECHO "Try '$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test : = "$opt_help"; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | $SED -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | $SED '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $debug_cmd # The first argument is the command name. cmd=$nonopt test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "'$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "'$file' was not linked with '-export-dynamic'" continue fi func_dirname "$file" "" "." dir=$func_dirname_result if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir=$func_dirname_result ;; *) func_warning "'-dlopen' is ignored for non-libtool libraries and objects" 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 -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file=$progdir/$program elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file=$progdir/$program fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if $opt_dry_run; then # 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 else if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd=\$cmd$args fi } test execute = "$opt_mode" && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $debug_cmd libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "'$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument '$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and '=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_quiet && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" 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" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test finish = "$opt_mode" && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $debug_cmd # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=false stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=: ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test X-m = "X$prev" && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the '$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=: if $isdir; then destdir=$dest destname= else func_dirname_and_basename "$dest" "" "." destdir=$func_dirname_result destname=$func_basename_result # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "'$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "'$destdir' must be an absolute directory name" ;; 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. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "'$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir=$func_dirname_result func_append 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 -e "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. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" 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 func_warning "relinking '$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname=$1 shift srcname=$realname test -n "$relink_command" && srcname=${realname}T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme=$stripme case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme= ;; esac ;; os2*) case $realname in *_dll.a) tstripme= ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_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 test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib=$destdir/$realname func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name=$func_basename_result instname=$dir/${name}i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append 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 func_basename "$file" destfile=$func_basename_result destfile=$destdir/$destfile fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest=$destfile destfile= ;; *) func_fatal_help "cannot copy a libtool object to '$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test yes = "$build_old_libs"; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_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 func_basename "$file" destfile=$func_basename_result 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 func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=.exe fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script '$wrapper'" finalize=: for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` if test -n "$libdir" && test ! -f "$libfile"; then func_warning "'$lib' has not been installed in '$libdir'" finalize=false fi done relink_command= func_source "$wrapper" outputname= if test no = "$fast_install" && test -n "$relink_command"; then $opt_dry_run || { if $finalize; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file=$func_basename_result outputname=$tmpdir/$file # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_quiet || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink '$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file=$outputname else func_warning "cannot relink '$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "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) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name=$func_basename_result # Set up the ranlib parameters. oldlib=$destdir/$name func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $tool_oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run '$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test install = "$opt_mode" && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $debug_cmd my_outputname=$1 my_originator=$2 my_pic_p=${3-false} my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms=${my_outputname}S.c else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist=$output_objdir/$my_outputname.nm func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* External symbol declarations for the compiler. */\ " if test yes = "$dlself"; then func_verbose "generating symbol list for '$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from '$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols=$output_objdir/$outputname.exp $opt_dry_run || { $RM $export_symbols eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from '$dlprefile'" func_basename "$dlprefile" name=$func_basename_result case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename= if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname"; then func_basename "$dlprefile_dlname" dlprefile_dlbasename=$func_basename_result else # no lafile. user explicitly requested -dlpreopen <import library>. $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename"; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # 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 >/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/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi func_show_eval '$RM "${nlist}I"' if test -n "$global_symbol_to_import"; then eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[];\ " if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ static void lt_syminit(void) { LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; for (; symbol->name; ++symbol) {" $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" echo >> "$output_objdir/$my_dlsyms" "\ } }" fi echo >> "$output_objdir/$my_dlsyms" "\ LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = { {\"$my_originator\", (void *) 0}," if test -s "$nlist"I; then echo >> "$output_objdir/$my_dlsyms" "\ {\"@INIT@\", (void *) <_syminit}," fi case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) 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*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) $my_pic_p && pic_flag_for_symtable=" $pic_flag" ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' # Transform the symbol file into the correct name. symfileobj=$output_objdir/${my_outputname}S.$objext case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for '$my_dlsyms'" ;; 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 "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $debug_cmd func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # 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. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $debug_cmd 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 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then case $nm_interface in "MS dumpbin") if func_cygming_ms_implib_p "$1" || func_cygming_gnu_implib_p "$1" then win32_nmres=import else win32_nmres= fi ;; *) func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s|.*|import| p q } }'` ;; esac 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_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $debug_cmd sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $debug_cmd match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive that possess that section. Heuristic: eliminate # all those that have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $debug_cmd if func_cygming_gnu_implib_p "$1"; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1"; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result= fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $debug_cmd f_ex_an_ar_dir=$1; shift f_ex_an_ar_oldlib=$1 if test yes = "$lock_old_archive_extraction"; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test yes = "$lock_old_archive_extraction"; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $debug_cmd my_gentop=$1; shift my_oldlibs=${1+"$@"} my_oldobjs= my_xlib= my_xabs= my_xdir= 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 func_basename "$my_xlib" my_xlib=$func_basename_result my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir=$my_gentop/$my_xlib_u func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` func_basename "$darwin_archive" darwin_base_archive=$func_basename_result darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches; do func_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've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result=$my_oldobjs } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory where it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # 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. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # 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 variables: generated_by_libtool_version='$macro_version' 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 file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ that is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options that match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { case \" \$* \" in *\\ --lt-*) for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done ;; esac func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED '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 \"\$file\" | $SED '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 \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test yes = "$fast_install"; then $ECHO "\ 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 "\ # 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 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # 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 \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} 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 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat <<EOF /* $cwrappersource - temporary wrapper executable for $objdir/$outputname Generated by $PROGRAM (GNU $PACKAGE) $VERSION The $output program cannot be directly executed until all the libtool libraries that it depends on are installed. This wrapper executable should never be moved out of the build directory. If it is, it will not operate correctly. */ EOF cat <<"EOF" #ifdef _MSC_VER # define _CRT_SECURE_NO_DEPRECATE 1 #endif #include <stdio.h> #include <stdlib.h> #ifdef _MSC_VER # include <direct.h> # include <process.h> # include <io.h> #else # include <unistd.h> # include <stdint.h> # ifdef __CYGWIN__ # include <io.h> # endif #endif #include <malloc.h> #include <stdarg.h> #include <assert.h> #include <string.h> #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) /* declarations of non-ANSI functions */ #if defined __MINGW32__ # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined __CYGWIN__ # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined other_platform || defined ... */ #endif /* portability defines, excluding path handling macros */ #if defined _MSC_VER # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC #elif defined __MINGW32__ # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined __CYGWIN__ # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined other platforms ... */ #endif #if defined PATH_MAX # define LT_PATHMAX PATH_MAX #elif defined MAXPATHLEN # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #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 # define FOPEN_WB "wb" # 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 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free (stale); stale = 0; } \ } while (0) #if defined LT_DEBUGWRAPPER static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <<EOF #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) # define externally_visible volatile #else # define externally_visible __attribute__((externally_visible)) volatile #endif externally_visible const char * MAGIC_EXE = "$magic_exe"; const char * LIB_PATH_VARNAME = "$shlibpath_var"; EOF if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then func_to_host_path "$temp_rpath" cat <<EOF const char * LIB_PATH_VALUE = "$func_to_host_path_result"; EOF else cat <<"EOF" const char * LIB_PATH_VALUE = ""; EOF fi if test -n "$dllsearchpath"; then func_to_host_path "$dllsearchpath:" cat <<EOF const char * EXE_PATH_VARNAME = "PATH"; const char * EXE_PATH_VALUE = "$func_to_host_path_result"; EOF else cat <<"EOF" const char * EXE_PATH_VARNAME = ""; const char * EXE_PATH_VALUE = ""; EOF fi if test yes = "$fast_install"; then cat <<EOF const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */ EOF else cat <<EOF const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */ EOF fi cat <<"EOF" #define LTWRAPPER_OPTION_PREFIX "--lt-" static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script"; static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug"; int main (int argc, char *argv[]) { char **newargz; int newargc; char *tmp_pathspec; char *actual_cwrapper_path; char *actual_cwrapper_name; char *target_name; char *lt_argv_zero; int rval = 127; int i; program_name = (char *) xstrdup (base_name (argv[0])); newargz = XMALLOC (char *, (size_t) argc + 1); /* very simple arg parsing; don't want to rely on getopt * also, copy all non cwrapper options to newargz, except * argz[0], which is handled differently */ newargc=0; for (i = 1; i < argc; i++) { if (STREQ (argv[i], dumpscript_opt)) { EOF case $host in *mingw* | *cygwin* ) # make stdout use "unix" line endings echo " setmode(1,_O_BINARY);" ;; esac cat <<"EOF" lt_dump_script (stdout); return 0; } if (STREQ (argv[i], debug_opt)) { lt_debug = 1; continue; } if (STREQ (argv[i], ltwrapper_option_prefix)) { /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX namespace, but it is not one of the ones we know about and have already dealt with, above (inluding dump-script), then report an error. Otherwise, targets might begin to believe they are allowed to use options in the LTWRAPPER_OPTION_PREFIX namespace. The first time any user complains about this, we'll need to make LTWRAPPER_OPTION_PREFIX a configure-time option or a configure.ac-settable value. */ lt_fatal (__FILE__, __LINE__, "unrecognized %s option: '%s'", ltwrapper_option_prefix, argv[i]); } /* otherwise ... */ newargz[++newargc] = xstrdup (argv[i]); } newargz[++newargc] = NULL; EOF cat <<EOF /* The GNU banner must be the first non-error debug message */ lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n"); EOF cat <<"EOF" lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]); lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name); tmp_pathspec = find_executable (argv[0]); if (tmp_pathspec == NULL) lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]); lt_debugprintf (__FILE__, __LINE__, "(main) found exe (before symlink chase) at: %s\n", tmp_pathspec); actual_cwrapper_path = chase_symlinks (tmp_pathspec); lt_debugprintf (__FILE__, __LINE__, "(main) found exe (after symlink chase) at: %s\n", actual_cwrapper_path); XFREE (tmp_pathspec); actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path)); strendzap (actual_cwrapper_path, actual_cwrapper_name); /* wrapper name transforms */ strendzap (actual_cwrapper_name, ".exe"); tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1); XFREE (actual_cwrapper_name); actual_cwrapper_name = tmp_pathspec; tmp_pathspec = 0; /* target_name transforms -- use actual target program name; might have lt- prefix */ target_name = xstrdup (base_name (TARGET_PROGRAM_NAME)); strendzap (target_name, ".exe"); tmp_pathspec = lt_extend_str (target_name, ".exe", 1); XFREE (target_name); target_name = tmp_pathspec; tmp_pathspec = 0; lt_debugprintf (__FILE__, __LINE__, "(main) libtool target name: %s\n", target_name); EOF cat <<EOF newargz[0] = XMALLOC (char, (strlen (actual_cwrapper_path) + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1)); strcpy (newargz[0], actual_cwrapper_path); strcat (newargz[0], "$objdir"); strcat (newargz[0], "/"); EOF cat <<"EOF" /* stop here, and copy so we don't have to do this twice */ tmp_pathspec = xstrdup (newargz[0]); /* do NOT want the lt- prefix here, so use actual_cwrapper_name */ strcat (newargz[0], actual_cwrapper_name); /* DO want the lt- prefix here if it exists, so use target_name */ lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1); XFREE (tmp_pathspec); tmp_pathspec = NULL; EOF case $host_os in mingw*) cat <<"EOF" { char* p; while ((p = strchr (newargz[0], '\\')) != NULL) { *p = '/'; } while ((p = strchr (lt_argv_zero, '\\')) != NULL) { *p = '/'; } } EOF ;; esac cat <<"EOF" XFREE (target_name); XFREE (actual_cwrapper_path); XFREE (actual_cwrapper_name); lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ lt_setenv ("DUALCASE", "1"); /* for MSK sh */ /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath) because on Windows, both *_VARNAMEs are PATH but uninstalled libraries must come first. */ lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n", nonnull (lt_argv_zero)); for (i = 0; i < newargc; i++) { lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n", i, nonnull (newargz[i])); } EOF case $host_os in mingw*) cat <<"EOF" /* execv doesn't actually work on mingw as expected on unix */ newargz = prepare_spawn (newargz); rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); if (rval == -1) { /* failed to start process */ lt_debugprintf (__FILE__, __LINE__, "(main) failed to launch target \"%s\": %s\n", lt_argv_zero, nonnull (strerror (errno))); return 127; } return rval; EOF ;; *) cat <<"EOF" execv (lt_argv_zero, newargz); return rval; /* =127, but avoids unused variable warning */ EOF ;; esac cat <<"EOF" } void * xmalloc (size_t num) { void *p = (void *) malloc (num); if (!p) lt_fatal (__FILE__, __LINE__, "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; lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ 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]; size_t tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); 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 = (size_t) (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 (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); 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 (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); 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 * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } 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 (STREQ (str, pat)) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else size_t len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { size_t orig_value_len = strlen (orig_value); size_t add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ size_t len = strlen (new_value); while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[--len] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -n -e ' s/^\(.\{79\}\)\(..*\)/\1\ \2/ h s/\([\\"]\)/\\\1/g s/$/\\n/ s/\([^\n]*\).*/ fputs ("\1", f);/p g D' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $debug_cmd case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_suncc_cstd_abi # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! # Several compiler flags select an ABI that is incompatible with the # Cstd library. Avoid specifying it if any are in CXXFLAGS. func_suncc_cstd_abi () { $debug_cmd case " $compile_command " in *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) suncc_use_cstd_abi=no ;; *) suncc_use_cstd_abi=yes ;; esac } # func_mode_link arg... func_mode_link () { $debug_cmd case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # what system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll that has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= os2dllname= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=false prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module=$wl-single_module func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test yes != "$build_libtool_libs" \ && func_fatal_configuration "cannot build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac 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 func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir=$arg prev= continue ;; dlfiles|dlprefiles) $preload || { # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=: } case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test no = "$dlself"; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test dlprefiles = "$prev"; then dlself=yes elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test dlfiles = "$prev"; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols=$arg test -f "$arg" \ || func_fatal_error "symbol file '$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex=$arg prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir=$arg prev= continue ;; mllvm) # Clang does not use LLVM to link, so we can simply discard any # '-mllvm $arg' options when doing the link step. prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result if test none != "$pic_object"; then # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append 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 dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object fi # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; 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 func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file '$arg' does not exist" fi arg=$save_arg prev= continue ;; os2dllname) os2dllname=$arg prev= continue ;; precious_regex) precious_files_regex=$arg prev= continue ;; release) release=-$arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test rpath = "$prev"; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds=$arg prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" 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 # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "'-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir 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 func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test X-export-symbols = "X$arg"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework 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*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between '-L' and '$1'" else func_fatal_error "need path for '-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of '$dir'" dir=$absdir ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test X-lc = "X$arg" || test X-lm = "X$arg"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # 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-lc = "X$arg" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc due to us having libc/libc_r. test X-lc = "X$arg" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test X-lc = "X$arg" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test X-lc = "X$arg" && continue ;; esac elif test X-lc_r = "X$arg"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -mllvm) prev=mllvm continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module=$wl-multi_module continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "'-no-install' is ignored for $host" func_warning "assuming '-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -os2dllname) prev=os2dllname continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # 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 ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # -fstack-protector* stack protector flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -fuse-ld=* Linker select flags for GCC # -stdlib=* select c++ std lib with clang -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ -fuse-ld=*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; -Z*) if test os2 = "`expr $host : '.*\(os2\)'`"; then # OS/2 uses -Zxxx to specify OS/2-specific options compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case $arg in -Zlinker | -Zstack) prev=xcompiler ;; esac continue else # Otherwise treat like 'Some other compiler flag' below func_quote_for_eval "$arg" arg=$func_quote_for_eval_result fi ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test none = "$pic_object" && test none = "$non_pic_object"; then func_fatal_error "cannot find name of object for '$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result test none = "$pic_object" || { # Prepend the subdirectory the object is found in. pic_object=$xdir$pic_object if test dlfiles = "$prev"; then if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then func_append 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 dlprefiles = "$prev"; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg=$pic_object } # Non-PIC object. if test none != "$non_pic_object"; then # Prepend the subdirectory the object is found in. non_pic_object=$xdir$non_pic_object # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test none = "$pic_object"; 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 func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir=$func_dirname_result func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "'$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test dlfiles = "$prev"; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test dlprefiles = "$prev"; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" 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. func_quote_for_eval "$arg" arg=$func_quote_for_eval_result ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the '$prevarg' option requires an argument" if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname=$func_basename_result libobjs_save=$libobjs if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'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\" # Definition is injected by LT_CONFIG during libtool generation. func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" func_dirname "$output" "/" "" output_objdir=$func_dirname_result$objdir func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. 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 $opt_preserve_dup_deps; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test lib = "$linkmode"; 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 $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append 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 notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=false newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test lib,link = "$linkmode,$pass"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs=$tmp_deplibs fi if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass"; then libs=$deplibs deplibs= fi if test prog = "$linkmode"; then case $pass in dlopen) libs=$dlfiles ;; dlpreopen) libs=$dlprefiles ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test lib,dlpreopen = "$linkmode,$pass"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs=$dlprefiles fi if test dlopen = "$pass"; then # Collect dlpreopened libraries save_deplibs=$deplibs deplibs= fi for deplib in $libs; do lib= found=false case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test lib != "$linkmode" && test prog != "$linkmode"; then func_warning "'-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test lib = "$linkmode"; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; 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 .la = "$search_ext"; then found=: else found=false fi break 2 fi done done if $found; then # 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 yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll=$l done if test "X$ll" = "X$old_library"; then # only static version available found=false func_dirname "$lib" "" "." ladir=$func_dirname_result lib=$ladir/$old_library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi else # deplib doesn't seem to be a libtool library if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" fi continue fi ;; # -l *.ltframework) if test prog,link = "$linkmode,$pass"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test lib = "$linkmode"; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test conv = "$pass" && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi if test scan = "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "'-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test link = "$pass"; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test conv = "$pass"; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=false case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=: fi ;; pass_all) valid_a_lib=: ;; esac if $valid_a_lib; then echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" else 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 use here." fi ;; esac continue ;; prog) if test link != "$pass"; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test conv = "$pass"; then deplibs="$deplib $deplibs" elif test prog = "$linkmode"; then if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=: continue ;; esac # case $deplib $found || test -f "$lib" \ || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "'$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir=$func_dirname_result dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # 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 func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test lib,link = "$linkmode,$pass" || test prog,scan = "$linkmode,$pass" || { test prog != "$linkmode" && test lib != "$linkmode"; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test conv = "$pass"; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for '$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" elif test prog != "$linkmode" && test lib != "$linkmode"; then func_fatal_error "'$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test yes = "$prefer_static_libs" || test built,no = "$prefer_static_libs,$installed"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib=$l done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for '$lib'" fi # This library was specified with -dlopen. if test dlopen = "$pass"; then test -z "$libdir" \ && func_fatal_error "cannot -dlopen a convenience library: '$lib'" if test -z "$dlname" || test yes != "$dlopen_support" || test no = "$build_libtool_libs" 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. func_append dlprefiles " $lib $dependency_libs" else func_append 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 func_warning "cannot determine absolute directory name of '$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir=$ladir fi ;; esac func_basename "$lib" laname=$func_basename_result # Find the relevant object directory and library name. if test yes = "$installed"; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library '$lib' was moved." dir=$ladir absdir=$abs_ladir libdir=$abs_ladir else dir=$lt_sysroot$libdir absdir=$lt_sysroot$libdir fi test yes = "$hardcode_automatic" && 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 func_append notinst_path " $abs_ladir" else dir=$ladir/$objdir absdir=$abs_ladir/$objdir # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test dlpreopen = "$pass"; then if test -z "$libdir" && test prog = "$linkmode"; then func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" fi case $host in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test lib = "$linkmode"; then deplibs="$dir/$old_library $deplibs" elif test prog,link = "$linkmode,$pass"; 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 prog = "$linkmode" && test link != "$pass"; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=false if test no != "$link_all_deplibs" || test -z "$library_names" || test no = "$build_libtool_libs"; then linkalldeplibs=: fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if $linkalldeplibs; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test prog,link = "$linkmode,$pass"; then if test -n "$library_names" && { { test no = "$prefer_static_libs" || test built,yes = "$prefer_static_libs,$installed"; } || 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 *"$absdir:"*) ;; *) func_append 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 "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if $alldeplibs && { test pass_all = "$deplibs_check_method" || { test yes = "$build_libtool_libs" && 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 built = "$use_static_libs" && test yes = "$installed"; then use_static_libs=no fi if test -n "$library_names" && { test no = "$use_static_libs" || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc* | *os2*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test no = "$installed"; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule= for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule=$dlpremoduletest break fi done if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then echo if test prog = "$linkmode"; 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 lib = "$linkmode" && test yes = "$hardcode_into_libs"; 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 "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname=$1 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* | *cegcc* | *os2*) func_arith $current - $age major=$func_arith_result versuffix=-$major ;; esac eval soname=\"$soname_spec\" else soname=$realname fi # Make a new name for the extract_expsyms_cmds to use soroot=$soname func_basename "$soroot" soname=$func_basename_result func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from '$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for '$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' 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 prog = "$linkmode" || test relink != "$opt_mode"; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test no = "$hardcode_direct"; 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 (non-dlopened) module then we cannot # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null; then if test "X$dlopenmodule" != "X$lib"; 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 elif test -n "$old_library"; then add=$dir/$old_library fi fi esac elif test no = "$hardcode_minus_L"; then case $host in *-*-sunos*) add_shlibpath=$dir ;; esac add_dir=-L$dir add=-l$name elif test no = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; relink) if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$dir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$absdir # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name elif test yes = "$hardcode_shlibpath_var"; then add_shlibpath=$dir add=-l$name else lib_linked=no fi ;; *) lib_linked=no ;; esac if test yes != "$lib_linked"; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test prog = "$linkmode"; 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 yes != "$hardcode_direct" && test yes != "$hardcode_minus_L" && test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test prog = "$linkmode" || test relink = "$opt_mode"; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test yes = "$hardcode_direct" && test no = "$hardcode_direct_absolute"; then add=$libdir/$linklib elif test yes = "$hardcode_minus_L"; then add_dir=-L$libdir add=-l$name elif test yes = "$hardcode_shlibpath_var"; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add=-l$name elif test yes = "$hardcode_automatic"; 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 [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add=-l$name fi if test prog = "$linkmode"; 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 prog = "$linkmode"; 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 unsupported != "$hardcode_direct"; 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 yes = "$build_libtool_libs"; then # Not a shared library if test pass_all != "$deplibs_check_method"; 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 cannot 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 yes = "$module"; 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 no = "$build_old_libs"; 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 lib = "$linkmode"; then if test -n "$dependency_libs" && { test yes != "$hardcode_into_libs" || test yes = "$build_old_libs" || test yes = "$link_static"; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs=$temp_deplibs fi func_append newlib_search_path " $absdir" # Link against this library test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test no != "$link_all_deplibs"; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path=$deplib ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of '$dir'" absdir=$dir fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= 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 "$absdir/$objdir/$depdepl"; then depdepl=$absdir/$objdir/$depdepl darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" path= fi fi ;; *) path=-L$absdir/$objdir ;; esac else eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "'$deplib' seems to be moved" path=-L$absdir fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test link = "$pass"; then if test prog = "$linkmode"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs=$newdependency_libs if test dlpreopen = "$pass"; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test dlopen != "$pass"; then test conv = "$pass" || { # 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 "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= } if test prog,link = "$linkmode,$pass"; then vars="compile_deplibs finalize_deplibs" else vars=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 "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Add Sun CC postdeps if required: test CXX = "$tagname" && { case $host_os in linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; solaris*) func_cc_basename "$CC" case $func_cc_basename_result in CC* | sunCC*) func_suncc_cstd_abi if test no != "$suncc_use_cstd_abi"; then func_append postdeps ' -library=Cstd -library=Crun' fi ;; esac ;; esac } # 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 func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test prog = "$linkmode"; then dlfiles=$newdlfiles fi if test prog = "$linkmode" || test lib = "$linkmode"; then dlprefiles=$newdlprefiles fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "'-R' is ignored for archives" test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "'-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "'-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs=$output func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form 'libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test no = "$module" \ && func_fatal_help "libtool library '$output' must begin with 'lib'" if test no != "$need_lib_prefix"; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test pass_all != "$deplibs_check_method"; then func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test no = "$dlself" \ || func_warning "'-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test 1 -lt "$#" \ && func_warning "ignoring multiple '-rpath's for a libtool library" install_libdir=$1 oldlibs= if test -z "$rpath"; then if test yes = "$build_libtool_libs"; 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 test -n "$vinfo" && \ func_warning "'-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "'-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs=$IFS; IFS=: set dummy $vinfo 0 0 0 shift IFS=$save_ifs test -n "$7" && \ func_fatal_help "too many parameters to '-version-info'" # 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=$1 number_minor=$2 number_revision=$3 # # 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 # that has an extra 1 added just for fun # case $version_type in # correct linux to gnu/linux during the next big refactor darwin|freebsd-elf|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_revision ;; freebsd-aout|qnx|sunos) current=$number_major revision=$number_minor age=0 ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor revision=$number_minor lt_irix_increment=no ;; esac ;; no) current=$1 revision=$2 age=$3 ;; 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]) ;; *) func_error "CURRENT '$current' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; 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]) ;; *) func_error "REVISION '$revision' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; 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]) ;; *) func_error "AGE '$age' must be a nonnegative integer" func_fatal_error "'$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE '$age' is greater than the current interface number '$current'" func_fatal_error "'$vinfo' is not valid version information" 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 func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" # On Darwin other compilers case $CC in nagfor*) verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" ;; *) verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; esac ;; freebsd-aout) major=.$current versuffix=.$current.$revision ;; freebsd-elf) func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; irix | nonstopux) if test no = "$lt_irix_increment"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result 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 0 -ne "$loop"; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring_prefix$major.$iface:$verstring done # Before this point, $major must not contain '.'. major=.$major versuffix=$major.$revision ;; linux) # correct to gnu/linux during the next big refactor func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=.$current.$age.$revision verstring=$current.$age.$revision # Add in all the interfaces that we are compatible with. loop=$age while test 0 -ne "$loop"; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring=$verstring:$iface.0 done # Make executables depend on our current version. func_append verstring ":$current.0" ;; qnx) major=.$current versuffix=.$current ;; sco) major=.$current versuffix=.$current ;; sunos) major=.$current versuffix=.$current.$revision ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 file systems. func_arith $current - $age major=$func_arith_result versuffix=-$major ;; *) func_fatal_configuration "unknown library version type '$version_type'" ;; 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 no = "$need_version"; then versuffix= else versuffix=.0.0 fi fi # Remove version info from name if versioning should be avoided if test yes,no = "$avoid_version,$need_version"; then major= versuffix= verstring= fi # Check to see if the archive will have undefined symbols. if test yes = "$allow_undefined"; then if test unsupported = "$allow_undefined_flag"; then if test yes = "$build_old_libs"; then func_warning "undefined symbols not allowed in $host shared libraries; building static only" build_libtool_libs=no else func_fatal_error "can't build $host shared library unless -no-undefined is specified" fi fi else # Don't allow undefined symbols. allow_undefined_flag=$no_undefined_flag fi fi func_generate_dlsyms "$libname" "$libname" : func_append libobjs " $symfileobj" test " " = "$libobjs" && libobjs= if test relink != "$opt_mode"; 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 | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) if test -n "$precious_files_regex"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "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 func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; 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 "*) ;; *) func_append 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 "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test yes = "$build_libtool_libs"; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-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 yes = "$build_libtool_need_lc"; then func_append 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. $opt_dry_run || $RM conftest.c cat > conftest.c <<EOF int main() { return 0; } EOF $opt_dry_run || $RM conftest if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then ldd_output=`ldd conftest` for i in $deplibs; do case $i in -l*) func_stripname -l '' "$i" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $i "*) func_append newdeplibs " $i" i= ;; esac fi if test -n "$i"; then libname=`eval "\\$ECHO \"$libname_spec\""` deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` set dummy $deplib_matches; shift deplib_match=$1 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then func_append newdeplibs " $i" else droppeddeps=yes echo $ECHO "*** Warning: dynamic linker does not accept needed library $i." 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 I believe you do not have" echo "*** because a test_compile did reveal that the linker did not use it for" echo "*** its dynamic dependency list that programs get resolved with at runtime." fi fi ;; *) func_append newdeplibs " $i" ;; esac done else # Error occurred in the first compile. Let's try to salvage # the situation: Compile a separate program for each library. for i in $deplibs; do case $i in -l*) func_stripname -l '' "$i" name=$func_stripname_result $opt_dry_run || $RM conftest if $LTCC $LTCFLAGS -o conftest conftest.c $i; then ldd_output=`ldd conftest` if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $i "*) func_append newdeplibs " $i" i= ;; esac fi if test -n "$i"; then libname=`eval "\\$ECHO \"$libname_spec\""` deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` set dummy $deplib_matches; shift deplib_match=$1 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then func_append newdeplibs " $i" else droppeddeps=yes echo $ECHO "*** Warning: dynamic linker does not accept needed library $i." 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 a test_compile did reveal that the linker did not use this one" echo "*** as a dynamic dependency that programs can get resolved with at runtime." fi fi else droppeddeps=yes echo $ECHO "*** Warning! Library $i is needed by this library but I was not able to" echo "*** make it link in! You will probably need to install it or some" echo "*** library that it depends on before this library will be fully" echo "*** functional. Installing it before continuing would be even better." fi ;; *) func_append newdeplibs " $i" ;; esac done fi ;; file_magic*) set dummy $deplibs_check_method; shift file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib= ;; esac fi if test -n "$a_deplib"; then libname=`eval "\\$ECHO \"$libname_spec\""` if test -n "$file_magic_glob"; then libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob` else libnameglob=$libname fi test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do if test yes = "$want_nocaseglob"; then shopt -s nocaseglob potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi 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 "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append 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 ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test yes = "$allow_libtool_libs_with_static_runtimes"; then case " $predeps $postdeps " in *" $a_deplib "*) func_append 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 func_append 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 ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs= tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test yes = "$allow_libtool_libs_with_static_runtimes"; then for i in $predeps $postdeps; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test none = "$deplibs_check_method"; 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 ;; esac ;; 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 with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test yes = "$droppeddeps"; then if test yes = "$module"; 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 no = "$build_old_libs"; 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 no = "$allow_undefined"; 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 no = "$build_old_libs"; 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 # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; 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 " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append 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 yes = "$build_libtool_libs"; then # Remove $wl instances when linking with ld. # FIXME: should test the right _cmds variable. case $archive_cmds in *\$LD\ *) wl= ;; esac if test yes = "$hardcode_into_libs"; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath=$finalize_rpath test relink = "$opt_mode" || rpath=$compile_rpath$rpath for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result 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"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append 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 "dep_rpath=\"$hardcode_libdir_flag_spec\"" fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append 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 relink = "$opt_mode" || 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 shift realname=$1 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 func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols=$output_objdir/$libname.uexp func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile func_dll_def_p "$export_symbols" || { # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols=$export_symbols export_symbols= always_export_symbols=yes } fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs=$IFS; IFS='~' for cmd1 in $cmds; do IFS=$save_ifs # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test yes = "$try_normal_branch" \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=$output_objdir/$output_la.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "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" && test : != "$skipped_export"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test : != "$skipped_export" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs=$tmp_deplibs if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test yes = "$compiler_needs_object" && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test relink = "$opt_mode"; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test yes = "$module" && 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 : != "$skipped_export" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # 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 func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then output=$output_objdir/$output_la.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then output=$output_objdir/$output_la.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test yes = "$compiler_needs_object"; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-$k.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test -z "$objlist" || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test 1 -eq "$k"; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-$k.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-$k.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result 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~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi ${skipped_export-false} && { func_verbose "generating symbol list for '$libname.la'" export_symbols=$output_objdir/$libname.exp $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi } test -n "$save_libobjs" && func_verbose "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 $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS=$save_ifs if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi ${skipped_export-false} && { if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols=$export_symbols test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for '$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands, which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi } 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\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test yes = "$module" && 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 fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs=$IFS; IFS='~' for cmd in $cmds; do IFS=$sp$nl eval cmd=\"$cmd\" IFS=$save_ifs $opt_quiet || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test relink = "$opt_mode"; then ( 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 relink = "$opt_mode"; then $opt_dry_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 func_show_eval '${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 func_show_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 yes = "$module" || test yes = "$export_dynamic"; then # On all known operating systems, these are identical. dlname=$soname fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then func_warning "'-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "'-l' and '-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "'-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "'-R' is ignored for objects" test -n "$vinfo" && \ func_warning "'-version-info' is ignored for objects" test -n "$release" && \ func_warning "'-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object '$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj=$output ;; esac # Delete the old objects. $opt_dry_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= # if reload_cmds runs $LD directly, get rid of -Wl from # whole_archive_flag_spec and hope we can get by with turning comma # into space. case $reload_cmds in *\$LD[\ \$]*) wl= ;; esac if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags else gentop=$output_objdir/${obj}x func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test yes = "$build_libtool_libs" || libobjs=$non_pic_objects # Create the old-style object. reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs output=$obj func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi test yes = "$build_libtool_libs" || { if test -n "$gentop"; then func_show_eval '${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" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS } if test -n "$pic_flag" || test default != "$pic_mode"; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output=$libobj func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "'-version-info' is ignored for programs" test -n "$release" && \ func_warning "'-release' is ignored for programs" $preload \ && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test CXX = "$tagname"; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " $wl-bind_at_load" func_append finalize_command " $wl-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; 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 "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs=$new_libs func_append compile_command " $compile_deplibs" func_append 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 "*) ;; *) func_append 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"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append 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"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append 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 yes = "$build_old_libs"; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" false # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=: case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=false ;; *cygwin* | *mingw* ) test yes = "$build_libtool_libs" || wrappers_required=false ;; *) if test no = "$need_relink" || test yes != "$build_libtool_libs"; then wrappers_required=false fi ;; esac $wrappers_required || { # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command=$compile_command$compile_rpath # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.$objext"; then func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' fi exit $exit_status } 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 func_append 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 func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test yes = "$no_install"; 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 "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi case $hardcode_action,$fast_install in relink,*) # Fast installation is not supported link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath func_warning "this platform does not like uninstalled shared libraries" func_warning "'$output' will be relinked during installation" ;; *,yes) link_command=$finalize_var$compile_command$finalize_rpath relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` ;; *,no) link_command=$compile_var$compile_command$compile_rpath relink_command=$finalize_var$finalize_command$finalize_rpath ;; *,needless) link_command=$finalize_var$compile_command$finalize_rpath relink_command= ;; esac # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "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}\" || $lt_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 func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result 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 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host"; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do case $build_libtool_libs in convenience) oldobjs="$libobjs_save $symfileobj" addlibs=$convenience build_libtool_libs=no ;; module) oldobjs=$libobjs_save addlibs=$old_convenience build_libtool_libs=no ;; *) oldobjs="$old_deplibs $non_pic_objects" $preload && test -f "$symfileobj" \ && func_append oldobjs " $symfileobj" addlibs=$old_convenience ;; esac if test -n "$addlibs"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # 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 func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop=$output_objdir/${outputname}x func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase=$func_basename_result case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 tool_oldlib=$func_to_tool_file_result eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$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 eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$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= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test -z "$oldobjs"; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test yes = "$build_old_libs" && old_library=$libname.$libext func_verbose "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}\" || $lt_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 func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; 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 "$relink_command" | $SED "$sed_quote_subst"` if test yes = "$hardcode_automatic"; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test yes = "$installed"; 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) func_basename "$deplib" name=$func_basename_result func_resolve_sysroot "$deplib" eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` test -z "$libdir" && \ func_fatal_error "'$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs=$newdependency_libs newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name=$func_basename_result eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "'$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles=$newdlprefiles else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles=$newdlfiles newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles=$newdlprefiles fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test -n "$bindir"; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result/$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE) $VERSION # # 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' # Linker flags that cannot go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_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 no,yes = "$installed,$need_relink"; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } if test link = "$opt_mode" || test relink = "$opt_mode"; then func_mode_link ${1+"$@"} fi # func_mode_uninstall arg... func_mode_uninstall () { $debug_cmd RM=$nonopt files= rmforce=false 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) func_append RM " $arg"; rmforce=: ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir=$func_dirname_result if test . = "$dir"; then odir=$objdir else odir=$dir/$objdir fi func_basename "$file" name=$func_basename_result test uninstall = "$opt_mode" && odir=$dir # Remember odir for removal later, being careful to avoid duplicates if test clean = "$opt_mode"; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; 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 $rmforce; then continue fi rmfiles=$file case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case $opt_mode in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test none != "$pic_object"; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test none != "$non_pic_object"; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test clean = "$opt_mode"; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.$objext" if test yes = "$fast_install" && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name"; then func_append rmfiles " $odir/lt-$noexename.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the $objdir's in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then func_mode_uninstall ${1+"$@"} fi test -z "$opt_mode" && { help=$generic_help func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode '$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # where 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 build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/missing�������������������������������������������������������������������������������0000755�0001753�0000144�00000024152�12544730643�011526� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2012-01-06.13; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 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, see <http://www.gnu.org/licenses/>. # 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=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # 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' autom4te touch the output file, or create a stub one 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 yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to <bug-automake@gnu.org>." 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 # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # 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). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; *) 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 $program 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 "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 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 test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -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 test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -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 "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? 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 "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 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 ;; *) 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-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/gettext.h�����������������������������������������������������������������������������0000644�0001753�0000144�00000007407�12426440016�011757� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- gettext.h for the Openbox window manager Copyright (c) 2003-2007 Dana Jansens 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 the COPYING file for a copy of the GNU General Public License. */ /* Convenience header for conditional use of GNU <libintl.h>. Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library 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 _LIBGETTEXT_H #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option. */ #if ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include <libintl.h> #else /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of <locale.h> a NOP. We don't include <libintl.h> as well because people using "gettext.h" will not include <libintl.h>, and also including <libintl.h> would fail on SunOS 4, whereas <locale.h> is OK. */ #if defined(__sun) # include <locale.h> #endif /* Disabled NLS. The casts to 'const char *' serve the purpose of producing warnings for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ # define gettext(Msgid) ((const char *) (Msgid)) # define dgettext(Domainname, Msgid) ((const char *) (Msgid)) # define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid)) # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) # define textdomain(Domainname) ((const char *) (Domainname)) # define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) # define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset)) #endif /* A pseudo function call that serves as a marker for the automated extraction of messages, but does not call gettext(). The run-time translation is done at a different place in the code. The argument, String, should be a literal string. Concatenated strings and other string expressions won't work. The macro's expansion is not parenthesized, so that it is suitable as initializer for static 'char[]' or 'const char[]' variables. */ #define gettext_noop(String) String /* Custom macro to make life easier */ #define _(str) gettext(str) #endif /* _LIBGETTEXT_H */ ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/�����������������������������������������������������������������������������������0000755�0001753�0000144�00000000000�12544731566�010626� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/Makefile.in.in���������������������������������������������������������������������0000644�0001753�0000144�00000032232�10761665313�013215� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu> # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.15 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ mkinstalldirs = $(SHELL) @install_sh@ -d mkdir_p = @mkdir_p@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) MSGFMT_ = @MSGFMT@ MSGFMT_no = @MSGFMT@ MSGFMT_yes = @MSGFMT_015@ MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: all-@USE_NLS@ all-yes: stamp-po all-no: # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all $(mkdir_p) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: $(mkdir_p) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo 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 stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if $(MSGMERGE) $$lang.po $(DOMAIN).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; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && $(SHELL) ./config.status $(subdir)/$@.in po-directories force: # 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: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/remove-potcdate.sin����������������������������������������������������������������0000644�0001753�0000144�00000000660�10761665313�014354� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } ��������������������������������������������������������������������������������openbox-3.6.1/po/quot.sed���������������������������������������������������������������������������0000644�0001753�0000144�00000000231�10761665313�012222� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/boldquot.sed�����������������������������������������������������������������������0000644�0001753�0000144�00000000331�10761665313�013064� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g s/“/“/g s/”/”/g s/‘/‘/g s/’/’/g �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/en@quot.header���������������������������������������������������������������������0000644�0001753�0000144�00000002263�10761665313�013331� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/en@boldquot.header�����������������������������������������������������������������0000644�0001753�0000144�00000002471�10761665313�014173� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/insert-header.sin������������������������������������������������������������������0000644�0001753�0000144�00000001240�10761665313�014003� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/Rules-quot�������������������������������������������������������������������������0000644�0001753�0000144�00000003376�10761665313�012555� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$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 "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/Makevars���������������������������������������������������������������������������0000644�0001753�0000144�00000003430�11003645210�012215� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Dana Jansens # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = http://bugzilla.icculus.org # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/POTFILES.in������������������������������������������������������������������������0000644�0001753�0000144�00000000624�11325150407�012306� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# List of source files containing translatable strings. openbox/actions.c openbox/actions/execute.c openbox/actions/exit.c openbox/client.c openbox/client_list_combined_menu.c openbox/client_list_menu.c openbox/client_menu.c openbox/config.c openbox/debug.c openbox/keyboard.c openbox/menu.c openbox/mouse.c openbox/openbox.c openbox/screen.c openbox/startupnotify.c openbox/translate.c openbox/prompt.c ������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/af.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031336�12544731072�011472� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Afrikaans translation of Openbox. # Copyright (C) 2012 Dana Jansens # This file is distributed under the same license as the 3.5.0 package. # # Nicolaas van der Merwe <aspersieman@gmail.com>, 2012. # msgid "" msgstr "" "Project-Id-Version: 3.5.0\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2012-02-20 11:26+0700\n" "Last-Translator: aspersieman <aspersieman@gmail.com>\n" "Language-Team: Afrikaans\n" "Language: af\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Ongeldige aksie \"%s\" versoek. Daar is geen sodanige aksie nie." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nee" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Ja" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Voer uit" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Versuim om die pad \"%s\" vanaf utf8 te omskep." #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Kanselleer" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Verlaat" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Is jy seker jy wil uit teken?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Teken Uit" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Is jy seker jy wil Openbox verlaat?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Verlaat Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Naamlose Venster" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Beëindig..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Reageer Nie" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Die venster \"%s\" lyk nie asof dit reageer nie. Wil jy dit vorseer om te " "eindig deur dit die %s sein te stuur?" #: openbox/client.c:3660 msgid "End Process" msgstr "Beëindig Proses" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Die venster \"%s\" lyk nie asof dit reageer nie. Wil jy dit afsluitvan die X-" "bediener?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Sluit Af" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Gaan daarna..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Beheer werksareas" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Voeg _nuwe werksarea by" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Verwyder vorige werksarea" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Vensters" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Werksareas" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Alle werksareas" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Laag" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Altyd _bo op" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normaal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Altyd _onder" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Stuur na werksarea" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Kliënt spyskaart" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Herstel" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Skuif" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "V_erstel Grootte" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "M_inimaliseer" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "M_aksimeer" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Rol op/af" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Ve_rsier/Nie-versier" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Sluit" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Ongeldige konteks \"%s\" in die muis binding" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Ongeldige knoppie \"%s\" is gespesifiseer in die konfigurasielêer" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Sluit" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konflik met sleutelbinding in konfigurasielêer" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Kan nie die geldige spyskaart lêer \"%s\" vind nie" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Versuim om die bevel uit te voer vir die pyp-spyskaart \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Ongeldige uitvoer van pyp-spyskaart \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Gepoog vir toegang tot spyskaart \"%s\", maar dit bestaan nie" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Meer..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Ongeldige knoppie \"%s\" in die muis binding" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Kan nie verander na die tuis gids \"%s\" nie: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "" "Versuim om die vertoning vanaf die DISPLAY omgewings veranderlike oop te maak" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Versuim om die obrender biblioteek te inisialiseer" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Die X-bediener ondersteun nie die plaaslikheid nie" #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Kan nie die plaaslikheids wysigers van die X-bediener stel nie." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Kan nie 'n geldige konfigurasielêer, gebruik eenvoudige verstek waardes" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Een of meer XML sintaksfoute is gevind tydens die ontleding van die Openbox " "konfigurasielêers. Sien stdout vir meer informasie. Die laaste fout gesien " "was in die lêer \"%s\" lyn %d, met die boodskap: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Kanie 'n tema laai nie." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox Sintaksfout" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Herlaai het versuim om die nuwe uitvoering \"%s\" uit te voer: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Kopiereg (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaks: openbox [opsies]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opsies:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Vertoon die help en verlaat\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Vertoon die weergawe en verlaat\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Vervang die huidige lopende venster bestuurder\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FILE Spesifiseer die pad na die konfigurasielêers om te " "gebruik\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr "" " --sm-disable Skakel die konneksie na die sessie bestuurder af\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Voer die boodskappe na 'n huidige Openbox instansie:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Herlaai Openbox se konfigurasie\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Herbegin Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Verlaat Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Ontfouting opsies:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Loop in gelyktydige mode\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Vertoon ontfouting afvoere\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Vertoon ontfouting afvoer vir fokus hantering\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Verdeel die vertoning in nagemaakte xinerama skerms\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Rapporteer asseblief foute aan %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s benodig 'n argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Ongeldige opdrag lyn argument \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "'n Ventster bestuurder is reeds besig om te hardloop op skerm %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Kon nie venster bestuurder seleksie op skerm %d verkry nie" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Die venster bestuurder op skerm %d verlaat nie" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox is gekonfigureer vir %d werksarea, maar die huidige sessie het %d. " "Oorheers die Openbox konfigurasie." msgstr[1] "" "Openbox is gekonfigureer vir %d werksareas, maar die huidige sessie het %d. " "Oorheers die Openbox konfigurasie." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "werksarea %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Loop %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Ongeldige wysiger sleutel \"%s\" in die sleutel/muis binding" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Ongeldige sleutel kode \"%s\" in die sleutel binding" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Ongeldige sleutel naam \"%s\" in die sleutel binding" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Versoekte sleutel \"%s\" bestaan nie op die vertining nie" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ar.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031750�12544731072�011506� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# translation of openbox.pot to Arabic # Copyright (C) 2007 Dana Jansens # This file is distributed under the same license as the Openbox package. # # Khaled Hosny <khaledhosny@eglug.org>, 2007. msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.3\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2012-01-18 22:41-0000\n" "Last-Translator: كريم اولاد الشلحة <herr.linux88@gmail.com>\n" "Language-Team: Arabic <herr.linux88@gmail.com>\n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : n>=3 && n<=10 ? 2 : " "3\n" "X-Poedit-Language: Arabic\n" "X-Poedit-Country: Morocco\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "" #: openbox/actions/execute.c:245 msgid "No" msgstr "لا" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "نعم" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "تنفيذ" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "فشلت في تحويل المسار \"%s\" من utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "إلغاء" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "الخروج" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "هل أنت متاكد من انك تود تسجيل الخروج؟" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "تسجيل الخروج" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "هل تريد حقا الخروج من أوبن بوكس؟" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "الخروج من أوبن‌بوكس" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "نافذة بدون إسم" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "إنهاء..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "لا يستجيب" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" #: openbox/client.c:3660 msgid "End Process" msgstr "إنهاء العملية" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" #: openbox/client.c:3666 msgid "Disconnect" msgstr "قطع الإتصال" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "اذهب هناك..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "أدِر أسطح المكتب" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "أضِف سطح مكتب جديد (_A)" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "احذف آخر سطح مكتب (_R)" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "نوافذ" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "أسطح مكتب" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "كل أسطح المكتب" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "طبقة (_L)" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "دائما على السطح (_T)" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "طبيعي (_N)" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "دائما في القاع (_B)" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "أرسِل إلى سطح المكتب (_S)" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "قائمة العميل" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "استعِد (_E)" #: openbox/client_menu.c:398 msgid "_Move" msgstr "انقل (_M)" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "حجِّم (_Z)" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "صغّر (_N)" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "كبّر (_X)" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "لُف لأعلى/لأسفل (_R)" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "ضع/أزل الحواف (_D)" #: openbox/client_menu.c:418 msgid "_Close" msgstr "أغلق (_C)" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "سياق غير صحيح \"%s\" في ارتباط الفأرة" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "زر غير صحيح \"%s\" محدد في ملف الإعدادات" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "أغلق" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "يتعارض مع ارتباط المفاتيح في ملف الإعدادات" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "لم أعثر على ملف قائمة سليم \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "فشل تنفيذ أمر ل pipe-menu \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "خرج غير سليم من pipe-menu \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "حاولت الوصول إلى القائمة \"%s\" لكنها غير موجودة" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "المزيد..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "زر غير صحيح \"%s\" في ارتباط الفأرة" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "لم أستطع تغيير المجلد المنزلي \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "تعذّر فتح العرض من متغير البيئة DISPLAY." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "تعذّر بدأ مكتبة obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "خادم إكس لا يدعم المحليّة." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "لم أستطِع ضبط مُغيِّرات المحليّة لخادم إكس." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "لم أعثر على ملف إعدادات سليم، سأستخدم بعض الإفتراضيات البسيطة" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "لم أستطِع تحميل سِمة." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "فشلت إعادة التشغيل في تنفيذ مُنفّذ جديد \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "حقوق النسخ" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "الصيغة: openbox [options]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "الخيارات:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help اعرض هذه المساعدة ثم اخرج\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version اعرض النسخة ثم اخرج\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace استبدل مدير النوافذ الذي يعمل حاليا\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable عطِّل الإتصال بمدير الجلسة\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "تمرير رسائل لمرّة تعمل من أوبن‌بوكس:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure أعِد تحميل إعدادات أوبن‌بوكس\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart أعِد تشغيل أوبن‌بوكس\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit الخروج من أوبن‌بوكس\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "خيارات التنقيح:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync شغّل في النمط المزامن\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug اعرض خرْج التنقيح\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus اعرض خرج التنقيح للتعامل مع البؤرة\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama شق العرض إلى شاشات xinerama زائفة\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "من فضلك أبلغ عن العلل إلى %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "معامل سطر أوامر غير سليم \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "يعمل مدير نوافذ بالفعل على الشاشة %Id" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "تعذّر الحصول على انتقاء مدير النوافذ على الشاشة %Id" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "مدير النوافذ على الشاشة %Id لا وجود له" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" msgstr[1] "" msgstr[2] "" msgstr[3] "" #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "سطح المكتب %Ii" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "تشغيل %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "مفتاح مُغيِّر \"%s\" غير سليم في ارتبط الفأرة/لوحة المفاتيح" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "رمز مفتاح \"%s\" غير سليم في ارتباط المفتاح" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "اسم مفتاح \"%s\" غير سليم في ارتباط المفتاح" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "المفتاح المطلوب \"%s\" لا وجود له في العرض" #: openbox/prompt.c:154 msgid "OK" msgstr "نعم" ������������������������openbox-3.6.1/po/be.po������������������������������������������������������������������������������0000644�0001753�0000144�00000036056�12544731073�011477� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Belarusian translation for Openbox. # Copyright (C) 2003-2008 Dana Jansens # This file is distributed under the same license as the openbox package. # Mikalai Udodau <crom-a@tut.by>, 2012. # # msgid "" msgstr "" "Project-Id-Version: openbox 3.4.11\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2012-07-16 20:55+0300\n" "Last-Translator: Mikalai Udodau <crom-a@tut.by>\n" "Language-Team: Belarusian <i18n@mova.org>\n" "Language: be\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Запытана недапушчальнае дзеянне \"%s\". Няма такога дзеяння." #: openbox/actions/execute.c:245 msgid "No" msgstr "Не" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Так" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Выканаць" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Не ўдалося пераўтварыць шлях \"%s\" з utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Скасаваць" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Выйсці" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Вы сапраўды хочаце выйсці?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Выйсці" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Сапраўды хочаце выйсці з Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Выйсці з Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Неназванае вакно" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Прыбіццё..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Не адказвае" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Акно \"%s\" не адказвае, здаецца. Ці хочаце прымусіць яго закрыцца, даслаўшы " "яму сігнал %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Скончыць працэс" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Вакно \"%s\" не адказвае, здаецца. Вы хочаце адлучыць яго ад X-сервера?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Адлучыць" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Перайсці..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Кіраваць прасторамі" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Дадаць прастору" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "Сцерці апошнюю прастору" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Вокны" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Прасторы" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Усе прасторы" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "Узровень (_L)" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Заўжды наверсе (_T)" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "Звычайны (_N)" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Заўжды долу (_B)" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Даслаць на прастору (_S)" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Кліенцкае меню" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Узнавіць (_E)" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Перамясціць (_M)" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Змяніць памер (_Z)" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Згарнуць (_N)" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Максімізаваць (_X)" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Скруціць/раскруціць (_R)" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Раз/Абрамленне (_D)" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Закрыць (_C)" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Недапушчальны кантэкст \"%s\" у спалучэнні мышы" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Недапушчальная клавіша \"%s\" пазначана ў файле канфігурацыі" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Закрыць" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Канфлікт з клавіятурным скаротам у файле канфігурацыі" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Немагчыма знайсці спраўны файл меню \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Не ўдалося выканаць загад з канальнага меню \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Недапушчальны вывад з канальнага меню \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Спроба адкрыць меню \"%s\", але яно не існуе" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Яшчэ..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Недапушчальная кнопка \"%s\" у спалучэнні мышы" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Немагчыма перайсці ў хатні каталог \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Не ўдалося адкрыць дысплей, пазначаны ў пераменнай асяроддзя DISPLAY" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Не ўдалося ініцыялізаваць бібліятэку obrender" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X-сервер не падтрымлівае локал." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Немагчыма ўстанавіць мадыфікатары локала для X-сервера." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "Не знойдзены спраўны файл канфігурацыі, ужываем прадвызначэнні" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Адна ці больш памылак сінтаксісу XML сустрэліся падчас разбору " "канфігурацыйных файлаў Openbox. Гл. стд.вывад за дэталямі. Апошняя бачаная " "памылка была ў файле \"%s\" радок %d, з паведамленнем: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Немагчыма прачытаць тэму." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Памылка сінтаксісу Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Перазапуск не змог запусціць новы выканальны файл \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Аўтарскае права (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Сінтаксіс: openbox [опцыі]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Опцыі:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Паказаць гэту даведку і выйсці\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Паказаць нумар версіі і выйсці\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Замяніць запушчаны цяпер кіраўнік вокнаў\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file ФАЙЛ Задаць шлях да файла канфігурацыі\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Забараніць злучэнне з кіраўніком сеансаў\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Дасыланне паведамленняў бягучаму асобніку Openbox:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Перачытаць канфігурацыю Openbox'а\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Перазапусціць Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Выйсці з Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Опцыі адладкі:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Выконваць у сінхронным рэжыме\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Паказваць вывад адладкі\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Паказваць вывад адладкі па кіраванні фокусам\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Разбіць дысплей на несапраўдныя экраны xinerama\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Паведамляйце пра памылкі на %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s патрабуе аргумент\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Недапушчальны аргумент загаднага радка \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Кіраўнік вокнаў ужо выконваецца для экрана %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Немагчыма ўзяць вылучэнне кіраўніка вокнаў на экране %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Кіраўнік вокнаў на экране %d не завяршаецца" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox сканфігураваны на %d прастору, але ж бягучы сеанс мае %d. " "Перагледжваем канфігурацыю Openbox." msgstr[1] "" "Openbox сканфігураваны на %d прасторы, але ж бягучы сеанс мае %d. " "Перагледжваем канфігурацыю Openbox." msgstr[2] "" "Openbox сканфігураваны на %d прастораў, але ж бягучы сеанс мае %d. " "Перагледжваем канфігурацыю Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "працоўная прастора %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Запуск %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Недапушчальная клавіша-мадыфікатар \"%s\" у спалучэнні клавіш/кнопак" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Недапушчальны код клавішы \"%s\" у спалучэнні клавіш" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Недапушчальная назва клавішы \"%s\" у спалучэнні клавіш" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Запытаны ключ \"%s\" не існуе на гэтым дысплеі" #: openbox/prompt.c:154 msgid "OK" msgstr "ОК" ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/bn_IN.po���������������������������������������������������������������������������0000644�0001753�0000144�00000036101�12544731073�012065� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# translation of openbox to Bengali (India) # Copyright (C) 2007 Dana Jansens # This file is distributed under the same license as the Openbox package. # # Runa Bhattacharjee <runabh@gmail.com>, 2007. msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2007-06-01 19:02+0530\n" "Last-Translator: Runa Bhattacharjee <runabh@gmail.com>\n" "Language-Team: Bengali (India) <en@li.org>\n" "Language: bn_IN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.11.4\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "" "অবৈধ কর্ম \"%s\"-র অনুরোধ জানানো হয়েছে। এই ধরনের কোনো কর্ম বর্তমানে উপস্থিত নেই।" #: openbox/actions/execute.c:245 msgid "No" msgstr "" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "\"%s\" পাথটি utf8 থেকে রূপান্তর করতে ব্যর্থ" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "" #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" #: openbox/client.c:3660 msgid "End Process" msgstr "" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" #: openbox/client.c:3666 msgid "Disconnect" msgstr "" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "চিহ্নিত স্থানে চলুন..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "উইন্ডো" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "ডেস্কটপ" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "সর্বপ্রকার ডেস্কটপ" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "স্তর (_L)" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "সর্বদা উপরে (_t)" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "স্বাভাবিক (_N)" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "সর্বদা নীচে (_b)" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "ডেস্কটপে পাঠানো হবে (_S)" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "ক্লায়েন্ট মেনু" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "পুনরুদ্ধার (_e)" #: openbox/client_menu.c:398 msgid "_Move" msgstr "স্থানান্তরণ (_M)" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "মাপ পরিবর্তন (_z)" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "আইকন রূপে প্রদর্শন (_n)" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "বড় করুন (_x)" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "উপরে/নীচে গুটিয়ে নিন (_R)" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "বিন্যাস পরিবর্তন (_D)" #: openbox/client_menu.c:418 msgid "_Close" msgstr "বন্ধ করুন (_C)" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "মাউস বাইন্ডিং সংক্রান্ত অবৈধ কনটেক্সট \"%s\"" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "কনফিগ ফাইলে অবৈধ বাটন \"%s\" উল্লিখিত হয়েছে" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "'%s' ডিরেক্টরি নির্মাণ করতে ব্যর্থ: %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "বন্ধ করুন" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "কনফিগ ফাইলে কি-বাইন্ডিং সংক্রান্ত দ্বন্দ্ব" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "বৈধ মেনু ফাইল \"%s\" সনাক্ত করতে ব্যর্থ" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "পাইপ-মেনু \"%s\"-র জন্য কমান্ড সঞ্চালন করতে ব্যর্থ: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "পাইপ-মেনু \"%s\" থেকে অবৈধ ফলাফল প্রাপ্ত হয়েছে" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "অনুপস্থিত মেনু \"%s\" ব্যবহারের প্রচেষ্টা হয়েছে" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "অতিরিক্ত..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "মাউস বাইন্ডিং সংক্রান্ত অবৈধ বাটন \"%s\"" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "ব্যক্তিগত ডিরেক্টরি \"%s\"-তে পরিবর্তন করতে ব্যর্থ: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "DISPLAY এনভাশরনমেন্ট ভেরিয়েবলের মান প্রয়োগ করে প্রদর্শন আরম্ভ করতে ব্যর্থ।" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "obrender লাইব্রেরি আরম্ভ করতে ব্যর্থ।" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X সার্ভার দ্বারা লোকেইল সমর্থিতত হয় না।" #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "X সার্ভারের জন্য লোকেইল মডিফায়ার নির্ধারণ করতে ব্যর্থ।" #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "বৈধ কনফিগ ফাইল সনাক্ত করতে ব্যর্থ, কয়েকটি সাধারণ ডিফল্ট মান প্রয়োগ করা হবে।" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "থিম লোড করতে ব্যর্থ।" #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "পুনরাম্ভের পরে নতুন এক্সেকিউটেবল \"%s\" সঞ্চালন করতে ব্যর্থ: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "স্বত্বাধিকার (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "ব্যবহারপ্রণালী: openbox [বিকল্প]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "বিবিধ বিকল্প:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help সহায়তা বার্তা প্রদর্শন করে প্রস্থান\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version সংস্করণ প্রদর্শন করে প্রস্থান\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" " --replace বর্তমানে চলমান উইন্ডো পরিচালন ব্যবস্থা পরিবর্তন করা হবে\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr "" " --sm-disable সেশান পরিচালন ব্যবস্থার সাথে সংযোগ নিষ্ক্রিয় করা হবে\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "চলমান Openbox ইনস্ট্যান্সে বার্তা প্রেরণ:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Openbox-র কনফিগারেশন পুনরায় লোড করে\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Openbox পুনরারম্ভ\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr "" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "ডিবাগ করার বিভিন্ন বিকল্প:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync সিঙ্ক্রোনাস মোডে সঞ্চালিত হবে\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug ডিবাগ-এর ফলাফল প্রদর্শন করে\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus ফোকাস হ্যান্ডলিং সংক্রান্ত ডিবাগের ফলাফল প্রদর্শন করে\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama প্রদর্শন ক্ষেত্রটি নকল xinerama পর্দায় ভাগ করা হবে\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "অনুগ্রহ করে %s-এ বাগ সংক্রান্ত সূচনা দায়ের করুন\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "অবৈধ কমান্ড-লাইন আর্গুমেন্ট \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "একটি উইন্ডো পরিচালন ব্যবস্থা বর্তমানে %d-এ চলছে" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "পর্দা %d-এ উইন্ডো পরিচালন ব্যবস্থার নির্বাচিত অংশ প্রাপ্ত করতে ব্যর্থ" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "পর্দা %d-র উপর চলমান উইন্ডো পরিচালন ব্যবস্থাটি বন্ধ করতে ব্যর্থ" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" msgstr[1] "" #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "desktop %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "%s সঞ্চালিত হচ্ছে" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "কি/মাউস বাইন্ডিং-র মধ্যে অবৈধ মডিফায়ার-কি \"%s\"" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "কি-বাইন্ডিং-র মধ্যে অবৈধ কি-কোড \"%s\"" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "কি-বাইন্ডিং-র মধ্যে অবৈধ কি-র নাম \"%s\"" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "অনুরোধ করা কি \"%s\", প্রদর্শন ক্ষেত্রে উপস্থিত নেই" #: openbox/prompt.c:154 msgid "OK" msgstr "" ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ca.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032546�12544731073�011474� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Missatges en català per a openbox. # Copyright (C) 2007 Mikael Magnusson # This file is distributed under the same license as the openbox package. # David Majà Martínez <davidmaja@gmail.com>, 2007, 2008. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-05-25 19:23+0200\n" "Last-Translator: David Majà Martínez <davidmaja@gmail.com>\n" "Language-Team: catalan\n" "Language: ca\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "L'acció sollicitada \"%s\" no és vàlida. Aquesta acció no existeix." #: openbox/actions/execute.c:245 msgid "No" msgstr "No" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Sí" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Executa" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "No s'ha pogut convertir el camí \"%s\" des de utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Cancel·la" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Surt" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Esteu segur de voler sortir?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Surt" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Esteu segur de voler sortir de Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Surt de Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Finestra sense nom" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "S'està finalitzant..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "No està responent" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Sembla que la finestra \"%s\" no està responent. Voleu forçar-la a " "finalitzar enviant el senyal %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Finalitza el procés" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Sembla que la finestra \"%s\" no està responent. Voleu desconnectar-la del " "servidor d'X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Desconnecta" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Vés aquí..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Gestiona els escriptoris" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Afegeix un nou escriptori" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Suprimeix l'últim escriptori" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Finestres" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Escriptoris" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Tots els escriptoris" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Capa" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Sempre a so_bre" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Sempre a so_ta" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "A l'_escriptori" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menú del client" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Restaur_a" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Mou" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Redimen_siona" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimitza" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximitza" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "En/Desen_rotlla" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Sense/Amb _decoració" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Tanca" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "El context \"%s\" no és vàlid en la vinculació del ratolí" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "El botó especificat al fitxer de configuració \"%s\" no és vàlid." #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "No és pot crear el directori '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Tanca" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflicte amb la tecla vinculada en el fitxer de configuració" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "No s'ha pogut trobar un fitxer de menú \"%s\" vàlid" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "" "S'ha produït un error en executar l'ordre per al menú de conducte \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "La sortida del menú de conducte \"%s\" no és vàlida" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "S'ha intentat accedir al menú \"%s\" ja que no existeix" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Més..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "El botó \"%s\" no és vàlid en la vinculació del ratolí" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "No s'ha pogut canviar al directori de l'usuari \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "No s'ha pogut obrir la pantalla des de la variable d'entorn DISPLAY" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "S'ha produït un error en inicialitza la llibreria obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "El servidor X no te suport per a idiomes" #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "No s'ha pogut assignar els modificadors del locale per al servidor X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "No s'ha pogut trobat un fitxer de configuració vàlid, s'utilitzaran alguns " "valors predeterminats" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "S'han trobat un o mes errors de sintaxi XML en analitzar el fitxer de " "configuració de Openbox. Per a més informació visualitza el stdout. L'últim " "error trobat estava al fitxer \"%s\" línia %d, amb el missatge: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "No s'ha pogut carregar el tema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Error de sintaxi de Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "" "S'ha produït un error en tornar a iniciar i executar el nou executable \"%s" "\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaxis: openbox [opcions]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opcions:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Visualitza aquesta ajuda i surt\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Visualitza la versió i surt\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" " --replace Reemplaça el gestor de finestres que s'està executant " "actualment\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FITXER\n" " Especifica el camí del fitxer de configuració a " "utilitzar\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Inhabilita la connexió amb el gestor de sessió\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "S'està transferint missatges a la instància del Openbox que s'està " "executant:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Torna a carregar la configuració de Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Torna a iniciar Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Surt de Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opcions de depuració:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Executa en mode sincronitzat\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Mostra la sortida de depuració\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Mostra la sortida de depuració per a la gestió del " "focus\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Mostra la sortida de depuració per a la gestió del " "session management\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Divideix la visualització en pantalles xinerama " "falses\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Informeu dels errors a %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s necessita un argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Opció \"%s\" no vàlida a la línia d'ordres\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Encara s'està executant un gestor de finestres a la pantalla %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "" "No s'ha pogut adquirir la selecció del gestor de finestres en la pantalla %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "El gestor de finestres de la pantalla %d no està sortint" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "El Openbox està configurat per a %d escriptori, però la sessió actual en te " "%d. S'està modificant la configuració del Openbox." msgstr[1] "" "El Openbox està configurat per a %d escriptoris, però la sessió actual en te " "%d. S'està modificant la configuració del Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "escriptori %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Executant %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "" "La tecla modificadora \"%s\" no és vàlida en la vinculació de tecles/ratolí" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "El codi de tecla \"%s\" no és vàlid en la vinculació de tecles" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "El nom de la tecla \"%s\" no és vàlid en la vinculació de tecles" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "La tecla seleccionada \"%s\" no existeix a la pantalla" #: openbox/prompt.c:154 msgid "OK" msgstr "D'acord" ����������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/cs.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031456�12544731073�011515� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Czech translation for Openbox. # Copyright (C) 2007 Dana Jansens # This file is distributed under the same license as the Openbox 3 package. # # tezlo <tezlo@gmx.net>, 2007. # David Kolibac <david@kolibac.cz>, 2011. msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2011-06-03 17:49+0200\n" "Last-Translator: David Kolibac <david@kolibac.cz>\n" "Language-Team: Czech <cs@li.org>\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.2\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Požadována neplatná činnost \"%s\". Žádná taková činnost neexistuje." #: openbox/actions/execute.c:245 msgid "No" msgstr "Ne" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Ano" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Spustit" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Nepodařilo se převést cestu \"%s\" z UTF-8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Zrušit" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Konec" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Opravdu se chcete odhlásit?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Odhlásit" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Opravdu chcete ukončit Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Ukončit Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Nepojmenované okno" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Ukončuje se..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Neodpovídá" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "Okno \"%s\" neodpovídá. Chcete jej ukončit signálem %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Ukončit proces" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "Okno \"%s\" neodpovídá. Chcete jej odpojit od X serveru?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Odpojit" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Jít tam..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Spravovat plochy" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Přidat novou plochu" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Odstranit poslední plochu" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Okna" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Plochy" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Všechny plochy" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "Vrs_tva" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Vždy na_vrchu" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normální" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Vždy ve_spodu" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Poslat na plochu" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Nabídka klienta" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Obnovit" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Přes_unout" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Veli_kost" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimalizovat" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximalizovat" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "S_rolovat/Vyrolovat" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "O_ddekorovat/Dekorovat" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Zavřít" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Neplatný kontext \"%s\" v nastavení myši" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Neplatné tlačítko \"%s\" v konfiguračním souboru" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Zavřít" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konflikt klávesových zkratek v konfiguračním souboru" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Nepodařilo se najít platný soubor nabídky \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Nepodařilo se spustit příkaz pro pipe-menu \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Neplatný výstup z pipe-menu \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Pokus o přístup k nabídce \"%s\", která ale neexistuje" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Více..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Neplatné tlačítko \"%s\" v nastavení myši" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Nepodařilo se přejít do domovského adresáře \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Nepodařilo se otevřít displej z proměnné prostředí DISPLAY." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Nepodařilo se inicializovat knihovnu obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X server nepodporuje lokalizaci." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Nelze nastavit modifikátory lokalizace pro X server." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Nepodařilo se najít platný konfigurační soubor, pokračuje se s výchozím " "nastavením" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Při načítání konfiguračních souborů nalezena jedna nebo více syntaktických " "chyb, více informací najdete na standardním výstupu. Poslední zaznamenaná " "chyba je v souboru \"%s\" na řádku %d, se zprávou: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Nepodařilo se načíst motiv." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Chyba syntaxe Openboxu" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Při restartu se nepodařilo spustit nový program \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntaxe: openbox [přepínače]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Přepínače:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Zobrazit tuto nápovědu a skončit\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Zobrazit verzi a skončit\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Nahradit běžícího správce oken\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE Cesta ke konfiguračnímu souboru\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Nepřipojovat se ke správci sezení\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Zasílání zpráv běžící instanci Openboxu:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Znovu načíst konfiguraci Openboxu\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Restartovat Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Ukončit Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Ladicí přepínače:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Spustit v synchronním módu\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Zobrazit ladící výstup\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Zobrazit ladící výstup pro aktivaci oken\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Rozdělit displej na falešné obrazovky xinerama\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Prosím, hlaste chyby anglicky na %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s vyžaduje argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Neplatný argument příkazového řádku \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Na obrazovce %d již nějaký správce oken běží" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Nepodařilo se převzít správu oken na obrazovce %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Správce oken na obrazovce %d odmítá skončit" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox je konfigurován pro %d plochu, ale současné sezení jich má %d. " "Konfigurace Openboxu bude změněna." msgstr[1] "" "Openbox je konfigurován pro %d plochy, ale současné sezení jich má %d. " "Konfigurace Openboxu bude změněna." msgstr[2] "" "Openbox je konfigurován pro %d ploch, ale současné sezení jich má %d. " "Konfigurace Openboxu bude změněna." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "plochu %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Spouští se %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Neplatný modifikátor \"%s\" v nastavení klávesnice/myši" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Neplatný kód klávesy \"%s\" v nastavení" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Neplatné jméno klávesy \"%s\" v nastavení" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Požadovaná klávesa \"%s\" na displeji neexistuje" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/da.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031542�12544731073�011470� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Danish messages for openbox # Copyright (C) 2007 Dana Jansens # This file is distributed under the same license as the openbox package. # # Jesper Sander <sander.contrib@gmail.com>, 2008 msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-08-19 16:50+0100\n" "Last-Translator: Jesper Sander <sander.contrib@gmail.com>\n" "Language-Team: None\n" "Language: da\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Ugyldig operation \"%s\" anmodet. Operationen findes ikke." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nej" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Ja" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Udfør" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Fejl ved konvertering af stien \"%s\" fra utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Afbryd" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Afslut" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Er du sikker på at du vil logge ud?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Log Ud" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Er du sikker på at du vil afslutte Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Afslut Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Unavngivet vindue" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Dræber..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Svarer Ikke" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Vinduet \"%s\" svarer ikke. Vil du udføre tvunget afslutning ved at sende %s " "signalet?" #: openbox/client.c:3660 msgid "End Process" msgstr "Afslut proces" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "Vinduet \"%s\" svarer ikke. Vil du frakoble vinduet fra X-serveren?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Frakoble" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Gå der..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Håndter skrivebord" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Nyt skrivebord" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Fjern sidste skrivebord" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Vinduer" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Skrivebord" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Alle skriveborde" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "La_g" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Altid ø_verst" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "Nor_mal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Altid _nederst" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Send til skrivebord" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Klient-menu" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "G_endan" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Flyt" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Ændre s_tørrelse" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "_Minimer" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximer" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Rul op/ned" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Fjern/tilføj _dekoration" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Luk" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Ugyldig indhold \"%s\" i muse-kombination" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Ugyldig tast \"%s\" specificeret i konfigurationsfilen" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Kan ikke oprette mappe '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Luk" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konflikt med taste-kombinationer i konfigurationsfilen" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Kan ikke finde en gyldig menufil \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Kunne ikke udføre kommando for pipe-menu \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Ugyldig uddata fra pipe-menuen \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Forsøgte at åbne menuen \"%s\", men denne findes ikke" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Mere..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Ugyldig knap \"%s\" i muse-kombination" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Kan ikke skifte til hjemmekataloget \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Kunne ikke åbne displayet fra DISPLAY-miljøvariablen" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Kunne ikke starte obrender-biblioteket." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X-serveren understøtter ikke lokalisering." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Kan ikke indstille lokaliseringsmodifikatorene for X-serveren." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Kunne ikke finde en gyldig konfigurationsfil, bruger nogle simple " "standardværdier" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "En eller flere XML-syntaksfejl blev fundet ved læsning af " "konfigurationsfilerne til Openbox. Se stdout for mere information. Den " "sidste fejl som blev set var i fil \"%s\", linie %d, med beskeden: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Kan ikke hente et tema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox syntaksfejl" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Kunne ikke starte nyt program ved genstart: \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntaks: openbox [argumenter]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Tilvalg:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Vis denne hjælpetekst og afslut\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Vis versionsnummeret og afslut\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Erstat den kørende vinduesbehandler\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FIL Specificer stien til konfigurationsfilen du vil " "benytte\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Deaktiver forbindelsen til sessionsbehandleren\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Sender beskeder til en kørende Openbox-instans:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Opdater Openbox' konfiguration\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Genstart Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Afslut Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Fejlsøgningsmuligheder:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Kør i synkron-modus\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Vis fejlsøgningsinformation\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Vis fejlsøgningsinformation for fokus-håndtering\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Vis fejlsøgningsinformation for session-håndtering\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Split displayet for \"falske\" xinerama-skærme\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Rapporter venligst fejl til %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s kræver et argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Ugyldig kommandolinie-argument \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "En vindusbehandler kører allerede på skærm %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Kunne ikke hente vindusbehandlerens markering på skærm %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Vinduesbehandleren på skærm %d vil ikke afslutte" # TODO Figure out how to handle this case, the second number has the "desktop" # on it here, but gettext looks at the first number only. If we split it up in # two strings then we can't swap the order from the .po file... #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Aktiv session har %2$d skriveborde, mens Openbox er konfigureret til %1$d. " "Benytter indstillingerne for den aktive session." msgstr[1] "" "Aktiv session har %2$d skriveborde, mens Openbox er konfigureret til %1$d. " "Benytter indstillingerne for den aktive session." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "skrivebord %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Kører %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Ugyldig modifikationstast \"%s\" i kombination for tast/mus" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Ugyldig tastekode \"%s\" i tastekombination" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Ugyldig tastenavn \"%s\" i tastekombination" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Ønsket tast \"%s\" eksisterer ikke i displayet" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ��������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/de.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031644�12544731073�011477� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# German messages for openbox. # Copyright (C) 2007 Mikael Magnusson # This file is distributed under the same license as the openbox package. # Sebastian Vahl <svahl@web.de>, 2006. # Simon A. Wilper <simonaw@openoffice.org>, Apr 2007 # Peter Schwindt <schwindt@ba-loerrach.de> # Finn Zirngibl <finn@s23.org>, 2008 # Florian Walch <florian.walch@gmx.at>, 2008 # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2012-09-18 21:51+0100\n" "Last-Translator: Volker Ribbert <volker.nospam@netcologne.de>\n" "Language-Team: <de@li.org>\n" "Language: de\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Ungültige Aktion \"%s\" angefordert. Es gibt keine solche." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nein" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Ja" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Ausführen" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Konnte Pfad \"%s\" nicht von UTF-8 konvertieren" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Abbrechen" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Beenden" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Möchten Sie sich wirklich abmelden?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Abmelden" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Möchten Sie Openbox wirklich beenden?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Openbox beenden" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Unbenanntes Fenster" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Wird gelöscht..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Reagiert nicht" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Das Fenster \"%s\" reagiert anscheinend nicht. Möchten Sie es durch Senden " "des %s-Signals trotzdem beenden?" #: openbox/client.c:3660 msgid "End Process" msgstr "Prozess beenden" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Das Fenster \"%s\" reagiert anscheinend nicht. Möchten Sie es vom X-Server " "trennen?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Trennen" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Dorthin wechseln..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Desktops verwalten" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Neuen Desktop hinzufügen" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Letzten Desktop entfernen" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Fenster" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Desktops" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Alle Desktops" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Layer" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Immer im _Vordergrund" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Immer im _Hintergrund" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Verschieben nach" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Anwendungsmenü" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Wi_ederherstellen" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Vers_chieben" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "_Größe ändern" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimieren" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximieren" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Auf/Ab_rollen" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "_Titelleiste ein/aus" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Schließen" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Maus-Einbindung mit ungültigem Kontext \"%s\"" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Ungültige Taste \"%s\" in Konfigurationsdatei" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Schließen" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Störende Tastenkombination in Konfigurationsdatei" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Keine gültige Menü-Datei \"%s\" vorhanden" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Befehl \"%s\" für Pipe-Menü nicht ausführbar: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Ungültige Ausgabe vom Pipe-Menü \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Versuchter Zugriff auf Menü \"%s\", doch es existiert nicht" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Mehr..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Maus-Einbindung mit ungültiger Taste \"%s\"" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Wechsel ins Nutzerverzeichnis \"%s\" nicht möglich: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Konnte das Display aus der Umgebungsvariable DISPLAY nicht öffnen." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Konnte die Bibliothek 'obrender' nicht initialisieren." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "'locale' wird vom X-Server nicht unterstützt." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Kann die Lokalisierungsmodifizierer für den X-Server nicht setzen." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Keine gültige Konfigurationsdatei vorhanden, benutze einfache Standardwerte" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Beim Parsen der Openbox-Konfigurationsdateien wurden ein oder mehrere XML-" "Syntaxfehler gefunden. Die Standardausgabe enthält weitere Informationen. " "Der letzte Fehler wurde in der Datei \"%s\" in Zeile %d festgestellt: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Kann kein Thema laden." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox Syntax-Fehler" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Neustart konnte die neue Datei \"%s\" nicht ausführen: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Eingabe: openbox [Optionen]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Optionen:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Diese Hilfe anzeigen und beenden\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Version anzeigen und beenden\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Den aktuell laufenden Fenstermanager ersetzen\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file DATEI Pfad zur Konfigurationsdatei\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Verbindung zum Sitzungsmanager trennen\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Nachrichten an eine laufende Openbox-Instanz weiterleiten:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Openbox' Konfiguration neu laden\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Openbox neu starten\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Openbox beenden\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Fehlersuche-Optionen:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync im Synchronmodus starten\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Fehlersuche-Ergebnis anzeigen\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Fehlersuche-Ergebnis für Fokus-Handling anzeigen\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Anzeige in imitierte Xinerama-Bildschirme teilen\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Fehlerberichte bitte an: %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s erfordert einen Parameter\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Ungültiger Kommandozeilen-Parameter \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Ein Fenstermanager läuft bereits auf Bildschirm %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Auswahl des Fenstermanagers auf Bildschirm %d nicht verfügbar" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Der Fenstermanager auf Bildschirm %d schließt nicht" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox wurde für %d Desktop konfiguriert, aber die aktuelle Sitzung hat %d. " "Überschreibe die Openbox-Konfiguration." msgstr[1] "" "Openbox wurde für %d Desktops konfiguriert, aber die aktuelle Sitzung hat " "%d. Überschreibe die Openbox-Konfiguration." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "Desktop %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Starte %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Ungültige Modifier-Taste \"%s\" in Tasten/Maus-Einbindung" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Ungültiger Tastencode \"%s\" in Tastenkombination" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Ungültiger Tastenname \"%s\" in Tastenkombination" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Gewünschte Taste \"%s\" existiert nicht auf dem Display" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ��������������������������������������������������������������������������������������������openbox-3.6.1/po/en@quot.po�������������������������������������������������������������������������0000644�0001753�0000144�00000033411�12544731073�012514� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# English translations for openbox package. # Copyright (C) 2015 Dana Jansens # This file is distributed under the same license as the openbox package. # Automatically generated, 2015. # # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # msgid "" msgstr "" "Project-Id-Version: openbox 3.6.1\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2015-07-01 11:26+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Invalid action “%s” requested. No such action exists." #: openbox/actions/execute.c:245 msgid "No" msgstr "No" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Yes" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Execute" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Failed to convert the path “%s” from utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Cancel" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Exit" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Are you sure you want to log out?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Log Out" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Are you sure you want to exit Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Exit Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Unnamed Window" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Killing..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Not Responding" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "The window “%s” does not seem to be responding. Do you want to force it to " "exit by sending the %s signal?" #: openbox/client.c:3660 msgid "End Process" msgstr "End Process" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "The window “%s” does not seem to be responding. Do you want to disconnect " "it from the X server?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Disconnect" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Go there..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Manage desktops" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Add new desktop" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Remove last desktop" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Windows" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Desktops" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "All desktops" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Layer" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Always on _top" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Always on _bottom" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Send to desktop" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Client menu" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "R_estore" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Move" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Resi_ze" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Ico_nify" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximize" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Roll up/down" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Un/_Decorate" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Close" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Invalid context “%s” in mouse binding" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Invalid button “%s” specified in config file" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Unable to make directory '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Close" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflict with key binding in config file" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Unable to find a valid menu file “%s”" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Failed to execute command for pipe-menu “%s”: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Invalid output from pipe-menu “%s”" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Attempted to access menu “%s” but it does not exist" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "More..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Invalid button “%s” in mouse binding" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Unable to change to home directory “%s”: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Failed to open the display from the DISPLAY environment variable." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Failed to initialize the obrender library." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X server does not support locale." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Cannot set locale modifiers for the X server." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "Unable to find a valid config file, using some simple defaults" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file “%s” line %d, with message: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Unable to load a theme." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox Syntax Error" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Restart failed to execute new executable “%s”: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntax: openbox [options]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Options:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Display this help and exit\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Display the version and exit\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Replace the currently running window manager\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE Specify the path to the config file to use\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Disable connection to the session manager\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Passing messages to a running Openbox instance:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Reload Openbox's configuration\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Restart Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Exit Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Debugging options:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Run in synchronous mode\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr " --startup CMD Run CMD after starting\n" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Display debugging output\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Display debugging output for focus handling\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Display debugging output for session management\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Split the display into fake xinerama screens\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Please report bugs at %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s requires an argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Invalid command line argument “%s”\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "A window manager is already running on screen %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Could not acquire window manager selection on screen %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "The WM on screen %d is not exiting" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgstr[1] "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "desktop %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Running %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Invalid modifier key “%s” in key/mouse binding" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Invalid key code “%s” in key binding" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Invalid key name “%s” in key binding" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Requested key “%s” does not exist on the display" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/en@boldquot.po���������������������������������������������������������������������0000644�0001753�0000144�00000034047�12544731073�013363� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# English translations for openbox package. # Copyright (C) 2015 Dana Jansens # This file is distributed under the same license as the openbox package. # Automatically generated, 2015. # # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # msgid "" msgstr "" "Project-Id-Version: openbox 3.6.1\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2015-07-01 11:26+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Invalid action “%s” requested. No such action exists." #: openbox/actions/execute.c:245 msgid "No" msgstr "No" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Yes" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Execute" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Failed to convert the path “%s” from utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Cancel" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Exit" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Are you sure you want to log out?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Log Out" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Are you sure you want to exit Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Exit Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Unnamed Window" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Killing..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Not Responding" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "The window “%s” does not seem to be responding. Do you want to force " "it to exit by sending the %s signal?" #: openbox/client.c:3660 msgid "End Process" msgstr "End Process" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "The window “%s” does not seem to be responding. Do you want to " "disconnect it from the X server?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Disconnect" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Go there..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Manage desktops" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Add new desktop" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Remove last desktop" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Windows" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Desktops" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "All desktops" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Layer" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Always on _top" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Always on _bottom" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Send to desktop" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Client menu" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "R_estore" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Move" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Resi_ze" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Ico_nify" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximize" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Roll up/down" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Un/_Decorate" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Close" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Invalid context “%s” in mouse binding" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Invalid button “%s” specified in config file" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Unable to make directory '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Close" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflict with key binding in config file" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Unable to find a valid menu file “%s”" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Failed to execute command for pipe-menu “%s”: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Invalid output from pipe-menu “%s”" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Attempted to access menu “%s” but it does not exist" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "More..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Invalid button “%s” in mouse binding" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Unable to change to home directory “%s”: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Failed to open the display from the DISPLAY environment variable." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Failed to initialize the obrender library." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X server does not support locale." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Cannot set locale modifiers for the X server." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "Unable to find a valid config file, using some simple defaults" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file “%s” line %d, with message: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Unable to load a theme." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox Syntax Error" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Restart failed to execute new executable “%s”: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntax: openbox [options]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Options:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Display this help and exit\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Display the version and exit\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Replace the currently running window manager\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE Specify the path to the config file to use\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Disable connection to the session manager\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Passing messages to a running Openbox instance:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Reload Openbox's configuration\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Restart Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Exit Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Debugging options:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Run in synchronous mode\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr " --startup CMD Run CMD after starting\n" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Display debugging output\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Display debugging output for focus handling\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Display debugging output for session management\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Split the display into fake xinerama screens\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Please report bugs at %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s requires an argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Invalid command line argument “%s”\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "A window manager is already running on screen %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Could not acquire window manager selection on screen %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "The WM on screen %d is not exiting" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgstr[1] "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "desktop %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Running %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Invalid modifier key “%s” in key/mouse binding" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Invalid key code “%s” in key binding" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Invalid key name “%s” in key binding" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Requested key “%s” does not exist on the display" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/es.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032341�12544731073�011511� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Spanish messages for openbox. # Copyright (C) 2005 Mikael Magnusson # This file is distributed under the same license as the openbox package. # Miguel Calleja Gómez <mcg79@lycos.es>, 2005. # Gustavo Varela <gustavo.varela [en] gmail [punto] com>, 2007 # David Merino <rastiazul at yahoo . com>, 2007. # Elián Hanisch <lambdae2@gmail.com>, 2008. # Nicolás de la Torre <ndelatorre@gmail.com>, 2008. # Gerardo Seguin (aka galux) >galux at esdebian dot org>, 2010. msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-05-04 16:39-0300\n" "Last-Translator: Nicolás de la Torre <ndelatorre@gmail.com>\n" "Language-Team: español <es@li.org>\n" "Language: es\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "La acción \"%s\" solicitada es inválida. No existe tal acción." #: openbox/actions/execute.c:245 msgid "No" msgstr "No" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Sí" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Ejecutar" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "No se pudo convertir la ruta \"%s\" desde utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Cancelar" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Salir" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "¿Está seguro que desea salir?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Salir" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "¿Está seguro que desea salir de Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Salir de Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Ventana sin nombre" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Terminando..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "No está respondiendo" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "La ventana \"%s\" parce que no responde. ¿Desea forzar el cierre enviándole " "la señal %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Finalizar proceso" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "La ventana \"%s\" no parece estar respondiendo. ¿Desea desconectarla del " "servidor X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Desconectar" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Ir ahí..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Administrar escritorios" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Añadir un nuevo escritorio" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Quitar el último escritorio" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Ventanas" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Escritorios" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Todos los escritorios" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Capa" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Siempre _encima" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Siempre _debajo" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Enviar al escritorio" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menú del cliente" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Rest_aurar" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Mover" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Redimen_sionar" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimizar" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximizar" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "En/Desen_rollar" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "_Decorar" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Cerrar" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Contexto inválido \"%s\" asociado al ratón" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Botón inválido \"%s\" especificado en el archivo de configuración" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Cerrar" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflicto con la combinación de teclas en el archivo de configuración" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "No es posible encontrar un archivo de menú \"%s\" válido" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "No se pudo ejecutar el comando para el pipe-menu \"%s\": \"%s\"" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Salida inválida del pipe-menu \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Se intentó acceder al menú \"%s\" pero éste no existe" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Más..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Botón inválido \"%s\" asociado al ratón" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "No es posible cambiar al directorio home \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "No se pudo abrir la pantalla desde la variable de entorno DISPLAY" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Falló la inicialización de la librería obrender" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "El servidor X no soporta localizaciones." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "" "No se puede establecer los modificadores de localización para el servidor X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "No es posible encontrar un archivo de configuración válido, usando algunos " "valores por defecto" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Uno o más errores de sintaxis XML fueron encontrados leyendo los archivos de " "configuración de Openbox. Ver salida (stdout) para mas información. El " "último error viste estaba en el archivo \"%s\" linea %d, con el mensaje: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "No es posible cargar el tema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Error de Sintaxis de Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "El reinicio impidió iniciar el nuevo ejecutable \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaxis: openbox [opciones]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opciones:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Muestra esta ayuda y sale\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Muestra la versión y sale\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" " --replace Remplaza el gestor de ventanas actual actualmente\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file ARCHIVO\n" " Especifique la ruta del archivo de configuración a " "usar\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr "" " --sm-disable Deshabilita la conexión con el gestor de sesión\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "enviando mensajes a la instancia que se está ejecutando de Openbox:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Recargar la configuración de Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Reiniciar Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Salir de Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opciones de depuración:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Ejecutar en modo sincrónico\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Mostrar salida del depurador\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Mostrar salida del depurador para el manejo del foco\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Separar la visualización en pantallas de xinerama " "falsas\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Por favor, enviar los errores a %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s requiere un argumento\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Argumento de la línea de comando inválido \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Un gestor de ventanas ya se está ejecutando en la pantalla %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "No se pudo obtener la selección del gestor de ventanas en pantalla %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "El WM en la pantalla %d no se está cerrando" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox está configurado para escritorio %d, pero la sesión actual usa %d. " "Invalidando la configuración de Openbox." msgstr[1] "" "Openbox está configurado para escritorios %d, pero la sesión actual usa %d. " "Invalidando la configuración de Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "Escritorio %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Ejecutando %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "" "El modificador de la tecla \"%s\" es inválido para combinaciones de teclas o " "ratón" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "El código de tecla \"%s\" es inválido" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "El nombre de tecla \"%s\" es inválido" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "La tecla solicitada \"%s\" no existe en la pantalla" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/et.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031103�12544731073�011505� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Openboxi eesti keele tõlge # translation of openbox to Estonian # Copyright (C) 2007 Dana Jansens # This file is distributed under the same license as the Openbox 3 package. # # Andres Järv <andresjarv@gmail.com>, 2007. # Mihkel <turakas gmail com>, 2010 msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.11.1\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2010-04-21 21:40+0300\n" "Last-Translator: mihkel <turakas@gmail.com>\n" "Language-Team: Estonian <et@li.org>\n" "Language: et\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Taotleti kehtetut käsklust \"%s\". Sellist käsklust pole olemas." #: openbox/actions/execute.c:245 msgid "No" msgstr "Ei" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Jah" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Käivita" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Raja \"%s\" ümberkodeerimine UTF8-st ebaõnnestus" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Katkesta" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Välju" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Kas oled kindel, et soovid välja logida?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Logi välja" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Kas oled kindel, et soovid OpenBoxist väljuda?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Välju Openbox-st" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Nimetu aken" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Tapan..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Ei vasta" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Paistab, et aken \"%s\" ei vasta enam. Kas soovid teda jõuga väljuma sundida " "saates %s signaali?" #: openbox/client.c:3660 msgid "End Process" msgstr "Lõpeta protsess" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Paistab, et aken \"%s\" ei vasta enam. Kas soovid ta X serverist lahti " "ühendada?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Ühenda lahti" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Mine sinna..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Halda töölaudu" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Lisa uus töölaud" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Eemalda viimane töölaud" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Aknad" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Töölauad" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Kõik töölauad" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Kiht" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Aken teiste _peal" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normaalne" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Aken teiste _all" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Saada töölauale" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Kliendi menüü" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Taasta" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Liiguta" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Muuda _suurust" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Muuda _ikooniks" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ksimeeri" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Rulli üles/alla" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Äär_ed sisse/välja" #: openbox/client_menu.c:418 msgid "_Close" msgstr "S_ulge" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Vigane kontekst \"%s\" hiire kiirklahvides" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Vigane nupp \"%s\" määratud seadistuste failis" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Kausta '%s' tegemine ebaõnnestus: %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Sulge" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konflikt kiirklahviga seadistuste failis" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Ei suudetud leida kehtivat menüüfaili \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Ei suudetud käivitada torumenüü \"%s\" käsku: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Vigane väljund torumenüüst \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Üritati ligi pääseda menüüle \"%s\", aga seda pole olemas" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Rohkem..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Vigane nupp \"%s\" hiire kiirklahvides" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Ei suudetud siseneda kodukataloogi \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "DISPLAY keskkonnamuutujas oleva ekraani avamine ebaõnnestus." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Obrender-damise teegi käivitamine ebaõnnestus." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X server ei toeta lokaati." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Ei suudetud sättida lokaadimuutujaid X serveri jaoks." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Kehtiva seadistuste faili leidmine ebaõnnestus, kasutatakse lihtsaid " "vaikimisi seadeid" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Üks või enam XML süntaki viga leiti Openboxi seadistuse faili parsides. " "Rohkem infot leiad stdout-st. Viimane viga oli failis \"%s\", real %d ja " "sõnum oli: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Teema laadimine ebaõnnestus." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openboxi süntaksi viga" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Taaskäivitusel ebaõnnestus uue käivitusfaili \"%s\" käivitamine: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Autoriõigused (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Süntaks: openbox [seaded]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Seaded:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Selle abi kuvamine ja väljumine\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Versiooni kuvamine ja väljumine\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Hetkel töötava aknahalduri asendamine\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FAIL Määra kasutatava seadistuste faili teekond\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Seansihalduriga ühenduse keelamine\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Jooksvale Openboxi seansile sõnumite edastamine:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Openboxi konfiguratsioon uuesti laadimine\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Openboxi taaskäivitamine\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Välju Openbox-st\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Silumise seaded:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Sünkroonselt jooksutamine\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Silumisväljundi kuvamine\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Fookusekäsitluse siluriväljundi kuvamine\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Ekraani võlts-Xinerama ekraanideks jagamine\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Palun teata vigadest siia %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s nõuab argumenti\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Vigane käsurea argument \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Ekraanil %d juba jookseb aknahaldur" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Ei suuda hankida aknahaldurite loetelu ekraanil %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Aknahaldur ekraanil %d ei sulgu" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox on seadistatud %d töölauale, aga aktiivsel seansil on %d. Tühistan " "Openboxi seadistuse." msgstr[1] "" "Openbox on seadistatud %d töölauale, aga aktiivsel seansil on %d. Tühistan " "Openboxi seadistuse." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "töölaud %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Jooksev %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Vigane muutujaklahv \"%s\" hiire/klaviatuuri kiirklahvides" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Vigane klahvikood \"%s\" kiirklahvil" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Vigane klahvinimi \"%s\" kiirklahvil" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Soovitud klahvi \"%s\" ei ole sellel ekraanil" #: openbox/prompt.c:154 msgid "OK" msgstr "Sobib" �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/eu.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031531�12544731073�011513� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Basque translation for openbox. # Copyright (C) 2008 Inko Illarramendi Arancibia # This file is distributed under the same license as the openbox package. # Inko Illarramendi Arancibia <inkoia@gmail.com>, 2008. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-10-22 18:06+0100\n" "Last-Translator: Inko I. A. <inkoia@gmail.com>\n" "Language-Team: Inko I. A. <inkoia@gmail.com>\n" "Language: eu\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 ? 0 : 1;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Eskatutako \"%s\" ekintza baliogabea. Ez da ekintza hori existitzen." #: openbox/actions/execute.c:245 msgid "No" msgstr "Ez" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Bai" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Exekutatu" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Hutsegitea \"%s\" helbidea utf8-tik bihurtzean" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Ezeztatu" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Irten" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Ziur al zaude saioa itxi nahi duzula?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Saioa Itxi" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Ziur al zaude Openbox-etik irten nahi duzula?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Openbox-etik Irten" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Izenik gabeko leihoa" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Akabatzen..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Erantzunik Ez" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Badirudi \"%s\" leihoak ez duela erantzuten. Nahi al duzu istea behartu %s " "seinalea bidaliz?" #: openbox/client.c:3660 msgid "End Process" msgstr "Prozesua Amaitu" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Badirudi \"%s\" leihoak ez duela erantzuten. Nahi al duzu leihoa X " "zerbitzaritik deskonektatu?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Deskonektatu" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Hona joan..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Idazmahaiak kudeatu" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Idazmahai berria _gehitu" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "Azken idazmahaia _ezabatu" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Leihoak" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Idazmahaiak" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Idazmahai guztiak" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Geruza" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Beti _gainean" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Ohikoa" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Beti _azpian" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Bidali idazmahaira" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Bezero menua" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Berr_ezarri" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Mugitu" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "_Tamaina aldatu" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Iko_notu" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximizatu" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Bildu/_Zabaldu" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Des/_Dekoratu" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Itxi" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Baliogabeko \"%s\" testuingurua sagu elkarketan" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Konfigurazio fitxategian zehaztutako \"%s\" botoia baliogabea" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Ezin da '%s' direktorioa sortu: %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Itxi" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Gatazka konfigurazio fitxategiko tekla elkarketarekin" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Ezin da \"%s\" baliozko menu fitxategi bat aurkitu" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Hutsegitea \"%s\" pipe-menuarentzat komandoa exekutatzean: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Baliogabeko irteera \"%s\" pipe-menutik" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "\"%s\" menua atzitzen saiatu da baina ez da existitzen" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Gehiago..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Baliogabeko \"%s\" botoia sagu elkarketan" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Ezin da \"%s\" hasiera direktoriora aldatu: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Hutsegitea pantaila irekitzean DISPLAY ingurune aldagaitik." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Hutsegitea obrender liburutegia hasieratzean." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X zerbitzariak ez du locale euskarririk." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Ezin da locale modifikatzailerik ezarri X zerbitzariarentzat." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Ezin da baliozko konfigurazio fitxategirik aurkitu, hainbat aukera lehenetsi " "sinple erabiltzen" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "XML sintaxi errore bat edo gehiago aurkitu dira Openbox konfigurazio " "fitxategiak interpretatzerakoan. Ikusi stdout informazio gehiago jasotzeko. " "Azken errorea \"%s\" fitxategian %d lerroan izan da, mezu honekin: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Ezin da gai bat kargatu." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox sintaxi errorea" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Berrabiarazteak hutsegitea \"%s\" exekutagarri berria exekutatzean: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaxia: openbox [aukerak]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Aukerak:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Mezu hau erakutsi eta irten\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Bertsioa bistarazi eta irten\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" " --replace Ordezkatu exekutatzen ari den leiho-kudeatzailea\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" "--config-file FILE Zehaztu erabiltzeko konfigurazio fitxategirako bidea\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Ezgaitu saio kudeatzailearekiko konexioa\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Exekutatzen ari den Openbox instantzia bati mezuak pasatzen:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Birkargatu Openbox-en konfigurazioa\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Berrabiarazi Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Itxi Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Arazketa aukerak:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Modu sinkronoan exekutatu\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Arazketa irteera erakutsi\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Erakutsi arazketa irteera foku maneiurako\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Zatitu pantaila xinerama pantaila faltsuetan\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "%s helbidean erroreen berri eman mesedez\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s argumentu bat behar du\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "\"%s\" komando lerro argumentu baliogabea\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "" "Bistaratzeko %d pantailan aurretik leiho-kudeatzaile bat exekutatzen ari da" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "" "Ezin izan da eskuratu leiho-kudeatzailearen hautapena bistaratzeko %d " "pantailan" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "%d bistaratze pantailako leiho-kudeatzailea ez da irteten" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox %d idazmahaientzat konfiguratua dago, baina uneko saioak %d dauzka. " "Openbox konfigurazioa gainjartzen." msgstr[1] "" "Openbox %d idazmahaientzat konfiguratua dago, baina uneko saioak %d dauzka. " "Openbox konfigurazioa gainjartzen." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "%i Idazmahaia" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Egikaritzen %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr " tekla/sagu elkarketan \"%s\" modifikatzaile tekla baliogabea" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr " tekla elkarketan \"%s\" tekla kode baliogabea" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr " tekla elkarketan \"%s\" tekla izen baliogabea" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Eskatutako \"%s\" tekla ez da pantaila existitzen" #: openbox/prompt.c:154 msgid "OK" msgstr "Ados" �����������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/gl_ES.po���������������������������������������������������������������������������0000644�0001753�0000144�00000032137�12544731073�012076� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Galician messages for openbox # Copyright (C) 2013 Dana Jansens # This file is distributed under the same license as the openbox package. # Javier Mancebo <palleiros@yahoo.es>, 2013. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.5.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2013-10-29 18:52+0100\n" "Last-Translator: Javier Mancebo <palleiros@yahoo.es>\n" "Language-Team: Galician\n" "Language: gl_ES\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Acción non válida \"%s\" solicitada. A acción non existe." #: openbox/actions/execute.c:245 msgid "No" msgstr "Non" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Si" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Executar" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Erro convertendo a ruta \"%s\" dende utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Cancelar" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Saír" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Estas seguro de querer saír da sesión?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Saír da sesión" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Estas seguro de querer saír de Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Saír do Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Fiestra sen nome" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Abortando..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Sen resposta" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "A fiestra \"%s\" non semella estar a respostar. Queres forzala a saír " "enviándolle un sinal %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Proceso de finalización" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "A fiestra \"%s\" non semella estar a respostar. Queres desconectala do " "Servidor X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Desconectar" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Ir ali..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Xestionar escritorios" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Engadir _novo escritorio" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Eliminar último escritorio" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Fiestras" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Escritorios" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Tódolos escritorios" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Capa" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Sempre en_riba" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Sempre em_baixo" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Enviar ó escritorio" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menú do cliente" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Re_staurar" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Mover" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "_Redimensionar" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Ico_nificar" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximizar" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Enrolar cara abaixo" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Eliminar _decoración" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Pechar" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Contexto non válido \"%s\" en atallo de rato" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Botón \"%s\" non válido especificado en arquivo de configuración" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Imposible crea-lo directorio \"%s\": %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Pechar" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflito con atallo de teclado en arquivo de configuración" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Imposible atopar un arquivo válido de menú \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Erro ó executa-lo comando para \"pipe-menu\" \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Saída non válida para \"pipe-menu\" \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Tento de acceder a menú \"%s\" mais non existe" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Máis..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Botón no válido \"%s\" en atallo de rato" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Imposible cambiar a directorio persoal \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Erro abrindo \"display\" dende a variable de entorno DISPLAY" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Erro iniciando a biblioteca obrender" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "O Servidor X non soporta a locale." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Non se poden fixar modificadores de locale para o servidor X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Imposible atopar un arquivo válido de configuración, usando un por defecto." #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Un ou mais erros de sintaxe XML foron atopados mentras se analizaban os " "arquivos de configuración de Openbox. Olla stdout para máis información. O " "último erro visto foi no arquivo \"%s\" liña %d, coa mensaxe: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Imposible cargar un Tema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Erro de sintaxe de Openbox." #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Reinicio fallou ó executar novo executable \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaxe: openbox [opcións]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opcións:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Amosa esta axuda e sae\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Amosa a versión e sae\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Reempraza o xestor de fiestras que está activo\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FILE Especifica a ruta ó arquivo de configuración en uso\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Inhabilita conexión ó xestor de sesión\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Pasar mensaxes a unha instancia de Openbox correndo:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Recarga-la configuración de Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Reiniciar Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Saír de Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opcións de depuración:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Executar en modo síncrono\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Amosa-la saída de depuración\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Amosa-la saída de depuración manualmente\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Divide a presentación en varias falsas pantallas " "xinerama\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Faga o favor de notificar bugs a %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s require un argumento\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Argumento de liña de comandos \"%s\" non válido\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Un xestor de fiestras está xa correndo na pantalla %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Non se pode adquirir selección de xestor de fiestras na pantalla %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "O WM na pantalla %d non está a sair." #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" msgstr[1] "" #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "escritorio %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Executando %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Tecla modificadora \"%s\" non válida en atallo de teclado/rato" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Chave \"%s\" inválida en atallo de teclado" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Nome de tecla \"%s\" non válido en atallo de teclado" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "A tecla \"%s\" solicitada non existe na visualización" #: openbox/prompt.c:154 msgid "OK" msgstr "Feito" #~ msgid "" #~ "The SessionLogout action is not available since Openbox was built without " #~ "session management support" #~ msgstr "" #~ "A acción de Abandono de Sesión non está dispoñible xa que Openbox foi " #~ "construido sen soporte para o manexo de sesión" #~ msgid "Unable to save the session to \"%s\": %s" #~ msgstr "Imposible garda-la sesión a \"%s\": %s" #~ msgid "Error while saving the session to \"%s\": %s" #~ msgstr "Erro mentras se gardaba a sesión a \"%s\": %s" #~ msgid "Not connected to a session manager" #~ msgstr "Non conectado a un xestor de sesións" #~ msgid "X Error: %s" #~ msgstr "Erro de X: %s" ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/fi.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031514�12544731073�011501� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Openbox Finnish translation. # Copyright (C) 2007 Mikael Magnusson # This file is distributed under the same license as the openbox package. # Pauli Virtanen <pauli.virtanen@hut.fi>, 2005. # Lauri Hakko <aperculum@gmail.com>, 2008. # Elias Julkunen <elias.julkunen@gmail.com>, 2008. # Jarkko Piiroinen <jarkkop@iki.fi>, 2008. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.11\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2010-03-13 21:56+0100\n" "Last-Translator: Lauri Hakko <aperculum@gmail.com>\n" "Language-Team: None\n" "Language: fi\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Pyydettiin virheellinen toiminto \"%s\". Toimintoa ei ole olemassa." #: openbox/actions/execute.c:245 msgid "No" msgstr "Ei" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Kyllä" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Suorita" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Polun \"%s\" muuntaminen utf8:sta epäonnistui" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Peruuta" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Sulje" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Haluatko varmasti kirjautua ulos?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Kirjaudu ulos" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Haluatko varmasti sulkea Openboxin" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Sulje Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Nimetön ikkuna" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Tapetaan..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Ei vastaa" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Ikkuna \"%s\" ei näytä vastaavan. Haluatko sulkea sen lähettämällä sille " "singaalin %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Lopeta prosessi" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Ikkuna \"%s\" ei näytä vastaavan. Haluatko katkaista sen yhteyden X-" "palvelimeen?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Katkaise yhteys" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Näytä tämä..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Työtilojen hallinta" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Lisää uusi työtila" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Poista viimeisin työtila" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Ikkunat" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Työtilat" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Kaikkiin työtiloihin" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Kerros" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Aina _päällimmäisenä" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Tavallinen" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Aina _alimmaisena" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Lähetä työtilaan" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Ikkunan valikko" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Palauta" #: openbox/client_menu.c:398 msgid "_Move" msgstr "S_iirrä" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "_Muuta kokoa" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Pie_nennä" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Suurenn_a" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Rullaa _ylös/alas" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "(Epä)_reunusta" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Sulje" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Virheellinen asiayhteys \"%s\" hiirisidonnoissa" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Asetustiedostossa määritelty painike \"%s\" on virheellinen" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Hakemiston '%s' luonti epäonnistui: %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Sulje" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Päällekäisiä näppäinsidontoja asetustiedostossa" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Toimivaa valikkotiedostoa ei löytynyt \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Putkivalikon suorittaminen epäonnistui \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Virheellinen tulos putkivalikosta \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Valikon \"%s\" lukemista yritettiin, mutta sitä ei ole olemassa" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Lisää..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Virheellinen painike \"%s\" hiirisidonnoissa" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Kotihakemistoon \"%s\" vaihtaminen epäonnistui: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Näytön avaaminen DISPLAY-muuttujasta epäonnistui." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Obrender-kirjaston käynnistäminen epäonnistui." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X-palvelin ei tue maa-asetusta." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Maa-asetusmuuttujia ei voitu tehdä X-palvelimelle." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Kelvollista asetustiedostoa ei löytynyt, käytetään yksinkertaisia " "oletusarvoja" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Yksi tai useampi XML-syntaksivirhe löytyi asetustiedostoa käsiteltäessä. Lue " "stdout saadaksesi lisätietoja. Viimeisin virhe oli tiedostossa \"%s\" " "rivillä %d: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Teeman lataaminen epäonnistui." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox syntaksivirhe" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "" "Uudelleenkäynnistys ei onnistunut käynnistämään uutta ohjelmaa \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Tekijänoikeudet (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntaksi: openbox [valitsin]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Käyttö:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Näytä tämä ohje ja poistu\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Näytä version tiedot ja poistu\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Korvaa käynnissä oleva ikkunointiohjelma\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE Määritä käytettävän asetustiedoston polku\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Estä yhteys istuntojen hallintaan\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Komentojen antaminen käynnissä olevalle Openboxille:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Lataa Openboxin asetustiedosto uudelleen\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Käynnistä Openbox uudelleen\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Sulje Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Vianjäljityksen asetukset:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Aja synkronointi-tilassa\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Näytä vianjäljitystuloste\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Näytä vianjäljitystuloste ikkunavalitsimelle\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Jaa näyttö kahteen vale-xinerama-ruutuun\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Ilmoita virheistä: %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s tarvitsee argumentin\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Virheellinen valitsin \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Ikkunointiohjelma on jo käynnissä näytöllä %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Ikkunointiohjelman valinta ruudulla %d ei onnistunut" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Ikkunointiohjelma ruudulla %d ei sulkeudu" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox on asetettu käyttämään %d työtilaa, mutta nykyisessä istunnossa " "työtiloja on %d. Ohitetaan Openboxin asetus." msgstr[1] "" "Openbox on asetettu käyttämään %d työtilaa, mutta nykyisessä istunnossa " "työtiloja on %d. Ohitetaan Openboxin asetus." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "työtila %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Suoritetaan %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Virheellinen valintanäppäin \"%s\" näppäin- tai hiirisidonnoissa" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Virheellinen näppäinkoodi \"%s\" pikanäppäimissä" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Virheellinen näppäin \"%s\" pikanäppäimissä" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Pyydettyä näppäintä \"%s\" ei ole olemassa näytöllä" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/fr.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032541�12544731073�011513� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# French translation of Openbox. # Copyright (C) 2004 Mikael Magnusson # This file is distributed under the same license as the Openbox package. # # tioui <leonptitlouis@wanadoo.fr>, 2004. # Cyrille Bagard <nocbos@gmail.com>, 2007-2008. # Jacques BON <jbon@cafcom.net>, 2007. # ric Lassauge <lassauge@users.sf.net>, 2008 # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-03-02 02:06+0100\n" "Last-Translator: Cyrille Bagard <nocbos@gmail.com>\n" "Language-Team: franais <fr@li.org>\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Action demande invalide \"%s\". Une telle action n'existe pas." #: openbox/actions/execute.c:245 msgid "No" msgstr "Non" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Oui" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Excuter" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "chec de la conversion du chemin %s depuis l'UTF-8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Annuler" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Quitter" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "tes-vous certain de vouloir vous dconnecter ?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Dconnexion" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "tes-vous certain de vouloir quitter Openbox ?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Quitter Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Fentre sans nom" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Tue..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Ne rpond pas" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "La fentre \"%s\" semble ne pas rpondre. Voulez-vous la forcer se " "terminer en envoyant un signal %s ?" #: openbox/client.c:3660 msgid "End Process" msgstr "Fin de processus" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "La fentre \"%s\" semble ne pas rpondre. Voulez-vous la dconnecter du " "serveur X ?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Dconnexion" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Aller l..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Grer les bureaux" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Ajouter un bureau" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Supprimer le dernier bureau" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Fentres" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Bureaux" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Tous les bureaux" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Disposition" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "_Toujours au premier plan" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Toujours en _arrire plan" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "En_voyer vers le bureau" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menu de la fentre" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "R_estaurer" #: openbox/client_menu.c:398 msgid "_Move" msgstr "D_placer" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Red_imensionner" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Ico_nifier" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximiser" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "En/D_rouler" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Ne pas/D_corer" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Fermer" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Contexte %s invalide dans le paramtrage de la souris" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Bouton %s indiqu dans le fichier de configuration invalide" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Impossible de crer le rpertoire %s: %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Fermer" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflit entre les raccourcis clavier dans le fichier de configuration" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Impossible de trouver un fichier de menus valide %s" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "chec lors de l'excution de la commande pour un pipe-menu %s: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Sortie du pipe-menu invalide %s" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Tentative d'accs au menu %s qui n'existe pas" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Plus..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Bouton %s invalide dans le paramtrage de la souris" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Impossible de changer vers le rpertoire de l'utilisateur %s: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "" "chec de l'ouverture de l'affichage depuis la variable d'environnement " "DISPLAY." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "chec de l'initialisation de la bibliothque obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Le serveur X ne supporte pas la localisation." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "" "Impossible d'appliquer les modifications de localisation pour le serveur X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Impossible de trouver un fichier de configuration valide, utilisation de " "dfauts simples" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Une ou plusieurs erreurs de syntaxe XML ont t trouves lors de l'analyse " "des fichiers de configuration d'Openbox. Voir stdout pour plus " "d'information. La dernire erreur vue tait dans le fichier \"%s\", ligne " "%d, avec le message : %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Impossible de charger un thme." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Erreur de syntaxe Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "" "Le redmarrage n'a pas russi excuter le nouvel excutable %s: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntaxe: openbox [options]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Options:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Affiche cette aide et quitte\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Affiche la version et quitte\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" " --replace Remplace le gestionnaire de fentres actuellement en " "usage\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FILE Spcifie le chemin du fichier de configuration " "utiliser\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr "" " --sm-disable Dsactive la connexion au gestionnaire de sessions\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Passage de messages l'instance d'Openbox en cours:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Recharge la configuration d'Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Redmarre Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Sortir d'Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Options de dboguage:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Excute en mode synchrone\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Affiche la sortie de dboguage\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Affiche la sortie de dboguage pour la gestion du " "focus\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Affiche la sortie de dboguage pour la gestion du " "session\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Dcoupe l'affichage en crans xinerama factices\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Veuillez soumettre les rapports de bogues %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s requiert un argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Argument de la ligne de commande invalide %s\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Un gestionnaire de fentres est dj lanc sur l'cran %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "" "Impossible d'acqurir la slection du gestionnaire de fentres pour l'cran " "%d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "" "Le gestionnaire de fentres sur l'cran %d n'est pas en train de se terminer" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox est configur pour %d bureau, mais la session en a %d. Ceci " "supplante la configuration d'Openbox." msgstr[1] "" "Openbox est configur pour %d bureaux, mais la session en a %d. Ceci " "supplante la configuration d'Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "bureau %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Excution de %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "" "Touche de modification %s invalide dans le paramtrage du clavier / de " "la souris" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Code de touche %s invalide dans le raccourci clavier" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Nom de touche %s invalide dans le raccourci clavier" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "La touche demande %s n'existe pas pour l'affichage" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ���������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/he.po������������������������������������������������������������������������������0000644�0001753�0000144�00000030671�12544731073�011502� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Hebrew translation for openbox. # Copyright (C) 2002 Dana Jansens # Copyright (C) 2004 Mikael Magnusson # This file is distributed under the same license as the openbox package. # Isratine Citizen <genghiskhan@gmx.ca>, 2012. # Eli Zaretskii <eliz@gnu.org>, 2013. # msgid "" msgstr "" "Project-Id-Version: openbox git\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2013-01-01 20:23+0200\n" "Last-Translator: Eli Zaretskii <eliz@gnu.org>\n" "Language-Team: Rahut <genghiskhan@gmx.ca>\n" "Language: he\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" "X-Generator: Poedit 1.5.4\n" # אין פעולה כזו קיימת #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "התבקשה פעולה שגויה ‫\"%s\". פעולה שכזו לא קיימת." #: openbox/actions/execute.c:245 msgid "No" msgstr "לא" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "כן" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "הרצה" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "כשל בהמרת הנתיב ‫\"%s\" מן ‫utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "ביטול" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "יציאה" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "האם אכן ברצונך להתנתק?" # התנתקות #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "יציאה" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "האם אכן ברצונך לצאת מן ‫Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "יציאה מן ‫Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "חלון ללא שם" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "הורג כעת..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "לא מגיב" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "נראה שהחלון ‫\"%s\" לא מגיב. האם ברצונך לכפות אותו לצאת על ידי שליחת האות ‫%s?" #: openbox/client.c:3660 msgid "End Process" msgstr "סיום תהליך" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "נראה שהחלון ‫\"%s\" לא מגיב. האם ברצונך לנתקו מן השרת ‫X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "ניתוק" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "לך אל מרחב זה..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "ניהול שולחנות" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "הוסף מרחב חדש (_A)" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "הסר מרחב אחרון (_R)" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "חלונות" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "שולחנות עבודה" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "כל השולחנות" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "רובד (_L)" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "תמיד עליון (_T)" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "רגיל (_N)" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "תמיד תחתון (_B)" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "שלח אל מרחב (_S)" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "תפריט לקוח" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "שחזר (_E)" #: openbox/client_menu.c:398 msgid "_Move" msgstr "הזז (_M)" # מידה #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "שנה גודל (_Z)" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "מזער (_N)" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "הגדל (_X)" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "גלול מעלה/מטה (_R)" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "אי/עיטור (_D)" #: openbox/client_menu.c:418 msgid "_Close" msgstr "סגור (_C)" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "הקשר שגוי ‫\"%s\" בכריכת עכבר" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "לחצן שגוי ‫\"%s\" צוין בקובץ תצורה" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "‫Openbox הודר ללא תמיכת הטענת תמונות. צלמיות בתפריטים לא יוטענו." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "לא ניתן ליצור מדור ‫'%s': ‫%s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "סגור" # קליד #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "התנגשות עם כריכת מקש בקובץ תצורה" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "לא ניתן למצוא קובץ תפריט תקף ‫\"%s\"" # קנה #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "כשל בהרצת פקודה עבור תפריט-צינור ‫\"%s\": ‫%s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "פלט שגוי מן תפריט-צינור ‫\"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "מנסה לגשת אל תפריט ‫\"%s\" אך הוא לא קיים" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "עוד..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "לחצן שגוי ‫\"%s\" בכריכת עכבר" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "לא ניתן לשנות מדור בית ‫\"%s\": ‫%s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "כשל באתחול הספרייה ‫obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "שרת ‫X לא תומך מקומיות." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "לא ניתן להגדיר משתני מקומיות עבור השרת ‫X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "לא ניתן למצוא קובץ תצורה תקף, עושה שימוש כעת בהגדרות משתמטות פשוטות" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "שגיאות תחביר ‫XML אחת או יותר נמצאו בשעת ניתוח קובצי התצורה של Openbox. ראה ‫" "stdout עבור מידע נוסף. השגיאה האחרונה שנראתה הייתה בקובץ ‫\"%s\" שורה %d, עם " "הודעה: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "לא ניתן להטעין מוטיב." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "שגיאת תחביר ‫Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr "" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr "" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr "" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr "" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr "" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr "" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr "" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr "" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "מנהל החלונות שעל מרקע %d אינו קיים" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "‫Openbox הינו מוגדר עבור מרחב %d, אולם לסשן הנוכחי יש %d. עוקף כעת את התצורה " "של ‫Openbox." msgstr[1] "" "‫Openbox הינו מוגדר עבור %d מרחבים, אולם לסשן הנוכחי יש %d. עוקף כעת את " "התצורה של ‫Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "מרחב ‫%i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "מריץ כעת ‫%s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "משתני מקשים שגויים ‫\"%s\" בכריכת מקש/עכבר" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "קוד מקש שגוי ‫\"%s\" בכריכת מקש" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "שם מקש שגוי ‫\"%s\" בכריכת מקש" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "מקש מבוקש ‫\"%s\" לא קיים על הצג" #: openbox/prompt.c:154 msgid "OK" msgstr "אישור" �����������������������������������������������������������������������openbox-3.6.1/po/hr.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031540�12544731073�011513� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Croatian messages for openbox. # Copyright (C) 2009 Mikael Magnusson # This file is distributed under the same license as the openbox package. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2009-04-05 16:53+0200\n" "Last-Translator: boljsa <asjlob AT vip.hr>\n" "Language-Team: <asjlob AT vip.hr>\n" "Language: hr\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 ? 0 : 1;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Nevažeća akcija \"%s\" zatražena. Takva akcija ne postoji." #: openbox/actions/execute.c:245 msgid "No" msgstr "Ne" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Da" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Izvrši" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Neuspio pokušaj pretvorbe putanje \"%s\" iz utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Odustani" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Izađi" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Jeste li sigurni da se želite odjaviti?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Odjava" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Jeste li sigurni da želite zatvoriti Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Zatvori Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Neimenovan Prozor" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Ubijanje..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Ne Odgovara" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Prozor \"%s\" ne reagira. Želite li forsirati izlaženje šaljući %s signal?" #: openbox/client.c:3660 msgid "End Process" msgstr "Završetak Procesa" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Prozor \"%s\" ne reagira. Želite li prekinuti njegovu vezu sa X serverom?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Prekid veze" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Idi tamo..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Upravljanje radnim površinama" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Dodaj novu radnu površinu" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Ukloni zadnju radnu površinu" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Prozori" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Radne Površine" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Sve radne površine" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Sloj" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Uvijek na _vrhu" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normalno" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Uvijek na _dnu" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Pošalji na _radnu površinu" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Izbornik klijenta" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "O_bnovi" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Pomicanje" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Prom_jena veličine" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimizacija" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "M_aksimizacija" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Okretanje gore/dolje" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Ne/_Dekoriranje" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Zatvori" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Nevažeći kontekst \"%s\" u povezivanju miša" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Nevažeće dugme \"%s\" specificirano u konfiguracijskoj datoteci" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Ne mogu stvoriti direktorij '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Zatvori" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konflikt sa povezivanjem tipki u konfiguracijskoj datoteci" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Ne mogu pronaći važeću datoteku izbornika \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Neuspio pokušaj izvršavanja naredbe za cijev-izbornik \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Nevažeći izlaz za cijev-izbornik \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Pokušavam pristupiti izborniku \"%s\" ali on ne postoji" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Više..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Nevažeće dugme \"%s\" u povezivanju miša" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Ne mogu doći u home direktorij \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Neuspio pokušaj otvaranja zaslona iz DISPLAY varijable okruženja." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Neuspio pokušaj inicijalizacije obrender biblioteke." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X server ne podržava lokalno." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Ne mogu postaviti lokalne modifikatore za X server." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Ne mogu pronaći važeću konfiguracijsku datoteku, koriteći neke jednostavne " "standarde" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Jedna ili više XML pogreški u sintaksi su pronađene prilikom analize Openbox " "konfiguracijskih datoteka. Pogledajte stdout za više informacija. Zadnja " "pogreška je u datoteci \"%s\" u liniji %d, sa porukom: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Ne mogu pokrenuti temu." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox Pogreška u Sintaksi" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Restart je bio neusješan za izvršenje novog izvršnog \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaksa: openbox [opcije]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opcije:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Prikazuje ovu pomoć i izlazi\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Prikazuje verziju i izlazi\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" " --replace Zamjenjuje trenutno pokrenut upravitelj prozora\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FILE Specificira putanju do konfiguracijske datoteke koja " "se koristi\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Onemogućuje vezu sa upraviteljom sesija\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Prosljeđuje poruke pokrenutoj Openbox instanci:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Osvježava Openbox konfiguraciju\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Restartira Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Izlazi iz Openbox-a\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opcije traženja pogrešaka:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Pokretanje u sinkronizacijskom modu\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Prikazuje izlaz traženja pogrešaka\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Prikazuje izlaz traženja pogrešaka za rukovanje " "fokusom\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Prikazuje izlaz traženja pogrešaka za rukovanje " "sessionom\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Podijeli zaslon u lažne xinerama zaslone\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Molimo prijavite pogrešku na %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s zahtjeva argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Nevažeći argument komandne linije \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Upravitelj prozora je već pokrenut na zaslonu %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Ne mogu ostvariti odabir upravitelja prozora na zaslonu %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Upravitelj prozora na zaslonu %d ne izlazi" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox je konfiguriran za %d radnu površinu, ali trenutna sesija ima %d. " "Prepisujem preko Openbox konfiguracije." msgstr[1] "" "Openbox je konfiguriran za %d radnu površinu, ali trenutna sesija ima %d. " "Prepisujem preko Openbox konfiguracije." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "radna površina %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Pokrenuto %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Nevažeći modifikacijski ključ \"%s\" u povezivanju tipke/miš" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Nevažeći kod ključa \"%s\" u povezivanju tipki" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Nevažeće ime tipke \"%s\" u povezivanju tipki" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Traženi ključ \"%s\" ne postoji na zaslonu" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ����������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/hu.po������������������������������������������������������������������������������0000644�0001753�0000144�00000033012�12544731073�011512� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Hungarian translation of openbox. # Copyright (C) 2007-2011 Dana Jansens # This file is distributed under the same license as the openbox package. # Robert Kuszinger <hiding@freemail.hu>, 2007. # Laszlo Dvornik <rezuri@zoho.com>, 2010-2011. # msgid "" msgstr "" "Project-Id-Version: openbox\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2011-09-03 16:09+0200\n" "Last-Translator: Laszlo Dvornik <rezuri@zoho.com>\n" "Language-Team: Hungarian\n" "Language: hu\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Érvénytelen művelet \"%s\". Nem létezik ilyen művelet." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nem" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Igen" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Végrehajtás" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Az útvonalat nem sikerült átalakítani utf8-ból: \"%s\"" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Mégsem" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Kilépés" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Biztos ki akar jelentkezni?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Kijelentkezés" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Biztos ki akar lépni az Openboxból?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Kilépés az Openboxból" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Névtelen ablak" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Kilövés..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Nem válaszol" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "A(z) \"%s\" ablak nem válaszol. Erőltessük a kilépést a %s jelzés küldésével?" #: openbox/client.c:3660 msgid "End Process" msgstr "Folyamat vége" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "A(z) \"%s\" ablak nem válaszol. Lekapcsoljuk az X kiszolgálóról?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Lekapcsolódás" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Ugrás..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Munkaasztal-kezelés" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Új munk_aasztal" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "Utolsó munkaasztal _eltávolítása" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Ablakok" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Munkaasztalok" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Összes munkaasztal" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Réteg" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Mindig _felül" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normál" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Mindig _alul" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Munkaasztalra _küldés" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Kliens menü" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Visszaállítás" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Á_thelyezés" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Átmérete_zés" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Iko_nizálás" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximalizálás" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Görgetés fel/le" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "_Dekoráció eltávolítása" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Bezárás" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Érvénytelen környezet az egér hozzárendeléseknél: \"%s\"" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Érvénytelen gomb a konfigurációs fájlban \"%s\"" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" "Az Openbox képbetöltési támogatás nélkül lett fordítva. Az ikonok a menükben " "nem lesznek betöltve." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Nem lehet létrehozni a(z) \"%s\" könyvtárat: %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Bezárás" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Ütköző billentyű hozzárendelések a konfigurációs fájlban" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Nem található ilyen érvényes menüfájl: \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Nem sikerült végrehajtani a parancsot a csővezeték-menüben \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Érvénytelen kimenet a csővezeték-menüből \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "\"%s\" menü elérésére történt kísérlet, de az nem létezik" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Tovább..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Érvénytelen gomb \"%s\" az egér hozzárendeléseknél" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Nem lehet a saját könyvtárba váltani \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "" "Nem sikerült megnyitni a DISPLAY környezeti változóban beállított képernyőt." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Nem sikerült előkészíteni az obrender programkönyvtárat." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Az X-kiszolgáló nem támogatja ezt a nemzetközi beállítást." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "" "Nem lehet beállítani a nemzetközi beállítás-módosítókat az X-kiszolgálón." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Nem található érvényes konfigurációs fájl, ezért egyszerű alapértelmezés " "lesznek használva" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Egy vagy több XML szintaktikai hiba található az Openbox konfigurációs fájl " "feldolgozásakor. További információkért tekintse meg a szabványos kimenetet. " "Az utolsó hiba ebben a fájlban volt: \"%s\" (%d sor). A hibaüzenet: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Nem lehet betölteni témát." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox szintaktikai hiba" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Az újraindítás során ez az új program nem volt indítható \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Használat: openbox [opciók]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opciók:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Súgó megjelenítése és kilépés\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Verzió kiírása és kilépés\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Jelenleg futó ablakkezelő cseréje\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FÁJL A használandó konfigurációs fájl útvonalának megadása\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Ne csatlakozzon a munkamenet-kezelőhöz\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Üzenet küldése a futó Openbox példánynak:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Openbox beállításának újratöltése\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Openbox újraindítása\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Kilépés az Openboxból\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Hibakeresési opciók:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Futtatás szinkron módban\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr " --startup PARANCS PARANCS futtatása indulás után\n" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Hibakeresési kimenet megjelenítése\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Fókuszkezelésre vonatkozó hibakeresési kimenetek " "megjelenítése\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Munkamenet-kezelésre vonatkozó hibakeresési kimenetek " "megjelenítése\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Képernyő felosztása két ál-xinerama képernyőre\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Kérjük a hibákat itt jelentse: %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s kapcsolónak szüksége van egy argumentumra\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Érvénytelen parancssori argumentum: \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Már fut egy ablakkezelő ezen a képernyőn: %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Nem lehet ablakkezelőt váltani ezen a képernyőn: %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Nem lép ki az ablakkezelő ezen a képernyőn: %d" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Az Openbox %d munkaasztal használatára lett beállítva, de a jelenlegi " "munkamenetnek %d van. Felülbíráljuk az Openbox beállítását." msgstr[1] "" "Az Openbox %d munkaasztal használatára lett beállítva, de a jelenlegi " "munkamenetnek %d van. Felülbíráljuk az Openbox beállítását." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "%i. munkaasztal" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "%s futtatása" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "" "Érvénytelen módosító billentyű \"%s\" billentyű vagy egér hozzárendelésnél" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Érvénytelen billentyűkód \"%s\" billentyű hozzárendelésnél" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Érvénytelen billentyűnév \"%s\" billentyű hozzárendelésnél" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "A kért billentyű \"%s\" nem létezik a képernyőn" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ia.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032556�12544731073�011503� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Interlingua translations for openbox. # This file is distributed under the same license as the openbox package. # Nik Kalach <nikka@fedoraproject.org>, 2012. # msgid "" msgstr "" "Project-Id-Version: openbox 3.5\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2012-12-11 18:47+0400\n" "Last-Translator: Nik Kalach <nikka@fedoraproject.org>\n" "Language-Team: Interlingua (International Auxiliary Language Association) " "<trans-ia@lists.fedoraproject.org>\n" "Language: ia\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" "X-Generator: Gtranslator 2.91.5\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Le action requestate \"%s\" es invalide. Nulle tal action existe." #: openbox/actions/execute.c:245 msgid "No" msgstr "No" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Si" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Exequer" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Insuccesso al converter le percurso \"%s\" desde utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Annullar" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Sortir" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Es tu secur de voler clauder le session?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Clauder le session" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Es tu secur de voler sortir de Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Sortir de Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Fenestra sin nomine" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Termination..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Non es respondente" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Le fenestra \"%s\" non sembla esser respondente. Vole tu fortiar lo a sortir " "per inviar le signal %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Finir processo" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Le fenestra \"%s\" non sembla esser respondente. Vole tu disconnecter lo del " "servitor X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Disconnecter" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Ir a illac..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Administrar scriptorios" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Adder un nove scriptorio" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Eliminar le ultime scriptorio" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Fenestras" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Scriptorios" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Tote le scriptorios" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Strato" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Semper s_upra" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Semper in_fra" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Inviar al scriptorio" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menu de cliente" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "R_estituer" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Mover" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Re_dimensionar" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Ico_nificar" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximisar" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Rolar in alto/basso" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "_Decorar/Indecorar" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Clauder" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Contexto \"%s\" incorrecte in le parametros del mouse" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Button invalide \"%s\" es specificate in le file de configuration" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" "Openbox era compilate sin le bibliotheca pro cargar imagines. Icones in " "menus non sera cargate." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" "Impossibile de crear le directorio '%s'\n" ": %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Clauder" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflicto con le combination de claves in le file de configuration" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Impossibile de trovar un file de menu valide \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Insuccesso al exequer le commando pro le pipe-menu \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Output incorrecte del pipe-menu \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Tentativa de acceder al menu \"%s\" que non existe" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Plus..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Button \"%s\" incorrecte in le parametros del mouse" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Impossibile de ir al directorio personal \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Impossibile de aperir le schermo del variabile de ambiente DISPLAY." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Impossibile de initiar le bibliotheca obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Le servitor X non supporta le localisation." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "" "Impossibile de applicar le modificatores de localisation pro le servitor X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Impossibile de trovar un file de configuration valide, alicun " "predefinitiones simple sera utilisate." #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Un o plus errores de syntaxe XML se ha trovate durante le analyse de files " "de configuration de Openbox. Reguarda stdout pro plus del information. Le " "ultime error trovate esseva in le file \"%s\" al linea %d, con le message: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Impossibile de cargar un thema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Error de syntaxe de Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Le reinitio ha fallite exequer le nove executabile \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntaxe: openbox [optiones]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Optiones:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Monstrar iste adjuta e sortir\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Monstrar le version e sortir\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Reimplaciar le gerente de fenestras actual\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FILE Specificar le percurso al file de configuration a " "usar\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Disactivar le connexion al gerente de session\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Passage de messages al exemplar de Openbox active:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Recargar le configuration de Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Reinitiar Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Sortir de Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Optiones pro eliminar errores:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Exequer in modo synchrone\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr " --startup CMD Exequer CMD post le lanceamento de Openbox\n" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Monstrar datos utile pro eliminar errores\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Monstrar datos pro eliminar faltas in le gestion del " "foco\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Monstrar datos pro eliminar faltas in le gestion de " "session\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Separar le visualisation in schermos de xinerama " "false\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Reportar errores a %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s require un argumento\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Argumento del linea de commando incorrecte \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Un gerente de fenestras jam es lanceate sur le schermo %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "" "Impossibile de obtener le selection del gerente de fenestras sur le schermo " "%d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Le gerente de fenestras sur le schermo %d non es sortiente" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox es configurate pro %d scriptorio, ma le session actual ha %d. Illo " "supplanta le configuration de Openbox." msgstr[1] "" "Openbox es configurate pro %d scriptorios, ma le session actual ha %d. Illo " "supplanta le configuration de Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "scriptorio %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Execution de %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "" "Modificator de clave \"%s\" incorrecte in le parametros de clave or de mouse" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Codice de clave \"%s\" incorrecte in le parametros de clave" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Nomine de clave \"%s\" incorrecte in le parametros de clave" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Clave requestate \"%s\" non existe sur le schermo" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ��������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/it.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031723�12544731073�011521� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Italian translation for Openbox # Copyright (C) 2007-2010 Davide Truffa # Copyright (C) 2008 Andrea Scarpino # This file is distributed under the same license as the openbox package. # Davide Truffa <davide@catoblepa.org>, 2007-2010. # Andrea Scarpino <bash.lnx@gmail.com>, 2008. # # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.11.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2010-08-22 21:33+0200\n" "Last-Translator: Davide Truffa <davide@catoblepa.org>\n" "Language-Team: Italian <tp@lists.linux.it>\n" "Language: it\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "L'azione \"%s\" richiesta non è valida e non esiste." #: openbox/actions/execute.c:245 msgid "No" msgstr "No" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Si" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Esegui" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Impossibile convertire il percorso utf8 \"%s\"" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Annulla" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Esci" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Sicuro di volerti disconnettere?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Esci" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Sicuro di voler uscire da Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Esci da Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Finestra senza nome" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Termino..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Non Risponde" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "La finestra \"%s\" sembra non rispondere. Vuoi forzarne l'uscita inviando il " "segnale %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Termina Processo" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "La finestra \"%s\" non sembra rispondere. Vuoi disconnetterla dal server X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Disconnesso" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Spostati qui..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Gestisci i desktop" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Aggiungi nuovo desktop" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Rimuovi ultimo desktop" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Finestre" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Desktop" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Tutti i desktop" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Livello" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Sempre _sopra" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normale" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Sempre s_otto" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Invia al _desktop" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menù della finestra" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Ripristina" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Muovi" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "R_idimensiona" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimizza" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ssimizza" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "A_rrotola" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Si/No _Decorazioni" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Chiudi" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Il contesto \"%s\" indicato nelle associazioni mouse non è valido" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Il pulsante \"%s\" indicato nel file di configurazione non è valido" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Chiudi" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflitto con l'associazione tasti indicata nel file di configurazione" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Impossibile trovare il file di menù \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Impossibile eseguire il comando nel pipe-menù \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Output del pipe-menù \"%s\" non valido" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Il menù \"%s\" a cui si sta tentando di accedere non esiste" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Altri..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Il pulsante \"%s\" indicato nelle associazioni mouse non è valido" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Impossibile accedere alla directory home \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Impossibile accedere allo schermo indicato nella variabile DISPLAY." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Impossibile inizializzare la libreria obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Il server X non ha il supporto per la localizzazione." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "" "Impossibile impostare i tasti modificatori localizzati per il server X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Impossibile trovare un file di configurazione valido, verranno utilizzate le " "impostazioni predefinite" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Sono stati trovati uno o più errori nel file di configurazione di Openbox. " "Vedi stdout per ulteriori informazioni. L'ultimo errore era in \"%s\" alla " "linea %d, con il messaggio: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Impossibile caricare un tema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Errore di sintassi" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Non è stato possibile riavviare il nuovo eseguibile \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintassi: openbox [opzioni]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opzioni:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Mostra questo messaggio di aiuto ed esce\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Mostra il numero di versione ed esce\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Sostituisce il gestore di finestre attivo\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FILE Specifica il percorso del file di configurazione\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Disabilita connessione al gestore di sessione\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Inviare messaggi ad un'istanza di Openbox attiva:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Ricarica la configurazione di Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Riavvia Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Termina Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opzioni di debug:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Esegue in modalità sincrona\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Mostra le informazioni di debug\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Mostra le informazioni di debug sulla gestione del " "focus\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Divide lo schermo per simulare xinerama\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Segnalate eventuali bug a %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s richiede un argomento\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Argomento da linea di comando non valido \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Un gestore di finestre è già attivo sullo schermo %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "" "Impossibile acquisire la selezione del gestore di finestre sullo schermo %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Il gestore di finestre sullo schermo %d non è terminato" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox è configurato per %d desktop, ma la sessione attuale ne ha %d. " "Ignoro la configurazione di Openbox." msgstr[1] "" "Openbox è configurato per %d desktop, ma la sessione attuale ne ha %d. " "Ignoro la configurazione di Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "desktop %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Sto eseguendo %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "" "Il modificatore \"%s\" indicato nelle associazioni mouse/tastiera non è " "valido" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "" "Il codice del tasto \"%s\" indicato nelle associazioni mouse/tastiera non è " "valido" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "" "Il nome del tasto \"%s\" indicato nelle associazioni di mouse/tastiera non è " "valido" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "La chiave \"%s\" non esiste sullo schermo" #: openbox/prompt.c:154 msgid "OK" msgstr "Ok" ���������������������������������������������openbox-3.6.1/po/lv.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032027�12544731073�011524� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Latvian translations for openbox. # Copyright (C) 2010 Dana Jansens # This file is distributed under the same license as the openbox package. # # Einars Sprugis <einars8@gmail.com>, 2010. msgid "" msgstr "" "Project-Id-Version: 3.4.10\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2010-01-08 21:11+0200\n" "Last-Translator: Einars Sprugis <einars8@gmail.com>\n" "Language-Team: Latvian <locale@laka.lv>\n" "Language: lv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : " "2);\n" "X-Generator: Lokalize 1.0\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Prasīta neatļauta darbība \"%s\". Šāda darbība neeksistē." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nē" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Jā" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Izpildīt" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Neizdevās pārveidot ceļu \"%s\" no utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Atcelt" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Iziet" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Vai tiešām vēlaties atteikties?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Atteikties" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Vai tiešām vēlaties iziet no Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Iziet no Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Logs bez nosaukuma" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Nogalina..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Neatbild" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Logs \"%s\" neatbild. Vai vēlieties to aizvērt piespiedu kārtā, nosūtot " "signālu %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Nobeigt procesu" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "Logs \"%s\" neatbild. Vai vēlaties to atvienot no X servera?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Atvienot" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Iet uz turieni..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Pārvaldīt darbvirsmas" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Pievienot j_aunu darbvirsmu" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "Noņemt pēdējo da_rbvirsmu" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Logi" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Darbvirsmas" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Visas darbvirsmas" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "S_lānis" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Vienmēr augšā" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normāls" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Vienmēr a_pakšā" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "No_sūtīt uz darbvirsmu" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Klienta izvēlne" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Atja_unot" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Pārviet_ot" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Mainīt i_zmēru" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimizēt" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Maksimizē_t" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Sa_ritināt/Atritināt" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Bez/Ar _dekorācijām" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Ai_zvērt" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Neatļauts konteksts \"%s\" peles saīsnē" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Konfigurācijas failā \"%s\" norādīts neatļauts taustiņš" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Nevarēja izveidot mapi '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Aizvērt" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konfliktē ar tastatūras saīsnēm konfigurācijas failā" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Nav atrasts atļauts izvēlnes fails \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Nevarēja izpildīt skriptētās izvēlnes komandu \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Neatļauta izvade no skriptētās izvēlnes \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Mēģināja piekļūt izvēlnei \"%s\", bet tā neeksistē" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Vairāk..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Neatļauts taustiņš \"%s\" peles saīsnē" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Nevarēja pāriet uz mājas mapi \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Neizdevās atvērt displeju no DISPLAY vides mainīgā." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Neizdevās inicializēt obrender bibliotēku." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X serveris neatbalsta lokāli." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Nevar uzstādīt lokāles modificētājus X serverim." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Nevarēja atrast atļautu konfigurācijas failu, tiek izmantoti noklusējumi" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Analizējot Openbox konfigurācijas failus, tika atrastas viena vai vairākas " "XML sintakses kļūdas. Aplūkojiet standarta izvadi, lai noskaidrotu vairāk. " "Pēdējā kļūda bija failā \"%s\" - %d rinda, kļūdas ziņojums: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Nebija iespējams ielādēt tēmu." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox sintakses kļūda" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Pārstartētājam neizdevās palaist jauno izpildāmo \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Autortiesības (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintakse: openbox [opcijas]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opcijas:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Parāda šo palīdzības tekstu un iziet\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Parāda versiju un iziet\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Aizvieto pašreiz palaisto logu pārvaldnieku\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FAILS Norāda ceļu uz izmantojamo konfigurācijas failu\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Pārtrauc savienojumu ar sesiju pārvaldnieku\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Nodod ziņojumus esošai Openbox instancei:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Pārlādē Openbox konfigurācijas failus\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Pārstartē Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Iziet no Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Atkļūdošanas iespējas:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Palaist sinhronajā režīmā\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Rādīt atkļūdošanas izvadi\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Rādīt atkļūdošanas izvadi fokusēšanas darbībām\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Sadalīt displeju vairākos viltus xinerama ekrānos\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Lūdzu, ziņojiet kļūdas %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s vajadzīgs arguments\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Neatļauts komandrindas arguments \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Logu pārvaldnieks jau palaists uz %d. ekrāna" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Nevarēja iegūt logu pārvaldnieka izvēli uz %d. ekrāna" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Logu pārvaldnieks uz %d. ekrāna nebeidz darbību" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox ir konfigurēts %d darbvirsmai, bet pašreizējai sesijai tādu ir %d. " "Šī Openbox konfigurācijas opcija tiks ignorēta." msgstr[1] "" "Openbox ir konfigurēts %d darbvirsmām, bet pašreizējai sesijai tādu ir %d. " "Šī Openbox konfigurācijas opcija tiks ignorēta." msgstr[2] "" "Openbox ir konfigurēts %d darbvirsmām, bet pašreizējai sesijai tādu ir %d. " "Šī Openbox konfigurācijas opcija tiks ignorēta." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "darbvirsma %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Palaiž %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Neatļauts modificētājtaustiņš \"%s\" tastatūras/peles saīsnē" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Neatļauts taustiņa kods \"%s\" tastatūras saīsnē" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Neatļauts taustiņa nosaukums \"%s\" tastatūras saīsnē" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Pieprasītais taustiņš \"%s\" uz displeja neeksistē" #: openbox/prompt.c:154 msgid "OK" msgstr "Labi" ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/nl.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031627�12544731073�011521� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Dutch translations for openbox. # This file is distributed under the same license as the openbox package. # # Mark Pustjens <pustjens@dds.nl>, 2007. # Jochem Kossen <jkossen@xs4all.nl>, 2007. # Marvin Vek <laen@onedot.nl>, 2008. # Benno Schulenberg <benno@vertaalt.nl>, 2008. # Pjotr <pjotrvertaalt@gmail.com>, 2013. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-03-18 23:30+0100\n" "Last-Translator: Pjotr <pjotrvertaalt@gmail.com>\n" "Language-Team: Dutch <vertaling@vrijschrift.org>\n" "Language: nl\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Er werd gevraagd om ongeldige actie '%s'. Deze actie bestaat niet." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nee" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Ja" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Uitvoeren" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Converteren van het pad '%s' vanuit UTF-8 is mislukt" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Annuleren" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Afsluiten" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Weet u zeker dat u zich wilt afmelden?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Afmelden" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Weet u zeker dat u Openbox wilt afsluiten?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Openbox afsluiten" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Naamloos venster" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Bezig met termineren..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Reageert niet" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Het venster '%s' reageert niet. Wilt u het afsluiten forceren door het " "signaal %s te sturen?" #: openbox/client.c:3660 msgid "End Process" msgstr "Beëindig proces" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Het venster '%s' reageert niet. Wilt u de verbinding van het venster met de " "X-server verbreken?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Verbreek verbinding" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Ga erheen..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Bureaubladen beheren" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Voeg nieuw bureaublad toe" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "V_erwijder laatste bureaublad" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Vensters" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Bureaubladen" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Alle bureaubladen" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Laag" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Altijd _bovenop" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normaal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Altijd _onderop" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Verplaats _naar bureaublad" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Venstermenu" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Herstellen" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Verplaatsen" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "_Grootte aanpassen" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Pictogram van maken" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "_Maximaliseren" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Op-/neerrollen" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "_Vensterrand weghalen/toevoegen" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Sluiten" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Ongeldige context '%s' in muisbinding" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Ongeldige knop '%s' opgegeven in het instellingenbestand" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Sluiten" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflict bij toetsbindingen in het instellingenbestand" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Kan geen geldig menubestand '%s' vinden" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Uitvoeren van opdracht voor pipe-menu '%s' is mislukt: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Ongeldige uitvoer van pipe-menu '%s'" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Getracht niet-bestaand menu '%s' te benaderen" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Meer..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Ongeldige knop '%s' in muisbinding" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Kan niet overschakelen naar thuismap '%s': %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Kan scherm genoemd in omgevingsvariabele DISPLAY niet openen." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Initialiseren van de 'obrender'-bibliotheek is mislukt." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X-server ondersteunt lokalisatie niet." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Kan lokalisatie voor de X-server niet instellen." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Kan geen geldig configuratiebestand vinden; er worden enkele simpele " "standaardinstellingen gebruikt" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Er zijn een of meer XML-syntaxfouten gevonden tijdens het inlezen van de " "Openbox-configuratiebestanden. Zie standaarduitvoer voor meer informatie. " "De laatste fout werd gevonden in bestand '%s' regel %d, met bericht: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Kan geen thema laden." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox-syntaxfout" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Bij herstart is uitvoeren van nieuw programma '%s' mislukt: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Auteursrecht (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Gebruik: openbox [opties]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opties:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Toon deze hulptekst en sluit af\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Toon versie en sluit af\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Vervang de thans draaiende vensterbeheerder\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file BESTAND\n" " Dit configuratiebestand gebruiken\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Verbinding met de sessiebeheerder uitschakelen\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Berichten worden naar een draaiende Openbox-instantie gestuurd:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Openbox-configuratie opnieuw laden\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Openbox herstarten\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Openbox afsluiten\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opties voor foutopsporing:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync In synchrone modus starten\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Toon foutopsporingsuitvoer\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Toon foutopsporingsuitvoer voor afhandeling van " "scherpstelling\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Splits het scherm in nep-Xinerama-schermen\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Gelieve fouten te melden aan %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "'%s' vereist een argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Ongeldige opdrachtregeloptie '%s'\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Er draait al een vensterbeheerder op scherm %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Kan op scherm %d geen vensterbeheerderselectie verkrijgen" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "De vensterbeheerder op scherm %d sluit zichzelf niet af" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox is ingesteld op %d bureaublad, maar de huidige sessie heeft er %d. " "De Openbox-instelling wordt genegeerd." msgstr[1] "" "Openbox is ingesteld op %d bureaubladen, maar de huidige sessie heeft er " "%d. De Openbox-instelling wordt genegeerd." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "bureaublad %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "%s aan het draaien" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Ongeldige aanpassingstoets '%s' in toetsen-/muisbinding" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Ongeldige toetscode '%s' in toetsenbinding" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Ongeldige toetsnaam '%s' in toetsenbinding" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Gevraagde toets '%s' bestaat niet op het scherm" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ���������������������������������������������������������������������������������������������������������openbox-3.6.1/po/no.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031444�12544731073�011521� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Norwegian messages for openbox # Copyright (C) 2007 Dana Jansens # This file is distributed under the same license as the openbox package. # # Michael Kjelbergvik Thung <postlogic@gmail.com>, 2008. msgid "" msgstr "" "Project-Id-Version: Openbox 3.6\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2014-11-06 10:40+0100\n" "Last-Translator: Michael Kjelbergvik Thung <postlogic@gmail.com>\n" "Language-Team: None\n" "Language: no\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 ? 0 : 1;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Ugyldig operasjon \"%s\" etterspurt. Operasjonen finnes ikke." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nei" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Ja" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Utfør" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Feil ved konvertering av \"%s\" fra utf8 " #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Avbryt" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Avslutt" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Er du sikker på at du vil logge ut?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Logg Ut" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Er du sikker på at du vil avslutte Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Avslutt Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Ukjent Vindu" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Dreper..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Svarer Ikke" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Vinduet \"%s\" svarer ikke. Vil du utføre tvunget avslutning ved å sende " "signalet %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Avslutt Prosess" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Vinduet \"%s\" svarer ikke. Vil du fjerne tilknytning av vinduet til X-" "serveren?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Fjern tilknytning" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Gå dit..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Behandle skrivebord" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Nytt skrivebord" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Fjern siste skrivebord" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Vinduer" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Skrivebord" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Alle skrivebord" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "La_g" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Alltid ø_verst" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "Nor_mal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Alltid _nederst" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Send til" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Klient-meny" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Tilbak_estill" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Flytt" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Endre s_tørrelse" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "_Minimer" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximer" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Rull opp/ned" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Fjern/Legg til _dekorasjon" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Lukk" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Ugyldig innhold \"%s\" i binding for mus" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Ugyldig tast \"%s\" spesifisert i konfigurasjonsfilen" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" "Openbox ble kompilert uten støtte for lasting av bilder. Ikoner i menyer vil " "ikke bli lastet." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Kan ikke lage katalog '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Lukk" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konflikt med hurtigtastbinding i konfigurasjonsfilen" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Kan ikke finne en gyldig menyfil \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Kunne ikke kjøre kommando for pipe-meny \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Ugyldig utdata fra pipe-menyen \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Forsøkte å åpne menyen \"%s\", men denne finnes ikke" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Mer..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Ugyldig knapp \"%s\" i binding for mus" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Kan ikke endre til hjemmekatalogen \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Kunne ikke åpne displayet fra DISPLAY-miljøvariabelen" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Kunne ikke starte obrender-biblioteket." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X-serveren støtter ikke lokalisering." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Kan ikke stille inn lokaliseringsmodifikatorene for X-serveren." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "Kunne ikke finne en gyldig konfigurasjonsfil, bruker standardverdier" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "En eller flere XML-syntaksfeil ble funnet ved lesing av konfigurasjonsfilene " "til Openbox. Se stdout for mer informasjon. Forrige feil funnet var i filen " "\"%s\", linje %d, med beskjeden: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Kan ikke laste et tema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox Syntaksfeil" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Kunne ikke starte nytt program ved omstart: \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntax: openbox [alternativer\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Alternativ:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Vise denne hjelpeteksten og avslutt\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Vis versjonsnummeret og avslutt\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Erstatt den kjørende vindusbehandleren\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FIL Spesifisér filbane til konfigurasjonsfilen du vil ta i " "bruk\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Deaktiver tilknytning til sesjonsbehandleren\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Sender beskjeder til en kjørende Openbox-instans:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Oppdater Openbox' konfigurasjon\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Start Openbox på nytt\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Avslutt Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Debug-alternativ:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Kjør i synkron-modus\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr " --startup CMD Kjør CMD (kommando) etter oppstart\n" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Vis debuggingsinformasjon\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Vis debuggingsinformasjon for fokus-håndtering\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Vis debuggingsinformasjon for session-håndtering\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " -debug-xinerama Splitt displayet for falske xinerama-skjermer\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Vennligst rapporter bugs til %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s krever et argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Ugyldig kommandolinje-argument \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "En vindusbehandler kjører allerede på skjerm %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Kunne ikke hendte vindusbehandlerens markering på skjerm %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Vindusbehandleren på skjerm %d vil ikke avslutte" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Aktiv sesjon har %2$d skrivebord, mens Openbox er konfigurert til %1$d. " "Benytter innstillingene for den aktive sesjonen." msgstr[1] "" "Aktiv sesjon har %2$d skrivebord, mens Openbox er konfigurert til %1$d. " "Benytter innstillingene for den aktive sesjonen." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "skrivebord %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Kjører %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Ugyldig modifikasjonsknapp \"%s\" i binding for tast/mus" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Ugyldig tastekode \"%s\" i hurtigtastbinding" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Ugyldig tastenavn \"%s\" i hurtigtastbinding" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Ønsket tast \"%s\" eksisterer ikke i displayet" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ja.po������������������������������������������������������������������������������0000644�0001753�0000144�00000033362�12544731073�011500� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Japanese messages for openbox. # Copyright (C) 2004 Mikael Magnusson # This file is distributed under the same license as the Openbox package. # Yukihiro Nakai <nakai@gnome.gr.jp>, 2003. # Ryoichiro Suzuki <ryoichiro.suzuki@gmail.com>, 2007, 2008. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-03-04 16:32+0100\n" "Last-Translator: Ryoichiro Suzuki <ryoichiro.suzuki@gmail.com>\n" "Language-Team: Japanese <ja@li.org>\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "" "不正なアクション\"%s\"が要求されました。そのようなアクションは存在しません。" #: openbox/actions/execute.c:245 msgid "No" msgstr "いいえ" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "はい" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "実行する" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "パス\"%s\"を utf8 から変換するのに失敗しました。" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "キャンセル" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "終了" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "ログアウトしてもよろしいですか?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "ログアウト" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Openbox を終了してもよろしいですか?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Openbox を終了する" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "名称未設定" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "強制終了中..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "応答なし" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "ウィンドウ \"%s\" は応答していないようです。%s 信号を送り強制終了しますか?" #: openbox/client.c:3660 msgid "End Process" msgstr "プロセスを終了する" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "ウィンドウ \"%s\" は応答していないようです。Xサーバから切断しますか?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "切断する" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "移動する..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "デスクトップを管理" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "新しくデスクトップを追加(_A)" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "最後のデスクトップを削除(_R)" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "ウィンドウ" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "デスクトップ" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "すべてのデスクトップ(_A)" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "階層(_L)" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "常に最上層にする(_T)" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "通常(_N)" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "常に最下層にする(_B)" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "デスクトップに送る(_S)" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "クライアントメニュー" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "復元(_E)" #: openbox/client_menu.c:398 msgid "_Move" msgstr "移動(_M)" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "サイズの変更(_Z)" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "最小化(_N)" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "最大化(_X)" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "巻き上げ/展開(_R)" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "非/装飾(_D)" #: openbox/client_menu.c:418 msgid "_Close" msgstr "閉じる(_C)" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "マウス割り当てに於いて不正なコンテクスト \"%s\"" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "不正なボタン\"%s\"が設定ファイルで指定されています。" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "ディレクトリ'%s'を作れません: %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "閉じる" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "設定ファイルにキー割り当ての衝突があります。" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "正当なメニューファイル\"%s\"を見つけることができません。" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "パイプメニューの為のコマンド\"%s\"の実行に失敗しました: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "パイプメニュー\"%s\"からの不正な出力です。" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "メニュー\"%s\"へのアクセスを試みましたが、それは存在しません。" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "もっと..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "マウス割り当てに於いて不正なボタン \"%s\"" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "ホームディレクトリ\"%s\"に移動できません: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "環境変数 DISPLAY からディスプレイを開くのに失敗しました。" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "obrender ライブラリの初期化に失敗しました。" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Xサーバはロケールをサポートしていません。" #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Xサーバの為のロケール修飾子を設定できません。" #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "正当な設定ファイルを見つけられません。単純な初期設定を使います。" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Openbox の設定ファイルを解析中に XML の構文エラーが見つかりました。詳しい情報" "は標準出力を見て下さい。最後に見つかったエラーは\"%s\"ファイルの%d 行目で、説" "明はこうです:%s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "テーマを読み込めません。" #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox 構文エラー" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "再起動の際新しい実行ファイル\"%s\"の実行に失敗しました: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "著作権 (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "用法: openbox [オプション]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "オプション:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help この使い方を表示して終了します\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version バージョンを表示して終了します\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace 現在実行中のウィンドウマネージャを置き換えます\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE 使用する設定ファイルのパスを指定します\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable セッションマネージャへの接続を止めます\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "実行中の Openbox に命令を送ります:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Openbox の設定を再読み込みします\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Openbox を再起動します\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Openbox を終了します\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "デバッグオプション:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync 同期モードで実行します\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug デバッグ情報を表示します\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus フォーカスの扱いに関するデバッグ情報を表示します\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session セッションの扱いに関するデバッグ情報を表示します\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama 偽の xinerama スクリーンに分割表示します\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "バグは %s 宛へ報告して下さい\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s requires an argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "不正なコマンドライン引数 \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "スクリーン%dでウィンドウマネージャが既に起動しています。" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "スクリーン%dでウィンドウマネージャの選択を取得できませんでした。" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "スクリーン%dのWMが終了しません。" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox は %d 個のデスクトップを設定されましたが, 現在のセッションは %d 個" "持っています。 Openbox の設定を無視します。" #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "デスクトップ%i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "起動中 %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "キー/マウス割り当ての中の不正な修飾キー \"%s\"" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "キー割り当ての中の不正なキーコード \"%s\"" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "キー割り当ての中の不正なキー名称 \"%s\"" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "要求されたキー\"%s\"はそのディスプレイに存在しません。" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/lt.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032306�12544731073�011522� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Lithuanian messages for openbox # Copyright (C) 2008 Dana Jansens # This file is distributed under the same license as the openbox package. # Vytautas (GODhack) <vytautas1987@yahoo.com>, 2008. # Kiprianas Spiridonovas <k.spiridonovas@gmail.com>, 2012. # Algimantas Margevičius <margevicius.algimantas@gmail.com>, 2012, 2013. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.5.0\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2013-01-09 13:17+0200\n" "Last-Translator: Algimantas Margevičius <margevicius.algimantas@gmail.com>\n" "Language-Team: Lietuvių <>\n" "Language: lt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" "%100<10 || n%100>=20) ? 1 : 2)\n" "X-Generator: Gtranslator 2.91.5\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Pareikalauta netinkamo veiksmo „%s“. Toks veiksmas neegzistuoja." #: openbox/actions/execute.c:245 msgid "No" msgstr "Ne" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Taip" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Vykdyti" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Nepavyko išversti kelio „%s“ iš utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Atšaukti" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Išeiti" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Ar tikrai norite atsijungti?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Atsijungti" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Ar tikrai norite baigti darbą su Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Baigti darbą su Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Bevardis langas" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Nutraukiama..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Neatsako" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Langas „%s“ neatsako. Ar norite priverstinai nutraukti vykdymą nusiųsdami " "%s signalą?" #: openbox/client.c:3660 msgid "End Process" msgstr "Baigti procesą" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "Langas „%s“ neatsako. Ar norite atjungti jį nuo X serverio?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Atjungti" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Eiti ten..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Tvarkyti darbastalius" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Pridėti darbastalį" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "P_ašalinti paskutinį darbastalį" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Langai" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Darbastaliai" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Visi darbastaliai" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Sluoksnis" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Visada _viršuje" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normalus" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Visada _apačioje" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Siųsti į _darbastalį" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Kliento meniu" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Atstatyti" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Perkelti" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "_Keisti dydį" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "_Mažinti" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "D_idinti" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Suskleis_ti/išskleisti" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Ne/d_ekoruoti" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Užverti" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Netinkamas kontekstas „%s“ pelės susiejime" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Nustatymų faile nurodytas netinkamas pelės klavišas „%s“" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "Openbox sukompiliuota be bibliotekos. Meniu piktogramos nebus įkeltos." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Nepavyko sukurti katalogo „%s“: %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Užverti" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konfliktas tarp klavišų susiejimų nustatymų faile" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Nepavyko rasti tinkamo meniu failo „%s“" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Nepavyko įvykdyti pipe-meniu komandos „%s“: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Netinkama išvestis iš pipe-meniu „%s“" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Bandoma prieiti prie meniu „%s“, bet jis neegzistuoja" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Daugiau..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Netinkamas klavišas „%s“ pelės susiejime" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Nepavyko pakeisti namų katalogo į „%s“: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Nepavyko atverti ekrano nurodyto DISPLAY aplinkos kintamąjame." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Nepavyko inicijuoti obrender bibliotekos." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X serveris nepalaiko lokalės." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Nepavyko nustatyti lokalės keitinių X serveriui." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Nepavyko rasti tinkamo nustatymų failo, naudojami numatytieji nustatymai." #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Openbox nustatymų failuose rasta sintaksės klaidų. Išsami informacija " "pateikta stdout. Paskutinė rasta klaida yra failo „%s“ %d eilutėje, su " "pranešimu: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Nepavyko įkelti temos." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox sintaksės klaida" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Paleidžiant iš naujo nepavyko įvykdyti naujo vykdomojo failo „%s“: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Autorinės teisės (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaksė: openbox [parinktys]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Parinktys:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Parodyti šį pagalbos pranešimą ir išeiti\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Parodyti versiją ir išeiti\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Pakeisti jau veikiančią langų tvarkytuvę\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE Naudoti nurodytą nustatymų failą\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Nenaudoti sesijų tvarkytuvės\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Žinučių perdavimas veikiančiai Openbox:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Iš naujo įkelti Openbox nustatymus\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Iš naujo paleisti Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Baigti darbą su Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Derinimo parinktys:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Paleisti sinchroniniame režime\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr " --startup CMD Vykdyti komandą CMD po paleidimo\n" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Rodyti derinimo išvestį\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Rodyti derinimo išvestį susijusią su fokusavimu\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Rodyti derinimo išvestį susijusią su sesijų tvarkymu\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Suskirstyti ekraną į netikrus Xinerama ekranus\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Praneškite apie klaidas %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s reikalauja argumento\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Netinkamas komandinės eilutės argumentas „%s“\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Ekrane %d jau veikia langų tvarkytuvė" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Nepavyko gauti langų tvarkytuvės pasirinkimo ekrane %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Langų tvarkytuvė ekrane %d nebaigia darbo" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox yra suderinta %d darbastaliui, bet dabartinė sesija turi %d. " "Nepaisoma Openbox konfiguracijos." msgstr[1] "" "Openbox yra suderinta %d darbastaliams, bet dabartinė sesija turi %d. " "Nepaisoma Openbox konfiguracijos." msgstr[2] "" "Openbox yra suderinta %d darbastalių, bet dabartinė sesija turi %d. " "Nepaisoma Openbox konfiguracijos." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "darbastalis %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Paleidžiama %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Netinkamas modifikavimo klavišas „%s“ susiejime" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Netinkamas klavišo kodas „%s“ susiejime" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Netinkamas klavišo vardas „%s“ susiejime" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Norimas klavišas „%s“ ekrane neegzistuoja" #: openbox/prompt.c:154 msgid "OK" msgstr "Gerai" ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/pl.po������������������������������������������������������������������������������0000644�0001753�0000144�00000033610�12544731073�011515� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Polish translation of Openbox 3. # Copyright (C) 2007 Mikael Magnusson # This file is distributed under the same license as the Openbox 3 package. # Madej <madej@afn.no-ip.org>, 2004. # Paweł Rusinek <p.rusinek@gmail.com>, 2007. # Piotr Drąg <raven@pmail.pl>, 2007. # Jakub Łojewski <lojewski@ovi.com>, 2010. # Jakub Błażejczyk <kuboslawik@gmail.com>, 2013. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.3\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2013-10-06 15:08+0200\n" "Last-Translator: Jakub Błażejczyk\n" "Language-Team: polski <kuboslawik@gmail.com>\n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Wywołana akcja \"%s\" nie istnieje." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nie" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Tak" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Wykonaj" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Nie można przekonwertować ścieżki \"%s\" z UTF-8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Anuluj" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Wyjście" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Czy na pewno chcesz się wylogować?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Wyloguj" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Czy na pewno chcesz opuścić Openboksa?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Opuść Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Okno bez nazwy" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Kończenie..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Nie odpowiada" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Okno \"%s\" nie odpowiada. Czy wymusić zakończenie poprzez wysłanie sygnału " "%s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Zakończ proces" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "Okno \"%s\" nie odpowiada. Odłączyć je od serwera X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Odłącz" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Przejdź..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Zarządzaj pulpitami" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Dod_aj nowy pulpit" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Usuń ostatni pulpit" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Okna" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Pulpity" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Wszystkie pulpity" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Warstwa" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Zawsze na _wierzchu" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normalnie" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Zawsze pod _spodem" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Wyślij na p_ulpit" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menu klienta" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "P_rzywróć" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Przesuń" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Zmień _rozmiar" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Zmi_nimalizuj" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Zma_ksymalizuj" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Zwiń/Rozwiń" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Wyświetl/ukryj _dekoracje" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Z_amknij" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Nieprawidłowy kontekst \"%s\" w skrócie myszy" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Nieprawidłowy klawisz \"%s\" określony w pliku konfiguracyjnym" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Nie można utworzyć katalogu \"%s\": %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Zamknij" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konflikt skrótów klawiszowych w pliku konfiguracyjnym" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Nie można znaleźć prawidłowego pliku menu \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Wykonanie polecenia dla pipe-menu \"%s\" nie powiodło się: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Nieprawidłowe wyjście z pipe-menu \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Spróbowano uzyskać dostęp do menu \"%s\", ale ono nie istnieje" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Więcej..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Nieprawidłowy klawisz \"%s\" w skrócie myszy" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Nie można przejść do katalogu domowego \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Otwarcie ekranu ze zmiennej środowiskowej DISPLAY nie powiodło się." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Zainicjowanie biblioteki obrender nie powiodło się." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Serwer X nie obsługuje ustawień lokalnych." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Nie można ustawić modyfikatorów lokalnych dla serwera X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Nie można znaleźć prawidłowego pliku konfiguracyjnego, używanie " "domyślnychwartości" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Jeden lub więcej błędów składniowych XML zostało znalezionych podczas " "sprawdzania plików konfiguracyjnych. Zobacz stdout aby uzyskać więcej " "informacji. Ostatnio błąd znaleziono w pliku \"%s\" linia %d, z wiadomością: " "%s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Nie można wczytać motywu." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Błąd składniowy Openboksa" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "" "Wykonanie nowego pliku wykonywalnego \"%s\" podczas ponownego " "uruchomienianie powiodło się: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Składnia: openbox [opcje]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opcje:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Wyświetla tę pomoc i kończy\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Wyświetla wersję i kończy\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Zastępuje aktualnie działający menedżer okien\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE Podaj ścieżkę do pliku konfiguracji\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Nie tworzy połączenia z menedżerem sesji\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Przekazywanie komunikatów do działającej instancji Openboksa:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Ponownie wczytuje pliki konfiguracyjne\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Ponownie uruchamia Openboksa\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Opuść Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opcje debugowania:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Uruchamia w trybie synchronicznym\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Wyświetla informacje o debugowaniu\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Wyświetla wyjście debugowania obsługi aktywacji\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Dzieli ekran na sztuczne ekrany xineramy\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Proszę zgłaszać błędy (w języku angielskim) pod adresem %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Nieprawidłowy argument wiersza poleceń \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Menedżer okien jest już uruchomiony na ekranie %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Nie można uzyskać wyboru menedżera okien na ekranie %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Menedżer okien na ekranie %d nie kończy działania" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox jest skonfigurowany dla %d pulpitu, ale bieżąca sesja ma %d. " "Nadpisywanie konfiguracji Openboksa." msgstr[1] "" "Openbox jest skonfigurowany dla %d pulpitu, ale bieżąca sesja ma %d. " "Nadpisywanie konfiguracji Openboksa." msgstr[2] "" "Openbox jest skonfigurowany dla %d pulpitu, ale bieżąca sesja ma %d. " "Nadpisywanie konfiguracji Openboksa." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "pulpit %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Uruchamianie %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "" "Nieprawidłowy klawisz modyfikatora \"%s\" w skrócie klawiszowym lub myszy" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Nieprawidłowy kod \"%s\" w skrócie klawiszowym" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Nieprawidłowa nazwa \"%s\" w skrócie klawiszowym" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Żądany klawisz \"%s\" nie istnieje na ekranie" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" #~ msgid "Unable to save the session to \"%s\": %s" #~ msgstr "Nie można zapisać sesji do \"%s\": %s" #~ msgid "Error while saving the session to \"%s\": %s" #~ msgstr "Wystąpił błąd podczas zapisywania sesji do \"%s\": %s" #~ msgid "Not connected to a session manager" #~ msgstr "Nie podłączono do menedżera sesji" #~ msgid "X Error: %s" #~ msgstr "Błąd X: %s" #~ msgid "" #~ "The SessionLogout action is not available since Openbox was built without " #~ "session management support" #~ msgstr "" #~ "SessionLogout jest niedostępne, ponieważ Openbox został stworzony bez " #~ "wsparcia dla zarządzania sesją" #~ msgid "Failed to execute \"%s\": %s" #~ msgstr "Wykonanie \"%s\" nie powiodło się: %s" ������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/pt.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032507�12544731073�011531� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Portuguese translation of openbox package. # Copyright (C) 2010 Mikael Magnusson # This file is distributed under the same license as the openbox package. # Gonçalo Ferreira <gonsas@gmail.com>, 2006. # Pedro Beja <althaser@gmail.com>, 2007 2008 2010. # Sérgio Marques <smarquespt@gmail.com>, 2013 # msgid "" msgstr "" "Project-Id-Version: Openbox\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2013-09-05 10:10-0000\n" "Last-Translator: Sérgio Marques <smarquespt@gmail.com>\n" "Language-Team: \n" "Language: pt\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" "X-Generator: Poedit 1.5.7\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Pedido de ação \"%s\" inválido. A ação não existe." #: openbox/actions/execute.c:245 msgid "No" msgstr "Não" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Sim" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Executar" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Falha a converter o caminho \"%s\" do utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Cancelar" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Sair" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Tem a certeza que pretende sair da sessão?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Sair da sessão" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Tem a certeza que pretende sair do Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Sair do Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Janela sem nome" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Terminando..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Não está a responder" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Parece que a janela \"%s\" não está a responder. Quer fechar a janela " "enviando o sinal %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Terminar processo" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Parece que a janela \"%s\" não está a responder. Quer fechar a janela " "desligando o servidor X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Desligar" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Ir para..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Gerir áreas de trabalho" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Adicionar nova área de trabalho" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Remover última área de trabalho" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Janelas" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Áreas de trabalho" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Todas as áreas de trabalho" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Camada" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Sempre na _frente" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Sempre por _trás" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Enviar para a área de _trabalho" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menu cliente" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "R_estaurar" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Mover" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Redimen_sionar" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimizar" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximizar" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "En_rolar/desenrolar" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "_Decorar/não decorar" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Fe_char" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Contexto inválido \"%s\" no atalho do rato" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Botão inválido \"%s\" no ficheiro de configuração" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" "O Openbox foi compilado sem suporte a imagens. Os ícones de menu não serão " "carregados." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Incapaz de criar o diretório '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Fechar" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflito entre teclas de atalho no ficheiro de configuração" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Incapaz de encontrar um ficheiro de menu válido \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Falha a executar o comando para o menu de processamento \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Resultado inválido do menu de processamento \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Tentou aceder ao menu \"%s\" mas este não existe" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Mais..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Botão inválido \"%s\" no atalho do rato" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Incapaz de mudar para a pasta pessoal \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Falha ao abrir o ecrã da variável de ambiente DISPLAY." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Falha ao inicializar a biblioteca obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "O servidor X não suporta a configuração regional." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "" "Não foi possível definir os modificadores de configuração regional do " "servidor X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Incapaz de encontrar um ficheiro de configuração válido. Serão utilizados os " "valores pré-definidos." #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Um ou mais erros de sintaxe do XML foram encontrados ao analisar os " "ficheiros de configuração do Openbox. Consulte stdout para mais " "informações. O último erro foi encontrado no ficheiro \"%s\", na linha %d e " "com a mensagem: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Incapaz de carregar o tema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Erro de sintaxe do Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Falha ao reiniciar a execução do novo executável \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Direitos de autor (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaxe: openbox [opções]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opções:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Mostra esta ajuda e sai\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Mostra a versão e sai\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Substitui o gestor de janelas ativo\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FICHEIRO\n" " Especifica o caminho do ficheiro de configuração a " "usar\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Desativa a ligação ao gestor de sessões\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Enviando mensagens para uma instância do Openbox:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Recarrega a configuração do Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Reinicia o Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --sair Sai do Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opções de depuração:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Executa em modo sincronizado\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr " --startup CMD Executa CMD ao iniciar\n" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Mostra o resultado da depuração\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Mostra o resultado de depuração para gestão de foco\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Mostra o resultado de depuração da gestão de sessão\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Divide o ecrã em falsos ecrãs xinerama\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Por favor reporte os erros em %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s requer um argumento\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Argumento inválido na linha de comandos \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Um gestor de janelas já está em execução no ecrã %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Não foi possível obter o gestor de janelas selecionado no ecrã %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "O gestor de janelas no ecrã %d não está a fechar" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "O Openbox está configurado para %d área de trabalho, mas a sessão atual tem " "%d. Sobrescrevendo a configuração do Openbox." msgstr[1] "" "O Openbox está configurado para %d áreas de trabalho, mas a sessão atual tem " "%d. Sobrescrevendo a configuração do Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "área de trabalho %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Executando %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Tecla modificadora inválida \"%s\" no atalho de tecla/rato" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Código chave inválido \"%s\" na tecla de atalho" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Nome de chave inválido \"%s\" na tecla de atalho" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Chave requerida \"%s\" não existe no ecrã" #: openbox/prompt.c:154 msgid "OK" msgstr "Aceitar" �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/pt_BR.po���������������������������������������������������������������������������0000644�0001753�0000144�00000032544�12544731073�012115� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Portuguese Brazil (pt_BR) messages for openbox # Copyright (C) 2007 Mikael Magnusson # This file is distributed under the same license as the openbox package. # crimeboy, 2007. # Og Maciel <ogmaciel@gnome.org>, 2007, 2008, 2011. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.5.0\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2011-08-01 15:26-0400\n" "Last-Translator: Og Maciel <ogmaciel@gnome.org>\n" "Language-Team: Brazilian Portuguese <gnome-l10n-br@listas.cipsga.org.br>\n" "Language: pt_BR\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Ação inválida \"%s\" requisitada. Ação não existe." #: openbox/actions/execute.c:245 msgid "No" msgstr "Não" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Sim" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Executar" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Falha ao converter o caminho \"%s\" do utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Cancelar" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Sair" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Você tem certeza que deseja sair?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Sair" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Você tem certeza que deseja sair do Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Sair do Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Janela sem nome" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Terminando..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Não Responsivo" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "A janela \"%s\" não está responsiva. Você deseja forçá-la a sair enviando o " "sinal %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Terminar Processo" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "A janela \"%s\" não está responsiva. Você deseja desconectá-la do servidor X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Desconectar" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Ir lá..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Gerenciar áreas de trabalho" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Adicionar nova área de trabalho" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Remover última área de trabalho" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Janelas" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Áreas de trabalho" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Todas as áreas de trabalho" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Camada" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Sempre no _topo" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Sempre no _fundo" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Enviar para área de _trabalho" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menu do cliente" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "R_estaurar" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Mover" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Redimen_sionar" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimizar" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximizar" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "(Des)en_rolar" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "(Não) _Decorar" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Fechar" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Contexto \"%s\" inválido na associação do mouse" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Botão inválido \"%s\" especificado no arquivo de configuração" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" "Openbox foi compilado sem suporte para carregamento de imagens. Ícones em " "menus não serão carregados." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Não foi possível criar o diretório '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Fechar" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflito com associação de chave no arquivo de configuração" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Não foi possível encontrar um arquivo de menu \"%s\" válido" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Falha ao executar comando para menu de processamento \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Saída inválida do menu de processamento \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Tentou acessar menu \"%s\" mas ele não existe" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Mais.." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Botão inválido \"%s\" na associação do mouse" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Não foi possível mudar para o diretório pessoal \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Falha ao abrir a tela da variavel de ambiente DISPLAY" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Falha ao iniciar a biblioteca obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Servidor X não suporta localização." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "" "Não foi possível configurar modificadores de localização para o servidor X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Não foi possível encontrar um arquivo de configuração válido, usando alguns " "valores padrão simples." #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Um ou mais erros de sintaxe de XML foram encontrados ao analisar os arquivos " "de configuração do Openbox. Veja a saída padrão para mais informação. O " "último erro relatado foi no arquivo \"%s\" linha %d, com a mensagem: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Não foi possível carregar um tema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Erro de Sintaxe do Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "O comando de reiniciar falhou ao executar novo executável \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaxe: openbox [opções]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opções:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Mostra esta ajuda e sai\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Mostra a versão e sai\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Substitui o gerenciador de janelas ativo\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file ARQUIVO\n" " Especifica o caminho do arquivo de configuração para " "usar\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr "" " --sm-disable Desabilita conexão com o gerenciador de sessões\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Passando mensagens para uma instância do Openbox em execução:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Recarrega a configuração do Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Reinicia o Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Sai do Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opções de depuração:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Executa em modo sincronizado\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr " --startup CMD Executa CMD depois de iniciar\n" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Mostra saida de depuração\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Mostra saída de depuração para manipulação de foco\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" " --debug-session Mostra saída de depuração do gerenciamento da sessão\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" " --debug-xinerama Divide a exibição de telas em telas de xinerama " "falsas\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Por favor reporte erros em %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s requere um argumento\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Argumento de linha de comando inválido \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Um gerenciador de janelas já está em execução na tela %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "" "Não foi possível adquirir a seleção do gerenciador de janelas na tela %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "O gerenciador de janelas na tela %d não está saindo" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "O Openbox está configurado para %d área de trabalho, mas a sessão atual " "contém %d. Sobrescrevendo a configuração do Openbox." msgstr[1] "" "O Openbox está configurado para %d áreas de trabalho, mas a sessão atual " "contém %d. Sobrescrevendo a configuração do Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "área de trabalho %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Executando %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Chave modificadora \"%s\" inválida na associação de tecla/mouse" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Código chave \"%s\" inválido na associação de chave" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Nome de chave \"%s\" inválido na associação de chave" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Chave requerida \"%s\" não existe na tela" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ro.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032051�12544731073�011520� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Romanian translations for openbox package. # Copyright (C) 2010 Dana Jansens # This file is distributed under the same license as the openbox package. # Radu Feflea <rfeflea@googlemail.com>, 2010. # msgid "" msgstr "" "Project-Id-Version: openbox 3.5.0\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2010-10-26 23:51+0100\n" "Last-Translator: Radu Feflea <rfeflea@googlemail.com>\n" "Language-Team: none\n" "Language: ro\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Comanda internă “%s” invalidă. Nu există o astfel de comandă internă." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nu" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Da" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Execută" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Calea “%s” nu a putut fi convertită din cod UTF-8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Anulare" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Ieșire" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Sunteți sigur că vreți să vă delogați?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Delogare" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Sunteți sigur că vreți să ieșiți din Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Ieșire din Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Fereastră fără nume" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Terminare forțată..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Nu răspunde" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Fereastra “%s” nu pare să răspundă. Doriți închiderea forțată printr-un " "semnal %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Terminare proces" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Fereastra “%s” nu pare să răspundă. Doriți deconectarea ei de la serverul X?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Deconectare" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Activează..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Administrează desktop-uri" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Adaugă desktop nou" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "Șterge _ultimul desktop" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Ferestre" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Desktop-uri" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Toate desktop-urile" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Vizibilitate" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Întotdeauna _deasupra" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Întotdeauna în _fundal" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Trimite pe desktop" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Meniu client" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "R_estaurează" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Mută" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Redimensionea_ză" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimizează" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximizează" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Minimizează/maximizează la _bara de titlu" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "_Ascunde/afișează bara de titlu" #: openbox/client_menu.c:418 msgid "_Close" msgstr "În_chide" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Context invalid “%s” în configurarea mouse-ului" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Buton invalid “%s” specificat în fișierul de configurare" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Închide" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Conflict de combinații de taste în fișierul de configurare" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Nu a fost găsit nici un fișier meniu valid “%s”" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Comandă eșuată în meniul dinamic “%s”: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Răspuns invalid de la meniul dinamic “%s”" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Accesare meniu “%s” eșuată. Meniu inexistent" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Mai mult..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Buton invalid “%s” în configurarea mouse-ului" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Directorul home “%s” nu a putut fi selectat: %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Display-ul din variabila sistem DISPLAY nu a putut fi deschis." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Inițializarea librăriei obrender eșuată." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Serverul X nu suportă setări regionale." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Setările regionale pentru serverul X nu au putut fi setate." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Nu a fost găsit nici un fișier de configurare valid, se vor folosi valori " "implicite" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Una sau mai multe erori de sintaxă XML au fost găsite la parcurgerea " "fișierului de configurare Openbox. Vezi stdout pentru mai multe " "informații. Ultima eroare găsită a fost in fișierul “%s” la linia %d, cu " "mesajul: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "O temă grafică nu a putut fi încarcată." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Eroare de sintaxă Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Restartarea a eșuat lansarea noului fișier executabil “%s”: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaxă: openbox [opțiuni]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opțiuni:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Afișează mesajul acesta și părăsește programul\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr "" " --version Afișează versiunea curentă și părăsește programul\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" " --replace Înlocuiește managerul de ferestre curent cu Openbox\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FIȘIER Definește calea către fișierul de configurare dorit\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr "" " --sm-disable Dezactivează conexiunea cu managerul de sesiune\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Mesaje către o instanță Openbox care deja rulează:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Reîncarcă fișierul de configurare al Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Repornește Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Părăsește Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opțiuni pentru depanare:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Rulează Openbox în mod sincron\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Afișează output-ul pentru depanare\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Afișează output-ul pentru depanare a problemelor de " "focus\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Împarte ecranul în pseudo-ferestre xinerama\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Vă rugăm să anunțați erori la %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s necesită un argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Argument invalid în linia de comandă “%s”\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Un manager de ferestre rulează deja %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Selecția unui manager de ferestre pe ecranul %d a eșuat" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Managerul de ferestre curent %d nu se închide" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox e configurat pentru %d desktop, iar sesiunea curentă are %d. " "Configurația Openbox va fi ignorată." msgstr[1] "" "Openbox e configurat pentru %d desktop-uri, iar sesiunea curentă are %d. " "Configurația Openbox va fi ignorată." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "desktop %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Rulează %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Tasta specială “%s” este invalidă în combinația de taste/mouse" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Codul de tastă “%s” este invalid în combinația de taste" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Numele de tastă “%s” este invalid în combinația de taste" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Tasta cerută “%s” nu există pe ecran" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ru.po������������������������������������������������������������������������������0000644�0001753�0000144�00000035754�12544731073�011543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Russian translation of Openbox # Copyright (C) 2007 Mikael Magnusson # This file is distributed under the same license as the openbox package. # Alexey Remizov <alexey@remizov.pp.ru>, 2004. # Nikita Bukhvostov <dragon.djanic@gmail.com>, 2007. # Moroz Sergey L. <se.seam@gmail.com>, 2008. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-05-02 10:25+0200\n" "Last-Translator: Moroz Sergey L. <se.seam@gmail.com>\n" "Language-Team: None\n" "Language: ru\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 ? 0 : 1;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Запрошено неверное действие \"%s\". Такого действия нет." #: openbox/actions/execute.c:245 msgid "No" msgstr "Нет" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Да" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Запустить" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Неудачная конвертация пути \"%s\" из utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Отменить" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Выйти" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Вы действительно хотите выйти?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Выход" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Вы действительно хотите выйти из Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Выйти из Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Безымянное окно" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Завершение..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Нет ответа" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Похоже, окно \"%s\" не отвечает. Хотите принудительно послать сигнал выхода " "%s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Закончить процесс" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "Похоже, окно \"%s\" не отвечает. Хотите отключить его от Х-сервера?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Отключить" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Перейти..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Управление рабочими столами" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Добавить новый рабочий стол(_A)" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "Удалить последний рабочий стол(_R)" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Окна" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Рабочие столы" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Все рабочие столы" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "Положение(_L)" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Всегда наверху(_T)" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "Обычное(_N)" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Всегда внизу(_B)" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Отправить на рабочий стол(_S)" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Клиентское меню" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Восстановить(_E)" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Переместить(_M)" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Изменить размер(_Z)" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Свернуть в значок(_N)" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Распахнуть(_X)" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Рас/скрутить(_R)" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Рас/Декорировать(_D)" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Закрыть(_C)" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Неверная связь \"%s\" в комбинации мыши" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "В файле конфигурации определена неверная кнопка \"%s\"" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Невозможно создать директорию '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Закрыть" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Конфликтует с комбинацией клавиш из файла конфигурации" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Невозможно найти соответствующий файл меню \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Неудачное выполнение команды для меню канала \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Неверный выход меню канала \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Попытка доступа к меню \"%s\", которого не существует" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Еще..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Неверная кнопка \"%s\" в комбинации мыши" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Невозможно изменить на домашнюю директорию \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Невозможно открыть экран из переменной окружения DISPLAY." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Невозможно запустить библиотеку obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X сервер не поддерживает локаль." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Невозможно установить модификаторы локали для X сервера." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Невозможно найти правильный файл настройки, используется простой по " "умолчанию." #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "При обработке файлов конфигурации Openbox найдена одна или более " "синтаксических ошибок XML. Подробную информацию просмотрите в выводе " "stdout. Последняя ошибка замечена в файле \"%s\" строке %d, с сообщением: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Невозможно загрузить тему." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Ошибка синтаксиса Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "При перезапуске не удалось выполнить новую команду \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Синтаксис: openbox [options]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Опции:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Показать эту справку и выйти\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Показать версию и выйти\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Заменить текущий запущенный менеджер окон\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE Указать путь к используемому файлу настройки\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Разорвать соединение с менеджером сессии\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Отправка сообщений запущенному экземпляру Openbox:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Перезагрузить конфигурацию Openbox\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Перезапустить Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Выйти из Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Настройки отладки:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Запустить в режиме синхронизации\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Показать вывод отладки\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Показать вывод отладки для выделенного фокусом\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Разделить дисплей на фальшивые экраны xinerama\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Пожалуйста, сообщайте об ошибках на %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s требует указания аргумента\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Неверный аргумент командной строки \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Оконный менеджер уже запущен на экране %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Невозможно получить выбранный менеджер окон на экране %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Менеджер окон на экране %d еще запущен" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox сконфигурирован для %d рабочих столов, а в текущей сессии имеется " "%d. Изменены настройки Openbox." msgstr[1] "" "Openbox сконфигурирован для %d рабочих столов, а в текущей сессии имеется " "%d. Изменены настройки Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "рабочий стол %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Запуск %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Неверный модификатор \"%s\" в комбинации клавиши/мыши" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Неверный код ключа \"%s\" в комбинации клавиш" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Неверное имя ключа \"%s\" в комбинации клавиш" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Запрошенного ключа \"%s\" на экране не существует" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ��������������������openbox-3.6.1/po/sk.po������������������������������������������������������������������������������0000644�0001753�0000144�00000030134�12544731073�011515� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Translation of openbox.pot to Slovak. # Copyright (C) 2006 Mikael Magnusson # This file is distributed under the same license as the Openbox 3 package. # Jozef Říha <jose1711@gmail.com>, 2006, 2007. # František Eliáš <elias.frantisek@gmail.com>, 2009. # msgid "" msgstr "" "Project-Id-Version: Openbox-3.4.8\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2009-07-16 17:30+0200\n" "Last-Translator: Frantisek Elias <elias.frantisek@gmail.com>\n" "Language-Team: Slovak <sk@sk.org>\n" "Language: sk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 1 : (n>=2 && n<=4) ? 2 : 0;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Vyžiadaná neplatná akcia \"%s\". Takáto akcia neexistuje." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nie" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Áno" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Spustiť" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Nepodarilo sa skonvertovať cestu \"%s\" z utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Zrušiť" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Ukončiť" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Naozaj sa chcete odhlásiť?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Odhlásiť sa" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Určite chcete ukončiť Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Ukončiť Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Nepomenované okno" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Ukončujem proces..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Neodpovedá" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" #: openbox/client.c:3660 msgid "End Process" msgstr "Ukončiť proces" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "Zdá sa, že okno \"%s\" neodpovedá. Chcete ho odpojiť z X serveru?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Odpojiť" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Prejsť na..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Správa plôch" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Pridať novú plochu" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Odstrániť poslednú plochu" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Okná" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Plochy" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Všetky plochy" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Vrstva" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Vždy _navrchu" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "Nor_málna" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Vždy _dole" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Poslať na plochu" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Menu klienta" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Obnoviť" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Pre_sunúť" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Z_mena veľkosti" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Do iko_ny" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximalizovať" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Ro/_Zvinúť" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "(Ne)_Dekorovať" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Z_avrieť" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Neplatný kontext \"%s\" v priradení myši" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Neplatné tlačidlo \"%s\" špecifikované v konfiguračnom súbore" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Nebolo možné vytvoriť adresár '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Zavrieť" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konflikt priradenie klávesov v konfiguračnom súbore" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Nepodarilo sa nájsť platný súbor menu \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Nepodarilo sa spustiť príkaz pre pipe-menu \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Neplatný výstup z pipe-menu \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Pokus o sprístupnenie menu \"%s\", ale to neexistuje" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Viac..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Neplatné tlačidlo \"%s\" v priradení myši" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Nepodarilo sa prejsť do domovského adresára \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Nepodarilo sa otvoriť displej z premennej prostredia DISPLAY" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Nepodarilo sa inicializovať knižnicu obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X server nepodporuje locale." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Nemôžem nastaviť locale pre X server." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Nepodarilo sa nájsť platný konfiguračný súbor, použijem jednoduché " "implicitné nastavenia" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Nepodarilo sa nahrať tému." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Reštart zlyhal pri spúšťaní novej binárky \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntax: openbox [volby]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Volby:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Zobrazi tuto napovedu a skonci\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Zobrazi cislo verzie a skonci\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" " --replace Nahradi momentalne beziace sedenie window manazera\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Vypne spojenie k manazerovi sedenia\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Predavanie sprav beziacej instancii Openboxu:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Opatovne nacita konfiguraciu Openboxu\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Restartuje Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr "" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Volby ladenia:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Spustit v synchronnom mode\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Zobrazit ladiaci vystup\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Zobrazit ladiaci vystup pre manipulaciu s fokusom\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Rozdelit displej na neprave obrazovky xineramy\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Prosim hlaste chyby na %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s vyzaduje parameter\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Neplatny parameter prikazoveho riadku \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Okenny manazer uz bezi na obrazovke %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Nepodarilo sa získať výber okenného manažéra na obrazovke %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Okenný manažér na obrazovke %d sa neukončuje" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" msgstr[1] "" #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "plocha %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Spúšťam %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Neplatný kláves pre modifikátor \"%s\" v priradení klávesov/myši" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Neplatný kód klávesu \"%s\" v priradení klávesov" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Neplatný názov klávesu \"%s\" v priradení klávesov" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Požadovaný kláves \"%s\" na displeji neexistuje" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/sr.po������������������������������������������������������������������������������0000644�0001753�0000144�00000036270�12544731073�011533� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Serbian translations for Openbox package # Copyright (C) 2008 Dana Jansens # This file is distributed under the same license as the Openbox 3 package. # Jay A. Fleming <tito.nehru.naser@gmail.com>, 2008. # # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2010-05-18 15:43+0100\n" "Last-Translator: Jay Alexander Fleming <tito.nehru.naser@gmail.com>\n" "Language-Team: None\n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Захтевана је непостојећа акција „%s“." #: openbox/actions/execute.c:245 msgid "No" msgstr "Не" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Да" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Изврши" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Претварање путање „%s“ из УТФ-8 није успело" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Поништи" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Излаз" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Желите ли да одјавите сесију?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Одјављивање" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Желите ли да напустите Опенбокс?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Излаз из Опенбокса" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Безимени прозор" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Убијање..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Програм не одговара" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Изгледа да се прозор „%s“ не одазива. Желите ли да га приморате на излаз " "слањем сигнала %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Завршетак процеса" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Изгледа да се прозор „%s“ не одазива. Желите ли да га одспојите од графичког " "сервера?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Прекид везе" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Иди овде..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Управљање радним површима" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Додајте радну површ" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "Уклоните последњу радну површ" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Прозори" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Радне површине" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Све радне површине" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "Слој" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Увек изнад осталих" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "Номално" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Увек на дну" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Премести на радну површ" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Кориснички мени" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Врати" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Помери" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Промени величину" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Умањи" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Увећај" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Замотај/Одмотај прозор" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Не/Украси" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Затвори" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Погрешан садржај „%s“ у спајању миша" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Погрешно дугме „%s“ наведено у датотеци за подешавање" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Затвори" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Сукоб у комбинацији тастера у датотеци за подешавање" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Датотека за подешавање менија („%s“) није пронађена" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Није се могла извршити команда за цевни-мени „%s“: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Погрешан излаз из цевног-менија „%s“" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Покушај приступа менију „%s“ није успео јер он не постоји" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Више..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Погрешан тастер „%s“ у спајању миша" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Не могу се преместити у Личну фасциклу „%s“:%s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Није успео приступ екрану из променљиве окружења „DISPLAY“" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Није успела иницијализација „obrender“ библиотеке." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Графички сервер не подржава локалитет." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Не може се поставити измењивач локалитета за графички сервер" #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Нема исправне датотеке подешавања. Користиће се подразумевана подешавања." #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Код обраде датотека за подешавање пронађена је једна или више синтаксних " "грешака (XML). Последња је била у датотеци „%s“, у линији %d, са поруком: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Не могу да учитам тему." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Синтаксна грешка у Опенбоксу" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Поновно покретање није могло извршити нови програм „%s“: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Ауторска права (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Синтакса: openbox [опције]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Опције:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Прикажи ову помоћ и изађи\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Прикажи верзију и изађи\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Замени активни управљач прозора\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FILE Наведите путању до датотеке са подешавањима која ће се " "користити\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Онемогући везу са управљачем сесија\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Прослеђујем поруке покренутом примерку Опенбокса:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Поново учитај подешавања за Опенбокс\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Покрени опет Опенбокс\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Изађи из Опенбокса\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Опције отклањања грешака:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Изврши у истовременом режиму\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Прикажи излаз код отклањања грешака\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Прикажи излаз код отклањања грешака за руковање " "фокусом\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Подели екран на имитације „xinerama“ екрана\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Пријавите грешке на %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s захтева одговарајући аргумент\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Неисправан аргумент командне линије „%s“\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Управљач прозора је већ покренут на екрану %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Нисам могао да добијем избор управљача прозора на екрану %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Управљач прозора на екрану %d није завршио са радом" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Опенбокс је подешен за %d радну површ, а тренутна сесија их има %d. " "Преклапање Опенбокс подешавања." msgstr[1] "" "Опенбокс је подешен за %d радне површи, а тренутна сесија их има %d. " "Преклапање Опенбокс подешавања." msgstr[2] "" "Опенбокс је подешен за %d радних површи, а тренутна сесија их има %d. " "Преклапање Опенбокс подешавања." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "радна површина %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Извршавам %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Неисправан измењивач тастера „%s“ у комбинацији тастер/миш" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Неисправан код тастера „%s“ у комбинацији тастера" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Неисправно име тастера „%s“ у комбинацији тастера" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Захтевани тастер „%s“ не постоји на екрану" #: openbox/prompt.c:154 msgid "OK" msgstr "У реду" ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/sr@latin.po������������������������������������������������������������������������0000644�0001753�0000144�00000031713�12544731073�012660� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Serbian translations for Openbox package # Copyright (C) 2008 Dana Jansens # This file is distributed under the same license as the Openbox 3 package. # Jay A. Fleming <tito.nehru.naser@gmail.com>, 2008. # # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2010-05-18 15:43+0100\n" "Last-Translator: Jay Alexander Fleming <tito.nehru.naser@gmail.com>\n" "Language-Team: None\n" "Language: sr@latin\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\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" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Zahtevana je nepostojeća akcija „%s“." #: openbox/actions/execute.c:245 msgid "No" msgstr "Ne" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Da" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Izvrši" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Pretvaranje putanje „%s“ iz UTF-8 nije uspelo" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Poništi" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Izlaz" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Želite li da odjavite sesiju?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Odjavljivanje" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Želite li da napustite Openboks?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Izlaz iz Openboksa" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Bezimeni prozor" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Ubijanje..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Program ne odgovara" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Izgleda da se prozor „%s“ ne odaziva. Želite li da ga primorate na izlaz " "slanjem signala %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Završetak procesa" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Izgleda da se prozor „%s“ ne odaziva. Želite li da ga odspojite od grafičkog " "servera?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Prekid veze" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Idi ovde..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Upravljanje radnim površima" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Dodajte radnu površ" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "Uklonite poslednju radnu površ" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Prozori" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Radne površine" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Sve radne površine" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "Sloj" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Uvek iznad ostalih" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "Nomalno" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Uvek na dnu" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Premesti na radnu površ" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Korisnički meni" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Vrati" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Pomeri" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Promeni veličinu" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Umanji" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Uvećaj" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Zamotaj/Odmotaj prozor" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Ne/Ukrasi" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Zatvori" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Pogrešan sadržaj „%s“ u spajanju miša" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Pogrešno dugme „%s“ navedeno u datoteci za podešavanje" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Zatvori" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Sukob u kombinaciji tastera u datoteci za podešavanje" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Datoteka za podešavanje menija („%s“) nije pronađena" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Nije se mogla izvršiti komanda za cevni-meni „%s“: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Pogrešan izlaz iz cevnog-menija „%s“" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Pokušaj pristupa meniju „%s“ nije uspeo jer on ne postoji" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Više..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Pogrešan taster „%s“ u spajanju miša" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Ne mogu se premestiti u Ličnu fasciklu „%s“:%s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Nije uspeo pristup ekranu iz promenljive okruženja „DISPLAY“" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Nije uspela inicijalizacija „obrender“ biblioteke." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Grafički server ne podržava lokalitet." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Ne može se postaviti izmenjivač lokaliteta za grafički server" #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Nema ispravne datoteke podešavanja. Koristiće se podrazumevana podešavanja." #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Kod obrade datoteka za podešavanje pronađena je jedna ili više sintaksnih " "grešaka (XML). Poslednja je bila u datoteci „%s“, u liniji %d, sa porukom: " "%s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Ne mogu da učitam temu." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Sintaksna greška u Openboksu" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Ponovno pokretanje nije moglo izvršiti novi program „%s“: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Autorska prava (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sintaksa: openbox [opcije]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Opcije:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Prikaži ovu pomoć i izađi\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Prikaži verziju i izađi\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Zameni aktivni upravljač prozora\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FILE Navedite putanju do datoteke sa podešavanjima koja će " "se koristiti\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Onemogući vezu sa upravljačem sesija\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Prosleđujem poruke pokrenutom primerku Openboksa:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Ponovo učitaj podešavanja za Openboks\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Pokreni opet Openboks\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Izađi iz Openboksa\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Opcije otklanjanja grešaka:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Izvrši u istovremenom režimu\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Prikaži izlaz kod otklanjanja grešaka\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Prikaži izlaz kod otklanjanja grešaka za rukovanje " "fokusom\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Podeli ekran na imitacije „xinerama“ ekrana\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Prijavite greške na %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s zahteva odgovarajući argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Neispravan argument komandne linije „%s“\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Upravljač prozora je već pokrenut na ekranu %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Nisam mogao da dobijem izbor upravljača prozora na ekranu %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Upravljač prozora na ekranu %d nije završio sa radom" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openboks je podešen za %d radnu površ, a trenutna sesija ih ima %d. " "Preklapanje Openboks podešavanja." msgstr[1] "" "Openboks je podešen za %d radne površi, a trenutna sesija ih ima %d. " "Preklapanje Openboks podešavanja." msgstr[2] "" "Openboks je podešen za %d radnih površi, a trenutna sesija ih ima %d. " "Preklapanje Openboks podešavanja." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "radna površina %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Izvršavam %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Neispravan izmenjivač tastera „%s“ u kombinaciji taster/miš" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Neispravan kod tastera „%s“ u kombinaciji tastera" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Neispravno ime tastera „%s“ u kombinaciji tastera" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Zahtevani taster „%s“ ne postoji na ekranu" #: openbox/prompt.c:154 msgid "OK" msgstr "U redu" �����������������������������������������������������openbox-3.6.1/po/sv.po������������������������������������������������������������������������������0000644�0001753�0000144�00000031254�12544731073�011534� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Swedish messages for openbox # Copyright (C) 2007 Mikael Magnusson # This file is distributed under the same license as the openbox package. # Mikael Magnusson <mikachu@icculus.org>, 2007. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.5.0\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2011-08-01 18:11+0100\n" "Last-Translator: Mikael Magnusson <mikachu@icculus.org>\n" "Language-Team: None\n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Ogiltig action \"%s\" efterfrgades, men den finns inte." #: openbox/actions/execute.c:245 msgid "No" msgstr "Nej" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Ja" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Kr" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Lyckades inte konvertera skvgen \"%s\" frn utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Avbryt" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Avsluta" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "r du sker p att du vill logga ut?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Logga ut" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "r du sker p att du vill avsluta Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Avsluta Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Namnlst fnster" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Ddar..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Svarar inte" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Fnstret \"%s\" verkar inte svara. Vill du tvinga det att avslutas genom " "att skicka signalen %s?" #: openbox/client.c:3660 msgid "End Process" msgstr "Avsluta process" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Fnstret \"%s\" verkar inte svara. Vill du stnga dess anslutning till X-" "servern?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Stng anslutning" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "G dit..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Hantera skrivbord" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Lgg till nytt skrivbord" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Ta bort sista skrivbordet" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Fnster" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Skrivbord" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Alla skrivbord" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Lager" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Alltid _verst" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Alltid _underst" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Skicka till skrivbord" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Klientmeny" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "t_erstll" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Flytta" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "ndra s_torlek" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Mi_nimera" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Ma_ximera" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Rulla upp/ner" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "_Dekorationer" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Stn_g" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Ogiltig kontext \"%s\" i musbindning" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Ogiltig knapp \"%s\" angiven i konfigurationsfilen" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" "Openbox kompilerades utan std fr att ladda bilder. Ikoner i menyer kommer " "inte att laddas." #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Kunde inte skapa katalogen '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Stng" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Konflikt med annan tangentbindning i konfigurationsfilen" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Kunde inte hitta en giltig menyfil \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Misslyckades att kra kommando fr pipe-menyn \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Ogiltig utdata frn pipe-menyn \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Frskte ppna menyn \"%s\", men den finns inte" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Mer..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Ogiltig knapp \"%s\" i musbindning" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Kunde inte g till hemkatalogen \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Kunde inte ppna en display frn miljvariabeln DISPLAY." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Kunde inte initialisera obrender-biblioteket." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X-servern stdjer inte lokalisering." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Kan inte stta lokaliseringsmodifierare fr X-servern." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Kunde inte hitta en giltig konfigurationsfil, anvnder enkla standardvrden" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Ett eller flera fel ptrffades medan konfigurationsfilerna fr Openbox " "lstes in. Se stdout fr mer information. Det sista felet var i filen \"%s" "\" rad %d, med meddelandet: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Kunde inte ladda ett tema." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox syntaxfel" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Restart misslyckades att starta nytt program \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Copyright (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Syntax: openbox [alternativ]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Alternativ:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Visa den hr hjlpen och avsluta\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Visa versionen och avsluta\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Erstt den befintliga fnsterhanteraren\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FIL Ange skvgen till konfigurationsfil att anvnda\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Avaktivera anslutning till sessionshanteraren\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Skicka meddelanden till en exekverande instans av Openbox:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Ladda om Openbox konfiguration\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Starta om Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Avsluta Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Debug-alternativ:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Kr i synkroniserat lge\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr " --startup CMD Kr CMD efter uppstart\n" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Visa debuginformation\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus Visa debuginformation fr fokushantering\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr " --debug-session Visa debuginformation fr sessionshantering\n" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Dela skrmen i simulerade xinerama-skrmar\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Rapportera buggar till %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s krver ett argument\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Ogiltigt kommandoradsargument \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "En fnsterhanterare krs redan p skrm %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Kunde inte erhlla fnsterhanterarmarkeringen p skrm %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Fnsterhanteraren p skrm %d avslutar inte" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox r instllt p %d skrivbord, men nuvarande session har %d. Anvnder " "sessionens instllning." msgstr[1] "" "Openbox r instllt p %d skrivbord, men nuvarande session har %d. Anvnder " "sessionens instllning." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "skrivbord %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Kr %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Ogiltig modifikationstangent \"%s\" i tangent-/musbindning" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Ogiltig tangentkod \"%s\" i tantentbindning" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Ogiltigt tangentnamn \"%s\" i tangentbindning" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Efterfrgad tangent \"%s\" finns inte p displayen" #: openbox/prompt.c:154 msgid "OK" msgstr "OK" ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/tr.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032253�12544731073�011531� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Turkish translation of openbox. # Copyright (C) 2008 Dana Jansens # This file is distributed under the same license as the openbox package. # Tutku Dalmaz <mektup@tutkudalmaz.org>, 2008. # Muhammet Kara <muhammet.k@gmail.com>, 2011. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2011-04-28 00:23+0300\n" "Last-Translator: Muhammet Kara <muhammet.k@gmail.com>\n" "Language-Team: Turkish <gnome-turk@gnome.org>\n" "Language: tr\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 ? 0 : 1;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "\"%s\" geçersiz eylem isteği. Böyle bir eylem yok." #: openbox/actions/execute.c:245 msgid "No" msgstr "Hayır" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Evet" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Çalıştır" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "\"%s\" yolu utf8'e çevrilmesi başarısız oldu" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "İptal" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Çık" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Oturumu kapatmak istediğinizden emin misiniz?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Oturumu Kapat" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Openbox'tan çıkmak istediğinize emin misiniz?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Openbox'tan Çık" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "İsimsiz Pencere" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Sonlandırılıyor..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Cevap Vermiyor" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "\"%s\" penceresi cevap veriyor gibi görünmüyor. %s sinyali göndererek zorla " "sonlandırmak ister misiniz?" #: openbox/client.c:3660 msgid "End Process" msgstr "Süreci Sonlandır" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "\"%s\" penceresi cevap veriyor gibi görünmüyor. X sunucusu ile bağlantısını " "sonlandırmak ister misiniz?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Bağlantıyı Kes" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Oraya git..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Masaüstlerini yönet" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Yeni masaüstü ekle" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Son masaüstünü kaldır" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Pencereler" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Masaüstleri" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Tüm masaüstleri" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "_Katman" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "_Her zaman üstte" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Normal" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "_Her zaman altta" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "_Masaüstüne gönder" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "İstemci menüsü" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Eski durumuna getir" #: openbox/client_menu.c:398 msgid "_Move" msgstr "_Taşı" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "_Yeniden boyutlandır" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "_Simge durumuna küçült" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "_Ekranı kapla" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Dürele/Aç" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Geri Al/Kapla" #: openbox/client_menu.c:418 msgid "_Close" msgstr "_Kapat" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Fare bağında geçersinz \"%s\" içeriği" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Yapılandırılma dosyasında belirtilmiş geçersiz \"%s\" düğmesi" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Kapat" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Yapılandırma dosyasındaki tuş bağlantısında çakışma" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "\"%s\" geçerli menü dosyası bulunamadı" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "İletim menüsü için \"%s\": %s komutunun çalıştırılması başarısız oldu" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "\"%s\" iletim menüsü için geçersiz çıkış" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "\"%s\" menüsüne erişilmeye çalışıldı fakat bu menü yok" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Daha..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Fare bağında geçersiz \"%s\" tuşu" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "\"%s\": %s ev dizini değiştirilemedi" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "DISPLAY çevre değişkeninde görüntünün açılması başarısız oldu." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "ObRender kitaplığının sıfırlanması başarısız oldu." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X sunucusu dil ayarlarını desteklemiyor." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "X sunucu için dil ayarları değiştiricisi ayarlanamadı." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Geçerli yapılandırma dosyası bulunamadı, bazı basit öntanımlı ayarlar " "kullanılıyor" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Openbox yapılandırma dosyası ayrıştırılırken bir yada daha fazla XML " "sözdizimi hatası bulundu. Daha fazla bilgi için stdout çıktısına bakınız. " "Son hata \"%s\" dosyası içerisindeki %d satırında %s hata iletisi ile görüldü" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Tema yüklenemedi." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox Sözdizimi Hatası" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "" "Yeniden başlatmadaki \"%s\": %s çalıştırılabilir dosyalarının başlatılması " "başarısız oldu" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Telif Hakkı (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Sözdizimi: openbox [seçenekler]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Seçenekler:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Yardımı görüntüle ve çık\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Sürüm bilgisini görüntüle ve çık\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Güncel pencere yöneticisini değiştir\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" " --config-file FILE Kullanılacak yapılandırma dosyasının yolunu belirtir\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr "" " --sm-disable Oturum yöneticisiyle olan bağlanıyı etkisiz kıl\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "İletiler çalışan bir Openbox örneğine aktarılıyor:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Openbox yapılandırmasını yeniden yükle\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Openbox'ı yeniden başlat\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Openbox'tan çık\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Hata ayıklama seçenekleri:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Eş zamanlı kipte çalış\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Hata ayıklama çıktısını göster\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Özelleşmiş durum için hata ayıklama çıktısını göster\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Görüntü gerçek olmayan ekranlara bölünür\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Lütfen hataları %s adresine bildiriniz\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s dosyası bir değişkene ihtiyaç duyuyor\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "\"%s\" geçersiz komut satırı değişkeni\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "%d ekranınz zaten bir pencere yöneticixi çalışıyor" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Seçilen %d ekranında pencere yöneticisi bulunamadı" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "%d ekranındaki pencere yöneticisinden çıkılamıyor" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox %d masaüstü için yapılandırılmıştır fakat güncel oturumda %d " "masaüstü var. Openbox yapılandırması geçersiz kılınıyor." msgstr[1] "" "Openbox %d masaüstleri için yapılandırılmıştır fakat güncel oturum %d dir. " "Openbox yapılandırmasının üzerien yazılıyor." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "%i masaüstü" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "%s çalışıyor" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Klavye/fare bağında geçersiz \"%s\" tuş değiştirici" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Tuş bağında \"%s\" geçersiz tuş kodu" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Tuş bağında \"%s\" geçersiz tuş adı" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "İstenilen \"%s\" tuşu görüntüde yok" #: openbox/prompt.c:154 msgid "OK" msgstr "Tamam" �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/uk.po������������������������������������������������������������������������������0000644�0001753�0000144�00000036117�12544731073�011526� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Ukrainian translation for Openbox. # Copyright (C) 2007 Dmitriy Moroz # Copyright (C) 2008 Serhiy Lysovenko # This file is distributed under the same license as the openbox package. # Dmitriy Moroz <zux@dimaka.org.ua>, 2007. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.2\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-12-09 20:12+0200\n" "Last-Translator: Serhiy Lysovenko <lisovenko.s[at]gmail[dot]com>\n" "Language-Team: Ukrainian <linux.org.ua>\n" "Language: uk\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 ? 0 : 1;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Здійснено запит на неіснуючу дію \"%s\"." #: openbox/actions/execute.c:245 msgid "No" msgstr "Ні" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Так" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Виконати" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Не вдалося конвертувати шлях \"%s\" з utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Скасувати" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Вихід" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Ви дійсно бажаєте завершити сеанс?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Вийти" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Ви дійсно хочете вийти з Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Вийти з Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Неназване вікно" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Знищення..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Не відповідає" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Схоже, вікно \"%s\" не відповідає. Чи бажаєте примусово завершити програму, " "пославши сигнал \"%s\"?" #: openbox/client.c:3660 msgid "End Process" msgstr "Примусове завершення" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "Вікно \"%s\" не відповідає. Чи бажаєте його від'єднати від X сервера?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Від'єднати" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Перейти..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Керування стільницями" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "Додати нову стільницю (_A)" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "Видалити останню стільницю (_R)" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Вікна" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Стільниці" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "На всіх стільницях" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "Шар (_L)" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Над усіма вікнами (_T)" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "Звичайне положення (_N)" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Під вікнами (_B)" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Відправити на стільницю (_S)" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Меню клієнта" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "Відновити (_E)" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Перемістити (_M)" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Змінити розмір (_Z)" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Згорнути (_N)" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Розгорнути (_X)" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "Скрутити/Розкрутити (_R)" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "Перемкнути декорацію (_D)" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Закрити (_C)" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Некоректний контекст \"%s\" в прив'язці клавіш мишки" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Некоректна кнопка \"%s\" вказана у файлі конфігурації" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Не вдалося створити каталог '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Закрити" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Конфлікт прив'язки клавіш у файлі конфігурації" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Не вдалося знайти коректний файл меню \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Не вдалося виконати команду для pipe-меню \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Некоректний вивід з pipe-меню \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Спроба доступу до неіснуючого меню \"%s\"" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Більше..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Некоректна клавіша \"%s\" в прив'язці клавіш мишки" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Не вдалося перейти до домашнього каталогу \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Не вдалося відкрити дисплей зі змінної середовища DISPLAY" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Не вдалося ініцаілізувати бібліотеку obrender" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X-сервер не підтримує локалі" #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Не можу встановити модифікатори локалі для X-сервера" #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" "Не вдалося знайти коректний файл конфігурації, використовую стандартні " "налаштування" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Виявлено одну або більше синтаксичних помилок XML під час сканування " "конфігураційних файлів Openbox. Щоб дізнатись більше - перегляньте stdout. " "Остання помічена помилка була в файлі \"%s\", стрічка %d, повідомлення: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Не вдалося завантажити тему" #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "синтаксична помилка Openbox" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "" "При перезавантаженні не вдалося виконати новий виконуваний файл \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Авторські права (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Синтакс: openbox [параметри]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Параметри:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Показати цю довідку і вийти\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --vesrion Показати версію і вийти\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace Замінити запущений менеджер вікон\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file ФАЙЛ Вказати шлях до конфігураційного файлу\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Вимкнути з'єднання з менеджером сеансу\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Передача повідомлень процесу Openbox, що виконується\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Перезавантажити конфігурацію Openbox'у\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Перезапустити Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Вийти з Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Налагоджувальні параметри\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Запустити в синхронному режимі\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Показувати інформацію налагоджування\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Показувати відлагоджувальний вивід для керування " "фокусом\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Розбити екран на фальшиві екрани xinerama\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Будь-ласка, повідомляйте про помилки на %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s потребує аргументу\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Некоректний аргумент \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "На дисплеї %d вже запущений менеджер вікон" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Не можу запустити менеджера вікон на дисплеї %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Менеджер вікон на дисплеї %d не завершається" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox сконфігуровано на %d дисплеїв, але в поточній сесії використовується " "%d. Перевищення конфігурації Openbox." msgstr[1] "" "Openbox сконфігуровано на %d дисплеїв, але в поточній сесії використовується " "%d. Перевищення конфігурації Openbox." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "стільниця %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Виконується %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "" "Некоректна назва модифікатору \"%s\" у прив'язці клавіш клавіатури/мишки" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Некоректний код клавіші \"%s\" у прив'язці клавіш" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Некоректна назва клавіші \"%s\" у прив'язці клавіш" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Потрібної кнопки \"%s\" нема на екрані" #: openbox/prompt.c:154 msgid "OK" msgstr "Гаразд" �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/vi.po������������������������������������������������������������������������������0000644�0001753�0000144�00000032205�12544731073�011517� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Vietnamese messages for Openbox. # Copyright (C) 2007 Dana Jansens # This file is distributed under the same license as the Openbox package. # Quan Tran <qeed.quan@gmail.com>, 2007. # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-03-11 02:07+0100\n" "Last-Translator: Quan Tran <qeed.quan@gmail.com>\n" "Language-Team: None\n" "Language: vi\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 ? 0 : 1;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "Hành động \"%s\" làm không được. Hành động đó không có." #: openbox/actions/execute.c:245 msgid "No" msgstr "Không" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "Được" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "Hành động" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "Không thể chuyển chỗ \"%s\" từ utf8" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "Bãi bỏ" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "Đi ra" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "Có chắc chắn đi ra không?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "Đi ra" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "Có chắc chắn đi ra Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "Đi ra Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "Cửa sổ không tên" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "Đang giết..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "Không phản ứng" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" "Cái cửa sổ \"%s\" không phản ứng được. Có muốn bắt nó đi ra bằng gửi đi %s " "tính hiệu?" #: openbox/client.c:3660 msgid "End Process" msgstr "Giết Process" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" "Cái cửa sổ \"%s\" không phản ứng được. Có muốn rời nó ra X server không" #: openbox/client.c:3666 msgid "Disconnect" msgstr "Rời ra" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "Đi đến chỗ đó" #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "Quản lý chỗ làm việc" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "_Cộng thêm chỗ làm việc" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "_Bỏ lát chỗ làm việc" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "Cửa sổ" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "Chỗ làm việc" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "Tất cả chỗ làm việc" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "Lớ_p" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "Luôn luôn ở _trên" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "_Bình thường" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "Luôn luôn ở _dưới" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "Gửi đến chỗ làm _việc" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "Khách thực đơn" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "_Hoàn lại" #: openbox/client_menu.c:398 msgid "_Move" msgstr "Chu_yển đi" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "Làm _nhỏ hơn/lớn hơn" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "Biến _xuống" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "Biến _lớn nhất" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "_Cuốn lên/xuống" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "_Trang/Không Trang trí" #: openbox/client_menu.c:418 msgid "_Close" msgstr "Đón_g" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "Vô hiệu văn cảnh \"%s\" ở trong chuột đặt" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "Sai nút \"%s\" ở trong hình thể" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "Không thể chế directory '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "Đóng" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "Xung đột với chữ trói ở trong hình thể" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "Không có thể tìm vững chắc thực đơn \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "Không có thể chạy lệnh cho ống-thực đơn \"%s\": %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "Vô hiệu sản xuất của ống-thực đơn \"%s\"" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "Thử mở thực đơn \"%s\" nhưng mà cái đó không có" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "Thêm nữa" #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "Vô hiệu nút \"%s\" ở trong máy chuột đặt" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "Không thể đổi đến chỗ nhà \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "Không mở hình từ DISPLAY được." #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "Không mở được thư viện obrender." #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "Chương trình X không có locale cho tiếng nay." #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "Không thể dùng locale cho chương trình X." #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "Không thể tìm ra hình thể, sẽ dùng bắt đầu hình thể" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "Một hay là trên một XML danh từ không đúng tìm thấy ở trong Openbox tài " "liệu. Coi stdout cho biết thêm. Cai sai lầm cuối cùng ở trong Openbox tài " "liệu \"%s\" ở hàng %d với lời: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "Không thể đọc theme." #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox danh từ không đúng" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "Bắt đầu lại hỏng mở được executable mới \"%s\": %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "Bản quyền (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "Cách dùng: openbox [chọn lựa]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "Chọn lựa:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help Trưng bày giúp đỡ này và đi ra\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version Trưng bày số của chương trình và đi ra\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" " --replace Thay thế chương trình quản lý cửa sổ cho đến openbox\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE Chỉ chỗ đường cho tài liệu để dùng\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable Tắt liên lạc đến session quản lý\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "Đưa thông báo cho chương trình Openbox:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure Bắt đầu lại Openbox's tài liệu\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart Bắt đầu lại Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit Đi ra Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "Debugging chọn lựa:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync Chạy trong cách thức synchronous\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug Trưng bày debugging đoàn chữ\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" " --debug-focus Trưng bày debugging đoàn chữ cho điều khiển tập trung\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama Tách trưng bày vào giả xinerama màn\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "Làm ơn báo cáo bugs ở chỗ %s\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s cần chọn lựa một tài liệu\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "Mệnh lệnh viết sai \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "Chương trình quản lý cửa sổ khác đang chạy trên màn hình %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "Không thể lấy được chương trình quản lý cửa sổ ở trên màn hình %d" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "Chương trình quản lý cửa sổ trên màn hình %d không đi ra" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox đặt cho %d chỗ làm việc, nhưng mà session hiện đại có %d. Lật đổ " "openbox tài liệu cho cái mới." msgstr[1] "" "Openbox đặt cho %d chỗ làm việc, nhưng mà session hiện đại có %d. Lật đổ " "openbox tài liệu cho cái mới." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "chỗ làm việc %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "Đan Chạy %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "Vô hiệu Modifier key \"%s\" ở chỗ máy keyboard/chuột đặt" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "Vô hiệu key mã \"%s\" ở chỗ key đặt" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "Vô hiệu key tên \"%s\" ở chỗ key đặt" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "Yêu cầu key \"%s\" không có ở chỗ màn hình" #: openbox/prompt.c:154 msgid "OK" msgstr "Đồng ý" �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/zh_TW.po���������������������������������������������������������������������������0000644�0001753�0000144�00000030460�12544731073�012135� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Traditional Chinese Messages for openbox. # Copyright (C) 2006 Mikael Magnusson # This file is distributed under the same license as the openbox package. # Wei-Lun Chao <chaoweilun@gmail.com>, 2006, 07. # 洪任諭 <pcman.tw@gmail.com>, 2008 # msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-03-06 01:01+0800\n" "Last-Translator: 洪任諭 <pcman.tw@gmail.com>\n" "Language-Team: Chinese (traditional) <zh-l10n@linux.org.tw>\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "要求的動作「%s」無效。無此類動作存在。" #: openbox/actions/execute.c:245 msgid "No" msgstr "否" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "是" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "執行" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "轉換路徑「%s」自 utf8 時失敗" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "取消" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "離開" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "你確定要登出嗎?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "登出" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "你確定要離開 Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "離開 Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "未命名視窗" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "正在中止..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "沒有回應" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "視窗「%s」似乎已經停止回應。 你想送出 \"%s\" 訊息強制結束程式嗎?" #: openbox/client.c:3660 msgid "End Process" msgstr "結束 Process" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "視窗「%s」似乎已經停止回應。 你想從 X 伺服器將它斷線嗎?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "斷線" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "到那裏去…" #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "管理桌面" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "加入新桌面(_A)" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "移除尾端桌面(_R)" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "視窗" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "桌面" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "所有桌面" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "層次(_L)" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "最上層(_T)" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "一般(_N)" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "最下層(_B)" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "傳送到桌面(_S)" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "客戶端選單" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "還原(_E)" #: openbox/client_menu.c:398 msgid "_Move" msgstr "移動(_M)" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "調整大小(_Z)" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "最小化(_N)" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "最大化(_X)" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "向上/向下捲動(_R)" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "開/關視窗裝飾(_D)" #: openbox/client_menu.c:418 msgid "_Close" msgstr "關閉(_C)" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "與滑鼠組合的上下文「%s」無效" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "在配置檔中指定的按鈕「%s」無效" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "無法製作目錄'%s':%s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "關閉" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "與配置檔中的按鍵組合衝突" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "無法找到有效的選單檔案「%s」" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "執行命令於管線選單「%s」時失敗:%s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "從管線選單「%s」的輸出無效" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "試圖存取選單「%s」但是它不存在" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "更多…" #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "與滑鼠組合的按鈕「%s」無效" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "無法變更到主目錄「%s」:%s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "開啟依 DISPLAY 環境變數所指的顯示時失敗。" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "初始化 obrender 函式庫時失敗。" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X 伺服器不支援語區。" #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "無法設定用於 X 伺服器的語區修飾項。" #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "無法找到有效的配置檔案,而使用某些簡單的預設值" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "解析 Openbox 設定檔 XML 語法時發現一個或多個錯誤。 查看 stdout 以獲得更多資" "訊。 最後一個發現的錯誤在檔案 \"%s\" 第 %d 行。訊息:%s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "無法載入佈景主題。" #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox 語法錯誤" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "重新啟動以執行新的可執行檔「%s」時失敗:%s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "著作權 (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "語法:openbox [選項]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "選項:\n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help 顯示此說明然後離開\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version 顯示版本然後離開\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace 替換目前執行的視窗管理員\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file <檔案> 指定要使用的設定檔路徑\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable 停用與執行階段管理程式的連結\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "傳遞訊息到執行中的 Openbox 實體:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure 重新載入 Openbox 配置\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart 重新啟動 Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit 結束 Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "偵錯選項:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync 在同步模式中運行\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug 顯示偵錯輸出\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus 顯示焦點處理的偵錯輸出\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama 分割顯示以進入假造的 xinerama 螢幕\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "請向 %s 報告錯誤\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s 需要一個參數\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "無效的命令列引數「%s」\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "螢幕 %d 中已經有視窗管理員在運行" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "無法於螢幕 %d 獲選為視窗管理員" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "螢幕 %d 中的視窗管理員並未離開" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox 原先被設定為使用 %d 個桌面,但目前的作業階段有其他程式變更設定為 %d " "個,因此忽略 Openbox 的設定" #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "桌面 %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "正在運行 %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "與鍵盤/滑鼠組合的輔助按鍵「%s」無效" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "與按鍵組合的鍵碼「%s」無效" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "與按鍵組合的鍵名「%s」無效" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "要求的按鍵「%s」不存在於畫面之中" #: openbox/prompt.c:154 msgid "OK" msgstr "確定" ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/zh_CN.po���������������������������������������������������������������������������0000644�0001753�0000144�00000030325�12544731073�012103� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Simplified Chinese Messages for openbox. # Copyright (C) 2007 Mikael Magnusson # This file is distributed under the same license as the openbox package. # # Xiaoyu PENG <peng.xiaoyu@gmail.com>, 2007. # Shaodong Di <gnuyhlfh@gmail.com>, 2008. # zhou sf <sxzzsf@gmail.com>, 2008. msgid "" msgstr "" "Project-Id-Version: Openbox 3.4.7\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: 2008-03-11 22:07+0800\n" "Last-Translator: zhou sf <sxzzsf@gmail.com>\n" "Language-Team: Simplified Chinese\n" "Language: zh_CN\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 ? 0 : 1;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "请求的动作 \"%s\" 无效。该动作不存在。" #: openbox/actions/execute.c:245 msgid "No" msgstr "否" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "是" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "执行" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "从 utf8 转换路径 \"%s\" 时失败" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "取消" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "退出" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "确认注销吗?" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "注销" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "确认退出 Openbox?" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "退出 Openbox" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "未命名窗口" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "杀死中..." #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "无响应" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "窗口 \"%s\" 似乎失去了响应. 发送信号 %s 以强制退出吗?" #: openbox/client.c:3660 msgid "End Process" msgstr "结束进程" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "窗口 \"%s\" 似乎失去了响应. 断开其与 X 服务器的连接?" #: openbox/client.c:3666 msgid "Disconnect" msgstr "断开连接" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "跳转到..." #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "管理桌面" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "添加新桌面(_A)" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "移除最后一个桌面(_R)" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "窗口" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "桌面" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "所有桌面" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "层(_L)" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "总在最上层(_T)" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "常规(_N)" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "总在最底层(_B)" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "发送到桌面(_S)" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "客户端菜单" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "还原(_E)" #: openbox/client_menu.c:398 msgid "_Move" msgstr "移动(_M)" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "调整大小(_Z)" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "最小化(_N)" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "最大化(_X)" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "卷起/放下(_R)" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "去除装饰(_D)" #: openbox/client_menu.c:418 msgid "_Close" msgstr "关闭(_C)" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "鼠标绑定中无效的上下文 \"%s\"" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "配置文件中指定的按钮 \"%s\" 无效" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "无法创建目录 '%s': %s" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "关闭" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "配置文件中的组合键冲突" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "无法找到有效的菜单文件 \"%s\"" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "执行管道菜单的命令 \"%s\" 时失败: %s" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "管道菜单 \"%s\" 的输出无效" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "尝试读取菜单 \"%s\",但是它不存在" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "更多..." #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "鼠标绑定中的无效按键 \"%s\"" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "无法切换到主目录 \"%s\": %s" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "在打开DISPLAY环境变量所指定的X显示时失败。" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "初始化obrender库时失败。" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "X服务器不支持locale。" #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "无法设置X服务器的locale修饰键。" #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "无法找到有效的配置文件,使用一些简单的默认值" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" "当解析 Openbox 配置文件时发现一个或多个 XML 语法错误. 更多信息查看 stdout. " "最近的错误出现于文件 \"%s\" 中第 %d 行的: %s" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "无法读入主题。" #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "Openbox 语法错误" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "重新启动以执行新的可执行文件 \"%s\" 时失败: %s" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "版权所有 (c)" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "用法: openbox [选项]\n" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" "\n" "选项: \n" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr " --help 显示该帮助信息后退出\n" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr " --version 显示版本号后退出\n" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr " --replace 替换当前运行的窗口管理器\n" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr " --config-file FILE 使用指定的配置文件\n" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr " --sm-disable 禁止连接到会话管理器\n" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" "\n" "传递信息给运行中的 Openbox 实例:\n" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr " --reconfigure 重新载入 Openbox 的配置\n" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr " --restart 重新启动 Openbox\n" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr " --exit 退出 Openbox\n" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" "\n" "调试选项:\n" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr " --sync 在同步模式中运行\n" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr " --debug 显示调试输出\n" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr " --debug-focus 显示焦点处理的调试输出\n" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr " --debug-xinerama 分割显示到伪造的 xinerama 屏幕中\n" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" "\n" "请向 %s 报告错误\n" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "%s 需要一个参数\n" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "无效的命令行参数 \"%s\"\n" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "已经有窗口管理器运行在屏幕 %d" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "在屏幕 %d 无法被选为窗口管理器" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "屏幕 %d 的窗口管理器没有退出" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" "Openbox 配置了 %d 个桌面, 当前会话拥有 %d 桌面. 覆盖 Openbox 的配置." msgstr[1] "" "Openbox 配置了 %d 个桌面, 当前会话拥有 %d 桌面. 覆盖 Openbox 的配置." #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "桌面 %i" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "运行 %s" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "键盘/鼠标的绑定 \"%s\" 无效" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "按盘绑定中无效的键盘码 \"%s\"" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "按键绑定中无效的键名 \"%s\"" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "请求的按键 \"%s\" 在显示中不存在" #: openbox/prompt.c:154 msgid "OK" msgstr "好" �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/af.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021332�12544731073�011632� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� �����}�������T�� ���i��6���s��#�����R�����1���!��D���S��J�����&�����2��� ��6���=��E���t��'�����G�����/���*��6���Z�������@���������� ����� �����#��������8��;���V�� �����?���������������/����� ���%��:���2�� ���m�����x����������������������-�����?�����2���!��M���T������� �����>�����*�����@���)��#���j��*�����2�����2�����:�����(���Z�� ����� ����� �������������������� ������������������������������7����������?��������" �����* ��.���E ��T���t ��m��� �����7!��.���L!��H���{!��1���!�����!�����"�����"��2���("�����["�����^"�����v"�����}"�����"�����"�����"�� ���"�����"�� ���"�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: 3.5.0 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2012-02-20 11:26+0700 Last-Translator: aspersieman <aspersieman@gmail.com> Language-Team: Afrikaans Language: af MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Ontfouting opsies: � Opsies: � Voer die boodskappe na 'n huidige Openbox instansie: � Rapporteer asseblief foute aan %s � --config-file FILE Spesifiseer die pad na die konfigurasielêers om te gebruik � --debug Vertoon ontfouting afvoere � --debug-focus Vertoon ontfouting afvoer vir fokus hantering � --debug-xinerama Verdeel die vertoning in nagemaakte xinerama skerms � --exit Verlaat Openbox � --help Vertoon die help en verlaat � --reconfigure Herlaai Openbox se konfigurasie � --replace Vervang die huidige lopende venster bestuurder � --restart Herbegin Openbox � --sm-disable Skakel die konneksie na die sessie bestuurder af � --sync Loop in gelyktydige mode � --version Vertoon die weergawe en verlaat �%s benodig 'n argument �'n Ventster bestuurder is reeds besig om te hardloop op skerm %d�Alle werksareas�Altyd _onder�Altyd _bo op�Is jy seker jy wil Openbox verlaat?�Is jy seker jy wil uit teken?�Gepoog vir toegang tot spyskaart "%s", maar dit bestaan nie�Kanselleer�Kan nie die plaaslikheids wysigers van die X-bediener stel nie.�Kliënt spyskaart�Sluit�Konflik met sleutelbinding in konfigurasielêer�Kopiereg (c)�Kon nie venster bestuurder seleksie op skerm %d verkry nie�Werksareas�Sluit Af�Beëindig Proses�Voer uit�Verlaat�Verlaat Openbox�Versuim om die pad "%s" vanaf utf8 te omskep.�Versuim om die bevel uit te voer vir die pyp-spyskaart "%s": %s�Versuim om die obrender biblioteek te inisialiseer�Versuim om die vertoning vanaf die DISPLAY omgewings veranderlike oop te maak�Gaan daarna...�M_inimaliseer�Ongeldige aksie "%s" versoek. Daar is geen sodanige aksie nie.�Ongeldige knoppie "%s" in die muis binding�Ongeldige knoppie "%s" is gespesifiseer in die konfigurasielêer�Ongeldige opdrag lyn argument "%s" �Ongeldige konteks "%s" in die muis binding�Ongeldige sleutel kode "%s" in die sleutel binding�Ongeldige sleutel naam "%s" in die sleutel binding�Ongeldige wysiger sleutel "%s" in die sleutel/muis binding�Ongeldige uitvoer van pyp-spyskaart "%s"�Beëindig...�Teken Uit�M_aksimeer�Beheer werksareas�Meer...�Nee�Reageer Nie�OK�Een of meer XML sintaksfoute is gevind tydens die ontleding van die Openbox konfigurasielêers. Sien stdout vir meer informasie. Die laaste fout gesien was in die lêer "%s" lyn %d, met die boodskap: %s�Openbox Sintaksfout�Openbox is gekonfigureer vir %d werksarea, maar die huidige sessie het %d. Oorheers die Openbox konfigurasie.�Openbox is gekonfigureer vir %d werksareas, maar die huidige sessie het %d. Oorheers die Openbox konfigurasie.�_Herstel�Versoekte sleutel "%s" bestaan nie op die vertining nie�V_erstel Grootte�Herlaai het versuim om die nuwe uitvoering "%s" uit te voer: %s�Loop %s�Sintaks: openbox [opsies] �Die venster bestuurder op skerm %d verlaat nie�Die venster "%s" lyk nie asof dit reageer nie. Wil jy dit afsluitvan die X-bediener?�Die venster "%s" lyk nie asof dit reageer nie. Wil jy dit vorseer om te eindig deur dit die %s sein te stuur?�Ve_rsier/Nie-versier�Kan nie verander na die tuis gids "%s" nie: %s�Kan nie 'n geldige konfigurasielêer, gebruik eenvoudige verstek waardes�Kan nie die geldige spyskaart lêer "%s" vind nie�Kanie 'n tema laai nie.�Naamlose Venster�Vensters�Die X-bediener ondersteun nie die plaaslikheid nie�Ja�Voeg _nuwe werksarea by�_Sluit�_Laag�_Skuif�_Normaal�_Verwyder vorige werksarea�_Rol op/af�_Stuur na werksarea�werksarea %i�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ar.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000020261�12544731073�011646� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000��������������������������������������������������������������������������������������������������������������������������������������������������������������������������O���0�����q��� ������������������������� �����1����������/�����B���*��C���m��#�����1�����5��� ��C���= ��&��� ��@��� ��.��� ��3��� �� ���L �����Y �����k ��&���z ��!��� ��3��� ����� ��-��� �� ���, �����8 ��(���> �� ���g �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��$��� ��,��� ��#��� ��%��� ��$���( ��$���M ��.���r ��"��� �� ��� ����� �� ��� ����� ����� ����� ����� ����� �������0��������H��1���P�� ���������� �����+�����>�����%��� �����F�����^�����m��!���u������������������������������������� ����������"������������>��E���R��2�����7�����V�����L���Z��<�����E�����M���*��X���x��>�����H�����>���Y��:���������������!�����:���0��C���k��Q����� �����O��� �����\�����t��N���}���������������������� ���"�� ���-��%���:��4���`��.�����&�����B��������.�� ���C��8���Q��A�����2�����<�����G���<��G�����e�����*���2�� ���]�����k�� �����������������������������������E��������6��Q���F�� ����� ����������?�����q���%��4�����&���������� �����/��������I��&���P�� ���w�� ����� ����������$�����!�����*����������������������������!��� ���$�������K���&����������8�������5���:����������������������������7���4���%���H����������9�������@���+���,���C��� ���A������������������.��� ���������� ������D���2���E���������F�������"������6���I���������������0�������B���N�������(������������������������=��������������/���;����������<���>��������������'������*�������)���?������ �������O���M�������-����������#���1�������G��� ���3���J���L���������#�� ����$��0��<��P��d��x��%��1���V��8�����#����� �����?������������Y����������X ��-���������� ������������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�Project-Id-Version: Openbox 3.4.3 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2012-01-18 22:41-0000 Last-Translator: كريم اولاد الشلحة <herr.linux88@gmail.com> Language-Team: Arabic <herr.linux88@gmail.com> Language: ar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.11.4 Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : n>=3 && n<=10 ? 2 : 3 X-Poedit-Language: Arabic X-Poedit-Country: Morocco � خيارات التنقيح: � الخيارات: � تمرير رسائل لمرّة تعمل من أوبن‌بوكس: � من فضلك أبلغ عن العلل إلى %s � --debug اعرض خرْج التنقيح � --debug-focus اعرض خرج التنقيح للتعامل مع البؤرة � --debug-xinerama شق العرض إلى شاشات xinerama زائفة � --exit الخروج من أوبن‌بوكس � --help اعرض هذه المساعدة ثم اخرج � --reconfigure أعِد تحميل إعدادات أوبن‌بوكس � --replace استبدل مدير النوافذ الذي يعمل حاليا � --restart أعِد تشغيل أوبن‌بوكس � --sm-disable عطِّل الإتصال بمدير الجلسة � --sync شغّل في النمط المزامن � --version اعرض النسخة ثم اخرج �كل أسطح المكتب�دائما في القاع (_B)�دائما على السطح (_T)�هل تريد حقا الخروج من أوبن بوكس؟�هل أنت متاكد من انك تود تسجيل الخروج؟�حاولت الوصول إلى القائمة "%s" لكنها غير موجودة�إلغاء�لم أستطِع ضبط مُغيِّرات المحليّة لخادم إكس.�قائمة العميل�أغلق�يتعارض مع ارتباط المفاتيح في ملف الإعدادات�حقوق النسخ�أسطح مكتب�قطع الإتصال�إنهاء العملية�تنفيذ�الخروج�الخروج من أوبن‌بوكس�فشلت في تحويل المسار "%s" من utf8�فشل تنفيذ أمر ل pipe-menu "%s": %s�تعذّر بدأ مكتبة obrender.�تعذّر فتح العرض من متغير البيئة DISPLAY.�اذهب هناك...�صغّر (_N)�زر غير صحيح "%s" في ارتباط الفأرة�زر غير صحيح "%s" محدد في ملف الإعدادات�معامل سطر أوامر غير سليم "%s" �سياق غير صحيح "%s" في ارتباط الفأرة�رمز مفتاح "%s" غير سليم في ارتباط المفتاح�اسم مفتاح "%s" غير سليم في ارتباط المفتاح�مفتاح مُغيِّر "%s" غير سليم في ارتبط الفأرة/لوحة المفاتيح�خرج غير سليم من pipe-menu "%s"�إنهاء...�تسجيل الخروج�كبّر (_X)�أدِر أسطح المكتب�المزيد...�لا�لا يستجيب�نعم�استعِد (_E)�المفتاح المطلوب "%s" لا وجود له في العرض�حجِّم (_Z)�فشلت إعادة التشغيل في تنفيذ مُنفّذ جديد "%s": %s�تشغيل %s�الصيغة: openbox [options] �ضع/أزل الحواف (_D)�لم أستطع تغيير المجلد المنزلي "%s": %s�لم أعثر على ملف إعدادات سليم، سأستخدم بعض الإفتراضيات البسيطة�لم أعثر على ملف قائمة سليم "%s"�لم أستطِع تحميل سِمة.�نافذة بدون إسم�نوافذ�خادم إكس لا يدعم المحليّة.�نعم�أضِف سطح مكتب جديد (_A)�أغلق (_C)�طبقة (_L)�انقل (_M)�طبيعي (_N)�احذف آخر سطح مكتب (_R)�لُف لأعلى/لأسفل (_R)�أرسِل إلى سطح المكتب (_S)�I�A window manager is already running on screen %d�Could not acquire window manager selection on screen %d�The WM on screen %d is not exiting�desktop %i�يعمل مدير نوافذ بالفعل على الشاشة %d�تعذّر الحصول على انتقاء مدير النوافذ على الشاشة %d�مدير النوافذ على الشاشة %d لا وجود له�سطح المكتب %i������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/be.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000026056�12544731073�011642� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� �������������� �����Z�����8���9��Y���r��C�����j�����h���{��.�����O�����O���c��c�����9�����c���Q��N�����O�����%���T��R���z������������ ������6���!��0���X��H����������f��������L�����h��d���w��!�����e��������d�����u������������ ����������B�����Y�����N���w��x��������?�����S��h���i��O�����j���" ��O��� ��Q��� ��Z���/!��`���!��y���!��K���e"�����"�� ���"�����"��%���"�� ���#�����$#�����)#�����?#��O��D#��+���$����$�����&��M���&�����$'��e���C'�����'��)���'��N���'��x���2(�����(�� ���G)��I���h)��u���)��G���(*��/���p*�����*�� ���*��8���*�����+����� +�����)+�����=+�����S+�����o+��,���+��*���+��)���+��&���,�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: openbox 3.4.11 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2012-07-16 20:55+0300 Last-Translator: Mikalai Udodau <crom-a@tut.by> Language-Team: Belarusian <i18n@mova.org> Language: be MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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); � Опцыі адладкі: � Опцыі: � Дасыланне паведамленняў бягучаму асобніку Openbox: � Паведамляйце пра памылкі на %s � --config-file ФАЙЛ Задаць шлях да файла канфігурацыі � --debug Паказваць вывад адладкі � --debug-focus Паказваць вывад адладкі па кіраванні фокусам � --debug-xinerama Разбіць дысплей на несапраўдныя экраны xinerama � --exit Выйсці з Openbox � --help Паказаць гэту даведку і выйсці � --reconfigure Перачытаць канфігурацыю Openbox'а � --replace Замяніць запушчаны цяпер кіраўнік вокнаў � --restart Перазапусціць Openbox � --sm-disable Забараніць злучэнне з кіраўніком сеансаў � --sync Выконваць у сінхронным рэжыме � --version Паказаць нумар версіі і выйсці �%s патрабуе аргумент �Кіраўнік вокнаў ужо выконваецца для экрана %d�Усе прасторы�Заўжды долу (_B)�Заўжды наверсе (_T)�Сапраўды хочаце выйсці з Openbox?�Вы сапраўды хочаце выйсці?�Спроба адкрыць меню "%s", але яно не існуе�Скасаваць�Немагчыма ўстанавіць мадыфікатары локала для X-сервера.�Кліенцкае меню�Закрыць�Канфлікт з клавіятурным скаротам у файле канфігурацыі�Аўтарскае права (c)�Немагчыма ўзяць вылучэнне кіраўніка вокнаў на экране %d�Прасторы�Адлучыць�Скончыць працэс�Выканаць�Выйсці�Выйсці з Openbox�Не ўдалося пераўтварыць шлях "%s" з utf8�Не ўдалося выканаць загад з канальнага меню "%s": %s�Не ўдалося ініцыялізаваць бібліятэку obrender�Не ўдалося адкрыць дысплей, пазначаны ў пераменнай асяроддзя DISPLAY�Перайсці...�Згарнуць (_N)�Запытана недапушчальнае дзеянне "%s". Няма такога дзеяння.�Недапушчальная кнопка "%s" у спалучэнні мышы�Недапушчальная клавіша "%s" пазначана ў файле канфігурацыі�Недапушчальны аргумент загаднага радка "%s" �Недапушчальны кантэкст "%s" у спалучэнні мышы�Недапушчальны код клавішы "%s" у спалучэнні клавіш�Недапушчальная назва клавішы "%s" у спалучэнні клавіш�Недапушчальная клавіша-мадыфікатар "%s" у спалучэнні клавіш/кнопак�Недапушчальны вывад з канальнага меню "%s"�Прыбіццё...�Выйсці�Максімізаваць (_X)�Кіраваць прасторамі�Яшчэ...�Не�Не адказвае�ОК�Адна ці больш памылак сінтаксісу XML сустрэліся падчас разбору канфігурацыйных файлаў Openbox. Гл. стд.вывад за дэталямі. Апошняя бачаная памылка была ў файле "%s" радок %d, з паведамленнем: %s�Памылка сінтаксісу Openbox�Openbox сканфігураваны на %d прастору, але ж бягучы сеанс мае %d. Перагледжваем канфігурацыю Openbox.�Openbox сканфігураваны на %d прасторы, але ж бягучы сеанс мае %d. Перагледжваем канфігурацыю Openbox.�Openbox сканфігураваны на %d прастораў, але ж бягучы сеанс мае %d. Перагледжваем канфігурацыю Openbox.�Узнавіць (_E)�Запытаны ключ "%s" не існуе на гэтым дысплеі�Змяніць памер (_Z)�Перазапуск не змог запусціць новы выканальны файл "%s": %s�Запуск %s�Сінтаксіс: openbox [опцыі] �Кіраўнік вокнаў на экране %d не завяршаецца�Вакно "%s" не адказвае, здаецца. Вы хочаце адлучыць яго ад X-сервера?�Акно "%s" не адказвае, здаецца. Ці хочаце прымусіць яго закрыцца, даслаўшы яму сігнал %s?�Раз/Абрамленне (_D)�Немагчыма перайсці ў хатні каталог "%s": %s�Не знойдзены спраўны файл канфігурацыі, ужываем прадвызначэнні�Немагчыма знайсці спраўны файл меню "%s"�Немагчыма прачытаць тэму.�Неназванае вакно�Вокны�X-сервер не падтрымлівае локал.�Так�Дадаць прастору�Закрыць (_C)�Узровень (_L)�Перамясціць (_M)�Звычайны (_N)�Сцерці апошнюю прастору�Скруціць/раскруціць (_R)�Даслаць на прастору (_S)�працоўная прастора %i�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/bn_IN.gmo��������������������������������������������������������������������������0000644�0001753�0000144�00000023143�12544731073�012233� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������B������,��Y���<������������� �����1����������/�����B���>��C�����1�����5�����C���-��&���q��@�����.�����3�����0���<�� ���m�����z�������3�����-����� �������� ��(��� �� ���8 ��7���F �����~ ��)��� ��0��� ��*��� ��A��� �� ���O �����[ ��5���d ��$��� ��,��� ��#��� ��%��� ��$���6 ��$���[ ��.��� ��"��� �� ��� ����� ����� ��0��� ����� ��1���& �� ���X �����c ��"���~ �� ��� ��+��� ��>��� ��%��� �����? ��!���W �����y ��!��� ����� ����� ����� ����� �� ��� ����� �� ��� ���� ��H�����%�����e�����{���v��`��������S�������x�����h��������p��:��������Z��h������h���i��{�����4���N��$�����$�����u��������C��(����������t�����(�������������o��_�����|�����W���b�������8���y��7����������`�����g�����Q���|��l�����V���;��Z�����r�����n���`������������#��� ��{���( ��'��� ����� ��+���f!��I���!�����!��3���"�����"�����7#��[���#��6���[$��Z���$�����$��g����%�����h%�����%��&���%�� ���%��;���%��:���&�� ���X&���������������������"����������B���(���<���&���������� ����������9���8���/�������.���6�������������=����������*������'������5���3�������-���4���1��� ���,���#�������������>���A���+�������!�������:��� ������ ��������������)���%��������������������?���2���������������������;�������$������ ������7���@���0������� ���������������������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Attempted to access menu "%s" but it does not exist�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Ma_ximize�More...�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Windows�X server does not support locale.�_Close�_Layer�_Move�_Normal�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2007-06-01 19:02+0530 Last-Translator: Runa Bhattacharjee <runabh@gmail.com> Language-Team: Bengali (India) <en@li.org> Language: bn_IN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.11.4 Plural-Forms: nplurals=2; plural=(n != 1); � ডিবাগ করার বিভিন্ন বিকল্প: � বিবিধ বিকল্প: � চলমান Openbox ইনস্ট্যান্সে বার্তা প্রেরণ: � অনুগ্রহ করে %s-এ বাগ সংক্রান্ত সূচনা দায়ের করুন � --debug ডিবাগ-এর ফলাফল প্রদর্শন করে � --debug-focus ফোকাস হ্যান্ডলিং সংক্রান্ত ডিবাগের ফলাফল প্রদর্শন করে � --debug-xinerama প্রদর্শন ক্ষেত্রটি নকল xinerama পর্দায় ভাগ করা হবে � --help সহায়তা বার্তা প্রদর্শন করে প্রস্থান � --reconfigure Openbox-র কনফিগারেশন পুনরায় লোড করে � --replace বর্তমানে চলমান উইন্ডো পরিচালন ব্যবস্থা পরিবর্তন করা হবে � --restart Openbox পুনরারম্ভ � --sm-disable সেশান পরিচালন ব্যবস্থার সাথে সংযোগ নিষ্ক্রিয় করা হবে � --sync সিঙ্ক্রোনাস মোডে সঞ্চালিত হবে � --version সংস্করণ প্রদর্শন করে প্রস্থান �একটি উইন্ডো পরিচালন ব্যবস্থা বর্তমানে %d-এ চলছে�সর্বপ্রকার ডেস্কটপ�সর্বদা নীচে (_b)�সর্বদা উপরে (_t)�অনুপস্থিত মেনু "%s" ব্যবহারের প্রচেষ্টা হয়েছে�X সার্ভারের জন্য লোকেইল মডিফায়ার নির্ধারণ করতে ব্যর্থ।�ক্লায়েন্ট মেনু�বন্ধ করুন�কনফিগ ফাইলে কি-বাইন্ডিং সংক্রান্ত দ্বন্দ্ব�স্বত্বাধিকার (c)�পর্দা %d-এ উইন্ডো পরিচালন ব্যবস্থার নির্বাচিত অংশ প্রাপ্ত করতে ব্যর্থ�ডেস্কটপ�"%s" পাথটি utf8 থেকে রূপান্তর করতে ব্যর্থ�পাইপ-মেনু "%s"-র জন্য কমান্ড সঞ্চালন করতে ব্যর্থ: %s�obrender লাইব্রেরি আরম্ভ করতে ব্যর্থ।�DISPLAY এনভাশরনমেন্ট ভেরিয়েবলের মান প্রয়োগ করে প্রদর্শন আরম্ভ করতে ব্যর্থ।�চিহ্নিত স্থানে চলুন...�আইকন রূপে প্রদর্শন (_n)�অবৈধ কর্ম "%s"-র অনুরোধ জানানো হয়েছে। এই ধরনের কোনো কর্ম বর্তমানে উপস্থিত নেই।�মাউস বাইন্ডিং সংক্রান্ত অবৈধ বাটন "%s"�কনফিগ ফাইলে অবৈধ বাটন "%s" উল্লিখিত হয়েছে�অবৈধ কমান্ড-লাইন আর্গুমেন্ট "%s" �মাউস বাইন্ডিং সংক্রান্ত অবৈধ কনটেক্সট "%s"�কি-বাইন্ডিং-র মধ্যে অবৈধ কি-কোড "%s"�কি-বাইন্ডিং-র মধ্যে অবৈধ কি-র নাম "%s"�কি/মাউস বাইন্ডিং-র মধ্যে অবৈধ মডিফায়ার-কি "%s"�পাইপ-মেনু "%s" থেকে অবৈধ ফলাফল প্রাপ্ত হয়েছে�বড় করুন (_x)�অতিরিক্ত...�পুনরুদ্ধার (_e)�অনুরোধ করা কি "%s", প্রদর্শন ক্ষেত্রে উপস্থিত নেই�মাপ পরিবর্তন (_z)�পুনরাম্ভের পরে নতুন এক্সেকিউটেবল "%s" সঞ্চালন করতে ব্যর্থ: %s�%s সঞ্চালিত হচ্ছে�ব্যবহারপ্রণালী: openbox [বিকল্প] �পর্দা %d-র উপর চলমান উইন্ডো পরিচালন ব্যবস্থাটি বন্ধ করতে ব্যর্থ�বিন্যাস পরিবর্তন (_D)�ব্যক্তিগত ডিরেক্টরি "%s"-তে পরিবর্তন করতে ব্যর্থ: %s�বৈধ কনফিগ ফাইল সনাক্ত করতে ব্যর্থ, কয়েকটি সাধারণ ডিফল্ট মান প্রয়োগ করা হবে।�বৈধ মেনু ফাইল "%s" সনাক্ত করতে ব্যর্থ�থিম লোড করতে ব্যর্থ।�'%s' ডিরেক্টরি নির্মাণ করতে ব্যর্থ: %s�উইন্ডো�X সার্ভার দ্বারা লোকেইল সমর্থিতত হয় না।�বন্ধ করুন (_C)�স্তর (_L)�স্থানান্তরণ (_M)�স্বাভাবিক (_N)�উপরে/নীচে গুটিয়ে নিন (_R)�ডেস্কটপে পাঠানো হবে (_S)�desktop %i������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ca.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022673�12544731073�011640� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������]������������������������ �����1��� �����;��A���V��/�����B�����F��� ��C���R ��#��� ��1��� ��5��� ��C���" ��&���f ��@��� ��.��� ��3��� �����1 ��0���J �� ���{ ����� ����� ��&��� ��!��� ��3��� �����& ��-���- �� ���[ �����g ��(���m �� ��� ��7��� ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0���@ ��*���q ��A��� �� ��� ����� ��5��� ��$���)��,���N��#���{��%�����$�����$�����.�����"���>�� ���a�����l�� ���t�����~������������������������������e�����z�����U��0���^�������1����� ����������"�����`�����j���s�� �����+�����>�����%���V�����|��!���������������!����������������������� ��������������� �� ���5�����C�� ���T����_������� �����R��������d��i�����6�����Q���!��^���s��N�����&���!��6���H��C�����Y�����.�����G���L��3�����3����������@��������W�����l�����{��'����������6����� �����E��������X�����i��>���o�� �����M����� ��� �� ��������"�����7�����?�����D��1���T��L�����<�����C����� ���T�� ���b��E���m��9�����C�����,���1��;���^��?�����A�����M�����4���j������������ ��������������������������������� ����� �� �� �� ���"��4���"�� ���C"��P���Q"�� ���"�����"��9���"��X���#��c���_#�����#��7���#��b���$��3���t$�����$��&���$�����$�� ���%��(��� %�����5%�����9%�����T%�����[%�����a%�����f%�����n%�����%�����%�� ���%�����'���2���K������\���#������������������M���6���]����������O���@������Q���*���=���%���(���"���!�������.���,���V������J���>���)����������P���+���;���A���������B������������������������������������T���&������� ���5�������N�������H�����������Y���:���8����������0��� �����������������C���Z���W�������?���$����������D�������[������U���9���E���<���4���3���F��� ��� ������G������������������R���X���S���L������1���-��� ��������������� ����������������/�������I��������������������7�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-05-25 19:23+0200 Last-Translator: David Majà Martínez <davidmaja@gmail.com> Language-Team: catalan Language: ca MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Opcions de depuració: � Opcions: � S'està transferint missatges a la instància del Openbox que s'està executant: � Informeu dels errors a %s � --config-file FITXER Especifica el camí del fitxer de configuració a utilitzar � --debug Mostra la sortida de depuració � --debug-focus Mostra la sortida de depuració per a la gestió del focus � --debug-session Mostra la sortida de depuració per a la gestió del session management � --debug-xinerama Divideix la visualització en pantalles xinerama falses � --exit Surt de Openbox � --help Visualitza aquesta ajuda i surt � --reconfigure Torna a carregar la configuració de Openbox � --replace Reemplaça el gestor de finestres que s'està executant actualment � --restart Torna a iniciar Openbox � --sm-disable Inhabilita la connexió amb el gestor de sessió � --sync Executa en mode sincronitzat � --version Visualitza la versió i surt �%s necessita un argument �Encara s'està executant un gestor de finestres a la pantalla %d�Tots els escriptoris�Sempre a so_ta�Sempre a so_bre�Esteu segur de voler sortir de Openbox?�Esteu segur de voler sortir?�S'ha intentat accedir al menú "%s" ja que no existeix�Cancel·la�No s'ha pogut assignar els modificadors del locale per al servidor X.�Menú del client�Tanca�Conflicte amb la tecla vinculada en el fitxer de configuració�Copyright (c)�No s'ha pogut adquirir la selecció del gestor de finestres en la pantalla %d�Escriptoris�Desconnecta�Finalitza el procés�Executa�Surt�Surt de Openbox�No s'ha pogut convertir el camí "%s" des de utf8�S'ha produït un error en executar l'ordre per al menú de conducte "%s": %s�S'ha produït un error en inicialitza la llibreria obrender.�No s'ha pogut obrir la pantalla des de la variable d'entorn DISPLAY�Vés aquí...�Mi_nimitza�L'acció sollicitada "%s" no és vàlida. Aquesta acció no existeix.�El botó "%s" no és vàlid en la vinculació del ratolí�El botó especificat al fitxer de configuració "%s" no és vàlid.�Opció "%s" no vàlida a la línia d'ordres �El context "%s" no és vàlid en la vinculació del ratolí�El codi de tecla "%s" no és vàlid en la vinculació de tecles�El nom de la tecla "%s" no és vàlid en la vinculació de tecles�La tecla modificadora "%s" no és vàlida en la vinculació de tecles/ratolí�La sortida del menú de conducte "%s" no és vàlida�S'està finalitzant...�Surt�Ma_ximitza�Gestiona els escriptoris�Més...�No�No està responent�D'acord�S'han trobat un o mes errors de sintaxi XML en analitzar el fitxer de configuració de Openbox. Per a més informació visualitza el stdout. L'últim error trobat estava al fitxer "%s" línia %d, amb el missatge: %s�Error de sintaxi de Openbox�El Openbox està configurat per a %d escriptori, però la sessió actual en te %d. S'està modificant la configuració del Openbox.�El Openbox està configurat per a %d escriptoris, però la sessió actual en te %d. S'està modificant la configuració del Openbox.�Restaur_a�La tecla seleccionada "%s" no existeix a la pantalla�Redimen_siona�S'ha produït un error en tornar a iniciar i executar el nou executable "%s": %s�Executant %s�Sintaxis: openbox [opcions] �El gestor de finestres de la pantalla %d no està sortint�Sembla que la finestra "%s" no està responent. Voleu desconnectar-la del servidor d'X?�Sembla que la finestra "%s" no està responent. Voleu forçar-la a finalitzar enviant el senyal %s?�Sense/Amb _decoració�No s'ha pogut canviar al directori de l'usuari "%s": %s�No s'ha pogut trobat un fitxer de configuració vàlid, s'utilitzaran alguns valors predeterminats�No s'ha pogut trobar un fitxer de menú "%s" vàlid�No s'ha pogut carregar el tema.�No és pot crear el directori '%s': %s�Finestra sense nom�Finestres�El servidor X no te suport per a idiomes�Sí�_Afegeix un nou escriptori�_Tanca�_Capa�_Mou�_Normal�_Suprimeix l'últim escriptori�En/Desen_rotlla�A l'_escriptori�escriptori %i����������������������������������������������������������������������openbox-3.6.1/po/cs.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021434�12544731073�011654� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� �������������������2�����&�����8�����0���Q��B�����H�����'�����:���6��:���q��:�����*�����;�����3���N��0����������3�������������������� ���,�����M��8���j�������5���������������8����� ���4��5���B�����x���������������������������+�����6�����/�����B���I�� ����������K�����,�����3��� ��/���T��)�����)�����+�����:�����"���?�����b�� ���r�����|����������������� ��������������������Q���������1��� �� ���8 ��;���B �����~ �� ��� ��/��� ��8��� ��9���!�����R!��:���i!��[���!��2����"�����3"�����R"�����f"�� ���k"�����"�����"�� ���"�����"�� ���"�� ���"�����"�����"������#�� ���#�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2011-06-03 17:49+0200 Last-Translator: David Kolibac <david@kolibac.cz> Language-Team: Czech <cs@li.org> Language: cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: Lokalize 1.2 Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2; � Ladicí přepínače: � Přepínače: � Zasílání zpráv běžící instanci Openboxu: � Prosím, hlaste chyby anglicky na %s � --config-file FILE Cesta ke konfiguračnímu souboru � --debug Zobrazit ladící výstup � --debug-focus Zobrazit ladící výstup pro aktivaci oken � --debug-xinerama Rozdělit displej na falešné obrazovky xinerama � --exit Ukončit Openbox � --help Zobrazit tuto nápovědu a skončit � --reconfigure Znovu načíst konfiguraci Openboxu � --replace Nahradit běžícího správce oken � --restart Restartovat Openbox � --sm-disable Nepřipojovat se ke správci sezení � --sync Spustit v synchronním módu � --version Zobrazit verzi a skončit �%s vyžaduje argument �Na obrazovce %d již nějaký správce oken běží�Všechny plochy�Vždy ve_spodu�Vždy na_vrchu�Opravdu chcete ukončit Openbox?�Opravdu se chcete odhlásit?�Pokus o přístup k nabídce "%s", která ale neexistuje�Zrušit�Nelze nastavit modifikátory lokalizace pro X server.�Nabídka klienta�Zavřít�Konflikt klávesových zkratek v konfiguračním souboru�Copyright (c)�Nepodařilo se převzít správu oken na obrazovce %d�Plochy�Odpojit�Ukončit proces�Spustit�Konec�Ukončit Openbox�Nepodařilo se převést cestu "%s" z UTF-8�Nepodařilo se spustit příkaz pro pipe-menu "%s": %s�Nepodařilo se inicializovat knihovnu obrender.�Nepodařilo se otevřít displej z proměnné prostředí DISPLAY.�Jít tam...�Mi_nimalizovat�Požadována neplatná činnost "%s". Žádná taková činnost neexistuje.�Neplatné tlačítko "%s" v nastavení myši�Neplatné tlačítko "%s" v konfiguračním souboru�Neplatný argument příkazového řádku "%s" �Neplatný kontext "%s" v nastavení myši�Neplatný kód klávesy "%s" v nastavení�Neplatné jméno klávesy "%s" v nastavení�Neplatný modifikátor "%s" v nastavení klávesnice/myši�Neplatný výstup z pipe-menu "%s"�Ukončuje se...�Odhlásit�Ma_ximalizovat�Spravovat plochy�Více...�Ne�Neodpovídá�OK�Při načítání konfiguračních souborů nalezena jedna nebo více syntaktických chyb, více informací najdete na standardním výstupu. Poslední zaznamenaná chyba je v souboru "%s" na řádku %d, se zprávou: %s�Chyba syntaxe Openboxu�Openbox je konfigurován pro %d plochu, ale současné sezení jich má %d. Konfigurace Openboxu bude změněna.�Openbox je konfigurován pro %d plochy, ale současné sezení jich má %d. Konfigurace Openboxu bude změněna.�Openbox je konfigurován pro %d ploch, ale současné sezení jich má %d. Konfigurace Openboxu bude změněna.�_Obnovit�Požadovaná klávesa "%s" na displeji neexistuje�Veli_kost�Při restartu se nepodařilo spustit nový program "%s": %s�Spouští se %s�Syntaxe: openbox [přepínače] �Správce oken na obrazovce %d odmítá skončit�Okno "%s" neodpovídá. Chcete jej odpojit od X serveru?�Okno "%s" neodpovídá. Chcete jej ukončit signálem %s?�O_ddekorovat/Dekorovat�Nepodařilo se přejít do domovského adresáře "%s": %s�Nepodařilo se najít platný konfigurační soubor, pokračuje se s výchozím nastavením�Nepodařilo se najít platný soubor nabídky "%s"�Nepodařilo se načíst motiv.�Nepojmenované okno�Okna�X server nepodporuje lokalizaci.�Ano�_Přidat novou plochu�_Zavřít�Vrs_tva�Přes_unout�_Normální�_Odstranit poslední plochu�S_rolovat/Vyrolovat�_Poslat na plochu�plochu %i�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/da.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021433�12544731073�011632� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������]������������������������ �����1��� �����;��A���V��/�����B�����F��� ��C���R ��#��� ��1��� ��5��� ��C���" ��&���f ��@��� ��.��� ��3��� �����1 ��0���J �� ���{ ����� ����� ��&��� ��!��� ��3��� �����& ��-���- �� ���[ �����g ��(���m �� ��� ��7��� ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0���@ ��*���q ��A��� �� ��� ����� ��5��� ��$���)��,���N��#���{��%�����$�����$�����.�����"���>�� ���a�����l�� ���t�����~������������������������������e�����z�����U��0���^�������1����� ����������"�����`�����j���s�� �����+�����>�����%���V�����|��!���������������!����������������������� ��������������� �� ���5�����C�� ���T����_������� �����2��� �� ���@��N���a��3�����I�����K���.��D���z��%�����7�����5�����;���S��'�����E�����+�����5���)�����_��0���w�����������������,�����$�����5���)�����_��>���f�� ����������6����� �����;����� ���6�����A�� ���J�����X�����_�����f��,���u��2�����'�����6����� ���4�����?��8���H��$�����4�����$�����'������)���(��)���R��9���|��#����� ����������������������� ������� ��������!�����$�����������������-���� �����. ��4���A �� ���v ����� ��2��� ��A��� ��U���!�����j!��,���!��R���!��%���"�����*"�����B"�����b"�����t"��+���|"�����"�����"�����"�����"�����"�����"�����"�� ���"�����"�� ��� #�����'���2���K������\���#������������������M���6���]����������O���@������Q���*���=���%���(���"���!�������.���,���V������J���>���)����������P���+���;���A���������B������������������������������������T���&������� ���5�������N�������H�����������Y���:���8����������0��� �����������������C���Z���W�������?���$����������D�������[������U���9���E���<���4���3���F��� ��� ������G������������������R���X���S���L������1���-��� ��������������� ����������������/�������I��������������������7�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-08-19 16:50+0100 Last-Translator: Jesper Sander <sander.contrib@gmail.com> Language-Team: None Language: da MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Fejlsøgningsmuligheder: � Tilvalg: � Sender beskeder til en kørende Openbox-instans: � Rapporter venligst fejl til %s � --config-file FIL Specificer stien til konfigurationsfilen du vil benytte � --debug Vis fejlsøgningsinformation � --debug-focus Vis fejlsøgningsinformation for fokus-håndtering � --debug-session Vis fejlsøgningsinformation for session-håndtering � --debug-xinerama Split displayet for "falske" xinerama-skærme � --exit Afslut Openbox � --help Vis denne hjælpetekst og afslut � --reconfigure Opdater Openbox' konfiguration � --replace Erstat den kørende vinduesbehandler � --restart Genstart Openbox � --sm-disable Deaktiver forbindelsen til sessionsbehandleren � --sync Kør i synkron-modus � --version Vis versionsnummeret og afslut �%s kræver et argument �En vindusbehandler kører allerede på skærm %d�Alle skriveborde�Altid _nederst�Altid ø_verst�Er du sikker på at du vil afslutte Openbox?�Er du sikker på at du vil logge ud?�Forsøgte at åbne menuen "%s", men denne findes ikke�Afbryd�Kan ikke indstille lokaliseringsmodifikatorene for X-serveren.�Klient-menu�Luk�Konflikt med taste-kombinationer i konfigurationsfilen�Copyright (c)�Kunne ikke hente vindusbehandlerens markering på skærm %d�Skrivebord�Frakoble�Afslut proces�Udfør�Afslut�Afslut Openbox�Fejl ved konvertering af stien "%s" fra utf8�Kunne ikke udføre kommando for pipe-menu "%s": %s�Kunne ikke starte obrender-biblioteket.�Kunne ikke åbne displayet fra DISPLAY-miljøvariablen�Gå der...�_Minimer�Ugyldig operation "%s" anmodet. Operationen findes ikke.�Ugyldig knap "%s" i muse-kombination�Ugyldig tast "%s" specificeret i konfigurationsfilen�Ugyldig kommandolinie-argument "%s" �Ugyldig indhold "%s" i muse-kombination�Ugyldig tastekode "%s" i tastekombination�Ugyldig tastenavn "%s" i tastekombination�Ugyldig modifikationstast "%s" i kombination for tast/mus�Ugyldig uddata fra pipe-menuen "%s"�Dræber...�Log Ud�Ma_ximer�Håndter skrivebord�Mere...�Nej�Svarer Ikke�OK�En eller flere XML-syntaksfejl blev fundet ved læsning af konfigurationsfilerne til Openbox. Se stdout for mere information. Den sidste fejl som blev set var i fil "%s", linie %d, med beskeden: %s�Openbox syntaksfejl�Aktiv session har %2$d skriveborde, mens Openbox er konfigureret til %1$d. Benytter indstillingerne for den aktive session.�Aktiv session har %2$d skriveborde, mens Openbox er konfigureret til %1$d. Benytter indstillingerne for den aktive session.�G_endan�Ønsket tast "%s" eksisterer ikke i displayet�Ændre s_tørrelse�Kunne ikke starte nyt program ved genstart: "%s": %s�Kører %s�Syntaks: openbox [argumenter] �Vinduesbehandleren på skærm %d vil ikke afslutte�Vinduet "%s" svarer ikke. Vil du frakoble vinduet fra X-serveren?�Vinduet "%s" svarer ikke. Vil du udføre tvunget afslutning ved at sende %s signalet?�Fjern/tilføj _dekoration�Kan ikke skifte til hjemmekataloget "%s": %s�Kunne ikke finde en gyldig konfigurationsfil, bruger nogle simple standardværdier�Kan ikke finde en gyldig menufil "%s"�Kan ikke hente et tema.�Kan ikke oprette mappe '%s': %s�Unavngivet vindue�Vinduer�X-serveren understøtter ikke lokalisering.�Ja�_Nyt skrivebord�_Luk�La_g�_Flyt�Nor_mal�_Fjern sidste skrivebord�_Rul op/ned�_Send til skrivebord�skrivebord %i��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/de.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021411�12544731073�011632� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� ������������h�� �����<����������3�����4�����H���P��G�����&�����7�����7���@��D���x��*�����=�����/���&��3���V�������3����� ����������������'�����$���>��:���c�� �����C���������� �����2����� ���:��>���H����������������� ���������������-�����1�����6���+��C���b������� �����9�����*������,���+��*���X��,�����0�����0�����8�����&���K�����r������� ��������������������������������������������������6����������8��� �� ���? �����I ��4���f ��R��� ��j��� �����Y!��5���n!��L���!��)���!�����"�����2"�����F"��.���N"�����}"�����"�� ���"�����"�� ���"�����"�����"�� ���"�����"�� ���"�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2012-09-18 21:51+0100 Last-Translator: Volker Ribbert <volker.nospam@netcologne.de> Language-Team: <de@li.org> Language: de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Fehlersuche-Optionen: � Optionen: � Nachrichten an eine laufende Openbox-Instanz weiterleiten: � Fehlerberichte bitte an: %s � --config-file DATEI Pfad zur Konfigurationsdatei � --debug Fehlersuche-Ergebnis anzeigen � --debug-focus Fehlersuche-Ergebnis für Fokus-Handling anzeigen � --debug-xinerama Anzeige in imitierte Xinerama-Bildschirme teilen � --exit Openbox beenden � --help Diese Hilfe anzeigen und beenden � --reconfigure Openbox' Konfiguration neu laden � --replace Den aktuell laufenden Fenstermanager ersetzen � --restart Openbox neu starten � --sm-disable Verbindung zum Sitzungsmanager trennen � --sync im Synchronmodus starten � --version Version anzeigen und beenden �%s erfordert einen Parameter �Ein Fenstermanager läuft bereits auf Bildschirm %d�Alle Desktops�Immer im _Hintergrund�Immer im _Vordergrund�Möchten Sie Openbox wirklich beenden?�Möchten Sie sich wirklich abmelden?�Versuchter Zugriff auf Menü "%s", doch es existiert nicht�Abbrechen�Kann die Lokalisierungsmodifizierer für den X-Server nicht setzen.�Anwendungsmenü�Schließen�Störende Tastenkombination in Konfigurationsdatei�Copyright (c)�Auswahl des Fenstermanagers auf Bildschirm %d nicht verfügbar�Desktops�Trennen�Prozess beenden�Ausführen�Beenden�Openbox beenden�Konnte Pfad "%s" nicht von UTF-8 konvertieren�Befehl "%s" für Pipe-Menü nicht ausführbar: %s�Konnte die Bibliothek 'obrender' nicht initialisieren.�Konnte das Display aus der Umgebungsvariable DISPLAY nicht öffnen.�Dorthin wechseln...�Mi_nimieren�Ungültige Aktion "%s" angefordert. Es gibt keine solche.�Maus-Einbindung mit ungültiger Taste "%s"�Ungültige Taste "%s" in Konfigurationsdatei�Ungültiger Kommandozeilen-Parameter "%s" �Maus-Einbindung mit ungültigem Kontext "%s"�Ungültiger Tastencode "%s" in Tastenkombination�Ungültiger Tastenname "%s" in Tastenkombination�Ungültige Modifier-Taste "%s" in Tasten/Maus-Einbindung�Ungültige Ausgabe vom Pipe-Menü "%s"�Wird gelöscht...�Abmelden�Ma_ximieren�Desktops verwalten�Mehr...�Nein�Reagiert nicht�OK�Beim Parsen der Openbox-Konfigurationsdateien wurden ein oder mehrere XML-Syntaxfehler gefunden. Die Standardausgabe enthält weitere Informationen. Der letzte Fehler wurde in der Datei "%s" in Zeile %d festgestellt: %s�Openbox Syntax-Fehler�Openbox wurde für %d Desktop konfiguriert, aber die aktuelle Sitzung hat %d. Überschreibe die Openbox-Konfiguration.�Openbox wurde für %d Desktops konfiguriert, aber die aktuelle Sitzung hat %d. Überschreibe die Openbox-Konfiguration.�Wi_ederherstellen�Gewünschte Taste "%s" existiert nicht auf dem Display�_Größe ändern�Neustart konnte die neue Datei "%s" nicht ausführen: %s�Starte %s�Eingabe: openbox [Optionen] �Der Fenstermanager auf Bildschirm %d schließt nicht�Das Fenster "%s" reagiert anscheinend nicht. Möchten Sie es vom X-Server trennen?�Das Fenster "%s" reagiert anscheinend nicht. Möchten Sie es durch Senden des %s-Signals trotzdem beenden?�_Titelleiste ein/aus�Wechsel ins Nutzerverzeichnis "%s" nicht möglich: %s�Keine gültige Konfigurationsdatei vorhanden, benutze einfache Standardwerte�Keine gültige Menü-Datei "%s" vorhanden�Kann kein Thema laden.�Unbenanntes Fenster�Fenster�'locale' wird vom X-Server nicht unterstützt.�Ja�_Neuen Desktop hinzufügen�_Schließen�_Layer�Vers_chieben�_Normal�_Letzten Desktop entfernen�Auf/Ab_rollen�_Verschieben nach�Desktop %i��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/en@quot.gmo������������������������������������������������������������������������0000644�0001753�0000144�00000021700�12544731073�012656� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������_����������� ����������� �� �����1���)�����[��A���v��/�����B�����F���+ ��C���r ��#��� ��1��� ��5��� ��C���B ��&��� ��@��� ��-��� ��.��� ��3���K ����� ��0��� �� ��� ����� ����� ��&��� ��!��� ��3���@ �����t ��-���{ �� ��� ����� ��(��� �� ��� ��7��� �����* �� ���3 �� ���> �����J �����R �� ���W ��)���d ��0��� ��*��� ��A��� �� ���,�����8��5���A��$���w��,�����#�����%�����$�����$���8��.���]��"����� ���������� ���������������������������������������������V����������0��������4��1���<�� ���n�����y��"�����`�����j����� �����+�����>�����%��������!��!���9�����[�����j��!���r������������������������������������� ���������� �����t�������y�� �����1����������A�����/���(��B���X��F�����C�����#���&��1���J��5���|��C�����&�����@�����-���^��.�����3����������0����� ���9�����F�����X��&���g��!�����7����������-����� ��������)��(���/�� ���X��7���f������� ����� ��������������� �����-�����4�����*���;��A���f�� ����������9�����(�����0��� ��'���Q��)���y��(�����(�����2�����&���(�� ���O�����Z�� ���b�����l�����|�������������������������W�����l��V���G ����� ��4��� ����� ��5��� �� ���!�����%!��"���@!��d���c!��n���!�� ���7"��/���D"��>���t"��)���"�����"��!���"�����#�����&#��!���.#�����P#�����T#�����e#�����l#�����s#�����y#�����#�� ���#�����#�� ���#�����(���3���M������^���$������W�����������O���7���S����������Q���A������F���+���>���&���)���#���"�������/���-���X������L���?���*����������R���,���<���B������ ���D������������������������������������V���'������� ���6�������P�������J�����������[���;���9����������1��� �����������������E���\���Y�������@���%�����������������]������U���:���G���=���5���4���H��� ��� ������I���_��������������T���Z���C���N������2���.���!��������������� ����������������0�������K��������������������8�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: openbox 3.6.1 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2015-07-01 11:26+0200 Last-Translator: Automatically generated Language-Team: none Language: en MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu “%s” but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path “%s” from utf8�Failed to execute command for pipe-menu “%s”: %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action “%s” requested. No such action exists.�Invalid button “%s” in mouse binding�Invalid button “%s” specified in config file�Invalid command line argument “%s” �Invalid context “%s” in mouse binding�Invalid key code “%s” in key binding�Invalid key name “%s” in key binding�Invalid modifier key “%s” in key/mouse binding�Invalid output from pipe-menu “%s”�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file “%s” line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key “%s” does not exist on the display�Resi_ze�Restart failed to execute new executable “%s”: %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window “%s” does not seem to be responding. Do you want to disconnect it from the X server?�The window “%s” does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory “%s”: %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file “%s”�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�����������������������������������������������������������������openbox-3.6.1/po/en@boldquot.gmo��������������������������������������������������������������������0000644�0001753�0000144�00000022130�12544731073�013515� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������_����������� ����������� �� �����1���)�����[��A���v��/�����B�����F���+ ��C���r ��#��� ��1��� ��5��� ��C���B ��&��� ��@��� ��-��� ��.��� ��3���K ����� ��0��� �� ��� ����� ����� ��&��� ��!��� ��3���@ �����t ��-���{ �� ��� ����� ��(��� �� ��� ��7��� �����* �� ���3 �� ���> �����J �����R �� ���W ��)���d ��0��� ��*��� ��A��� �� ���,�����8��5���A��$���w��,�����#�����%�����$�����$���8��.���]��"����� ���������� ���������������������������������������������V����������0��������4��1���<�� ���n�����y��"�����`�����j����� �����+�����>�����%��������!��!���9�����[�����j��!���r������������������������������������� ���������� �����t�������y�� �����1����������A�����/���(��B���X��F�����C�����#���&��1���J��5���|��C�����&�����@�����-���^��.�����3����������0����� ���9�����F�����X��&���g��!�����?����������-����� ���%�����1��(���7�� ���`��7���n������� ����� ��������������� �����5�����<�����*���S��A���~�� ����������A�����0�����8���H��/�����1�����0�����0�����:���E��.����� ���������� ���������������������������������������������V��� �����!��<���!�����L!��=���T!�� ���!�����!��"���!��l���!��v���H"�� ���"��7���"��>���#��1���C#�����u#��!���#�����#�����#��!���#�����#�����#�����#�����$����� $�����$�����$�� ���.$�����<$�� ���M$�����(���3���M������^���$������W�����������O���7���S����������Q���A������F���+���>���&���)���#���"�������/���-���X������L���?���*����������R���,���<���B������ ���D������������������������������������V���'������� ���6�������P�������J�����������[���;���9����������1��� �����������������E���\���Y�������@���%�����������������]������U���:���G���=���5���4���H��� ��� ������I���_��������������T���Z���C���N������2���.���!��������������� ����������������0�������K��������������������8�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: openbox 3.6.1 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2015-07-01 11:26+0200 Last-Translator: Automatically generated Language-Team: none Language: en MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu “%s” but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path “%s” from utf8�Failed to execute command for pipe-menu “%s”: %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action “%s” requested. No such action exists.�Invalid button “%s” in mouse binding�Invalid button “%s” specified in config file�Invalid command line argument “%s” �Invalid context “%s” in mouse binding�Invalid key code “%s” in key binding�Invalid key name “%s” in key binding�Invalid modifier key “%s” in key/mouse binding�Invalid output from pipe-menu “%s”�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file “%s” line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key “%s” does not exist on the display�Resi_ze�Restart failed to execute new executable “%s”: %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window “%s” does not seem to be responding. Do you want to disconnect it from the X server?�The window “%s” does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory “%s”: %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file “%s”�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/es.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021675�12544731073�011665� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� ������������q�� �����F�����$�����g�����3���l��K�����P�����'���=��0���e��<�����I�����(�����H���F��3�����1����������>��������N�����d�����t��*����������6����������M��������]�����o��G���v�� �����F����� ����� ��������+�����=�����F�����L��,���]��;�����2�����A����� ���;�� ���F��?���Q��(�����B�����1�����*���/��%���Z��$�����R�����#����� ��������*�� ���0�����;�����S�����[�����^�����t�����w�����Y�����v�� ���g ��1���r ����� ��9��� �� ��� ����� ��,���!��S���F!��Z���!�����!��1���!��`���0"��8���"�����"�����"�����"��(���#�����-#�����1#�����N#�����V#�����\#�����c#�����k#�����#�����#�� ���#�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-05-04 16:39-0300 Last-Translator: Nicolás de la Torre <ndelatorre@gmail.com> Language-Team: español <es@li.org> Language: es MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Opciones de depuración: � Opciones: � enviando mensajes a la instancia que se está ejecutando de Openbox: � Por favor, enviar los errores a %s � --config-file ARCHIVO Especifique la ruta del archivo de configuración a usar � --debug Mostrar salida del depurador � --debug-focus Mostrar salida del depurador para el manejo del foco � --debug-xinerama Separar la visualización en pantallas de xinerama falsas � --exit Salir de Openbox � --help Muestra esta ayuda y sale � --reconfigure Recargar la configuración de Openbox � --replace Remplaza el gestor de ventanas actual actualmente � --restart Reiniciar Openbox � --sm-disable Deshabilita la conexión con el gestor de sesión � --sync Ejecutar en modo sincrónico � --version Muestra la versión y sale �%s requiere un argumento �Un gestor de ventanas ya se está ejecutando en la pantalla %d�Todos los escritorios�Siempre _debajo�Siempre _encima�¿Está seguro que desea salir de Openbox?�¿Está seguro que desea salir?�Se intentó acceder al menú "%s" pero éste no existe�Cancelar�No se puede establecer los modificadores de localización para el servidor X.�Menú del cliente�Cerrar�Conflicto con la combinación de teclas en el archivo de configuración�Copyright (c)�No se pudo obtener la selección del gestor de ventanas en pantalla %d�Escritorios�Desconectar�Finalizar proceso�Ejecutar�Salir�Salir de Openbox�No se pudo convertir la ruta "%s" desde utf8�No se pudo ejecutar el comando para el pipe-menu "%s": "%s"�Falló la inicialización de la librería obrender�No se pudo abrir la pantalla desde la variable de entorno DISPLAY�Ir ahí...�Mi_nimizar�La acción "%s" solicitada es inválida. No existe tal acción.�Botón inválido "%s" asociado al ratón�Botón inválido "%s" especificado en el archivo de configuración�Argumento de la línea de comando inválido "%s" �Contexto inválido "%s" asociado al ratón�El código de tecla "%s" es inválido�El nombre de tecla "%s" es inválido�El modificador de la tecla "%s" es inválido para combinaciones de teclas o ratón�Salida inválida del pipe-menu "%s"�Terminando...�Salir�Ma_ximizar�Administrar escritorios�Más...�No�No está respondiendo�OK�Uno o más errores de sintaxis XML fueron encontrados leyendo los archivos de configuración de Openbox. Ver salida (stdout) para mas información. El último error viste estaba en el archivo "%s" linea %d, con el mensaje: %s�Error de Sintaxis de Openbox�Openbox está configurado para escritorio %d, pero la sesión actual usa %d. Invalidando la configuración de Openbox.�Openbox está configurado para escritorios %d, pero la sesión actual usa %d. Invalidando la configuración de Openbox.�Rest_aurar�La tecla solicitada "%s" no existe en la pantalla�Redimen_sionar�El reinicio impidió iniciar el nuevo ejecutable "%s": %s�Ejecutando %s�Sintaxis: openbox [opciones] �El WM en la pantalla %d no se está cerrando�La ventana "%s" no parece estar respondiendo. ¿Desea desconectarla del servidor X?�La ventana "%s" parce que no responde. ¿Desea forzar el cierre enviándole la señal %s?�_Decorar�No es posible cambiar al directorio home "%s": %s�No es posible encontrar un archivo de configuración válido, usando algunos valores por defecto�No es posible encontrar un archivo de menú "%s" válido�No es posible cargar el tema.�Ventana sin nombre�Ventanas�El servidor X no soporta localizaciones.�Sí�_Añadir un nuevo escritorio�_Cerrar�_Capa�_Mover�_Normal�_Quitar el último escritorio�En/Desen_rollar�_Enviar al escritorio�Escritorio %i��������������������������������������������������������������������openbox-3.6.1/po/et.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021105�12544731073�011652� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������\������������������������ �����1��������+��A���F��/�����B�����C�����#���? ��1���c ��5��� ��C��� ��&��� ��@���6 ��.���w ��3��� ����� ��0��� �� ���$ �����1 �����C ��&���R ��!���y ��3��� ����� ��-��� �� ��� ����� ��(��� �� ���? ��7���M ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���E �� ��� ����� ��5��� ��$��� ��,��� ��#���$��%���H��$���n��$�����.�����"����� ��� ������� ��������'�����7�����?�����B�����Q�����T����������#�������0��������8��1���@�� ���r�����}��"�����`�����j����� �����+�����>�����%��������%��!���=�����_�����n��!���v������������������������������������� ���������� �������������� �����3����������B�����0���F��A���w��C�����(�����7���&��@���^��>�����0�����:�����1���J��7���|�������#��������������������/���!��)���Q��<���{�������6���������������(��������7��2���J�� ���}�� �������������������������0�����2�����0���-��=���^�� ����������@�����$�����.��� �����O��(���n��"�����"�����8�����"��������9�� ���B�� ���N�����Z�� ���k�����u�����x���������������(�����@�������+��������:��E���I�� ���������������O�����`���& ����� ��+��� ��W��� ��,���!!�����N!��%���l!�� ���!�����!�����!�����!�����!�����!�����!�����!�� ���!�����!�����"�����%"�� ���8"�����&���1���J������[���"�������������������L���5���\����������N���?������P���)���<���$���'���!��� �������-���+���U������I���=���(����������O���*���:���@���������A������������������������������������S���%������� ���4�������M�������G�����������X���9���7����������/��������������������B���Y���V�������>���#����������C�������Z������T���8���D���;���3���2���E��� ��� ������F����������� �������Q���W���R���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.11.1 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2010-04-21 21:40+0300 Last-Translator: mihkel <turakas@gmail.com> Language-Team: Estonian <et@li.org> Language: et MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Silumise seaded: � Seaded: � Jooksvale Openboxi seansile sõnumite edastamine: � Palun teata vigadest siia %s � --config-file FAIL Määra kasutatava seadistuste faili teekond � --debug Silumisväljundi kuvamine � --debug-focus Fookusekäsitluse siluriväljundi kuvamine � --debug-xinerama Ekraani võlts-Xinerama ekraanideks jagamine � --exit Välju Openbox-st � --help Selle abi kuvamine ja väljumine � --reconfigure Openboxi konfiguratsioon uuesti laadimine � --replace Hetkel töötava aknahalduri asendamine � --restart Openboxi taaskäivitamine � --sm-disable Seansihalduriga ühenduse keelamine � --sync Sünkroonselt jooksutamine � --version Versiooni kuvamine ja väljumine �%s nõuab argumenti �Ekraanil %d juba jookseb aknahaldur�Kõik töölauad�Aken teiste _all�Aken teiste _peal�Kas oled kindel, et soovid OpenBoxist väljuda?�Kas oled kindel, et soovid välja logida?�Üritati ligi pääseda menüüle "%s", aga seda pole olemas�Katkesta�Ei suudetud sättida lokaadimuutujaid X serveri jaoks.�Kliendi menüü�Sulge�Konflikt kiirklahviga seadistuste failis�Autoriõigused (c)�Ei suuda hankida aknahaldurite loetelu ekraanil %d�Töölauad�Ühenda lahti�Lõpeta protsess�Käivita�Välju�Välju Openbox-st�Raja "%s" ümberkodeerimine UTF8-st ebaõnnestus�Ei suudetud käivitada torumenüü "%s" käsku: %s�Obrender-damise teegi käivitamine ebaõnnestus.�DISPLAY keskkonnamuutujas oleva ekraani avamine ebaõnnestus.�Mine sinna...�Muuda _ikooniks�Taotleti kehtetut käsklust "%s". Sellist käsklust pole olemas.�Vigane nupp "%s" hiire kiirklahvides�Vigane nupp "%s" määratud seadistuste failis�Vigane käsurea argument "%s" �Vigane kontekst "%s" hiire kiirklahvides�Vigane klahvikood "%s" kiirklahvil�Vigane klahvinimi "%s" kiirklahvil�Vigane muutujaklahv "%s" hiire/klaviatuuri kiirklahvides�Vigane väljund torumenüüst "%s"�Tapan...�Logi välja�Ma_ksimeeri�Halda töölaudu�Rohkem...�Ei�Ei vasta�Sobib�Üks või enam XML süntaki viga leiti Openboxi seadistuse faili parsides. Rohkem infot leiad stdout-st. Viimane viga oli failis "%s", real %d ja sõnum oli: %s�Openboxi süntaksi viga�Openbox on seadistatud %d töölauale, aga aktiivsel seansil on %d. Tühistan Openboxi seadistuse.�Openbox on seadistatud %d töölauale, aga aktiivsel seansil on %d. Tühistan Openboxi seadistuse.�_Taasta�Soovitud klahvi "%s" ei ole sellel ekraanil�Muuda _suurust�Taaskäivitusel ebaõnnestus uue käivitusfaili "%s" käivitamine: %s�Jooksev %s�Süntaks: openbox [seaded] �Aknahaldur ekraanil %d ei sulgu�Paistab, et aken "%s" ei vasta enam. Kas soovid ta X serverist lahti ühendada?�Paistab, et aken "%s" ei vasta enam. Kas soovid teda jõuga väljuma sundida saates %s signaali?�Äär_ed sisse/välja�Ei suudetud siseneda kodukataloogi "%s": %s�Kehtiva seadistuste faili leidmine ebaõnnestus, kasutatakse lihtsaid vaikimisi seadeid�Ei suudetud leida kehtivat menüüfaili "%s"�Teema laadimine ebaõnnestus.�Kausta '%s' tegemine ebaõnnestus: %s�Nimetu aken�Aknad�X server ei toeta lokaati.�Jah�_Lisa uus töölaud�S_ulge�_Kiht�_Liiguta�_Normaalne�_Eemalda viimane töölaud�_Rulli üles/alla�_Saada töölauale�töölaud %i������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/eu.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021570�12544731073�011661� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������\������������������������ �����1��������+��A���F��/�����B�����C�����#���? ��1���c ��5��� ��C��� ��&��� ��@���6 ��.���w ��3��� ����� ��0��� �� ���$ �����1 �����C ��&���R ��!���y ��3��� ����� ��-��� �� ��� ����� ��(��� �� ���? ��7���M ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���E �� ��� ����� ��5��� ��$��� ��,��� ��#���$��%���H��$���n��$�����.�����"����� ��� ������� ��������'�����7�����?�����B�����Q�����T����������#�������0��������8��1���@�� ���r�����}��"�����`�����j����� �����+�����>�����%��������%��!���=�����_�����n��!���v������������������������������������� ���������� �������������� �����>�����*�����I���-��0���w��@�����C�����#���-��2���Q��:�����G�����+�����?���3��0���s��3����������K��������?�� ���Q�� ���^��-���l��%�����4����������=����� ���<�����I��5���N�� �����O����� ����� ���������� ��� ������������,���.��;���[��-�����;����� ����������B�����'���Z��;�����(�����-�����,�����,���B��;���o��%����� ����� ����� ���������� ��� ������� ��������%�����*������������� �����/��� �����2 ��D���B ����� ����� ��9��� ��\��� ��Z���J!�� ���!��,���!��^���!��0���?"�����p"��"���"�����"�����"��(���"�����"�����"�����#�����#�����#�����%#�����-#�����G#�����V#�� ���j#�����&���1���J������[���"�������������������L���5���\����������N���?������P���)���<���$���'���!��� �������-���+���U������I���=���(����������O���*���:���@���������A������������������������������������S���%������� ���4�������M�������G�����������X���9���7����������/��������������������B���Y���V�������>���#����������C�������Z������T���8���D���;���3���2���E��� ��� ������F����������� �������Q���W���R���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-10-22 18:06+0100 Last-Translator: Inko I. A. <inkoia@gmail.com> Language-Team: Inko I. A. <inkoia@gmail.com> Language: eu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1; � Arazketa aukerak: � Aukerak: � Exekutatzen ari den Openbox instantzia bati mezuak pasatzen: � %s helbidean erroreen berri eman mesedez �--config-file FILE Zehaztu erabiltzeko konfigurazio fitxategirako bidea � --debug Arazketa irteera erakutsi � --debug-focus Erakutsi arazketa irteera foku maneiurako � --debug-xinerama Zatitu pantaila xinerama pantaila faltsuetan � --exit Itxi Openbox � --help Mezu hau erakutsi eta irten � --reconfigure Birkargatu Openbox-en konfigurazioa � --replace Ordezkatu exekutatzen ari den leiho-kudeatzailea � --restart Berrabiarazi Openbox � --sm-disable Ezgaitu saio kudeatzailearekiko konexioa � --sync Modu sinkronoan exekutatu � --version Bertsioa bistarazi eta irten �%s argumentu bat behar du �Bistaratzeko %d pantailan aurretik leiho-kudeatzaile bat exekutatzen ari da�Idazmahai guztiak�Beti _azpian�Beti _gainean�Ziur al zaude Openbox-etik irten nahi duzula?�Ziur al zaude saioa itxi nahi duzula?�"%s" menua atzitzen saiatu da baina ez da existitzen�Ezeztatu�Ezin da locale modifikatzailerik ezarri X zerbitzariarentzat.�Bezero menua�Itxi�Gatazka konfigurazio fitxategiko tekla elkarketarekin�Copyright (c)�Ezin izan da eskuratu leiho-kudeatzailearen hautapena bistaratzeko %d pantailan�Idazmahaiak�Deskonektatu�Prozesua Amaitu�Exekutatu�Irten�Openbox-etik Irten�Hutsegitea "%s" helbidea utf8-tik bihurtzean�Hutsegitea "%s" pipe-menuarentzat komandoa exekutatzean: %s�Hutsegitea obrender liburutegia hasieratzean.�Hutsegitea pantaila irekitzean DISPLAY ingurune aldagaitik.�Hona joan...�Iko_notu�Eskatutako "%s" ekintza baliogabea. Ez da ekintza hori existitzen.�Baliogabeko "%s" botoia sagu elkarketan�Konfigurazio fitxategian zehaztutako "%s" botoia baliogabea�"%s" komando lerro argumentu baliogabea �Baliogabeko "%s" testuingurua sagu elkarketan� tekla elkarketan "%s" tekla kode baliogabea� tekla elkarketan "%s" tekla izen baliogabea� tekla/sagu elkarketan "%s" modifikatzaile tekla baliogabea�Baliogabeko irteera "%s" pipe-menutik�Akabatzen...�Saioa Itxi�Ma_ximizatu�Idazmahaiak kudeatu�Gehiago...�Ez�Erantzunik Ez�Ados�XML sintaxi errore bat edo gehiago aurkitu dira Openbox konfigurazio fitxategiak interpretatzerakoan. Ikusi stdout informazio gehiago jasotzeko. Azken errorea "%s" fitxategian %d lerroan izan da, mezu honekin: %s�Openbox sintaxi errorea�Openbox %d idazmahaientzat konfiguratua dago, baina uneko saioak %d dauzka. Openbox konfigurazioa gainjartzen.�Openbox %d idazmahaientzat konfiguratua dago, baina uneko saioak %d dauzka. Openbox konfigurazioa gainjartzen.�Berr_ezarri�Eskatutako "%s" tekla ez da pantaila existitzen�_Tamaina aldatu�Berrabiarazteak hutsegitea "%s" exekutagarri berria exekutatzean: %s�Egikaritzen %s�Sintaxia: openbox [aukerak] �%d bistaratze pantailako leiho-kudeatzailea ez da irteten�Badirudi "%s" leihoak ez duela erantzuten. Nahi al duzu leihoa X zerbitzaritik deskonektatu?�Badirudi "%s" leihoak ez duela erantzuten. Nahi al duzu istea behartu %s seinalea bidaliz?�Des/_Dekoratu�Ezin da "%s" hasiera direktoriora aldatu: %s�Ezin da baliozko konfigurazio fitxategirik aurkitu, hainbat aukera lehenetsi sinple erabiltzen�Ezin da "%s" baliozko menu fitxategi bat aurkitu�Ezin da gai bat kargatu.�Ezin da '%s' direktorioa sortu: %s�Izenik gabeko leihoa�Leihoak�X zerbitzariak ez du locale euskarririk.�Bai�Idazmahai berria _gehitu�_Itxi�_Geruza�_Mugitu�_Ohikoa�Azken idazmahaia _ezabatu�Bildu/_Zabaldu�_Bidali idazmahaira�%i Idazmahaia�����������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/gl_ES.gmo��������������������������������������������������������������������������0000644�0001753�0000144�00000020477�12544731073�012246� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D������������0��������M��1���U�� ����������"�����`�����j���1�� �����+�����>�����%��������:��!���R�����t�������!���������������������������������������� ���������� �����\�������z�� �����6�����%�����L�����5���K��A�����Q�����'�����-���=��;���k��F�����(�����@�����1���X��-����������6������������������-��(���<��(���e��-����������=���������������;����� ���W��D���e�� ����� �������������������������'�����4���#��$���X��:���}�� ����� �����:�����(��� ��A���2��0���t��+�����)�����3�����=���/��(���m�� ���������� �������������������� �������������������� �����4��������(��4���7�� ���l�����z��%�����P�����^��������m��/�����M�����1��� �����3 ��%���M �����s ����� ��"��� ����� ����� ����� ����� ����� ����� ����� �����!�����!�� ���1!�����&���1���I������Z���"�������������������K���5���[����������M���?������O���)���<���$���'���!��� �������-���+���T������H���=���(����������N���*���:�������������@������������������������������������R���%������� ���4�������L�������F�����������W���9���7����������/��������������������A���X���U�������>���#����������B�������Y������S���8���C���;���3���2���D��� ��� ������E����������� �������P���V���Q���J������0���,������������������ ����������������.�������G��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.5.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2013-10-29 18:52+0100 Last-Translator: Javier Mancebo <palleiros@yahoo.es> Language-Team: Galician Language: gl_ES MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit � Opcións de depuración: � Opcións: � Pasar mensaxes a unha instancia de Openbox correndo: � Faga o favor de notificar bugs a %s � --config-file FILE Especifica a ruta ó arquivo de configuración en uso � --debug Amosa-la saída de depuración � --debug-focus Amosa-la saída de depuración manualmente � --debug-xinerama Divide a presentación en varias falsas pantallas xinerama � --exit Saír de Openbox � --help Amosa esta axuda e sae � --reconfigure Recarga-la configuración de Openbox � --replace Reempraza o xestor de fiestras que está activo � --restart Reiniciar Openbox � --sm-disable Inhabilita conexión ó xestor de sesión � --sync Executar en modo síncrono � --version Amosa a versión e sae �%s require un argumento �Un xestor de fiestras está xa correndo na pantalla %d�Tódolos escritorios�Sempre em_baixo�Sempre en_riba�Estas seguro de querer saír de Openbox?�Estas seguro de querer saír da sesión?�Tento de acceder a menú "%s" mais non existe�Cancelar�Non se poden fixar modificadores de locale para o servidor X.�Menú do cliente�Pechar�Conflito con atallo de teclado en arquivo de configuración�Copyright (c)�Non se pode adquirir selección de xestor de fiestras na pantalla %d�Escritorios�Desconectar�Proceso de finalización�Executar�Saír�Saír do Openbox�Erro convertendo a ruta "%s" dende utf8�Erro ó executa-lo comando para "pipe-menu" "%s": %s�Erro iniciando a biblioteca obrender�Erro abrindo "display" dende a variable de entorno DISPLAY�Ir ali...�Ico_nificar�Acción non válida "%s" solicitada. A acción non existe.�Botón no válido "%s" en atallo de rato�Botón "%s" non válido especificado en arquivo de configuración�Argumento de liña de comandos "%s" non válido �Contexto non válido "%s" en atallo de rato�Chave "%s" inválida en atallo de teclado�Nome de tecla "%s" non válido en atallo de teclado�Tecla modificadora "%s" non válida en atallo de teclado/rato�Saída non válida para "pipe-menu" "%s"�Abortando...�Saír da sesión�Ma_ximizar�Xestionar escritorios�Máis...�Non�Sen resposta�Feito�Un ou mais erros de sintaxe XML foron atopados mentras se analizaban os arquivos de configuración de Openbox. Olla stdout para máis información. O último erro visto foi no arquivo "%s" liña %d, coa mensaxe: %s�Erro de sintaxe de Openbox.�Re_staurar�A tecla "%s" solicitada non existe na visualización�_Redimensionar�Reinicio fallou ó executar novo executable "%s": %s�Executando %s�Sintaxe: openbox [opcións] �O WM na pantalla %d non está a sair.�A fiestra "%s" non semella estar a respostar. Queres desconectala do Servidor X?�A fiestra "%s" non semella estar a respostar. Queres forzala a saír enviándolle un sinal %s?�Eliminar _decoración�Imposible cambiar a directorio persoal "%s": %s�Imposible atopar un arquivo válido de configuración, usando un por defecto.�Imposible atopar un arquivo válido de menú "%s"�Imposible cargar un Tema.�Imposible crea-lo directorio "%s": %s�Fiestra sen nome�Fiestras�O Servidor X non soporta a locale.�Si�Engadir _novo escritorio�_Pechar�_Capa�_Mover�_Normal�_Eliminar último escritorio�_Enrolar cara abaixo�_Enviar ó escritorio�escritorio %i��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/fi.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021403�12544731073�011641� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������\������������������������ �����1��������+��A���F��/�����B�����C�����#���? ��1���c ��5��� ��C��� ��&��� ��@���6 ��.���w ��3��� ����� ��0��� �� ���$ �����1 �����C ��&���R ��!���y ��3��� ����� ��-��� �� ��� ����� ��(��� �� ���? ��7���M ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���E �� ��� ����� ��5��� ��$��� ��,��� ��#���$��%���H��$���n��$�����.�����"����� ��� ������� ��������'�����7�����?�����B�����Q�����T����������#�������0��������8��1���@�� ���r�����}��"�����`�����j����� �����+�����>�����%��������%��!���=�����_�����n��!���v������������������������������������� ���������� �������������� �����8����������F�����3���K��F�����A�����$�����4���-��?���b��A�����4�����9�����/���S��7����������2������������������/��"���H��!���k��>����������3���������������5��������T��4���i�� ������������������������� �����,�����0�����1���B��4���t������� �����A�����*�����;���3�����o��-�����3�����.�����B�����&���_�� ����� ����� ���������� ���������� ������������������������������8����� �����L��������, �����; ��)���Y ��Q��� ��[��� �����1!��1���A!��R���s!��+���!�����!��'���"�����:"�����J"�����R"�����r"�����y"�����"�����"�����"�� ���"�����"�����"�����"�� ���"�����&���1���J������[���"�������������������L���5���\����������N���?������P���)���<���$���'���!��� �������-���+���U������I���=���(����������O���*���:���@���������A������������������������������������S���%������� ���4�������M�������G�����������X���9���7����������/��������������������B���Y���V�������>���#����������C�������Z������T���8���D���;���3���2���E��� ��� ������F����������� �������Q���W���R���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.11 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2010-03-13 21:56+0100 Last-Translator: Lauri Hakko <aperculum@gmail.com> Language-Team: None Language: fi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Vianjäljityksen asetukset: � Käyttö: � Komentojen antaminen käynnissä olevalle Openboxille: � Ilmoita virheistä: %s � --config-file FILE Määritä käytettävän asetustiedoston polku � --debug Näytä vianjäljitystuloste � --debug-focus Näytä vianjäljitystuloste ikkunavalitsimelle � --debug-xinerama Jaa näyttö kahteen vale-xinerama-ruutuun � --exit Sulje Openbox � --help Näytä tämä ohje ja poistu � --reconfigure Lataa Openboxin asetustiedosto uudelleen � --replace Korvaa käynnissä oleva ikkunointiohjelma � --restart Käynnistä Openbox uudelleen � --sm-disable Estä yhteys istuntojen hallintaan � --sync Aja synkronointi-tilassa � --version Näytä version tiedot ja poistu �%s tarvitsee argumentin �Ikkunointiohjelma on jo käynnissä näytöllä %d�Kaikkiin työtiloihin�Aina _alimmaisena�Aina _päällimmäisenä�Haluatko varmasti sulkea Openboxin�Haluatko varmasti kirjautua ulos?�Valikon "%s" lukemista yritettiin, mutta sitä ei ole olemassa�Peruuta�Maa-asetusmuuttujia ei voitu tehdä X-palvelimelle.�Ikkunan valikko�Sulje�Päällekäisiä näppäinsidontoja asetustiedostossa�Tekijänoikeudet (c)�Ikkunointiohjelman valinta ruudulla %d ei onnistunut�Työtilat�Katkaise yhteys�Lopeta prosessi�Suorita�Sulje�Sulje Openbox�Polun "%s" muuntaminen utf8:sta epäonnistui�Putkivalikon suorittaminen epäonnistui "%s": %s�Obrender-kirjaston käynnistäminen epäonnistui.�Näytön avaaminen DISPLAY-muuttujasta epäonnistui.�Näytä tämä...�Pie_nennä�Pyydettiin virheellinen toiminto "%s". Toimintoa ei ole olemassa.�Virheellinen painike "%s" hiirisidonnoissa�Asetustiedostossa määritelty painike "%s" on virheellinen�Virheellinen valitsin "%s" �Virheellinen asiayhteys "%s" hiirisidonnoissa�Virheellinen näppäinkoodi "%s" pikanäppäimissä�Virheellinen näppäin "%s" pikanäppäimissä�Virheellinen valintanäppäin "%s" näppäin- tai hiirisidonnoissa�Virheellinen tulos putkivalikosta "%s"�Tapetaan...�Kirjaudu ulos�Suurenn_a�Työtilojen hallinta�Lisää...�Ei�Ei vastaa�OK�Yksi tai useampi XML-syntaksivirhe löytyi asetustiedostoa käsiteltäessä. Lue stdout saadaksesi lisätietoja. Viimeisin virhe oli tiedostossa "%s" rivillä %d: %s�Openbox syntaksivirhe�Openbox on asetettu käyttämään %d työtilaa, mutta nykyisessä istunnossa työtiloja on %d. Ohitetaan Openboxin asetus.�Openbox on asetettu käyttämään %d työtilaa, mutta nykyisessä istunnossa työtiloja on %d. Ohitetaan Openboxin asetus.�_Palauta�Pyydettyä näppäintä "%s" ei ole olemassa näytöllä�_Muuta kokoa�Uudelleenkäynnistys ei onnistunut käynnistämään uutta ohjelmaa "%s": %s�Suoritetaan %s�Syntaksi: openbox [valitsin] �Ikkunointiohjelma ruudulla %d ei sulkeudu�Ikkuna "%s" ei näytä vastaavan. Haluatko katkaista sen yhteyden X-palvelimeen?�Ikkuna "%s" ei näytä vastaavan. Haluatko sulkea sen lähettämällä sille singaalin %s?�(Epä)_reunusta�Kotihakemistoon "%s" vaihtaminen epäonnistui: %s�Kelvollista asetustiedostoa ei löytynyt, käytetään yksinkertaisia oletusarvoja�Toimivaa valikkotiedostoa ei löytynyt "%s"�Teeman lataaminen epäonnistui.�Hakemiston '%s' luonti epäonnistui: %s�Nimetön ikkuna�Ikkunat�X-palvelin ei tue maa-asetusta.�Kyllä�_Lisää uusi työtila�_Sulje�_Kerros�S_iirrä�_Tavallinen�_Poista viimeisin työtila�Rullaa _ylös/alas�_Lähetä työtilaan�työtila %i��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/fr.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022533�12544731073�011657� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������]������������������������ �����1��� �����;��A���V��/�����B�����F��� ��C���R ��#��� ��1��� ��5��� ��C���" ��&���f ��@��� ��.��� ��3��� �����1 ��0���J �� ���{ ����� ����� ��&��� ��!��� ��3��� �����& ��-���- �� ���[ �����g ��(���m �� ��� ��7��� ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0���@ ��*���q ��A��� �� ��� ����� ��5��� ��$���)��,���N��#���{��%�����$�����$�����.�����"���>�� ���a�����l�� ���t�����~������������������������������e�����z�����U��0���^�������1����� ����������"�����`�����j���s�� �����+�����>�����%���V�����|��!���������������!����������������������� ��������������� �� ���5�����C�� ���T����_������� ��� ��7�����0���P��P�����5�����N�����P���W��F�����'�����3�����:���K��Q�����(�����I�����0���K��3���|�������9������������������.��.���H��/���w��1����������K��������-�����@��E���G�� �����N���������� ����������������������� ��6���0��F���g��6�����O����� ���5�� ���A��=���L��7�����?�����1�����9���4��8���n��7�����T�����#���4�����X�� ���_�� ���k�����v������������ ������������������ ����� �� ���!��7���!�����!��I���!����� "�����0"��L���M"��Q���"��f���"�����S#��E���c#��X���#��8���$�����;$��-���[$�����$�����$��-���$�����$�����$�����$�� ���$�� ���$�����%�����%�� ���,%�����9%�� ���Q%�����'���2���K������\���#������������������M���6���]����������O���@������Q���*���=���%���(���"���!�������.���,���V������J���>���)����������P���+���;���A���������B������������������������������������T���&������� ���5�������N�������H�����������Y���:���8����������0��� �����������������C���Z���W�������?���$����������D�������[������U���9���E���<���4���3���F��� ��� ������G������������������R���X���S���L������1���-��� ��������������� ����������������/�������I��������������������7�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-03-02 02:06+0100 Last-Translator: Cyrille Bagard <nocbos@gmail.com> Language-Team: franais <fr@li.org> Language: fr MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Options de dboguage: � Options: � Passage de messages l'instance d'Openbox en cours: � Veuillez soumettre les rapports de bogues %s � --config-file FILE Spcifie le chemin du fichier de configuration utiliser � --debug Affiche la sortie de dboguage � --debug-focus Affiche la sortie de dboguage pour la gestion du focus � --debug-session Affiche la sortie de dboguage pour la gestion du session � --debug-xinerama Dcoupe l'affichage en crans xinerama factices � --exit Sortir d'Openbox � --help Affiche cette aide et quitte � --reconfigure Recharge la configuration d'Openbox � --replace Remplace le gestionnaire de fentres actuellement en usage � --restart Redmarre Openbox � --sm-disable Dsactive la connexion au gestionnaire de sessions � --sync Excute en mode synchrone � --version Affiche la version et quitte �%s requiert un argument �Un gestionnaire de fentres est dj lanc sur l'cran %d�Tous les bureaux�Toujours en _arrire plan�_Toujours au premier plan�tes-vous certain de vouloir quitter Openbox ?�tes-vous certain de vouloir vous dconnecter ?�Tentative d'accs au menu %s qui n'existe pas�Annuler�Impossible d'appliquer les modifications de localisation pour le serveur X.�Menu de la fentre�Fermer�Conflit entre les raccourcis clavier dans le fichier de configuration�Copyright (c)�Impossible d'acqurir la slection du gestionnaire de fentres pour l'cran %d�Bureaux�Dconnexion�Fin de processus�Excuter�Quitter�Quitter Openbox�chec de la conversion du chemin %s depuis l'UTF-8�chec lors de l'excution de la commande pour un pipe-menu %s: %s�chec de l'initialisation de la bibliothque obrender.�chec de l'ouverture de l'affichage depuis la variable d'environnement DISPLAY.�Aller l...�Ico_nifier�Action demande invalide "%s". Une telle action n'existe pas.�Bouton %s invalide dans le paramtrage de la souris�Bouton %s indiqu dans le fichier de configuration invalide�Argument de la ligne de commande invalide %s �Contexte %s invalide dans le paramtrage de la souris�Code de touche %s invalide dans le raccourci clavier�Nom de touche %s invalide dans le raccourci clavier�Touche de modification %s invalide dans le paramtrage du clavier / de la souris�Sortie du pipe-menu invalide %s�Tue...�Dconnexion�Ma_ximiser�Grer les bureaux�Plus...�Non�Ne rpond pas�OK�Une ou plusieurs erreurs de syntaxe XML ont t trouves lors de l'analyse des fichiers de configuration d'Openbox. Voir stdout pour plus d'information. La dernire erreur vue tait dans le fichier "%s", ligne %d, avec le message : %s�Erreur de syntaxe Openbox�Openbox est configur pour %d bureau, mais la session en a %d. Ceci supplante la configuration d'Openbox.�Openbox est configur pour %d bureaux, mais la session en a %d. Ceci supplante la configuration d'Openbox.�R_estaurer�La touche demande %s n'existe pas pour l'affichage�Red_imensionner�Le redmarrage n'a pas russi excuter le nouvel excutable %s: %s�Excution de %s�Syntaxe: openbox [options] �Le gestionnaire de fentres sur l'cran %d n'est pas en train de se terminer�La fentre "%s" semble ne pas rpondre. Voulez-vous la dconnecter du serveur X ?�La fentre "%s" semble ne pas rpondre. Voulez-vous la forcer se terminer en envoyant un signal %s ?�Ne pas/D_corer�Impossible de changer vers le rpertoire de l'utilisateur %s: %s�Impossible de trouver un fichier de configuration valide, utilisation de dfauts simples�Impossible de trouver un fichier de menus valide %s�Impossible de charger un thme.�Impossible de crer le rpertoire %s: %s�Fentre sans nom�Fentres�Le serveur X ne supporte pas la localisation.�Oui�_Ajouter un bureau�_Fermer�_Disposition�D_placer�_Normal�_Supprimer le dernier bureau�En/D_rouler�En_voyer vers le bureau�bureau %i����������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/he.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000015653�12544731073�011651� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������E������D��a���l�������� ���������������&�����!���F��3���h�������-����� ����������(�������� �� ����� ��� �����,�����4�� ���9��)���F��0���p��*����� ����������5�����$�����,���<��%���i��$�����$�����.�����"��� �� ���+ �����6 �� ���> �����H �����X �����` �����c �����r �����u �����/ �����D ��V��� �����v ��0��� ����� �� ��� ��"��� ��`��� ��j���G �� ��� ��+��� ��>��� ��%���* �����P ��!���h ����� ����� ��!��� ����� ����� ����� ����� ����� ����� ����� �� ��� ������� ���(����3��������������� ��4���#��(���X��C����� �����L�������������1��;���:�����v�� ��������������� ����������1�����J�����/���[������� �����P�����/�����8���5��/���n��2�����0�����G�����2���J�����}�� ����� ���������� ���������� ����� ��������� �����%����o���B�� �����3������������� ��<�����`���\����������C��7���X��z�����;��� ��&���G��0���n������� �����)��������������� ����� ����� ���*�� ���6�����D�����d��������������������������/���D�������*������#�������:������������������� ����������� ���"��������������E���2���-���.�����������%������������9�����������&���8����������!���������,���(���+����������������������6����������@��� ��� ���1������A���=���>���3������� ������ ����������<�����������7�������$���)���������C������?����������������;���'�����������0����������5���4���B����All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Running %s�The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: openbox git Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2013-01-01 20:23+0200 Last-Translator: Eli Zaretskii <eliz@gnu.org> Language-Team: Rahut <genghiskhan@gmx.ca> Language: he MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Poedit 1.5.4 �כל השולחנות�תמיד תחתון (_B)�תמיד עליון (_T)�האם אכן ברצונך לצאת מן ‫Openbox?�האם אכן ברצונך להתנתק?�מנסה לגשת אל תפריט ‫"%s" אך הוא לא קיים�ביטול�לא ניתן להגדיר משתני מקומיות עבור השרת ‫X.�תפריט לקוח�סגור�התנגשות עם כריכת מקש בקובץ תצורה�שולחנות עבודה�ניתוק�סיום תהליך�הרצה�יציאה�יציאה מן ‫Openbox�כשל בהמרת הנתיב ‫"%s" מן ‫utf8�כשל בהרצת פקודה עבור תפריט-צינור ‫"%s": ‫%s�כשל באתחול הספרייה ‫obrender.�לך אל מרחב זה...�מזער (_N)�התבקשה פעולה שגויה ‫"%s". פעולה שכזו לא קיימת.�לחצן שגוי ‫"%s" בכריכת עכבר�לחצן שגוי ‫"%s" צוין בקובץ תצורה�הקשר שגוי ‫"%s" בכריכת עכבר�קוד מקש שגוי ‫"%s" בכריכת מקש�שם מקש שגוי ‫"%s" בכריכת מקש�משתני מקשים שגויים ‫"%s" בכריכת מקש/עכבר�פלט שגוי מן תפריט-צינור ‫"%s"�הורג כעת...�יציאה�הגדל (_X)�ניהול שולחנות�עוד...�לא�לא מגיב�אישור�שגיאות תחביר ‫XML אחת או יותר נמצאו בשעת ניתוח קובצי התצורה של Openbox. ראה ‫stdout עבור מידע נוסף. השגיאה האחרונה שנראתה הייתה בקובץ ‫"%s" שורה %d, עם הודעה: %s�שגיאת תחביר ‫Openbox�‫Openbox הינו מוגדר עבור מרחב %d, אולם לסשן הנוכחי יש %d. עוקף כעת את התצורה של ‫Openbox.�‫Openbox הינו מוגדר עבור %d מרחבים, אולם לסשן הנוכחי יש %d. עוקף כעת את התצורה של ‫Openbox.�‫Openbox הודר ללא תמיכת הטענת תמונות. צלמיות בתפריטים לא יוטענו.�שחזר (_E)�מקש מבוקש ‫"%s" לא קיים על הצג�שנה גודל (_Z)�מריץ כעת ‫%s�מנהל החלונות שעל מרקע %d אינו קיים�נראה שהחלון ‫"%s" לא מגיב. האם ברצונך לנתקו מן השרת ‫X?�נראה שהחלון ‫"%s" לא מגיב. האם ברצונך לכפות אותו לצאת על ידי שליחת האות ‫%s?�אי/עיטור (_D)�לא ניתן לשנות מדור בית ‫"%s": ‫%s�לא ניתן למצוא קובץ תצורה תקף, עושה שימוש כעת בהגדרות משתמטות פשוטות�לא ניתן למצוא קובץ תפריט תקף ‫"%s"�לא ניתן להטעין מוטיב.�לא ניתן ליצור מדור ‫'%s': ‫%s�חלון ללא שם�חלונות�שרת ‫X לא תומך מקומיות.�כן�הוסף מרחב חדש (_A)�סגור (_C)�רובד (_L)�הזז (_M)�רגיל (_N)�הסר מרחב אחרון (_R)�גלול מעלה/מטה (_R)�שלח אל מרחב (_S)�מרחב ‫%i��������������������������������������������������������������������������������������openbox-3.6.1/po/hr.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022032�12544731073�011653� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������]������������������������ �����1��� �����;��A���V��/�����B�����F��� ��C���R ��#��� ��1��� ��5��� ��C���" ��&���f ��@��� ��.��� ��3��� �����1 ��0���J �� ���{ ����� ����� ��&��� ��!��� ��3��� �����& ��-���- �� ���[ �����g ��(���m �� ��� ��7��� ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0���@ ��*���q ��A��� �� ��� ����� ��5��� ��$���)��,���N��#���{��%�����$�����$�����.�����"���>�� ���a�����l�� ���t�����~������������������������������e�����z�����U��0���^�������1����� ����������"�����`�����j���s�� �����+�����>�����%���V�����|��!���������������!����������������������� ��������������� �� ���5�����C�� ���T����_������� ��� ��2�����"���I��V���l��;�����P�����R���P��@�����*�����4�����7���D��F���|��)�����?�����:���-��1���h�������1��������������������.�����(���D��6���m�������3���������������:����� ���6��:���D������� �������������������������/�����@�����5���>��C���t�� ����� �����;�����)�����?���8��)���x��,�����/�����-�����>���-��'���l�� ������������������������������ ���������������������������� ��*��� ����� ��@��� !�� ���N!�����[!��*���w!��H���!��L���!�����8"��(���H"��X���q"��1���"�����"��$���#�����9#�����K#�����S#�����r#�����u#�����#�����#�� ���#�� ���#�����#�����#�����#�����$�����'���2���K������\���#������������������M���6���]����������O���@������Q���*���=���%���(���"���!�������.���,���V������J���>���)����������P���+���;���A���������B������������������������������������T���&������� ���5�������N�������H�����������Y���:���8����������0��� �����������������C���Z���W�������?���$����������D�������[������U���9���E���<���4���3���F��� ��� ������G������������������R���X���S���L������1���-��� ��������������� ����������������/�������I��������������������7�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2009-04-05 16:53+0200 Last-Translator: boljsa <asjlob AT vip.hr> Language-Team: <asjlob AT vip.hr> Language: hr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1; � Opcije traženja pogrešaka: � Opcije: � Prosljeđuje poruke pokrenutoj Openbox instanci: � Molimo prijavite pogrešku na %s � --config-file FILE Specificira putanju do konfiguracijske datoteke koja se koristi � --debug Prikazuje izlaz traženja pogrešaka � --debug-focus Prikazuje izlaz traženja pogrešaka za rukovanje fokusom � --debug-session Prikazuje izlaz traženja pogrešaka za rukovanje sessionom � --debug-xinerama Podijeli zaslon u lažne xinerama zaslone � --exit Izlazi iz Openbox-a � --help Prikazuje ovu pomoć i izlazi � --reconfigure Osvježava Openbox konfiguraciju � --replace Zamjenjuje trenutno pokrenut upravitelj prozora � --restart Restartira Openbox � --sm-disable Onemogućuje vezu sa upraviteljom sesija � --sync Pokretanje u sinkronizacijskom modu � --version Prikazuje verziju i izlazi �%s zahtjeva argument �Upravitelj prozora je već pokrenut na zaslonu %d�Sve radne površine�Uvijek na _dnu�Uvijek na _vrhu�Jeste li sigurni da želite zatvoriti Openbox?�Jeste li sigurni da se želite odjaviti?�Pokušavam pristupiti izborniku "%s" ali on ne postoji�Odustani�Ne mogu postaviti lokalne modifikatore za X server.�Izbornik klijenta�Zatvori�Konflikt sa povezivanjem tipki u konfiguracijskoj datoteci�Copyright (c)�Ne mogu ostvariti odabir upravitelja prozora na zaslonu %d�Radne Površine�Prekid veze�Završetak Procesa�Izvrši�Izađi�Zatvori Openbox�Neuspio pokušaj pretvorbe putanje "%s" iz utf8�Neuspio pokušaj izvršavanja naredbe za cijev-izbornik "%s": %s�Neuspio pokušaj inicijalizacije obrender biblioteke.�Neuspio pokušaj otvaranja zaslona iz DISPLAY varijable okruženja.�Idi tamo...�Mi_nimizacija�Nevažeća akcija "%s" zatražena. Takva akcija ne postoji.�Nevažeće dugme "%s" u povezivanju miša�Nevažeće dugme "%s" specificirano u konfiguracijskoj datoteci�Nevažeći argument komandne linije "%s" �Nevažeći kontekst "%s" u povezivanju miša�Nevažeći kod ključa "%s" u povezivanju tipki�Nevažeće ime tipke "%s" u povezivanju tipki�Nevažeći modifikacijski ključ "%s" u povezivanju tipke/miš�Nevažeći izlaz za cijev-izbornik "%s"�Ubijanje...�Odjava�M_aksimizacija�Upravljanje radnim površinama�Više...�Ne�Ne Odgovara�OK�Jedna ili više XML pogreški u sintaksi su pronađene prilikom analize Openbox konfiguracijskih datoteka. Pogledajte stdout za više informacija. Zadnja pogreška je u datoteci "%s" u liniji %d, sa porukom: %s�Openbox Pogreška u Sintaksi�Openbox je konfiguriran za %d radnu površinu, ali trenutna sesija ima %d. Prepisujem preko Openbox konfiguracije.�Openbox je konfiguriran za %d radnu površinu, ali trenutna sesija ima %d. Prepisujem preko Openbox konfiguracije.�O_bnovi�Traženi ključ "%s" ne postoji na zaslonu�Prom_jena veličine�Restart je bio neusješan za izvršenje novog izvršnog "%s": %s�Pokrenuto %s�Sintaksa: openbox [opcije] �Upravitelj prozora na zaslonu %d ne izlazi�Prozor "%s" ne reagira. Želite li prekinuti njegovu vezu sa X serverom?�Prozor "%s" ne reagira. Želite li forsirati izlaženje šaljući %s signal?�Ne/_Dekoriranje�Ne mogu doći u home direktorij "%s": %s�Ne mogu pronaći važeću konfiguracijsku datoteku, koriteći neke jednostavne standarde�Ne mogu pronaći važeću datoteku izbornika "%s"�Ne mogu pokrenuti temu.�Ne mogu stvoriti direktorij '%s': %s�Neimenovan Prozor�Prozori�X server ne podržava lokalno.�Da�_Dodaj novu radnu površinu�_Zatvori�_Sloj�_Pomicanje�_Normalno�_Ukloni zadnju radnu površinu�_Okretanje gore/dolje�Pošalji na _radnu površinu�radna površina %i�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/hu.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000023400�12544731073�011656� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������_����������� ����������� �� �����1���)�����[��A���v��/�����B�����F���+ ��C���r ��#��� ��1��� ��5��� ��C���B ��&��� ��@��� ��-��� ��.��� ��3���K ����� ��0��� �� ��� ����� ����� ��&��� ��!��� ��3���@ �����t ��-���{ �� ��� ����� ��(��� �� ��� ��7��� �����* �� ���3 �� ���> �����J �����R �� ���W ��)���d ��0��� ��*��� ��A��� �� ���,�����8��5���A��$���w��,�����#�����%�����$�����$���8��.���]��"����� ���������� ���������������������������������������������V����������0��������4��1���<�� ���n�����y��"�����`�����j����� �����+�����>�����%��������!��!���9�����[�����j��!���r������������������������������������� ���������� �����|��������� �����1�����&�����U�����<���T��[�����_�����L���M��/�����;�����?�����;���F��.�����?�����8�����1���*��6���\��0�����0���������� ��� �������%���%�����K��@���g�������T����� ����� �����A����� ���^��7���l�� ��������������� ����� ����������9�����H���<��>�����T����� ����� ���#��9���1��6���k��2�����+�����=�����@���?��@�����S�����3��� �� ���I �����V �����e �����v �� ��� ����� �� ��� ����� ����� �����!����!��l���"�����9#��2���K#�����~#��H���#�� ���#�����#��2���$��B���7$��T���z$�����$��1���$��f���%��1���%�����%��0���%�����&�����&��A���&�����`&�����e&�� ���v&�����&�� ���&�����&��$���&�����&�����&�����&�����(���3���M������^���$������W�����������O���7���S����������Q���A������F���+���>���&���)���#���"�������/���-���X������L���?���*����������R���,���<���B������ ���D������������������������������������V���'������� ���6�������P�������J�����������[���;���9����������1��� �����������������E���\���Y�������@���%�����������������]������U���:���G���=���5���4���H��� ��� ������I���_��������������T���Z���C���N������2���.���!��������������� ����������������0�������K��������������������8�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: openbox Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2011-09-03 16:09+0200 Last-Translator: Laszlo Dvornik <rezuri@zoho.com> Language-Team: Hungarian Language: hu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Hibakeresési opciók: � Opciók: � Üzenet küldése a futó Openbox példánynak: � Kérjük a hibákat itt jelentse: %s � --config-file FÁJL A használandó konfigurációs fájl útvonalának megadása � --debug Hibakeresési kimenet megjelenítése � --debug-focus Fókuszkezelésre vonatkozó hibakeresési kimenetek megjelenítése � --debug-session Munkamenet-kezelésre vonatkozó hibakeresési kimenetek megjelenítése � --debug-xinerama Képernyő felosztása két ál-xinerama képernyőre � --exit Kilépés az Openboxból � --help Súgó megjelenítése és kilépés � --reconfigure Openbox beállításának újratöltése � --replace Jelenleg futó ablakkezelő cseréje � --restart Openbox újraindítása � --sm-disable Ne csatlakozzon a munkamenet-kezelőhöz � --startup PARANCS PARANCS futtatása indulás után � --sync Futtatás szinkron módban � --version Verzió kiírása és kilépés �%s kapcsolónak szüksége van egy argumentumra �Már fut egy ablakkezelő ezen a képernyőn: %d�Összes munkaasztal�Mindig _alul�Mindig _felül�Biztos ki akar lépni az Openboxból?�Biztos ki akar jelentkezni?�"%s" menü elérésére történt kísérlet, de az nem létezik�Mégsem�Nem lehet beállítani a nemzetközi beállítás-módosítókat az X-kiszolgálón.�Kliens menü�Bezárás�Ütköző billentyű hozzárendelések a konfigurációs fájlban�Copyright (c)�Nem lehet ablakkezelőt váltani ezen a képernyőn: %d�Munkaasztalok�Lekapcsolódás�Folyamat vége�Végrehajtás�Kilépés�Kilépés az Openboxból�Az útvonalat nem sikerült átalakítani utf8-ból: "%s"�Nem sikerült végrehajtani a parancsot a csővezeték-menüben "%s": %s�Nem sikerült előkészíteni az obrender programkönyvtárat.�Nem sikerült megnyitni a DISPLAY környezeti változóban beállított képernyőt.�Ugrás...�Iko_nizálás�Érvénytelen művelet "%s". Nem létezik ilyen művelet.�Érvénytelen gomb "%s" az egér hozzárendeléseknél�Érvénytelen gomb a konfigurációs fájlban "%s"�Érvénytelen parancssori argumentum: "%s" �Érvénytelen környezet az egér hozzárendeléseknél: "%s"�Érvénytelen billentyűkód "%s" billentyű hozzárendelésnél�Érvénytelen billentyűnév "%s" billentyű hozzárendelésnél�Érvénytelen módosító billentyű "%s" billentyű vagy egér hozzárendelésnél�Érvénytelen kimenet a csővezeték-menüből "%s"�Kilövés...�Kijelentkezés�Ma_ximalizálás�Munkaasztal-kezelés�Tovább...�Nem�Nem válaszol�OK�Egy vagy több XML szintaktikai hiba található az Openbox konfigurációs fájl feldolgozásakor. További információkért tekintse meg a szabványos kimenetet. Az utolsó hiba ebben a fájlban volt: "%s" (%d sor). A hibaüzenet: %s�Openbox szintaktikai hiba�Az Openbox %d munkaasztal használatára lett beállítva, de a jelenlegi munkamenetnek %d van. Felülbíráljuk az Openbox beállítását.�Az Openbox %d munkaasztal használatára lett beállítva, de a jelenlegi munkamenetnek %d van. Felülbíráljuk az Openbox beállítását.�Az Openbox képbetöltési támogatás nélkül lett fordítva. Az ikonok a menükben nem lesznek betöltve.�_Visszaállítás�A kért billentyű "%s" nem létezik a képernyőn�Átmérete_zés�Az újraindítás során ez az új program nem volt indítható "%s": %s�%s futtatása�Használat: openbox [opciók] �Nem lép ki az ablakkezelő ezen a képernyőn: %d�A(z) "%s" ablak nem válaszol. Lekapcsoljuk az X kiszolgálóról?�A(z) "%s" ablak nem válaszol. Erőltessük a kilépést a %s jelzés küldésével?�_Dekoráció eltávolítása�Nem lehet a saját könyvtárba váltani "%s": %s�Nem található érvényes konfigurációs fájl, ezért egyszerű alapértelmezés lesznek használva�Nem található ilyen érvényes menüfájl: "%s"�Nem lehet betölteni témát.�Nem lehet létrehozni a(z) "%s" könyvtárat: %s�Névtelen ablak�Ablakok�Az X-kiszolgáló nem támogatja ezt a nemzetközi beállítást.�Igen�Új munk_aasztal�_Bezárás�_Réteg�Á_thelyezés�_Normál�Utolsó munkaasztal _eltávolítása�_Görgetés fel/le�Munkaasztalra _küldés�%i. munkaasztal�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ia.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000023226�12544731073�011641� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������_����������� ����������� �� �����1���)�����[��A���v��/�����B�����F���+ ��C���r ��#��� ��1��� ��5��� ��C���B ��&��� ��@��� ��-��� ��.��� ��3���K ����� ��0��� �� ��� ����� ����� ��&��� ��!��� ��3���@ �����t ��-���{ �� ��� ����� ��(��� �� ��� ��7��� �����* �� ���3 �� ���> �����J �����R �� ���W ��)���d ��0��� ��*��� ��A��� �� ���,�����8��5���A��$���w��,�����#�����%�����$�����$���8��.���]��"����� ���������� ���������������������������������������������V����������0��������4��1���<�� ���n�����y��"�����`�����j����� �����+�����>�����%��������!��!���9�����[�����j��!���r������������������������������������� ���������� ��������� ����� �����4���*�����_��M���w��@�����P�����R���W��M�����(�����4���!��;���V��A�����(�����D�����A���B��0�����3����������9��������<�� ���P�� ���^��'���l��(�����0����������K��������C�����S��B���[�� �����N����� ����� �������������#�����+�����2��3���D��;���x��/�����C����� ���(�� ���6��?���B��1�����?�����0�����3���%��9���Y��9�����J�����$��� �����= �����L �� ���_ �����j ����� ����� ����� ����� ����� �����!�����!��_���"�� ���"��/���"����� #��;���/#�����k#�����{#��:���#��V���#��c���*$�����$��1���$��d���$��1���8%�����j%��,���%�����%�� ���%��+���%�����&�����&�����&�����'&�����/&�����6&�����>&�����]&�����r&�� ���&�����(���3���M������^���$������W�����������O���7���S����������Q���A������F���+���>���&���)���#���"�������/���-���X������L���?���*����������R���,���<���B������ ���D������������������������������������V���'������� ���6�������P�������J�����������[���;���9����������1��� �����������������E���\���Y�������@���%�����������������]������U���:���G���=���5���4���H��� ��� ������I���_��������������T���Z���C���N������2���.���!��������������� ����������������0�������K��������������������8�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: openbox 3.5 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2012-12-11 18:47+0400 Last-Translator: Nik Kalach <nikka@fedoraproject.org> Language-Team: Interlingua (International Auxiliary Language Association) <trans-ia@lists.fedoraproject.org> Language: ia MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Gtranslator 2.91.5 � Optiones pro eliminar errores: � Optiones: � Passage de messages al exemplar de Openbox active: � Reportar errores a %s � --config-file FILE Specificar le percurso al file de configuration a usar � --debug Monstrar datos utile pro eliminar errores � --debug-focus Monstrar datos pro eliminar faltas in le gestion del foco � --debug-session Monstrar datos pro eliminar faltas in le gestion de session � --debug-xinerama Separar le visualisation in schermos de xinerama false � --exit Sortir de Openbox � --help Monstrar iste adjuta e sortir � --reconfigure Recargar le configuration de Openbox � --replace Reimplaciar le gerente de fenestras actual � --restart Reinitiar Openbox � --sm-disable Disactivar le connexion al gerente de session � --startup CMD Exequer CMD post le lanceamento de Openbox � --sync Exequer in modo synchrone � --version Monstrar le version e sortir �%s require un argumento �Un gerente de fenestras jam es lanceate sur le schermo %d�Tote le scriptorios�Semper in_fra�Semper s_upra�Es tu secur de voler sortir de Openbox?�Es tu secur de voler clauder le session?�Tentativa de acceder al menu "%s" que non existe�Annullar�Impossibile de applicar le modificatores de localisation pro le servitor X.�Menu de cliente�Clauder�Conflicto con le combination de claves in le file de configuration�Copyright (c)�Impossibile de obtener le selection del gerente de fenestras sur le schermo %d�Scriptorios�Disconnecter�Finir processo�Exequer�Sortir�Sortir de Openbox�Insuccesso al converter le percurso "%s" desde utf8�Insuccesso al exequer le commando pro le pipe-menu "%s": %s�Impossibile de initiar le bibliotheca obrender.�Impossibile de aperir le schermo del variabile de ambiente DISPLAY.�Ir a illac...�Ico_nificar�Le action requestate "%s" es invalide. Nulle tal action existe.�Button "%s" incorrecte in le parametros del mouse�Button invalide "%s" es specificate in le file de configuration�Argumento del linea de commando incorrecte "%s" �Contexto "%s" incorrecte in le parametros del mouse�Codice de clave "%s" incorrecte in le parametros de clave�Nomine de clave "%s" incorrecte in le parametros de clave�Modificator de clave "%s" incorrecte in le parametros de clave or de mouse�Output incorrecte del pipe-menu "%s"�Termination...�Clauder le session�Ma_ximisar�Administrar scriptorios�Plus...�No�Non es respondente�OK�Un o plus errores de syntaxe XML se ha trovate durante le analyse de files de configuration de Openbox. Reguarda stdout pro plus del information. Le ultime error trovate esseva in le file "%s" al linea %d, con le message: %s�Error de syntaxe de Openbox�Openbox es configurate pro %d scriptorio, ma le session actual ha %d. Illo supplanta le configuration de Openbox.�Openbox es configurate pro %d scriptorios, ma le session actual ha %d. Illo supplanta le configuration de Openbox.�Openbox era compilate sin le bibliotheca pro cargar imagines. Icones in menus non sera cargate.�R_estituer�Clave requestate "%s" non existe sur le schermo�Re_dimensionar�Le reinitio ha fallite exequer le nove executabile "%s": %s�Execution de %s�Syntaxe: openbox [optiones] �Le gerente de fenestras sur le schermo %d non es sortiente�Le fenestra "%s" non sembla esser respondente. Vole tu disconnecter lo del servitor X?�Le fenestra "%s" non sembla esser respondente. Vole tu fortiar lo a sortir per inviar le signal %s?�_Decorar/Indecorar�Impossibile de ir al directorio personal "%s": %s�Impossibile de trovar un file de configuration valide, alicun predefinitiones simple sera utilisate.�Impossibile de trovar un file de menu valide "%s"�Impossibile de cargar un thema.�Impossibile de crear le directorio '%s' : %s�Fenestra sin nomine�Fenestras�Le servitor X non supporta le localisation.�Si�_Adder un nove scriptorio�_Clauder�_Strato�_Mover�_Normal�_Eliminar le ultime scriptorio�_Rolar in alto/basso�_Inviar al scriptorio�scriptorio %i���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/it.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021551�12544731074�011664� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� ������������r�� �����3����������G�����6���,��O���c��>�����&�����?�����<���Y��@�����&�����D�����3���C��;���w�������6���������� ����� ���"��"���0�� ���S��:���t�������G���������������F����� ���b��K���p������� �������������������������,�����7���*��/���b��C���������� �����3�����@���%��B���f��.�����@�����Q�����R���k��M�����%��� �� ���2�����=�� ���B�����N�����a�����j�� ���m�����z�����}�����1�����D�� ��� ��'���, �� ���T ��=���b ����� ����� ��8��� ��I���!��V���Q!�����!��1���!��e���!��)���S"�����}"�����"�����"��5���"�����"�����"����� #�����#�����#�����!#�����*#�� ���B#�����L#�� ���^#�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.11.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2010-08-22 21:33+0200 Last-Translator: Davide Truffa <davide@catoblepa.org> Language-Team: Italian <tp@lists.linux.it> Language: it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Opzioni di debug: � Opzioni: � Inviare messaggi ad un'istanza di Openbox attiva: � Segnalate eventuali bug a %s � --config-file FILE Specifica il percorso del file di configurazione � --debug Mostra le informazioni di debug � --debug-focus Mostra le informazioni di debug sulla gestione del focus � --debug-xinerama Divide lo schermo per simulare xinerama � --exit Termina Openbox � --help Mostra questo messaggio di aiuto ed esce � --reconfigure Ricarica la configurazione di Openbox � --replace Sostituisce il gestore di finestre attivo � --restart Riavvia Openbox � --sm-disable Disabilita connessione al gestore di sessione � --sync Esegue in modalità sincrona � --version Mostra il numero di versione ed esce �%s richiede un argomento �Un gestore di finestre è già attivo sullo schermo %d�Tutti i desktop�Sempre s_otto�Sempre _sopra�Sicuro di voler uscire da Openbox?�Sicuro di volerti disconnettere?�Il menù "%s" a cui si sta tentando di accedere non esiste�Annulla�Impossibile impostare i tasti modificatori localizzati per il server X.�Menù della finestra�Chiudi�Conflitto con l'associazione tasti indicata nel file di configurazione�Copyright (c)�Impossibile acquisire la selezione del gestore di finestre sullo schermo %d�Desktop�Disconnesso�Termina Processo�Esegui�Esci�Esci da Openbox�Impossibile convertire il percorso utf8 "%s"�Impossibile eseguire il comando nel pipe-menù "%s": %s�Impossibile inizializzare la libreria obrender.�Impossibile accedere allo schermo indicato nella variabile DISPLAY.�Spostati qui...�Mi_nimizza�L'azione "%s" richiesta non è valida e non esiste.�Il pulsante "%s" indicato nelle associazioni mouse non è valido�Il pulsante "%s" indicato nel file di configurazione non è valido�Argomento da linea di comando non valido "%s" �Il contesto "%s" indicato nelle associazioni mouse non è valido�Il codice del tasto "%s" indicato nelle associazioni mouse/tastiera non è valido�Il nome del tasto "%s" indicato nelle associazioni di mouse/tastiera non è valido�Il modificatore "%s" indicato nelle associazioni mouse/tastiera non è valido�Output del pipe-menù "%s" non valido�Termino...�Esci�Ma_ssimizza�Gestisci i desktop�Altri...�No�Non Risponde�Ok�Sono stati trovati uno o più errori nel file di configurazione di Openbox. Vedi stdout per ulteriori informazioni. L'ultimo errore era in "%s" alla linea %d, con il messaggio: %s�Errore di sintassi�Openbox è configurato per %d desktop, ma la sessione attuale ne ha %d. Ignoro la configurazione di Openbox.�Openbox è configurato per %d desktop, ma la sessione attuale ne ha %d. Ignoro la configurazione di Openbox.�_Ripristina�La chiave "%s" non esiste sullo schermo�R_idimensiona�Non è stato possibile riavviare il nuovo eseguibile "%s": %s�Sto eseguendo %s�Sintassi: openbox [opzioni] �Il gestore di finestre sullo schermo %d non è terminato�La finestra "%s" non sembra rispondere. Vuoi disconnetterla dal server X?�La finestra "%s" sembra non rispondere. Vuoi forzarne l'uscita inviando il segnale %s?�Si/No _Decorazioni�Impossibile accedere alla directory home "%s": %s�Impossibile trovare un file di configurazione valido, verranno utilizzate le impostazioni predefinite�Impossibile trovare il file di menù "%s"�Impossibile caricare un tema.�Finestra senza nome�Finestre�Il server X non ha il supporto per la localizzazione.�Si�_Aggiungi nuovo desktop�_Chiudi�_Livello�_Muovi�_Normale�_Rimuovi ultimo desktop�A_rrotola�Invia al _desktop�desktop %i��������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/lv.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022110�12544731074�011661� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������\������������������������ �����1��������+��A���F��/�����B�����C�����#���? ��1���c ��5��� ��C��� ��&��� ��@���6 ��.���w ��3��� ����� ��0��� �� ���$ �����1 �����C ��&���R ��!���y ��3��� ����� ��-��� �� ��� ����� ��(��� �� ���? ��7���M ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���E �� ��� ����� ��5��� ��$��� ��,��� ��#���$��%���H��$���n��$�����.�����"����� ��� ������� ��������'�����7�����?�����B�����Q�����T����������#�������0��������8��1���@�� ���r�����}��"�����`�����j����� �����+�����>�����%��������%��!���=�����_�����n��!���v������������������������������������� ���������� �������������� �����-��������(��I���H��5�����N�����K�����'���c��?�����@�����D��� ��*���Q��D���|��4�����/��������&��.���?�����n������������(�����"�����8��������)��5���0�����f�����w��:����������:����� ��� ������������ ���.�����8�����>��(���O��;���x��-�����7���������� ���,��>���8��)���w��<�����'�����(�����3���/��8���c��B�����0����� ����� ����� ���'�����4�� ���L�����W�����[�����d�����i�����L����f�� ��� ��4��� �����3!��>���D!�� ���!�����!��2���!��;���!��W���"�����r"��)���"��L���"��)���"��"���)#�� ���L#�����m#�����#�����#�����#�����#�� ���#�����#�� ���#�� ���#�����#����� $�����!$�� ���:$�����&���1���J������[���"�������������������L���5���\����������N���?������P���)���<���$���'���!��� �������-���+���U������I���=���(����������O���*���:���@���������A������������������������������������S���%������� ���4�������M�������G�����������X���9���7����������/��������������������B���Y���V�������>���#����������C�������Z������T���8���D���;���3���2���E��� ��� ������F����������� �������Q���W���R���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: 3.4.10 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2010-01-08 21:11+0200 Last-Translator: Einars Sprugis <einars8@gmail.com> Language-Team: Latvian <locale@laka.lv> Language: lv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2); X-Generator: Lokalize 1.0 � Atkļūdošanas iespējas: � Opcijas: � Nodod ziņojumus esošai Openbox instancei: � Lūdzu, ziņojiet kļūdas %s � --config-file FAILS Norāda ceļu uz izmantojamo konfigurācijas failu � --debug Rādīt atkļūdošanas izvadi � --debug-focus Rādīt atkļūdošanas izvadi fokusēšanas darbībām � --debug-xinerama Sadalīt displeju vairākos viltus xinerama ekrānos � --exit Iziet no Openbox � --help Parāda šo palīdzības tekstu un iziet � --reconfigure Pārlādē Openbox konfigurācijas failus � --replace Aizvieto pašreiz palaisto logu pārvaldnieku � --restart Pārstartē Openbox � --sm-disable Pārtrauc savienojumu ar sesiju pārvaldnieku � --sync Palaist sinhronajā režīmā � --version Parāda versiju un iziet �%s vajadzīgs arguments �Logu pārvaldnieks jau palaists uz %d. ekrāna�Visas darbvirsmas�Vienmēr a_pakšā�Vienmēr augšā�Vai tiešām vēlaties iziet no Openbox?�Vai tiešām vēlaties atteikties?�Mēģināja piekļūt izvēlnei "%s", bet tā neeksistē�Atcelt�Nevar uzstādīt lokāles modificētājus X serverim.�Klienta izvēlne�Aizvērt�Konfliktē ar tastatūras saīsnēm konfigurācijas failā�Autortiesības (c)�Nevarēja iegūt logu pārvaldnieka izvēli uz %d. ekrāna�Darbvirsmas�Atvienot�Nobeigt procesu�Izpildīt�Iziet�Iziet no Openbox�Neizdevās pārveidot ceļu "%s" no utf8�Nevarēja izpildīt skriptētās izvēlnes komandu "%s": %s�Neizdevās inicializēt obrender bibliotēku.�Neizdevās atvērt displeju no DISPLAY vides mainīgā.�Iet uz turieni...�Mi_nimizēt�Prasīta neatļauta darbība "%s". Šāda darbība neeksistē.�Neatļauts taustiņš "%s" peles saīsnē�Konfigurācijas failā "%s" norādīts neatļauts taustiņš�Neatļauts komandrindas arguments "%s" �Neatļauts konteksts "%s" peles saīsnē�Neatļauts taustiņa kods "%s" tastatūras saīsnē�Neatļauts taustiņa nosaukums "%s" tastatūras saīsnē�Neatļauts modificētājtaustiņš "%s" tastatūras/peles saīsnē�Neatļauta izvade no skriptētās izvēlnes "%s"�Nogalina...�Atteikties�Maksimizē_t�Pārvaldīt darbvirsmas�Vairāk...�Nē�Neatbild�Labi�Analizējot Openbox konfigurācijas failus, tika atrastas viena vai vairākas XML sintakses kļūdas. Aplūkojiet standarta izvadi, lai noskaidrotu vairāk. Pēdējā kļūda bija failā "%s" - %d rinda, kļūdas ziņojums: %s�Openbox sintakses kļūda�Openbox ir konfigurēts %d darbvirsmai, bet pašreizējai sesijai tādu ir %d. Šī Openbox konfigurācijas opcija tiks ignorēta.�Openbox ir konfigurēts %d darbvirsmām, bet pašreizējai sesijai tādu ir %d. Šī Openbox konfigurācijas opcija tiks ignorēta.�Openbox ir konfigurēts %d darbvirsmām, bet pašreizējai sesijai tādu ir %d. Šī Openbox konfigurācijas opcija tiks ignorēta.�Atja_unot�Pieprasītais taustiņš "%s" uz displeja neeksistē�Mainīt i_zmēru�Pārstartētājam neizdevās palaist jauno izpildāmo "%s": %s�Palaiž %s�Sintakse: openbox [opcijas] �Logu pārvaldnieks uz %d. ekrāna nebeidz darbību�Logs "%s" neatbild. Vai vēlaties to atvienot no X servera?�Logs "%s" neatbild. Vai vēlieties to aizvērt piespiedu kārtā, nosūtot signālu %s?�Bez/Ar _dekorācijām�Nevarēja pāriet uz mājas mapi "%s": %s�Nevarēja atrast atļautu konfigurācijas failu, tiek izmantoti noklusējumi�Nav atrasts atļauts izvēlnes fails "%s"�Nebija iespējams ielādēt tēmu.�Nevarēja izveidot mapi '%s': %s�Logs bez nosaukuma�Logi�X serveris neatbalsta lokāli.�Jā�Pievienot j_aunu darbvirsmu�Ai_zvērt�S_lānis�Pārviet_ot�_Normāls�Noņemt pēdējo da_rbvirsmu�Sa_ritināt/Atritināt�No_sūtīt uz darbvirsmu�darbvirsma %i���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/nl.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021501�12544731074�011654� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� ������������p�� �����A�����!�����P�����1���L��U���~��A�����(�����6���?��9���v��B�����)�����E�����1���c��.����������.������������� �����0��*���@��&���k��-����� �����0����� ����������6��������F��9���W�� ��������������� ����� ����������4�����9�����7���X��=����� ����������B�����"���2��8���U��"�����%�����*�����*�����7���-��$���e�������������������������������� ������������������������� �����/����������>��� �����Q �����d ��7��� ��`��� ��]���!�����v!��-���!��c���!��'���("�����P"�����f"�����w"��&���"�����"�����"�����"�����"�� ���"�����"�����"�����#�����#�� ���3#�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-03-18 23:30+0100 Last-Translator: Pjotr <pjotrvertaalt@gmail.com> Language-Team: Dutch <vertaling@vrijschrift.org> Language: nl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Opties voor foutopsporing: � Opties: � Berichten worden naar een draaiende Openbox-instantie gestuurd: � Gelieve fouten te melden aan %s � --config-file BESTAND Dit configuratiebestand gebruiken � --debug Toon foutopsporingsuitvoer � --debug-focus Toon foutopsporingsuitvoer voor afhandeling van scherpstelling � --debug-xinerama Splits het scherm in nep-Xinerama-schermen � --exit Openbox afsluiten � --help Toon deze hulptekst en sluit af � --reconfigure Openbox-configuratie opnieuw laden � --replace Vervang de thans draaiende vensterbeheerder � --restart Openbox herstarten � --sm-disable Verbinding met de sessiebeheerder uitschakelen � --sync In synchrone modus starten � --version Toon versie en sluit af �'%s' vereist een argument �Er draait al een vensterbeheerder op scherm %d�Alle bureaubladen�Altijd _onderop�Altijd _bovenop�Weet u zeker dat u Openbox wilt afsluiten?�Weet u zeker dat u zich wilt afmelden?�Getracht niet-bestaand menu '%s' te benaderen�Annuleren�Kan lokalisatie voor de X-server niet instellen.�Venstermenu�Sluiten�Conflict bij toetsbindingen in het instellingenbestand�Auteursrecht (c)�Kan op scherm %d geen vensterbeheerderselectie verkrijgen�Bureaubladen�Verbreek verbinding�Beëindig proces�Uitvoeren�Afsluiten�Openbox afsluiten�Converteren van het pad '%s' vanuit UTF-8 is mislukt�Uitvoeren van opdracht voor pipe-menu '%s' is mislukt: %s�Initialiseren van de 'obrender'-bibliotheek is mislukt.�Kan scherm genoemd in omgevingsvariabele DISPLAY niet openen.�Ga erheen...�Pictogram van maken�Er werd gevraagd om ongeldige actie '%s'. Deze actie bestaat niet.�Ongeldige knop '%s' in muisbinding�Ongeldige knop '%s' opgegeven in het instellingenbestand�Ongeldige opdrachtregeloptie '%s' �Ongeldige context '%s' in muisbinding�Ongeldige toetscode '%s' in toetsenbinding�Ongeldige toetsnaam '%s' in toetsenbinding�Ongeldige aanpassingstoets '%s' in toetsen-/muisbinding�Ongeldige uitvoer van pipe-menu '%s'�Bezig met termineren...�Afmelden�_Maximaliseren�Bureaubladen beheren�Meer...�Nee�Reageert niet�OK�Er zijn een of meer XML-syntaxfouten gevonden tijdens het inlezen van de Openbox-configuratiebestanden. Zie standaarduitvoer voor meer informatie. De laatste fout werd gevonden in bestand '%s' regel %d, met bericht: %s�Openbox-syntaxfout�Openbox is ingesteld op %d bureaublad, maar de huidige sessie heeft er %d. De Openbox-instelling wordt genegeerd.�Openbox is ingesteld op %d bureaubladen, maar de huidige sessie heeft er %d. De Openbox-instelling wordt genegeerd.�_Herstellen�Gevraagde toets '%s' bestaat niet op het scherm�_Grootte aanpassen�Bij herstart is uitvoeren van nieuw programma '%s' mislukt: %s�%s aan het draaien�Gebruik: openbox [opties] �De vensterbeheerder op scherm %d sluit zichzelf niet af�Het venster '%s' reageert niet. Wilt u de verbinding van het venster met de X-server verbreken?�Het venster '%s' reageert niet. Wilt u het afsluiten forceren door het signaal %s te sturen?�_Vensterrand weghalen/toevoegen�Kan niet overschakelen naar thuismap '%s': %s�Kan geen geldig configuratiebestand vinden; er worden enkele simpele standaardinstellingen gebruikt�Kan geen geldig menubestand '%s' vinden�Kan geen thema laden.�Naamloos venster�Vensters�X-server ondersteunt lokalisatie niet.�Ja�_Voeg nieuw bureaublad toe�_Sluiten�_Laag�_Verplaatsen�_Normaal�V_erwijder laatste bureaublad�_Op-/neerrollen�Verplaats _naar bureaublad�bureaublad %i������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/no.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022125�12544731074�011662� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������_����������� ����������� �� �����1���)�����[��A���v��/�����B�����F���+ ��C���r ��#��� ��1��� ��5��� ��C���B ��&��� ��@��� ��-��� ��.��� ��3���K ����� ��0��� �� ��� ����� ����� ��&��� ��!��� ��3���@ �����t ��-���{ �� ��� ����� ��(��� �� ��� ��7��� �����* �� ���3 �� ���> �����J �����R �� ���W ��)���d ��0��� ��*��� ��A��� �� ���,�����8��5���A��$���w��,�����#�����%�����$�����$���8��.���]��"����� ���������� ���������������������������������������������V����������0��������4��1���<�� ���n�����y��"�����`�����j����� �����+�����>�����%��������!��!���9�����[�����j��!���r������������������������������������� ���������� �������������� �����4�����!�����S�����0���b��F�����H�����C���#��&���g��:�����6�����>������-���?��C���m��:�����,�����6��������P��1���g�����������������,�����$�����5��������Q��?���X�� ����������4����� �����<����� ���)�����4�����F�����V�����]�����e��'���u��1�����'�����7����� ���/�����:��;���C��$�����3�����$�����&�����*���$��*���O��6���z��#����� ���������������������������� �� �������������������������^��� �� ���@!��-���N!�����|!��4���!�� ���!�����!��1���!��N���"��U���n"�����"��+���"��D��� #��%���P#�����v#�����#�� ���#�����#��&���#�����#�����#�����#�����$�����$�����$�����$�� ���/$�� ���=$�� ���G$�����(���3���M������^���$������W�����������O���7���S����������Q���A������F���+���>���&���)���#���"�������/���-���X������L���?���*����������R���,���<���B������ ���D������������������������������������V���'������� ���6�������P�������J�����������[���;���9����������1��� �����������������E���\���Y�������@���%�����������������]������U���:���G���=���5���4���H��� ��� ������I���_��������������T���Z���C���N������2���.���!��������������� ����������������0�������K��������������������8�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.6 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2014-11-06 10:40+0100 Last-Translator: Michael Kjelbergvik Thung <postlogic@gmail.com> Language-Team: None Language: no MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1; � Debug-alternativ: � Alternativ: � Sender beskjeder til en kjørende Openbox-instans: � Vennligst rapporter bugs til %s � --config-file FIL Spesifisér filbane til konfigurasjonsfilen du vil ta i bruk � --debug Vis debuggingsinformasjon � --debug-focus Vis debuggingsinformasjon for fokus-håndtering � --debug-session Vis debuggingsinformasjon for session-håndtering � -debug-xinerama Splitt displayet for falske xinerama-skjermer � --exit Avslutt Openbox � --help Vise denne hjelpeteksten og avslutt � --reconfigure Oppdater Openbox' konfigurasjon � --replace Erstatt den kjørende vindusbehandleren � --restart Start Openbox på nytt � --sm-disable Deaktiver tilknytning til sesjonsbehandleren � --startup CMD Kjør CMD (kommando) etter oppstart � --sync Kjør i synkron-modus � --version Vis versjonsnummeret og avslutt �%s krever et argument �En vindusbehandler kjører allerede på skjerm %d�Alle skrivebord�Alltid _nederst�Alltid ø_verst�Er du sikker på at du vil avslutte Openbox?�Er du sikker på at du vil logge ut?�Forsøkte å åpne menyen "%s", men denne finnes ikke�Avbryt�Kan ikke stille inn lokaliseringsmodifikatorene for X-serveren.�Klient-meny�Lukk�Konflikt med hurtigtastbinding i konfigurasjonsfilen�Copyright (c)�Kunne ikke hendte vindusbehandlerens markering på skjerm %d�Skrivebord�Fjern tilknytning�Avslutt Prosess�Utfør�Avslutt�Avslutt Openbox�Feil ved konvertering av "%s" fra utf8 �Kunne ikke kjøre kommando for pipe-meny "%s": %s�Kunne ikke starte obrender-biblioteket.�Kunne ikke åpne displayet fra DISPLAY-miljøvariabelen�Gå dit...�_Minimer�Ugyldig operasjon "%s" etterspurt. Operasjonen finnes ikke.�Ugyldig knapp "%s" i binding for mus�Ugyldig tast "%s" spesifisert i konfigurasjonsfilen�Ugyldig kommandolinje-argument "%s" �Ugyldig innhold "%s" i binding for mus�Ugyldig tastekode "%s" i hurtigtastbinding�Ugyldig tastenavn "%s" i hurtigtastbinding�Ugyldig modifikasjonsknapp "%s" i binding for tast/mus�Ugyldig utdata fra pipe-menyen "%s"�Dreper...�Logg Ut�Ma_ximer�Behandle skrivebord�Mer...�Nei�Svarer Ikke�OK�En eller flere XML-syntaksfeil ble funnet ved lesing av konfigurasjonsfilene til Openbox. Se stdout for mer informasjon. Forrige feil funnet var i filen "%s", linje %d, med beskjeden: %s�Openbox Syntaksfeil�Aktiv sesjon har %2$d skrivebord, mens Openbox er konfigurert til %1$d. Benytter innstillingene for den aktive sesjonen.�Aktiv sesjon har %2$d skrivebord, mens Openbox er konfigurert til %1$d. Benytter innstillingene for den aktive sesjonen.�Openbox ble kompilert uten støtte for lasting av bilder. Ikoner i menyer vil ikke bli lastet.�Tilbak_estill�Ønsket tast "%s" eksisterer ikke i displayet�Endre s_tørrelse�Kunne ikke starte nytt program ved omstart: "%s": %s�Kjører %s�Syntax: openbox [alternativer �Vindusbehandleren på skjerm %d vil ikke avslutte�Vinduet "%s" svarer ikke. Vil du fjerne tilknytning av vinduet til X-serveren?�Vinduet "%s" svarer ikke. Vil du utføre tvunget avslutning ved å sende signalet %s?�Fjern/Legg til _dekorasjon�Kan ikke endre til hjemmekatalogen "%s": %s�Kunne ikke finne en gyldig konfigurasjonsfil, bruker standardverdier�Kan ikke finne en gyldig menyfil "%s"�Kan ikke laste et tema.�Kan ikke lage katalog '%s': %s�Ukjent Vindu�Vinduer�X-serveren støtter ikke lokalisering.�Ja�_Nytt skrivebord�_Lukk�La_g�_Flytt�Nor_mal�_Fjern siste skrivebord�_Rull opp/ned�_Send til�skrivebord %i��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ja.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000023552�12544731074�011645� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������]������������������������ �����1��� �����;��A���V��/�����B�����F��� ��C���R ��#��� ��1��� ��5��� ��C���" ��&���f ��@��� ��.��� ��3��� �����1 ��0���J �� ���{ ����� ����� ��&��� ��!��� ��3��� �����& ��-���- �� ���[ �����g ��(���m �� ��� ��7��� ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0���@ ��*���q ��A��� �� ��� ����� ��5��� ��$���)��,���N��#���{��%�����$�����$�����.�����"���>�� ���a�����l�� ���t�����~������������������������������e�����z�����U��0���^�������1����� ����������"�����`�����j���s�� �����+�����>�����%���V�����|��!���������������!����������������������� ��������������� �� ���5�����C�� ���T����_������������0���%��*���V��P�����;�����_�����_���n��N�����1�����D���O��C�����\�����4���5��P���j��8�����D��������9��S���R��"���������������2�����0���6��X���g�������C���������� ���3��B���=�� �����_���������� ���������� ���*�����7�����>��@���V��P�����<�����Q���%�����w�� �����m�����8�����I���<��*�����A�����8�����5���, ��?���b ��:��� ����� ����� �� ����!�����!�� ���*!�� ���7!�� ���A!�����N!�����Q!�����C"�����["�� ���"��L��� #�����V#��P���m#�� ���#��"���#��.���#��a���$��i���$�����$��;���$��`���4%��O���%��$���%��,��� &�����7&�����G&��=���W&�����&��(���&�� ���&�� ���&�� ���&�� ���&��(���&�����'�����5'�����U'�����'���2���K������\���#������������������M���6���]����������O���@������Q���*���=���%���(���"���!�������.���,���V������J���>���)����������P���+���;���A���������B������������������������������������T���&������� ���5�������N�������H�����������Y���:���8����������0��� �����������������C���Z���W�������?���$����������D�������[������U���9���E���<���4���3���F��� ��� ������G������������������R���X���S���L������1���-��� ��������������� ����������������/�������I��������������������7�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-03-04 16:32+0100 Last-Translator: Ryoichiro Suzuki <ryoichiro.suzuki@gmail.com> Language-Team: Japanese <ja@li.org> Language: ja MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; � デバッグオプション: � オプション: � 実行中の Openbox に命令を送ります: � バグは %s 宛へ報告して下さい � --config-file FILE 使用する設定ファイルのパスを指定します � --debug デバッグ情報を表示します � --debug-focus フォーカスの扱いに関するデバッグ情報を表示します � --debug-session セッションの扱いに関するデバッグ情報を表示します � --debug-xinerama 偽の xinerama スクリーンに分割表示します � --exit Openbox を終了します � --help この使い方を表示して終了します � --reconfigure Openbox の設定を再読み込みします � --replace 現在実行中のウィンドウマネージャを置き換えます � --restart Openbox を再起動します � --sm-disable セッションマネージャへの接続を止めます � --sync 同期モードで実行します � --version バージョンを表示して終了します �%s requires an argument �スクリーン%dでウィンドウマネージャが既に起動しています。�すべてのデスクトップ(_A)�常に最下層にする(_B)�常に最上層にする(_T)�Openbox を終了してもよろしいですか?�ログアウトしてもよろしいですか?�メニュー"%s"へのアクセスを試みましたが、それは存在しません。�キャンセル�Xサーバの為のロケール修飾子を設定できません。�クライアントメニュー�閉じる�設定ファイルにキー割り当ての衝突があります。�著作権 (c)�スクリーン%dでウィンドウマネージャの選択を取得できませんでした。�デスクトップ�切断する�プロセスを終了する�実行する�終了�Openbox を終了する�パス"%s"を utf8 から変換するのに失敗しました。�パイプメニューの為のコマンド"%s"の実行に失敗しました: %s�obrender ライブラリの初期化に失敗しました。�環境変数 DISPLAY からディスプレイを開くのに失敗しました。�移動する...�最小化(_N)�不正なアクション"%s"が要求されました。そのようなアクションは存在しません。�マウス割り当てに於いて不正なボタン "%s"�不正なボタン"%s"が設定ファイルで指定されています。�不正なコマンドライン引数 "%s" �マウス割り当てに於いて不正なコンテクスト "%s"�キー割り当ての中の不正なキーコード "%s"�キー割り当ての中の不正なキー名称 "%s"�キー/マウス割り当ての中の不正な修飾キー "%s"�パイプメニュー"%s"からの不正な出力です。�強制終了中...�ログアウト�最大化(_X)�デスクトップを管理�もっと...�いいえ�応答なし�OK�Openbox の設定ファイルを解析中に XML の構文エラーが見つかりました。詳しい情報は標準出力を見て下さい。最後に見つかったエラーは"%s"ファイルの%d 行目で、説明はこうです:%s�Openbox 構文エラー�Openbox は %d 個のデスクトップを設定されましたが, 現在のセッションは %d 個持っています。 Openbox の設定を無視します。�復元(_E)�要求されたキー"%s"はそのディスプレイに存在しません。�サイズの変更(_Z)�再起動の際新しい実行ファイル"%s"の実行に失敗しました: %s�起動中 %s�用法: openbox [オプション] �スクリーン%dのWMが終了しません。�ウィンドウ "%s" は応答していないようです。Xサーバから切断しますか?�ウィンドウ "%s" は応答していないようです。%s 信号を送り強制終了しますか?�非/装飾(_D)�ホームディレクトリ"%s"に移動できません: %s�正当な設定ファイルを見つけられません。単純な初期設定を使います。�正当なメニューファイル"%s"を見つけることができません。�テーマを読み込めません。�ディレクトリ'%s'を作れません: %s�名称未設定�ウィンドウ�Xサーバはロケールをサポートしていません。�はい�新しくデスクトップを追加(_A)�閉じる(_C)�階層(_L)�移動(_M)�通常(_N)�最後のデスクトップを削除(_R)�巻き上げ/展開(_R)�デスクトップに送る(_S)�デスクトップ%i�������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/lt.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022616�12544731074�011672� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������_����������� ����������� �� �����1���)�����[��A���v��/�����B�����F���+ ��C���r ��#��� ��1��� ��5��� ��C���B ��&��� ��@��� ��-��� ��.��� ��3���K ����� ��0��� �� ��� ����� ����� ��&��� ��!��� ��3���@ �����t ��-���{ �� ��� ����� ��(��� �� ��� ��7��� �����* �� ���3 �� ���> �����J �����R �� ���W ��)���d ��0��� ��*��� ��A��� �� ���,�����8��5���A��$���w��,�����#�����%�����$�����$���8��.���]��"����� ���������� ���������������������������������������������V����������0��������4��1���<�� ���n�����y��"�����`�����j����� �����+�����>�����%��������!��!���9�����[�����j��!���r������������������������������������� ���������� �������������� �����-���%�����S��:���q��0�����I�����O���'��G���w��/�����D�����;���4��C���p��1�����5�����8�����6���U��3����������'������������������%��*���6�����a��9���~�� �����2����� ����������5��� �����B��8���Y�� ������������������������������*�����3��� ��)���@��?���j�� ����� �����D�����.�����?���4��4���t��/�����,�����-�����4���4��+���i������� ��������������� ���������������������������� ��8�� ��G���!�� ���,"��.���7"�� ���f"��L���t"�����"�����"��+���"��A���#��]���_#�� ���#��0���#��J���#��+���G$�����s$��&���$�����$�����$�����$�����$�����$�� ���%�� ��� %�� ���%�� ���"%��"���,%�����O%�����g%�����%�����(���3���M������^���$������W�����������O���7���S����������Q���A������F���+���>���&���)���#���"�������/���-���X������L���?���*����������R���,���<���B������ ���D������������������������������������V���'������� ���6�������P�������J�����������[���;���9����������1��� �����������������E���\���Y�������@���%�����������������]������U���:���G���=���5���4���H��� ��� ������I���_��������������T���Z���C���N������2���.���!��������������� ����������������0�������K��������������������8�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.5.0 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2013-01-09 13:17+0200 Last-Translator: Algimantas Margevičius <margevicius.algimantas@gmail.com> Language-Team: Lietuvių <> Language: lt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2) X-Generator: Gtranslator 2.91.5 � Derinimo parinktys: � Parinktys: � Žinučių perdavimas veikiančiai Openbox: � Praneškite apie klaidas %s � --config-file FILE Naudoti nurodytą nustatymų failą � --debug Rodyti derinimo išvestį � --debug-focus Rodyti derinimo išvestį susijusią su fokusavimu � --debug-session Rodyti derinimo išvestį susijusią su sesijų tvarkymu � --debug-xinerama Suskirstyti ekraną į netikrus Xinerama ekranus � --exit Baigti darbą su Openbox � --help Parodyti šį pagalbos pranešimą ir išeiti � --reconfigure Iš naujo įkelti Openbox nustatymus � --replace Pakeisti jau veikiančią langų tvarkytuvę � --restart Iš naujo paleisti Openbox � --sm-disable Nenaudoti sesijų tvarkytuvės � --startup CMD Vykdyti komandą CMD po paleidimo � --sync Paleisti sinchroniniame režime � --version Parodyti versiją ir išeiti �%s reikalauja argumento �Ekrane %d jau veikia langų tvarkytuvė�Visi darbastaliai�Visada _apačioje�Visada _viršuje�Ar tikrai norite baigti darbą su Openbox?�Ar tikrai norite atsijungti?�Bandoma prieiti prie meniu „%s“, bet jis neegzistuoja�Atšaukti�Nepavyko nustatyti lokalės keitinių X serveriui.�Kliento meniu�Užverti�Konfliktas tarp klavišų susiejimų nustatymų faile�Autorinės teisės (c)�Nepavyko gauti langų tvarkytuvės pasirinkimo ekrane %d�Darbastaliai�Atjungti�Baigti procesą�Vykdyti�Išeiti�Baigti darbą su Openbox�Nepavyko išversti kelio „%s“ iš utf8�Nepavyko įvykdyti pipe-meniu komandos „%s“: %s�Nepavyko inicijuoti obrender bibliotekos.�Nepavyko atverti ekrano nurodyto DISPLAY aplinkos kintamąjame.�Eiti ten...�_Mažinti�Pareikalauta netinkamo veiksmo „%s“. Toks veiksmas neegzistuoja.�Netinkamas klavišas „%s“ pelės susiejime�Nustatymų faile nurodytas netinkamas pelės klavišas „%s“�Netinkamas komandinės eilutės argumentas „%s“ �Netinkamas kontekstas „%s“ pelės susiejime�Netinkamas klavišo kodas „%s“ susiejime�Netinkamas klavišo vardas „%s“ susiejime�Netinkamas modifikavimo klavišas „%s“ susiejime�Netinkama išvestis iš pipe-meniu „%s“�Nutraukiama...�Atsijungti�D_idinti�Tvarkyti darbastalius�Daugiau...�Ne�Neatsako�Gerai�Openbox nustatymų failuose rasta sintaksės klaidų. Išsami informacija pateikta stdout. Paskutinė rasta klaida yra failo „%s“ %d eilutėje, su pranešimu: %s�Openbox sintaksės klaida�Openbox yra suderinta %d darbastaliui, bet dabartinė sesija turi %d. Nepaisoma Openbox konfiguracijos.�Openbox yra suderinta %d darbastaliams, bet dabartinė sesija turi %d. Nepaisoma Openbox konfiguracijos.�Openbox yra suderinta %d darbastalių, bet dabartinė sesija turi %d. Nepaisoma Openbox konfiguracijos.�Openbox sukompiliuota be bibliotekos. Meniu piktogramos nebus įkeltos.�_Atstatyti�Norimas klavišas „%s“ ekrane neegzistuoja�_Keisti dydį�Paleidžiant iš naujo nepavyko įvykdyti naujo vykdomojo failo „%s“: %s�Paleidžiama %s�Sintaksė: openbox [parinktys] �Langų tvarkytuvė ekrane %d nebaigia darbo�Langas „%s“ neatsako. Ar norite atjungti jį nuo X serverio?�Langas „%s“ neatsako. Ar norite priverstinai nutraukti vykdymą nusiųsdami %s signalą?�Ne/d_ekoruoti�Nepavyko pakeisti namų katalogo į „%s“: %s�Nepavyko rasti tinkamo nustatymų failo, naudojami numatytieji nustatymai.�Nepavyko rasti tinkamo meniu failo „%s“�Nepavyko įkelti temos.�Nepavyko sukurti katalogo „%s“: %s�Bevardis langas�Langai�X serveris nepalaiko lokalės.�Taip�_Pridėti darbastalį�_Užverti�_Sluoksnis�_Perkelti�_Normalus�P_ašalinti paskutinį darbastalį�Suskleis_ti/išskleisti�Siųsti į _darbastalį�darbastalis %i�������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/pl.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022000�12544731074�011651� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ��0��� �� ��� ����� ����� ��&���) ��!���P ��3���r ����� ��-��� �� ��� ����� ��(��� �� ��� ��7���$ �����\ �� ���e �� ���p �����| ����� �� ��� ��)��� ��0��� ��*��� ��A��� �� ���^ �����j ��5���s ��$��� ��,��� ��#��� ��%�����$���E��$���j��.�����"����� ���������� ����������������������������(�����+�����������������0����������1����� ���I�����T��"���o��`�����j����� ���^��+���k��>�����%����������!��������6�����E��!���M�����o�����s��������������������������� ���������� �������������������B�����B�����=���F��:�����I�����?��� ��&���I��5���p��=�����H�����3���-��B���a��8�����3�����3��������E�����W�����j��(���~��$�����?�������� ��;����� ���O�����\��7���d�� �����9���������������������������� �������2���&��=���Y��5�����F����� ����� ��� ��"���.��,���Q��>���~��.�����-�����.�����0���I��I���z��(����� �������������������� ���'�����2�� ���6�����D�����G�����.��C��K�� ��� ��-��� ����� ��^��� �����8!�����H!��4���d!��5���!��Q���!�����!"��2���<"��Y���o"��2���"�����"��&���#�����?#�����N#��,���S#�����#�����#�����#�����#�� ���#�� ���#�����#�����#�����#�� ���#�����%���0���I������Z���!�������������������K���4���[����������M���>������O���(���;���#���&��� ����������,���*���T������H���<���'����������N���)���9���?���������@������������������������������������R���$������� ���3�������L�������F�����������W���8���6����������.��������������������A���X���U�������=���"����������B�������Y������S���7���C���:���2���1���D��� ��� ������E����������� �������P���V���Q���J�������/���+������������������ ����������������-�������G��������������������5�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.3 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2013-10-06 15:08+0200 Last-Translator: Jakub Błażejczyk Language-Team: polski <kuboslawik@gmail.com> Language: pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); � Opcje debugowania: � Opcje: � Przekazywanie komunikatów do działającej instancji Openboksa: � Proszę zgłaszać błędy (w języku angielskim) pod adresem %s � --config-file FILE Podaj ścieżkę do pliku konfiguracji � --debug Wyświetla informacje o debugowaniu � --debug-focus Wyświetla wyjście debugowania obsługi aktywacji � --debug-xinerama Dzieli ekran na sztuczne ekrany xineramy � --exit Opuść Openbox � --help Wyświetla tę pomoc i kończy � --reconfigure Ponownie wczytuje pliki konfiguracyjne � --replace Zastępuje aktualnie działający menedżer okien � --restart Ponownie uruchamia Openboksa � --sm-disable Nie tworzy połączenia z menedżerem sesji � --sync Uruchamia w trybie synchronicznym � --version Wyświetla wersję i kończy �Menedżer okien jest już uruchomiony na ekranie %d�Wszystkie pulpity�Zawsze pod _spodem�Zawsze na _wierzchu�Czy na pewno chcesz opuścić Openboksa?�Czy na pewno chcesz się wylogować?�Spróbowano uzyskać dostęp do menu "%s", ale ono nie istnieje�Anuluj�Nie można ustawić modyfikatorów lokalnych dla serwera X.�Menu klienta�Zamknij�Konflikt skrótów klawiszowych w pliku konfiguracyjnym�Copyright (c)�Nie można uzyskać wyboru menedżera okien na ekranie %d�Pulpity�Odłącz�Zakończ proces�Wykonaj�Wyjście�Opuść Openbox�Nie można przekonwertować ścieżki "%s" z UTF-8�Wykonanie polecenia dla pipe-menu "%s" nie powiodło się: %s�Zainicjowanie biblioteki obrender nie powiodło się.�Otwarcie ekranu ze zmiennej środowiskowej DISPLAY nie powiodło się.�Przejdź...�Zmi_nimalizuj�Wywołana akcja "%s" nie istnieje.�Nieprawidłowy klawisz "%s" w skrócie myszy�Nieprawidłowy klawisz "%s" określony w pliku konfiguracyjnym�Nieprawidłowy argument wiersza poleceń "%s" �Nieprawidłowy kontekst "%s" w skrócie myszy�Nieprawidłowy kod "%s" w skrócie klawiszowym�Nieprawidłowa nazwa "%s" w skrócie klawiszowym�Nieprawidłowy klawisz modyfikatora "%s" w skrócie klawiszowym lub myszy�Nieprawidłowe wyjście z pipe-menu "%s"�Kończenie...�Wyloguj�Zma_ksymalizuj�Zarządzaj pulpitami�Więcej...�Nie�Nie odpowiada�OK�Jeden lub więcej błędów składniowych XML zostało znalezionych podczas sprawdzania plików konfiguracyjnych. Zobacz stdout aby uzyskać więcej informacji. Ostatnio błąd znaleziono w pliku "%s" linia %d, z wiadomością: %s�Błąd składniowy Openboksa�Openbox jest skonfigurowany dla %d pulpitu, ale bieżąca sesja ma %d. Nadpisywanie konfiguracji Openboksa.�Openbox jest skonfigurowany dla %d pulpitu, ale bieżąca sesja ma %d. Nadpisywanie konfiguracji Openboksa.�Openbox jest skonfigurowany dla %d pulpitu, ale bieżąca sesja ma %d. Nadpisywanie konfiguracji Openboksa.�P_rzywróć�Żądany klawisz "%s" nie istnieje na ekranie�Zmień _rozmiar�Wykonanie nowego pliku wykonywalnego "%s" podczas ponownego uruchomienianie powiodło się: %s�Uruchamianie %s�Składnia: openbox [opcje] �Menedżer okien na ekranie %d nie kończy działania�Okno "%s" nie odpowiada. Odłączyć je od serwera X?�Okno "%s" nie odpowiada. Czy wymusić zakończenie poprzez wysłanie sygnału %s?�Wyświetl/ukryj _dekoracje�Nie można przejść do katalogu domowego "%s": %s�Nie można znaleźć prawidłowego pliku konfiguracyjnego, używanie domyślnychwartości�Nie można znaleźć prawidłowego pliku menu "%s"�Nie można wczytać motywu.�Nie można utworzyć katalogu "%s": %s�Okno bez nazwy�Okna�Serwer X nie obsługuje ustawień lokalnych.�Tak�Dod_aj nowy pulpit�Z_amknij�_Warstwa�_Przesuń�_Normalnie�_Usuń ostatni pulpit�_Zwiń/Rozwiń�Wyślij na p_ulpit�pulpit %i�openbox-3.6.1/po/pt.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022767�12544731074�011705� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������_����������� ����������� �� �����1���)�����[��A���v��/�����B�����F���+ ��C���r ��#��� ��1��� ��5��� ��C���B ��&��� ��@��� ��-��� ��.��� ��3���K ����� ��0��� �� ��� ����� ����� ��&��� ��!��� ��3���@ �����t ��-���{ �� ��� ����� ��(��� �� ��� ��7��� �����* �� ���3 �� ���> �����J �����R �� ���W ��)���d ��0��� ��*��� ��A��� �� ���,�����8��5���A��$���w��,�����#�����%�����$�����$���8��.���]��"����� ���������� ���������������������������������������������V����������0��������4��1���<�� ���n�����y��"�����`�����j����� �����+�����>�����%��������!��!���9�����[�����j��!���r������������������������������������� ���������� �������������� �����4�����"�����h�����8�����M�����N�����?���V��$�����.�����<�����:���'��)���b��A�����-�����3�����-���0�����^��8���v�����������������+�����+�����/���G�����w��U����� ����������=��������(��D���>��������������������������������(�����@�����+���9��8���e�� ����� �����6�����'�����3�����.���G��)���v��/�����/�����9������1���:�� ���l�����z�� �������������������������������������� ����� ��Y���!�� ���7"��)���B"�����l"��<���{"�� ���"�����"��3���"��^���#��Z���v#�����#��.���#��h���$��5���$�����$��&���$�����$�����%��4���%�����E%��!���I%�����k%�����s%�����{%�����%��"���%�����%�� ���%�����%�����(���3���M������^���$������W�����������O���7���S����������Q���A������F���+���>���&���)���#���"�������/���-���X������L���?���*����������R���,���<���B������ ���D������������������������������������V���'������� ���6�������P�������J�����������[���;���9����������1��� �����������������E���\���Y�������@���%�����������������]������U���:���G���=���5���4���H��� ��� ������I���_��������������T���Z���C���N������2���.���!��������������� ����������������0�������K��������������������8�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2013-09-05 10:10-0000 Last-Translator: Sérgio Marques <smarquespt@gmail.com> Language-Team: Language: pt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); X-Generator: Poedit 1.5.7 � Opções de depuração: � Opções: � Enviando mensagens para uma instância do Openbox: � Por favor reporte os erros em %s � --config-file FICHEIRO Especifica o caminho do ficheiro de configuração a usar � --debug Mostra o resultado da depuração � --debug-focus Mostra o resultado de depuração para gestão de foco � --debug-session Mostra o resultado de depuração da gestão de sessão � --debug-xinerama Divide o ecrã em falsos ecrãs xinerama � --sair Sai do Openbox � --help Mostra esta ajuda e sai � --reconfigure Recarrega a configuração do Openbox � --replace Substitui o gestor de janelas ativo � --restart Reinicia o Openbox � --sm-disable Desativa a ligação ao gestor de sessões � --startup CMD Executa CMD ao iniciar � --sync Executa em modo sincronizado � --version Mostra a versão e sai �%s requer um argumento �Um gestor de janelas já está em execução no ecrã %d�Todas as áreas de trabalho�Sempre por _trás�Sempre na _frente�Tem a certeza que pretende sair do Openbox?�Tem a certeza que pretende sair da sessão?�Tentou aceder ao menu "%s" mas este não existe�Cancelar�Não foi possível definir os modificadores de configuração regional do servidor X.�Menu cliente�Fechar�Conflito entre teclas de atalho no ficheiro de configuração�Direitos de autor (c)�Não foi possível obter o gestor de janelas selecionado no ecrã %d�Áreas de trabalho�Desligar�Terminar processo�Executar�Sair�Sair do Openbox�Falha a converter o caminho "%s" do utf8�Falha a executar o comando para o menu de processamento "%s": %s�Falha ao inicializar a biblioteca obrender.�Falha ao abrir o ecrã da variável de ambiente DISPLAY.�Ir para...�Mi_nimizar�Pedido de ação "%s" inválido. A ação não existe.�Botão inválido "%s" no atalho do rato�Botão inválido "%s" no ficheiro de configuração�Argumento inválido na linha de comandos "%s" �Contexto inválido "%s" no atalho do rato�Código chave inválido "%s" na tecla de atalho�Nome de chave inválido "%s" na tecla de atalho�Tecla modificadora inválida "%s" no atalho de tecla/rato�Resultado inválido do menu de processamento "%s"�Terminando...�Sair da sessão�Ma_ximizar�Gerir áreas de trabalho�Mais...�Não�Não está a responder�Aceitar�Um ou mais erros de sintaxe do XML foram encontrados ao analisar os ficheiros de configuração do Openbox. Consulte stdout para mais informações. O último erro foi encontrado no ficheiro "%s", na linha %d e com a mensagem: %s�Erro de sintaxe do Openbox�O Openbox está configurado para %d área de trabalho, mas a sessão atual tem %d. Sobrescrevendo a configuração do Openbox.�O Openbox está configurado para %d áreas de trabalho, mas a sessão atual tem %d. Sobrescrevendo a configuração do Openbox.�O Openbox foi compilado sem suporte a imagens. Os ícones de menu não serão carregados.�R_estaurar�Chave requerida "%s" não existe no ecrã�Redimen_sionar�Falha ao reiniciar a execução do novo executável "%s": %s�Executando %s�Sintaxe: openbox [opções] �O gestor de janelas no ecrã %d não está a fechar�Parece que a janela "%s" não está a responder. Quer fechar a janela desligando o servidor X?�Parece que a janela "%s" não está a responder. Quer fechar a janela enviando o sinal %s?�_Decorar/não decorar�Incapaz de mudar para a pasta pessoal "%s": %s�Incapaz de encontrar um ficheiro de configuração válido. Serão utilizados os valores pré-definidos.�Incapaz de encontrar um ficheiro de menu válido "%s"�Incapaz de carregar o tema.�Incapaz de criar o diretório '%s': %s�Janela sem nome�Janelas�O servidor X não suporta a configuração regional.�Sim�_Adicionar nova área de trabalho�Fe_char�_Camada�_Mover�_Normal�_Remover última área de trabalho�En_rolar/desenrolar�Enviar para a área de _trabalho�área de trabalho %i����������openbox-3.6.1/po/pt_BR.gmo��������������������������������������������������������������������������0000644�0001753�0000144�00000023133�12544731074�012254� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������_����������� ����������� �� �����1���)�����[��A���v��/�����B�����F���+ ��C���r ��#��� ��1��� ��5��� ��C���B ��&��� ��@��� ��-��� ��.��� ��3���K ����� ��0��� �� ��� ����� ����� ��&��� ��!��� ��3���@ �����t ��-���{ �� ��� ����� ��(��� �� ��� ��7��� �����* �� ���3 �� ���> �����J �����R �� ���W ��)���d ��0��� ��*��� ��A��� �� ���,�����8��5���A��$���w��,�����#�����%�����$�����$���8��.���]��"����� ���������� ���������������������������������������������V����������0��������4��1���<�� ���n�����y��"�����`�����j����� �����+�����>�����%��������!��!���9�����[�����j��!���r������������������������������������� ���������� �������������� �����B��������!��j���A��2�����N�����O���.��O���~��%�����.�����<���#��?���`��)�����H�����4�����3���H��-���|�������<�������������������-��-���=��"���k��,����������O�������������$��?���+�� ���k��L���y������� ��������������������������)�����=���?��'���}��5����� ����� �����6�����.���'��?���V��-�����0�����5�����5���+��@���a��.����� ���������� ������������� ����� ����� �����( �����+ ����� !����(!��h���1"�� ���"��(���"�����"��C���"�� ���!#�����/#��5���L#��O���#��X���#�����+$��;���;$��i���w$��<���$��$���%��.���C%�����r%�����%��&���%�����%��!���%�����%�����%�����%�����%��"���%�� ���&�����'&�����F&�����(���3���M������^���$������W�����������O���7���S����������Q���A������F���+���>���&���)���#���"�������/���-���X������L���?���*����������R���,���<���B������ ���D������������������������������������V���'������� ���6�������P�������J�����������[���;���9����������1��� �����������������E���\���Y�������@���%�����������������]������U���:���G���=���5���4���H��� ��� ������I���_��������������T���Z���C���N������2���.���!��������������� ����������������0�������K��������������������8�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.5.0 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2011-08-01 15:26-0400 Last-Translator: Og Maciel <ogmaciel@gnome.org> Language-Team: Brazilian Portuguese <gnome-l10n-br@listas.cipsga.org.br> Language: pt_BR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n > 1); � Opções de depuração: � Opções: � Passando mensagens para uma instância do Openbox em execução: � Por favor reporte erros em %s � --config-file ARQUIVO Especifica o caminho do arquivo de configuração para usar � --debug Mostra saida de depuração � --debug-focus Mostra saída de depuração para manipulação de foco � --debug-session Mostra saída de depuração do gerenciamento da sessão � --debug-xinerama Divide a exibição de telas em telas de xinerama falsas � --exit Sai do Openbox � --help Mostra esta ajuda e sai � --reconfigure Recarrega a configuração do Openbox � --replace Substitui o gerenciador de janelas ativo � --restart Reinicia o Openbox � --sm-disable Desabilita conexão com o gerenciador de sessões � --startup CMD Executa CMD depois de iniciar � --sync Executa em modo sincronizado � --version Mostra a versão e sai �%s requere um argumento �Um gerenciador de janelas já está em execução na tela %d�Todas as áreas de trabalho�Sempre no _fundo�Sempre no _topo�Você tem certeza que deseja sair do Openbox?�Você tem certeza que deseja sair?�Tentou acessar menu "%s" mas ele não existe�Cancelar�Não foi possível configurar modificadores de localização para o servidor X.�Menu do cliente�Fechar�Conflito com associação de chave no arquivo de configuração�Copyright (c)�Não foi possível adquirir a seleção do gerenciador de janelas na tela %d�Áreas de trabalho�Desconectar�Terminar Processo�Executar�Sair�Sair do Openbox�Falha ao converter o caminho "%s" do utf8�Falha ao executar comando para menu de processamento "%s": %s�Falha ao iniciar a biblioteca obrender.�Falha ao abrir a tela da variavel de ambiente DISPLAY�Ir lá...�Mi_nimizar�Ação inválida "%s" requisitada. Ação não existe.�Botão inválido "%s" na associação do mouse�Botão inválido "%s" especificado no arquivo de configuração�Argumento de linha de comando inválido "%s" �Contexto "%s" inválido na associação do mouse�Código chave "%s" inválido na associação de chave�Nome de chave "%s" inválido na associação de chave�Chave modificadora "%s" inválida na associação de tecla/mouse�Saída inválida do menu de processamento "%s"�Terminando...�Sair�Ma_ximizar�Gerenciar áreas de trabalho�Mais..�Não�Não Responsivo�OK�Um ou mais erros de sintaxe de XML foram encontrados ao analisar os arquivos de configuração do Openbox. Veja a saída padrão para mais informação. O último erro relatado foi no arquivo "%s" linha %d, com a mensagem: %s�Erro de Sintaxe do Openbox�O Openbox está configurado para %d área de trabalho, mas a sessão atual contém %d. Sobrescrevendo a configuração do Openbox.�O Openbox está configurado para %d áreas de trabalho, mas a sessão atual contém %d. Sobrescrevendo a configuração do Openbox.�Openbox foi compilado sem suporte para carregamento de imagens. Ícones em menus não serão carregados.�R_estaurar�Chave requerida "%s" não existe na tela�Redimen_sionar�O comando de reiniciar falhou ao executar novo executável "%s": %s�Executando %s�Sintaxe: openbox [opções] �O gerenciador de janelas na tela %d não está saindo�A janela "%s" não está responsiva. Você deseja desconectá-la do servidor X?�A janela "%s" não está responsiva. Você deseja forçá-la a sair enviando o sinal %s?�(Não) _Decorar�Não foi possível mudar para o diretório pessoal "%s": %s�Não foi possível encontrar um arquivo de configuração válido, usando alguns valores padrão simples.�Não foi possível encontrar um arquivo de menu "%s" válido�Não foi possível carregar um tema.�Não foi possível criar o diretório '%s': %s�Janela sem nome�Janelas�Servidor X não suporta localização.�Sim�_Adicionar nova área de trabalho�_Fechar�_Camada�_Mover�_Normal�_Remover última área de trabalho�(Des)en_rolar�Enviar para área de _trabalho�área de trabalho %i��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ro.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022106�12544731074�011665� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� ������������X�� ���t��8�����'�����P�����;���2��R���n��D�����+�����K���2��F���~��L�����*�����G���=��7�����O�������� ��'���'�����O�����c�����|��3�����,�����2��������'��<���/�� ���l�����y��=����� �����9����� ����� �������� �����1�����:�����B��6���V��1�����,�����>����� ���+�� ���9��N���G��2�����>�����0�����4���9��>���n��?�����F�����.���4�����c�����z�� ���������� ���������� ������������������������� ��� ��*��� ����� ��D��� �� ���=!�����I!��.���g!��U���!��^���!��!���K"��3���m"��U���"��5���"��+���-#�����Y#�����p#��)���y#�����#�����#�� ���#�� ���#�����#�����#�����#��+���#�����'$�� ���;$�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: openbox 3.5.0 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2010-10-26 23:51+0100 Last-Translator: Radu Feflea <rfeflea@googlemail.com> Language-Team: none Language: ro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Opțiuni pentru depanare: � Opțiuni: � Mesaje către o instanță Openbox care deja rulează: � Vă rugăm să anunțați erori la %s � --config-file FIȘIER Definește calea către fișierul de configurare dorit � --debug Afișează output-ul pentru depanare � --debug-focus Afișează output-ul pentru depanare a problemelor de focus � --debug-xinerama Împarte ecranul în pseudo-ferestre xinerama � --exit Părăsește Openbox � --help Afișează mesajul acesta și părăsește programul � --reconfigure Reîncarcă fișierul de configurare al Openbox � --replace Înlocuiește managerul de ferestre curent cu Openbox � --restart Repornește Openbox � --sm-disable Dezactivează conexiunea cu managerul de sesiune � --sync Rulează Openbox în mod sincron � --version Afișează versiunea curentă și părăsește programul �%s necesită un argument �Un manager de ferestre rulează deja %d�Toate desktop-urile�Întotdeauna în _fundal�Întotdeauna _deasupra�Sunteți sigur că vreți să ieșiți din Openbox?�Sunteți sigur că vreți să vă delogați?�Accesare meniu “%s” eșuată. Meniu inexistent�Anulare�Setările regionale pentru serverul X nu au putut fi setate.�Meniu client�Închide�Conflict de combinații de taste în fișierul de configurare�Copyright (c)�Selecția unui manager de ferestre pe ecranul %d a eșuat�Desktop-uri�Deconectare�Terminare proces�Execută�Ieșire�Ieșire din Openbox�Calea “%s” nu a putut fi convertită din cod UTF-8�Comandă eșuată în meniul dinamic “%s”: %s�Inițializarea librăriei obrender eșuată.�Display-ul din variabila sistem DISPLAY nu a putut fi deschis.�Activează...�Mi_nimizează�Comanda internă “%s” invalidă. Nu există o astfel de comandă internă.�Buton invalid “%s” în configurarea mouse-ului�Buton invalid “%s” specificat în fișierul de configurare�Argument invalid în linia de comandă “%s” �Context invalid “%s” în configurarea mouse-ului�Codul de tastă “%s” este invalid în combinația de taste�Numele de tastă “%s” este invalid în combinația de taste�Tasta specială “%s” este invalidă în combinația de taste/mouse�Răspuns invalid de la meniul dinamic “%s”�Terminare forțată...�Delogare�Ma_ximizează�Administrează desktop-uri�Mai mult...�Nu�Nu răspunde�OK�Una sau mai multe erori de sintaxă XML au fost găsite la parcurgerea fișierului de configurare Openbox. Vezi stdout pentru mai multe informații. Ultima eroare găsită a fost in fișierul “%s” la linia %d, cu mesajul: %s�Eroare de sintaxă Openbox�Openbox e configurat pentru %d desktop, iar sesiunea curentă are %d. Configurația Openbox va fi ignorată.�Openbox e configurat pentru %d desktop-uri, iar sesiunea curentă are %d. Configurația Openbox va fi ignorată.�R_estaurează�Tasta cerută “%s” nu există pe ecran�Redimensionea_ză�Restartarea a eșuat lansarea noului fișier executabil “%s”: %s�Rulează %s�Sintaxă: openbox [opțiuni] �Managerul de ferestre curent %d nu se închide�Fereastra “%s” nu pare să răspundă. Doriți deconectarea ei de la serverul X?�Fereastra “%s” nu pare să răspundă. Doriți închiderea forțată printr-un semnal %s?�_Ascunde/afișează bara de titlu�Directorul home “%s” nu a putut fi selectat: %s�Nu a fost găsit nici un fișier de configurare valid, se vor folosi valori implicite�Nu a fost găsit nici un fișier meniu valid “%s”�O temă grafică nu a putut fi încarcată.�Fereastră fără nume�Ferestre�Serverul X nu suportă setări regionale.�Da�_Adaugă desktop nou�În_chide�_Vizibilitate�_Mută�_Normal�Șterge _ultimul desktop�Minimizează/maximizează la _bara de titlu�_Trimite pe desktop�desktop %i�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/ru.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000025723�12544731074�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������\������������������������ �����1��������+��A���F��/�����B�����C�����#���? ��1���c ��5��� ��C��� ��&��� ��@���6 ��.���w ��3��� ����� ��0��� �� ���$ �����1 �����C ��&���R ��!���y ��3��� ����� ��-��� �� ��� ����� ��(��� �� ���? ��7���M ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���E �� ��� ����� ��5��� ��$��� ��,��� ��#���$��%���H��$���n��$�����.�����"����� ��� ������� ��������'�����7�����?�����B�����Q�����T����������#�������0��������8��1���@�� ���r�����}��"�����`�����j����� �����+�����>�����%��������%��!���=�����_�����n��!���v������������������������������������� ���������� ���������$����� �����Z�����F�����j���f��A�����n�����f�����.�����K�����R���d��e�����9�����c���W��T�����B�����6���S��J����� ���������������E���2��8���x��Z�������� ��h���������������f����� �����g���(������������!���������� ����������A�����\���W��F�����d��������`��$���r��`�����C�����^���< ��G��� ��B��� ��L���&!��L���s!��\���!��6���"�����T"�� ���l"�����w"��4���"�� ���"�����"�����"�����"��j��"��)���X$��a��$�����%��T���&��!���V&��g���x&�����&��&���&��D���'��r���\'�����'��#���X(��Y���|(�����(��U���i)��1���)��A���)�����3*�����Q*��:���Z*�����*��7���*�����*�����*�����*�����+��=���*+�����h+��3���+�����+�����&���1���J������[���"�������������������L���5���\����������N���?������P���)���<���$���'���!��� �������-���+���U������I���=���(����������O���*���:���@���������A������������������������������������S���%������� ���4�������M�������G�����������X���9���7����������/��������������������B���Y���V�������>���#����������C�������Z������T���8���D���;���3���2���E��� ��� ������F����������� �������Q���W���R���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-05-02 10:25+0200 Last-Translator: Moroz Sergey L. <se.seam@gmail.com> Language-Team: None Language: ru MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1; � Настройки отладки: � Опции: � Отправка сообщений запущенному экземпляру Openbox: � Пожалуйста, сообщайте об ошибках на %s � --config-file FILE Указать путь к используемому файлу настройки � --debug Показать вывод отладки � --debug-focus Показать вывод отладки для выделенного фокусом � --debug-xinerama Разделить дисплей на фальшивые экраны xinerama � --exit Выйти из Openbox � --help Показать эту справку и выйти � --reconfigure Перезагрузить конфигурацию Openbox � --replace Заменить текущий запущенный менеджер окон � --restart Перезапустить Openbox � --sm-disable Разорвать соединение с менеджером сессии � --sync Запустить в режиме синхронизации � --version Показать версию и выйти �%s требует указания аргумента �Оконный менеджер уже запущен на экране %d�Все рабочие столы�Всегда внизу(_B)�Всегда наверху(_T)�Вы действительно хотите выйти из Openbox?�Вы действительно хотите выйти?�Попытка доступа к меню "%s", которого не существует�Отменить�Невозможно установить модификаторы локали для X сервера.�Клиентское меню�Закрыть�Конфликтует с комбинацией клавиш из файла конфигурации�Copyright (c)�Невозможно получить выбранный менеджер окон на экране %d�Рабочие столы�Отключить�Закончить процесс�Запустить�Выйти�Выйти из Openbox�Неудачная конвертация пути "%s" из utf8�Неудачное выполнение команды для меню канала "%s": %s�Невозможно запустить библиотеку obrender.�Невозможно открыть экран из переменной окружения DISPLAY.�Перейти...�Свернуть в значок(_N)�Запрошено неверное действие "%s". Такого действия нет.�Неверная кнопка "%s" в комбинации мыши�В файле конфигурации определена неверная кнопка "%s"�Неверный аргумент командной строки "%s" �Неверная связь "%s" в комбинации мыши�Неверный код ключа "%s" в комбинации клавиш�Неверное имя ключа "%s" в комбинации клавиш�Неверный модификатор "%s" в комбинации клавиши/мыши�Неверный выход меню канала "%s"�Завершение...�Выход�Распахнуть(_X)�Управление рабочими столами�Еще...�Нет�Нет ответа�OK�При обработке файлов конфигурации Openbox найдена одна или более синтаксических ошибок XML. Подробную информацию просмотрите в выводе stdout. Последняя ошибка замечена в файле "%s" строке %d, с сообщением: %s�Ошибка синтаксиса Openbox�Openbox сконфигурирован для %d рабочих столов, а в текущей сессии имеется %d. Изменены настройки Openbox.�Openbox сконфигурирован для %d рабочих столов, а в текущей сессии имеется %d. Изменены настройки Openbox.�Восстановить(_E)�Запрошенного ключа "%s" на экране не существует�Изменить размер(_Z)�При перезапуске не удалось выполнить новую команду "%s": %s�Запуск %s�Синтаксис: openbox [options] �Менеджер окон на экране %d еще запущен�Похоже, окно "%s" не отвечает. Хотите отключить его от Х-сервера?�Похоже, окно "%s" не отвечает. Хотите принудительно послать сигнал выхода %s?�Рас/Декорировать(_D)�Невозможно изменить на домашнюю директорию "%s": %s�Невозможно найти правильный файл настройки, используется простой по умолчанию.�Невозможно найти соответствующий файл меню "%s"�Невозможно загрузить тему.�Невозможно создать директорию '%s': %s�Безымянное окно�Окна�X сервер не поддерживает локаль.�Да�Добавить новый рабочий стол(_A)�Закрыть(_C)�Положение(_L)�Переместить(_M)�Обычное(_N)�Удалить последний рабочий стол(_R)�Рас/скрутить(_R)�Отправить на рабочий стол(_S)�рабочий стол %i����������������������������������������������openbox-3.6.1/po/sk.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000016633�12544731074�011672� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������V�����������|������x�����y�� �����1����������/�����B�����C���Y��1�����5�����C��� ��&���I ��@���p ��.��� ��3��� ����� ��0���- �� ���^ �����k �����} ��&��� ��!��� ��3��� ����� ��-��� �� ���> �����J ��(���P �� ���y ��7��� ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0���# ��*���T ��A��� �� ��� ����� ��5��� ��$��� ��,���1 ��#���^ ��%��� ��$��� ��$��� ��.��� ��"���!�� ���D�����O�� ���W�����a�����q�����y�����|������������0����������1����� �������� ��"���(��`���K�� �����+�����>�����%���$�����J��!���b������������!���������������������������������������� ���������� ���"����-������������/��������)��.���E��H���t��E�����5�����<���9��I���v��)�����:�����1���%��4���W�������&���������� ����������!����������3���3�����g��(���p�� ����������6����� �����B��������7�����>�����G�����X�� ���a�����k��-���}��5�����0�����=����� ���P�� ���^��;���h��+�����A�����+�����)���>��3���h��5�����D�����"��������:�� ���O�����]�����m�����|������� ���������� �����0����������8����� ��������*��0���C��C���t�������7�����a������.���b�������*������������������������������ ���*�����4�� ���<�� ���H�����S�� ���q�����~�� ��������$���/���P������U��� �������������������F���3���V����������H���B������J���'���:���"���%�������������+���)���O����������;���&����������I���(���8������� �������������������������������������������M���#����������2�������G�������������������R���7���5�������.���-��������������������=���S�����������D���!����������>�������T������N���6���?���9���1���0���@��� ��� ������A����������� �������K���Q���L���E����������*������������������<����������������,�������C��������� �����������4�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox-3.4.8 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2009-07-16 17:30+0200 Last-Translator: Frantisek Elias <elias.frantisek@gmail.com> Language-Team: Slovak <sk@sk.org> Language: sk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1) ? 1 : (n>=2 && n<=4) ? 2 : 0; � Volby ladenia: � Volby: � Predavanie sprav beziacej instancii Openboxu: � Prosim hlaste chyby na %s � --debug Zobrazit ladiaci vystup � --debug-focus Zobrazit ladiaci vystup pre manipulaciu s fokusom � --debug-xinerama Rozdelit displej na neprave obrazovky xineramy � --help Zobrazi tuto napovedu a skonci � --reconfigure Opatovne nacita konfiguraciu Openboxu � --replace Nahradi momentalne beziace sedenie window manazera � --restart Restartuje Openbox � --sm-disable Vypne spojenie k manazerovi sedenia � --sync Spustit v synchronnom mode � --version Zobrazi cislo verzie a skonci �%s vyzaduje parameter �Okenny manazer uz bezi na obrazovke %d�Všetky plochy�Vždy _dole�Vždy _navrchu�Určite chcete ukončiť Openbox?�Naozaj sa chcete odhlásiť?�Pokus o sprístupnenie menu "%s", ale to neexistuje�Zrušiť�Nemôžem nastaviť locale pre X server.�Menu klienta�Zavrieť�Konflikt priradenie klávesov v konfiguračnom súbore�Copyright (c)�Nepodarilo sa získať výber okenného manažéra na obrazovke %d�Plochy�Odpojiť�Ukončiť proces�Spustiť�Ukončiť�Ukončiť Openbox�Nepodarilo sa skonvertovať cestu "%s" z utf8�Nepodarilo sa spustiť príkaz pre pipe-menu "%s": %s�Nepodarilo sa inicializovať knižnicu obrender.�Nepodarilo sa otvoriť displej z premennej prostredia DISPLAY�Prejsť na...�Do iko_ny�Vyžiadaná neplatná akcia "%s". Takáto akcia neexistuje.�Neplatné tlačidlo "%s" v priradení myši�Neplatné tlačidlo "%s" špecifikované v konfiguračnom súbore�Neplatny parameter prikazoveho riadku "%s" �Neplatný kontext "%s" v priradení myši�Neplatný kód klávesu "%s" v priradení klávesov�Neplatný názov klávesu "%s" v priradení klávesov�Neplatný kláves pre modifikátor "%s" v priradení klávesov/myši�Neplatný výstup z pipe-menu "%s"�Ukončujem proces...�Odhlásiť sa�Ma_ximalizovať�Správa plôch�Viac...�Nie�Neodpovedá�OK�_Obnoviť�Požadovaný kláves "%s" na displeji neexistuje�Z_mena veľkosti�Reštart zlyhal pri spúšťaní novej binárky "%s": %s�Spúšťam %s�Syntax: openbox [volby] �Okenný manažér na obrazovke %d sa neukončuje�Zdá sa, že okno "%s" neodpovedá. Chcete ho odpojiť z X serveru?�(Ne)_Dekorovať�Nepodarilo sa prejsť do domovského adresára "%s": %s�Nepodarilo sa nájsť platný konfiguračný súbor, použijem jednoduché implicitné nastavenia�Nepodarilo sa nájsť platný súbor menu "%s"�Nepodarilo sa nahrať tému.�Nebolo možné vytvoriť adresár '%s': %s�Nepomenované okno�Okná�X server nepodporuje locale.�Áno�_Pridať novú plochu�Z_avrieť�_Vrstva�Pre_sunúť�Nor_málna�_Odstrániť poslednú plochu�Ro/_Zvinúť�_Poslať na plochu�plocha %i������������������������������������������������������������������������������������������������������openbox-3.6.1/po/sr.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000026303�12544731074�011674� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� ���������1����������_�����)���P�����z��Y��� ��~���c��b�����9���E��E�����[�����R���!��?���t��Y�����L�����B���[��<�����Q�����"���-�����P��"���e��;�����5�����i��������d��p���s������������a��������s��k���������������!���1�� ���S�� ���`��"���k��N�����^�����Y���<��h���������� ��� ��E��� ��A���c ��c��� ��M��� !��C���W!��\���!��\���!��m���U"��C���"�����#�����#�� ���0#��0���=#�� ���n#�����z#��$���#�� ���#����#��5���$����$�� ��� '��N���'�����c'��k���'�����'��)���(��\���/(�����(�����')�����)��R���)�����/*��^���*��)���+�����B+�����`+��G���o+�����+��$���+�����+�����+�� ���+�����,��7���,��*���M,��+���x,�����,�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2010-05-18 15:43+0100 Last-Translator: Jay Alexander Fleming <tito.nehru.naser@gmail.com> Language-Team: None Language: sr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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); � Опције отклањања грешака: � Опције: � Прослеђујем поруке покренутом примерку Опенбокса: � Пријавите грешке на %s � --config-file FILE Наведите путању до датотеке са подешавањима која ће се користити � --debug Прикажи излаз код отклањања грешака � --debug-focus Прикажи излаз код отклањања грешака за руковање фокусом � --debug-xinerama Подели екран на имитације „xinerama“ екрана � --exit Изађи из Опенбокса � --help Прикажи ову помоћ и изађи � --reconfigure Поново учитај подешавања за Опенбокс � --replace Замени активни управљач прозора � --restart Покрени опет Опенбокс � --sm-disable Онемогући везу са управљачем сесија � --sync Изврши у истовременом режиму � --version Прикажи верзију и изађи �%s захтева одговарајући аргумент �Управљач прозора је већ покренут на екрану %d�Све радне површине�Увек на дну�Увек изнад осталих�Желите ли да напустите Опенбокс?�Желите ли да одјавите сесију?�Покушај приступа менију „%s“ није успео јер он не постоји�Поништи�Не може се поставити измењивач локалитета за графички сервер�Кориснички мени�Затвори�Сукоб у комбинацији тастера у датотеци за подешавање�Ауторска права (c)�Нисам могао да добијем избор управљача прозора на екрану %d�Радне површине�Прекид везе�Завршетак процеса�Изврши�Излаз�Излаз из Опенбокса�Претварање путање „%s“ из УТФ-8 није успело�Није се могла извршити команда за цевни-мени „%s“: %s�Није успела иницијализација „obrender“ библиотеке.�Није успео приступ екрану из променљиве окружења „DISPLAY“�Иди овде...�Умањи�Захтевана је непостојећа акција „%s“.�Погрешан тастер „%s“ у спајању миша�Погрешно дугме „%s“ наведено у датотеци за подешавање�Неисправан аргумент командне линије „%s“ �Погрешан садржај „%s“ у спајању миша�Неисправан код тастера „%s“ у комбинацији тастера�Неисправно име тастера „%s“ у комбинацији тастера�Неисправан измењивач тастера „%s“ у комбинацији тастер/миш�Погрешан излаз из цевног-менија „%s“�Убијање...�Одјављивање�Увећај�Управљање радним површима�Више...�Не�Програм не одговара�У реду�Код обраде датотека за подешавање пронађена је једна или више синтаксних грешака (XML). Последња је била у датотеци „%s“, у линији %d, са поруком: %s�Синтаксна грешка у Опенбоксу�Опенбокс је подешен за %d радну површ, а тренутна сесија их има %d. Преклапање Опенбокс подешавања.�Опенбокс је подешен за %d радне површи, а тренутна сесија их има %d. Преклапање Опенбокс подешавања.�Опенбокс је подешен за %d радних површи, а тренутна сесија их има %d. Преклапање Опенбокс подешавања.�Врати�Захтевани тастер „%s“ не постоји на екрану�Промени величину�Поновно покретање није могло извршити нови програм „%s“: %s�Извршавам %s�Синтакса: openbox [опције] �Управљач прозора на екрану %d није завршио са радом�Изгледа да се прозор „%s“ не одазива. Желите ли да га одспојите од графичког сервера?�Изгледа да се прозор „%s“ не одазива. Желите ли да га приморате на излаз слањем сигнала %s?�Не/Украси�Не могу се преместити у Личну фасциклу „%s“:%s�Нема исправне датотеке подешавања. Користиће се подразумевана подешавања.�Датотека за подешавање менија („%s“) није пронађена�Не могу да учитам тему.�Безимени прозор�Прозори�Графички сервер не подржава локалитет.�Да�Додајте радну површ�Затвори�Слој�Помери�Номално�Уклоните последњу радну површ�Замотај/Одмотај прозор�Премести на радну површ�радна површина %i������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/sr@latin.gmo�����������������������������������������������������������������������0000644�0001753�0000144�00000021723�12544731074�013025� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� �������������� �����4����������[���,��>�����S�����F�����*���b��3�����>�����8������,���9��=���f��5�����0�����"��� ��0���.�����_�� ���s�������!����������>����������@��������\�����m��6���u�������=���������� ��� ����������,�����4�����:��1���M��:�����6�����A����� ���3�����?��*���F��*���q��<�����-�����,�����5���4��5���j��A�����)����� ��� �� ��������&�����.�����K�����T�����W�����k�����r�������@��1�����r ��.���x ����� ��A��� �� ��� ����� !��6���%!��[���\!��a���!�� ���"��3���$"��N���X"��:���"�����"�����"����� #��(���#�����<#�����?#�����T#�����\#�����a#�����h#�����p#�����#�����#�����#�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2010-05-18 15:43+0100 Last-Translator: Jay Alexander Fleming <tito.nehru.naser@gmail.com> Language-Team: None Language: sr@latin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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); � Opcije otklanjanja grešaka: � Opcije: � Prosleđujem poruke pokrenutom primerku Openboksa: � Prijavite greške na %s � --config-file FILE Navedite putanju do datoteke sa podešavanjima koja će se koristiti � --debug Prikaži izlaz kod otklanjanja grešaka � --debug-focus Prikaži izlaz kod otklanjanja grešaka za rukovanje fokusom � --debug-xinerama Podeli ekran na imitacije „xinerama“ ekrana � --exit Izađi iz Openboksa � --help Prikaži ovu pomoć i izađi � --reconfigure Ponovo učitaj podešavanja za Openboks � --replace Zameni aktivni upravljač prozora � --restart Pokreni opet Openboks � --sm-disable Onemogući vezu sa upravljačem sesija � --sync Izvrši u istovremenom režimu � --version Prikaži verziju i izađi �%s zahteva odgovarajući argument �Upravljač prozora je već pokrenut na ekranu %d�Sve radne površine�Uvek na dnu�Uvek iznad ostalih�Želite li da napustite Openboks?�Želite li da odjavite sesiju?�Pokušaj pristupa meniju „%s“ nije uspeo jer on ne postoji�Poništi�Ne može se postaviti izmenjivač lokaliteta za grafički server�Korisnički meni�Zatvori�Sukob u kombinaciji tastera u datoteci za podešavanje�Autorska prava (c)�Nisam mogao da dobijem izbor upravljača prozora na ekranu %d�Radne površine�Prekid veze�Završetak procesa�Izvrši�Izlaz�Izlaz iz Openboksa�Pretvaranje putanje „%s“ iz UTF-8 nije uspelo�Nije se mogla izvršiti komanda za cevni-meni „%s“: %s�Nije uspela inicijalizacija „obrender“ biblioteke.�Nije uspeo pristup ekranu iz promenljive okruženja „DISPLAY“�Idi ovde...�Umanji�Zahtevana je nepostojeća akcija „%s“.�Pogrešan taster „%s“ u spajanju miša�Pogrešno dugme „%s“ navedeno u datoteci za podešavanje�Neispravan argument komandne linije „%s“ �Pogrešan sadržaj „%s“ u spajanju miša�Neispravan kod tastera „%s“ u kombinaciji tastera�Neispravno ime tastera „%s“ u kombinaciji tastera�Neispravan izmenjivač tastera „%s“ u kombinaciji taster/miš�Pogrešan izlaz iz cevnog-menija „%s“�Ubijanje...�Odjavljivanje�Uvećaj�Upravljanje radnim površima�Više...�Ne�Program ne odgovara�U redu�Kod obrade datoteka za podešavanje pronađena je jedna ili više sintaksnih grešaka (XML). Poslednja je bila u datoteci „%s“, u liniji %d, sa porukom: %s�Sintaksna greška u Openboksu�Openboks je podešen za %d radnu površ, a trenutna sesija ih ima %d. Preklapanje Openboks podešavanja.�Openboks je podešen za %d radne površi, a trenutna sesija ih ima %d. Preklapanje Openboks podešavanja.�Openboks je podešen za %d radnih površi, a trenutna sesija ih ima %d. Preklapanje Openboks podešavanja.�Vrati�Zahtevani taster „%s“ ne postoji na ekranu�Promeni veličinu�Ponovno pokretanje nije moglo izvršiti novi program „%s“: %s�Izvršavam %s�Sintaksa: openbox [opcije] �Upravljač prozora na ekranu %d nije završio sa radom�Izgleda da se prozor „%s“ ne odaziva. Želite li da ga odspojite od grafičkog servera?�Izgleda da se prozor „%s“ ne odaziva. Želite li da ga primorate na izlaz slanjem signala %s?�Ne/Ukrasi�Ne mogu se premestiti u Ličnu fasciklu „%s“:%s�Nema ispravne datoteke podešavanja. Koristiće se podrazumevana podešavanja.�Datoteka za podešavanje menija („%s“) nije pronađena�Ne mogu da učitam temu.�Bezimeni prozor�Prozori�Grafički server ne podržava lokalitet.�Da�Dodajte radnu površ�Zatvori�Sloj�Pomeri�Nomalno�Uklonite poslednju radnu površ�Zamotaj/Odmotaj prozor�Premesti na radnu površ�radna površina %i����������������������������������������������openbox-3.6.1/po/sv.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000021747�12544731074�011707� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������_����������� ����������� �� �����1���)�����[��A���v��/�����B�����F���+ ��C���r ��#��� ��1��� ��5��� ��C���B ��&��� ��@��� ��-��� ��.��� ��3���K ����� ��0��� �� ��� ����� ����� ��&��� ��!��� ��3���@ �����t ��-���{ �� ��� ����� ��(��� �� ��� ��7��� �����* �� ���3 �� ���> �����J �����R �� ���W ��)���d ��0��� ��*��� ��A��� �� ���,�����8��5���A��$���w��,�����#�����%�����$�����$���8��.���]��"����� ���������� ���������������������������������������������V����������0��������4��1���<�� ���n�����y��"�����`�����j����� �����+�����>�����%��������!��!���9�����[�����j��!���r������������������������������������� ���������� �������������� �����<����������G�����,���P��?���}��B�����A������&���B��7���i��5�����>�����(�����D���?��-�����/�����1����������*���,�����W�����f�����v��+�����$�����-����������6��� �� ���B�����M��8���S�� �����9����� ���������������������������� ��0�����6���L��-�����8����� ����� �����6����� ���5��0���V��#�����"�����)�����+�����8���$��#���]������������ �������������������� ������������������z�������\���V �� ��� ��0��� ����� ��5��� �����4!�����;!��+���Y!��P���!��_���!�� ���6"��(���D"��K���m"��'���"�����"��#���"����� #�����1#��$���9#�����^#�����a#�����{#�����#�����#�����#�����#�����#�����#�� ���#�����(���3���M������^���$������W�����������O���7���S����������Q���A������F���+���>���&���)���#���"�������/���-���X������L���?���*����������R���,���<���B������ ���D������������������������������������V���'������� ���6�������P�������J�����������[���;���9����������1��� �����������������E���\���Y�������@���%�����������������]������U���:���G���=���5���4���H��� ��� ������I���_��������������T���Z���C���N������2���.���!��������������� ����������������0�������K��������������������8�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-session Display debugging output for session management � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --startup CMD Run CMD after starting � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�Openbox was compiled without image loading support. Icons in menus will not be loaded.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.5.0 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2011-08-01 18:11+0100 Last-Translator: Mikael Magnusson <mikachu@icculus.org> Language-Team: None Language: sv MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); � Debug-alternativ: � Alternativ: � Skicka meddelanden till en exekverande instans av Openbox: � Rapportera buggar till %s � --config-file FIL Ange skvgen till konfigurationsfil att anvnda � --debug Visa debuginformation � --debug-focus Visa debuginformation fr fokushantering � --debug-session Visa debuginformation fr sessionshantering � --debug-xinerama Dela skrmen i simulerade xinerama-skrmar � --exit Avsluta Openbox � --help Visa den hr hjlpen och avsluta � --reconfigure Ladda om Openbox konfiguration � --replace Erstt den befintliga fnsterhanteraren � --restart Starta om Openbox � --sm-disable Avaktivera anslutning till sessionshanteraren � --startup CMD Kr CMD efter uppstart � --sync Kr i synkroniserat lge � --version Visa versionen och avsluta �%s krver ett argument �En fnsterhanterare krs redan p skrm %d�Alla skrivbord�Alltid _underst�Alltid _verst�r du sker p att du vill avsluta Openbox?�r du sker p att du vill logga ut?�Frskte ppna menyn "%s", men den finns inte�Avbryt�Kan inte stta lokaliseringsmodifierare fr X-servern.�Klientmeny�Stng�Konflikt med annan tangentbindning i konfigurationsfilen�Copyright (c)�Kunde inte erhlla fnsterhanterarmarkeringen p skrm %d�Skrivbord�Stng anslutning�Avsluta process�Kr�Avsluta�Avsluta Openbox�Lyckades inte konvertera skvgen "%s" frn utf8�Misslyckades att kra kommando fr pipe-menyn "%s": %s�Kunde inte initialisera obrender-biblioteket.�Kunde inte ppna en display frn miljvariabeln DISPLAY.�G dit...�Mi_nimera�Ogiltig action "%s" efterfrgades, men den finns inte.�Ogiltig knapp "%s" i musbindning�Ogiltig knapp "%s" angiven i konfigurationsfilen�Ogiltigt kommandoradsargument "%s" �Ogiltig kontext "%s" i musbindning�Ogiltig tangentkod "%s" i tantentbindning�Ogiltigt tangentnamn "%s" i tangentbindning�Ogiltig modifikationstangent "%s" i tangent-/musbindning�Ogiltig utdata frn pipe-menyn "%s"�Ddar...�Logga ut�Ma_ximera�Hantera skrivbord�Mer...�Nej�Svarar inte�OK�Ett eller flera fel ptrffades medan konfigurationsfilerna fr Openbox lstes in. Se stdout fr mer information. Det sista felet var i filen "%s" rad %d, med meddelandet: %s�Openbox syntaxfel�Openbox r instllt p %d skrivbord, men nuvarande session har %d. Anvnder sessionens instllning.�Openbox r instllt p %d skrivbord, men nuvarande session har %d. Anvnder sessionens instllning.�Openbox kompilerades utan std fr att ladda bilder. Ikoner i menyer kommer inte att laddas.�t_erstll�Efterfrgad tangent "%s" finns inte p displayen�ndra s_torlek�Restart misslyckades att starta nytt program "%s": %s�Kr %s�Syntax: openbox [alternativ] �Fnsterhanteraren p skrm %d avslutar inte�Fnstret "%s" verkar inte svara. Vill du stnga dess anslutning till X-servern?�Fnstret "%s" verkar inte svara. Vill du tvinga det att avslutas genom att skicka signalen %s?�_Dekorationer�Kunde inte g till hemkatalogen "%s": %s�Kunde inte hitta en giltig konfigurationsfil, anvnder enkla standardvrden�Kunde inte hitta en giltig menyfil "%s"�Kunde inte ladda ett tema.�Kunde inte skapa katalogen '%s': %s�Namnlst fnster�Fnster�X-servern stdjer inte lokalisering.�Ja�_Lgg till nytt skrivbord�Stn_g�_Lager�_Flytta�_Normal�_Ta bort sista skrivbordet�_Rulla upp/ner�_Skicka till skrivbord�skrivbord %i��������������������������openbox-3.6.1/po/tr.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022201�12544731074�011666� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������[������������������������ �����1����������A���6��/���x��B�����C�����#���/ ��1���S ��5��� ��C��� ��&��� ��@���& ��.���g ��3��� ����� ��0��� �� ��� �����! �����3 ��&���B ��!���i ��3��� ����� ��-��� �� ��� ������ ��(��� �� ���/ ��7���= �����u �� ���~ �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���5 �� ���w ����� ��5��� ��$��� ��,��� ��#�����%���8��$���^��$�����.�����"����� ���������� ��� ����������'�����/�����2�����A�����D�����������������0��������(��1���0�� ���b�����m��"�����`�����j��� �� ���w��+�����>�����%�������������-�����<��!���D�����f�����j�����{���������������������� ���������� ������������x�������<�����*�����P�����<���_��V�����F�����(���:��6���c��B�����?�����1�����K���O��2�����>�����-��� ��8���;�����t������������0�����.�����=��� �����G��;���N������������=����������6����� ���(�����5�����G�� ���Z�����g�����m��.�����P�����<�����K���<�� ����������3�����#�����C�����*���K��(���v��'�����'�����7�����.���'�����V�� ���l�����z�������������������������������������������� ��&��� �����&!��e���<!�����!��"���!��7���!��m���"��j���|"�� ���"��$���"��]���#��(���x#�����#�����#�� ���#��*���#�����#������$�����$�����$�����%$�����-$�����5$�� ���P$�����]$�� ���s$�����&���1���J������Z���"�������������������L���5���[����������N���?������O���)���<���$���'���!��� �������-���+���T������I���=���(����������P���*���:���@���������A������������������������������������R���%������� ���4�������M�������G�����������W���9���7����������/��������������������B���X���U�������>���#����������C�������Y������S���8���D���;���3���2���E��� ��� ������F����������� �����������V���Q���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2011-04-28 00:23+0300 Last-Translator: Muhammet Kara <muhammet.k@gmail.com> Language-Team: Turkish <gnome-turk@gnome.org> Language: tr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1; � Hata ayıklama seçenekleri: � Seçenekler: � İletiler çalışan bir Openbox örneğine aktarılıyor: � Lütfen hataları %s adresine bildiriniz � --config-file FILE Kullanılacak yapılandırma dosyasının yolunu belirtir � --debug Hata ayıklama çıktısını göster � --debug-focus Özelleşmiş durum için hata ayıklama çıktısını göster � --debug-xinerama Görüntü gerçek olmayan ekranlara bölünür � --exit Openbox'tan çık � --help Yardımı görüntüle ve çık � --reconfigure Openbox yapılandırmasını yeniden yükle � --replace Güncel pencere yöneticisini değiştir � --restart Openbox'ı yeniden başlat � --sm-disable Oturum yöneticisiyle olan bağlanıyı etkisiz kıl � --sync Eş zamanlı kipte çalış � --version Sürüm bilgisini görüntüle ve çık �%s dosyası bir değişkene ihtiyaç duyuyor �%d ekranınz zaten bir pencere yöneticixi çalışıyor�Tüm masaüstleri�_Her zaman altta�_Her zaman üstte�Openbox'tan çıkmak istediğinize emin misiniz?�Oturumu kapatmak istediğinizden emin misiniz?�"%s" menüsüne erişilmeye çalışıldı fakat bu menü yok�İptal�X sunucu için dil ayarları değiştiricisi ayarlanamadı.�İstemci menüsü�Kapat�Yapılandırma dosyasındaki tuş bağlantısında çakışma�Telif Hakkı (c)�Seçilen %d ekranında pencere yöneticisi bulunamadı�Masaüstleri�Bağlantıyı Kes�Süreci Sonlandır�Çalıştır�Çık�Openbox'tan Çık�"%s" yolu utf8'e çevrilmesi başarısız oldu�İletim menüsü için "%s": %s komutunun çalıştırılması başarısız oldu�ObRender kitaplığının sıfırlanması başarısız oldu.�DISPLAY çevre değişkeninde görüntünün açılması başarısız oldu.�Oraya git...�_Simge durumuna küçült�"%s" geçersiz eylem isteği. Böyle bir eylem yok.�Fare bağında geçersiz "%s" tuşu�Yapılandırılma dosyasında belirtilmiş geçersiz "%s" düğmesi�"%s" geçersiz komut satırı değişkeni �Fare bağında geçersinz "%s" içeriği�Tuş bağında "%s" geçersiz tuş kodu�Tuş bağında "%s" geçersiz tuş adı�Klavye/fare bağında geçersiz "%s" tuş değiştirici�"%s" iletim menüsü için geçersiz çıkış�Sonlandırılıyor...�Oturumu Kapat�_Ekranı kapla�Masaüstlerini yönet�Daha...�Hayır�Cevap Vermiyor�Tamam�Openbox yapılandırma dosyası ayrıştırılırken bir yada daha fazla XML sözdizimi hatası bulundu. Daha fazla bilgi için stdout çıktısına bakınız. Son hata "%s" dosyası içerisindeki %d satırında %s hata iletisi ile görüldü�Openbox Sözdizimi Hatası�Openbox %d masaüstü için yapılandırılmıştır fakat güncel oturumda %d masaüstü var. Openbox yapılandırması geçersiz kılınıyor.�Openbox %d masaüstleri için yapılandırılmıştır fakat güncel oturum %d dir. Openbox yapılandırmasının üzerien yazılıyor.�_Eski durumuna getir�İstenilen "%s" tuşu görüntüde yok�_Yeniden boyutlandır�Yeniden başlatmadaki "%s": %s çalıştırılabilir dosyalarının başlatılması başarısız oldu�%s çalışıyor�Sözdizimi: openbox [seçenekler] �%d ekranındaki pencere yöneticisinden çıkılamıyor�"%s" penceresi cevap veriyor gibi görünmüyor. X sunucusu ile bağlantısını sonlandırmak ister misiniz?�"%s" penceresi cevap veriyor gibi görünmüyor. %s sinyali göndererek zorla sonlandırmak ister misiniz?�Geri Al/Kapla�"%s": %s ev dizini değiştirilemedi�Geçerli yapılandırma dosyası bulunamadı, bazı basit öntanımlı ayarlar kullanılıyor�"%s" geçerli menü dosyası bulunamadı�Tema yüklenemedi.�İsimsiz Pencere�Pencereler�X sunucusu dil ayarlarını desteklemiyor.�Evet�_Yeni masaüstü ekle�_Kapat�_Katman�_Taşı�_Normal�_Son masaüstünü kaldır�_Dürele/Aç�_Masaüstüne gönder�%i masaüstü������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/uk.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000026147�12544731074�011675� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������\������������������������ �����1��������+��A���F��/�����B�����C�����#���? ��1���c ��5��� ��C��� ��&��� ��@���6 ��.���w ��3��� ����� ��0��� �� ���$ �����1 �����C ��&���R ��!���y ��3��� ����� ��-��� �� ��� ����� ��(��� �� ���? ��7���M ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���E �� ��� ����� ��5��� ��$��� ��,��� ��#���$��%���H��$���n��$�����.�����"����� ��� ������� ��������'�����7�����?�����B�����Q�����T����������#�������0��������8��1���@�� ���r�����}��"�����`�����j����� �����+�����>�����%��������%��!���=�����_�����n��!���v������������������������������������� ���������� ���������3����������]�����M���W��c�����]��� �����g��\�����,���G��I���t��Y�����V�����9���o��^�����P�����B���Y��'�����L�����"��������4��%���O��5���u��?�����E��������1��`���D������������V�����!���#��U���E������������'���������� ����������B�����Q���_��N�����d���������e�����w��B�����U�����\���& ��-��� ��Y��� ��S��� !��U���_!�����!��7���5"�����m"�� ���"�����"��)���"�����"�����"�����"�� ���"��u�� #��-���$����$�����8&��?���P&�� ���&�����&�����2'��-���L'��P���z'��t���'�����@(��,���(��V���)�����k)��J��� *��3���T*��<���*�����*�� ���*��3���*�����"+��-���)+�����W+�� ���k+�����w+��(���+��7���+��*���+��1���,�����Q,�����&���1���J������[���"�������������������L���5���\����������N���?������P���)���<���$���'���!��� �������-���+���U������I���=���(����������O���*���:���@���������A������������������������������������S���%������� ���4�������M�������G�����������X���9���7����������/��������������������B���Y���V�������>���#����������C�������Z������T���8���D���;���3���2���E��� ��� ������F����������� �������Q���W���R���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.2 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-12-09 20:12+0200 Last-Translator: Serhiy Lysovenko <lisovenko.s[at]gmail[dot]com> Language-Team: Ukrainian <linux.org.ua> Language: uk MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1; � Налагоджувальні параметри � Параметри: � Передача повідомлень процесу Openbox, що виконується � Будь-ласка, повідомляйте про помилки на %s � --config-file ФАЙЛ Вказати шлях до конфігураційного файлу � --debug Показувати інформацію налагоджування � --debug-focus Показувати відлагоджувальний вивід для керування фокусом � --debug-xinerama Розбити екран на фальшиві екрани xinerama � --exit Вийти з Openbox � --help Показати цю довідку і вийти � --reconfigure Перезавантажити конфігурацію Openbox'у � --replace Замінити запущений менеджер вікон � --restart Перезапустити Openbox � --sm-disable Вимкнути з'єднання з менеджером сеансу � --sync Запустити в синхронному режимі � --vesrion Показати версію і вийти �%s потребує аргументу �На дисплеї %d вже запущений менеджер вікон�На всіх стільницях�Під вікнами (_B)�Над усіма вікнами (_T)�Ви дійсно хочете вийти з Openbox?�Ви дійсно бажаєте завершити сеанс?�Спроба доступу до неіснуючого меню "%s"�Скасувати�Не можу встановити модифікатори локалі для X-сервера�Меню клієнта�Закрити�Конфлікт прив'язки клавіш у файлі конфігурації�Авторські права (c)�Не можу запустити менеджера вікон на дисплеї %d�Стільниці�Від'єднати�Примусове завершення�Виконати�Вихід�Вийти з Openbox�Не вдалося конвертувати шлях "%s" з utf8�Не вдалося виконати команду для pipe-меню "%s": %s�Не вдалося ініцаілізувати бібліотеку obrender�Не вдалося відкрити дисплей зі змінної середовища DISPLAY�Перейти...�Згорнути (_N)�Здійснено запит на неіснуючу дію "%s".�Некоректна клавіша "%s" в прив'язці клавіш мишки�Некоректна кнопка "%s" вказана у файлі конфігурації�Некоректний аргумент "%s" �Некоректний контекст "%s" в прив'язці клавіш мишки�Некоректний код клавіші "%s" у прив'язці клавіш�Некоректна назва клавіші "%s" у прив'язці клавіш�Некоректна назва модифікатору "%s" у прив'язці клавіш клавіатури/мишки�Некоректний вивід з pipe-меню "%s"�Знищення...�Вийти�Розгорнути (_X)�Керування стільницями�Більше...�Ні�Не відповідає�Гаразд�Виявлено одну або більше синтаксичних помилок XML під час сканування конфігураційних файлів Openbox. Щоб дізнатись більше - перегляньте stdout. Остання помічена помилка була в файлі "%s", стрічка %d, повідомлення: %s�синтаксична помилка Openbox�Openbox сконфігуровано на %d дисплеїв, але в поточній сесії використовується %d. Перевищення конфігурації Openbox.�Openbox сконфігуровано на %d дисплеїв, але в поточній сесії використовується %d. Перевищення конфігурації Openbox.�Відновити (_E)�Потрібної кнопки "%s" нема на екрані�Змінити розмір (_Z)�При перезавантаженні не вдалося виконати новий виконуваний файл "%s": %s�Виконується %s�Синтакс: openbox [параметри] �Менеджер вікон на дисплеї %d не завершається�Вікно "%s" не відповідає. Чи бажаєте його від'єднати від X сервера?�Схоже, вікно "%s" не відповідає. Чи бажаєте примусово завершити програму, пославши сигнал "%s"?�Перемкнути декорацію (_D)�Не вдалося перейти до домашнього каталогу "%s": %s�Не вдалося знайти коректний файл конфігурації, використовую стандартні налаштування�Не вдалося знайти коректний файл меню "%s"�Не вдалося завантажити тему�Не вдалося створити каталог '%s': %s�Неназване вікно�Вікна�X-сервер не підтримує локалі�Так�Додати нову стільницю (_A)�Закрити (_C)�Шар (_L)�Перемістити (_M)�Звичайне положення (_N)�Видалити останню стільницю (_R)�Скрутити/Розкрутити (_R)�Відправити на стільницю (_S)�стільниця %i��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/vi.gmo�����������������������������������������������������������������������������0000644�0001753�0000144�00000022323�12544731074�011664� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������\������������������������ �����1��������+��A���F��/�����B�����C�����#���? ��1���c ��5��� ��C��� ��&��� ��@���6 ��.���w ��3��� ����� ��0��� �� ���$ �����1 �����C ��&���R ��!���y ��3��� ����� ��-��� �� ��� ����� ��(��� �� ���? ��7���M ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���E �� ��� ����� ��5��� ��$��� ��,��� ��#���$��%���H��$���n��$�����.�����"����� ��� ������� ��������'�����7�����?�����B�����Q�����T����������#�������0��������8��1���@�� ���r�����}��"�����`�����j����� �����+�����>�����%��������%��!���=�����_�����n��!���v������������������������������������� ���������� �������������������0�����&�����H��� ��9���V��Y�����A�����%���,��>���R��?�����Z�����1���,��B���^��<�����H�����(���'��L���P�����������������!����� ��� ��<���-�� ���j��0���t������������3����������Y��������`�����r�����{�� ���������������*�����>�����*�����(���C�����l�������G�����2�����#��� �����1��4���P��,�����-�����C�����5���$�����Z�����j�����q������� ��������������� ������������������� ��� ��3��� �����!��A���/!�����q!��$���!��G���!��Z���!��p���H"�����"��.���"��E���#��5���G#�����}#��%���#�����#�� ���#��4���#�����$�����$�����>$�����F$�� ���M$�����[$�����l$�����$�����$�����$�����&���1���J������[���"�������������������L���5���\����������N���?������P���)���<���$���'���!��� �������-���+���U������I���=���(����������O���*���:���@���������A������������������������������������S���%������� ���4�������M�������G�����������X���9���7����������/��������������������B���Y���V�������>���#����������C�������Z������T���8���D���;���3���2���E��� ��� ������F����������� �������Q���W���R���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-03-11 02:07+0100 Last-Translator: Quan Tran <qeed.quan@gmail.com> Language-Team: None Language: vi MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1; � Debugging chọn lựa: � Chọn lựa: � Đưa thông báo cho chương trình Openbox: � Làm ơn báo cáo bugs ở chỗ %s � --config-file FILE Chỉ chỗ đường cho tài liệu để dùng � --debug Trưng bày debugging đoàn chữ � --debug-focus Trưng bày debugging đoàn chữ cho điều khiển tập trung � --debug-xinerama Tách trưng bày vào giả xinerama màn � --exit Đi ra Openbox � --help Trưng bày giúp đỡ này và đi ra � --reconfigure Bắt đầu lại Openbox's tài liệu � --replace Thay thế chương trình quản lý cửa sổ cho đến openbox � --restart Bắt đầu lại Openbox � --sm-disable Tắt liên lạc đến session quản lý � --sync Chạy trong cách thức synchronous � --version Trưng bày số của chương trình và đi ra �%s cần chọn lựa một tài liệu �Chương trình quản lý cửa sổ khác đang chạy trên màn hình %d�Tất cả chỗ làm việc�Luôn luôn ở _dưới�Luôn luôn ở _trên�Có chắc chắn đi ra Openbox?�Có chắc chắn đi ra không?�Thử mở thực đơn "%s" nhưng mà cái đó không có�Bãi bỏ�Không thể dùng locale cho chương trình X.�Khách thực đơn�Đóng�Xung đột với chữ trói ở trong hình thể�Bản quyền (c)�Không thể lấy được chương trình quản lý cửa sổ ở trên màn hình %d�Chỗ làm việc�Rời ra�Giết Process�Hành động�Đi ra�Đi ra Openbox�Không thể chuyển chỗ "%s" từ utf8�Không có thể chạy lệnh cho ống-thực đơn "%s": %s�Không mở được thư viện obrender.�Không mở hình từ DISPLAY được.�Đi đến chỗ đó�Biến _xuống�Hành động "%s" làm không được. Hành động đó không có.�Vô hiệu nút "%s" ở trong máy chuột đặt�Sai nút "%s" ở trong hình thể�Mệnh lệnh viết sai "%s" �Vô hiệu văn cảnh "%s" ở trong chuột đặt�Vô hiệu key mã "%s" ở chỗ key đặt�Vô hiệu key tên "%s" ở chỗ key đặt�Vô hiệu Modifier key "%s" ở chỗ máy keyboard/chuột đặt�Vô hiệu sản xuất của ống-thực đơn "%s"�Đang giết...�Đi ra�Biến _lớn nhất�Quản lý chỗ làm việc�Thêm nữa�Không�Không phản ứng�Đồng ý�Một hay là trên một XML danh từ không đúng tìm thấy ở trong Openbox tài liệu. Coi stdout cho biết thêm. Cai sai lầm cuối cùng ở trong Openbox tài liệu "%s" ở hàng %d với lời: %s�Openbox danh từ không đúng�Openbox đặt cho %d chỗ làm việc, nhưng mà session hiện đại có %d. Lật đổ openbox tài liệu cho cái mới.�Openbox đặt cho %d chỗ làm việc, nhưng mà session hiện đại có %d. Lật đổ openbox tài liệu cho cái mới.�_Hoàn lại�Yêu cầu key "%s" không có ở chỗ màn hình�Làm _nhỏ hơn/lớn hơn�Bắt đầu lại hỏng mở được executable mới "%s": %s�Đan Chạy %s�Cách dùng: openbox [chọn lựa] �Chương trình quản lý cửa sổ trên màn hình %d không đi ra�Cái cửa sổ "%s" không phản ứng được. Có muốn rời nó ra X server không�Cái cửa sổ "%s" không phản ứng được. Có muốn bắt nó đi ra bằng gửi đi %s tính hiệu?�_Trang/Không Trang trí�Không thể đổi đến chỗ nhà "%s": %s�Không thể tìm ra hình thể, sẽ dùng bắt đầu hình thể�Không có thể tìm vững chắc thực đơn "%s"�Không thể đọc theme.�Không thể chế directory '%s': %s�Cửa sổ không tên�Cửa sổ�Chương trình X không có locale cho tiếng nay.�Được�_Cộng thêm chỗ làm việc�Đón_g�Lớ_p�Chu_yển đi�_Bình thường�_Bỏ lát chỗ làm việc�_Cuốn lên/xuống�Gửi đến chỗ làm _việc�chỗ làm việc %i��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/zh_TW.gmo��������������������������������������������������������������������������0000644�0001753�0000144�00000020610�12544731074�012276� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������\������������������������ �����1��������+��A���F��/�����B�����C�����#���? ��1���c ��5��� ��C��� ��&��� ��@���6 ��.���w ��3��� ����� ��0��� �� ���$ �����1 �����C ��&���R ��!���y ��3��� ����� ��-��� �� ��� ����� ��(��� �� ���? ��7���M ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���E �� ��� ����� ��5��� ��$��� ��,��� ��#���$��%���H��$���n��$�����.�����"����� ��� ������� ��������'�����7�����?�����B�����Q�����T����������#�������0��������8��1���@�� ���r�����}��"�����`�����j����� �����+�����>�����%��������%��!���=�����_�����n��!���v������������������������������������� ���������� �������������� �����/����������<�����)���L��8���v��E�����%�����2�����2���N��;�����+�����A�����/���+��/���[�������.����� ����� ����� ���������������,���1�����^��3���e������������$����� �����+�����������������������,�����3�����:��&���I��1���p��(�����9���������� �����8���#��&���\��,�����!�����)�����&�����&���#��3���J��&���~������������ ����� ����� ���������� ������������������������� ���L��/���W�������=���������������+�����R���-��[����������%�����E��� ��)���` ����� ����� ����� ����� ����� ����� ����� �� ���!�� ���!�� ���%!�� ���0!�����;!�����R!�����j!�� ���~!�����&���1���J������[���"�������������������L���5���\����������N���?������P���)���<���$���'���!��� �������-���+���U������I���=���(����������O���*���:���@���������A������������������������������������S���%������� ���4�������M�������G�����������X���9���7����������/��������������������B���Y���V�������>���#����������C�������Z������T���8���D���;���3���2���E��� ��� ������F����������� �������Q���W���R���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-03-06 01:01+0800 Last-Translator: 洪任諭 <pcman.tw@gmail.com> Language-Team: Chinese (traditional) <zh-l10n@linux.org.tw> Language: zh_TW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; � 偵錯選項: � 選項: � 傳遞訊息到執行中的 Openbox 實體: � 請向 %s 報告錯誤 � --config-file <檔案> 指定要使用的設定檔路徑 � --debug 顯示偵錯輸出 � --debug-focus 顯示焦點處理的偵錯輸出 � --debug-xinerama 分割顯示以進入假造的 xinerama 螢幕 � --exit 結束 Openbox � --help 顯示此說明然後離開 � --reconfigure 重新載入 Openbox 配置 � --replace 替換目前執行的視窗管理員 � --restart 重新啟動 Openbox � --sm-disable 停用與執行階段管理程式的連結 � --sync 在同步模式中運行 � --version 顯示版本然後離開 �%s 需要一個參數 �螢幕 %d 中已經有視窗管理員在運行�所有桌面�最下層(_B)�最上層(_T)�你確定要離開 Openbox?�你確定要登出嗎?�試圖存取選單「%s」但是它不存在�取消�無法設定用於 X 伺服器的語區修飾項。�客戶端選單�關閉�與配置檔中的按鍵組合衝突�著作權 (c)�無法於螢幕 %d 獲選為視窗管理員�桌面�斷線�結束 Process�執行�離開�離開 Openbox�轉換路徑「%s」自 utf8 時失敗�執行命令於管線選單「%s」時失敗:%s�初始化 obrender 函式庫時失敗。�開啟依 DISPLAY 環境變數所指的顯示時失敗。�到那裏去…�最小化(_N)�要求的動作「%s」無效。無此類動作存在。�與滑鼠組合的按鈕「%s」無效�在配置檔中指定的按鈕「%s」無效�無效的命令列引數「%s」 �與滑鼠組合的上下文「%s」無效�與按鍵組合的鍵碼「%s」無效�與按鍵組合的鍵名「%s」無效�與鍵盤/滑鼠組合的輔助按鍵「%s」無效�從管線選單「%s」的輸出無效�正在中止...�登出�最大化(_X)�管理桌面�更多…�否�沒有回應�確定�解析 Openbox 設定檔 XML 語法時發現一個或多個錯誤。 查看 stdout 以獲得更多資訊。 最後一個發現的錯誤在檔案 "%s" 第 %d 行。訊息:%s�Openbox 語法錯誤�Openbox 原先被設定為使用 %d 個桌面,但目前的作業階段有其他程式變更設定為 %d 個,因此忽略 Openbox 的設定�還原(_E)�要求的按鍵「%s」不存在於畫面之中�調整大小(_Z)�重新啟動以執行新的可執行檔「%s」時失敗:%s�正在運行 %s�語法:openbox [選項] �螢幕 %d 中的視窗管理員並未離開�視窗「%s」似乎已經停止回應。 你想從 X 伺服器將它斷線嗎?�視窗「%s」似乎已經停止回應。 你想送出 "%s" 訊息強制結束程式嗎?�開/關視窗裝飾(_D)�無法變更到主目錄「%s」:%s�無法找到有效的配置檔案,而使用某些簡單的預設值�無法找到有效的選單檔案「%s」�無法載入佈景主題。�無法製作目錄'%s':%s�未命名視窗�視窗�X 伺服器不支援語區。�是�加入新桌面(_A)�關閉(_C)�層次(_L)�移動(_M)�一般(_N)�移除尾端桌面(_R)�向上/向下捲動(_R)�傳送到桌面(_S)�桌面 %i�������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/zh_CN.gmo��������������������������������������������������������������������������0000644�0001753�0000144�00000020335�12544731074�012250� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000����������������������������������������������������������������������������������������������������������������������������������������������������������������������������\������������������������ �����1��������+��A���F��/�����B�����C�����#���? ��1���c ��5��� ��C��� ��&��� ��@���6 ��.���w ��3��� ����� ��0��� �� ���$ �����1 �����C ��&���R ��!���y ��3��� ����� ��-��� �� ��� ����� ��(��� �� ���? ��7���M ����� �� ��� �� ��� ����� ����� �� ��� ��)��� ��0��� ��*��� ��A���E �� ��� ����� ��5��� ��$��� ��,��� ��#���$��%���H��$���n��$�����.�����"����� ��� ������� ��������'�����7�����?�����B�����Q�����T����������#�������0��������8��1���@�� ���r�����}��"�����`�����j����� �����+�����>�����%��������%��!���=�����_�����n��!���v������������������������������������� ���������� �������������� �����/����������2�����(���2��8���[��B�����%�����5�����5���3��;���i��+�����5�����/�����/���7�����g��*���~�� �������������������������,��������2��+���9�����e�����u��!���|�������+���������� ����� ������������������ ��$�����.���>�� ���m��;����� ����� �����3�����#�����*���=�����h��&�����&�����#�����"�����!����� ���>�����K�� ���R�� ���`�� ���m�����w�� ���{���������������(�����=�� �����*��������#��=���4�� ���r�����|��(�����E�����F��������L��!���]��B�����&������������������ �����+ �����2 �����O �����S �� ���g �����r �� ���z �� ��� ����� ����� ����� �� ��� �����&���1���J������[���"�������������������L���5���\����������N���?������P���)���<���$���'���!��� �������-���+���U������I���=���(����������O���*���:���@���������A������������������������������������S���%������� ���4�������M�������G�����������X���9���7����������/��������������������B���Y���V�������>���#����������C�������Z������T���8���D���;���3���2���E��� ��� ������F����������� �������Q���W���R���K������0���,������������������ ����������������.�������H��������������������6�������� Debugging options: � Options: � Passing messages to a running Openbox instance: � Please report bugs at %s � --config-file FILE Specify the path to the config file to use � --debug Display debugging output � --debug-focus Display debugging output for focus handling � --debug-xinerama Split the display into fake xinerama screens � --exit Exit Openbox � --help Display this help and exit � --reconfigure Reload Openbox's configuration � --replace Replace the currently running window manager � --restart Restart Openbox � --sm-disable Disable connection to the session manager � --sync Run in synchronous mode � --version Display the version and exit �%s requires an argument �A window manager is already running on screen %d�All desktops�Always on _bottom�Always on _top�Are you sure you want to exit Openbox?�Are you sure you want to log out?�Attempted to access menu "%s" but it does not exist�Cancel�Cannot set locale modifiers for the X server.�Client menu�Close�Conflict with key binding in config file�Copyright (c)�Could not acquire window manager selection on screen %d�Desktops�Disconnect�End Process�Execute�Exit�Exit Openbox�Failed to convert the path "%s" from utf8�Failed to execute command for pipe-menu "%s": %s�Failed to initialize the obrender library.�Failed to open the display from the DISPLAY environment variable.�Go there...�Ico_nify�Invalid action "%s" requested. No such action exists.�Invalid button "%s" in mouse binding�Invalid button "%s" specified in config file�Invalid command line argument "%s" �Invalid context "%s" in mouse binding�Invalid key code "%s" in key binding�Invalid key name "%s" in key binding�Invalid modifier key "%s" in key/mouse binding�Invalid output from pipe-menu "%s"�Killing...�Log Out�Ma_ximize�Manage desktops�More...�No�Not Responding�OK�One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "%s" line %d, with message: %s�Openbox Syntax Error�Openbox is configured for %d desktop, but the current session has %d. Overriding the Openbox configuration.�Openbox is configured for %d desktops, but the current session has %d. Overriding the Openbox configuration.�R_estore�Requested key "%s" does not exist on the display�Resi_ze�Restart failed to execute new executable "%s": %s�Running %s�Syntax: openbox [options] �The WM on screen %d is not exiting�The window "%s" does not seem to be responding. Do you want to disconnect it from the X server?�The window "%s" does not seem to be responding. Do you want to force it to exit by sending the %s signal?�Un/_Decorate�Unable to change to home directory "%s": %s�Unable to find a valid config file, using some simple defaults�Unable to find a valid menu file "%s"�Unable to load a theme.�Unable to make directory '%s': %s�Unnamed Window�Windows�X server does not support locale.�Yes�_Add new desktop�_Close�_Layer�_Move�_Normal�_Remove last desktop�_Roll up/down�_Send to desktop�desktop %i�Project-Id-Version: Openbox 3.4.7 Report-Msgid-Bugs-To: http://bugzilla.icculus.org POT-Creation-Date: 2015-07-01 11:26+0200 PO-Revision-Date: 2008-03-11 22:07+0800 Last-Translator: zhou sf <sxzzsf@gmail.com> Language-Team: Simplified Chinese Language: zh_CN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=n == 1 ? 0 : 1; � 调试选项: � 选项: � 传递信息给运行中的 Openbox 实例: � 请向 %s 报告错误 � --config-file FILE 使用指定的配置文件 � --debug 显示调试输出 � --debug-focus 显示焦点处理的调试输出 � --debug-xinerama 分割显示到伪造的 xinerama 屏幕中 � --exit 退出 Openbox � --help 显示该帮助信息后退出 � --reconfigure 重新载入 Openbox 的配置 � --replace 替换当前运行的窗口管理器 � --restart 重新启动 Openbox � --sm-disable 禁止连接到会话管理器 � --sync 在同步模式中运行 � --version 显示版本号后退出 �%s 需要一个参数 �已经有窗口管理器运行在屏幕 %d�所有桌面�总在最底层(_B)�总在最上层(_T)�确认退出 Openbox?�确认注销吗?�尝试读取菜单 "%s",但是它不存在�取消�无法设置X服务器的locale修饰键。�客户端菜单�关闭�配置文件中的组合键冲突�版权所有 (c)�在屏幕 %d 无法被选为窗口管理器�桌面�断开连接�结束进程�执行�退出�退出 Openbox�从 utf8 转换路径 "%s" 时失败�执行管道菜单的命令 "%s" 时失败: %s�初始化obrender库时失败。�在打开DISPLAY环境变量所指定的X显示时失败。�跳转到...�最小化(_N)�请求的动作 "%s" 无效。该动作不存在。�鼠标绑定中的无效按键 "%s"�配置文件中指定的按钮 "%s" 无效�无效的命令行参数 "%s" �鼠标绑定中无效的上下文 "%s"�按盘绑定中无效的键盘码 "%s"�按键绑定中无效的键名 "%s"�键盘/鼠标的绑定 "%s" 无效�管道菜单 "%s" 的输出无效�杀死中...�注销�最大化(_X)�管理桌面�更多...�否�无响应�好�当解析 Openbox 配置文件时发现一个或多个 XML 语法错误. 更多信息查看 stdout. 最近的错误出现于文件 "%s" 中第 %d 行的: %s�Openbox 语法错误�Openbox 配置了 %d 个桌面, 当前会话拥有 %d 桌面. 覆盖 Openbox 的配置.�Openbox 配置了 %d 个桌面, 当前会话拥有 %d 桌面. 覆盖 Openbox 的配置.�还原(_E)�请求的按键 "%s" 在显示中不存在�调整大小(_Z)�重新启动以执行新的可执行文件 "%s" 时失败: %s�运行 %s�用法: openbox [选项] �屏幕 %d 的窗口管理器没有退出�窗口 "%s" 似乎失去了响应. 断开其与 X 服务器的连接?�窗口 "%s" 似乎失去了响应. 发送信号 %s 以强制退出吗?�去除装饰(_D)�无法切换到主目录 "%s": %s�无法找到有效的配置文件,使用一些简单的默认值�无法找到有效的菜单文件 "%s"�无法读入主题。�无法创建目录 '%s': %s�未命名窗口�窗口�X服务器不支持locale。�是�添加新桌面(_A)�关闭(_C)�层(_L)�移动(_M)�常规(_N)�移除最后一个桌面(_R)�卷起/放下(_R)�发送到桌面(_S)�桌面 %i����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/openbox.pot������������������������������������������������������������������������0000644�0001753�0000144�00000022453�12544731072�012742� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Dana Jansens # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" "POT-Creation-Date: 2015-07-01 11:26+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: openbox/actions.c:234 #, c-format msgid "Invalid action \"%s\" requested. No such action exists." msgstr "" #: openbox/actions/execute.c:245 msgid "No" msgstr "" #: openbox/actions/execute.c:246 msgid "Yes" msgstr "" #: openbox/actions/execute.c:250 msgid "Execute" msgstr "" #: openbox/actions/execute.c:259 #, c-format msgid "Failed to convert the path \"%s\" from utf8" msgstr "" #: openbox/actions/exit.c:69 openbox/client.c:3669 msgid "Cancel" msgstr "" #: openbox/actions/exit.c:70 msgid "Exit" msgstr "" #: openbox/actions/exit.c:74 msgid "Are you sure you want to log out?" msgstr "" #: openbox/actions/exit.c:75 msgid "Log Out" msgstr "" #: openbox/actions/exit.c:78 msgid "Are you sure you want to exit Openbox?" msgstr "" #: openbox/actions/exit.c:79 msgid "Exit Openbox" msgstr "" #: openbox/client.c:2115 msgid "Unnamed Window" msgstr "" #: openbox/client.c:2129 openbox/client.c:2160 msgid "Killing..." msgstr "" #: openbox/client.c:2131 openbox/client.c:2162 msgid "Not Responding" msgstr "" #: openbox/client.c:3658 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to force it " "to exit by sending the %s signal?" msgstr "" #: openbox/client.c:3660 msgid "End Process" msgstr "" #: openbox/client.c:3664 #, c-format msgid "" "The window \"%s\" does not seem to be responding. Do you want to disconnect " "it from the X server?" msgstr "" #: openbox/client.c:3666 msgid "Disconnect" msgstr "" #: openbox/client_list_combined_menu.c:93 openbox/client_list_menu.c:90 msgid "Go there..." msgstr "" #: openbox/client_list_combined_menu.c:100 msgid "Manage desktops" msgstr "" #: openbox/client_list_combined_menu.c:101 openbox/client_list_menu.c:166 msgid "_Add new desktop" msgstr "" #: openbox/client_list_combined_menu.c:102 openbox/client_list_menu.c:167 msgid "_Remove last desktop" msgstr "" #: openbox/client_list_combined_menu.c:157 msgid "Windows" msgstr "" #: openbox/client_list_menu.c:214 msgid "Desktops" msgstr "" #: openbox/client_menu.c:259 msgid "All desktops" msgstr "" #: openbox/client_menu.c:371 msgid "_Layer" msgstr "" #: openbox/client_menu.c:376 msgid "Always on _top" msgstr "" #: openbox/client_menu.c:377 msgid "_Normal" msgstr "" #: openbox/client_menu.c:378 msgid "Always on _bottom" msgstr "" #: openbox/client_menu.c:380 msgid "_Send to desktop" msgstr "" #: openbox/client_menu.c:384 msgid "Client menu" msgstr "" #: openbox/client_menu.c:394 msgid "R_estore" msgstr "" #: openbox/client_menu.c:398 msgid "_Move" msgstr "" #: openbox/client_menu.c:400 msgid "Resi_ze" msgstr "" #: openbox/client_menu.c:402 msgid "Ico_nify" msgstr "" #: openbox/client_menu.c:406 msgid "Ma_ximize" msgstr "" #: openbox/client_menu.c:410 msgid "_Roll up/down" msgstr "" #: openbox/client_menu.c:414 msgid "Un/_Decorate" msgstr "" #: openbox/client_menu.c:418 msgid "_Close" msgstr "" #: openbox/config.c:563 #, c-format msgid "Invalid context \"%s\" in mouse binding" msgstr "" #: openbox/config.c:931 #, c-format msgid "Invalid button \"%s\" specified in config file" msgstr "" #: openbox/config.c:956 msgid "" "Openbox was compiled without image loading support. Icons in menus will not " "be loaded." msgstr "" #: openbox/debug.c:57 #, c-format msgid "Unable to make directory '%s': %s" msgstr "" #: openbox/debug.c:195 openbox/openbox.c:377 msgid "Close" msgstr "" #: openbox/keyboard.c:161 msgid "Conflict with key binding in config file" msgstr "" #: openbox/menu.c:103 openbox/menu.c:115 #, c-format msgid "Unable to find a valid menu file \"%s\"" msgstr "" #: openbox/menu.c:168 #, c-format msgid "Failed to execute command for pipe-menu \"%s\": %s" msgstr "" #: openbox/menu.c:182 #, c-format msgid "Invalid output from pipe-menu \"%s\"" msgstr "" #: openbox/menu.c:195 #, c-format msgid "Attempted to access menu \"%s\" but it does not exist" msgstr "" #: openbox/menu.c:411 openbox/menu.c:412 msgid "More..." msgstr "" #: openbox/mouse.c:382 #, c-format msgid "Invalid button \"%s\" in mouse binding" msgstr "" #: openbox/openbox.c:137 #, c-format msgid "Unable to change to home directory \"%s\": %s" msgstr "" #: openbox/openbox.c:152 msgid "Failed to open the display from the DISPLAY environment variable." msgstr "" #: openbox/openbox.c:182 msgid "Failed to initialize the obrender library." msgstr "" #: openbox/openbox.c:193 msgid "X server does not support locale." msgstr "" #: openbox/openbox.c:195 msgid "Cannot set locale modifiers for the X server." msgstr "" #: openbox/openbox.c:254 msgid "Unable to find a valid config file, using some simple defaults" msgstr "" #: openbox/openbox.c:270 #, c-format msgid "" "One or more XML syntax errors were found while parsing the Openbox " "configuration files. See stdout for more information. The last error seen " "was in file \"%s\" line %d, with message: %s" msgstr "" #: openbox/openbox.c:295 msgid "Unable to load a theme." msgstr "" #: openbox/openbox.c:376 msgid "Openbox Syntax Error" msgstr "" #: openbox/openbox.c:442 #, c-format msgid "Restart failed to execute new executable \"%s\": %s" msgstr "" #: openbox/openbox.c:521 openbox/openbox.c:523 msgid "Copyright (c)" msgstr "" #: openbox/openbox.c:532 msgid "Syntax: openbox [options]\n" msgstr "" #: openbox/openbox.c:533 msgid "" "\n" "Options:\n" msgstr "" #: openbox/openbox.c:534 msgid " --help Display this help and exit\n" msgstr "" #: openbox/openbox.c:535 msgid " --version Display the version and exit\n" msgstr "" #: openbox/openbox.c:536 msgid " --replace Replace the currently running window manager\n" msgstr "" #. TRANSLATORS: if you translate "FILE" here, make sure to keep the "Specify..." #. aligned still, if you have to, make a new line with \n and 22 spaces. It's #. fine to leave it as FILE though. #: openbox/openbox.c:540 msgid " --config-file FILE Specify the path to the config file to use\n" msgstr "" #: openbox/openbox.c:541 msgid " --sm-disable Disable connection to the session manager\n" msgstr "" #: openbox/openbox.c:542 msgid "" "\n" "Passing messages to a running Openbox instance:\n" msgstr "" #: openbox/openbox.c:543 msgid " --reconfigure Reload Openbox's configuration\n" msgstr "" #: openbox/openbox.c:544 msgid " --restart Restart Openbox\n" msgstr "" #: openbox/openbox.c:545 msgid " --exit Exit Openbox\n" msgstr "" #: openbox/openbox.c:546 msgid "" "\n" "Debugging options:\n" msgstr "" #: openbox/openbox.c:547 msgid " --sync Run in synchronous mode\n" msgstr "" #: openbox/openbox.c:548 msgid " --startup CMD Run CMD after starting\n" msgstr "" #: openbox/openbox.c:549 msgid " --debug Display debugging output\n" msgstr "" #: openbox/openbox.c:550 msgid " --debug-focus Display debugging output for focus handling\n" msgstr "" #: openbox/openbox.c:551 msgid " --debug-session Display debugging output for session management\n" msgstr "" #: openbox/openbox.c:552 msgid " --debug-xinerama Split the display into fake xinerama screens\n" msgstr "" #: openbox/openbox.c:553 #, c-format msgid "" "\n" "Please report bugs at %s\n" msgstr "" #: openbox/openbox.c:636 openbox/openbox.c:670 #, c-format msgid "%s requires an argument\n" msgstr "" #: openbox/openbox.c:713 #, c-format msgid "Invalid command line argument \"%s\"\n" msgstr "" #: openbox/screen.c:106 openbox/screen.c:191 #, c-format msgid "A window manager is already running on screen %d" msgstr "" #: openbox/screen.c:127 #, c-format msgid "Could not acquire window manager selection on screen %d" msgstr "" #: openbox/screen.c:150 #, c-format msgid "The WM on screen %d is not exiting" msgstr "" #. TRANSLATORS: If you need to specify a different order of the #. arguments, you can use %1$d for the first one and %2$d for the #. second one. For example, #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..." #: openbox/screen.c:421 #, c-format msgid "" "Openbox is configured for %d desktop, but the current session has %d. " "Overriding the Openbox configuration." msgid_plural "" "Openbox is configured for %d desktops, but the current session has %d. " "Overriding the Openbox configuration." msgstr[0] "" msgstr[1] "" #: openbox/screen.c:1204 #, c-format msgid "desktop %i" msgstr "" #: openbox/startupnotify.c:241 #, c-format msgid "Running %s" msgstr "" #: openbox/translate.c:59 #, c-format msgid "Invalid modifier key \"%s\" in key/mouse binding" msgstr "" #: openbox/translate.c:138 #, c-format msgid "Invalid key code \"%s\" in key binding" msgstr "" #: openbox/translate.c:145 #, c-format msgid "Invalid key name \"%s\" in key binding" msgstr "" #: openbox/translate.c:151 #, c-format msgid "Requested key \"%s\" does not exist on the display" msgstr "" #: openbox/prompt.c:154 msgid "OK" msgstr "" ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/stamp-po���������������������������������������������������������������������������0000644�0001753�0000144�00000000012�12544731074�012214� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������timestamp ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������openbox-3.6.1/po/LINGUAS����������������������������������������������������������������������������0000644�0001753�0000144�00000000233�12426461150�011555� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������af ar be bn_IN ca cs da de en@quot en@boldquot es et eu gl_ES fi fr he hr hu ia it lv nl no ja lt pl pt pt_BR ro ru sk sr sr@latin sv tr uk vi zh_TW zh_CN �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������