├── Makefile.am ├── src ├── config.h ├── websites │ ├── trilulilu-audio.c │ ├── trilulilu-video.c │ ├── youtube-short.c │ ├── trilulilu-image.c │ ├── youtube.c │ ├── collegehumor.c │ ├── dailymotion.c │ ├── vimeo.c │ ├── Makefile.am │ ├── metacafe.c │ ├── myspace-video.c │ └── Makefile.in ├── websites.h ├── Makefile.am ├── videoframes.h ├── websites.c ├── embeddedvideo.c ├── videoframes.c └── Makefile.in ├── screenshots ├── vimeo.png ├── youtube.png ├── trilulilu.png ├── configuration.png ├── vimeo-small.png ├── youtube-small.png ├── trilulilu-small.png └── configuration-small.png ├── description-pak ├── configure.ac ├── FAQ.md ├── INSTALL.md ├── README.md ├── compile ├── missing ├── install-sh ├── depcomp ├── Makefile.in └── LICENSE.md /Makefile.am: -------------------------------------------------------------------------------- 1 | ACLOCAL_AMFLAGS = -I m4 2 | 3 | SUBDIRS = src 4 | -------------------------------------------------------------------------------- /src/config.h: -------------------------------------------------------------------------------- 1 | #define PLUGIN_ID "gtk-stefan_marius-embeddedvideo" 2 | -------------------------------------------------------------------------------- /screenshots/vimeo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefanistrate/pidgin-embeddedvideo/HEAD/screenshots/vimeo.png -------------------------------------------------------------------------------- /screenshots/youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefanistrate/pidgin-embeddedvideo/HEAD/screenshots/youtube.png -------------------------------------------------------------------------------- /screenshots/trilulilu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefanistrate/pidgin-embeddedvideo/HEAD/screenshots/trilulilu.png -------------------------------------------------------------------------------- /screenshots/configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefanistrate/pidgin-embeddedvideo/HEAD/screenshots/configuration.png -------------------------------------------------------------------------------- /screenshots/vimeo-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefanistrate/pidgin-embeddedvideo/HEAD/screenshots/vimeo-small.png -------------------------------------------------------------------------------- /screenshots/youtube-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefanistrate/pidgin-embeddedvideo/HEAD/screenshots/youtube-small.png -------------------------------------------------------------------------------- /screenshots/trilulilu-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefanistrate/pidgin-embeddedvideo/HEAD/screenshots/trilulilu-small.png -------------------------------------------------------------------------------- /screenshots/configuration-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stefanistrate/pidgin-embeddedvideo/HEAD/screenshots/configuration-small.png -------------------------------------------------------------------------------- /description-pak: -------------------------------------------------------------------------------- 1 | A plugin for Pidgin 2 | Pidgin Embedded Video is a GTK plugin for the popular instant messaging client \ 3 | Pidgin. This plugin provides you an easy way to watch videos from popular \ 4 | websites (CollegeHumor, Dailymotion, Metacafe, MySpace Video, Trilulilu, \ 5 | Vimeo and Youtube) directly into the conversation. Share links and enjoy! 6 | -------------------------------------------------------------------------------- /src/websites/trilulilu-audio.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo trilulilu_audio = { 4 | "trilulilu-audio", 5 | "^(?i)(https?://)?(\\w+\\.)?trilulilu\\.ro/(?muzica-.*)$", 6 | "", 7 | NULL 8 | }; 9 | 10 | -------------------------------------------------------------------------------- /src/websites/trilulilu-video.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo trilulilu_video = { 4 | "trilulilu-video", 5 | "^(?i)(https?://)?(\\w+\\.)?trilulilu\\.ro/(?video-.*)$", 6 | "", 7 | NULL 8 | }; 9 | 10 | -------------------------------------------------------------------------------- /src/websites/youtube-short.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo youtube_short = { 4 | "youtube-short", 5 | "^(?i)(https?://)?youtu\\.be/(?-i)(?[\\w\\d-]{11})(?i)([^\\w\\d-].*)?$", 6 | "", 7 | NULL 8 | }; 9 | -------------------------------------------------------------------------------- /src/websites/trilulilu-image.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo trilulilu_image = { 4 | "trilulilu-image", 5 | "^(?i)(https?://)?(\\w+\\.)?trilulilu\\.ro/(?imagini-.*)$", 6 | "", 7 | NULL 8 | }; 9 | 10 | -------------------------------------------------------------------------------- /src/websites/youtube.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo youtube = { 4 | "youtube", 5 | "^(?i)(https?://)?(\\w+\\.)?youtube\\.com/watch\\?(.*&)?v=(?-i)(?[\\w\\d-]{11})(?i)([^\\w\\d-].*)?$", 6 | "", 7 | NULL 8 | }; 9 | -------------------------------------------------------------------------------- /src/websites/collegehumor.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo collegehumor = { 4 | "collegehumor", 5 | "^(?i)(https?://)?(\\w+\\.)?collegehumor\\.com/video/(?\\d+)(\\D.*)?$", 6 | "", 7 | NULL 8 | }; 9 | -------------------------------------------------------------------------------- /src/websites/dailymotion.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo dailymotion = { 4 | "dailymotion", 5 | "^(?i)(https?://)?(\\w+\\.)?dailymotion\\.com/video/(?-i)(?[a-zA-Z0-9]+)(?i)([^a-z0-9].*)?$", 6 | "", 7 | NULL 8 | }; 9 | -------------------------------------------------------------------------------- /src/websites/vimeo.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo vimeo = { 4 | "vimeo", 5 | "^(?i)(https?://)?(\\w+\\.)?vimeo\\.com/(?\\d+)([^\\w\\d].*)?$", 6 | "", 7 | NULL 8 | }; 9 | -------------------------------------------------------------------------------- /src/websites.h: -------------------------------------------------------------------------------- 1 | #ifndef WEBSITES_H 2 | 3 | #define WEBSITES_H 4 | 5 | #include 6 | 7 | typedef struct _WebsiteInfo WebsiteInfo; 8 | 9 | struct _WebsiteInfo 10 | { 11 | char *id; 12 | char *regex; 13 | char *embed; 14 | int (*check)(gchar *const); 15 | }; 16 | 17 | void websites_init(); 18 | void websites_destroy(); 19 | WebsiteInfo * websites_find_match(gchar *const, gint); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /src/websites/Makefile.am: -------------------------------------------------------------------------------- 1 | PLUGIN_CFLAGS = @GLIB_CFLAGS@ @PIDGIN_CFLAGS@ @WEBKIT_CFLAGS@ @LIBCURL_CFLAGS@ 2 | 3 | noinst_LTLIBRARIES = libwebsites.la 4 | libwebsites_la_SOURCES = \ 5 | collegehumor.c \ 6 | dailymotion.c \ 7 | metacafe.c \ 8 | myspace-video.c \ 9 | trilulilu-audio.c \ 10 | trilulilu-image.c \ 11 | trilulilu-video.c \ 12 | vimeo.c \ 13 | youtube.c \ 14 | youtube-short.c 15 | libwebsites_la_CFLAGS = $(PLUGIN_CFLAGS) -I.. 16 | 17 | -------------------------------------------------------------------------------- /src/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = websites 2 | 3 | PLUGIN_CFLAGS = @GLIB_CFLAGS@ @PIDGIN_CFLAGS@ @WEBKIT_CFLAGS@ @LIBCURL_CFLAGS@ 4 | PLUGIN_LIBS = @GLIB_LIBS@ @PIDGIN_LIBS@ @WEBKIT_LIBS@ @LIBCURL_LIBS@ 5 | 6 | plugindir = @PLUGINDIR@ 7 | plugin_LTLIBRARIES = embeddedvideo.la 8 | embeddedvideo_la_SOURCES = \ 9 | embeddedvideo.c \ 10 | videoframes.c \ 11 | websites.c 12 | embeddedvideo_la_CFLAGS = $(PLUGIN_CFLAGS) 13 | embeddedvideo_la_LIBADD = websites/libwebsites.la 14 | embeddedvideo_la_LDFLAGS = $(PLUGIN_LIBS) -module -avoid-version -shared 15 | 16 | -------------------------------------------------------------------------------- /src/websites/metacafe.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo metacafe = { 4 | "metacafe", 5 | "^(?i)(https?://)?(\\w+\\.)?metacafe\\.com/watch/(?-i)(?[\\w\\d-]+)/(?[\\w\\d-]+)(?i)([^\\w\\d-].*)?$", 6 | "", 7 | NULL 8 | }; 9 | -------------------------------------------------------------------------------- /src/websites/myspace-video.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | WebsiteInfo myspace_video = { 4 | "myspace-video", 5 | "^(?i)(https?://)?(\\w+\\.)?myspace\\.com/video/.*/(?\\d+)([^\\w\\d][^/]*)?$", 6 | "" 7 | "" 8 | "" 9 | "" 10 | "" 11 | "", 12 | NULL 13 | }; 14 | -------------------------------------------------------------------------------- /src/videoframes.h: -------------------------------------------------------------------------------- 1 | #ifndef VIDEOFRAMES_H 2 | 3 | #define VIDEOFRAMES_H 4 | 5 | #include 6 | #include 7 | 8 | #include 9 | 10 | #include "websites.h" 11 | 12 | typedef struct _ButtonInfo ButtonInfo; 13 | 14 | struct _ButtonInfo 15 | { 16 | GtkIMHtml *imhtml; 17 | GtkTextMark *mark; 18 | WebsiteInfo *website; 19 | GString *url; 20 | gboolean has_newline; 21 | }; 22 | 23 | ButtonInfo * button_info_new(GtkIMHtml *, GtkTextIter *, 24 | WebsiteInfo *, gchar *, gint); 25 | void button_info_free(ButtonInfo *); 26 | 27 | void videoframes_init(); 28 | void videoframes_destroy(); 29 | GtkWidget * videoframes_insert_new_button(GtkIMHtml *, GtkTextIter *, 30 | WebsiteInfo *, gchar *, gint); 31 | void videoframes_remove_button(GtkWidget *); 32 | void videoframes_toggle_button(GtkWidget *); 33 | gchar * videoframes_generate_page(WebsiteInfo *, GString *); 34 | void videoframes_text_buffer_check_newline(gpointer, gpointer, gpointer); 35 | void videoframes_text_buffer_end_user_action_cb(GtkTextBuffer *, gpointer); 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /configure.ac: -------------------------------------------------------------------------------- 1 | # Process this file with autoconf to produce a configure script. 2 | AC_PREREQ([2.50]) 3 | 4 | AC_INIT([pidgin-embeddedvideo], [1.2]) 5 | AC_CANONICAL_SYSTEM 6 | AC_CONFIG_MACRO_DIR([m4]) 7 | 8 | AM_INIT_AUTOMAKE 9 | 10 | AC_CONFIG_SRCDIR([src/embeddedvideo.c]) 11 | 12 | # Additional argument for configure. 13 | AC_ARG_VAR(PLUGINDIR, [the installation directory for the plugin]) 14 | 15 | # Check for programs. 16 | AC_PROG_CC 17 | AM_PROG_CC_C_O 18 | CFLAGS="-g -Wall -O2" 19 | AC_DISABLE_STATIC 20 | AC_PROG_LIBTOOL 21 | LIBTOOL="$LIBTOOL --silent" 22 | AC_PROG_INSTALL 23 | PKG_PROG_PKG_CONFIG 24 | 25 | # Check for GLib 2.0. 26 | PKG_CHECK_MODULES(GLIB, glib-2.0) 27 | AC_SUBST(GLIB_CFLAGS) 28 | AC_SUBST(GLIB_LIBS) 29 | 30 | # Check for Pidgin. 31 | PKG_CHECK_MODULES(PIDGIN, pidgin purple) 32 | 33 | if test "$PLUGINDIR" = "" 34 | then 35 | if test "$prefix" = "NONE" 36 | then 37 | PLUGINDIR="`pkg-config --variable=libdir pidgin`/pidgin" 38 | else 39 | PLUGINDIR="$prefix/lib/pidgin" 40 | fi 41 | fi 42 | 43 | AC_SUBST(PIDGIN_CFLAGS) 44 | AC_SUBST(PIDGIN_LIBS) 45 | 46 | # Check for WebKit. 47 | PKG_CHECK_MODULES(WEBKIT, [webkit-1.0 >= 1.1.12]) 48 | AC_SUBST(WEBKIT_CFLAGS) 49 | AC_SUBST(WEBKIT_LIBS) 50 | 51 | # Check for libcurl. 52 | PKG_CHECK_MODULES(LIBCURL, libcurl) 53 | AC_SUBST(LIBCURL_CFLAGS) 54 | AC_SUBST(LIBCURL_LIBS) 55 | 56 | # Finish up. 57 | AC_CONFIG_FILES([Makefile 58 | src/Makefile 59 | src/websites/Makefile]) 60 | AC_OUTPUT 61 | -------------------------------------------------------------------------------- /FAQ.md: -------------------------------------------------------------------------------- 1 | # Frequently Asked Questions 2 | 3 | ## I like it! What's the story? 4 | 5 | Pidgin Embedded Video is the first plugin we have written. It all began in the summer of 2009 when the idea for this plugin had caught our fancy. We developed it in our spare time. Furthermore, as we read some documentation, we realized that it isn't so hard to do it. We like to work on it and as far as there are new improvements to be done, we will dedicate enough time. We hope you will enjoy it! 6 | 7 | We are open to new ideas and ready to get things better! Whether you have an idea of improving this project or something new and you think we can help you, feel free to contact us! 8 | 9 | ## What magic libraries does your plugin use to play the video? 10 | 11 | There is nothing totally unusual. We are using [WebKit/GTK+](http://live.gnome.org/WebKitGtk). We like it because there is an increasing interest in its development. 12 | 13 | ## Why doesn't your plugin detect a video link I've just received? 14 | 15 | Did you check if the site is currently supported? If it is, we could have a bug in our implementation. Please tell us about it by opening [a new issue](https://github.com/stefanistrate/pidgin-embeddedvideo/issues). 16 | 17 | ## Why am I seeing a big white space instead of a video? 18 | 19 | The most common cause of this is that you don't have Adobe Flash Player installed. But if you have it, we could have a bug. Tell us about it. 20 | 21 | ## How do I set the videos to be hidden by default? 22 | 23 | Go to the [_"Configure Plugin"_](/screenshots/configuration.png) menu and deselect the _"Show every video instantly"_ option. Thereby, videos will be hidden by default. You can watch them by clicking on the toggle button (the little arrow). 24 | 25 | ## I want support for a new video site. What can I do? 26 | 27 | If you want a new video site which is not supported, please feel free to ask for it by opening [a new issue](https://github.com/stefanistrate/pidgin-embeddedvideo/issues). 28 | -------------------------------------------------------------------------------- /src/websites.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include "websites.h" 3 | 4 | #include 5 | 6 | #include 7 | 8 | static GList *list; 9 | 10 | void 11 | websites_init() 12 | { 13 | /* Extern declarations. */ 14 | extern WebsiteInfo collegehumor, 15 | dailymotion, 16 | metacafe, 17 | myspace_video, 18 | trilulilu_audio, 19 | trilulilu_image, 20 | trilulilu_video, 21 | vimeo, 22 | youtube, 23 | youtube_short; 24 | 25 | /* Initialize the websites list. */ 26 | list = NULL; 27 | list = g_list_append(list, &collegehumor); 28 | list = g_list_append(list, &dailymotion); 29 | list = g_list_append(list, &metacafe); 30 | list = g_list_append(list, &myspace_video); 31 | list = g_list_append(list, &trilulilu_audio); 32 | list = g_list_append(list, &trilulilu_image); 33 | list = g_list_append(list, &trilulilu_video); 34 | list = g_list_append(list, &vimeo); 35 | list = g_list_append(list, &youtube); 36 | list = g_list_append(list, &youtube_short); 37 | } 38 | 39 | void 40 | websites_destroy() 41 | { 42 | /* Empty the websites list. */ 43 | g_list_free(list); 44 | } 45 | 46 | WebsiteInfo * 47 | websites_find_match(gchar *const text, gint length) 48 | { 49 | WebsiteInfo *ans = NULL; 50 | gchar *link = g_new0(gchar, length + 1); 51 | g_utf8_strncpy(link, text, length); 52 | 53 | /* Search for a match in the websites list. */ 54 | GList *w; 55 | for (w = list; w != NULL; w = w->next) { 56 | if (g_regex_match_simple(((WebsiteInfo *) w->data)->regex, link, 0, 0)) { 57 | if (((WebsiteInfo *) w->data)->check == NULL || 58 | (*((WebsiteInfo *) w->data)->check)(link)) { 59 | ans = (WebsiteInfo *) w->data; 60 | break; 61 | } 62 | } 63 | } 64 | 65 | g_free(link); 66 | 67 | return ans; 68 | } 69 | -------------------------------------------------------------------------------- /INSTALL.md: -------------------------------------------------------------------------------- 1 | # Installation Guide 2 | 3 | We have tried to keep it as simple as possible. So here it is! 4 | 5 | First of all, be sure that you have downloaded and installed [Pidgin](http://pidgin.im) and [Adobe Flash Player](http://get.adobe.com/flashplayer/). 6 | 7 | ## Installation from source code 8 | 9 | ### Requirements 10 | 11 | You will need these packages to be installed before compiling the plugin on your machine: 12 | 13 | * pidgin-dev 14 | * libglib2.0-dev 15 | * libcurl3-dev 16 | * libwebkit-dev >= 1.1.12 17 | 18 | On Ubuntu Karmic you may type the following in a terminal to install the dependencies... 19 | ``` 20 | sudo apt-get install pidgin-dev libglib2.0-dev libcurl3-dev libwebkit-dev 21 | ``` 22 | 23 | On other Ubuntu versions, if you don't see the right version of the libwebkit-dev package in the repositories, you can find it [here](https://launchpad.net/~webkit-team/+archive/ppa). This page will tell you how to install it on your machine in just a few steps: 24 | 25 | * Write in a terminal... 26 | ``` 27 | sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2D9A3C5B 28 | ``` 29 | * Open _System > Administration > Software Sources_. 30 | * Click on the _Third-Party Software_ tab. 31 | * Click on the _Add_ button. 32 | * Paste the line below and click on the _Add Source_ button. 33 | ``` 34 | deb http://ppa.launchpad.net/webkit-team/ppa/ubuntu YOUR_UBUNTU_VERSION main 35 | ``` 36 | where `YOUR_UBUNTU_VERSION` is `jaunty` for Jaunty (9.04), `intrepid` for Intrepid (8.10) or `hardy` for Hardy (8.04). Then click _Close_. 37 | * Open _System > Administration > Synaptic Package Manager_, press the _Reload_ button and get the latest version of the libwebkit-dev package. 38 | 39 | ### Compilation 40 | 41 | Extract the archive you have downloaded. The compilation should be easy like... 42 | 43 | ``` 44 | ./configure 45 | make 46 | make install 47 | ``` 48 | 49 | Restart Pidgin, activate Pidgin Embedded Video under the _"Plugins"_ menu and have fun! ;) 50 | 51 | As a side note, you can uninstall the plugin with... 52 | ``` 53 | make uninstall 54 | ``` 55 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pidgin Embedded Video 2 | 3 | _(Currently unmaintained due to lack of time.)_ 4 | 5 | Pidgin Embedded Video is a GTK plugin for the popular instant messaging client [Pidgin](http://pidgin.im/). The purpose of this plugin is to provide a faster way to watch videos while chatting with your friends. No more additional browser windows! It transforms a simple conversation into a much more attractive and interesting experience. Sharing links to videos and watching them was never such a pleasant activity in Pidgin. Take a quick look! 6 | 7 | [![Vimeo](/screenshots/vimeo-small.png)](/screenshots/vimeo.png) [![Youtube](/screenshots/youtube-small.png)](/screenshots/youtube.png) [![Trilulilu](/screenshots/trilulilu-small.png)](/screenshots/trilulilu.png) [![Configuration](/screenshots/configuration-small.png)](/screenshots/configuration.png) 8 | 9 | ## Features 10 | 11 | * The plugin automatically inserts the video into the conversation when an appropriate link is sent or received. 12 | * Every video has a toggle button which allows you to show or hide the video. 13 | * The default behaviour for a new video link is customizable from the [_"Configure Plugin"_](/screenshots/configuration.png) menu. You can choose whether to show the video instantly or to hide it by default. 14 | * Supported video sites are [CollegeHumor](http://www.collegehumor.com), [Dailymotion](http://www.dailymotion.com), [Metacafe](http://www.metacafe.com), [MySpace Video](http://vids.myspace.com), [Trilulilu](http://www.trilulilu.ro) (all the stuff: [audio](http://www.trilulilu.ro/audio), [images](http://www.trilulilu.ro/imagini) and [video](http://www.trilulilu.ro/video)), [Vimeo](http://www.vimeo.com) and [Youtube](http://www.youtube.com). 15 | * It works with the Ubuntu version of Pidgin. It should work on every Linux distribution as far as the [requirements](/INSTALL.md#requirements) are met. 16 | 17 | ## Upcoming Features 18 | 19 | We think a Windows version of this plugin would be great for many people too. We are trying to do this for some time but we faced some compilation problems. If you are enthusiastic about this project and you want to help us to move forward, feel free to contact us. 20 | 21 | ## How to install 22 | 23 | Download the latest release and follow the steps from the [Installation Guide](/INSTALL.md). 24 | 25 | ## Feedback 26 | 27 | Do you like this plugin? You find it useful or you don't like it at all? Feel free to tell us your impressions. Give us your advice, suggestions or ideas for improving this project. Don't hesitate to contact us. We are [Ștefan](mailto:stefan.istrate@gmail.com) and [Marius](mailto:laurentiu.stroe@gmail.com). 28 | 29 | Did you find any bug? Please report it by opening a new issue under the [Issues](https://github.com/stefanistrate/pidgin-embeddedvideo/issues) tab. Your observations could help many other people. 30 | 31 | Also, please note that we have a [F.A.Q. (Frequently Asked Questions)](/FAQ.md) for the most common questions. Take a look on it, maybe you will find the answer you need quicker than we write you back. 32 | -------------------------------------------------------------------------------- /compile: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Wrapper for compilers which do not understand `-c -o'. 3 | 4 | scriptversion=2005-05-14.22 5 | 6 | # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. 7 | # Written by Tom Tromey . 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation; either version 2, or (at your option) 12 | # any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program; if not, write to the Free Software 21 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | # As a special exception to the GNU General Public License, if you 24 | # distribute this file as part of a program that contains a 25 | # configuration script generated by Autoconf, you may include it under 26 | # the same distribution terms that you use for the rest of that program. 27 | 28 | # This file is maintained in Automake, please report 29 | # bugs to or send patches to 30 | # . 31 | 32 | case $1 in 33 | '') 34 | echo "$0: No command. Try \`$0 --help' for more information." 1>&2 35 | exit 1; 36 | ;; 37 | -h | --h*) 38 | cat <<\EOF 39 | Usage: compile [--help] [--version] PROGRAM [ARGS] 40 | 41 | Wrapper for compilers which do not understand `-c -o'. 42 | Remove `-o dest.o' from ARGS, run PROGRAM with the remaining 43 | arguments, and rename the output as expected. 44 | 45 | If you are trying to build a whole package this is not the 46 | right script to run: please start by reading the file `INSTALL'. 47 | 48 | Report bugs to . 49 | EOF 50 | exit $? 51 | ;; 52 | -v | --v*) 53 | echo "compile $scriptversion" 54 | exit $? 55 | ;; 56 | esac 57 | 58 | ofile= 59 | cfile= 60 | eat= 61 | 62 | for arg 63 | do 64 | if test -n "$eat"; then 65 | eat= 66 | else 67 | case $1 in 68 | -o) 69 | # configure might choose to run compile as `compile cc -o foo foo.c'. 70 | # So we strip `-o arg' only if arg is an object. 71 | eat=1 72 | case $2 in 73 | *.o | *.obj) 74 | ofile=$2 75 | ;; 76 | *) 77 | set x "$@" -o "$2" 78 | shift 79 | ;; 80 | esac 81 | ;; 82 | *.c) 83 | cfile=$1 84 | set x "$@" "$1" 85 | shift 86 | ;; 87 | *) 88 | set x "$@" "$1" 89 | shift 90 | ;; 91 | esac 92 | fi 93 | shift 94 | done 95 | 96 | if test -z "$ofile" || test -z "$cfile"; then 97 | # If no `-o' option was seen then we might have been invoked from a 98 | # pattern rule where we don't need one. That is ok -- this is a 99 | # normal compilation that the losing compiler can handle. If no 100 | # `.c' file was seen then we are probably linking. That is also 101 | # ok. 102 | exec "$@" 103 | fi 104 | 105 | # Name of file we expect compiler to create. 106 | cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` 107 | 108 | # Create the lock directory. 109 | # Note: use `[/.-]' here to ensure that we don't use the same name 110 | # that we are using for the .o file. Also, base the name on the expected 111 | # object file name, since that is what matters with a parallel build. 112 | lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d 113 | while true; do 114 | if mkdir "$lockdir" >/dev/null 2>&1; then 115 | break 116 | fi 117 | sleep 1 118 | done 119 | # FIXME: race condition here if user kills between mkdir and trap. 120 | trap "rmdir '$lockdir'; exit 1" 1 2 15 121 | 122 | # Run the compile. 123 | "$@" 124 | ret=$? 125 | 126 | if test -f "$cofile"; then 127 | mv "$cofile" "$ofile" 128 | elif test -f "${cofile}bj"; then 129 | mv "${cofile}bj" "$ofile" 130 | fi 131 | 132 | rmdir "$lockdir" 133 | exit $ret 134 | 135 | # Local Variables: 136 | # mode: shell-script 137 | # sh-indentation: 2 138 | # eval: (add-hook 'write-file-hooks 'time-stamp) 139 | # time-stamp-start: "scriptversion=" 140 | # time-stamp-format: "%:y-%02m-%02d.%02H" 141 | # time-stamp-end: "$" 142 | # End: 143 | -------------------------------------------------------------------------------- /src/embeddedvideo.c: -------------------------------------------------------------------------------- 1 | #define PURPLE_PLUGINS 2 | 3 | #include "config.h" 4 | #include "websites.h" 5 | #include "videoframes.h" 6 | 7 | #include 8 | 9 | /* Pidgin headers */ 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | static GHashTable *ht_buttons = NULL; /* */ 20 | static GHashTable *ht_signal_handlers_it = NULL; /* */ 21 | static GHashTable *ht_signal_handlers_eua = NULL; /* */ 22 | 23 | static void 24 | insert_text_cb(GtkTextBuffer *textbuffer, GtkTextIter *location, 25 | gchar *text, gint len, gpointer user_data) 26 | { 27 | GtkIMHtml *imhtml = GTK_IMHTML(user_data); 28 | g_assert(GTK_IS_IMHTML(imhtml)); 29 | 30 | if (imhtml->edit.link != NULL) { 31 | 32 | WebsiteInfo *info = websites_find_match(text, len); 33 | if (info == NULL) 34 | return; 35 | 36 | imhtml->edit.link = NULL; 37 | 38 | GtkWidget *button = videoframes_insert_new_button(imhtml, location, info, text, len); 39 | g_hash_table_insert(ht_buttons, button, imhtml); 40 | 41 | gtk_text_buffer_get_end_iter(imhtml->text_buffer, location); 42 | 43 | } 44 | } 45 | 46 | static void 47 | attach_to_conversation(gpointer data, gpointer user_data) 48 | { 49 | PurpleConversation *conv = (PurpleConversation *) data; 50 | PidginConversation *gtkconv = PIDGIN_CONVERSATION(conv); 51 | 52 | GtkIMHtml *imhtml = GTK_IMHTML(gtkconv->imhtml); 53 | g_assert(GTK_IS_IMHTML(imhtml)); 54 | 55 | gulong handler_id = g_signal_connect_after(G_OBJECT(imhtml->text_buffer), 56 | "insert-text", G_CALLBACK(insert_text_cb), imhtml); 57 | g_hash_table_insert(ht_signal_handlers_it, imhtml->text_buffer, (gpointer) handler_id); 58 | 59 | handler_id = g_signal_connect(G_OBJECT(imhtml->text_buffer), 60 | "end-user-action", G_CALLBACK(videoframes_text_buffer_end_user_action_cb), NULL); 61 | g_hash_table_insert(ht_signal_handlers_eua, imhtml->text_buffer, (gpointer) handler_id); 62 | } 63 | 64 | static void 65 | detach_from_conversation(gpointer data, gpointer user_data) 66 | { 67 | PurpleConversation *conv = (PurpleConversation *) data; 68 | PidginConversation *gtkconv = PIDGIN_CONVERSATION(conv); 69 | 70 | GtkIMHtml *imhtml = GTK_IMHTML(gtkconv->imhtml); 71 | g_assert(GTK_IS_IMHTML(imhtml)); 72 | 73 | gulong handler_id = (gulong) g_hash_table_lookup(ht_signal_handlers_it, 74 | imhtml->text_buffer); 75 | g_signal_handler_disconnect(imhtml->text_buffer, handler_id); 76 | g_hash_table_remove(ht_signal_handlers_it, imhtml->text_buffer); 77 | 78 | handler_id = (gulong) g_hash_table_lookup(ht_signal_handlers_eua, 79 | imhtml->text_buffer); 80 | g_signal_handler_disconnect(imhtml->text_buffer, handler_id); 81 | g_hash_table_remove(ht_signal_handlers_eua, imhtml->text_buffer); 82 | } 83 | 84 | static void 85 | conversation_created_cb(PurpleConversation *conv) 86 | { 87 | attach_to_conversation(conv, NULL); 88 | } 89 | 90 | static gboolean 91 | deleting_conversation_remove_button(gpointer key, gpointer value, 92 | gpointer user_data) 93 | { 94 | return (value == user_data) ? TRUE : FALSE; 95 | } 96 | 97 | static void 98 | deleting_conversation_cb(PurpleConversation *conv) 99 | { 100 | detach_from_conversation(conv, NULL); 101 | 102 | g_hash_table_foreach_remove(ht_buttons, deleting_conversation_remove_button, 103 | PIDGIN_CONVERSATION(conv)->imhtml); 104 | } 105 | 106 | static gboolean 107 | plugin_load(PurplePlugin *plugin) 108 | { 109 | /* Load websites rules. */ 110 | websites_init(); 111 | 112 | /* Do some more initializations. */ 113 | videoframes_init(); 114 | 115 | /* Create the hash table for buttons. */ 116 | ht_buttons = g_hash_table_new_full(g_direct_hash, g_direct_equal, 117 | (GDestroyNotify) videoframes_remove_button, NULL); 118 | 119 | /* Create the hash tables for signal handlers. */ 120 | ht_signal_handlers_it = g_hash_table_new(g_direct_hash, g_direct_equal); 121 | ht_signal_handlers_eua = g_hash_table_new(g_direct_hash, g_direct_equal); 122 | 123 | /* Attach to current conversations. */ 124 | g_list_foreach(purple_get_conversations(), attach_to_conversation, NULL); 125 | 126 | /* Connect signals for future conversations. */ 127 | void *conv_handle = purple_conversations_get_handle(); 128 | purple_signal_connect(conv_handle, "conversation-created", plugin, 129 | PURPLE_CALLBACK(conversation_created_cb), NULL); 130 | purple_signal_connect(conv_handle, "deleting-conversation", plugin, 131 | PURPLE_CALLBACK(deleting_conversation_cb), NULL); 132 | 133 | return TRUE; 134 | } 135 | 136 | static gboolean 137 | plugin_unload(PurplePlugin *plugin) 138 | { 139 | /* Disconnect signals for future conversations. */ 140 | void *conv_handle = purple_conversations_get_handle(); 141 | purple_signal_disconnect(conv_handle, "conversation-created", plugin, 142 | PURPLE_CALLBACK(conversation_created_cb)); 143 | purple_signal_disconnect(conv_handle, "deleting-conversation", plugin, 144 | PURPLE_CALLBACK(deleting_conversation_cb)); 145 | 146 | /* Detach from current conversations. */ 147 | g_list_foreach(purple_get_conversations(), detach_from_conversation, NULL); 148 | 149 | /* Destroy the hash tables for signal handlers. */ 150 | g_hash_table_destroy(ht_signal_handlers_it); 151 | g_hash_table_destroy(ht_signal_handlers_eua); 152 | 153 | /* Remove all the inserted buttons and destroy the hash table. 154 | Every button will automatically remove its video frame if it has one. */ 155 | g_hash_table_destroy(ht_buttons); 156 | 157 | /* Free up some resources. */ 158 | videoframes_destroy(); 159 | 160 | /* Unload websites rules. */ 161 | websites_destroy(); 162 | 163 | return TRUE; 164 | } 165 | 166 | static PurplePluginPrefFrame * 167 | get_plugin_pref_frame(PurplePlugin *plugin) 168 | { 169 | PurplePluginPrefFrame *frame; 170 | PurplePluginPref *ppref; 171 | 172 | frame = purple_plugin_pref_frame_new(); 173 | 174 | ppref = purple_plugin_pref_new_with_label("Appearance"); 175 | purple_plugin_pref_frame_add(frame, ppref); 176 | 177 | ppref = purple_plugin_pref_new_with_name_and_label( 178 | "/plugins/gtk/embeddedvideo/show-video", 179 | "Show every video instantly" 180 | ); 181 | purple_plugin_pref_frame_add(frame, ppref); 182 | 183 | return frame; 184 | } 185 | 186 | static PurplePluginUiInfo prefs_info = { 187 | get_plugin_pref_frame, 188 | 0, 189 | NULL, 190 | NULL, 191 | NULL, 192 | NULL, 193 | NULL 194 | }; 195 | 196 | static PurplePluginInfo info = { 197 | PURPLE_PLUGIN_MAGIC, 198 | PURPLE_MAJOR_VERSION, 199 | PURPLE_MINOR_VERSION, 200 | PURPLE_PLUGIN_STANDARD, 201 | PIDGIN_PLUGIN_TYPE, 202 | 0, 203 | NULL, 204 | PURPLE_PRIORITY_DEFAULT, 205 | 206 | PLUGIN_ID, 207 | "Pidgin Embedded Video", 208 | "1.2", 209 | "Watch videos directly into the conversation.", 210 | "This plugin provides you an easy way to watch videos from popular websites" 211 | " (CollegeHumor, Dailymotion, Metacafe, MySpace Video, Trilulilu," 212 | " Vimeo and Youtube) directly into the conversation. Send and receive" 213 | " links and the plugin will insert the video.", 214 | "Ștefan Istrate \n" 215 | "Marius Stroe ", 216 | "http://code.google.com/p/pidgin-embeddedvideo/", 217 | 218 | plugin_load, 219 | plugin_unload, 220 | NULL, 221 | 222 | NULL, 223 | NULL, 224 | &prefs_info, 225 | NULL, 226 | NULL, 227 | NULL, 228 | NULL, 229 | NULL 230 | }; 231 | 232 | static void 233 | init_plugin(PurplePlugin *plugin) 234 | { 235 | purple_prefs_add_none("/plugins/gtk/embeddedvideo"); 236 | purple_prefs_add_bool("/plugins/gtk/embeddedvideo/show-video", TRUE); 237 | } 238 | 239 | PURPLE_INIT_PLUGIN(embeddedvideo, init_plugin, info) 240 | -------------------------------------------------------------------------------- /missing: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Common stub for a few missing GNU programs while installing. 3 | 4 | scriptversion=2006-05-10.23 5 | 6 | # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 7 | # Free Software Foundation, Inc. 8 | # Originally by Fran,cois Pinard , 1996. 9 | 10 | # This program is free software; you can redistribute it and/or modify 11 | # it under the terms of the GNU General Public License as published by 12 | # the Free Software Foundation; either version 2, or (at your option) 13 | # any later version. 14 | 15 | # This program is distributed in the hope that it will be useful, 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | # GNU General Public License for more details. 19 | 20 | # You should have received a copy of the GNU General Public License 21 | # along with this program; if not, write to the Free Software 22 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 23 | # 02110-1301, USA. 24 | 25 | # As a special exception to the GNU General Public License, if you 26 | # distribute this file as part of a program that contains a 27 | # configuration script generated by Autoconf, you may include it under 28 | # the same distribution terms that you use for the rest of that program. 29 | 30 | if test $# -eq 0; then 31 | echo 1>&2 "Try \`$0 --help' for more information" 32 | exit 1 33 | fi 34 | 35 | run=: 36 | sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' 37 | sed_minuso='s/.* -o \([^ ]*\).*/\1/p' 38 | 39 | # In the cases where this matters, `missing' is being run in the 40 | # srcdir already. 41 | if test -f configure.ac; then 42 | configure_ac=configure.ac 43 | else 44 | configure_ac=configure.in 45 | fi 46 | 47 | msg="missing on your system" 48 | 49 | case $1 in 50 | --run) 51 | # Try to run requested program, and just exit if it succeeds. 52 | run= 53 | shift 54 | "$@" && exit 0 55 | # Exit code 63 means version mismatch. This often happens 56 | # when the user try to use an ancient version of a tool on 57 | # a file that requires a minimum version. In this case we 58 | # we should proceed has if the program had been absent, or 59 | # if --run hadn't been passed. 60 | if test $? = 63; then 61 | run=: 62 | msg="probably too old" 63 | fi 64 | ;; 65 | 66 | -h|--h|--he|--hel|--help) 67 | echo "\ 68 | $0 [OPTION]... PROGRAM [ARGUMENT]... 69 | 70 | Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an 71 | error status if there is no known handling for PROGRAM. 72 | 73 | Options: 74 | -h, --help display this help and exit 75 | -v, --version output version information and exit 76 | --run try to run the given command, and emulate it if it fails 77 | 78 | Supported PROGRAM values: 79 | aclocal touch file \`aclocal.m4' 80 | autoconf touch file \`configure' 81 | autoheader touch file \`config.h.in' 82 | autom4te touch the output file, or create a stub one 83 | automake touch all \`Makefile.in' files 84 | bison create \`y.tab.[ch]', if possible, from existing .[ch] 85 | flex create \`lex.yy.c', if possible, from existing .c 86 | help2man touch the output file 87 | lex create \`lex.yy.c', if possible, from existing .c 88 | makeinfo touch the output file 89 | tar try tar, gnutar, gtar, then tar without non-portable flags 90 | yacc create \`y.tab.[ch]', if possible, from existing .[ch] 91 | 92 | Send bug reports to ." 93 | exit $? 94 | ;; 95 | 96 | -v|--v|--ve|--ver|--vers|--versi|--versio|--version) 97 | echo "missing $scriptversion (GNU Automake)" 98 | exit $? 99 | ;; 100 | 101 | -*) 102 | echo 1>&2 "$0: Unknown \`$1' option" 103 | echo 1>&2 "Try \`$0 --help' for more information" 104 | exit 1 105 | ;; 106 | 107 | esac 108 | 109 | # Now exit if we have it, but it failed. Also exit now if we 110 | # don't have it and --version was passed (most likely to detect 111 | # the program). 112 | case $1 in 113 | lex|yacc) 114 | # Not GNU programs, they don't have --version. 115 | ;; 116 | 117 | tar) 118 | if test -n "$run"; then 119 | echo 1>&2 "ERROR: \`tar' requires --run" 120 | exit 1 121 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then 122 | exit 1 123 | fi 124 | ;; 125 | 126 | *) 127 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then 128 | # We have it, but it failed. 129 | exit 1 130 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then 131 | # Could not run --version or --help. This is probably someone 132 | # running `$TOOL --version' or `$TOOL --help' to check whether 133 | # $TOOL exists and not knowing $TOOL uses missing. 134 | exit 1 135 | fi 136 | ;; 137 | esac 138 | 139 | # If it does not exist, or fails to run (possibly an outdated version), 140 | # try to emulate it. 141 | case $1 in 142 | aclocal*) 143 | echo 1>&2 "\ 144 | WARNING: \`$1' is $msg. You should only need it if 145 | you modified \`acinclude.m4' or \`${configure_ac}'. You might want 146 | to install the \`Automake' and \`Perl' packages. Grab them from 147 | any GNU archive site." 148 | touch aclocal.m4 149 | ;; 150 | 151 | autoconf) 152 | echo 1>&2 "\ 153 | WARNING: \`$1' is $msg. You should only need it if 154 | you modified \`${configure_ac}'. You might want to install the 155 | \`Autoconf' and \`GNU m4' packages. Grab them from any GNU 156 | archive site." 157 | touch configure 158 | ;; 159 | 160 | autoheader) 161 | echo 1>&2 "\ 162 | WARNING: \`$1' is $msg. You should only need it if 163 | you modified \`acconfig.h' or \`${configure_ac}'. You might want 164 | to install the \`Autoconf' and \`GNU m4' packages. Grab them 165 | from any GNU archive site." 166 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` 167 | test -z "$files" && files="config.h" 168 | touch_files= 169 | for f in $files; do 170 | case $f in 171 | *:*) touch_files="$touch_files "`echo "$f" | 172 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; 173 | *) touch_files="$touch_files $f.in";; 174 | esac 175 | done 176 | touch $touch_files 177 | ;; 178 | 179 | automake*) 180 | echo 1>&2 "\ 181 | WARNING: \`$1' is $msg. You should only need it if 182 | you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. 183 | You might want to install the \`Automake' and \`Perl' packages. 184 | Grab them from any GNU archive site." 185 | find . -type f -name Makefile.am -print | 186 | sed 's/\.am$/.in/' | 187 | while read f; do touch "$f"; done 188 | ;; 189 | 190 | autom4te) 191 | echo 1>&2 "\ 192 | WARNING: \`$1' is needed, but is $msg. 193 | You might have modified some files without having the 194 | proper tools for further handling them. 195 | You can get \`$1' as part of \`Autoconf' from any GNU 196 | archive site." 197 | 198 | file=`echo "$*" | sed -n "$sed_output"` 199 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 200 | if test -f "$file"; then 201 | touch $file 202 | else 203 | test -z "$file" || exec >$file 204 | echo "#! /bin/sh" 205 | echo "# Created by GNU Automake missing as a replacement of" 206 | echo "# $ $@" 207 | echo "exit 0" 208 | chmod +x $file 209 | exit 1 210 | fi 211 | ;; 212 | 213 | bison|yacc) 214 | echo 1>&2 "\ 215 | WARNING: \`$1' $msg. You should only need it if 216 | you modified a \`.y' file. You may need the \`Bison' package 217 | in order for those modifications to take effect. You can get 218 | \`Bison' from any GNU archive site." 219 | rm -f y.tab.c y.tab.h 220 | if test $# -ne 1; then 221 | eval LASTARG="\${$#}" 222 | case $LASTARG in 223 | *.y) 224 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` 225 | if test -f "$SRCFILE"; then 226 | cp "$SRCFILE" y.tab.c 227 | fi 228 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` 229 | if test -f "$SRCFILE"; then 230 | cp "$SRCFILE" y.tab.h 231 | fi 232 | ;; 233 | esac 234 | fi 235 | if test ! -f y.tab.h; then 236 | echo >y.tab.h 237 | fi 238 | if test ! -f y.tab.c; then 239 | echo 'main() { return 0; }' >y.tab.c 240 | fi 241 | ;; 242 | 243 | lex|flex) 244 | echo 1>&2 "\ 245 | WARNING: \`$1' is $msg. You should only need it if 246 | you modified a \`.l' file. You may need the \`Flex' package 247 | in order for those modifications to take effect. You can get 248 | \`Flex' from any GNU archive site." 249 | rm -f lex.yy.c 250 | if test $# -ne 1; then 251 | eval LASTARG="\${$#}" 252 | case $LASTARG in 253 | *.l) 254 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` 255 | if test -f "$SRCFILE"; then 256 | cp "$SRCFILE" lex.yy.c 257 | fi 258 | ;; 259 | esac 260 | fi 261 | if test ! -f lex.yy.c; then 262 | echo 'main() { return 0; }' >lex.yy.c 263 | fi 264 | ;; 265 | 266 | help2man) 267 | echo 1>&2 "\ 268 | WARNING: \`$1' is $msg. You should only need it if 269 | you modified a dependency of a manual page. You may need the 270 | \`Help2man' package in order for those modifications to take 271 | effect. You can get \`Help2man' from any GNU archive site." 272 | 273 | file=`echo "$*" | sed -n "$sed_output"` 274 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 275 | if test -f "$file"; then 276 | touch $file 277 | else 278 | test -z "$file" || exec >$file 279 | echo ".ab help2man is required to generate this page" 280 | exit 1 281 | fi 282 | ;; 283 | 284 | makeinfo) 285 | echo 1>&2 "\ 286 | WARNING: \`$1' is $msg. You should only need it if 287 | you modified a \`.texi' or \`.texinfo' file, or any other file 288 | indirectly affecting the aspect of the manual. The spurious 289 | call might also be the consequence of using a buggy \`make' (AIX, 290 | DU, IRIX). You might want to install the \`Texinfo' package or 291 | the \`GNU make' package. Grab either from any GNU archive site." 292 | # The file to touch is that specified with -o ... 293 | file=`echo "$*" | sed -n "$sed_output"` 294 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` 295 | if test -z "$file"; then 296 | # ... or it is the one specified with @setfilename ... 297 | infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` 298 | file=`sed -n ' 299 | /^@setfilename/{ 300 | s/.* \([^ ]*\) *$/\1/ 301 | p 302 | q 303 | }' $infile` 304 | # ... or it is derived from the source name (dir/f.texi becomes f.info) 305 | test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info 306 | fi 307 | # If the file does not exist, the user really needs makeinfo; 308 | # let's fail without touching anything. 309 | test -f $file || exit 1 310 | touch $file 311 | ;; 312 | 313 | tar) 314 | shift 315 | 316 | # We have already tried tar in the generic part. 317 | # Look for gnutar/gtar before invocation to avoid ugly error 318 | # messages. 319 | if (gnutar --version > /dev/null 2>&1); then 320 | gnutar "$@" && exit 0 321 | fi 322 | if (gtar --version > /dev/null 2>&1); then 323 | gtar "$@" && exit 0 324 | fi 325 | firstarg="$1" 326 | if shift; then 327 | case $firstarg in 328 | *o*) 329 | firstarg=`echo "$firstarg" | sed s/o//` 330 | tar "$firstarg" "$@" && exit 0 331 | ;; 332 | esac 333 | case $firstarg in 334 | *h*) 335 | firstarg=`echo "$firstarg" | sed s/h//` 336 | tar "$firstarg" "$@" && exit 0 337 | ;; 338 | esac 339 | fi 340 | 341 | echo 1>&2 "\ 342 | WARNING: I can't seem to be able to run \`tar' with the given arguments. 343 | You may want to install GNU tar or Free paxutils, or check the 344 | command line arguments." 345 | exit 1 346 | ;; 347 | 348 | *) 349 | echo 1>&2 "\ 350 | WARNING: \`$1' is needed, and is $msg. 351 | You might have modified some files without having the 352 | proper tools for further handling them. Check the \`README' file, 353 | it often tells you about the needed prerequisites for installing 354 | this package. You may also peek at any GNU archive site, in case 355 | some other package would contain this missing \`$1' program." 356 | exit 1 357 | ;; 358 | esac 359 | 360 | exit 0 361 | 362 | # Local variables: 363 | # eval: (add-hook 'write-file-hooks 'time-stamp) 364 | # time-stamp-start: "scriptversion=" 365 | # time-stamp-format: "%:y-%02m-%02d.%02H" 366 | # time-stamp-end: "$" 367 | # End: 368 | -------------------------------------------------------------------------------- /src/videoframes.c: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | #include "videoframes.h" 3 | #include "websites.h" 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | static void videoframes_toggle_button_cb(GtkWidget *); 16 | static gboolean new_window_policy_decision_requested_cb(WebKitWebView *, 17 | WebKitWebFrame *, WebKitNetworkRequest *, 18 | WebKitWebNavigationAction *, WebKitWebPolicyDecision *, 19 | gpointer); 20 | static gboolean navigation_policy_decision_requested_cb(WebKitWebView *, 21 | WebKitWebFrame *, WebKitNetworkRequest *, 22 | WebKitWebNavigationAction *, WebKitWebPolicyDecision *, 23 | gpointer); 24 | 25 | static GHashTable *ht_button_info = NULL; /* */ 26 | static GHashTable *ht_button_location = NULL; /* */ 27 | 28 | ButtonInfo * 29 | button_info_new(GtkIMHtml *imhtml, GtkTextIter *location, 30 | WebsiteInfo *website, gchar *text, gint len) 31 | { 32 | ButtonInfo *info = g_new(ButtonInfo, 1); 33 | 34 | info->imhtml = imhtml; 35 | info->mark = gtk_text_buffer_create_mark(imhtml->text_buffer, NULL, 36 | location, TRUE); 37 | info->website = website; 38 | info->url = g_string_new_len(text, len); 39 | info->has_newline = FALSE; 40 | 41 | return info; 42 | } 43 | 44 | void 45 | button_info_free(ButtonInfo *info) 46 | { 47 | gtk_text_buffer_delete_mark(info->imhtml->text_buffer, info->mark); 48 | g_string_free(info->url, TRUE); 49 | g_free(info); 50 | } 51 | 52 | void 53 | videoframes_init() 54 | { 55 | ht_button_info = g_hash_table_new_full(g_direct_hash, g_direct_equal, 56 | NULL, (GDestroyNotify) button_info_free); 57 | ht_button_location = g_hash_table_new(g_direct_hash, g_direct_equal); 58 | } 59 | 60 | void 61 | videoframes_destroy() 62 | { 63 | g_hash_table_destroy(ht_button_info); 64 | g_hash_table_destroy(ht_button_location); 65 | } 66 | 67 | GtkWidget * 68 | videoframes_insert_new_button(GtkIMHtml *imhtml, GtkTextIter *location, 69 | WebsiteInfo *website, gchar *text, gint len) 70 | { 71 | /* Create the button. */ 72 | GtkWidget *button = gtk_toggle_button_new(); 73 | gtk_widget_set_name(GTK_WIDGET(button), "video-toggle-button"); 74 | GtkWidget *image = gtk_image_new_from_icon_name("gtk-go-forward-ltr", 75 | GTK_ICON_SIZE_BUTTON); 76 | gtk_image_set_pixel_size(GTK_IMAGE(image), 16); 77 | gtk_rc_parse_string("style \"video-toggle-button-style\" {" 78 | " GtkButton::inner-border = {0, 0, 0, 0}" 79 | " xthickness = 0" 80 | " ythickness = 0" 81 | " engine \"pixmap\" {" 82 | " image {" 83 | " function = BOX" 84 | " }" 85 | " }" 86 | "}" 87 | "widget \"*video-toggle-button\" style \"video-toggle-button-style\""); 88 | gtk_container_add(GTK_CONTAINER(button), image); 89 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), FALSE); 90 | g_signal_connect(G_OBJECT(button), "toggled", 91 | G_CALLBACK(videoframes_toggle_button_cb), NULL); 92 | gtk_widget_show_all(button); 93 | 94 | /* Add some information regarding the button. */ 95 | g_hash_table_insert(ht_button_info, button, 96 | button_info_new(imhtml, location, website, text, len)); 97 | g_hash_table_insert(ht_button_location, button, location); 98 | 99 | /* Insert the button into the conversation. */ 100 | GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor( 101 | imhtml->text_buffer, location); 102 | gtk_text_view_add_child_at_anchor(&imhtml->text_view, button, anchor); 103 | 104 | return button; 105 | } 106 | 107 | void 108 | videoframes_remove_button(GtkWidget *button) 109 | { 110 | /* Small trick to remove the video if the toggle button is active. */ 111 | if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) 112 | videoframes_toggle_button(button); 113 | 114 | /* Extract the information for the current button. */ 115 | ButtonInfo *info = (ButtonInfo *) g_hash_table_lookup(ht_button_info, button); 116 | 117 | /* Remove the button from the conversation. 118 | The widget is implicitly destroyed. */ 119 | GtkTextIter iter, next_iter; 120 | gtk_text_buffer_get_iter_at_mark(info->imhtml->text_buffer, &iter, info->mark); 121 | next_iter = iter; 122 | gtk_text_iter_forward_char(&next_iter); 123 | gtk_text_buffer_delete(info->imhtml->text_buffer, &iter, &next_iter); 124 | 125 | /* Remove the information attached to the former button. */ 126 | g_hash_table_remove(ht_button_info, button); 127 | } 128 | 129 | static void 130 | videoframes_toggle_button_cb(GtkWidget *button) 131 | { 132 | /* Extract the information for the current button. */ 133 | ButtonInfo *info = (ButtonInfo *) g_hash_table_lookup(ht_button_info, button); 134 | GtkTextIter iter; 135 | gtk_text_buffer_get_iter_at_mark(info->imhtml->text_buffer, &iter, info->mark); 136 | gtk_text_iter_forward_char(&iter); 137 | 138 | /* Get the image widget within the container. */ 139 | GList *list = gtk_container_get_children(GTK_CONTAINER(button)); 140 | GtkImage *image = g_list_first(list)->data; 141 | g_list_free(list); 142 | 143 | /* Turn it on or off, regarding the current state. */ 144 | if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) { 145 | 146 | /* Change the image. */ 147 | gtk_image_set_from_icon_name(image, "gtk-go-down", GTK_ICON_SIZE_BUTTON); 148 | 149 | /* Create the web view. */ 150 | GtkWidget *web_view = webkit_web_view_new(); 151 | GdkColormap *colormap = gdk_screen_get_system_colormap(gdk_screen_get_default()); 152 | gtk_widget_set_colormap(web_view, colormap); 153 | 154 | gchar *filename = videoframes_generate_page(info->website, info->url); 155 | webkit_web_view_load_uri(WEBKIT_WEB_VIEW(web_view), filename); 156 | g_free(filename); 157 | 158 | g_signal_connect(web_view, "new-window-policy-decision-requested", 159 | G_CALLBACK(new_window_policy_decision_requested_cb), NULL); 160 | g_signal_connect(web_view, "navigation-policy-decision-requested", 161 | G_CALLBACK(navigation_policy_decision_requested_cb), NULL); 162 | gtk_widget_show_all(web_view); 163 | 164 | /* Insert the web view into the conversation. */ 165 | gtk_text_buffer_insert(info->imhtml->text_buffer, &iter, "\n", 1); 166 | GtkTextChildAnchor *anchor = gtk_text_buffer_create_child_anchor( 167 | info->imhtml->text_buffer, &iter); 168 | gtk_text_view_add_child_at_anchor(&info->imhtml->text_view, web_view, anchor); 169 | if (info->has_newline == TRUE) 170 | gtk_text_buffer_insert(info->imhtml->text_buffer, &iter, "\n", 1); 171 | 172 | } else { 173 | 174 | /* Change the image. */ 175 | gtk_image_set_from_icon_name(image, "gtk-go-forward-ltr", GTK_ICON_SIZE_BUTTON); 176 | 177 | /* Remove the video from the conversation. 178 | The web view is implicitly destroyed. */ 179 | GtkTextIter next_iter = iter; 180 | gtk_text_iter_forward_chars(&next_iter, 2 + (int) info->has_newline); 181 | gtk_text_buffer_delete(info->imhtml->text_buffer, &iter, &next_iter); 182 | 183 | } 184 | } 185 | 186 | static gboolean new_window_policy_decision_requested_cb(WebKitWebView *web_view, 187 | WebKitWebFrame *frame, WebKitNetworkRequest *request, 188 | WebKitWebNavigationAction *navigation_action, WebKitWebPolicyDecision *policy_decision, 189 | gpointer user_data) 190 | { 191 | const gchar *uri = webkit_network_request_get_uri(request); 192 | purple_notify_uri(NULL, uri); 193 | webkit_web_policy_decision_use(policy_decision); 194 | return TRUE; 195 | } 196 | 197 | static gboolean navigation_policy_decision_requested_cb(WebKitWebView *web_view, 198 | WebKitWebFrame *frame, WebKitNetworkRequest *request, 199 | WebKitWebNavigationAction *navigation_action, WebKitWebPolicyDecision *policy_decision, 200 | gpointer user_data) 201 | { 202 | const gchar *uri = webkit_network_request_get_uri(request); 203 | webkit_web_policy_decision_use(policy_decision); 204 | return TRUE; 205 | } 206 | 207 | void 208 | videoframes_toggle_button(GtkWidget *button) 209 | { 210 | GtkToggleButton *toggle_button = GTK_TOGGLE_BUTTON(button); 211 | gtk_toggle_button_set_active(toggle_button, 212 | !gtk_toggle_button_get_active(toggle_button)); 213 | } 214 | 215 | gchar * 216 | videoframes_generate_page(WebsiteInfo *website, GString *url) 217 | { 218 | GRegex *website_regex = g_regex_new(website->regex, 0, 0, NULL); 219 | GMatchInfo *match_info; 220 | gboolean match_found = g_regex_match(website_regex, url->str, 0, &match_info); 221 | g_assert(match_found); 222 | 223 | gchar *video_id = g_match_info_fetch_named(match_info, "video_id"); 224 | gchar *misc1 = g_match_info_fetch_named(match_info, "misc1"); 225 | gchar *misc2 = g_match_info_fetch_named(match_info, "misc2"); 226 | GRegex *video_id_regex = g_regex_new("%VIDEO_ID%", 0, 0, NULL); 227 | GRegex *misc1_regex = g_regex_new("%MISC1%", 0, 0, NULL); 228 | GRegex *misc2_regex = g_regex_new("%MISC2%", 0, 0, NULL); 229 | 230 | gchar *embed, *tmp_embed; 231 | embed = g_regex_replace_literal(video_id_regex, 232 | website->embed, -1, 0, 233 | video_id, 234 | 0, 235 | NULL); 236 | if (misc1 != NULL && g_strcmp0(misc1, "") != 0) { 237 | tmp_embed = embed; 238 | embed = g_regex_replace_literal(misc1_regex, 239 | tmp_embed, -1, 0, 240 | misc1, 241 | 0, 242 | NULL); 243 | g_free(tmp_embed); 244 | 245 | if (misc2 != NULL && g_strcmp0(misc2, "") != 0) { 246 | tmp_embed = embed; 247 | embed = g_regex_replace_literal(misc2_regex, 248 | tmp_embed, -1, 0, 249 | misc2, 250 | 0, 251 | NULL); 252 | g_free(tmp_embed); 253 | } 254 | } 255 | 256 | const gchar *header = "\n\n" 258 | "\n\n"; 259 | const gchar *footer = "\n\n"; 260 | gchar *filename; 261 | gint file = g_file_open_tmp(NULL, &filename, NULL); 262 | ssize_t tmp = write(file, header, strlen(header)); 263 | tmp = write(file, embed, strlen(embed)); 264 | tmp = write(file, footer, strlen(footer)); 265 | close(file); 266 | 267 | purple_debug_info(PLUGIN_ID, "New video found: site = %s, id = %s.\n", 268 | website->id, video_id); 269 | 270 | g_free(embed); 271 | 272 | g_regex_unref(video_id_regex); 273 | g_regex_unref(misc1_regex); 274 | g_regex_unref(misc2_regex); 275 | g_free(video_id); 276 | g_free(misc1); 277 | g_free(misc2); 278 | 279 | g_match_info_free(match_info); 280 | g_regex_unref(website_regex); 281 | 282 | gchar *ret = g_new(gchar, strlen(filename) + 8); 283 | g_stpcpy(g_stpcpy(ret, "file://"), filename); 284 | g_free(filename); 285 | 286 | return ret; 287 | } 288 | 289 | void 290 | videoframes_text_buffer_check_newline(gpointer key, gpointer value, gpointer user_data) 291 | { 292 | GtkWidget *button = (GtkWidget *) key; 293 | GtkTextIter *location = (GtkTextIter *) value; 294 | ButtonInfo *info = (ButtonInfo *) g_hash_table_lookup(ht_button_info, key); 295 | 296 | GtkTextIter iter; 297 | gtk_text_buffer_get_iter_at_mark(info->imhtml->text_buffer, &iter, info->mark); 298 | 299 | while (gtk_text_iter_forward_char(&iter)) { 300 | gunichar crt_unichar = gtk_text_iter_get_char(&iter); 301 | 302 | if (g_unichar_break_type(crt_unichar) == G_UNICODE_BREAK_LINE_FEED) 303 | break; 304 | 305 | if (g_unichar_isgraph(crt_unichar)) { 306 | info->has_newline = TRUE; 307 | break; 308 | } 309 | } 310 | 311 | if (purple_prefs_get_bool("/plugins/gtk/embeddedvideo/show-video")) { 312 | videoframes_toggle_button(button); 313 | gtk_text_buffer_get_end_iter(info->imhtml->text_buffer, location); 314 | } 315 | } 316 | 317 | void 318 | videoframes_text_buffer_end_user_action_cb(GtkTextBuffer* text_buffer, gpointer user_data) 319 | { 320 | g_hash_table_foreach(ht_button_location, videoframes_text_buffer_check_newline, NULL); 321 | g_hash_table_remove_all(ht_button_location); 322 | } 323 | 324 | -------------------------------------------------------------------------------- /install-sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # install - install a program, script, or datafile 3 | 4 | scriptversion=2006-12-25.00 5 | 6 | # This originates from X11R5 (mit/util/scripts/install.sh), which was 7 | # later released in X11R6 (xc/config/util/install.sh) with the 8 | # following copyright and license. 9 | # 10 | # Copyright (C) 1994 X Consortium 11 | # 12 | # Permission is hereby granted, free of charge, to any person obtaining a copy 13 | # of this software and associated documentation files (the "Software"), to 14 | # deal in the Software without restriction, including without limitation the 15 | # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 16 | # sell copies of the Software, and to permit persons to whom the Software is 17 | # furnished to do so, subject to the following conditions: 18 | # 19 | # The above copyright notice and this permission notice shall be included in 20 | # all copies or substantial portions of the Software. 21 | # 22 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 25 | # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 26 | # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- 27 | # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 28 | # 29 | # Except as contained in this notice, the name of the X Consortium shall not 30 | # be used in advertising or otherwise to promote the sale, use or other deal- 31 | # ings in this Software without prior written authorization from the X Consor- 32 | # tium. 33 | # 34 | # 35 | # FSF changes to this file are in the public domain. 36 | # 37 | # Calling this script install-sh is preferred over install.sh, to prevent 38 | # `make' implicit rules from creating a file called install from it 39 | # when there is no Makefile. 40 | # 41 | # This script is compatible with the BSD install script, but was written 42 | # from scratch. 43 | 44 | nl=' 45 | ' 46 | IFS=" "" $nl" 47 | 48 | # set DOITPROG to echo to test this script 49 | 50 | # Don't use :- since 4.3BSD and earlier shells don't like it. 51 | doit=${DOITPROG-} 52 | if test -z "$doit"; then 53 | doit_exec=exec 54 | else 55 | doit_exec=$doit 56 | fi 57 | 58 | # Put in absolute file names if you don't have them in your path; 59 | # or use environment vars. 60 | 61 | chgrpprog=${CHGRPPROG-chgrp} 62 | chmodprog=${CHMODPROG-chmod} 63 | chownprog=${CHOWNPROG-chown} 64 | cmpprog=${CMPPROG-cmp} 65 | cpprog=${CPPROG-cp} 66 | mkdirprog=${MKDIRPROG-mkdir} 67 | mvprog=${MVPROG-mv} 68 | rmprog=${RMPROG-rm} 69 | stripprog=${STRIPPROG-strip} 70 | 71 | posix_glob='?' 72 | initialize_posix_glob=' 73 | test "$posix_glob" != "?" || { 74 | if (set -f) 2>/dev/null; then 75 | posix_glob= 76 | else 77 | posix_glob=: 78 | fi 79 | } 80 | ' 81 | 82 | posix_mkdir= 83 | 84 | # Desired mode of installed file. 85 | mode=0755 86 | 87 | chgrpcmd= 88 | chmodcmd=$chmodprog 89 | chowncmd= 90 | mvcmd=$mvprog 91 | rmcmd="$rmprog -f" 92 | stripcmd= 93 | 94 | src= 95 | dst= 96 | dir_arg= 97 | dst_arg= 98 | 99 | copy_on_change=false 100 | no_target_directory= 101 | 102 | usage="\ 103 | Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE 104 | or: $0 [OPTION]... SRCFILES... DIRECTORY 105 | or: $0 [OPTION]... -t DIRECTORY SRCFILES... 106 | or: $0 [OPTION]... -d DIRECTORIES... 107 | 108 | In the 1st form, copy SRCFILE to DSTFILE. 109 | In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. 110 | In the 4th, create DIRECTORIES. 111 | 112 | Options: 113 | --help display this help and exit. 114 | --version display version info and exit. 115 | 116 | -c (ignored) 117 | -C install only if different (preserve the last data modification time) 118 | -d create directories instead of installing files. 119 | -g GROUP $chgrpprog installed files to GROUP. 120 | -m MODE $chmodprog installed files to MODE. 121 | -o USER $chownprog installed files to USER. 122 | -s $stripprog installed files. 123 | -t DIRECTORY install into DIRECTORY. 124 | -T report an error if DSTFILE is a directory. 125 | 126 | Environment variables override the default commands: 127 | CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG 128 | RMPROG STRIPPROG 129 | " 130 | 131 | while test $# -ne 0; do 132 | case $1 in 133 | -c) ;; 134 | 135 | -C) copy_on_change=true;; 136 | 137 | -d) dir_arg=true;; 138 | 139 | -g) chgrpcmd="$chgrpprog $2" 140 | shift;; 141 | 142 | --help) echo "$usage"; exit $?;; 143 | 144 | -m) mode=$2 145 | case $mode in 146 | *' '* | *' '* | *' 147 | '* | *'*'* | *'?'* | *'['*) 148 | echo "$0: invalid mode: $mode" >&2 149 | exit 1;; 150 | esac 151 | shift;; 152 | 153 | -o) chowncmd="$chownprog $2" 154 | shift;; 155 | 156 | -s) stripcmd=$stripprog;; 157 | 158 | -t) dst_arg=$2 159 | shift;; 160 | 161 | -T) no_target_directory=true;; 162 | 163 | --version) echo "$0 $scriptversion"; exit $?;; 164 | 165 | --) shift 166 | break;; 167 | 168 | -*) echo "$0: invalid option: $1" >&2 169 | exit 1;; 170 | 171 | *) break;; 172 | esac 173 | shift 174 | done 175 | 176 | if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then 177 | # When -d is used, all remaining arguments are directories to create. 178 | # When -t is used, the destination is already specified. 179 | # Otherwise, the last argument is the destination. Remove it from $@. 180 | for arg 181 | do 182 | if test -n "$dst_arg"; then 183 | # $@ is not empty: it contains at least $arg. 184 | set fnord "$@" "$dst_arg" 185 | shift # fnord 186 | fi 187 | shift # arg 188 | dst_arg=$arg 189 | done 190 | fi 191 | 192 | if test $# -eq 0; then 193 | if test -z "$dir_arg"; then 194 | echo "$0: no input file specified." >&2 195 | exit 1 196 | fi 197 | # It's OK to call `install-sh -d' without argument. 198 | # This can happen when creating conditional directories. 199 | exit 0 200 | fi 201 | 202 | if test -z "$dir_arg"; then 203 | trap '(exit $?); exit' 1 2 13 15 204 | 205 | # Set umask so as not to create temps with too-generous modes. 206 | # However, 'strip' requires both read and write access to temps. 207 | case $mode in 208 | # Optimize common cases. 209 | *644) cp_umask=133;; 210 | *755) cp_umask=22;; 211 | 212 | *[0-7]) 213 | if test -z "$stripcmd"; then 214 | u_plus_rw= 215 | else 216 | u_plus_rw='% 200' 217 | fi 218 | cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 219 | *) 220 | if test -z "$stripcmd"; then 221 | u_plus_rw= 222 | else 223 | u_plus_rw=,u+rw 224 | fi 225 | cp_umask=$mode$u_plus_rw;; 226 | esac 227 | fi 228 | 229 | for src 230 | do 231 | # Protect names starting with `-'. 232 | case $src in 233 | -*) src=./$src;; 234 | esac 235 | 236 | if test -n "$dir_arg"; then 237 | dst=$src 238 | dstdir=$dst 239 | test -d "$dstdir" 240 | dstdir_status=$? 241 | else 242 | 243 | # Waiting for this to be detected by the "$cpprog $src $dsttmp" command 244 | # might cause directories to be created, which would be especially bad 245 | # if $src (and thus $dsttmp) contains '*'. 246 | if test ! -f "$src" && test ! -d "$src"; then 247 | echo "$0: $src does not exist." >&2 248 | exit 1 249 | fi 250 | 251 | if test -z "$dst_arg"; then 252 | echo "$0: no destination specified." >&2 253 | exit 1 254 | fi 255 | 256 | dst=$dst_arg 257 | # Protect names starting with `-'. 258 | case $dst in 259 | -*) dst=./$dst;; 260 | esac 261 | 262 | # If destination is a directory, append the input filename; won't work 263 | # if double slashes aren't ignored. 264 | if test -d "$dst"; then 265 | if test -n "$no_target_directory"; then 266 | echo "$0: $dst_arg: Is a directory" >&2 267 | exit 1 268 | fi 269 | dstdir=$dst 270 | dst=$dstdir/`basename "$src"` 271 | dstdir_status=0 272 | else 273 | # Prefer dirname, but fall back on a substitute if dirname fails. 274 | dstdir=` 275 | (dirname "$dst") 2>/dev/null || 276 | expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 277 | X"$dst" : 'X\(//\)[^/]' \| \ 278 | X"$dst" : 'X\(//\)$' \| \ 279 | X"$dst" : 'X\(/\)' \| . 2>/dev/null || 280 | echo X"$dst" | 281 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 282 | s//\1/ 283 | q 284 | } 285 | /^X\(\/\/\)[^/].*/{ 286 | s//\1/ 287 | q 288 | } 289 | /^X\(\/\/\)$/{ 290 | s//\1/ 291 | q 292 | } 293 | /^X\(\/\).*/{ 294 | s//\1/ 295 | q 296 | } 297 | s/.*/./; q' 298 | ` 299 | 300 | test -d "$dstdir" 301 | dstdir_status=$? 302 | fi 303 | fi 304 | 305 | obsolete_mkdir_used=false 306 | 307 | if test $dstdir_status != 0; then 308 | case $posix_mkdir in 309 | '') 310 | # Create intermediate dirs using mode 755 as modified by the umask. 311 | # This is like FreeBSD 'install' as of 1997-10-28. 312 | umask=`umask` 313 | case $stripcmd.$umask in 314 | # Optimize common cases. 315 | *[2367][2367]) mkdir_umask=$umask;; 316 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; 317 | 318 | *[0-7]) 319 | mkdir_umask=`expr $umask + 22 \ 320 | - $umask % 100 % 40 + $umask % 20 \ 321 | - $umask % 10 % 4 + $umask % 2 322 | `;; 323 | *) mkdir_umask=$umask,go-w;; 324 | esac 325 | 326 | # With -d, create the new directory with the user-specified mode. 327 | # Otherwise, rely on $mkdir_umask. 328 | if test -n "$dir_arg"; then 329 | mkdir_mode=-m$mode 330 | else 331 | mkdir_mode= 332 | fi 333 | 334 | posix_mkdir=false 335 | case $umask in 336 | *[123567][0-7][0-7]) 337 | # POSIX mkdir -p sets u+wx bits regardless of umask, which 338 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. 339 | ;; 340 | *) 341 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 342 | trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 343 | 344 | if (umask $mkdir_umask && 345 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 346 | then 347 | if test -z "$dir_arg" || { 348 | # Check for POSIX incompatibilities with -m. 349 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 350 | # other-writeable bit of parent directory when it shouldn't. 351 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 352 | ls_ld_tmpdir=`ls -ld "$tmpdir"` 353 | case $ls_ld_tmpdir in 354 | d????-?r-*) different_mode=700;; 355 | d????-?--*) different_mode=755;; 356 | *) false;; 357 | esac && 358 | $mkdirprog -m$different_mode -p -- "$tmpdir" && { 359 | ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 360 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 361 | } 362 | } 363 | then posix_mkdir=: 364 | fi 365 | rmdir "$tmpdir/d" "$tmpdir" 366 | else 367 | # Remove any dirs left behind by ancient mkdir implementations. 368 | rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null 369 | fi 370 | trap '' 0;; 371 | esac;; 372 | esac 373 | 374 | if 375 | $posix_mkdir && ( 376 | umask $mkdir_umask && 377 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" 378 | ) 379 | then : 380 | else 381 | 382 | # The umask is ridiculous, or mkdir does not conform to POSIX, 383 | # or it failed possibly due to a race condition. Create the 384 | # directory the slow way, step by step, checking for races as we go. 385 | 386 | case $dstdir in 387 | /*) prefix='/';; 388 | -*) prefix='./';; 389 | *) prefix='';; 390 | esac 391 | 392 | eval "$initialize_posix_glob" 393 | 394 | oIFS=$IFS 395 | IFS=/ 396 | $posix_glob set -f 397 | set fnord $dstdir 398 | shift 399 | $posix_glob set +f 400 | IFS=$oIFS 401 | 402 | prefixes= 403 | 404 | for d 405 | do 406 | test -z "$d" && continue 407 | 408 | prefix=$prefix$d 409 | if test -d "$prefix"; then 410 | prefixes= 411 | else 412 | if $posix_mkdir; then 413 | (umask=$mkdir_umask && 414 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break 415 | # Don't fail if two instances are running concurrently. 416 | test -d "$prefix" || exit 1 417 | else 418 | case $prefix in 419 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; 420 | *) qprefix=$prefix;; 421 | esac 422 | prefixes="$prefixes '$qprefix'" 423 | fi 424 | fi 425 | prefix=$prefix/ 426 | done 427 | 428 | if test -n "$prefixes"; then 429 | # Don't fail if two instances are running concurrently. 430 | (umask $mkdir_umask && 431 | eval "\$doit_exec \$mkdirprog $prefixes") || 432 | test -d "$dstdir" || exit 1 433 | obsolete_mkdir_used=true 434 | fi 435 | fi 436 | fi 437 | 438 | if test -n "$dir_arg"; then 439 | { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && 440 | { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && 441 | { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || 442 | test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 443 | else 444 | 445 | # Make a couple of temp file names in the proper directory. 446 | dsttmp=$dstdir/_inst.$$_ 447 | rmtmp=$dstdir/_rm.$$_ 448 | 449 | # Trap to clean up those temp files at exit. 450 | trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 451 | 452 | # Copy the file name to the temp name. 453 | (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && 454 | 455 | # and set any options; do chmod last to preserve setuid bits. 456 | # 457 | # If any of these fail, we abort the whole thing. If we want to 458 | # ignore errors from any of these, just make sure not to ignore 459 | # errors from the above "$doit $cpprog $src $dsttmp" command. 460 | # 461 | { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && 462 | { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && 463 | { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && 464 | { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && 465 | 466 | # If -C, don't bother to copy if it wouldn't change the file. 467 | if $copy_on_change && 468 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && 469 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && 470 | 471 | eval "$initialize_posix_glob" && 472 | $posix_glob set -f && 473 | set X $old && old=:$2:$4:$5:$6 && 474 | set X $new && new=:$2:$4:$5:$6 && 475 | $posix_glob set +f && 476 | 477 | test "$old" = "$new" && 478 | $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 479 | then 480 | rm -f "$dsttmp" 481 | else 482 | # Rename the file to the real destination. 483 | $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || 484 | 485 | # The rename failed, perhaps because mv can't rename something else 486 | # to itself, or perhaps because mv is so ancient that it does not 487 | # support -f. 488 | { 489 | # Now remove or move aside any old file at destination location. 490 | # We try this two ways since rm can't unlink itself on some 491 | # systems and the destination file might be busy for other 492 | # reasons. In this case, the final cleanup might fail but the new 493 | # file should still install successfully. 494 | { 495 | test ! -f "$dst" || 496 | $doit $rmcmd -f "$dst" 2>/dev/null || 497 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && 498 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } 499 | } || 500 | { echo "$0: cannot unlink or rename $dst" >&2 501 | (exit 1); exit 1 502 | } 503 | } && 504 | 505 | # Now rename the file to the real destination. 506 | $doit $mvcmd "$dsttmp" "$dst" 507 | } 508 | fi || exit 1 509 | 510 | trap '' 0 511 | fi 512 | done 513 | 514 | # Local variables: 515 | # eval: (add-hook 'write-file-hooks 'time-stamp) 516 | # time-stamp-start: "scriptversion=" 517 | # time-stamp-format: "%:y-%02m-%02d.%02H" 518 | # time-stamp-end: "$" 519 | # End: 520 | -------------------------------------------------------------------------------- /depcomp: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # depcomp - compile a program generating dependencies as side-effects 3 | 4 | scriptversion=2009-04-28.21; # UTC 5 | 6 | # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free 7 | # Software Foundation, Inc. 8 | 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation; either version 2, or (at your option) 12 | # any later version. 13 | 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | # As a special exception to the GNU General Public License, if you 23 | # distribute this file as part of a program that contains a 24 | # configuration script generated by Autoconf, you may include it under 25 | # the same distribution terms that you use for the rest of that program. 26 | 27 | # Originally written by Alexandre Oliva . 28 | 29 | case $1 in 30 | '') 31 | echo "$0: No command. Try \`$0 --help' for more information." 1>&2 32 | exit 1; 33 | ;; 34 | -h | --h*) 35 | cat <<\EOF 36 | Usage: depcomp [--help] [--version] PROGRAM [ARGS] 37 | 38 | Run PROGRAMS ARGS to compile a file, generating dependencies 39 | as side-effects. 40 | 41 | Environment variables: 42 | depmode Dependency tracking mode. 43 | source Source file read by `PROGRAMS ARGS'. 44 | object Object file output by `PROGRAMS ARGS'. 45 | DEPDIR directory where to store dependencies. 46 | depfile Dependency file to output. 47 | tmpdepfile Temporary file to use when outputing dependencies. 48 | libtool Whether libtool is used (yes/no). 49 | 50 | Report bugs to . 51 | EOF 52 | exit $? 53 | ;; 54 | -v | --v*) 55 | echo "depcomp $scriptversion" 56 | exit $? 57 | ;; 58 | esac 59 | 60 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then 61 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 62 | exit 1 63 | fi 64 | 65 | # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. 66 | depfile=${depfile-`echo "$object" | 67 | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} 68 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 69 | 70 | rm -f "$tmpdepfile" 71 | 72 | # Some modes work just like other modes, but use different flags. We 73 | # parameterize here, but still list the modes in the big case below, 74 | # to make depend.m4 easier to write. Note that we *cannot* use a case 75 | # here, because this file can only contain one case statement. 76 | if test "$depmode" = hp; then 77 | # HP compiler uses -M and no extra arg. 78 | gccflag=-M 79 | depmode=gcc 80 | fi 81 | 82 | if test "$depmode" = dashXmstdout; then 83 | # This is just like dashmstdout with a different argument. 84 | dashmflag=-xM 85 | depmode=dashmstdout 86 | fi 87 | 88 | cygpath_u="cygpath -u -f -" 89 | if test "$depmode" = msvcmsys; then 90 | # This is just like msvisualcpp but w/o cygpath translation. 91 | # Just convert the backslash-escaped backslashes to single forward 92 | # slashes to satisfy depend.m4 93 | cygpath_u="sed s,\\\\\\\\,/,g" 94 | depmode=msvisualcpp 95 | fi 96 | 97 | case "$depmode" in 98 | gcc3) 99 | ## gcc 3 implements dependency tracking that does exactly what 100 | ## we want. Yay! Note: for some reason libtool 1.4 doesn't like 101 | ## it if -MD -MP comes after the -MF stuff. Hmm. 102 | ## Unfortunately, FreeBSD c89 acceptance of flags depends upon 103 | ## the command line argument order; so add the flags where they 104 | ## appear in depend2.am. Note that the slowdown incurred here 105 | ## affects only configure: in makefiles, %FASTDEP% shortcuts this. 106 | for arg 107 | do 108 | case $arg in 109 | -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; 110 | *) set fnord "$@" "$arg" ;; 111 | esac 112 | shift # fnord 113 | shift # $arg 114 | done 115 | "$@" 116 | stat=$? 117 | if test $stat -eq 0; then : 118 | else 119 | rm -f "$tmpdepfile" 120 | exit $stat 121 | fi 122 | mv "$tmpdepfile" "$depfile" 123 | ;; 124 | 125 | gcc) 126 | ## There are various ways to get dependency output from gcc. Here's 127 | ## why we pick this rather obscure method: 128 | ## - Don't want to use -MD because we'd like the dependencies to end 129 | ## up in a subdir. Having to rename by hand is ugly. 130 | ## (We might end up doing this anyway to support other compilers.) 131 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like 132 | ## -MM, not -M (despite what the docs say). 133 | ## - Using -M directly means running the compiler twice (even worse 134 | ## than renaming). 135 | if test -z "$gccflag"; then 136 | gccflag=-MD, 137 | fi 138 | "$@" -Wp,"$gccflag$tmpdepfile" 139 | stat=$? 140 | if test $stat -eq 0; then : 141 | else 142 | rm -f "$tmpdepfile" 143 | exit $stat 144 | fi 145 | rm -f "$depfile" 146 | echo "$object : \\" > "$depfile" 147 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 148 | ## The second -e expression handles DOS-style file names with drive letters. 149 | sed -e 's/^[^:]*: / /' \ 150 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" 151 | ## This next piece of magic avoids the `deleted header file' problem. 152 | ## The problem is that when a header file which appears in a .P file 153 | ## is deleted, the dependency causes make to die (because there is 154 | ## typically no way to rebuild the header). We avoid this by adding 155 | ## dummy dependencies for each header file. Too bad gcc doesn't do 156 | ## this for us directly. 157 | tr ' ' ' 158 | ' < "$tmpdepfile" | 159 | ## Some versions of gcc put a space before the `:'. On the theory 160 | ## that the space means something, we add a space to the output as 161 | ## well. 162 | ## Some versions of the HPUX 10.20 sed can't process this invocation 163 | ## correctly. Breaking it into two sed invocations is a workaround. 164 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 165 | rm -f "$tmpdepfile" 166 | ;; 167 | 168 | hp) 169 | # This case exists only to let depend.m4 do its work. It works by 170 | # looking at the text of this script. This case will never be run, 171 | # since it is checked for above. 172 | exit 1 173 | ;; 174 | 175 | sgi) 176 | if test "$libtool" = yes; then 177 | "$@" "-Wp,-MDupdate,$tmpdepfile" 178 | else 179 | "$@" -MDupdate "$tmpdepfile" 180 | fi 181 | stat=$? 182 | if test $stat -eq 0; then : 183 | else 184 | rm -f "$tmpdepfile" 185 | exit $stat 186 | fi 187 | rm -f "$depfile" 188 | 189 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files 190 | echo "$object : \\" > "$depfile" 191 | 192 | # Clip off the initial element (the dependent). Don't try to be 193 | # clever and replace this with sed code, as IRIX sed won't handle 194 | # lines with more than a fixed number of characters (4096 in 195 | # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; 196 | # the IRIX cc adds comments like `#:fec' to the end of the 197 | # dependency line. 198 | tr ' ' ' 199 | ' < "$tmpdepfile" \ 200 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ 201 | tr ' 202 | ' ' ' >> "$depfile" 203 | echo >> "$depfile" 204 | 205 | # The second pass generates a dummy entry for each header file. 206 | tr ' ' ' 207 | ' < "$tmpdepfile" \ 208 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ 209 | >> "$depfile" 210 | else 211 | # The sourcefile does not contain any dependencies, so just 212 | # store a dummy comment line, to avoid errors with the Makefile 213 | # "include basename.Plo" scheme. 214 | echo "#dummy" > "$depfile" 215 | fi 216 | rm -f "$tmpdepfile" 217 | ;; 218 | 219 | aix) 220 | # The C for AIX Compiler uses -M and outputs the dependencies 221 | # in a .u file. In older versions, this file always lives in the 222 | # current directory. Also, the AIX compiler puts `$object:' at the 223 | # start of each line; $object doesn't have directory information. 224 | # Version 6 uses the directory in both cases. 225 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` 226 | test "x$dir" = "x$object" && dir= 227 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 228 | if test "$libtool" = yes; then 229 | tmpdepfile1=$dir$base.u 230 | tmpdepfile2=$base.u 231 | tmpdepfile3=$dir.libs/$base.u 232 | "$@" -Wc,-M 233 | else 234 | tmpdepfile1=$dir$base.u 235 | tmpdepfile2=$dir$base.u 236 | tmpdepfile3=$dir$base.u 237 | "$@" -M 238 | fi 239 | stat=$? 240 | 241 | if test $stat -eq 0; then : 242 | else 243 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" 244 | exit $stat 245 | fi 246 | 247 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" 248 | do 249 | test -f "$tmpdepfile" && break 250 | done 251 | if test -f "$tmpdepfile"; then 252 | # Each line is of the form `foo.o: dependent.h'. 253 | # Do two passes, one to just change these to 254 | # `$object: dependent.h' and one to simply `dependent.h:'. 255 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" 256 | # That's a tab and a space in the []. 257 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" 258 | else 259 | # The sourcefile does not contain any dependencies, so just 260 | # store a dummy comment line, to avoid errors with the Makefile 261 | # "include basename.Plo" scheme. 262 | echo "#dummy" > "$depfile" 263 | fi 264 | rm -f "$tmpdepfile" 265 | ;; 266 | 267 | icc) 268 | # Intel's C compiler understands `-MD -MF file'. However on 269 | # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c 270 | # ICC 7.0 will fill foo.d with something like 271 | # foo.o: sub/foo.c 272 | # foo.o: sub/foo.h 273 | # which is wrong. We want: 274 | # sub/foo.o: sub/foo.c 275 | # sub/foo.o: sub/foo.h 276 | # sub/foo.c: 277 | # sub/foo.h: 278 | # ICC 7.1 will output 279 | # foo.o: sub/foo.c sub/foo.h 280 | # and will wrap long lines using \ : 281 | # foo.o: sub/foo.c ... \ 282 | # sub/foo.h ... \ 283 | # ... 284 | 285 | "$@" -MD -MF "$tmpdepfile" 286 | stat=$? 287 | if test $stat -eq 0; then : 288 | else 289 | rm -f "$tmpdepfile" 290 | exit $stat 291 | fi 292 | rm -f "$depfile" 293 | # Each line is of the form `foo.o: dependent.h', 294 | # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. 295 | # Do two passes, one to just change these to 296 | # `$object: dependent.h' and one to simply `dependent.h:'. 297 | sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" 298 | # Some versions of the HPUX 10.20 sed can't process this invocation 299 | # correctly. Breaking it into two sed invocations is a workaround. 300 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | 301 | sed -e 's/$/ :/' >> "$depfile" 302 | rm -f "$tmpdepfile" 303 | ;; 304 | 305 | hp2) 306 | # The "hp" stanza above does not work with aCC (C++) and HP's ia64 307 | # compilers, which have integrated preprocessors. The correct option 308 | # to use with these is +Maked; it writes dependencies to a file named 309 | # 'foo.d', which lands next to the object file, wherever that 310 | # happens to be. 311 | # Much of this is similar to the tru64 case; see comments there. 312 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` 313 | test "x$dir" = "x$object" && dir= 314 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 315 | if test "$libtool" = yes; then 316 | tmpdepfile1=$dir$base.d 317 | tmpdepfile2=$dir.libs/$base.d 318 | "$@" -Wc,+Maked 319 | else 320 | tmpdepfile1=$dir$base.d 321 | tmpdepfile2=$dir$base.d 322 | "$@" +Maked 323 | fi 324 | stat=$? 325 | if test $stat -eq 0; then : 326 | else 327 | rm -f "$tmpdepfile1" "$tmpdepfile2" 328 | exit $stat 329 | fi 330 | 331 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" 332 | do 333 | test -f "$tmpdepfile" && break 334 | done 335 | if test -f "$tmpdepfile"; then 336 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" 337 | # Add `dependent.h:' lines. 338 | sed -ne '2,${ 339 | s/^ *// 340 | s/ \\*$// 341 | s/$/:/ 342 | p 343 | }' "$tmpdepfile" >> "$depfile" 344 | else 345 | echo "#dummy" > "$depfile" 346 | fi 347 | rm -f "$tmpdepfile" "$tmpdepfile2" 348 | ;; 349 | 350 | tru64) 351 | # The Tru64 compiler uses -MD to generate dependencies as a side 352 | # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. 353 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put 354 | # dependencies in `foo.d' instead, so we check for that too. 355 | # Subdirectories are respected. 356 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` 357 | test "x$dir" = "x$object" && dir= 358 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` 359 | 360 | if test "$libtool" = yes; then 361 | # With Tru64 cc, shared objects can also be used to make a 362 | # static library. This mechanism is used in libtool 1.4 series to 363 | # handle both shared and static libraries in a single compilation. 364 | # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. 365 | # 366 | # With libtool 1.5 this exception was removed, and libtool now 367 | # generates 2 separate objects for the 2 libraries. These two 368 | # compilations output dependencies in $dir.libs/$base.o.d and 369 | # in $dir$base.o.d. We have to check for both files, because 370 | # one of the two compilations can be disabled. We should prefer 371 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is 372 | # automatically cleaned when .libs/ is deleted, while ignoring 373 | # the former would cause a distcleancheck panic. 374 | tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 375 | tmpdepfile2=$dir$base.o.d # libtool 1.5 376 | tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 377 | tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 378 | "$@" -Wc,-MD 379 | else 380 | tmpdepfile1=$dir$base.o.d 381 | tmpdepfile2=$dir$base.d 382 | tmpdepfile3=$dir$base.d 383 | tmpdepfile4=$dir$base.d 384 | "$@" -MD 385 | fi 386 | 387 | stat=$? 388 | if test $stat -eq 0; then : 389 | else 390 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" 391 | exit $stat 392 | fi 393 | 394 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" 395 | do 396 | test -f "$tmpdepfile" && break 397 | done 398 | if test -f "$tmpdepfile"; then 399 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" 400 | # That's a tab and a space in the []. 401 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" 402 | else 403 | echo "#dummy" > "$depfile" 404 | fi 405 | rm -f "$tmpdepfile" 406 | ;; 407 | 408 | #nosideeffect) 409 | # This comment above is used by automake to tell side-effect 410 | # dependency tracking mechanisms from slower ones. 411 | 412 | dashmstdout) 413 | # Important note: in order to support this mode, a compiler *must* 414 | # always write the preprocessed file to stdout, regardless of -o. 415 | "$@" || exit $? 416 | 417 | # Remove the call to Libtool. 418 | if test "$libtool" = yes; then 419 | while test "X$1" != 'X--mode=compile'; do 420 | shift 421 | done 422 | shift 423 | fi 424 | 425 | # Remove `-o $object'. 426 | IFS=" " 427 | for arg 428 | do 429 | case $arg in 430 | -o) 431 | shift 432 | ;; 433 | $object) 434 | shift 435 | ;; 436 | *) 437 | set fnord "$@" "$arg" 438 | shift # fnord 439 | shift # $arg 440 | ;; 441 | esac 442 | done 443 | 444 | test -z "$dashmflag" && dashmflag=-M 445 | # Require at least two characters before searching for `:' 446 | # in the target name. This is to cope with DOS-style filenames: 447 | # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. 448 | "$@" $dashmflag | 449 | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" 450 | rm -f "$depfile" 451 | cat < "$tmpdepfile" > "$depfile" 452 | tr ' ' ' 453 | ' < "$tmpdepfile" | \ 454 | ## Some versions of the HPUX 10.20 sed can't process this invocation 455 | ## correctly. Breaking it into two sed invocations is a workaround. 456 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 457 | rm -f "$tmpdepfile" 458 | ;; 459 | 460 | dashXmstdout) 461 | # This case only exists to satisfy depend.m4. It is never actually 462 | # run, as this mode is specially recognized in the preamble. 463 | exit 1 464 | ;; 465 | 466 | makedepend) 467 | "$@" || exit $? 468 | # Remove any Libtool call 469 | if test "$libtool" = yes; then 470 | while test "X$1" != 'X--mode=compile'; do 471 | shift 472 | done 473 | shift 474 | fi 475 | # X makedepend 476 | shift 477 | cleared=no eat=no 478 | for arg 479 | do 480 | case $cleared in 481 | no) 482 | set ""; shift 483 | cleared=yes ;; 484 | esac 485 | if test $eat = yes; then 486 | eat=no 487 | continue 488 | fi 489 | case "$arg" in 490 | -D*|-I*) 491 | set fnord "$@" "$arg"; shift ;; 492 | # Strip any option that makedepend may not understand. Remove 493 | # the object too, otherwise makedepend will parse it as a source file. 494 | -arch) 495 | eat=yes ;; 496 | -*|$object) 497 | ;; 498 | *) 499 | set fnord "$@" "$arg"; shift ;; 500 | esac 501 | done 502 | obj_suffix=`echo "$object" | sed 's/^.*\././'` 503 | touch "$tmpdepfile" 504 | ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" 505 | rm -f "$depfile" 506 | cat < "$tmpdepfile" > "$depfile" 507 | sed '1,2d' "$tmpdepfile" | tr ' ' ' 508 | ' | \ 509 | ## Some versions of the HPUX 10.20 sed can't process this invocation 510 | ## correctly. Breaking it into two sed invocations is a workaround. 511 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 512 | rm -f "$tmpdepfile" "$tmpdepfile".bak 513 | ;; 514 | 515 | cpp) 516 | # Important note: in order to support this mode, a compiler *must* 517 | # always write the preprocessed file to stdout. 518 | "$@" || exit $? 519 | 520 | # Remove the call to Libtool. 521 | if test "$libtool" = yes; then 522 | while test "X$1" != 'X--mode=compile'; do 523 | shift 524 | done 525 | shift 526 | fi 527 | 528 | # Remove `-o $object'. 529 | IFS=" " 530 | for arg 531 | do 532 | case $arg in 533 | -o) 534 | shift 535 | ;; 536 | $object) 537 | shift 538 | ;; 539 | *) 540 | set fnord "$@" "$arg" 541 | shift # fnord 542 | shift # $arg 543 | ;; 544 | esac 545 | done 546 | 547 | "$@" -E | 548 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ 549 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | 550 | sed '$ s: \\$::' > "$tmpdepfile" 551 | rm -f "$depfile" 552 | echo "$object : \\" > "$depfile" 553 | cat < "$tmpdepfile" >> "$depfile" 554 | sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" 555 | rm -f "$tmpdepfile" 556 | ;; 557 | 558 | msvisualcpp) 559 | # Important note: in order to support this mode, a compiler *must* 560 | # always write the preprocessed file to stdout. 561 | "$@" || exit $? 562 | 563 | # Remove the call to Libtool. 564 | if test "$libtool" = yes; then 565 | while test "X$1" != 'X--mode=compile'; do 566 | shift 567 | done 568 | shift 569 | fi 570 | 571 | IFS=" " 572 | for arg 573 | do 574 | case "$arg" in 575 | -o) 576 | shift 577 | ;; 578 | $object) 579 | shift 580 | ;; 581 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") 582 | set fnord "$@" 583 | shift 584 | shift 585 | ;; 586 | *) 587 | set fnord "$@" "$arg" 588 | shift 589 | shift 590 | ;; 591 | esac 592 | done 593 | "$@" -E 2>/dev/null | 594 | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" 595 | rm -f "$depfile" 596 | echo "$object : \\" > "$depfile" 597 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" 598 | echo " " >> "$depfile" 599 | sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" 600 | rm -f "$tmpdepfile" 601 | ;; 602 | 603 | msvcmsys) 604 | # This case exists only to let depend.m4 do its work. It works by 605 | # looking at the text of this script. This case will never be run, 606 | # since it is checked for above. 607 | exit 1 608 | ;; 609 | 610 | none) 611 | exec "$@" 612 | ;; 613 | 614 | *) 615 | echo "Unknown depmode $depmode" 1>&2 616 | exit 1 617 | ;; 618 | esac 619 | 620 | exit 0 621 | 622 | # Local Variables: 623 | # mode: shell-script 624 | # sh-indentation: 2 625 | # eval: (add-hook 'write-file-hooks 'time-stamp) 626 | # time-stamp-start: "scriptversion=" 627 | # time-stamp-format: "%:y-%02m-%02d.%02H" 628 | # time-stamp-time-zone: "UTC" 629 | # time-stamp-end: "; # UTC" 630 | # End: 631 | -------------------------------------------------------------------------------- /Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6 | # Inc. 7 | # This Makefile.in is free software; the Free Software Foundation 8 | # gives unlimited permission to copy and/or distribute it, 9 | # with or without modifications, as long as this notice is preserved. 10 | 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 14 | # PARTICULAR PURPOSE. 15 | 16 | @SET_MAKE@ 17 | VPATH = @srcdir@ 18 | pkgdatadir = $(datadir)/@PACKAGE@ 19 | pkgincludedir = $(includedir)/@PACKAGE@ 20 | pkglibdir = $(libdir)/@PACKAGE@ 21 | pkglibexecdir = $(libexecdir)/@PACKAGE@ 22 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 23 | install_sh_DATA = $(install_sh) -c -m 644 24 | install_sh_PROGRAM = $(install_sh) -c 25 | install_sh_SCRIPT = $(install_sh) -c 26 | INSTALL_HEADER = $(INSTALL_DATA) 27 | transform = $(program_transform_name) 28 | NORMAL_INSTALL = : 29 | PRE_INSTALL = : 30 | POST_INSTALL = : 31 | NORMAL_UNINSTALL = : 32 | PRE_UNINSTALL = : 33 | POST_UNINSTALL = : 34 | build_triplet = @build@ 35 | host_triplet = @host@ 36 | target_triplet = @target@ 37 | subdir = . 38 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ 39 | $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ 40 | ChangeLog INSTALL NEWS compile config.guess config.sub depcomp \ 41 | install-sh ltmain.sh missing 42 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 43 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac 44 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 45 | $(ACLOCAL_M4) 46 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ 47 | configure.lineno config.status.lineno 48 | mkinstalldirs = $(install_sh) -d 49 | CONFIG_CLEAN_FILES = 50 | CONFIG_CLEAN_VPATH_FILES = 51 | SOURCES = 52 | DIST_SOURCES = 53 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ 54 | html-recursive info-recursive install-data-recursive \ 55 | install-dvi-recursive install-exec-recursive \ 56 | install-html-recursive install-info-recursive \ 57 | install-pdf-recursive install-ps-recursive install-recursive \ 58 | installcheck-recursive installdirs-recursive pdf-recursive \ 59 | ps-recursive uninstall-recursive 60 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ 61 | distclean-recursive maintainer-clean-recursive 62 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ 63 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ 64 | distdir dist dist-all distcheck 65 | ETAGS = etags 66 | CTAGS = ctags 67 | DIST_SUBDIRS = $(SUBDIRS) 68 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 69 | distdir = $(PACKAGE)-$(VERSION) 70 | top_distdir = $(distdir) 71 | am__remove_distdir = \ 72 | { test ! -d "$(distdir)" \ 73 | || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ 74 | && rm -fr "$(distdir)"; }; } 75 | am__relativize = \ 76 | dir0=`pwd`; \ 77 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ 78 | sed_rest='s,^[^/]*/*,,'; \ 79 | sed_last='s,^.*/\([^/]*\)$$,\1,'; \ 80 | sed_butlast='s,/*[^/]*$$,,'; \ 81 | while test -n "$$dir1"; do \ 82 | first=`echo "$$dir1" | sed -e "$$sed_first"`; \ 83 | if test "$$first" != "."; then \ 84 | if test "$$first" = ".."; then \ 85 | dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ 86 | dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ 87 | else \ 88 | first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ 89 | if test "$$first2" = "$$first"; then \ 90 | dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ 91 | else \ 92 | dir2="../$$dir2"; \ 93 | fi; \ 94 | dir0="$$dir0"/"$$first"; \ 95 | fi; \ 96 | fi; \ 97 | dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ 98 | done; \ 99 | reldir="$$dir2" 100 | DIST_ARCHIVES = $(distdir).tar.gz 101 | GZIP_ENV = --best 102 | distuninstallcheck_listfiles = find . -type f -print 103 | distcleancheck_listfiles = find . -type f -print 104 | ACLOCAL = @ACLOCAL@ 105 | AMTAR = @AMTAR@ 106 | AR = @AR@ 107 | AUTOCONF = @AUTOCONF@ 108 | AUTOHEADER = @AUTOHEADER@ 109 | AUTOMAKE = @AUTOMAKE@ 110 | AWK = @AWK@ 111 | CC = @CC@ 112 | CCDEPMODE = @CCDEPMODE@ 113 | CFLAGS = @CFLAGS@ 114 | CPP = @CPP@ 115 | CPPFLAGS = @CPPFLAGS@ 116 | CYGPATH_W = @CYGPATH_W@ 117 | DEFS = @DEFS@ 118 | DEPDIR = @DEPDIR@ 119 | DSYMUTIL = @DSYMUTIL@ 120 | DUMPBIN = @DUMPBIN@ 121 | ECHO_C = @ECHO_C@ 122 | ECHO_N = @ECHO_N@ 123 | ECHO_T = @ECHO_T@ 124 | EGREP = @EGREP@ 125 | EXEEXT = @EXEEXT@ 126 | FGREP = @FGREP@ 127 | GLIB_CFLAGS = @GLIB_CFLAGS@ 128 | GLIB_LIBS = @GLIB_LIBS@ 129 | GREP = @GREP@ 130 | INSTALL = @INSTALL@ 131 | INSTALL_DATA = @INSTALL_DATA@ 132 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 133 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 134 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 135 | LD = @LD@ 136 | LDFLAGS = @LDFLAGS@ 137 | LIBCURL_CFLAGS = @LIBCURL_CFLAGS@ 138 | LIBCURL_LIBS = @LIBCURL_LIBS@ 139 | LIBOBJS = @LIBOBJS@ 140 | LIBS = @LIBS@ 141 | LIBTOOL = @LIBTOOL@ 142 | LIPO = @LIPO@ 143 | LN_S = @LN_S@ 144 | LTLIBOBJS = @LTLIBOBJS@ 145 | MAKEINFO = @MAKEINFO@ 146 | MKDIR_P = @MKDIR_P@ 147 | NM = @NM@ 148 | NMEDIT = @NMEDIT@ 149 | OBJDUMP = @OBJDUMP@ 150 | OBJEXT = @OBJEXT@ 151 | OTOOL = @OTOOL@ 152 | OTOOL64 = @OTOOL64@ 153 | PACKAGE = @PACKAGE@ 154 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 155 | PACKAGE_NAME = @PACKAGE_NAME@ 156 | PACKAGE_STRING = @PACKAGE_STRING@ 157 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 158 | PACKAGE_URL = @PACKAGE_URL@ 159 | PACKAGE_VERSION = @PACKAGE_VERSION@ 160 | PATH_SEPARATOR = @PATH_SEPARATOR@ 161 | PIDGIN_CFLAGS = @PIDGIN_CFLAGS@ 162 | PIDGIN_LIBS = @PIDGIN_LIBS@ 163 | PKG_CONFIG = @PKG_CONFIG@ 164 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ 165 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ 166 | PLUGINDIR = @PLUGINDIR@ 167 | RANLIB = @RANLIB@ 168 | SED = @SED@ 169 | SET_MAKE = @SET_MAKE@ 170 | SHELL = @SHELL@ 171 | STRIP = @STRIP@ 172 | VERSION = @VERSION@ 173 | WEBKIT_CFLAGS = @WEBKIT_CFLAGS@ 174 | WEBKIT_LIBS = @WEBKIT_LIBS@ 175 | abs_builddir = @abs_builddir@ 176 | abs_srcdir = @abs_srcdir@ 177 | abs_top_builddir = @abs_top_builddir@ 178 | abs_top_srcdir = @abs_top_srcdir@ 179 | ac_ct_CC = @ac_ct_CC@ 180 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 181 | am__include = @am__include@ 182 | am__leading_dot = @am__leading_dot@ 183 | am__quote = @am__quote@ 184 | am__tar = @am__tar@ 185 | am__untar = @am__untar@ 186 | bindir = @bindir@ 187 | build = @build@ 188 | build_alias = @build_alias@ 189 | build_cpu = @build_cpu@ 190 | build_os = @build_os@ 191 | build_vendor = @build_vendor@ 192 | builddir = @builddir@ 193 | datadir = @datadir@ 194 | datarootdir = @datarootdir@ 195 | docdir = @docdir@ 196 | dvidir = @dvidir@ 197 | exec_prefix = @exec_prefix@ 198 | host = @host@ 199 | host_alias = @host_alias@ 200 | host_cpu = @host_cpu@ 201 | host_os = @host_os@ 202 | host_vendor = @host_vendor@ 203 | htmldir = @htmldir@ 204 | includedir = @includedir@ 205 | infodir = @infodir@ 206 | install_sh = @install_sh@ 207 | libdir = @libdir@ 208 | libexecdir = @libexecdir@ 209 | localedir = @localedir@ 210 | localstatedir = @localstatedir@ 211 | lt_ECHO = @lt_ECHO@ 212 | mandir = @mandir@ 213 | mkdir_p = @mkdir_p@ 214 | oldincludedir = @oldincludedir@ 215 | pdfdir = @pdfdir@ 216 | prefix = @prefix@ 217 | program_transform_name = @program_transform_name@ 218 | psdir = @psdir@ 219 | sbindir = @sbindir@ 220 | sharedstatedir = @sharedstatedir@ 221 | srcdir = @srcdir@ 222 | sysconfdir = @sysconfdir@ 223 | target = @target@ 224 | target_alias = @target_alias@ 225 | target_cpu = @target_cpu@ 226 | target_os = @target_os@ 227 | target_vendor = @target_vendor@ 228 | top_build_prefix = @top_build_prefix@ 229 | top_builddir = @top_builddir@ 230 | top_srcdir = @top_srcdir@ 231 | ACLOCAL_AMFLAGS = -I m4 232 | SUBDIRS = src 233 | all: all-recursive 234 | 235 | .SUFFIXES: 236 | am--refresh: 237 | @: 238 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 239 | @for dep in $?; do \ 240 | case '$(am__configure_deps)' in \ 241 | *$$dep*) \ 242 | echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ 243 | $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ 244 | && exit 0; \ 245 | exit 1;; \ 246 | esac; \ 247 | done; \ 248 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ 249 | $(am__cd) $(top_srcdir) && \ 250 | $(AUTOMAKE) --gnu Makefile 251 | .PRECIOUS: Makefile 252 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 253 | @case '$?' in \ 254 | *config.status*) \ 255 | echo ' $(SHELL) ./config.status'; \ 256 | $(SHELL) ./config.status;; \ 257 | *) \ 258 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ 259 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ 260 | esac; 261 | 262 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 263 | $(SHELL) ./config.status --recheck 264 | 265 | $(top_srcdir)/configure: $(am__configure_deps) 266 | $(am__cd) $(srcdir) && $(AUTOCONF) 267 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) 268 | $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 269 | $(am__aclocal_m4_deps): 270 | 271 | mostlyclean-libtool: 272 | -rm -f *.lo 273 | 274 | clean-libtool: 275 | -rm -rf .libs _libs 276 | 277 | distclean-libtool: 278 | -rm -f libtool config.lt 279 | 280 | # This directory's subdirectories are mostly independent; you can cd 281 | # into them and run `make' without going through this Makefile. 282 | # To change the values of `make' variables: instead of editing Makefiles, 283 | # (1) if the variable is set in `config.status', edit `config.status' 284 | # (which will cause the Makefiles to be regenerated when you run `make'); 285 | # (2) otherwise, pass the desired values on the `make' command line. 286 | $(RECURSIVE_TARGETS): 287 | @fail= failcom='exit 1'; \ 288 | for f in x $$MAKEFLAGS; do \ 289 | case $$f in \ 290 | *=* | --[!k]*);; \ 291 | *k*) failcom='fail=yes';; \ 292 | esac; \ 293 | done; \ 294 | dot_seen=no; \ 295 | target=`echo $@ | sed s/-recursive//`; \ 296 | list='$(SUBDIRS)'; for subdir in $$list; do \ 297 | echo "Making $$target in $$subdir"; \ 298 | if test "$$subdir" = "."; then \ 299 | dot_seen=yes; \ 300 | local_target="$$target-am"; \ 301 | else \ 302 | local_target="$$target"; \ 303 | fi; \ 304 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 305 | || eval $$failcom; \ 306 | done; \ 307 | if test "$$dot_seen" = "no"; then \ 308 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 309 | fi; test -z "$$fail" 310 | 311 | $(RECURSIVE_CLEAN_TARGETS): 312 | @fail= failcom='exit 1'; \ 313 | for f in x $$MAKEFLAGS; do \ 314 | case $$f in \ 315 | *=* | --[!k]*);; \ 316 | *k*) failcom='fail=yes';; \ 317 | esac; \ 318 | done; \ 319 | dot_seen=no; \ 320 | case "$@" in \ 321 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 322 | *) list='$(SUBDIRS)' ;; \ 323 | esac; \ 324 | rev=''; for subdir in $$list; do \ 325 | if test "$$subdir" = "."; then :; else \ 326 | rev="$$subdir $$rev"; \ 327 | fi; \ 328 | done; \ 329 | rev="$$rev ."; \ 330 | target=`echo $@ | sed s/-recursive//`; \ 331 | for subdir in $$rev; do \ 332 | echo "Making $$target in $$subdir"; \ 333 | if test "$$subdir" = "."; then \ 334 | local_target="$$target-am"; \ 335 | else \ 336 | local_target="$$target"; \ 337 | fi; \ 338 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 339 | || eval $$failcom; \ 340 | done && test -z "$$fail" 341 | tags-recursive: 342 | list='$(SUBDIRS)'; for subdir in $$list; do \ 343 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 344 | done 345 | ctags-recursive: 346 | list='$(SUBDIRS)'; for subdir in $$list; do \ 347 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 348 | done 349 | 350 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 351 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 352 | unique=`for i in $$list; do \ 353 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 354 | done | \ 355 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 356 | END { if (nonempty) { for (i in files) print i; }; }'`; \ 357 | mkid -fID $$unique 358 | tags: TAGS 359 | 360 | TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 361 | $(TAGS_FILES) $(LISP) 362 | set x; \ 363 | here=`pwd`; \ 364 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ 365 | include_option=--etags-include; \ 366 | empty_fix=.; \ 367 | else \ 368 | include_option=--include; \ 369 | empty_fix=; \ 370 | fi; \ 371 | list='$(SUBDIRS)'; for subdir in $$list; do \ 372 | if test "$$subdir" = .; then :; else \ 373 | test ! -f $$subdir/TAGS || \ 374 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ 375 | fi; \ 376 | done; \ 377 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 378 | unique=`for i in $$list; do \ 379 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 380 | done | \ 381 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 382 | END { if (nonempty) { for (i in files) print i; }; }'`; \ 383 | shift; \ 384 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ 385 | test -n "$$unique" || unique=$$empty_fix; \ 386 | if test $$# -gt 0; then \ 387 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 388 | "$$@" $$unique; \ 389 | else \ 390 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 391 | $$unique; \ 392 | fi; \ 393 | fi 394 | ctags: CTAGS 395 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 396 | $(TAGS_FILES) $(LISP) 397 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 398 | unique=`for i in $$list; do \ 399 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 400 | done | \ 401 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 402 | END { if (nonempty) { for (i in files) print i; }; }'`; \ 403 | test -z "$(CTAGS_ARGS)$$unique" \ 404 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 405 | $$unique 406 | 407 | GTAGS: 408 | here=`$(am__cd) $(top_builddir) && pwd` \ 409 | && $(am__cd) $(top_srcdir) \ 410 | && gtags -i $(GTAGS_ARGS) "$$here" 411 | 412 | distclean-tags: 413 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 414 | 415 | distdir: $(DISTFILES) 416 | $(am__remove_distdir) 417 | test -d "$(distdir)" || mkdir "$(distdir)" 418 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 419 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 420 | list='$(DISTFILES)'; \ 421 | dist_files=`for file in $$list; do echo $$file; done | \ 422 | sed -e "s|^$$srcdirstrip/||;t" \ 423 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ 424 | case $$dist_files in \ 425 | */*) $(MKDIR_P) `echo "$$dist_files" | \ 426 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ 427 | sort -u` ;; \ 428 | esac; \ 429 | for file in $$dist_files; do \ 430 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 431 | if test -d $$d/$$file; then \ 432 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 433 | if test -d "$(distdir)/$$file"; then \ 434 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 435 | fi; \ 436 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 437 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ 438 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 439 | fi; \ 440 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ 441 | else \ 442 | test -f "$(distdir)/$$file" \ 443 | || cp -p $$d/$$file "$(distdir)/$$file" \ 444 | || exit 1; \ 445 | fi; \ 446 | done 447 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 448 | if test "$$subdir" = .; then :; else \ 449 | test -d "$(distdir)/$$subdir" \ 450 | || $(MKDIR_P) "$(distdir)/$$subdir" \ 451 | || exit 1; \ 452 | fi; \ 453 | done 454 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 455 | if test "$$subdir" = .; then :; else \ 456 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ 457 | $(am__relativize); \ 458 | new_distdir=$$reldir; \ 459 | dir1=$$subdir; dir2="$(top_distdir)"; \ 460 | $(am__relativize); \ 461 | new_top_distdir=$$reldir; \ 462 | echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ 463 | echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ 464 | ($(am__cd) $$subdir && \ 465 | $(MAKE) $(AM_MAKEFLAGS) \ 466 | top_distdir="$$new_top_distdir" \ 467 | distdir="$$new_distdir" \ 468 | am__remove_distdir=: \ 469 | am__skip_length_check=: \ 470 | am__skip_mode_fix=: \ 471 | distdir) \ 472 | || exit 1; \ 473 | fi; \ 474 | done 475 | -test -n "$(am__skip_mode_fix)" \ 476 | || find "$(distdir)" -type d ! -perm -755 \ 477 | -exec chmod u+rwx,go+rx {} \; -o \ 478 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 479 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ 480 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ 481 | || chmod -R a+r "$(distdir)" 482 | dist-gzip: distdir 483 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 484 | $(am__remove_distdir) 485 | 486 | dist-bzip2: distdir 487 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 488 | $(am__remove_distdir) 489 | 490 | dist-lzma: distdir 491 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma 492 | $(am__remove_distdir) 493 | 494 | dist-xz: distdir 495 | tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz 496 | $(am__remove_distdir) 497 | 498 | dist-tarZ: distdir 499 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z 500 | $(am__remove_distdir) 501 | 502 | dist-shar: distdir 503 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz 504 | $(am__remove_distdir) 505 | 506 | dist-zip: distdir 507 | -rm -f $(distdir).zip 508 | zip -rq $(distdir).zip $(distdir) 509 | $(am__remove_distdir) 510 | 511 | dist dist-all: distdir 512 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 513 | $(am__remove_distdir) 514 | 515 | # This target untars the dist file and tries a VPATH configuration. Then 516 | # it guarantees that the distribution is self-contained by making another 517 | # tarfile. 518 | distcheck: dist 519 | case '$(DIST_ARCHIVES)' in \ 520 | *.tar.gz*) \ 521 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ 522 | *.tar.bz2*) \ 523 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ 524 | *.tar.lzma*) \ 525 | lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ 526 | *.tar.xz*) \ 527 | xz -dc $(distdir).tar.xz | $(am__untar) ;;\ 528 | *.tar.Z*) \ 529 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ 530 | *.shar.gz*) \ 531 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ 532 | *.zip*) \ 533 | unzip $(distdir).zip ;;\ 534 | esac 535 | chmod -R a-w $(distdir); chmod a+w $(distdir) 536 | mkdir $(distdir)/_build 537 | mkdir $(distdir)/_inst 538 | chmod a-w $(distdir) 539 | test -d $(distdir)/_build || exit 0; \ 540 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ 541 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ 542 | && am__cwd=`pwd` \ 543 | && $(am__cd) $(distdir)/_build \ 544 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ 545 | $(DISTCHECK_CONFIGURE_FLAGS) \ 546 | && $(MAKE) $(AM_MAKEFLAGS) \ 547 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ 548 | && $(MAKE) $(AM_MAKEFLAGS) check \ 549 | && $(MAKE) $(AM_MAKEFLAGS) install \ 550 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 551 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ 552 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ 553 | distuninstallcheck \ 554 | && chmod -R a-w "$$dc_install_base" \ 555 | && ({ \ 556 | (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ 557 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ 558 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ 559 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ 560 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ 561 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ 562 | && rm -rf "$$dc_destdir" \ 563 | && $(MAKE) $(AM_MAKEFLAGS) dist \ 564 | && rm -rf $(DIST_ARCHIVES) \ 565 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ 566 | && cd "$$am__cwd" \ 567 | || exit 1 568 | $(am__remove_distdir) 569 | @(echo "$(distdir) archives ready for distribution: "; \ 570 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ 571 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' 572 | distuninstallcheck: 573 | @$(am__cd) '$(distuninstallcheck_dir)' \ 574 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ 575 | || { echo "ERROR: files left after uninstall:" ; \ 576 | if test -n "$(DESTDIR)"; then \ 577 | echo " (check DESTDIR support)"; \ 578 | fi ; \ 579 | $(distuninstallcheck_listfiles) ; \ 580 | exit 1; } >&2 581 | distcleancheck: distclean 582 | @if test '$(srcdir)' = . ; then \ 583 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ 584 | exit 1 ; \ 585 | fi 586 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ 587 | || { echo "ERROR: files left in build directory after distclean:" ; \ 588 | $(distcleancheck_listfiles) ; \ 589 | exit 1; } >&2 590 | check-am: all-am 591 | check: check-recursive 592 | all-am: Makefile 593 | installdirs: installdirs-recursive 594 | installdirs-am: 595 | install: install-recursive 596 | install-exec: install-exec-recursive 597 | install-data: install-data-recursive 598 | uninstall: uninstall-recursive 599 | 600 | install-am: all-am 601 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 602 | 603 | installcheck: installcheck-recursive 604 | install-strip: 605 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 606 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 607 | `test -z '$(STRIP)' || \ 608 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 609 | mostlyclean-generic: 610 | 611 | clean-generic: 612 | 613 | distclean-generic: 614 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 615 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) 616 | 617 | maintainer-clean-generic: 618 | @echo "This command is intended for maintainers to use" 619 | @echo "it deletes files that may require special tools to rebuild." 620 | clean: clean-recursive 621 | 622 | clean-am: clean-generic clean-libtool mostlyclean-am 623 | 624 | distclean: distclean-recursive 625 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) 626 | -rm -f Makefile 627 | distclean-am: clean-am distclean-generic distclean-libtool \ 628 | distclean-tags 629 | 630 | dvi: dvi-recursive 631 | 632 | dvi-am: 633 | 634 | html: html-recursive 635 | 636 | html-am: 637 | 638 | info: info-recursive 639 | 640 | info-am: 641 | 642 | install-data-am: 643 | 644 | install-dvi: install-dvi-recursive 645 | 646 | install-dvi-am: 647 | 648 | install-exec-am: 649 | 650 | install-html: install-html-recursive 651 | 652 | install-html-am: 653 | 654 | install-info: install-info-recursive 655 | 656 | install-info-am: 657 | 658 | install-man: 659 | 660 | install-pdf: install-pdf-recursive 661 | 662 | install-pdf-am: 663 | 664 | install-ps: install-ps-recursive 665 | 666 | install-ps-am: 667 | 668 | installcheck-am: 669 | 670 | maintainer-clean: maintainer-clean-recursive 671 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) 672 | -rm -rf $(top_srcdir)/autom4te.cache 673 | -rm -f Makefile 674 | maintainer-clean-am: distclean-am maintainer-clean-generic 675 | 676 | mostlyclean: mostlyclean-recursive 677 | 678 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool 679 | 680 | pdf: pdf-recursive 681 | 682 | pdf-am: 683 | 684 | ps: ps-recursive 685 | 686 | ps-am: 687 | 688 | uninstall-am: 689 | 690 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ 691 | install-am install-strip tags-recursive 692 | 693 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ 694 | all all-am am--refresh check check-am clean clean-generic \ 695 | clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ 696 | dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ 697 | distcheck distclean distclean-generic distclean-libtool \ 698 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ 699 | dvi-am html html-am info info-am install install-am \ 700 | install-data install-data-am install-dvi install-dvi-am \ 701 | install-exec install-exec-am install-html install-html-am \ 702 | install-info install-info-am install-man install-pdf \ 703 | install-pdf-am install-ps install-ps-am install-strip \ 704 | installcheck installcheck-am installdirs installdirs-am \ 705 | maintainer-clean maintainer-clean-generic mostlyclean \ 706 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 707 | tags tags-recursive uninstall uninstall-am 708 | 709 | 710 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 711 | # Otherwise a system limit (for SysV at least) may be exceeded. 712 | .NOEXPORT: 713 | -------------------------------------------------------------------------------- /src/websites/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6 | # Inc. 7 | # This Makefile.in is free software; the Free Software Foundation 8 | # gives unlimited permission to copy and/or distribute it, 9 | # with or without modifications, as long as this notice is preserved. 10 | 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 14 | # PARTICULAR PURPOSE. 15 | 16 | @SET_MAKE@ 17 | 18 | VPATH = @srcdir@ 19 | pkgdatadir = $(datadir)/@PACKAGE@ 20 | pkgincludedir = $(includedir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ 23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 24 | install_sh_DATA = $(install_sh) -c -m 644 25 | install_sh_PROGRAM = $(install_sh) -c 26 | install_sh_SCRIPT = $(install_sh) -c 27 | INSTALL_HEADER = $(INSTALL_DATA) 28 | transform = $(program_transform_name) 29 | NORMAL_INSTALL = : 30 | PRE_INSTALL = : 31 | POST_INSTALL = : 32 | NORMAL_UNINSTALL = : 33 | PRE_UNINSTALL = : 34 | POST_UNINSTALL = : 35 | build_triplet = @build@ 36 | host_triplet = @host@ 37 | target_triplet = @target@ 38 | subdir = src/websites 39 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 40 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 41 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac 42 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 43 | $(ACLOCAL_M4) 44 | mkinstalldirs = $(install_sh) -d 45 | CONFIG_CLEAN_FILES = 46 | CONFIG_CLEAN_VPATH_FILES = 47 | LTLIBRARIES = $(noinst_LTLIBRARIES) 48 | libwebsites_la_LIBADD = 49 | am_libwebsites_la_OBJECTS = libwebsites_la-collegehumor.lo \ 50 | libwebsites_la-dailymotion.lo libwebsites_la-metacafe.lo \ 51 | libwebsites_la-myspace-video.lo \ 52 | libwebsites_la-trilulilu-audio.lo \ 53 | libwebsites_la-trilulilu-image.lo \ 54 | libwebsites_la-trilulilu-video.lo libwebsites_la-vimeo.lo \ 55 | libwebsites_la-youtube.lo libwebsites_la-youtube-short.lo 56 | libwebsites_la_OBJECTS = $(am_libwebsites_la_OBJECTS) 57 | libwebsites_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 58 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libwebsites_la_CFLAGS) \ 59 | $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 60 | DEFAULT_INCLUDES = -I.@am__isrc@ 61 | depcomp = $(SHELL) $(top_srcdir)/depcomp 62 | am__depfiles_maybe = depfiles 63 | am__mv = mv -f 64 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 65 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 66 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 67 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 68 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 69 | CCLD = $(CC) 70 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 71 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ 72 | $(LDFLAGS) -o $@ 73 | SOURCES = $(libwebsites_la_SOURCES) 74 | DIST_SOURCES = $(libwebsites_la_SOURCES) 75 | ETAGS = etags 76 | CTAGS = ctags 77 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 78 | ACLOCAL = @ACLOCAL@ 79 | AMTAR = @AMTAR@ 80 | AR = @AR@ 81 | AUTOCONF = @AUTOCONF@ 82 | AUTOHEADER = @AUTOHEADER@ 83 | AUTOMAKE = @AUTOMAKE@ 84 | AWK = @AWK@ 85 | CC = @CC@ 86 | CCDEPMODE = @CCDEPMODE@ 87 | CFLAGS = @CFLAGS@ 88 | CPP = @CPP@ 89 | CPPFLAGS = @CPPFLAGS@ 90 | CYGPATH_W = @CYGPATH_W@ 91 | DEFS = @DEFS@ 92 | DEPDIR = @DEPDIR@ 93 | DSYMUTIL = @DSYMUTIL@ 94 | DUMPBIN = @DUMPBIN@ 95 | ECHO_C = @ECHO_C@ 96 | ECHO_N = @ECHO_N@ 97 | ECHO_T = @ECHO_T@ 98 | EGREP = @EGREP@ 99 | EXEEXT = @EXEEXT@ 100 | FGREP = @FGREP@ 101 | GLIB_CFLAGS = @GLIB_CFLAGS@ 102 | GLIB_LIBS = @GLIB_LIBS@ 103 | GREP = @GREP@ 104 | INSTALL = @INSTALL@ 105 | INSTALL_DATA = @INSTALL_DATA@ 106 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 107 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 108 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 109 | LD = @LD@ 110 | LDFLAGS = @LDFLAGS@ 111 | LIBCURL_CFLAGS = @LIBCURL_CFLAGS@ 112 | LIBCURL_LIBS = @LIBCURL_LIBS@ 113 | LIBOBJS = @LIBOBJS@ 114 | LIBS = @LIBS@ 115 | LIBTOOL = @LIBTOOL@ 116 | LIPO = @LIPO@ 117 | LN_S = @LN_S@ 118 | LTLIBOBJS = @LTLIBOBJS@ 119 | MAKEINFO = @MAKEINFO@ 120 | MKDIR_P = @MKDIR_P@ 121 | NM = @NM@ 122 | NMEDIT = @NMEDIT@ 123 | OBJDUMP = @OBJDUMP@ 124 | OBJEXT = @OBJEXT@ 125 | OTOOL = @OTOOL@ 126 | OTOOL64 = @OTOOL64@ 127 | PACKAGE = @PACKAGE@ 128 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 129 | PACKAGE_NAME = @PACKAGE_NAME@ 130 | PACKAGE_STRING = @PACKAGE_STRING@ 131 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 132 | PACKAGE_URL = @PACKAGE_URL@ 133 | PACKAGE_VERSION = @PACKAGE_VERSION@ 134 | PATH_SEPARATOR = @PATH_SEPARATOR@ 135 | PIDGIN_CFLAGS = @PIDGIN_CFLAGS@ 136 | PIDGIN_LIBS = @PIDGIN_LIBS@ 137 | PKG_CONFIG = @PKG_CONFIG@ 138 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ 139 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ 140 | PLUGINDIR = @PLUGINDIR@ 141 | RANLIB = @RANLIB@ 142 | SED = @SED@ 143 | SET_MAKE = @SET_MAKE@ 144 | SHELL = @SHELL@ 145 | STRIP = @STRIP@ 146 | VERSION = @VERSION@ 147 | WEBKIT_CFLAGS = @WEBKIT_CFLAGS@ 148 | WEBKIT_LIBS = @WEBKIT_LIBS@ 149 | abs_builddir = @abs_builddir@ 150 | abs_srcdir = @abs_srcdir@ 151 | abs_top_builddir = @abs_top_builddir@ 152 | abs_top_srcdir = @abs_top_srcdir@ 153 | ac_ct_CC = @ac_ct_CC@ 154 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 155 | am__include = @am__include@ 156 | am__leading_dot = @am__leading_dot@ 157 | am__quote = @am__quote@ 158 | am__tar = @am__tar@ 159 | am__untar = @am__untar@ 160 | bindir = @bindir@ 161 | build = @build@ 162 | build_alias = @build_alias@ 163 | build_cpu = @build_cpu@ 164 | build_os = @build_os@ 165 | build_vendor = @build_vendor@ 166 | builddir = @builddir@ 167 | datadir = @datadir@ 168 | datarootdir = @datarootdir@ 169 | docdir = @docdir@ 170 | dvidir = @dvidir@ 171 | exec_prefix = @exec_prefix@ 172 | host = @host@ 173 | host_alias = @host_alias@ 174 | host_cpu = @host_cpu@ 175 | host_os = @host_os@ 176 | host_vendor = @host_vendor@ 177 | htmldir = @htmldir@ 178 | includedir = @includedir@ 179 | infodir = @infodir@ 180 | install_sh = @install_sh@ 181 | libdir = @libdir@ 182 | libexecdir = @libexecdir@ 183 | localedir = @localedir@ 184 | localstatedir = @localstatedir@ 185 | lt_ECHO = @lt_ECHO@ 186 | mandir = @mandir@ 187 | mkdir_p = @mkdir_p@ 188 | oldincludedir = @oldincludedir@ 189 | pdfdir = @pdfdir@ 190 | prefix = @prefix@ 191 | program_transform_name = @program_transform_name@ 192 | psdir = @psdir@ 193 | sbindir = @sbindir@ 194 | sharedstatedir = @sharedstatedir@ 195 | srcdir = @srcdir@ 196 | sysconfdir = @sysconfdir@ 197 | target = @target@ 198 | target_alias = @target_alias@ 199 | target_cpu = @target_cpu@ 200 | target_os = @target_os@ 201 | target_vendor = @target_vendor@ 202 | top_build_prefix = @top_build_prefix@ 203 | top_builddir = @top_builddir@ 204 | top_srcdir = @top_srcdir@ 205 | PLUGIN_CFLAGS = @GLIB_CFLAGS@ @PIDGIN_CFLAGS@ @WEBKIT_CFLAGS@ @LIBCURL_CFLAGS@ 206 | noinst_LTLIBRARIES = libwebsites.la 207 | libwebsites_la_SOURCES = \ 208 | collegehumor.c \ 209 | dailymotion.c \ 210 | metacafe.c \ 211 | myspace-video.c \ 212 | trilulilu-audio.c \ 213 | trilulilu-image.c \ 214 | trilulilu-video.c \ 215 | vimeo.c \ 216 | youtube.c \ 217 | youtube-short.c 218 | 219 | libwebsites_la_CFLAGS = $(PLUGIN_CFLAGS) -I.. 220 | all: all-am 221 | 222 | .SUFFIXES: 223 | .SUFFIXES: .c .lo .o .obj 224 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 225 | @for dep in $?; do \ 226 | case '$(am__configure_deps)' in \ 227 | *$$dep*) \ 228 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ 229 | && { if test -f $@; then exit 0; else break; fi; }; \ 230 | exit 1;; \ 231 | esac; \ 232 | done; \ 233 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/websites/Makefile'; \ 234 | $(am__cd) $(top_srcdir) && \ 235 | $(AUTOMAKE) --gnu src/websites/Makefile 236 | .PRECIOUS: Makefile 237 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 238 | @case '$?' in \ 239 | *config.status*) \ 240 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 241 | *) \ 242 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 243 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 244 | esac; 245 | 246 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 247 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 248 | 249 | $(top_srcdir)/configure: $(am__configure_deps) 250 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 251 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) 252 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 253 | $(am__aclocal_m4_deps): 254 | 255 | clean-noinstLTLIBRARIES: 256 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 257 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 258 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 259 | test "$$dir" != "$$p" || dir=.; \ 260 | echo "rm -f \"$${dir}/so_locations\""; \ 261 | rm -f "$${dir}/so_locations"; \ 262 | done 263 | libwebsites.la: $(libwebsites_la_OBJECTS) $(libwebsites_la_DEPENDENCIES) 264 | $(libwebsites_la_LINK) $(libwebsites_la_OBJECTS) $(libwebsites_la_LIBADD) $(LIBS) 265 | 266 | mostlyclean-compile: 267 | -rm -f *.$(OBJEXT) 268 | 269 | distclean-compile: 270 | -rm -f *.tab.c 271 | 272 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-collegehumor.Plo@am__quote@ 273 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-dailymotion.Plo@am__quote@ 274 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-metacafe.Plo@am__quote@ 275 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-myspace-video.Plo@am__quote@ 276 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-trilulilu-audio.Plo@am__quote@ 277 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-trilulilu-image.Plo@am__quote@ 278 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-trilulilu-video.Plo@am__quote@ 279 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-vimeo.Plo@am__quote@ 280 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-youtube-short.Plo@am__quote@ 281 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libwebsites_la-youtube.Plo@am__quote@ 282 | 283 | .c.o: 284 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 285 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 286 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 287 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 288 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< 289 | 290 | .c.obj: 291 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` 292 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 293 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 294 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 295 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` 296 | 297 | .c.lo: 298 | @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 299 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 300 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 301 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 302 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< 303 | 304 | libwebsites_la-collegehumor.lo: collegehumor.c 305 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-collegehumor.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-collegehumor.Tpo -c -o libwebsites_la-collegehumor.lo `test -f 'collegehumor.c' || echo '$(srcdir)/'`collegehumor.c 306 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-collegehumor.Tpo $(DEPDIR)/libwebsites_la-collegehumor.Plo 307 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='collegehumor.c' object='libwebsites_la-collegehumor.lo' libtool=yes @AMDEPBACKSLASH@ 308 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 309 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-collegehumor.lo `test -f 'collegehumor.c' || echo '$(srcdir)/'`collegehumor.c 310 | 311 | libwebsites_la-dailymotion.lo: dailymotion.c 312 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-dailymotion.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-dailymotion.Tpo -c -o libwebsites_la-dailymotion.lo `test -f 'dailymotion.c' || echo '$(srcdir)/'`dailymotion.c 313 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-dailymotion.Tpo $(DEPDIR)/libwebsites_la-dailymotion.Plo 314 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dailymotion.c' object='libwebsites_la-dailymotion.lo' libtool=yes @AMDEPBACKSLASH@ 315 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 316 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-dailymotion.lo `test -f 'dailymotion.c' || echo '$(srcdir)/'`dailymotion.c 317 | 318 | libwebsites_la-metacafe.lo: metacafe.c 319 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-metacafe.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-metacafe.Tpo -c -o libwebsites_la-metacafe.lo `test -f 'metacafe.c' || echo '$(srcdir)/'`metacafe.c 320 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-metacafe.Tpo $(DEPDIR)/libwebsites_la-metacafe.Plo 321 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='metacafe.c' object='libwebsites_la-metacafe.lo' libtool=yes @AMDEPBACKSLASH@ 322 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 323 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-metacafe.lo `test -f 'metacafe.c' || echo '$(srcdir)/'`metacafe.c 324 | 325 | libwebsites_la-myspace-video.lo: myspace-video.c 326 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-myspace-video.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-myspace-video.Tpo -c -o libwebsites_la-myspace-video.lo `test -f 'myspace-video.c' || echo '$(srcdir)/'`myspace-video.c 327 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-myspace-video.Tpo $(DEPDIR)/libwebsites_la-myspace-video.Plo 328 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='myspace-video.c' object='libwebsites_la-myspace-video.lo' libtool=yes @AMDEPBACKSLASH@ 329 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 330 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-myspace-video.lo `test -f 'myspace-video.c' || echo '$(srcdir)/'`myspace-video.c 331 | 332 | libwebsites_la-trilulilu-audio.lo: trilulilu-audio.c 333 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-trilulilu-audio.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-trilulilu-audio.Tpo -c -o libwebsites_la-trilulilu-audio.lo `test -f 'trilulilu-audio.c' || echo '$(srcdir)/'`trilulilu-audio.c 334 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-trilulilu-audio.Tpo $(DEPDIR)/libwebsites_la-trilulilu-audio.Plo 335 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='trilulilu-audio.c' object='libwebsites_la-trilulilu-audio.lo' libtool=yes @AMDEPBACKSLASH@ 336 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 337 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-trilulilu-audio.lo `test -f 'trilulilu-audio.c' || echo '$(srcdir)/'`trilulilu-audio.c 338 | 339 | libwebsites_la-trilulilu-image.lo: trilulilu-image.c 340 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-trilulilu-image.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-trilulilu-image.Tpo -c -o libwebsites_la-trilulilu-image.lo `test -f 'trilulilu-image.c' || echo '$(srcdir)/'`trilulilu-image.c 341 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-trilulilu-image.Tpo $(DEPDIR)/libwebsites_la-trilulilu-image.Plo 342 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='trilulilu-image.c' object='libwebsites_la-trilulilu-image.lo' libtool=yes @AMDEPBACKSLASH@ 343 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 344 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-trilulilu-image.lo `test -f 'trilulilu-image.c' || echo '$(srcdir)/'`trilulilu-image.c 345 | 346 | libwebsites_la-trilulilu-video.lo: trilulilu-video.c 347 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-trilulilu-video.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-trilulilu-video.Tpo -c -o libwebsites_la-trilulilu-video.lo `test -f 'trilulilu-video.c' || echo '$(srcdir)/'`trilulilu-video.c 348 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-trilulilu-video.Tpo $(DEPDIR)/libwebsites_la-trilulilu-video.Plo 349 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='trilulilu-video.c' object='libwebsites_la-trilulilu-video.lo' libtool=yes @AMDEPBACKSLASH@ 350 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 351 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-trilulilu-video.lo `test -f 'trilulilu-video.c' || echo '$(srcdir)/'`trilulilu-video.c 352 | 353 | libwebsites_la-vimeo.lo: vimeo.c 354 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-vimeo.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-vimeo.Tpo -c -o libwebsites_la-vimeo.lo `test -f 'vimeo.c' || echo '$(srcdir)/'`vimeo.c 355 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-vimeo.Tpo $(DEPDIR)/libwebsites_la-vimeo.Plo 356 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='vimeo.c' object='libwebsites_la-vimeo.lo' libtool=yes @AMDEPBACKSLASH@ 357 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 358 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-vimeo.lo `test -f 'vimeo.c' || echo '$(srcdir)/'`vimeo.c 359 | 360 | libwebsites_la-youtube.lo: youtube.c 361 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-youtube.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-youtube.Tpo -c -o libwebsites_la-youtube.lo `test -f 'youtube.c' || echo '$(srcdir)/'`youtube.c 362 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-youtube.Tpo $(DEPDIR)/libwebsites_la-youtube.Plo 363 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='youtube.c' object='libwebsites_la-youtube.lo' libtool=yes @AMDEPBACKSLASH@ 364 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 365 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-youtube.lo `test -f 'youtube.c' || echo '$(srcdir)/'`youtube.c 366 | 367 | libwebsites_la-youtube-short.lo: youtube-short.c 368 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -MT libwebsites_la-youtube-short.lo -MD -MP -MF $(DEPDIR)/libwebsites_la-youtube-short.Tpo -c -o libwebsites_la-youtube-short.lo `test -f 'youtube-short.c' || echo '$(srcdir)/'`youtube-short.c 369 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libwebsites_la-youtube-short.Tpo $(DEPDIR)/libwebsites_la-youtube-short.Plo 370 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='youtube-short.c' object='libwebsites_la-youtube-short.lo' libtool=yes @AMDEPBACKSLASH@ 371 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 372 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libwebsites_la_CFLAGS) $(CFLAGS) -c -o libwebsites_la-youtube-short.lo `test -f 'youtube-short.c' || echo '$(srcdir)/'`youtube-short.c 373 | 374 | mostlyclean-libtool: 375 | -rm -f *.lo 376 | 377 | clean-libtool: 378 | -rm -rf .libs _libs 379 | 380 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 381 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 382 | unique=`for i in $$list; do \ 383 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 384 | done | \ 385 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 386 | END { if (nonempty) { for (i in files) print i; }; }'`; \ 387 | mkid -fID $$unique 388 | tags: TAGS 389 | 390 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 391 | $(TAGS_FILES) $(LISP) 392 | set x; \ 393 | here=`pwd`; \ 394 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 395 | unique=`for i in $$list; do \ 396 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 397 | done | \ 398 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 399 | END { if (nonempty) { for (i in files) print i; }; }'`; \ 400 | shift; \ 401 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ 402 | test -n "$$unique" || unique=$$empty_fix; \ 403 | if test $$# -gt 0; then \ 404 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 405 | "$$@" $$unique; \ 406 | else \ 407 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 408 | $$unique; \ 409 | fi; \ 410 | fi 411 | ctags: CTAGS 412 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 413 | $(TAGS_FILES) $(LISP) 414 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 415 | unique=`for i in $$list; do \ 416 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 417 | done | \ 418 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 419 | END { if (nonempty) { for (i in files) print i; }; }'`; \ 420 | test -z "$(CTAGS_ARGS)$$unique" \ 421 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 422 | $$unique 423 | 424 | GTAGS: 425 | here=`$(am__cd) $(top_builddir) && pwd` \ 426 | && $(am__cd) $(top_srcdir) \ 427 | && gtags -i $(GTAGS_ARGS) "$$here" 428 | 429 | distclean-tags: 430 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 431 | 432 | distdir: $(DISTFILES) 433 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 434 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 435 | list='$(DISTFILES)'; \ 436 | dist_files=`for file in $$list; do echo $$file; done | \ 437 | sed -e "s|^$$srcdirstrip/||;t" \ 438 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ 439 | case $$dist_files in \ 440 | */*) $(MKDIR_P) `echo "$$dist_files" | \ 441 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ 442 | sort -u` ;; \ 443 | esac; \ 444 | for file in $$dist_files; do \ 445 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 446 | if test -d $$d/$$file; then \ 447 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 448 | if test -d "$(distdir)/$$file"; then \ 449 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 450 | fi; \ 451 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 452 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ 453 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 454 | fi; \ 455 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ 456 | else \ 457 | test -f "$(distdir)/$$file" \ 458 | || cp -p $$d/$$file "$(distdir)/$$file" \ 459 | || exit 1; \ 460 | fi; \ 461 | done 462 | check-am: all-am 463 | check: check-am 464 | all-am: Makefile $(LTLIBRARIES) 465 | installdirs: 466 | install: install-am 467 | install-exec: install-exec-am 468 | install-data: install-data-am 469 | uninstall: uninstall-am 470 | 471 | install-am: all-am 472 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 473 | 474 | installcheck: installcheck-am 475 | install-strip: 476 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 477 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 478 | `test -z '$(STRIP)' || \ 479 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 480 | mostlyclean-generic: 481 | 482 | clean-generic: 483 | 484 | distclean-generic: 485 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 486 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) 487 | 488 | maintainer-clean-generic: 489 | @echo "This command is intended for maintainers to use" 490 | @echo "it deletes files that may require special tools to rebuild." 491 | clean: clean-am 492 | 493 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 494 | mostlyclean-am 495 | 496 | distclean: distclean-am 497 | -rm -rf ./$(DEPDIR) 498 | -rm -f Makefile 499 | distclean-am: clean-am distclean-compile distclean-generic \ 500 | distclean-tags 501 | 502 | dvi: dvi-am 503 | 504 | dvi-am: 505 | 506 | html: html-am 507 | 508 | html-am: 509 | 510 | info: info-am 511 | 512 | info-am: 513 | 514 | install-data-am: 515 | 516 | install-dvi: install-dvi-am 517 | 518 | install-dvi-am: 519 | 520 | install-exec-am: 521 | 522 | install-html: install-html-am 523 | 524 | install-html-am: 525 | 526 | install-info: install-info-am 527 | 528 | install-info-am: 529 | 530 | install-man: 531 | 532 | install-pdf: install-pdf-am 533 | 534 | install-pdf-am: 535 | 536 | install-ps: install-ps-am 537 | 538 | install-ps-am: 539 | 540 | installcheck-am: 541 | 542 | maintainer-clean: maintainer-clean-am 543 | -rm -rf ./$(DEPDIR) 544 | -rm -f Makefile 545 | maintainer-clean-am: distclean-am maintainer-clean-generic 546 | 547 | mostlyclean: mostlyclean-am 548 | 549 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 550 | mostlyclean-libtool 551 | 552 | pdf: pdf-am 553 | 554 | pdf-am: 555 | 556 | ps: ps-am 557 | 558 | ps-am: 559 | 560 | uninstall-am: 561 | 562 | .MAKE: install-am install-strip 563 | 564 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 565 | clean-libtool clean-noinstLTLIBRARIES ctags distclean \ 566 | distclean-compile distclean-generic distclean-libtool \ 567 | distclean-tags distdir dvi dvi-am html html-am info info-am \ 568 | install install-am install-data install-data-am install-dvi \ 569 | install-dvi-am install-exec install-exec-am install-html \ 570 | install-html-am install-info install-info-am install-man \ 571 | install-pdf install-pdf-am install-ps install-ps-am \ 572 | install-strip installcheck installcheck-am installdirs \ 573 | maintainer-clean maintainer-clean-generic mostlyclean \ 574 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ 575 | pdf pdf-am ps ps-am tags uninstall uninstall-am 576 | 577 | 578 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 579 | # Otherwise a system limit (for SysV at least) may be exceeded. 580 | .NOEXPORT: 581 | -------------------------------------------------------------------------------- /src/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. 2 | # @configure_input@ 3 | 4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6 | # Inc. 7 | # This Makefile.in is free software; the Free Software Foundation 8 | # gives unlimited permission to copy and/or distribute it, 9 | # with or without modifications, as long as this notice is preserved. 10 | 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 14 | # PARTICULAR PURPOSE. 15 | 16 | @SET_MAKE@ 17 | 18 | VPATH = @srcdir@ 19 | pkgdatadir = $(datadir)/@PACKAGE@ 20 | pkgincludedir = $(includedir)/@PACKAGE@ 21 | pkglibdir = $(libdir)/@PACKAGE@ 22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ 23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 24 | install_sh_DATA = $(install_sh) -c -m 644 25 | install_sh_PROGRAM = $(install_sh) -c 26 | install_sh_SCRIPT = $(install_sh) -c 27 | INSTALL_HEADER = $(INSTALL_DATA) 28 | transform = $(program_transform_name) 29 | NORMAL_INSTALL = : 30 | PRE_INSTALL = : 31 | POST_INSTALL = : 32 | NORMAL_UNINSTALL = : 33 | PRE_UNINSTALL = : 34 | POST_UNINSTALL = : 35 | build_triplet = @build@ 36 | host_triplet = @host@ 37 | target_triplet = @target@ 38 | subdir = src 39 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in 40 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 41 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac 42 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 43 | $(ACLOCAL_M4) 44 | mkinstalldirs = $(install_sh) -d 45 | CONFIG_CLEAN_FILES = 46 | CONFIG_CLEAN_VPATH_FILES = 47 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 48 | am__vpath_adj = case $$p in \ 49 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 50 | *) f=$$p;; \ 51 | esac; 52 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; 53 | am__install_max = 40 54 | am__nobase_strip_setup = \ 55 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` 56 | am__nobase_strip = \ 57 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" 58 | am__nobase_list = $(am__nobase_strip_setup); \ 59 | for p in $$list; do echo "$$p $$p"; done | \ 60 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ 61 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ 62 | if (++n[$$2] == $(am__install_max)) \ 63 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ 64 | END { for (dir in files) print dir, files[dir] }' 65 | am__base_list = \ 66 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ 67 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' 68 | am__installdirs = "$(DESTDIR)$(plugindir)" 69 | LTLIBRARIES = $(plugin_LTLIBRARIES) 70 | embeddedvideo_la_DEPENDENCIES = websites/libwebsites.la 71 | am_embeddedvideo_la_OBJECTS = embeddedvideo_la-embeddedvideo.lo \ 72 | embeddedvideo_la-videoframes.lo embeddedvideo_la-websites.lo 73 | embeddedvideo_la_OBJECTS = $(am_embeddedvideo_la_OBJECTS) 74 | embeddedvideo_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ 75 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(embeddedvideo_la_CFLAGS) \ 76 | $(CFLAGS) $(embeddedvideo_la_LDFLAGS) $(LDFLAGS) -o $@ 77 | DEFAULT_INCLUDES = -I.@am__isrc@ 78 | depcomp = $(SHELL) $(top_srcdir)/depcomp 79 | am__depfiles_maybe = depfiles 80 | am__mv = mv -f 81 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 82 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 83 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 84 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 85 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 86 | CCLD = $(CC) 87 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ 88 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ 89 | $(LDFLAGS) -o $@ 90 | SOURCES = $(embeddedvideo_la_SOURCES) 91 | DIST_SOURCES = $(embeddedvideo_la_SOURCES) 92 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ 93 | html-recursive info-recursive install-data-recursive \ 94 | install-dvi-recursive install-exec-recursive \ 95 | install-html-recursive install-info-recursive \ 96 | install-pdf-recursive install-ps-recursive install-recursive \ 97 | installcheck-recursive installdirs-recursive pdf-recursive \ 98 | ps-recursive uninstall-recursive 99 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ 100 | distclean-recursive maintainer-clean-recursive 101 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ 102 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ 103 | distdir 104 | ETAGS = etags 105 | CTAGS = ctags 106 | DIST_SUBDIRS = $(SUBDIRS) 107 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 108 | am__relativize = \ 109 | dir0=`pwd`; \ 110 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ 111 | sed_rest='s,^[^/]*/*,,'; \ 112 | sed_last='s,^.*/\([^/]*\)$$,\1,'; \ 113 | sed_butlast='s,/*[^/]*$$,,'; \ 114 | while test -n "$$dir1"; do \ 115 | first=`echo "$$dir1" | sed -e "$$sed_first"`; \ 116 | if test "$$first" != "."; then \ 117 | if test "$$first" = ".."; then \ 118 | dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ 119 | dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ 120 | else \ 121 | first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ 122 | if test "$$first2" = "$$first"; then \ 123 | dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ 124 | else \ 125 | dir2="../$$dir2"; \ 126 | fi; \ 127 | dir0="$$dir0"/"$$first"; \ 128 | fi; \ 129 | fi; \ 130 | dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ 131 | done; \ 132 | reldir="$$dir2" 133 | ACLOCAL = @ACLOCAL@ 134 | AMTAR = @AMTAR@ 135 | AR = @AR@ 136 | AUTOCONF = @AUTOCONF@ 137 | AUTOHEADER = @AUTOHEADER@ 138 | AUTOMAKE = @AUTOMAKE@ 139 | AWK = @AWK@ 140 | CC = @CC@ 141 | CCDEPMODE = @CCDEPMODE@ 142 | CFLAGS = @CFLAGS@ 143 | CPP = @CPP@ 144 | CPPFLAGS = @CPPFLAGS@ 145 | CYGPATH_W = @CYGPATH_W@ 146 | DEFS = @DEFS@ 147 | DEPDIR = @DEPDIR@ 148 | DSYMUTIL = @DSYMUTIL@ 149 | DUMPBIN = @DUMPBIN@ 150 | ECHO_C = @ECHO_C@ 151 | ECHO_N = @ECHO_N@ 152 | ECHO_T = @ECHO_T@ 153 | EGREP = @EGREP@ 154 | EXEEXT = @EXEEXT@ 155 | FGREP = @FGREP@ 156 | GLIB_CFLAGS = @GLIB_CFLAGS@ 157 | GLIB_LIBS = @GLIB_LIBS@ 158 | GREP = @GREP@ 159 | INSTALL = @INSTALL@ 160 | INSTALL_DATA = @INSTALL_DATA@ 161 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 162 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ 163 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 164 | LD = @LD@ 165 | LDFLAGS = @LDFLAGS@ 166 | LIBCURL_CFLAGS = @LIBCURL_CFLAGS@ 167 | LIBCURL_LIBS = @LIBCURL_LIBS@ 168 | LIBOBJS = @LIBOBJS@ 169 | LIBS = @LIBS@ 170 | LIBTOOL = @LIBTOOL@ 171 | LIPO = @LIPO@ 172 | LN_S = @LN_S@ 173 | LTLIBOBJS = @LTLIBOBJS@ 174 | MAKEINFO = @MAKEINFO@ 175 | MKDIR_P = @MKDIR_P@ 176 | NM = @NM@ 177 | NMEDIT = @NMEDIT@ 178 | OBJDUMP = @OBJDUMP@ 179 | OBJEXT = @OBJEXT@ 180 | OTOOL = @OTOOL@ 181 | OTOOL64 = @OTOOL64@ 182 | PACKAGE = @PACKAGE@ 183 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 184 | PACKAGE_NAME = @PACKAGE_NAME@ 185 | PACKAGE_STRING = @PACKAGE_STRING@ 186 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ 187 | PACKAGE_URL = @PACKAGE_URL@ 188 | PACKAGE_VERSION = @PACKAGE_VERSION@ 189 | PATH_SEPARATOR = @PATH_SEPARATOR@ 190 | PIDGIN_CFLAGS = @PIDGIN_CFLAGS@ 191 | PIDGIN_LIBS = @PIDGIN_LIBS@ 192 | PKG_CONFIG = @PKG_CONFIG@ 193 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ 194 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ 195 | PLUGINDIR = @PLUGINDIR@ 196 | RANLIB = @RANLIB@ 197 | SED = @SED@ 198 | SET_MAKE = @SET_MAKE@ 199 | SHELL = @SHELL@ 200 | STRIP = @STRIP@ 201 | VERSION = @VERSION@ 202 | WEBKIT_CFLAGS = @WEBKIT_CFLAGS@ 203 | WEBKIT_LIBS = @WEBKIT_LIBS@ 204 | abs_builddir = @abs_builddir@ 205 | abs_srcdir = @abs_srcdir@ 206 | abs_top_builddir = @abs_top_builddir@ 207 | abs_top_srcdir = @abs_top_srcdir@ 208 | ac_ct_CC = @ac_ct_CC@ 209 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 210 | am__include = @am__include@ 211 | am__leading_dot = @am__leading_dot@ 212 | am__quote = @am__quote@ 213 | am__tar = @am__tar@ 214 | am__untar = @am__untar@ 215 | bindir = @bindir@ 216 | build = @build@ 217 | build_alias = @build_alias@ 218 | build_cpu = @build_cpu@ 219 | build_os = @build_os@ 220 | build_vendor = @build_vendor@ 221 | builddir = @builddir@ 222 | datadir = @datadir@ 223 | datarootdir = @datarootdir@ 224 | docdir = @docdir@ 225 | dvidir = @dvidir@ 226 | exec_prefix = @exec_prefix@ 227 | host = @host@ 228 | host_alias = @host_alias@ 229 | host_cpu = @host_cpu@ 230 | host_os = @host_os@ 231 | host_vendor = @host_vendor@ 232 | htmldir = @htmldir@ 233 | includedir = @includedir@ 234 | infodir = @infodir@ 235 | install_sh = @install_sh@ 236 | libdir = @libdir@ 237 | libexecdir = @libexecdir@ 238 | localedir = @localedir@ 239 | localstatedir = @localstatedir@ 240 | lt_ECHO = @lt_ECHO@ 241 | mandir = @mandir@ 242 | mkdir_p = @mkdir_p@ 243 | oldincludedir = @oldincludedir@ 244 | pdfdir = @pdfdir@ 245 | prefix = @prefix@ 246 | program_transform_name = @program_transform_name@ 247 | psdir = @psdir@ 248 | sbindir = @sbindir@ 249 | sharedstatedir = @sharedstatedir@ 250 | srcdir = @srcdir@ 251 | sysconfdir = @sysconfdir@ 252 | target = @target@ 253 | target_alias = @target_alias@ 254 | target_cpu = @target_cpu@ 255 | target_os = @target_os@ 256 | target_vendor = @target_vendor@ 257 | top_build_prefix = @top_build_prefix@ 258 | top_builddir = @top_builddir@ 259 | top_srcdir = @top_srcdir@ 260 | SUBDIRS = websites 261 | PLUGIN_CFLAGS = @GLIB_CFLAGS@ @PIDGIN_CFLAGS@ @WEBKIT_CFLAGS@ @LIBCURL_CFLAGS@ 262 | PLUGIN_LIBS = @GLIB_LIBS@ @PIDGIN_LIBS@ @WEBKIT_LIBS@ @LIBCURL_LIBS@ 263 | plugindir = @PLUGINDIR@ 264 | plugin_LTLIBRARIES = embeddedvideo.la 265 | embeddedvideo_la_SOURCES = \ 266 | embeddedvideo.c \ 267 | videoframes.c \ 268 | websites.c 269 | 270 | embeddedvideo_la_CFLAGS = $(PLUGIN_CFLAGS) 271 | embeddedvideo_la_LIBADD = websites/libwebsites.la 272 | embeddedvideo_la_LDFLAGS = $(PLUGIN_LIBS) -module -avoid-version -shared 273 | all: all-recursive 274 | 275 | .SUFFIXES: 276 | .SUFFIXES: .c .lo .o .obj 277 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 278 | @for dep in $?; do \ 279 | case '$(am__configure_deps)' in \ 280 | *$$dep*) \ 281 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ 282 | && { if test -f $@; then exit 0; else break; fi; }; \ 283 | exit 1;; \ 284 | esac; \ 285 | done; \ 286 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ 287 | $(am__cd) $(top_srcdir) && \ 288 | $(AUTOMAKE) --gnu src/Makefile 289 | .PRECIOUS: Makefile 290 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 291 | @case '$?' in \ 292 | *config.status*) \ 293 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 294 | *) \ 295 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 296 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 297 | esac; 298 | 299 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 300 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 301 | 302 | $(top_srcdir)/configure: $(am__configure_deps) 303 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 304 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) 305 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 306 | $(am__aclocal_m4_deps): 307 | install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES) 308 | @$(NORMAL_INSTALL) 309 | test -z "$(plugindir)" || $(MKDIR_P) "$(DESTDIR)$(plugindir)" 310 | @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ 311 | list2=; for p in $$list; do \ 312 | if test -f $$p; then \ 313 | list2="$$list2 $$p"; \ 314 | else :; fi; \ 315 | done; \ 316 | test -z "$$list2" || { \ 317 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(plugindir)'"; \ 318 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(plugindir)"; \ 319 | } 320 | 321 | uninstall-pluginLTLIBRARIES: 322 | @$(NORMAL_UNINSTALL) 323 | @list='$(plugin_LTLIBRARIES)'; test -n "$(plugindir)" || list=; \ 324 | for p in $$list; do \ 325 | $(am__strip_dir) \ 326 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(plugindir)/$$f'"; \ 327 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(plugindir)/$$f"; \ 328 | done 329 | 330 | clean-pluginLTLIBRARIES: 331 | -test -z "$(plugin_LTLIBRARIES)" || rm -f $(plugin_LTLIBRARIES) 332 | @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \ 333 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 334 | test "$$dir" != "$$p" || dir=.; \ 335 | echo "rm -f \"$${dir}/so_locations\""; \ 336 | rm -f "$${dir}/so_locations"; \ 337 | done 338 | embeddedvideo.la: $(embeddedvideo_la_OBJECTS) $(embeddedvideo_la_DEPENDENCIES) 339 | $(embeddedvideo_la_LINK) -rpath $(plugindir) $(embeddedvideo_la_OBJECTS) $(embeddedvideo_la_LIBADD) $(LIBS) 340 | 341 | mostlyclean-compile: 342 | -rm -f *.$(OBJEXT) 343 | 344 | distclean-compile: 345 | -rm -f *.tab.c 346 | 347 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/embeddedvideo_la-embeddedvideo.Plo@am__quote@ 348 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/embeddedvideo_la-videoframes.Plo@am__quote@ 349 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/embeddedvideo_la-websites.Plo@am__quote@ 350 | 351 | .c.o: 352 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 353 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 354 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 355 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 356 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< 357 | 358 | .c.obj: 359 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` 360 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po 361 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 362 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 363 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` 364 | 365 | .c.lo: 366 | @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< 367 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo 368 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 369 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 370 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< 371 | 372 | embeddedvideo_la-embeddedvideo.lo: embeddedvideo.c 373 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(embeddedvideo_la_CFLAGS) $(CFLAGS) -MT embeddedvideo_la-embeddedvideo.lo -MD -MP -MF $(DEPDIR)/embeddedvideo_la-embeddedvideo.Tpo -c -o embeddedvideo_la-embeddedvideo.lo `test -f 'embeddedvideo.c' || echo '$(srcdir)/'`embeddedvideo.c 374 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/embeddedvideo_la-embeddedvideo.Tpo $(DEPDIR)/embeddedvideo_la-embeddedvideo.Plo 375 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='embeddedvideo.c' object='embeddedvideo_la-embeddedvideo.lo' libtool=yes @AMDEPBACKSLASH@ 376 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 377 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(embeddedvideo_la_CFLAGS) $(CFLAGS) -c -o embeddedvideo_la-embeddedvideo.lo `test -f 'embeddedvideo.c' || echo '$(srcdir)/'`embeddedvideo.c 378 | 379 | embeddedvideo_la-videoframes.lo: videoframes.c 380 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(embeddedvideo_la_CFLAGS) $(CFLAGS) -MT embeddedvideo_la-videoframes.lo -MD -MP -MF $(DEPDIR)/embeddedvideo_la-videoframes.Tpo -c -o embeddedvideo_la-videoframes.lo `test -f 'videoframes.c' || echo '$(srcdir)/'`videoframes.c 381 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/embeddedvideo_la-videoframes.Tpo $(DEPDIR)/embeddedvideo_la-videoframes.Plo 382 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='videoframes.c' object='embeddedvideo_la-videoframes.lo' libtool=yes @AMDEPBACKSLASH@ 383 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 384 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(embeddedvideo_la_CFLAGS) $(CFLAGS) -c -o embeddedvideo_la-videoframes.lo `test -f 'videoframes.c' || echo '$(srcdir)/'`videoframes.c 385 | 386 | embeddedvideo_la-websites.lo: websites.c 387 | @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(embeddedvideo_la_CFLAGS) $(CFLAGS) -MT embeddedvideo_la-websites.lo -MD -MP -MF $(DEPDIR)/embeddedvideo_la-websites.Tpo -c -o embeddedvideo_la-websites.lo `test -f 'websites.c' || echo '$(srcdir)/'`websites.c 388 | @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/embeddedvideo_la-websites.Tpo $(DEPDIR)/embeddedvideo_la-websites.Plo 389 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='websites.c' object='embeddedvideo_la-websites.lo' libtool=yes @AMDEPBACKSLASH@ 390 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 391 | @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(embeddedvideo_la_CFLAGS) $(CFLAGS) -c -o embeddedvideo_la-websites.lo `test -f 'websites.c' || echo '$(srcdir)/'`websites.c 392 | 393 | mostlyclean-libtool: 394 | -rm -f *.lo 395 | 396 | clean-libtool: 397 | -rm -rf .libs _libs 398 | 399 | # This directory's subdirectories are mostly independent; you can cd 400 | # into them and run `make' without going through this Makefile. 401 | # To change the values of `make' variables: instead of editing Makefiles, 402 | # (1) if the variable is set in `config.status', edit `config.status' 403 | # (which will cause the Makefiles to be regenerated when you run `make'); 404 | # (2) otherwise, pass the desired values on the `make' command line. 405 | $(RECURSIVE_TARGETS): 406 | @fail= failcom='exit 1'; \ 407 | for f in x $$MAKEFLAGS; do \ 408 | case $$f in \ 409 | *=* | --[!k]*);; \ 410 | *k*) failcom='fail=yes';; \ 411 | esac; \ 412 | done; \ 413 | dot_seen=no; \ 414 | target=`echo $@ | sed s/-recursive//`; \ 415 | list='$(SUBDIRS)'; for subdir in $$list; do \ 416 | echo "Making $$target in $$subdir"; \ 417 | if test "$$subdir" = "."; then \ 418 | dot_seen=yes; \ 419 | local_target="$$target-am"; \ 420 | else \ 421 | local_target="$$target"; \ 422 | fi; \ 423 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 424 | || eval $$failcom; \ 425 | done; \ 426 | if test "$$dot_seen" = "no"; then \ 427 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 428 | fi; test -z "$$fail" 429 | 430 | $(RECURSIVE_CLEAN_TARGETS): 431 | @fail= failcom='exit 1'; \ 432 | for f in x $$MAKEFLAGS; do \ 433 | case $$f in \ 434 | *=* | --[!k]*);; \ 435 | *k*) failcom='fail=yes';; \ 436 | esac; \ 437 | done; \ 438 | dot_seen=no; \ 439 | case "$@" in \ 440 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 441 | *) list='$(SUBDIRS)' ;; \ 442 | esac; \ 443 | rev=''; for subdir in $$list; do \ 444 | if test "$$subdir" = "."; then :; else \ 445 | rev="$$subdir $$rev"; \ 446 | fi; \ 447 | done; \ 448 | rev="$$rev ."; \ 449 | target=`echo $@ | sed s/-recursive//`; \ 450 | for subdir in $$rev; do \ 451 | echo "Making $$target in $$subdir"; \ 452 | if test "$$subdir" = "."; then \ 453 | local_target="$$target-am"; \ 454 | else \ 455 | local_target="$$target"; \ 456 | fi; \ 457 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 458 | || eval $$failcom; \ 459 | done && test -z "$$fail" 460 | tags-recursive: 461 | list='$(SUBDIRS)'; for subdir in $$list; do \ 462 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 463 | done 464 | ctags-recursive: 465 | list='$(SUBDIRS)'; for subdir in $$list; do \ 466 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 467 | done 468 | 469 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 470 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 471 | unique=`for i in $$list; do \ 472 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 473 | done | \ 474 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 475 | END { if (nonempty) { for (i in files) print i; }; }'`; \ 476 | mkid -fID $$unique 477 | tags: TAGS 478 | 479 | TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 480 | $(TAGS_FILES) $(LISP) 481 | set x; \ 482 | here=`pwd`; \ 483 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ 484 | include_option=--etags-include; \ 485 | empty_fix=.; \ 486 | else \ 487 | include_option=--include; \ 488 | empty_fix=; \ 489 | fi; \ 490 | list='$(SUBDIRS)'; for subdir in $$list; do \ 491 | if test "$$subdir" = .; then :; else \ 492 | test ! -f $$subdir/TAGS || \ 493 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ 494 | fi; \ 495 | done; \ 496 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 497 | unique=`for i in $$list; do \ 498 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 499 | done | \ 500 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 501 | END { if (nonempty) { for (i in files) print i; }; }'`; \ 502 | shift; \ 503 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ 504 | test -n "$$unique" || unique=$$empty_fix; \ 505 | if test $$# -gt 0; then \ 506 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 507 | "$$@" $$unique; \ 508 | else \ 509 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 510 | $$unique; \ 511 | fi; \ 512 | fi 513 | ctags: CTAGS 514 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 515 | $(TAGS_FILES) $(LISP) 516 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 517 | unique=`for i in $$list; do \ 518 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 519 | done | \ 520 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 521 | END { if (nonempty) { for (i in files) print i; }; }'`; \ 522 | test -z "$(CTAGS_ARGS)$$unique" \ 523 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 524 | $$unique 525 | 526 | GTAGS: 527 | here=`$(am__cd) $(top_builddir) && pwd` \ 528 | && $(am__cd) $(top_srcdir) \ 529 | && gtags -i $(GTAGS_ARGS) "$$here" 530 | 531 | distclean-tags: 532 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 533 | 534 | distdir: $(DISTFILES) 535 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 536 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 537 | list='$(DISTFILES)'; \ 538 | dist_files=`for file in $$list; do echo $$file; done | \ 539 | sed -e "s|^$$srcdirstrip/||;t" \ 540 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ 541 | case $$dist_files in \ 542 | */*) $(MKDIR_P) `echo "$$dist_files" | \ 543 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ 544 | sort -u` ;; \ 545 | esac; \ 546 | for file in $$dist_files; do \ 547 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 548 | if test -d $$d/$$file; then \ 549 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 550 | if test -d "$(distdir)/$$file"; then \ 551 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 552 | fi; \ 553 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 554 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ 555 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 556 | fi; \ 557 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ 558 | else \ 559 | test -f "$(distdir)/$$file" \ 560 | || cp -p $$d/$$file "$(distdir)/$$file" \ 561 | || exit 1; \ 562 | fi; \ 563 | done 564 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 565 | if test "$$subdir" = .; then :; else \ 566 | test -d "$(distdir)/$$subdir" \ 567 | || $(MKDIR_P) "$(distdir)/$$subdir" \ 568 | || exit 1; \ 569 | fi; \ 570 | done 571 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 572 | if test "$$subdir" = .; then :; else \ 573 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ 574 | $(am__relativize); \ 575 | new_distdir=$$reldir; \ 576 | dir1=$$subdir; dir2="$(top_distdir)"; \ 577 | $(am__relativize); \ 578 | new_top_distdir=$$reldir; \ 579 | echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ 580 | echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ 581 | ($(am__cd) $$subdir && \ 582 | $(MAKE) $(AM_MAKEFLAGS) \ 583 | top_distdir="$$new_top_distdir" \ 584 | distdir="$$new_distdir" \ 585 | am__remove_distdir=: \ 586 | am__skip_length_check=: \ 587 | am__skip_mode_fix=: \ 588 | distdir) \ 589 | || exit 1; \ 590 | fi; \ 591 | done 592 | check-am: all-am 593 | check: check-recursive 594 | all-am: Makefile $(LTLIBRARIES) 595 | installdirs: installdirs-recursive 596 | installdirs-am: 597 | for dir in "$(DESTDIR)$(plugindir)"; do \ 598 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ 599 | done 600 | install: install-recursive 601 | install-exec: install-exec-recursive 602 | install-data: install-data-recursive 603 | uninstall: uninstall-recursive 604 | 605 | install-am: all-am 606 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 607 | 608 | installcheck: installcheck-recursive 609 | install-strip: 610 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 611 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 612 | `test -z '$(STRIP)' || \ 613 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 614 | mostlyclean-generic: 615 | 616 | clean-generic: 617 | 618 | distclean-generic: 619 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 620 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) 621 | 622 | maintainer-clean-generic: 623 | @echo "This command is intended for maintainers to use" 624 | @echo "it deletes files that may require special tools to rebuild." 625 | clean: clean-recursive 626 | 627 | clean-am: clean-generic clean-libtool clean-pluginLTLIBRARIES \ 628 | mostlyclean-am 629 | 630 | distclean: distclean-recursive 631 | -rm -rf ./$(DEPDIR) 632 | -rm -f Makefile 633 | distclean-am: clean-am distclean-compile distclean-generic \ 634 | distclean-tags 635 | 636 | dvi: dvi-recursive 637 | 638 | dvi-am: 639 | 640 | html: html-recursive 641 | 642 | html-am: 643 | 644 | info: info-recursive 645 | 646 | info-am: 647 | 648 | install-data-am: install-pluginLTLIBRARIES 649 | 650 | install-dvi: install-dvi-recursive 651 | 652 | install-dvi-am: 653 | 654 | install-exec-am: 655 | 656 | install-html: install-html-recursive 657 | 658 | install-html-am: 659 | 660 | install-info: install-info-recursive 661 | 662 | install-info-am: 663 | 664 | install-man: 665 | 666 | install-pdf: install-pdf-recursive 667 | 668 | install-pdf-am: 669 | 670 | install-ps: install-ps-recursive 671 | 672 | install-ps-am: 673 | 674 | installcheck-am: 675 | 676 | maintainer-clean: maintainer-clean-recursive 677 | -rm -rf ./$(DEPDIR) 678 | -rm -f Makefile 679 | maintainer-clean-am: distclean-am maintainer-clean-generic 680 | 681 | mostlyclean: mostlyclean-recursive 682 | 683 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 684 | mostlyclean-libtool 685 | 686 | pdf: pdf-recursive 687 | 688 | pdf-am: 689 | 690 | ps: ps-recursive 691 | 692 | ps-am: 693 | 694 | uninstall-am: uninstall-pluginLTLIBRARIES 695 | 696 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ 697 | install-am install-strip tags-recursive 698 | 699 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ 700 | all all-am check check-am clean clean-generic clean-libtool \ 701 | clean-pluginLTLIBRARIES ctags ctags-recursive distclean \ 702 | distclean-compile distclean-generic distclean-libtool \ 703 | distclean-tags distdir dvi dvi-am html html-am info info-am \ 704 | install install-am install-data install-data-am install-dvi \ 705 | install-dvi-am install-exec install-exec-am install-html \ 706 | install-html-am install-info install-info-am install-man \ 707 | install-pdf install-pdf-am install-pluginLTLIBRARIES \ 708 | install-ps install-ps-am install-strip installcheck \ 709 | installcheck-am installdirs installdirs-am maintainer-clean \ 710 | maintainer-clean-generic mostlyclean mostlyclean-compile \ 711 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 712 | tags tags-recursive uninstall uninstall-am \ 713 | uninstall-pluginLTLIBRARIES 714 | 715 | 716 | # Tell versions [3.59,3.63) of GNU make to not export all variables. 717 | # Otherwise a system limit (for SysV at least) may be exceeded. 718 | .NOEXPORT: 719 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | ### GNU GENERAL PUBLIC LICENSE 2 | 3 | Version 3, 29 June 2007 4 | 5 | Copyright (C) 2007 Free Software Foundation, Inc. 6 | 7 | 8 | Everyone is permitted to copy and distribute verbatim copies of this 9 | license document, but changing it is not allowed. 10 | 11 | ### Preamble 12 | 13 | The GNU General Public License is a free, copyleft license for 14 | software and other kinds of works. 15 | 16 | The licenses for most software and other practical works are designed 17 | to take away your freedom to share and change the works. By contrast, 18 | the GNU General Public License is intended to guarantee your freedom 19 | to share and change all versions of a program--to make sure it remains 20 | free software for all its users. We, the Free Software Foundation, use 21 | the GNU General Public License for most of our software; it applies 22 | also to any other work released this way by its authors. You can apply 23 | it to your programs, too. 24 | 25 | When we speak of free software, we are referring to freedom, not 26 | price. Our General Public Licenses are designed to make sure that you 27 | have the freedom to distribute copies of free software (and charge for 28 | them if you wish), that you receive source code or can get it if you 29 | want it, that you can change the software or use pieces of it in new 30 | free programs, and that you know you can do these things. 31 | 32 | To protect your rights, we need to prevent others from denying you 33 | these rights or asking you to surrender the rights. Therefore, you 34 | have certain responsibilities if you distribute copies of the 35 | software, or if you modify it: responsibilities to respect the freedom 36 | of others. 37 | 38 | For example, if you distribute copies of such a program, whether 39 | gratis or for a fee, you must pass on to the recipients the same 40 | freedoms that you received. You must make sure that they, too, receive 41 | or can get the source code. And you must show them these terms so they 42 | know their rights. 43 | 44 | Developers that use the GNU GPL protect your rights with two steps: 45 | (1) assert copyright on the software, and (2) offer you this License 46 | giving you legal permission to copy, distribute and/or modify it. 47 | 48 | For the developers' and authors' protection, the GPL clearly explains 49 | that there is no warranty for this free software. For both users' and 50 | authors' sake, the GPL requires that modified versions be marked as 51 | changed, so that their problems will not be attributed erroneously to 52 | authors of previous versions. 53 | 54 | Some devices are designed to deny users access to install or run 55 | modified versions of the software inside them, although the 56 | manufacturer can do so. This is fundamentally incompatible with the 57 | aim of protecting users' freedom to change the software. The 58 | systematic pattern of such abuse occurs in the area of products for 59 | individuals to use, which is precisely where it is most unacceptable. 60 | Therefore, we have designed this version of the GPL to prohibit the 61 | practice for those products. If such problems arise substantially in 62 | other domains, we stand ready to extend this provision to those 63 | domains in future versions of the GPL, as needed to protect the 64 | freedom of users. 65 | 66 | Finally, every program is threatened constantly by software patents. 67 | States should not allow patents to restrict development and use of 68 | software on general-purpose computers, but in those that do, we wish 69 | to avoid the special danger that patents applied to a free program 70 | could make it effectively proprietary. To prevent this, the GPL 71 | assures that patents cannot be used to render the program non-free. 72 | 73 | The precise terms and conditions for copying, distribution and 74 | modification follow. 75 | 76 | ### TERMS AND CONDITIONS 77 | 78 | #### 0. Definitions. 79 | 80 | "This License" refers to version 3 of the GNU General Public License. 81 | 82 | "Copyright" also means copyright-like laws that apply to other kinds 83 | of works, such as semiconductor masks. 84 | 85 | "The Program" refers to any copyrightable work licensed under this 86 | License. Each licensee is addressed as "you". "Licensees" and 87 | "recipients" may be individuals or organizations. 88 | 89 | To "modify" a work means to copy from or adapt all or part of the work 90 | in a fashion requiring copyright permission, other than the making of 91 | an exact copy. The resulting work is called a "modified version" of 92 | the earlier work or a work "based on" the earlier work. 93 | 94 | A "covered work" means either the unmodified Program or a work based 95 | on the Program. 96 | 97 | To "propagate" a work means to do anything with it that, without 98 | permission, would make you directly or secondarily liable for 99 | infringement under applicable copyright law, except executing it on a 100 | computer or modifying a private copy. Propagation includes copying, 101 | distribution (with or without modification), making available to the 102 | public, and in some countries other activities as well. 103 | 104 | To "convey" a work means any kind of propagation that enables other 105 | parties to make or receive copies. Mere interaction with a user 106 | through a computer network, with no transfer of a copy, is not 107 | conveying. 108 | 109 | An interactive user interface displays "Appropriate Legal Notices" to 110 | the extent that it includes a convenient and prominently visible 111 | feature that (1) displays an appropriate copyright notice, and (2) 112 | tells the user that there is no warranty for the work (except to the 113 | extent that warranties are provided), that licensees may convey the 114 | work under this License, and how to view a copy of this License. If 115 | the interface presents a list of user commands or options, such as a 116 | menu, a prominent item in the list meets this criterion. 117 | 118 | #### 1. Source Code. 119 | 120 | The "source code" for a work means the preferred form of the work for 121 | making modifications to it. "Object code" means any non-source form of 122 | a work. 123 | 124 | A "Standard Interface" means an interface that either is an official 125 | standard defined by a recognized standards body, or, in the case of 126 | interfaces specified for a particular programming language, one that 127 | is widely used among developers working in that language. 128 | 129 | The "System Libraries" of an executable work include anything, other 130 | than the work as a whole, that (a) is included in the normal form of 131 | packaging a Major Component, but which is not part of that Major 132 | Component, and (b) serves only to enable use of the work with that 133 | Major Component, or to implement a Standard Interface for which an 134 | implementation is available to the public in source code form. A 135 | "Major Component", in this context, means a major essential component 136 | (kernel, window system, and so on) of the specific operating system 137 | (if any) on which the executable work runs, or a compiler used to 138 | produce the work, or an object code interpreter used to run it. 139 | 140 | The "Corresponding Source" for a work in object code form means all 141 | the source code needed to generate, install, and (for an executable 142 | work) run the object code and to modify the work, including scripts to 143 | control those activities. However, it does not include the work's 144 | System Libraries, or general-purpose tools or generally available free 145 | programs which are used unmodified in performing those activities but 146 | which are not part of the work. For example, Corresponding Source 147 | includes interface definition files associated with source files for 148 | the work, and the source code for shared libraries and dynamically 149 | linked subprograms that the work is specifically designed to require, 150 | such as by intimate data communication or control flow between those 151 | subprograms and other parts of the work. 152 | 153 | The Corresponding Source need not include anything that users can 154 | regenerate automatically from other parts of the Corresponding Source. 155 | 156 | The Corresponding Source for a work in source code form is that same 157 | work. 158 | 159 | #### 2. Basic Permissions. 160 | 161 | All rights granted under this License are granted for the term of 162 | copyright on the Program, and are irrevocable provided the stated 163 | conditions are met. This License explicitly affirms your unlimited 164 | permission to run the unmodified Program. The output from running a 165 | covered work is covered by this License only if the output, given its 166 | content, constitutes a covered work. This License acknowledges your 167 | rights of fair use or other equivalent, as provided by copyright law. 168 | 169 | You may make, run and propagate covered works that you do not convey, 170 | without conditions so long as your license otherwise remains in force. 171 | You may convey covered works to others for the sole purpose of having 172 | them make modifications exclusively for you, or provide you with 173 | facilities for running those works, provided that you comply with the 174 | terms of this License in conveying all material for which you do not 175 | control copyright. Those thus making or running the covered works for 176 | you must do so exclusively on your behalf, under your direction and 177 | control, on terms that prohibit them from making any copies of your 178 | copyrighted material outside their relationship with you. 179 | 180 | Conveying under any other circumstances is permitted solely under the 181 | conditions stated below. Sublicensing is not allowed; section 10 makes 182 | it unnecessary. 183 | 184 | #### 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 185 | 186 | No covered work shall be deemed part of an effective technological 187 | measure under any applicable law fulfilling obligations under article 188 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 189 | similar laws prohibiting or restricting circumvention of such 190 | measures. 191 | 192 | When you convey a covered work, you waive any legal power to forbid 193 | circumvention of technological measures to the extent such 194 | circumvention is effected by exercising rights under this License with 195 | respect to the covered work, and you disclaim any intention to limit 196 | operation or modification of the work as a means of enforcing, against 197 | the work's users, your or third parties' legal rights to forbid 198 | circumvention of technological measures. 199 | 200 | #### 4. Conveying Verbatim Copies. 201 | 202 | You may convey verbatim copies of the Program's source code as you 203 | receive it, in any medium, provided that you conspicuously and 204 | appropriately publish on each copy an appropriate copyright notice; 205 | keep intact all notices stating that this License and any 206 | non-permissive terms added in accord with section 7 apply to the code; 207 | keep intact all notices of the absence of any warranty; and give all 208 | recipients a copy of this License along with the Program. 209 | 210 | You may charge any price or no price for each copy that you convey, 211 | and you may offer support or warranty protection for a fee. 212 | 213 | #### 5. Conveying Modified Source Versions. 214 | 215 | You may convey a work based on the Program, or the modifications to 216 | produce it from the Program, in the form of source code under the 217 | terms of section 4, provided that you also meet all of these 218 | conditions: 219 | 220 | - a) The work must carry prominent notices stating that you modified 221 | it, and giving a relevant date. 222 | - b) The work must carry prominent notices stating that it is 223 | released under this License and any conditions added under 224 | section 7. This requirement modifies the requirement in section 4 225 | to "keep intact all notices". 226 | - c) You must license the entire work, as a whole, under this 227 | License to anyone who comes into possession of a copy. This 228 | License will therefore apply, along with any applicable section 7 229 | additional terms, to the whole of the work, and all its parts, 230 | regardless of how they are packaged. This License gives no 231 | permission to license the work in any other way, but it does not 232 | invalidate such permission if you have separately received it. 233 | - d) If the work has interactive user interfaces, each must display 234 | Appropriate Legal Notices; however, if the Program has interactive 235 | interfaces that do not display Appropriate Legal Notices, your 236 | work need not make them do so. 237 | 238 | A compilation of a covered work with other separate and independent 239 | works, which are not by their nature extensions of the covered work, 240 | and which are not combined with it such as to form a larger program, 241 | in or on a volume of a storage or distribution medium, is called an 242 | "aggregate" if the compilation and its resulting copyright are not 243 | used to limit the access or legal rights of the compilation's users 244 | beyond what the individual works permit. Inclusion of a covered work 245 | in an aggregate does not cause this License to apply to the other 246 | parts of the aggregate. 247 | 248 | #### 6. Conveying Non-Source Forms. 249 | 250 | You may convey a covered work in object code form under the terms of 251 | sections 4 and 5, provided that you also convey the machine-readable 252 | Corresponding Source under the terms of this License, in one of these 253 | ways: 254 | 255 | - a) Convey the object code in, or embodied in, a physical product 256 | (including a physical distribution medium), accompanied by the 257 | Corresponding Source fixed on a durable physical medium 258 | customarily used for software interchange. 259 | - b) Convey the object code in, or embodied in, a physical product 260 | (including a physical distribution medium), accompanied by a 261 | written offer, valid for at least three years and valid for as 262 | long as you offer spare parts or customer support for that product 263 | model, to give anyone who possesses the object code either (1) a 264 | copy of the Corresponding Source for all the software in the 265 | product that is covered by this License, on a durable physical 266 | medium customarily used for software interchange, for a price no 267 | more than your reasonable cost of physically performing this 268 | conveying of source, or (2) access to copy the Corresponding 269 | Source from a network server at no charge. 270 | - c) Convey individual copies of the object code with a copy of the 271 | written offer to provide the Corresponding Source. This 272 | alternative is allowed only occasionally and noncommercially, and 273 | only if you received the object code with such an offer, in accord 274 | with subsection 6b. 275 | - d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | - e) Convey the object code using peer-to-peer transmission, 288 | provided you inform other peers where the object code and 289 | Corresponding Source of the work are being offered to the general 290 | public at no charge under subsection 6d. 291 | 292 | A separable portion of the object code, whose source code is excluded 293 | from the Corresponding Source as a System Library, need not be 294 | included in conveying the object code work. 295 | 296 | A "User Product" is either (1) a "consumer product", which means any 297 | tangible personal property which is normally used for personal, 298 | family, or household purposes, or (2) anything designed or sold for 299 | incorporation into a dwelling. In determining whether a product is a 300 | consumer product, doubtful cases shall be resolved in favor of 301 | coverage. For a particular product received by a particular user, 302 | "normally used" refers to a typical or common use of that class of 303 | product, regardless of the status of the particular user or of the way 304 | in which the particular user actually uses, or expects or is expected 305 | to use, the product. A product is a consumer product regardless of 306 | whether the product has substantial commercial, industrial or 307 | non-consumer uses, unless such uses represent the only significant 308 | mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to 312 | install and execute modified versions of a covered work in that User 313 | Product from a modified version of its Corresponding Source. The 314 | information must suffice to ensure that the continued functioning of 315 | the modified object code is in no case prevented or interfered with 316 | solely because modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or 331 | updates for a work that has been modified or installed by the 332 | recipient, or for the User Product in which it has been modified or 333 | installed. Access to a network may be denied when the modification 334 | itself materially and adversely affects the operation of the network 335 | or violates the rules and protocols for communication across the 336 | network. 337 | 338 | Corresponding Source conveyed, and Installation Information provided, 339 | in accord with this section must be in a format that is publicly 340 | documented (and with an implementation available to the public in 341 | source code form), and must require no special password or key for 342 | unpacking, reading or copying. 343 | 344 | #### 7. Additional Terms. 345 | 346 | "Additional permissions" are terms that supplement the terms of this 347 | License by making exceptions from one or more of its conditions. 348 | Additional permissions that are applicable to the entire Program shall 349 | be treated as though they were included in this License, to the extent 350 | that they are valid under applicable law. If additional permissions 351 | apply only to part of the Program, that part may be used separately 352 | under those permissions, but the entire Program remains governed by 353 | this License without regard to the additional permissions. 354 | 355 | When you convey a copy of a covered work, you may at your option 356 | remove any additional permissions from that copy, or from any part of 357 | it. (Additional permissions may be written to require their own 358 | removal in certain cases when you modify the work.) You may place 359 | additional permissions on material, added by you to a covered work, 360 | for which you have or can give appropriate copyright permission. 361 | 362 | Notwithstanding any other provision of this License, for material you 363 | add to a covered work, you may (if authorized by the copyright holders 364 | of that material) supplement the terms of this License with terms: 365 | 366 | - a) Disclaiming warranty or limiting liability differently from the 367 | terms of sections 15 and 16 of this License; or 368 | - b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | - c) Prohibiting misrepresentation of the origin of that material, 372 | or requiring that modified versions of such material be marked in 373 | reasonable ways as different from the original version; or 374 | - d) Limiting the use for publicity purposes of names of licensors 375 | or authors of the material; or 376 | - e) Declining to grant rights under trademark law for use of some 377 | trade names, trademarks, or service marks; or 378 | - f) Requiring indemnification of licensors and authors of that 379 | material by anyone who conveys the material (or modified versions 380 | of it) with contractual assumptions of liability to the recipient, 381 | for any liability that these contractual assumptions directly 382 | impose on those licensors and authors. 383 | 384 | All other non-permissive additional terms are considered "further 385 | restrictions" within the meaning of section 10. If the Program as you 386 | received it, or any part of it, contains a notice stating that it is 387 | governed by this License along with a term that is a further 388 | restriction, you may remove that term. If a license document contains 389 | a further restriction but permits relicensing or conveying under this 390 | License, you may add to a covered work material governed by the terms 391 | of that license document, provided that the further restriction does 392 | not survive such relicensing or conveying. 393 | 394 | If you add terms to a covered work in accord with this section, you 395 | must place, in the relevant source files, a statement of the 396 | additional terms that apply to those files, or a notice indicating 397 | where to find the applicable terms. 398 | 399 | Additional terms, permissive or non-permissive, may be stated in the 400 | form of a separately written license, or stated as exceptions; the 401 | above requirements apply either way. 402 | 403 | #### 8. Termination. 404 | 405 | You may not propagate or modify a covered work except as expressly 406 | provided under this License. Any attempt otherwise to propagate or 407 | modify it is void, and will automatically terminate your rights under 408 | this License (including any patent licenses granted under the third 409 | paragraph of section 11). 410 | 411 | However, if you cease all violation of this License, then your license 412 | from a particular copyright holder is reinstated (a) provisionally, 413 | unless and until the copyright holder explicitly and finally 414 | terminates your license, and (b) permanently, if the copyright holder 415 | fails to notify you of the violation by some reasonable means prior to 416 | 60 days after the cessation. 417 | 418 | Moreover, your license from a particular copyright holder is 419 | reinstated permanently if the copyright holder notifies you of the 420 | violation by some reasonable means, this is the first time you have 421 | received notice of violation of this License (for any work) from that 422 | copyright holder, and you cure the violation prior to 30 days after 423 | your receipt of the notice. 424 | 425 | Termination of your rights under this section does not terminate the 426 | licenses of parties who have received copies or rights from you under 427 | this License. If your rights have been terminated and not permanently 428 | reinstated, you do not qualify to receive new licenses for the same 429 | material under section 10. 430 | 431 | #### 9. Acceptance Not Required for Having Copies. 432 | 433 | You are not required to accept this License in order to receive or run 434 | a copy of the Program. Ancillary propagation of a covered work 435 | occurring solely as a consequence of using peer-to-peer transmission 436 | to receive a copy likewise does not require acceptance. However, 437 | nothing other than this License grants you permission to propagate or 438 | modify any covered work. These actions infringe copyright if you do 439 | not accept this License. Therefore, by modifying or propagating a 440 | covered work, you indicate your acceptance of this License to do so. 441 | 442 | #### 10. Automatic Licensing of Downstream Recipients. 443 | 444 | Each time you convey a covered work, the recipient automatically 445 | receives a license from the original licensors, to run, modify and 446 | propagate that work, subject to this License. You are not responsible 447 | for enforcing compliance by third parties with this License. 448 | 449 | An "entity transaction" is a transaction transferring control of an 450 | organization, or substantially all assets of one, or subdividing an 451 | organization, or merging organizations. If propagation of a covered 452 | work results from an entity transaction, each party to that 453 | transaction who receives a copy of the work also receives whatever 454 | licenses to the work the party's predecessor in interest had or could 455 | give under the previous paragraph, plus a right to possession of the 456 | Corresponding Source of the work from the predecessor in interest, if 457 | the predecessor has it or can get it with reasonable efforts. 458 | 459 | You may not impose any further restrictions on the exercise of the 460 | rights granted or affirmed under this License. For example, you may 461 | not impose a license fee, royalty, or other charge for exercise of 462 | rights granted under this License, and you may not initiate litigation 463 | (including a cross-claim or counterclaim in a lawsuit) alleging that 464 | any patent claim is infringed by making, using, selling, offering for 465 | sale, or importing the Program or any portion of it. 466 | 467 | #### 11. Patents. 468 | 469 | A "contributor" is a copyright holder who authorizes use under this 470 | License of the Program or a work on which the Program is based. The 471 | work thus licensed is called the contributor's "contributor version". 472 | 473 | A contributor's "essential patent claims" are all patent claims owned 474 | or controlled by the contributor, whether already acquired or 475 | hereafter acquired, that would be infringed by some manner, permitted 476 | by this License, of making, using, or selling its contributor version, 477 | but do not include claims that would be infringed only as a 478 | consequence of further modification of the contributor version. For 479 | purposes of this definition, "control" includes the right to grant 480 | patent sublicenses in a manner consistent with the requirements of 481 | this License. 482 | 483 | Each contributor grants you a non-exclusive, worldwide, royalty-free 484 | patent license under the contributor's essential patent claims, to 485 | make, use, sell, offer for sale, import and otherwise run, modify and 486 | propagate the contents of its contributor version. 487 | 488 | In the following three paragraphs, a "patent license" is any express 489 | agreement or commitment, however denominated, not to enforce a patent 490 | (such as an express permission to practice a patent or covenant not to 491 | sue for patent infringement). To "grant" such a patent license to a 492 | party means to make such an agreement or commitment not to enforce a 493 | patent against the party. 494 | 495 | If you convey a covered work, knowingly relying on a patent license, 496 | and the Corresponding Source of the work is not available for anyone 497 | to copy, free of charge and under the terms of this License, through a 498 | publicly available network server or other readily accessible means, 499 | then you must either (1) cause the Corresponding Source to be so 500 | available, or (2) arrange to deprive yourself of the benefit of the 501 | patent license for this particular work, or (3) arrange, in a manner 502 | consistent with the requirements of this License, to extend the patent 503 | license to downstream recipients. "Knowingly relying" means you have 504 | actual knowledge that, but for the patent license, your conveying the 505 | covered work in a country, or your recipient's use of the covered work 506 | in a country, would infringe one or more identifiable patents in that 507 | country that you have reason to believe are valid. 508 | 509 | If, pursuant to or in connection with a single transaction or 510 | arrangement, you convey, or propagate by procuring conveyance of, a 511 | covered work, and grant a patent license to some of the parties 512 | receiving the covered work authorizing them to use, propagate, modify 513 | or convey a specific copy of the covered work, then the patent license 514 | you grant is automatically extended to all recipients of the covered 515 | work and works based on it. 516 | 517 | A patent license is "discriminatory" if it does not include within the 518 | scope of its coverage, prohibits the exercise of, or is conditioned on 519 | the non-exercise of one or more of the rights that are specifically 520 | granted under this License. You may not convey a covered work if you 521 | are a party to an arrangement with a third party that is in the 522 | business of distributing software, under which you make payment to the 523 | third party based on the extent of your activity of conveying the 524 | work, and under which the third party grants, to any of the parties 525 | who would receive the covered work from you, a discriminatory patent 526 | license (a) in connection with copies of the covered work conveyed by 527 | you (or copies made from those copies), or (b) primarily for and in 528 | connection with specific products or compilations that contain the 529 | covered work, unless you entered into that arrangement, or that patent 530 | license was granted, prior to 28 March 2007. 531 | 532 | Nothing in this License shall be construed as excluding or limiting 533 | any implied license or other defenses to infringement that may 534 | otherwise be available to you under applicable patent law. 535 | 536 | #### 12. No Surrender of Others' Freedom. 537 | 538 | If conditions are imposed on you (whether by court order, agreement or 539 | otherwise) that contradict the conditions of this License, they do not 540 | excuse you from the conditions of this License. If you cannot convey a 541 | covered work so as to satisfy simultaneously your obligations under 542 | this License and any other pertinent obligations, then as a 543 | consequence you may not convey it at all. For example, if you agree to 544 | terms that obligate you to collect a royalty for further conveying 545 | from those to whom you convey the Program, the only way you could 546 | satisfy both those terms and this License would be to refrain entirely 547 | from conveying the Program. 548 | 549 | #### 13. Use with the GNU Affero General Public License. 550 | 551 | Notwithstanding any other provision of this License, you have 552 | permission to link or combine any covered work with a work licensed 553 | under version 3 of the GNU Affero General Public License into a single 554 | combined work, and to convey the resulting work. The terms of this 555 | License will continue to apply to the part which is the covered work, 556 | but the special requirements of the GNU Affero General Public License, 557 | section 13, concerning interaction through a network will apply to the 558 | combination as such. 559 | 560 | #### 14. Revised Versions of this License. 561 | 562 | The Free Software Foundation may publish revised and/or new versions 563 | of the GNU General Public License from time to time. Such new versions 564 | will be similar in spirit to the present version, but may differ in 565 | detail to address new problems or concerns. 566 | 567 | Each version is given a distinguishing version number. If the Program 568 | specifies that a certain numbered version of the GNU General Public 569 | License "or any later version" applies to it, you have the option of 570 | following the terms and conditions either of that numbered version or 571 | of any later version published by the Free Software Foundation. If the 572 | Program does not specify a version number of the GNU General Public 573 | License, you may choose any version ever published by the Free 574 | Software Foundation. 575 | 576 | If the Program specifies that a proxy can decide which future versions 577 | of the GNU General Public License can be used, that proxy's public 578 | statement of acceptance of a version permanently authorizes you to 579 | choose that version for the Program. 580 | 581 | Later license versions may give you additional or different 582 | permissions. However, no additional obligations are imposed on any 583 | author or copyright holder as a result of your choosing to follow a 584 | later version. 585 | 586 | #### 15. Disclaimer of Warranty. 587 | 588 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 589 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 590 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT 591 | WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT 592 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 593 | A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND 594 | PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE 595 | DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR 596 | CORRECTION. 597 | 598 | #### 16. Limitation of Liability. 599 | 600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR 602 | CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 603 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES 604 | ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT 605 | NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR 606 | LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM 607 | TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER 608 | PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 609 | 610 | #### 17. Interpretation of Sections 15 and 16. 611 | 612 | If the disclaimer of warranty and limitation of liability provided 613 | above cannot be given local legal effect according to their terms, 614 | reviewing courts shall apply local law that most closely approximates 615 | an absolute waiver of all civil liability in connection with the 616 | Program, unless a warranty or assumption of liability accompanies a 617 | copy of the Program in return for a fee. 618 | 619 | END OF TERMS AND CONDITIONS 620 | 621 | ### How to Apply These Terms to Your New Programs 622 | 623 | If you develop a new program, and you want it to be of the greatest 624 | possible use to the public, the best way to achieve this is to make it 625 | free software which everyone can redistribute and change under these 626 | terms. 627 | 628 | To do so, attach the following notices to the program. It is safest to 629 | attach them to the start of each source file to most effectively state 630 | the exclusion of warranty; and each file should have at least the 631 | "copyright" line and a pointer to where the full notice is found. 632 | 633 | 634 | Copyright (C) 635 | 636 | This program is free software: you can redistribute it and/or modify 637 | it under the terms of the GNU General Public License as published by 638 | the Free Software Foundation, either version 3 of the License, or 639 | (at your option) any later version. 640 | 641 | This program is distributed in the hope that it will be useful, 642 | but WITHOUT ANY WARRANTY; without even the implied warranty of 643 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 644 | GNU General Public License for more details. 645 | 646 | You should have received a copy of the GNU General Public License 647 | along with this program. If not, see . 648 | 649 | Also add information on how to contact you by electronic and paper 650 | mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands \`show w' and \`show c' should show the 661 | appropriate parts of the General Public License. Of course, your 662 | program's commands might be different; for a GUI interface, you would 663 | use an "about box". 664 | 665 | You should also get your employer (if you work as a programmer) or 666 | school, if any, to sign a "copyright disclaimer" for the program, if 667 | necessary. For more information on this, and how to apply and follow 668 | the GNU GPL, see . 669 | 670 | The GNU General Public License does not permit incorporating your 671 | program into proprietary programs. If your program is a subroutine 672 | library, you may consider it more useful to permit linking proprietary 673 | applications with the library. If this is what you want to do, use the 674 | GNU Lesser General Public License instead of this License. But first, 675 | please read . 676 | --------------------------------------------------------------------------------